8ad818697966c41fbda92c9cff8062a244deb185
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-10-17  Yao Qi  <yao@codesourcery.com>
2
3         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
4         more parameter 'inferior'.
5         * corefile.c (write_memory_with_notification): Caller update.
6
7         * mi/mi-cmd-var.c: Include "mi-main.h".
8         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
9         to 1 and restore it later.
10         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
11         and "data-write-memory-bytes.
12         * mi/mi-interp.c: Include objfiles.h.
13         (mi_interpreter_init): Call observer_attach_memory_changed.
14         (mi_memory_changed): New.
15         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
16         New field.
17
18         * NEWS: Mention new MI notification "memory-changed".
19
20 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
21
22         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
23
24 2012-10-15  Doug Evans  <dje@google.com>
25
26         New option -nh: inhibit loading of ~/.gdbinit.
27         * NEWS: Mention -nh.
28         * main.c (captured_main): Recognize and process -nh.
29         (print_gdb_help): Mention -nh.
30         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
31
32 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
33
34         PR backtrace/14646
35         PR gdb/14647
36         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
37         pc_regnum_from_eax.
38         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
39         nor pc_regnum_from_eax.
40         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
41         nor pc_regnum_from_eax.
42
43 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
44
45         Fix entry values resolving in inlined frames.
46         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
47         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
48         entries of FRAME.
49
50 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
51
52         * configure.ac: Build with -DMS_WIN64 if building with Python
53         enabled using GCC on amd64-windows.
54         * configure: Regenerate.
55
56 2012-10-15  Tom Tromey  <tromey@redhat.com>
57
58         PR python/14635:
59         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
60         to Py_None.
61
62 2012-10-15  Tom Tromey  <tromey@redhat.com>
63
64         PR python/14634:
65         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
66
67 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
68
69         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
70         reset thread numbering back to 1.
71
72 2012-10-11  Doug Evans  <dje@google.com>
73
74         PR breakpoints/14643.
75         * linespec.c (struct ls_parser): New member keyword_ok.
76         (linespec_lexer_lex_string): Add comment.
77         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
78         for one.
79         (parse_linespec): Set keyword_ok.
80
81 2012-10-10  Doug Evans  <dje@google.com>
82
83         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
84         "0x" prefix on address in log message.
85
86         * dwarf2read.c (read_1_byte): Add const to buf parameter.
87         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
88         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
89         (lookup_dwo_file): Add const to dwo_name parameter.
90         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
91
92 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
93
94         Fix crash during stepping on ppc32.
95         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
96         SYM.
97
98 2012-10-03  Doug Evans  <dje@google.com>
99
100         PR symtab/14601
101         * buildsym.c (buildsym_init): Reset using_directives to NULL.
102
103 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
104
105         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
106         output and use uint32_t not long to ensure 4 byte size.
107
108 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
109
110         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
111         unref'ed it.
112
113 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
114
115         * target.c (simple_search_memory): Include access length in
116         warning message.
117
118 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
119             Edjunior Machado  <emachado@linux.vnet.ibm.com>
120
121         PR gdb/13989
122         * solib.c (solib_find): Prevent GDB from loading native libraries when
123         debugging a cross-target corefile.
124
125 2012-09-28  selven  <pcthegreat@gmail.com>
126
127         Make definition match declaration.
128
129         * regcache.c (regcache_register_status): Change return type to
130         enum register_status.
131
132 2012-09-28  Yao Qi  <yao@codesourcery.com>
133
134         * mi/mi-main.c (mi_cmd_data_write_memory): Call
135         write_memory_with_notification instead of write_memory.
136         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
137         instead of target_write_memory.
138
139 2012-09-28  Yao Qi  <yao@codesourcery.com>
140
141         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
142         when the length of content is not an even number.
143
144 2012-09-27  Tom Tromey  <tromey@redhat.com>
145
146         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
147         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
148
149 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
150
151         * sol-thread.c (sol_thread_fetch_registers)
152         (sol_thread_store_registers): Delete commented out code.
153
154 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
155
156         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
157         Move these functions to sparc-sol-thread.c.
158         * sparc-sol-thread.c: New file.
159         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
160         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
161         configurations.
162         * configure: Regenerate.
163
164 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
165
166         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
167         Remove commented-out code.
168
169 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
170
171         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
172         Enable this code for sparc hosts only.
173
174 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
175
176         * procfs.h (procfs_find_LDT_entry): Add declaration.
177         * sol-thread.c (ps_lgetLDT): Delete local declaration of
178         function procfs_find_LDT_entry.
179
180 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
181
182         * procfs.c (proc_get_LDT_entry): Make static.
183
184 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
185
186         * procfs.c (proc_find_memory_regions): Fix declaration.
187
188 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
189
190         * amd64-tdep.c (amd64_return_value): Revert previous change
191         that used TYPE_LENGTH directly.
192         * bfin-tdep.c (bfin_extract_return_value): Likewise.
193         (bfin_store_return_value): Likewise.
194         * cris-tdep.c (cris_store_return_value): Likewise.
195         (cris_extract_return_value): Likewise.
196         * h8300-tdep.c (h8300_extract_return_value): Likewise.
197         * hppa-tdep.c (hppa64_return_value): Likewise.
198         * lm32-tdep.c (lm32_store_return_value): Likewise.
199         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
200         * spu-tdep.c (spu_value_from_register): Likewise.
201         * vax-tdep.c (vax_return_value): Likewise.
202
203 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
204
205         * gdbtypes.c (lookup_array_range_type): Expand parameters
206         LOW_BOUND and HIGH_BOUND to LONGEST.
207         (lookup_string_range_type): Likewise.
208         * gdbtypes.h (lookup_array_range_type): Likewise.
209         (lookup_string_range_type): Likewise.
210         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
211         Expand HIGHBOUND to ssize_t.
212         (value_string): Likewise.
213         * value.h (value_cstring): Expand parameter LEN to ssize_t.
214         (value_string): Likewise.
215
216 2012-09-27  Yao Qi  <yao@codesourcery.com>
217
218         PR breakpoints/13898
219         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
220         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
221         per breakpoint type.
222
223 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
224
225         * procfs.c: Add gdb_bfd header.
226         * rs6000-nat.c: Likewise.
227         * solib-pa64.c: Likewise.
228         * spu-linux-nat.c: Likewise.
229         * windows-nat.c: Likewise.
230
231 2012-09-26  Tom Tromey  <tromey@redhat.com>
232
233         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
234
235 2012-09-26  Tom Tromey  <tromey@redhat.com>
236
237         * dwarf2read.c (mark_common_block_symbol_computed): New function.
238         (read_common_block): Handle child DIEs with
239         DW_AT_data_member_location.
240         (new_symbol_full): Add special case for common blocks.
241
242 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
243             Tom Tromey  <tromey@redhat.com>
244
245         * dwarf2read.c (read_common_block): Rewrite.
246         (new_symbol_full): Handle DW_TAG_common_block.
247         * f-lang.c (head_common_list, find_common_for_function):
248         Remove.
249         * f-lang.h (struct common_entry, struct saved_f77_common,
250         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
251         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
252         BLANK_COMMON_NAME_LOCAL): Remove.
253         (struct common_block): New.
254         * f-valprint.c (list_all_visible_commons): Remove.
255         (info_common_command_for_block): New function.
256         (info_common_command): Use it.
257         * stack.c (iterate_over_block_locals): Special case for
258         COMMON_BLOCK_DOMAIN.
259         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
260         constant.
261         (struct general_symbol_info) <value.common_block>: New field.
262         (SYMBOL_VALUE_COMMON_BLOCK): New define.
263
264 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
265             Tom Tromey  <tromey@redhat.com>
266
267         * f-lang.c (allocate_saved_bf_node,
268         allocate_saved_function_node, allocate_saved_f77_common_node,
269         allocate_common_entry_node, tail_common_list, current_common,
270         saved_bf_list, saved_bf_list_end, current_head_bf_list,
271         tmp_bf_ptr, add_common_block, add_common_entry,
272         find_first_common_named, patch_common_entries,
273         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
274         global_remote_debug, get_bf_for_fcn, saved_function_list,
275         saved_function_list_end, clear_function_list, struct saved_fcn,
276         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
277         SAVED_BF, SAVED_BF_PTR): Remove.
278         * f-lang.h (tail_common_list, current_common,
279         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
280         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
281         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
282         real_main_c_value): Remove.
283         * f-valprint.c (there_is_a_visible_common_named): Remove.
284
285 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
286
287         * breakpoint.c (update_global_location_list): Ignore previous
288         duplicate status of a breakpoint when starting a new scan for
289         duplicate breakpoints.
290
291 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
292         PR breakpoints/14419
293         * arm-tdep.c (arm_skip_prologue): Extending producer check to
294         support LLVM compiler.
295
296 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
297
298         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
299         * bfin-tdep.c (bfin_extract_return_value): Likewise.
300         (bfin_store_return_value): Likewise.
301         * cris-tdep.c (cris_store_return_value): Likewise.
302         (cris_extract_return_value): Likewise.
303         * h8300-tdep.c (h8300_extract_return_value): Likewise.
304         * hppa-tdep.c (hppa64_return_value): Likewise.
305         * lm32-tdep.c (lm32_store_return_value): Likewise.
306         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
307         * spu-tdep.c (spu_value_from_register): Likewise.
308         * vax-tdep.c (vax_return_value): Likewise.
309
310 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
311
312         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
313         parameter LEN to ssize_t.
314
315 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
316
317         * ada-valprint.c (ada_val_print_1): Eliminate single-use
318         variable LEN.
319         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
320         directly.
321         (alpha_store_return_value): Likewise.
322         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
323         (amd64_push_arguments): Likewise.
324         * ax-gdb.c (gen_trace_static_fields): Likewise.
325         (gen_traced_pop): Likewise.
326         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
327         * breakpoint.c (update_watchpoint): Likewise.
328         * findcmd.c (parse_find_args): Use local variable for type
329         instead of length.
330         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
331         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
332         (h8300_store_return_value): Likewise.
333         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
334         Use i386_darwin_arg_type_alignment directly.
335         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
336         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
337         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
338         (m68hc11_extract_return_value): Likewise.
339         * mep-tdep.c (mep_push_dummy_call): Likewise.
340         * printcmd.c (float_type_from_length): Likewise.
341         * s390-tdep.c (s390_value_from_register): Likewise.
342         * stack.c (read_frame_arg): Likewise.
343         * tracepoint.c (encode_actions_1): Likewise.
344         * valops.c (value_fetch_lazy): Use local variable for type
345         instead of length.  Use TYPE_LENGTH directly.
346         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
347
348 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
349
350         * symtab.c (skip_prologue_sal): Fix typo in comment.
351
352 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
353
354         * linespec.c (create_sals_line_offset): Fix typo in comment.
355
356 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
357
358         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
359         use plongest to print the array size.
360
361 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
362
363         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
364         * p-valprint.c (pascal_type_print_base): Likewise.
365
366 2012-09-22  Yao Qi  <yao@codesourcery.com>
367
368         * remote.c (remote_get_trace_status): Remove setting default
369         values of fields of 'ts'.
370
371 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
372
373         Fix internal error on canonicalization of clang types.
374         * cp-name-parser.y (operator): New comment at make_operator call for
375         new, delete, new[] and delete[].
376         (exp): Use "sizeof ".  Add new comment at make_operator call.
377
378 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
379
380         Fix disassemble without parameters in tailcall frame.
381         * cli/cli-cmds.c (disassemble_current_function): Use
382         get_frame_address_in_block.
383
384 2012-09-21  Tom Tromey  <tromey@redhat.com>
385
386         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
387         TYPE_CODE_UNION>: Unify, removing a goto.
388
389 2012-09-21  Tom Tromey  <tromey@redhat.com>
390
391         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
392
393 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
394
395         * findvar.c (read_frame_register_value): Mark the result value as
396         optimized out if any of the input registers have been optimized out.
397
398 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
399
400         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
401
402 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
403
404         * eval.c (evaluate_subexp_standard): Eliminate single-use
405         variable LOWER.
406
407 2012-09-21  Yao Qi  <yao@codesourcery.com>
408
409         * mi/mi-interp.c: Declare mi_record_changed.
410         (mi_interpreter_init): Call observer_attach_record_changed.
411         (mi_record_changed): New.
412         * record.c (record_open): Call observer_notify_record_changed.
413         (cmd_record_stop): Call observer_notify_record_changed.
414         * NEWS: Mention it.
415
416 2012-09-20  Tom Tromey  <tromey@redhat.com>
417
418         * NEWS: Update.
419         * python/python.c (finalize_python): New function.
420         (_initialize_python): Make a final cleanup.
421
422 2012-09-19  Doug Evans  <dje@google.com>
423
424         * buildsym.h (param_symbols): Delete, unused.
425         (context_stack): Delete member "params", unused.
426         * buildsym.c (push_context): Update.
427         * dwarf2read.c (read_func_scope): Update.
428
429 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
430
431         * sh-tdep.c (sh_register_convert_to_virtual)
432         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
433         all callers.  Just do a memcpy if not the little-endian case.
434
435         * h8300-tdep.c (h8300_gdbarch_init): Invoke
436         set_gdbarch_double_format and set_gdbarch_long_double_format.
437         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
438         set_gdbarch_double_format.
439         * sh-tdep.c (sh_gdbarch_init): Likewise.
440
441         * NEWS: Document the removal of SH's 'regs' command.
442         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
443         command.
444
445 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
446
447         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
448         `jump'.
449
450 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
451
452         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
453         language when iterating over symbols.
454
455 2012-09-18  Yao Qi  <yao@codesourcery.com>
456
457         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
458         (mi_interpreter_init): Call observer_attach_tsv_created and
459         observer_attach_tsv_deleted.
460         (mi_tsv_created, mi_tsv_deleted): New.
461         * tracepoint.c (delete_trace_state_variable): Call
462         observer_notify_tsv_deleted.
463         (trace_variable_command): Call observer_notify_tsv_created.
464         (delete_trace_variable_command): Call
465         observer_notify_tsv_deleted.
466         (create_tsv_from_upload): Call observer_notify_tsv_created.
467         * NEWS: Mention it.
468
469 2012-09-18  Yao Qi  <yao@codesourcery.com>
470
471         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
472         if traceframe changed.
473         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
474         "trace-find".
475         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
476         (mi_interpreter_init): Hook mi_traceframe_changed to observer
477         'traceframe_changed'.
478         (mi_traceframe_changed): New.
479         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
480         New field.
481         * NEWS: Mention the new MI notification.
482
483 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
484
485         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
486
487 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
488
489         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
490         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
491         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
492         Extend code also for PaX support.  Convert all gdb_assert to warning
493         calls.
494
495 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
496
497         Implement auto-load user conveniences suggested by Doug Evans.
498         * auto-load.c: Include top.h.
499         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
500         (_initialize_auto_load): New variable scripts_directory_help.  Mention
501         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
502         scripts-directory.  Document in online help one can use also files for
503         set auto-load safe-path.
504         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
505         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
506
507 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
508
509         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
510         of LEN.
511
512 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
513
514         * m2-valprint.c (m2_print_array_contents): Eliminate variable
515         ELTLEN and use TYPE_LENGTH directly.
516         (m2_val_print): Likewise.
517         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
518         variable LEN and use TYPE_LENGTH directly.
519         (m68k_svr4_store_return_value): Likewise.
520         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
521         ARGLEN and use TYPE_LENGTH directly.
522         (mips_o64_push_dummy_call): Likewise.
523         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
524         variable LENGTH and use TYPE_LENGTH directly.
525         (s390_function_arg_float): Likewise.
526         (s390_function_arg_integer): Likewise.
527         (s390_push_dummy_call): Likewise.
528         (s390_return_value_convention): Likewise.
529         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
530         TYPE_LENGTH directly.
531
532 2012-09-17  Yao Qi  <yao@codesourcery.com>
533
534         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
535         Update comment to add_setshow_integer_cmd.
536         * cli/cli-setshow.c (do_set_command): Handle case
537         'var_zuinteger_unlimited'.
538         (do_show_command): Likewise.
539         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
540         for command 'remotetimeout'.
541         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
542         to var_integer.
543         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
544         for command 'set listsize'.
545
546 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
547
548         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
549         variable LEN.
550
551 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
552
553         PR 14119
554         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
555         (frame_pop): Drop also TAILCALL_FRAME frames.
556         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
557
558 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
559             Pedro Alves  <palves@redhat.com>
560
561         PR 14548
562         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
563         function start if we are already at function start.  Both for
564         reverse-next and for reverse-step into function without line number
565         info.
566
567 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
568
569         Code cleanup - rename 'inline' depth to 'artificial' depth.
570         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
571         frame_id_artificial_p, extend the comment.
572         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
573         * frame.c (fprint_frame_id): Rename at a user, change debug output
574         text to "artificial=".
575         (skip_inlined_frames): Rename to ...
576         (skip_artificial_frames): ... here.  Extend the comment.
577         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
578         (frame_id_inlined_p): Rename to ...
579         (frame_id_artificial_p): ... here.  Rename at a user.
580         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
581         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
582         at a user.
583         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
584         Extend the comment.
585         (frame_id_inlined_p): Rename to ...
586         (frame_id_artificial_p): ... here.
587         * inline-frame.c (inline_frame_this_id): Rename at a user.
588
589 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
590
591         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
592         vector variables using vector_size syntax rather than array
593         syntax.
594
595 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
596
597         * valarith.c (value_concat): Replace unsafe ALLOCA with
598         XMALLOC/XFREE.
599
600 2012-09-14  Pedro Alves  <palves@redhat.com>
601
602         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
603
604 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
605
606         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
607         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
608         data-directory as appropriate.
609
610 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
611
612         * printcmd.c (ui_printf): Eliminate single-use variable
613         PARAM_LEN.
614
615 2012-09-14  Yao Qi  <yao@codesourcery.com>
616             Pedro Alves  <palves@redhat.com>
617
618         * valops.c (value_assign): Move observer_notify_target_changed
619         below to replace reinit_frame_cache.
620
621 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
622
623         Refactor Python "gdb" module into a proper Python package, by
624         introducing a new "_gdb" module for code implemented in C, and
625         using reload/__import__ instead of exec.
626         * python/lib/gdb/__init__.py: Import * from _gdb.
627         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
628         prompt_hook, sys.argv): Moved from finish_python_initialization.
629         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
630         (packages, auto_load_packages): New list and function replacing
631         module_dict and auto-loading code, using __file__ instead of
632         gdb.PYTHONDIR and reload/__import__ instead of exec.
633         (GdbSetPythonDirectory): Replacing function of the same name
634         from finish_python_initialization, using reload/__import__ instead
635         of exec, as well as call auto_load_packages.
636         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
637         gdb_python_module and not gdb_module.
638         * python/python-internal.h (gdb_python_module): Declare.
639         * python/python.c (gdb_python_module): New global.
640         (before_prompt_hook): Check gdb_python_module and not gdb_module.
641         (_initialize_python): Rename gdb module to _gdb.
642         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
643         (finish_python_initialization): Move Python code to
644         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
645         __main__.
646
647 2012-09-13  Pedro Alves  <palves@redhat.com>
648
649         * Makefile.in (COMMON_OBS): Add registry.o.
650         * registry.c: New file.
651         * registry.h (struct registry_container): Declare.
652         (registry_data_callback): New typedef.
653         (struct registry_data, struct registry_data_registration, struct
654         registry_data_registry): New type.
655         (register_data_with_cleanup, registry_alloc_data)
656         (registry_callback_adaptor, registry_clear_data)
657         (registry_container_free_data, registry_set_data, registry_data):
658         Declare.
659         (DEFINE_REGISTRY): Refactor structures and functions as shims over
660         the new common structures and functions.
661         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
662         callback typedefs.
663
664 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
665
666         * remote.c (remote_insert_hw_breakpoint): Throw exception if
667         there is an error inserting hardware breakpoints and use the
668         error message from the target.
669
670         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
671         Catch this exception and print the error message contained within. Do not
672         print the default hardware error breakpoint message in this case.
673
674 2012-09-12  Doug Evans  <dje@google.com>
675
676         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
677         cu == NULL.
678
679 2012-09-11  Doug Evans  <dje@google.com>
680
681         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
682         .gdb_index symbol attributes if there are none.
683
684 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
685
686         * symtab.h (struct minimal_symbol) [has_size]: New field.
687         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
688         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
689         * printcmd.c (build_address_symbolic): Only filter out zero-sized
690         minimal symbols if the symbol's size is actually known.
691         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
692         of msymbol's size field.  Add comment.
693         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
694         SET_MSYMBOL_SIZE to set the minimal symbol size.
695
696 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
697
698         * minsyms.c (install_minimal_symbols): Use memset to fill entire
699         minimal_symbol struct object, rather than setting some of its
700         fields one by one.
701
702 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
703
704         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
705         passed_a_ptr flag when displaying typedef types.
706
707 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
708
709         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
710         the optimized_out flag is preserved.
711
712 2012-09-10  Anthony Green  <green@moxielogic.com>
713
714         * moxie-tdep.c (moxie_analyze_prologue): Update for function
715         prologue changes in GCC.
716
717 2012-09-10  Keith Seitz  <keiths@redhat.com>
718
719         PR gdb/13483
720         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
721         (BOOL_CONVERSION_BADNESS): ... this.
722         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
723         (rank_one_type): Allow all boolean conversions
724         permitted by the standard.
725
726 2012-09-06  Tom Tromey  <tromey@redhat.com>
727
728         * python/py-newobjfileevent.c (create_new_objfile_event_object):
729         Don't decref py_objfile.
730
731 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
732
733         Do not enable -lmcheck by default when Python is enabled with
734         threading support.
735         * configure.ac: (python_has_threads) New variable, by testing
736         if WITH_THREAD is defined in Python.h.
737         Move --enable-lmcheck after --with-python.
738         Do not enable -lmcheck by default if python_has_threads=yes.
739         Warn if --enable-lmcheck and python_has_threads=yes.
740         * configure: Regenerate.
741
742 2012-08-31  Yao Qi  <yao@codesourcery.com>
743
744         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
745         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
746         Update some commands.
747         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
748         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
749         to 1.
750
751 2012-08-31  Yao Qi  <yao@codesourcery.com>
752
753         * mi/mi-cmds.c (mi_cmds): Add 'static'.
754
755 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
756
757         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
758
759 2012-08-29  Doug Evans  <dje@google.com>
760
761         * main.c (print_gdb_help): Remove reference to
762         --use-deprecated-index-sections.
763
764 2012-08-28  Yao Qi  <yao@codesourcery.com>
765
766         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
767         (init_cmds): Call add_setshow_uinteger_cmd for command
768         'max-user-call-depth'.
769         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
770         declaration of 'max_user_call_depth'.
771         * frame.c (backtrace_limit): Add 'unsigned'.
772         (_initialize_frame): Call add_setshow_uinteger_cmd for command
773         'limit'.
774         * remote.c (remoteaddresssize): Add 'unsigned'.
775         (remote_address_masked): Change local var 'address_size' to
776         'unsigned'.
777         (_initialize_remote): Call add_setshow_uinteger_cmd for
778         'remoteaddresssize'.
779         * top.c (history_size): Add 'unsigned'.
780         (show_commands): Change local variables to 'unsigned'.
781         (set_history_size_command): Don't check history_size is negative.
782         Adjust the condition to call unstifle_history and set history_size
783         to UNIT_MAX.
784
785 2012-08-28  Pedro Alves  <palves@redhat.com>
786
787         PR gdb/14428
788
789         * infcmd.c (default_print_one_register_info): New, factored out
790         from default_print_registers_info.
791         (default_print_registers_info): Use it.  Mark value unavailable if
792         necessary.
793         (registers_info): Print user registers with
794         default_print_one_register_info.
795
796 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
797
798         PR tui/14486
799         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
800         is not NULL before referencing it.
801
802 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
803
804         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
805         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
806         original PC for it.
807
808 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
809             Jan Kratochvil  <jan.kratochvil@redhat.com>
810
811         * auto-load.c (auto_load_objfile_script): Rename to ...
812         (auto_load_objfile_script_1): ... here, change variable realname to
813         parameter realname, document it, add return value, add variable retval.
814         (auto_load_objfile_script): New function.
815
816 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
817
818         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
819         followed by a whitespace.
820
821 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
822
823         PR gdb/14494.
824         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
825         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
826         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
827         here.
828
829 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
830
831         * memattr.c (create_mem_region): Fix memory region overlapping
832         checking.
833
834 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
835
836         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
837         with xmalloc/cleanup.
838         * mt-tdep.c (mt_push_dummy_call): Likewise.
839         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
840         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
841
842 2012-08-24  Yao Qi  <yao@codesourcery.com>
843
844         * jv-exp.y (push_expression_name): Add "." at the end of error
845         message.
846
847 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
848
849         Document how to return from "python-interactive" to GDB.
850         * python/python.c (_initialize_python): Update documentation.
851
852 2012-08-23  Pedro Alves  <palves@redhat.com>
853
854         * infrun.c (_initialize_infrun) <handle command help text>:
855         Mention that multiple signals are supported.
856
857 2012-08-23  Pedro Alves  <palves@redhat.com>
858
859         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
860         string.
861
862 2012-08-23  Yao Qi  <yao@codesourcery.com>
863
864         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
865         (tfind_1): Don't call registers_changed, set_traceframe_num,
866         and clear_traceframe_info.
867         Call set_current_traceframe.
868         (set_current_traceframe): call set_traceframe_num.
869
870 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
871
872         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
873         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
874
875 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
876
877         Enable readline in Python in a GDB-specific way and block the
878         standard Python readline module to prevent conflicts with GDB.
879         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
880         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
881         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
882         * python/py-gdb-readline.c: New file.
883         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
884         prototype.
885         * python/python.c (_initialize_python): Call
886         gdbpy_initialize_gdb_readline.
887
888 2012-08-22  Keith Seitz  <keiths@redhat.com>
889
890         * defs.h: Include build-gnulib/config.h
891
892 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
893
894         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
895         and blx pc.
896
897 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
898
899         Add a new "python-interactive" command that starts a standard
900         Python interactive prompt with "pi" as alias, and add "py" as
901         an alias to "python".
902         * NEWS: Mention the new commands.
903         * python/python.c (eval_python_command): New function.
904         (python_interactive_command): For "python-interactive" with
905         arguments, call eval_python_command.  For "python-interactive"
906         without arguments, call PyRun_InteractiveLoop.
907         (_initialize_python): Add "python-interactive" command with
908         "pi" as alias, and add "py" as an alias to "python".
909
910 2012-08-22  Tom Tromey  <tromey@redhat.com>
911
912         * defs.h (quit_flag): Don't declare.
913         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
914         (QUIT): Use new functions.
915         * event-top.c (command_handler): Use clear_quit_flag.
916         (handle_sigint): Use set_quit_flag.
917         (async_request_quit): Use check_quit_flag.  Don't check
918         immediate_quit.
919         * exceptions.c (throw_exception): Use clear_quit_flag.
920         * main.c (captured_main): Use clear_quit_flag.
921         * python/python.c (clear_quit_flag, set_quit_flag)
922         (check_quit_flag): New functions.
923         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
924         clear_quit_flag.
925         * remote.c (remote_wait_as): Use check_quit_flag,
926         clear_quit_flag.
927         (remote_start_remote): Call QUIT.
928         * symfile.c (load_progress): Use check_quit_flag.
929         * top.c (command_loop): Use clear_quit_flag.
930         (command_line_input): Call QUIT.
931         * utils.c (quit_flag): Conditionally define.
932         (clear_quit_flag, check_quit_flag, set_quit_flag): New
933         functions.
934         (prompt_for_continue): Call QUIT.  Use quit, not
935         async_request_quit.
936         * remote-mips.c (mips_expect_timeout): Call QUIT.
937         * monitor.c (monitor_expect): Call QUIT.
938
939 2012-08-22  Tom Tromey  <tromey@redhat.com>
940
941         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
942         (async_init_signals): Update.
943         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
944         (SIGWINCH_HANDLER_BODY): Remove.
945
946 2012-08-22  Tom Tromey  <tromey@redhat.com>
947
948         * jit.c (jit_object_close_impl): Don't malloc the objfile
949         name.
950         * objfiles.c (allocate_objfile): Don't malloc the objfile
951         name.
952         (free_objfile): Don't free the objfile name.
953         * objfiles.h (struct objfile) <name>: Update comment.
954         * symfile.c (reread_symbols): Fix reference counting.  Don't
955         malloc objfile name.
956
957 2012-08-22  Tom Tromey  <tromey@redhat.com>
958
959         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
960         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
961         (symfile_bfd_open): Likewise.
962         (generic_load): Likewise.
963         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
964         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
965         gdb_bfd_open.
966         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
967         Use gdb_bfd_open.
968         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
969         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
970         (pmon_load_fast): Likewise.
971         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
972         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
973         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
974         (macho_check_dsym): Likewise.
975         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
976         (m32r_upload_command): Likewise.
977         * gdb_bfd.h (gdb_bfd_cache): Declare.
978         * gdb_bfd.c (struct gdb_bfd_data): New.
979         (gdb_bfd_cache): New global.
980         (struct gdb_bfd_cache_search): New.
981         (hash_bfd): New function.
982         (eq_bfd): Likewise.
983         (gdb_bfd_open): Likewise.
984         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
985         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
986         gdb_bfd_data.
987         * exec.c (exec_file_attach): Use gdb_bfd_open.
988         * dsrec.c (load_srec): Use gdb_bfd_open.
989
990 2012-08-22  Tom Tromey  <tromey@redhat.com>
991
992         * dwarf2read.c (macro_start_file): Update.
993         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
994         (free_objfile_per_bfd_storage): Destroy macro_cache.
995         (allocate_objfile, free_objfile): Update.
996         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
997         New field.
998         (struct objfile) <macro_cache>: Remove.
999         * symfile.c (reread_symbols): Update.
1000         * symmisc.c (print_symbol_bcache_statistics): Update.
1001         (print_objfile_statistics): Update.
1002
1003 2012-08-22  Tom Tromey  <tromey@redhat.com>
1004
1005         * elfread.c (elf_symtab_read): Update.
1006         * objfiles.c (objfiles_bfd_data): New global.
1007         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1008         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1009         (allocate_objfile, free_objfile): Update.
1010         (_initialize_objfiles): Initialize objfiles_bfd_data.
1011         * objfiles.h (struct objfile_per_bfd_storage): New.
1012         (struct objfile) <per_bfd>: New field.
1013         <filename_cache>: Remove.
1014         (set_objfile_per_bfd): Declare.
1015         * symfile.c (reread_symbols): Update.  Call
1016         set_objfile_per_bfd.
1017         (allocate_symtab): Update.
1018         * symmisc.c (print_symbol_bcache_statistics): Update.
1019         (print_objfile_statistics): Print the size of the BFD obstack.
1020
1021 2012-08-22  Tom Tromey  <tromey@redhat.com>
1022
1023         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1024         * gdb_bfd.c: Use DEFINE_REGISTRY.
1025         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1026         (gdb_bfd_ref): Call bfd_alloc_data.
1027         (gdb_bfd_unref): Call bfd_free_data.
1028
1029 2012-08-22  Tom Tromey  <tromey@redhat.com>
1030
1031         * registry.h (struct registry_fields): New.
1032         (REGISTRY_FIELDS): Redefine.
1033         (REGISTRY_ACCESS_FIELD): New macro.
1034         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1035         functions.
1036
1037 2012-08-22  Tom Tromey  <tromey@redhat.com>
1038
1039         * auto-load.c (_initialize_auto_load): Update.
1040         * solib-svr4.c (_initialize_svr4_solib): Update
1041         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1042         * solib-darwin.c (_initialize_darwin_solib): Update.
1043         * registry.h: New file.
1044         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1045         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1046         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1047         (register_program_space_data_with_cleanup)
1048         (register_program_space_data, program_space_alloc_data)
1049         (clear_program_space_data, set_program_space_data)
1050         (program_space_data): Don't declare.
1051         * progspace.c: Use DEFINE_REGISTRY.
1052         (struct program_space_data, struct
1053         program_space_data_registration, struct
1054         program_space_data_registry, program_space_data_registry)
1055         (register_program_space_data_with_cleanup)
1056         (register_program_space_data, program_space_alloc_data)
1057         (program_space_free_data, clear_program_space_data)
1058         (set_program_space_data, program_space_data): Remove.
1059         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1060         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1061         (register_objfile_data_with_cleanup, register_objfile_data)
1062         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1063         declare.
1064         * objfiles.c: Use DEFINE_REGISTRY.
1065         (struct objfile_data, struct objfile_data_registration, struct
1066         objfile_data_registry, objfile_data_registry)
1067         (register_objfile_data_with_cleanup, register_objfile_data)
1068         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1069         (set_objfile_data, objfile_data): Remove.
1070         (_initialize_objfiles): Update.
1071         * jit.c (_initialize_jit): Update.
1072         * inflow.c (_initialize_inflow): Update.
1073         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1074         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1075         (register_inferior_data_with_cleanup, register_inferior_data)
1076         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1077         declare.
1078         * inferior.c: Use DEFINE_REGISTRY.
1079         (struct inferior_data, struct inferior_data_registration, struct
1080         inferior_data_registry, inferior_data_registry)
1081         (register_inferior_data_with_cleanup, register_inferior_data)
1082         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1083         (set_inferior_data, inferior_data): Remove.
1084         * auxv.c (_initialize_auxv): Update.
1085         * ada-lang.c (_initialize_ada_language): Update.
1086         * breakpoint.c (_initialize_breakpoint): Update.
1087         * i386-nat.c (i386_use_watchpoints): Update.
1088
1089 2012-08-22  Tom Tromey  <tromey@redhat.com>
1090
1091         * exec.c (exec_close, exec_file_attach): Update.
1092         (add_to_section_table): Initialize 'key' field.
1093         (add_target_sections, remove_target_sections): Add 'key' argument.
1094         * exec.h (add_target_sections, remove_target_sections): Add
1095         'key' argument.
1096         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1097         (reload_shared_libraries_1): Update.
1098         * target.h (struct target_section) <key>: New field.
1099
1100 2012-08-22  Tom Tromey  <tromey@redhat.com>
1101
1102         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1103
1104 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1105
1106         * symfile.c (allocate_symtab): Use host_address_to_string
1107         function instead of cast of pointer to long which is not
1108         compatible with x86_64-w64-mingw32 build.
1109
1110 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1111
1112         * mips-tdep.c (is_octeon): New function.
1113         (is_octeon_bbit_op): New function.
1114         (mips32_next_pc): Handle Octeon's bbit instructions.
1115         (mips32_instruction_has_delay_slot): Likewise.
1116
1117 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1118
1119         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1120         before the function.
1121
1122 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1123
1124         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1125
1126 2012-08-19  Keith Seitz  <keiths@redhat.com>
1127
1128         PR c++/14365
1129         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1130         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1131
1132 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1133
1134         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1135         The typo broke "make TAGS".
1136
1137 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1138
1139         GDB 7.5 released.
1140
1141 2012-08-17  Keith Seitz  <keiths@redhat.com>
1142
1143         PR c++/13356
1144         * gdbtypes.c (strict_type_checking): New variable.
1145         (show_strict_type_checking): New function.
1146         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1147         if strict type checking is disabled.
1148         (_initialize_gdbtypes): Add "check type" subcommand.
1149         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1150
1151 2012-08-17  Keith Seitz  <keiths@redhat.com>
1152
1153         * language.h (type_mode): Remove.
1154         (type_check): Remove.
1155         (struct language_defn): Remove la_type_check.
1156         (STRICT_TYPE): Remove unused macro.
1157         (type_error): Remove.
1158         * language.c (set_type_range_case): Renamed to ...
1159         (set_range_case): ... this.  Update all callers.
1160         Remove type_mode/type_check.
1161         (type_mode): Remove.
1162         (type_check): Remove.
1163         (show_type_command): Remove.
1164         (set_type_command): Remove.
1165         (language_info): Remove type checking output.
1166         (type_error): Remove unused function.
1167         (range_error): Update comment.
1168         (unknown_language_defn): Remove la_type_check.
1169         (auto_language_defn): Likewise.
1170         (local_language_defn): Likewise.
1171         (_initialize_language): Remove "check type" subcommand.
1172         * ada-lang.c (ada_language_defn): Remove la_type_check.
1173         * c-lang.c (c_language_defn): Likewise.
1174         (cplus_language_defn): Likewise.
1175         (asm_language_defn): Likewise.
1176         (minimal_language_defn): Likewise.
1177         * d-lang.c (d_language_defn): Likewise.
1178         * f-lang.c (f_language_defn): Likewise.
1179         * go-lang.c (go_language_defn): Likewise.
1180         * jv-lang.c (java_language_defn): Likewise.
1181         * m2-lang.c (m2_language_defn): Likewise.
1182         * objc-lang.c (objc_language_defn): Likewise.
1183         * opencl-lang.c (opencl_language_defn): Likewise.
1184         * p-lang.c (pascal_language_defn): Likewise.
1185
1186 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1187
1188         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1189
1190 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1191
1192         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1193         New function.
1194         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1195         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1196         to access the bsp and bspstore registers if not.
1197
1198 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1199
1200         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1201         * breakpoint.c (detach_breakpoints): Change pid parameter into
1202         a ptid.  Adjust code accordingly.
1203         * infrun.c (handle_inferior_event): Delete variable child_pid.
1204         Update call to detach_breakpoints to pass the child ptid for
1205         fork events.
1206         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1207         assert that inferior_ptid's lwp is zero.
1208         (linux_handle_extended_wait): Update call to detach_breakpoints.
1209         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1210         detach_breakpoints.
1211
1212 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1213
1214         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1215         parent, only call detach_breakpoints if tts.tts_event ==
1216         TTEVT_VFORK.
1217
1218 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1219
1220         * dwarf2-frame.c (dwarf2_frame_cache): Use
1221         get_frame_address_in_block instead of get_frame_pc as
1222         the bound for executing the frame's FDE.
1223
1224 2012-08-16  Yao Qi  <yao@codesourcery.com>
1225
1226         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1227         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1228         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1229         (c_type_print_varspec_suffix): Likewise.
1230         * eval.c (evaluate_subexp_standard): Likewise.
1231         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1232         (f_type_print_varspec_suffix): Likewise.
1233         * gdbtypes.c (is_scalar_type): Likewise.
1234         (recursive_dump_type): Likewise.
1235         * infcall.c (value_arg_coerce): Likewise.
1236         * m2-valprint.c (m2_val_print): Likewise.
1237         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1238         (pascal_type_print_varspec_suffix): Likewise.
1239         (pascal_type_print_base): Likewise.
1240         * p-valprint.c (pascal_val_print): Likewise.
1241         (pascal_val_print): Likewise.
1242         * valops.c (value_slice): Likewise.
1243         * valprint.c (scalar_type_p): Likewise.
1244         * valarith.c (value_bitstring_subscript): Remove.
1245         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1246         Remove comment on TYPE_CODE_BITSTRING.
1247
1248         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1249         TYPE_CODE_BITSTRING.
1250
1251         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1252         slot 0.
1253
1254 2012-08-16  Yao Qi  <yao@codesourcery.com>
1255
1256         * tracepoint.c (trace_find_none_command): Remove.
1257         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1258
1259 2012-08-16  Yao Qi  <yao@codesourcery.com>
1260
1261         * remote.c (handle_notification): Remove parameter 'length'.
1262         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1263
1264 2012-08-15  Keith Seitz  <keiths@redhat.com>
1265
1266         * gdbtypes.c (opaque_type_resolution): Make static.
1267         Add missing comment.
1268         (overload_debug): Add missing comment.
1269         (show_opaque_type_resolution): Likewise.
1270         (show_overload_debug): Likewise.
1271         (print_bit_vector): Remove unnecessary forward declaration.
1272         (print_arg_types): Likewise.
1273         (dump_fn_fieldlists): Likewise.
1274         (print_cplus_stuff): Likewise.
1275
1276 2012-08-15  Tom Tromey  <tromey@redhat.com>
1277
1278         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1279         (gdb_bfd_ref): Initialize new field.
1280         (gdb_bfd_unref): Unref the archive BFD.
1281         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1282         parent archive.
1283
1284 2012-08-15  Tom Tromey  <tromey@redhat.com>
1285
1286         PR python/14387:
1287         * python/py-bpevent.c (create_breakpoint_event_object): Update
1288         comment.
1289         * python/py-event.c (evpy_add_attribute): Update comment.
1290         * python/py-exitedevent.c (create_exited_event_object): Fix
1291         reference counting and error handling.
1292         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1293         Fix reference counting.
1294         * python/py-signalevent.c (create_signal_event_object): Fix
1295         reference counting and error handling.
1296         * python/py-stopevent.c (emit_stop_event): Fix reference
1297         counting.
1298         * python/py-threadevent.c (get_event_thread): Return a
1299         borrowed reference.
1300         * python/py-type.c (convert_field): Fix reference counting.
1301
1302 2012-08-15  Tom Tromey  <tromey@redhat.com>
1303
1304         * dwarf2read.c (dwarf_decode_macro_bytes)
1305         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1306         as hash key.
1307
1308 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1309
1310         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1311         stepi, nexti, finish, next, step, jump, and continue commands.
1312         * infrun.c (_initialize_infrun): Update help text for the handle
1313         command.
1314
1315 2012-08-14  Doug Evans  <dje@google.com>
1316
1317         * gdbtypes.c (struct extra): Delete, unused.
1318
1319         * gdbtypes.c: Whitespace cleanup.
1320         (address_space_name_to_int): Remove "extern" from definition.
1321         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1322
1323         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1324         TYPE_POINTER_TYPE (type).
1325
1326 2012-08-14  Gary Benson  <gbenson@redhat.com>
1327
1328         * solib-svr4.c (svr4_free_library_list): Use free_so.
1329
1330 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1331
1332         * .gitignore: Add go-exp.c.
1333
1334 2012-08-13  Doug Evans  <dje@google.com>
1335
1336         * value.c (show_convenience): Tweak comment.
1337         (_initialize_values): Mention convenience functions in the help text
1338         for "show convenience".
1339
1340 2012-08-13  Yao Qi  <yao@codesourcery.com>
1341
1342         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1343         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1344         TERNOP_SLICE_COUNT.
1345         * eval.c (evaluate_subexp_standard): Likewise.
1346         * expprint.c (print_subexp_standard): Likewise.
1347         (dump_subexp_body_standard): Likewise.
1348         * parse.c (operator_length_standard): Likewise.
1349
1350 2012-08-13  Yao Qi  <yao@codesourcery.com>
1351
1352         * std-operator.def: Remove OP_BITSTRING.
1353         * breakpoint.c (watchpoint_exp_is_const): Update.
1354         * eval.c (evaluate_subexp_standard): Remove handling to
1355         OP_BITSTRING.
1356         * expprint.c (print_subexp_standard): Likewise.
1357         (dump_subexp_body_standard): Likewise.
1358         * parse.c (operator_length_standard): Likewise.
1359         * valops.c (value_bitstring): Remove.
1360         * value.h: Remove the declaration of 'value_bitstring'.
1361
1362 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1363
1364         * linespec.c (find_methods): Remove unused variables `i1' and
1365         `name_len'.
1366         (decode_line_full): Likewise for `arg_start'.
1367
1368 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1369
1370         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1371         (zlib_decompress_section): Likewise for `section_data'.
1372         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1373
1374 2012-08-10  Doug Evans  <dje@google.com>
1375
1376         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1377         * NEWS: Document them.
1378         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1379         function/strfns.py.
1380         * python/py-type.c (typy_array_1): New function.
1381         (typy_array): Call it.
1382         (typy_vector): New function.
1383         (type_object_methods): Add "vector".
1384         * python/lib/gdb/function/__init__.py: New file.
1385         * python/lib/gdb/function/strfns.py: New file.
1386
1387 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1388
1389         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1390         for TYPE_FIELD_BITPOS.
1391         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1392
1393 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1394
1395         PR cli/10436:
1396         * common/vec.h (VEC_merge): Define.
1397         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1398         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1399         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1400         * completer.c: Include gdb_signals.h.
1401         (signal_completer): Define.
1402         * completer.h (signal_completer): Add prototype.
1403         * infcmd.c (_initialize_infcmd): Assign the command
1404         completer for "signal" to handle_completer.
1405         * infrun.c: Include completer.h.
1406         (handle_completer): Define.
1407         (_initialize_infrun): Declare a new local variable c.  Store the
1408         result of add_com("handle") to it.  Assign the command
1409         completer for "handle" to handle_completer.
1410
1411 2012-08-09  Yao Qi  <yao@codesourcery.com>
1412
1413         * cli/cli-decode.c (set_cmd_prefix): New.
1414         (lookup_cmd_for_prefixlist): New.
1415         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1416         of each cmd_list_element in *prefixlist.
1417         (add_setshow_cmd_full): set_cmd_prefix.
1418         (add_alias_cmd): Likewise.
1419         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1420         Declare 'auto_boolean_enums'.
1421         * cli/cli-setshow.c: Include "observer.h".
1422         (notify_command_param_changed_p): New.
1423         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1424         Remove 'static'.
1425         (do_setshow_command): Split it to ...
1426         (do_set_command, do_show_command): ... them.  New.
1427         (do_set_command): Call observer_notify_command_param_changed if
1428         notify_command_param_changed_p returns true.
1429         (cmd_show_list): Caller update.
1430         * auto-load.c (set_auto_load_cmd): Likewise.
1431         * remote.c (show_remote_cmd): Likewise.
1432         * cli/cli-setshow.h: Update declarations.
1433         * top.c (execute_command): Call do_set_command and do_show_command.
1434
1435         * NEWS: Mention new MI notification.
1436         * mi/mi-interp.c: Declare mi_command_param_changed.
1437         (mi_interpreter_init): Attach mi_command_param_changed to
1438         observer command_param_changed.
1439         (mi_command_param_changed): New.
1440         Remove mi_suppress_breakpoint_notifications.
1441         Define global variable mi_suppress_notification.
1442         (mi_breakpoint_created): Update.
1443         (mi_breakpoint_deleted): Likewise.
1444         (mi_breakpoint_modified): Likewise.
1445         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1446         'gdb-set' and set mi_suppress_notification.
1447         * mi/mi-main.h: (mi_suppress_notification): New struct.
1448
1449 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1450             Jan Kratochvil  <jan.kratochvil@redhat.com>
1451
1452         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1453
1454 2012-08-09  Yao Qi  <yao@codesourcery.com>
1455
1456         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1457         (skiplist): Move it to skip.c.
1458         (init_cmd_lists): Remove code setting enablebreaklist and
1459         skiplist to NULL.
1460         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1461         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1462         skiplist.
1463         * gdbcmd.h: Likewise.
1464         * skip.c (_initialize_step_skip): Move 'skiplist' from
1465         cli/cli-cmds.c.
1466
1467 2012-08-09  Yao Qi  <yao@codesourcery.com>
1468
1469         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1470         * gnu-nat.c, symfile.c: Likewise.
1471
1472 2012-08-08  Aaron Gamble  <agamble@google.com>
1473
1474         * utils.c (prompt_for_continue_wait_time): New static global.
1475         (make_command_stats_cleanup): Initialize it.
1476         (report_command_stats): Subtract time waiting for user.
1477         (prompt_for_continue): Track time waiting for user.
1478         (defaulted_query): Track time waiting for user.
1479
1480 2012-08-08  Doug Evans  <dje@google.com>
1481
1482         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1483         UNOP_MEMVAL_TYPE.
1484         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1485         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1486         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1487         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1488         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1489         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1490         elt.
1491         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1492         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1493         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1494         (dump_prefix_expression): Handle OP_TYPE.
1495
1496 2012-08-08  Keith Seitz  <keiths@redhat.com>
1497
1498         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1499         addr_start.
1500
1501 2012-08-08  Doug Evans  <dje@google.com>
1502
1503         * linux-thread-db.c: #include "gdb_vecs.h".
1504         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1505         updated.
1506         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1507         (thread_db_load_search): Use a vector to iterate over path elements.
1508         Handle text appearing after "$pdir".
1509
1510         * gdb_string.h: Moved to ...
1511         * common/gdb_string.h: ... here.
1512         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1513         gdb_string.h and gdb_assert.h.
1514
1515 2012-08-08  Yao Qi  <yao@codesourcery.com>
1516
1517         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1518         (tic6x_value_to_register): Likewise.
1519         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1520         and set_gdbarch_value_to_register.
1521
1522 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1523             Jean-Marc Saffroy  <saffroy@gmail.com>
1524
1525         PR 11804
1526         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1527         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1528         * gcore.c (gcore_create_callback): New function comment.  Add modified
1529         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1530         according to MODIFIED.
1531         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1532         the passed modified value to FUNC.
1533         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1534         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1535         first.  New variables modified and has_anonymous.  Parse the lines of
1536         smaps file.  Add the passed MODIFIED value to FUNC.
1537         * procfs.c (find_memory_regions_callback): Add the passed modified
1538         value.
1539
1540 2012-08-06  Tom Tromey  <tromey@redhat.com>
1541
1542         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1543         (dwarf2_frame_cache): Use it.
1544         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1545         cache initialization constraint.
1546
1547 2012-08-06  Tom Tromey  <tromey@redhat.com>
1548
1549         PR python/14386:
1550         * varobj.c (update_dynamic_varobj_children): Don't call
1551         PyIter_Check.
1552
1553 2012-08-06  Tom Tromey  <tromey@redhat.com>
1554
1555         PR cli/14392:
1556         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1557
1558 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1559
1560         * NEWS: New entry for 'cd' default parameters.
1561         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1562
1563 2012-08-03  Tom Tromey  <tromey@redhat.com>
1564
1565         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1566         return.
1567
1568 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1569
1570         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1571         to attempting lseek/write.
1572         (inf_child_fileio_pread): Likewise for pread.
1573
1574 2012-08-02  Yao Qi  <yao@codesourcery.com>
1575
1576         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1577         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1578         add_setshow_zinteger_cmd.
1579         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1580         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1581         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1582         instead of add_setshow_zinteger_cmd.
1583         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1584         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1585         instead of add_setshow_zinteger_cmd.
1586         * frame.c (frame_debug): Add 'unsigned'.
1587         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1588         add_setshow_zinteger_cmd.
1589         * frame.h: Update the declaration of 'frame_debug'.
1590         * gdbtypes.c (overload_debug): Add 'unsigned'.
1591         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1592         add_setshow_zinteger_cmd.
1593         * inferior.h: Update declaration of 'debug_infrun'.
1594         * infrun.c (debug_infrun): Add 'unsigned'.
1595         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1596         add_setshow_zinteger_cmd.
1597         * jit.c (jit_debug): Add 'unsigned'.
1598         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1599         add_setshow_zinteger_cmd.
1600         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1601         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1602         instead of add_setshow_zinteger_cmd.
1603         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1604         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1605         add_setshow_zinteger_cmd.
1606         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1607         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1608         instead of add_setshow_zinteger_cmd.
1609         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1610         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1611         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1612         intead of add_setshow_zinteger_cmd.
1613         * mips-tdep.c (mips_debug): Add 'unsigned'.
1614         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1615         instead of add_setshow_zinteger_cmd.
1616         * monitor.c (monitor_debug): Add 'unsigned'.
1617         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1618         add_setshow_zinteger_cmd.
1619         * observer.c (observer_debug): Add 'unsigned'.
1620         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1621         add_setshow_zinteger_cmd.
1622         * parse.c (expressiondebug): Add 'unsigned'.
1623         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1624         add_setshow_zinteger_cmd.
1625         * record.c (record_debug): Add 'unsigned'.
1626         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1627         add_setshow_zinteger_cmd.
1628         * record.h: Update the declaration of 'record_debug'.
1629         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1630         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1631         add_setshow_zinteger_cmd.
1632         * serial.c (global_serial_debug_p): Add 'unsigned'.
1633         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1634         add_setshow_zinteger_cmd.
1635         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1636         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1637         add_setshow_zinteger_cmd.
1638         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1639         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1640         add_setshow_zinteger_cmd.
1641         * target.c (targetdebug): Add 'unsigned'.
1642         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1643         add_setshow_zinteger_cmd.
1644         * valops.c (overload_debug): Add 'unsigned'.
1645         * varobj.c (varobjdebug): Add 'unsigned'.
1646         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1647         add_setshow_zinteger_cmd.
1648         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1649         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1650         instead of add_setshow_zinteger_cmd.
1651
1652         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1653         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1654         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1655         instead of add_setshow_zinteger_cmd.
1656         * gdbarch.c, gdbarch.h: Re-generated.
1657
1658 2012-08-02  Yao Qi  <yao@codesourcery.com>
1659
1660         * nto-tdep.c: Don't include cli/cli-decode.h and
1661         cli/cli-cmds.h.
1662         (_initialize_nto_tdep): Remove.
1663         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1664         Remove field.
1665         Remove macro nto_internal_debugging.
1666
1667 2012-08-01  Richard Henderson  <rth@redhat.com>
1668
1669         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1670         (mep-*-*) [gdb_target_obs]: Likewise.
1671
1672 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1673
1674         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1675         linux_get_siginfo_type.
1676
1677 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1678
1679         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1680         AT_ENTRY_POINT.
1681         (call_function_by_hand) <ON_STACK>: Call write_memory with
1682         gdbarch_breakpoint_from_pc, if possible.
1683         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1684         here.
1685
1686 2012-07-31  Yao Qi  <yao@codesourcery.com>
1687
1688         * tracepoint.c: Add 'static' for some variables.
1689
1690 2012-07-31  Yao Qi  <yao@codesourcery.com>
1691
1692         * go32-nat.c: Declare _initialize_go32_nat.
1693         * ser-go32.c: Declare _initialize_ser_dos.
1694         * top.c (do_chdir_cleanup): Add 'static'.
1695
1696 2012-07-30  Keith Seitz  <keiths@redhat.com>
1697
1698         * linespec.c (linespec_lex_number): A number followed
1699         by quotes is a valid number, too.
1700
1701 2012-07-30  Tom Tromey  <tromey@redhat.com>
1702
1703         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1704
1705 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1706
1707         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1708         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1709
1710 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1711
1712         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1713         invalid or reevaluated to prevent prevent references to possibly
1714         delete'd type objects being left in the varobj.
1715
1716 2012-07-27  Tom Tromey  <tromey@redhat.com>
1717             Jan Kratochvil  <jan.kratochvil@redhat.com>
1718
1719         * copying.awk: Print buffer-read-only and vi ro markers.
1720         * copying.c: Rebuild.
1721         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1722         * gdbarch.c, gdbarch.h: Rebuild.
1723         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1724         buffer-read-only and vi ro markers.
1725         * features/arm-with-iwmmxt.c: Rebuild.
1726         * features/arm-with-m-fpa-layout.c: Rebuild.
1727         * features/arm-with-m-vfp-d16.c: Rebuild.
1728         * features/arm-with-m.c: Rebuild.
1729         * features/arm-with-neon.c: Rebuild.
1730         * features/arm-with-vfpv2.c: Rebuild.
1731         * features/arm-with-vfpv3.c: Rebuild.
1732         * features/i386/amd64-avx-linux.c: Rebuild.
1733         * features/i386/amd64-avx.c: Rebuild.
1734         * features/i386/amd64-linux.c: Rebuild.
1735         * features/i386/amd64.c: Rebuild.
1736         * features/i386/i386-avx-linux.c: Rebuild.
1737         * features/i386/i386-avx.c: Rebuild.
1738         * features/i386/i386-linux.c: Rebuild.
1739         * features/i386/i386-mmx-linux.c: Rebuild.
1740         * features/i386/i386-mmx.c: Rebuild.
1741         * features/i386/i386.c: Rebuild.
1742         * features/i386/x32-avx-linux.c: Rebuild.
1743         * features/i386/x32-avx.c: Rebuild.
1744         * features/i386/x32-linux.c: Rebuild.
1745         * features/i386/x32.c: Rebuild.
1746         * features/mips-dsp-linux.c: Rebuild.
1747         * features/mips-linux.c: Rebuild.
1748         * features/mips64-dsp-linux.c: Rebuild.
1749         * features/mips64-linux.c: Rebuild.
1750         * features/rs6000/powerpc-32.c: Rebuild.
1751         * features/rs6000/powerpc-32l.c: Rebuild.
1752         * features/rs6000/powerpc-403.c: Rebuild.
1753         * features/rs6000/powerpc-403gc.c: Rebuild.
1754         * features/rs6000/powerpc-405.c: Rebuild.
1755         * features/rs6000/powerpc-505.c: Rebuild.
1756         * features/rs6000/powerpc-601.c: Rebuild.
1757         * features/rs6000/powerpc-602.c: Rebuild.
1758         * features/rs6000/powerpc-603.c: Rebuild.
1759         * features/rs6000/powerpc-604.c: Rebuild.
1760         * features/rs6000/powerpc-64.c: Rebuild.
1761         * features/rs6000/powerpc-64l.c: Rebuild.
1762         * features/rs6000/powerpc-7400.c: Rebuild.
1763         * features/rs6000/powerpc-750.c: Rebuild.
1764         * features/rs6000/powerpc-860.c: Rebuild.
1765         * features/rs6000/powerpc-altivec32.c: Rebuild.
1766         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1767         * features/rs6000/powerpc-altivec64.c: Rebuild.
1768         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1769         * features/rs6000/powerpc-cell32l.c: Rebuild.
1770         * features/rs6000/powerpc-cell64l.c: Rebuild.
1771         * features/rs6000/powerpc-e500.c: Rebuild.
1772         * features/rs6000/powerpc-e500l.c: Rebuild.
1773         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1774         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1775         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1776         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1777         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1778         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1779         * features/rs6000/powerpc-vsx32.c: Rebuild.
1780         * features/rs6000/powerpc-vsx32l.c: Rebuild.
1781         * features/rs6000/powerpc-vsx64.c: Rebuild.
1782         * features/rs6000/powerpc-vsx64l.c: Rebuild.
1783         * features/rs6000/rs6000.c: Rebuild.
1784         * features/s390-linux32.c: Rebuild.
1785         * features/s390-linux32v1.c: Rebuild.
1786         * features/s390-linux32v2.c: Rebuild.
1787         * features/s390-linux64.c: Rebuild.
1788         * features/s390-linux64v1.c: Rebuild.
1789         * features/s390-linux64v2.c: Rebuild.
1790         * features/s390x-linux64.c: Rebuild.
1791         * features/s390x-linux64v1.c: Rebuild.
1792         * features/s390x-linux64v2.c: Rebuild.
1793         * features/tic6x-c62x-linux.c: Rebuild.
1794         * features/tic6x-c62x.c: Rebuild.
1795         * features/tic6x-c64x-linux.c: Rebuild.
1796         * features/tic6x-c64x.c: Rebuild.
1797         * features/tic6x-c64xp-linux.c: Rebuild.
1798         * features/tic6x-c64xp.c: Rebuild.
1799
1800 2012-07-27  Tom Tromey  <tromey@redhat.com>
1801
1802         * c-exp.y (classify_name): Avoid assignment in condition.
1803
1804 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
1805
1806         * amd64-windows-tdep.c: Include "frame.h".
1807         (amd64_windows_skip_trampoline_code): New function.
1808         (amd64_windows_init_abi): Add trampoline registration.
1809
1810 2012-07-27  Yao Qi  <yao@codesourcery.com>
1811
1812         * tracepoint.c (cur_traceframe_number): Remove.
1813         (set_tfile_traceframe): Remove.
1814         (tfile_trace_find, tfile_fetch_registers): Update callers.
1815         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1816         (tfile_open, tfile_trace_find): Likewise.
1817
1818 2012-07-27  Yao Qi  <yao@codesourcery.com>
1819
1820         * thread.c (switch_to_thread): Don't call registers_changed.
1821
1822 2012-07-26  Tom Tromey  <tromey@redhat.com>
1823
1824         * Makefile.in (SFILES): Remove objc-exp.y.
1825         (YYFILES): Remove objc-exp.c.
1826         (YYOBJ): Remove objc-exp.o.
1827         (local-maintainer-clean): Don't mention objc-exp.c.
1828         * c-exp.y: Include objc-lang.h.
1829         (%union) <class>: New field.
1830         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1831         (exp): Clone subscript production for OBJC_LBRAC.  Add various
1832         Objective C productions.
1833         (msglist, msgarglist, msgarg): New productions.
1834         (array_mod, func_mod, operator): Clone productions for
1835         OBJC_LBRAC.
1836         (parse_string_or_char): Handle '@' strings.
1837         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
1838         (classify_name): Check la_name_of_this.  Recognize ObjC class
1839         names.
1840         * objc-exp.y: Remove.
1841         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1842         * objc-lang.h (objc_parse, objc_error): Don't declare.
1843
1844 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
1845
1846         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1847
1848 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1849
1850         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1851         and decrement.
1852
1853 2012-07-26  Tom Tromey  <tromey@redhat.com>
1854
1855         * copying.c: Rebuild.
1856         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
1857         'no_class'.
1858
1859 2012-07-26  Tom Tromey  <tromey@redhat.com>
1860
1861         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1862         immediate_quit.
1863         (print_objfile_statistics): Likewise.
1864         (maintenance_print_symbols): Likewise.
1865         (maintenance_print_msymbols): Likewise.
1866         (maintenance_print_objfiles): Likewise.
1867         * psymtab.c (print_partial_symbols): Call QUIT.
1868         (maintenance_print_psymbols): Likewise.  Don't modify
1869         immediate_quit.
1870         * copying.c (show_copying_command): Don't modify immediate_quit.
1871         (show_warranty_command): Likewise.
1872         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1873
1874 2012-07-26  Keith Seitz  <keiths@redhat.com>
1875
1876         * linespec.c (linespec_lexer_lex_number): The input
1877         is also a valid number if the next character is a comma
1878         or colon.
1879
1880 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
1881
1882         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1883         configure options.
1884
1885 2012-07-26  Tristan Gingold  <gingold@adacore.com>
1886
1887         * machoread.c: Include gdb_bfd.h.
1888
1889 2012-07-26  Tristan Gingold  <gingold@adacore.com>
1890
1891         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1892         offset.
1893
1894 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1895
1896         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1897         SIZE to size_t.
1898         (dwarf2_evaluate_loc_desc): Likewise.
1899         (dwarf2_loc_desc_needs_frame): Likewise.
1900         (locexpr_describe_location_1): Likewise.
1901         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1902         size_t.
1903         (struct dwarf2_loclist_baton): Likewise.
1904         * dwarf2read.c (struct dwarf_block): Likewise.
1905         (dump_die_shallow): Use pulongest to print dwarf_block.size.
1906         (decode_locdesc): Expand SIZE and I to size_t.
1907
1908 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1909
1910         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1911
1912 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
1913
1914         * doublest.c (convert_doublest_to_floatformat): If the exponent
1915         is too small, treat the value as zero.  If the exponent is too
1916         large, treat the value as infinity.
1917
1918 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
1919
1920         * configure.ac: Add --enable-lmcheck configure option.
1921         * configure: Regenerate.
1922
1923 2012-07-25  Tom Tromey  <tromey@redhat.com>
1924
1925         * NEWS: Mention maint info bfds.
1926         * gdb_bfd.c (all_bfds): New global.
1927         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1928         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1929         New functions.
1930
1931 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
1932
1933         * configure.tgt: Add v850*-*-rtems*.
1934
1935 2012-07-25  Tom Tromey  <tromey@redhat.com>
1936
1937         * macrotab.c (macro_bcache_str): Remove cast.
1938
1939 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
1940
1941         * linespec.c (linespec_lexer_lex_number): Update comments,
1942         change the return and add check to make sure the input is
1943         the decimal numbers.
1944         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1945         false, call linespec_lexer_lex_string.
1946
1947 2012-07-24  Tom Tromey  <tromey@redhat.com>
1948
1949         * symfile.c (symbol_file_add): Don't open BFD twice.
1950
1951 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
1952
1953         * breakpoint.c (create_breakpoint): Store condition for pending
1954         breakpoints.
1955
1956 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
1957
1958         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1959         (m68k_return_value): Handle complex types like structures.
1960         (m68k_svr4_return_value): Likewise.
1961
1962 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1963
1964         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1965         parameters to bfd_get_section_name.
1966
1967 2012-07-24  Yao Qi  <yao@codesourcery.com>
1968
1969         * cli/cli-setshow.c: Handle case 'var_uinteger'
1970         and 'var_zuninteger' together.  Handle case 'var_integer' and
1971         'var_zinteger' together.
1972
1973 2012-07-23  Keith Seitz  <keiths@redhat.com>
1974
1975         * linespec.c (convert_linespec_to_sal): Don't add
1976         any symbols to the result vector if symbol_to_sal
1977         returns zero.
1978
1979 2012-07-23  Keith Seitz  <keiths@redhat.com>
1980
1981         * linespec.c (decode_objc): Record the function name
1982         in the linespec.
1983
1984 2012-07-23  Tom Tromey  <tromey@redhat.com>
1985
1986         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
1987         counting.
1988         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1989         (map_vmap): Acquire a reference to the BFD.
1990
1991 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1992
1993         * p-valprint.c (pascal_object_print_value): Replace potentially
1994         unsafe alloca with xmalloc/xfree.
1995         * valops.c (search_struct_method): Likewise.
1996
1997 2012-07-23  Tom Tromey  <tromey@redhat.com>
1998
1999         * solib-svr4.c (enable_break): Update.
2000         * bfd-target.h (target_bfd_reopen): Update documentation.
2001
2002 2012-07-23  Tom Tromey  <tromey@redhat.com>
2003
2004         * symfile.c (separate_debug_file_exists): Update.
2005         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2006         (reread_symbols): Update.
2007         * elfread.c (build_id_verify): Update.
2008         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2009         bfd_open_maybe_remote.
2010
2011 2012-07-23  Tom Tromey  <tromey@redhat.com>
2012
2013         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2014
2015 2012-07-23  Tom Tromey  <tromey@redhat.com>
2016
2017         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2018         and 'abfd'.
2019         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2020         and 'abfd'.
2021         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2022         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2023         'abfd'.
2024         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2025         * objfiles.c (allocate_objfile): Acquire a new reference.
2026         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2027         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2028         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2029         a cleanup for 'nbfd'.
2030         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2031         for 'nbfd'.
2032         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2033         make a cleanup for 'abfd'.
2034         (symbol_file_add): Make a BFD cleanup.
2035
2036 2012-07-23  Tom Tromey  <tromey@redhat.com>
2037
2038         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2039         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2040         * corelow.c (core_open): Use gdb_bfd_fopen.
2041         * dsrec.c (load_srec): Use gdb_bfd_openr.
2042         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2043         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2044         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2045         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2046         (gdb_bfd_fdopenr): New functions.
2047         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2048         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2049         (gdb_bfd_fdopenr): Declare.
2050         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2051         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2052         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2053         gdb_bfd_openr_next_archived_file.
2054         (macho_check_dsym): Use gdb_bfd_openr.
2055         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2056         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2057         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2058         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2059         gdb_bfd_openr.
2060         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2061         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2062         gdb_bfd_openr_next_archived_file.
2063         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2064         Use gdb_bfd_openr.
2065         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2066         gdb_bfd_openr.
2067         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2068         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2069         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2070         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2071         (symfile_bfd_open): Use gdb_bfd_fopen.
2072         (generic_load): Use gdb_bfd_openr.
2073         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2074
2075 2012-07-23  Tom Tromey  <tromey@redhat.com>
2076
2077         * bfd-target.c (target_bfd_reopen): Update.
2078         * cli/cli-dump.c (bfd_openr_with_cleanup)
2079         (bfd_openw_with_cleanup): Update.
2080         * corelow.c (core_open): Update.
2081         * dsrec.c (load_srec): Update.
2082         * exec.c (exec_file_attach): Update.
2083         * gcore.c (create_gcore_bfd): Update.
2084         * gdb_bfd.c (gdb_bfd_ref): Return void.
2085         (gdb_bfd_open): Update.
2086         * gdb_bfd.h (gdb_bfd_ref): Return void.
2087         Update comments.
2088         * jit.c (jit_bfd_try_read_symtab): Update.
2089         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2090         * machoread.c (macho_symfile_read_all_oso): Update.
2091         (macho_check_dsym): Update.
2092         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2093         * remote-m32r-sdi.c (m32r_load): Update.
2094         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2095         * rs6000-nat.c (add_vmap): Update.
2096         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2097         Update.
2098         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2099         * solib-spu.c (spu_bfd_open): Update.
2100         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2101         * spu-linux-nat.c (spu_bfd_open): Update.
2102         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2103         (generic_load): Update.
2104         * windows-nat.c (windows_make_so): Update.
2105
2106 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2107
2108         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2109
2110 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2111
2112         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2113         SIGTRAMP_FRAME unwinding.
2114
2115 2012-07-20  Doug Evans  <dje@google.com>
2116
2117         * NEWS: Document new options "set/show use-deprecated-index-sections",
2118         and delete reference to --use-deprecated-index-sections.
2119         * symfile.h (use_deprecated_index_sections): Delete.
2120         * dwarf2read.c (use_deprecated_index_sections): Make static.
2121         (read_index_from_section): Update wording of how to load
2122         deprecated index sections.
2123         (_initialize_dwarf2_read): New options
2124         "set/show use-deprecated-index-sections".
2125         * main.c (captured_main): Delete --use-deprecated-index-sections.
2126
2127 2012-07-20  Pedro Alves  <palves@redhat.com>
2128
2129         PR threads/11692
2130         PR gdb/12203
2131
2132         * infrun.c (handle_inferior_event) <new thread>: Don't special
2133         case minus_one_ptid.
2134         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2135         * linux-thread-db.c (thread_get_info_callback): Don't return early
2136         if the thread is zombie.
2137         (thread_from_lwp): Change return type to void.  Rewrite stale
2138         comment.
2139         (attach_thread): Don't return early if the thread is zombie,
2140         instead set its "dying" flag.
2141         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2142         (find_new_threads_callback): Don't return early if the thread is
2143         zombie.
2144
2145 2012-07-20  Pedro Alves  <palves@redhat.com>
2146
2147         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2148         * target.c (target_wait): Likewise.
2149         (str_comma_list_concat_elem, do_option, target_options_to_string):
2150         New functions.
2151         * target.h (target_options_to_string): Declare.
2152
2153 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2154             Tom Tromey  <tromey@redhat.com>
2155
2156         * dwarf2read.c (dwarf_decode_macros)
2157         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2158         DW_MACRO_GNU_transparent_include_alt>: New cases.
2159         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2160         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2161
2162 2012-07-20  Tom Tromey  <tromey@redhat.com>
2163
2164         * dwarf2read.c (try_open_dwo_file): Don't call
2165         gdb_bfd_stash_filename.
2166
2167 2012-07-20  Pedro Alves  <palves@redhat.com>
2168
2169         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2170         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2171         (i386_process_record): Tweak description comments.
2172
2173 2012-07-20  Pedro Alves  <palves@redhat.com>
2174
2175         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2176         (i386_process_record): Use record_read_memory.
2177         * record.c (record_read_memory): New function.
2178         (record_arch_list_add_mem, record_exec_insn): Use
2179         record_read_memory.
2180         * record.h (record_read_memory): Declare.
2181
2182 2012-07-20  Yao Qi  <yao@codesourcery.com>
2183
2184         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2185         NULL for xfree.
2186
2187 2012-07-19  Pedro Alves  <palves@redhat.com>
2188
2189         * record.c (record_resume): Ask the target beneath to report all
2190         signals.
2191
2192 2012-07-19  Doug Evans  <dje@google.com>
2193
2194         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2195         there's no section at address zero.
2196         (dwarf2_record_block_ranges): Ditto.
2197
2198 2012-07-19  Yao Qi  <yao@codesourcery.com>
2199
2200         * command.h, remote.c: Fix a typo in comment.
2201
2202 2012-07-19  Tom Tromey  <tromey@redhat.com>
2203
2204         PR exp/13206:
2205         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2206         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2207         OP_DECLTYPE>: New cases.
2208         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2209         (type_exp): Add new productions.
2210         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2211         and decltype.
2212         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2213         New case.
2214         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2215         OP_DECLTYPE>: New case.
2216         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2217         New case.
2218         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2219         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2220
2221 2012-07-19  Tom Tromey  <tromey@redhat.com>
2222
2223         * c-exp.y (enum token_flags): New.
2224         (struct token) <cxx_only>: Remove.
2225         <flags>: New field.
2226         (tokentab3, tokentab2, ident_tokens): Update.
2227         (lex_one_token): Update.  Handle FLAG_SHADOW.
2228
2229 2012-07-19  Tom Tromey  <tromey@redhat.com>
2230
2231         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2232         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2233         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2234         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2235         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2236         type_exp production where appropriate.
2237         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2238         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2239         <UNOP_MEMVAL_TYPE>: New case.
2240         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2241         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2242         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2243         <UNOP_MEMVAL_TYPE>: New case.
2244         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2245         UNOP_REINTERPRET_CAST>: Update.
2246         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2247         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2248         UNOP_REINTERPRET_CAST>: Update.
2249         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2250         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2251         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2252         constants.
2253
2254 2012-07-19  Yao Qi  <yao@codesourcery.com>
2255             Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2258         and case 'var_optional_filename' together.
2259         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2260         instead of add_setshow_optional_filename_cmd for setshow command
2261         'args'.  Set completer for 'set args'.
2262
2263 2012-07-18  Doug Evans  <dje@google.com>
2264
2265         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2266         * common/gdb_vecs.c: New file, contents from utils.c.
2267         * common/host-defs.h: New file, contents from defs.h.
2268         * utils.h: New file, contents from defs.h.
2269         * defs.h: Move all declarations of objects defined in utils.c
2270         to utils.h (except QUIT() and related).
2271         #include "utils.h", "host-defs.h".
2272         * probe.h (probe_p): Move here from gdb_vecs.h.
2273         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2274         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2275         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2276         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2277         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2278         (COMMON_OBS): Add gdb_vecs.o.
2279         (gdb_vecs.o): New rule.
2280
2281 2012-07-18  Keith Seitz  <keiths@redhat.com>
2282
2283         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2284         parameter.  If non-zero, use SYMNAME as the canonical name
2285         for the SaL.
2286         Update all callers.
2287         (convert_linespec_to_sals): Use add_sal_to_sals for
2288         expressions, too.
2289         (decode_line_full): No need to "fill in missing canonical names"
2290         anymore. Simply make cleanups for the allocated names.
2291
2292 2012-07-18  Keith Seitz  <keiths@redhat.com>
2293
2294         * linespec.c (struct linespec): Constify expression,
2295         source_filename, function_name, and label_name.
2296         (symbol_not_found_error): Make all parameters const.
2297         (linespec_parser_delete): No need to check for NULL
2298         when using xfree. Cast const char * to char * for xfree.
2299
2300 2012-07-18  Keith Seitz  <keiths@redhat.com>
2301
2302         * breakpoint.c (invalid_thread_id_error): New function.
2303         (find_condition_and_thread): Use invalid_thread_id_error.
2304         (watch_command_1): Likewise.
2305
2306 2012-07-18  Tom Tromey  <tromey@redhat.com>
2307
2308         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2309         * contrib/cc-with-tweaks.sh: New file.
2310
2311 2012-07-18  Tom Tromey  <tromey@redhat.com>
2312
2313         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2314         (locate_dwz_sections): Recognize .gdb_index.
2315         (create_cus_from_index_list): New function.
2316         (create_cus_from_index): Use it.  Handle .dwz data.
2317         (read_index_from_section): New function, extracted from
2318         dwarf2_read_index.
2319         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2320         if needed.
2321
2322 2012-07-18  Tom Tromey  <tromey@redhat.com>
2323
2324         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2325         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2326         <is_dwz>: New field.
2327         (struct dwz_file): New.
2328         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2329         (locate_dwz_sections, dwarf2_get_dwz_file)
2330         (get_abbrev_section_for_cu): New functions.
2331         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2332         (read_and_check_type_unit_head): Add abbrev_section argument.
2333         (create_debug_types_hash_table): Update.
2334         (init_cutu_and_read_dies): Use proper abbrev section.
2335         (init_cutu_and_read_dies_no_follow): Likewise.
2336         (set_partial_user): Do nothing if PST==NULL.
2337         (read_comp_units_from_section): New function.
2338         (create_all_comp_units): Use it.
2339         (scan_partial_symbols, partial_die_parent_scope): Update.
2340         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2341         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2342         (find_partial_die): Add offset_in_dwz argument.  Update.
2343         (guess_partial_die_structure_name, fixup_partial_die): Update.
2344         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2345         DW_FORM_GNU_strp_alt.
2346         (read_indirect_string_from_dwz): New function.
2347         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2348         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2349         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2350         (follow_die_offset): Add offset_in_dwz argument.
2351         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2352         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2353         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2354         Handle new macro forms.
2355         (dwarf_decode_macros): Update.
2356         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2357         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2358         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2359         (create_debug_types_hash_table): Use correct abbrev section.
2360         (get_debug_line_section): New function.
2361         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2362         (process_full_comp_unit): Pass 'required' argument to
2363         end_symtab_get_static_block.
2364         * buildsym.h (end_symtab_get_static_block): Update.
2365         * buildsym.c (end_symtab_get_static_block): Add 'required'
2366         argument.
2367         (end_symtab, end_expandable_symtab): Update.
2368
2369 2012-07-18  Tom Tromey  <tromey@redhat.com>
2370
2371         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2372         (pagesize): Remove.
2373         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2374         (zlib_decompress_section): Remove.
2375         (dwarf2_read_section): Use gdb_bfd_map_section.
2376         (munmap_section_buffer): Remove.
2377         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2378         munmap_section_buffer.
2379         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2380         (struct gdb_bfd_section_data): New.
2381         (free_one_bfd_section): New function.
2382         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2383         (get_section_descriptor, zlib_decompress_section)
2384         (gdb_bfd_map_section): New functions.
2385         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2386
2387 2012-07-18  Tom Tromey  <tromey@redhat.com>
2388
2389         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2390
2391 2012-07-18  Tom Tromey  <tromey@redhat.com>
2392
2393         * gdb_bfd.c (struct gdb_bfd_data): New.
2394         (gdb_bfd_cache): New global.
2395         (struct gdb_bfd_cache_search): New.
2396         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2397         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2398         * gdb_bfd.h (gdb_bfd_open): Declare.
2399
2400 2012-07-18  Tom Tromey  <tromey@redhat.com>
2401
2402         * utils.c (make_cleanup_bfd_unref): Rename from
2403         make_cleanup_bfd_close.
2404         * defs.h (make_cleanup_bfd_unref): Rename from
2405         make_cleanup_bfd_close.
2406         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2407         (bfd_openw_with_cleanup): Update.
2408         * corelow.c (core_open): Update.
2409         * dsrec.c (load_srec): Update.
2410         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2411         * remote-m32r-sdi.c (m32r_load): Update.
2412         * remote-mips.c (mips_load_srec): Update.
2413         (pmon_load_fast): Update.
2414         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2415         Update.
2416         (darwin_bfd_open): Update.
2417         * solib.c (solib_bfd_fopen): Update.
2418         * symfile-mem.c (symbol_file_add_from_memory): Update.
2419         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2420         (symfile_bfd_open): Update.
2421         (generic_load): Update.
2422
2423 2012-07-18  Tom Tromey  <tromey@redhat.com>
2424
2425         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2426         (pmon_load_fast): Likewise.
2427         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2428         (m32r_upload_command): Likewise.
2429         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2430         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2431         Use make_cleanup_bfd_close.
2432
2433 2012-07-18  Tom Tromey  <tromey@redhat.com>
2434
2435         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2436         gdb_bfd_stash_filename.
2437         (load_command): Open the new BFD before freeing the old.
2438         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2439         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2440         Call gdb_bfd_stash_filename.
2441         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2442         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2443         gdb_bfd_stash_filename.
2444         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2445         Free found_pathname.
2446         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2447         gdb_bfd_stash_filename.
2448         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2449         * machoread.c (macho_add_oso_symfile): Call
2450         gdb_bfd_stash_filename.
2451         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2452         gdb_bfd_stash_filename.
2453         (macho_check_dsym): Don't copy filename.  Call
2454         gdb_bfd_stash_filename.
2455         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2456         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2457         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2458         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2459         * exec.c (exec_close): Don't free the BFD's filename.
2460         (exec_file_attach): Don't copy the filename.  Call
2461         gdb_bfd_stash_filename.
2462         * corelow.c (core_close): Don't free the BFD's filename.
2463         (core_open): Call gdb_bfd_stash_filename.
2464         * corefile.c (reopen_exec_file): Remove #if 0 code.
2465         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2466         pathname.
2467         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2468
2469 2012-07-18  Tom Tromey  <tromey@redhat.com>
2470
2471         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2472         gdb_bfd_unref.
2473         (free_dwo_file): Use gdb_bfd_unref.
2474         * cli/cli-dump.c: Include gdb_bfd.h.
2475         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2476         (bfd_openr_with_cleanup): Likewise.
2477         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2478         gdb_bfd_unref.
2479         * utils.c: Include gdb_bfd.h.
2480         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2481         * symfile.c: Include gdb_bfd.h.
2482         (separate_debug_file_exists): Use gdb_bfd_unref.
2483         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2484         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2485         (generic_load): Use gdb_bfd_ref.
2486         (reread_symbols): Use gdb_bfd_unref.
2487         * symfile-mem.c: Include gdb_bfd.h.
2488         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2489         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2490         * solib.c: Include gdb_bfd.h.
2491         (solib_bfd_fopen): Use gdb_bfd_ref.
2492         (solib_bfd_open): Use gdb_bfd_unref.
2493         (free_so_symbols): Use gdb_bfd_unref.
2494         (reload_shared_libraries_1): Use gdb_bfd_unref.
2495         * solib-spu.c: Include gdb_bfd.h.
2496         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2497         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2498         gdb_bfd_unref.
2499         * solib-frv.c: Include gdb_bfd.h.
2500         (enable_break2): Use gdb_bfd_unref.
2501         * solib-dsbt.c: Include gdb_bfd.h.
2502         (enable_break2): Use gdb_bfd_unref.
2503         * solib-darwin.c: Include gdb_bfd.h.
2504         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2505         gdb_bfd_unref.
2506         (darwin_bfd_open): Use gdb_bfd_unref.
2507         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2508         * remote-mips.c: Include gdb_bfd.h.
2509         (mips_load_srec): Use gdb_bfd_ref.
2510         (pmon_load_fast): Use gdb_bfd_ref.
2511         * remote-m32r-sdi.c: Include gdb_bfd.h.
2512         (m32r_load): Use gdb_bfd_ref.
2513         * record.c: Include gdb_bfd.h.
2514         (record_save_cleanups): Use gdb_bfd_unref.
2515         (cmd_record_save): Use gdb_bfd_unref.
2516         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2517         gdb_bfd_unref.
2518         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2519         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2520         * objfiles.c: Include gdb_bfd.h.
2521         (free_objfile): Use gdb_bfd_unref.
2522         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2523         gdb_bfd.c.
2524         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2525         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2526         (macho_check_dsym): Likewise.
2527         * m32r-rom.c: Include gdb_bfd.h.
2528         (m32r_load): Use gdb_bfd_ref.
2529         (m32r_upload_command): Use gdb_bfd_ref.
2530         * jit.c: Include gdb_bfd.h.
2531         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2532         * gdb_bfd.h: New file.
2533         * gdb_bfd.c: New file.
2534         * gcore.c: Include gdb_bfd.h.
2535         (create_gcore_bfd): Use gdb_bfd_ref.
2536         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2537         (gcore_command): Use gdb_bfd_unref.
2538         * exec.c: Include gdb_bfd.h.
2539         (exec_close): Use gdb_bfd_unref.
2540         (exec_close_1): Use gdb_bfd_unref.
2541         (exec_file_attach): Use gdb_bfd_ref.
2542         * elfread.c: Include gdb_bfd.h.
2543         (build_id_verify): Use gdb_bfd_unref.
2544         * dsrec.c: Include gdb_bfd.h.
2545         (load_srec): Use gdb_bfd_ref.
2546         * corelow.c: Include gdb_bfd.h.
2547         (core_close): Use gdb_bfd_unref.
2548         (core_open): Use gdb_bfd_ref.
2549         * bfd-target.c: Include gdb_bfd.h.
2550         (target_bfd_xclose): Use gdb_bfd_unref.
2551         (target_bfd_reopen): Use gdb_bfd_ref.
2552         * Makefile.in (SFILES): Add gdb_bfd.c.
2553         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2554         (COMMON_OBS): Add gdb_bfd.o.
2555
2556 2012-07-18  Keith Seitz  <keiths@redhat.com>
2557
2558         * breakpoint.c (find_condition_and_thread): Initialize
2559         TASK and REST.
2560         (create_breakpiont): find_condition_and_thread will now
2561         initialize COND_STRING, THREAD, and REST (and TASK).
2562         (addr_string_to_sals): Likewise.
2563
2564 2012-07-18  Pedro Alves  <palves@redhat.com>
2565
2566         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2567         Pull the single step breakpoints out of the target.
2568
2569 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2570
2571         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2572         * stap-probe.c (compile_probe_arg): Likewise.
2573
2574 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2575
2576         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2577         (elf_compile_to_ax): Likewise.
2578         * infrun.c (insert_exception_resume_from_probe): Likewise.
2579         (check_exception_resume): Remove `objfile' variable.
2580         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2581         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2582         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2583         (compare_entries): Rename to...
2584         (compare_probes): ...this.  Adjust function to work with
2585         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2586         respectively.
2587         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2588         `VEC (probe_p) *'.
2589         (print_ui_out_info): Adjust argument to be `struct probe *'.
2590         (info_probes_for_ops): Adjust internal computations to use
2591         `VEC (probe_p) *'.
2592         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2593         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2594         gen_info_probes_table_values>: Remove `objfile' argument.
2595         (struct probe) <objfile>: New field.
2596         (find_probe_by_pc): Remove `objfile' argument.
2597         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2598         (stap_get_probe_argument_count): Likewise.
2599         (stap_get_arg): Likewise.
2600         (stap_evaluate_probe_argument): Likewise.
2601         (stap_compile_to_ax): Likewise.
2602         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2603         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2604         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2605         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2606         sym_compile_to_ax>: Likewise.
2607
2608 2012-07-18  Terry Guo  <terry.guo@arm.com>
2609
2610         PR 14329
2611         * defs.h (GDB_MI_MSG_WIDTH): New.
2612         * ser_base (ser_base_read_error_fd): New function.
2613         (do_ser_base_readchar): Poll error file descriptor as well as
2614         standard output.
2615         (generic_readchar): Refactor error handling.
2616
2617 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2618
2619         * NEWS: Create a new section for the next release branch.
2620         Rename the section of the current branch, now that it has
2621         been cut.
2622
2623 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2624
2625         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2626         * version.in: Bump version to 7.5.50.20120718-cvs.
2627
2628 2012-07-17  Keith Seitz  <keiths@redhat.com>
2629
2630         * linespec.c (linespec_parse_line_offset): Make parameter
2631         const.
2632
2633 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2634
2635         PR 11914
2636         * f-valprint.c (info_common_command): New variable frame_id.
2637         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2638         * printcmd.c (print_variable_and_value): Extend function comment.
2639         Add comment for invalidated FRAME.
2640         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2641         FI form FRAME_ID after each print_frame_local_vars.
2642         (struct print_variable_and_value_data): Change frame to frame_id.
2643         (do_print_variable_and_value): New variable frame, initialize it from
2644         p->frame_id.  Add comment for invalidated FRAME.
2645         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2646         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2647         for invalidated FRAME.
2648
2649 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2650             Pedro Alves  <palves@redhat.com>
2651
2652         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2653         loop.
2654
2655 2012-07-16  Tom Tromey  <tromey@redhat.com>
2656
2657         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2658
2659 2012-07-15  Doug Evans  <dje@google.com>
2660
2661         * dwarf2read.c (stmt_list_hash): New struct.
2662         (type_unit_group): Embed "per_cu" member, remove pointer.
2663         New union member "t", move member "tus" into it, all uses updated.
2664         New member "hash", replaces member "line_offset, all uses updated.
2665         (quick_file_names): Replace member "offset" with "hash", all uses
2666         updated.
2667         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2668         (hash_file_name_entry, eq_file_name_entry): Call them.
2669         (hash_type_unit_group, eq_type_unit_group): Ditto.
2670         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2671         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2672         (dw2_get_file_names): Update.
2673         (create_type_unit_group): Replace "per_cu" arg with "cu".
2674         All callers updated.  Fix "quick" (.gdb_index) handling.
2675         (get_type_unit_group): Replace "per_cu" arg with "cu".
2676         All callers updated.
2677         (build_type_unit_groups): Don't reset tu_stats.
2678
2679         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2680         "tab_cur_size".  Change member "tab" to be a htab_t.
2681         (create_filename_seen_cache): Update.
2682         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2683         (filename_seen): Update.
2684
2685 2012-07-13  Doug Evans  <dje@google.com>
2686
2687         * symtab.c (filename_seen): Update comment.
2688
2689 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2690             Doug Evans  <dje@google.com>
2691
2692         * buildsym.c (end_symtab_1): Split it to ...
2693         (end_symtab_get_static_block): ... this ...
2694         (end_symtab_from_static_block): ... and this function.
2695         (end_symtab, end_expandable_symtab): Call them.
2696         * buildsym.h (end_symtab_get_static_block)
2697         (end_symtab_from_static_block): New declarations.
2698         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2699         Set its valid CU ranges.
2700
2701 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2702
2703         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2704         DW_OP_GNU_parameter_ref.
2705
2706 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2707
2708         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2709         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2710
2711 2012-07-13  Doug Evans  <dje@google.com>
2712
2713         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2714         (filename_seen_cache): New struct.
2715         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2716         (create_filename_seen_cache): New function.
2717         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2718         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2719         updated.
2720         (output_source_filename_data): New struct.
2721         (output_source_filename): Delete arg "first".  New arg "data".
2722         All callers updated.
2723         (sources_info): Delete local "first".  New locals "data", "cleanups".
2724         Rewrite to use filename_seen_cache.
2725         (add_partial_filename_data): Delete member "first".  New member
2726         "filename_seen_cache".  All uses updated.
2727         (make_source_files_completion_list): Rewrite to use
2728         filename_seen_cache.
2729
2730 2012-07-12  Doug Evans  <dje@google.com>
2731
2732         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2733
2734 2012-07-10  Doug Evans  <dje@google.com>
2735
2736         PR gdb/13498
2737         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2738         all_type_unit_groups, type_unit_groups, tu_stats.
2739         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2740         All uses updated.  Add type_unit_group to union "s".
2741         (type_unit_group): New struct.
2742         (IS_TYPE_UNIT_GROUP): New macro.
2743         (abbrev_table): Delete unused member "section".
2744         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2745         (dw2_get_cu): Assert not used with type_unit_group.
2746         (dw2_get_primary_cu): New function.
2747         (dw2_build_type_unit_groups_reader): New function.
2748         (dw2_build_type_unit_groups): New function.
2749         (dw2_get_file_names): Assert not called on type units.
2750         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2751         Redo loop to iterate over type unit groups instead of type units.
2752         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2753         (read_abbrev_offset): New function.
2754         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2755         updated.
2756         (create_partial_symtab): New function.
2757         (process_psymtab_comp_unit_reader): Assert not used with type units.
2758         Call create_partial_symtab.
2759         (process_psymtab_type_unit): Delete.
2760         (hash_type_unit_group, eq_type_unit_group): New functions.
2761         (allocate_type_unit_groups_table): New function.
2762         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2763         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2764         (create_type_unit_group, get_type_unit_group): New functions.
2765         (tu_abbrev_offset): New struct.
2766         (sort_tu_by_abbrev_offset): New function.
2767         (add_type_unit_group_to_table): New function.
2768         (build_type_unit_groups): New function.
2769         (build_type_psymtabs_reader): New function.
2770         (build_type_psymtab_dependencies): New function.
2771         (build_type_psymtabs): Rewrite.
2772         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2773         is seen in a type unit.
2774         (process_queue): Move symtab expansion debugging printfs here.
2775         Call process_full_type_unit for type units.
2776         (compute_symtab_includes): Assert not called for type units.
2777         (process_cu_includes): Don't call compute_symtab_includes for
2778         type units.
2779         (process_full_type_unit): New function.
2780         (process_imported_unit_die): Flag an error if called for type units.
2781         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
2782         updated.  Assert not called for type units.
2783         (read_file_scope): Call dwarf2_start_symtab.
2784         (setup_type_unit_groups): New function.
2785         (read_type_unit_scope): Rewrite.
2786         (abbrev_table_read_table): Initialize abbrev_table->offset.
2787         (abbrev_table_free_cleanup): New function.
2788         (dwarf2_start_symtab): New function.
2789         (load_full_type_unit): Assert not called for type unit groups.
2790         * buildsym.c (finish_block_internal): New arg "expandable".
2791         All callers updated.
2792         (start_symtab): Move most contents to ...
2793         (restart_symtab): ... here.  New function.
2794         (reset_symtab_globals): New function.
2795         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
2796         Call reset_symtab_globals.
2797         (end_symtab, end_expandable_symtab): New functions.
2798         (set_missing_symtab, augment_type_symtab): New functions.
2799         * buildsym.h (end_expandable_symtab): Declare.
2800         (augment_type_symtab, restart_symtab): Declare.
2801         * psympriv.h (struct partial_symtab): New member "anonymous".
2802         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2803         anonymous psymtabs.
2804         (read_psymtabs_with_filename): Ditto.
2805         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2806         (expand_symtabs_matching_via_partial): Ditto.
2807         (dump_psymtab): Update.
2808         * dictionary.c (dict_add_pending): New function.
2809         * dictionary.h (dict_add_pending): Declare.
2810
2811 2012-07-09  Doug Evans  <dje@google.com>
2812
2813         * buildsym.c (start_subfile): Remove unnecessary check for
2814         name == NULL.
2815
2816         * psymtab.c (allocate_psymtab): Use host_address_to_string.
2817
2818         * dwarf2read.c (load_full_type_unit): Simplify.
2819
2820         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2821         to struct signatured_type **.  All uses updated.
2822
2823         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2824         All callers updated.
2825
2826 2012-07-09  Tom Tromey  <tromey@redhat.com>
2827
2828         * c-exp.y (check_parameter_typelist): New function.
2829         (parameter_typelist): Call it.
2830         * eval.c (make_params): Handle '(void)' case.
2831         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2832         '(void)' case.
2833
2834 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2835
2836         * common/linux-ptrace.c: Include gdb_assert.h.
2837         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2838         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2839         stdint.h.
2840         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2841         functions.
2842         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2843         * linux-nat.c (linux_child_post_attach)
2844         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2845
2846 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2847
2848         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2849         nptl <2.7 bug workaround for core files.
2850
2851 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2852
2853         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2854         clearing.
2855         (save_siginfo): Remove.
2856         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2857         call.
2858         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2859         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2860         * linux-nat.h (struct lwp_info): Remove field siginfo.
2861
2862 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2863
2864         Code cleanup for the next patch.
2865         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2866         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2867         call for it.
2868         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2869         (ia64_linux_stopped_data_address):
2870         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2871         the return value.
2872         * linux-nat.h (linux_nat_get_siginfo): Likewise.
2873         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2874         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2875         call for it.
2876
2877 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2878
2879         PR 14321
2880         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2881         Increase buffer sizes to 2x we need, not just 2x of the previous size.
2882
2883 2012-07-06  Tom Tromey  <tromey@redhat.com>
2884
2885         * c-exp.y (DOTDOTDOT): New token.
2886         (func_mod, exp): Use parameter_typelist.
2887         (parameter_typelist): New production.
2888         (tokentab3): Add "..." token.
2889         * eval.c (make_params): Handle varargs.
2890         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2891         varargs.
2892
2893 2012-07-06  Tom Tromey  <tromey@redhat.com>
2894
2895         PR exp/9608:
2896         * c-exp.y (%union) <tvec>: Change type.
2897         (func_mod): Now uses <tvec> type.
2898         (exp): Update for tvec change.
2899         (direct_abs_decl): Push the typelist.
2900         (func_mod): Return a typelist.
2901         (nonempty_typelist): Update for tvec change.
2902         * gdbtypes.c (lookup_function_type_with_arguments): New function.
2903         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2904         * parse.c (pop_type_list): New function.
2905         (push_typelist): New function.
2906         (follow_types): Handle tp_function_with_arguments.
2907         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
2908         (enum type_pieces) <tp_function_with_arguments>: New constant.
2909         (union type_stack_elt) <typelist_val>: New field.
2910         (push_typelist): Declare.
2911
2912 2012-07-06  Tom Tromey  <tromey@redhat.com>
2913
2914         * c-exp.y (%union) <type_stack>: New field.
2915         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
2916         (ptr_operator_ts): New production.
2917         (ptype): Update.
2918         * parse.c (type_stack_reserve): New function.
2919         (check_type_stack_depth): Use it.
2920         (pop_type_stack, append_type_stack, push_type_stack)
2921         (get_type_stack, type_stack_cleanup): New functions.
2922         (follow_types): Handle tp_type_stack.
2923         (_initialize_parse): Simplify initialization.
2924         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2925         constant.
2926         (union type_stack_elt) <stack_val>: New field.
2927         (get_type_stack, append_type_stack, push_type_stack)
2928         (type_stack_cleanup): Declare.
2929
2930 2012-07-06  Tom Tromey  <tromey@redhat.com>
2931
2932         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2933         Remove.
2934         (struct type_stack): New.
2935         * parse.c (type_stack, type_stack_size, type_stack_depth):
2936         Remove.
2937         (type_stack): New global.
2938         (parse_exp_in_context, check_type_stack_depth)
2939         (insert_into_type_stack, insert_type, push_type, push_type_int)
2940         (insert_type_address_space, pop_type, pop_type_int)
2941         (_initialize_parse): Update.
2942
2943 2012-07-06  Tom Tromey  <tromey@redhat.com>
2944
2945         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2946         Remove %type.
2947
2948 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2949
2950         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2951
2952 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2953             Jan Kratochvil  <jan.kratochvil@redhat.com>
2954
2955         * cp-valprint.c (cp_print_value): Replace potentially unsafe
2956         alloca with xmalloc/xfree.
2957
2958 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2959
2960         * MAINTAINERS (Write After Approval): Add myself to the list.
2961
2962 2012-07-05  Doug Evans  <dje@google.com>
2963
2964         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2965
2966 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
2967
2968         * ax-gdb.c (cli/cli-utils.h): New include.
2969         (linespec.h): Ditto.
2970         (agent_eval_command_one): New function.
2971         (agent_command_1): Ditto.
2972         (agent_command): Call function agent_command_1.
2973         (agent_eval_command): Ditto.
2974         (_initialize_ax_gdb): Change help for "maint agent"
2975         and "maint agent-eval".
2976
2977 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
2978
2979         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2980         * cli/cli-utils.c (check_for_argument): New function.
2981         * cli/cli-utils.h (check_for_argument): Ditto.
2982
2983 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
2984
2985         * NEWS: Mention x32 ABI support.
2986
2987 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
2988
2989         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2990         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2991
2992         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2993         and pc_regnum_from_eax to -1.  Update SP regnum from
2994         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2995         needed.
2996
2997         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2998         pc_regnum_from_eax.
2999
3000 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3001
3002         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3003         * dwarf2expr.h: Include gdbtypes.h.
3004         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3005         these forward declarations.
3006         (cu_offset, sect_offset): Move these ...
3007         * gdbtypes.h: Remove include dwarf2expr.h.
3008         (cu_offset, sect_offset): ... here.
3009
3010 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3011
3012         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3013         (amd64_linux_sigtramp_code): This.
3014         (amd64_x32_linux_sigtramp_code): New.
3015         (LINUX_SIGTRAMP_LEN): Updated.
3016         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3017
3018 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3019
3020         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3021
3022 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3023
3024         * config.in: Regenerate.
3025         * configure: Regenerate.
3026         * configure.ac: Remove check for gnu/libc-version.h.
3027         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3028         gnu/libc-version.h.
3029         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3030         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3031         inferior_has_bug.  Extend the comment.
3032
3033 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3034
3035         * linux-thread-db.c (inferior_has_bug): New function.
3036         (thread_db_find_new_threads_silently): Return boolean as checked by
3037         inferior_has_bug, describe it in the comments.
3038         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3039         earlier.  Abort the initialization if it returned non-zero.
3040         (thread_db_new_objfile): Exclude debug files.
3041         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3042         if UNTIL_NO_NEW,
3043
3044 2012-07-02  Doug Evans  <dje@google.com>
3045
3046         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3047         related to queue management.
3048
3049         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3050         instead of "debug dwarf2-die" in debugging printfs.
3051         (create_debug_info_hash_table_reader): Ditto.
3052         (create_debug_info_hash_table): Ditto.
3053         (init_dwo_file): Ditto.
3054         (init_cutu_and_read_dies): Add debugging printf.
3055         (init_cutu_and_read_dies_no_follow): Ditto.
3056         (process_psymtab_comp_unit_reader): Ditto.
3057
3058 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3059
3060         Add target-side support for dynamic printf.
3061         * NEWS: Mention the additional style.
3062         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3063         (struct bp_location): New field cmd_bytecode.
3064         * breakpoint.c: Include format.h.
3065         (disconnected_dprintf): New global.
3066         (parse_cmd_to_aexpr): New function.
3067         (build_target_command_list): New function.
3068         (insert_bp_location): Call it.
3069         (remove_breakpoints_pid): Skip dprintf breakpoints.
3070         (print_one_breakpoint_location): Ditto.
3071         (dprintf_style_agent): New global.
3072         (dprintf_style_enums): Add dprintf_style_agent.
3073         (update_dprintf_command_list): Add agent case.
3074         (agent_printf_command): New function.
3075         (_initialize_breakpoint): Add new commands.
3076         * common/ax.def (printf): New bytecode.
3077         * ax.h (ax_string): Declare.
3078         * ax-gdb.h (gen_printf): Declare.
3079         * ax-gdb.c: Include cli-utils.h, format.h.
3080         (gen_printf): New function.
3081         (maint_agent_print_command): New function.
3082         (_initialize_ax_gdb): Add maint agent-printf command.
3083         * ax-general.c (ax_string): New function.
3084         (ax_print): Add printf disassembly.
3085         * Makefile.in (SFILES): Add format.c
3086         (COMMON_OBS): Add format.o.
3087         * common/format.h: New file.
3088         * common/format.c: New file.
3089         * printcmd.c: Include format.h.
3090         (ui_printf): Call parse_format_string.
3091         * remote.c (remote_state): New field breakpoint_commands.
3092         (PACKET_BreakpointCommands): New enum.
3093         (remote_breakpoint_commands_feature): New function.
3094         (remote_protocol_features): Add new BreakpointCommands entry.
3095         (remote_can_run_breakpoint_commands): New function.
3096         (remote_add_target_side_commands): New function.
3097         (remote_insert_breakpoint): Call it.
3098         (remote_insert_hw_breakpoint): Ditto.
3099         (_initialize_remote): Add new packet configuration for
3100         target-side breakpoint commands.
3101         * target.h (struct target_ops): New field
3102         to_can_run_breakpoint_commands.
3103         (target_can_run_breakpoint_commands): New macro.
3104         * target.c (update_current_target): Handle
3105         to_can_run_breakpoint_commands.
3106
3107 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3108
3109         Execute -ix and -iex only after system and user gdbinit files.
3110         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3111         processing down after gdbinit files.
3112
3113 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3114
3115         Add fnmatch-gnu module.
3116         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3117         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3118         * gnulib/aclocal.m4: Regenerate.
3119         * gnulib/config.in: Regenerate.
3120         * gnulib/configure: Regenerate.
3121         * gnulib/import/dummy.c: Remove.
3122         * gnulib/import/Makefile.am: Regenerate.
3123         * gnulib/import/Makefile.in: Likewise.
3124         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3125         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3126         * gnulib/import/alloca.c: New file.
3127         * gnulib/import/alloca.in.h: Likewise.
3128         * gnulib/import/config.charset: Likewise.
3129         * gnulib/import/fnmatch.c: Likewise.
3130         * gnulib/import/fnmatch.in.h: Likewise.
3131         * gnulib/import/fnmatch_loop.c: Likewise.
3132         * gnulib/import/localcharset.c: Likewise.
3133         * gnulib/import/localcharset.h: Likewise.
3134         * gnulib/import/m4/alloca.m4: Likewise.
3135         * gnulib/import/m4/codeset.m4: Likewise.
3136         * gnulib/import/m4/configmake.m4: Likewise.
3137         * gnulib/import/m4/fcntl-o.m4: Likewise.
3138         * gnulib/import/m4/fnmatch.m4: Likewise.
3139         * gnulib/import/m4/glibc21.m4: Likewise.
3140         * gnulib/import/m4/localcharset.m4: Likewise.
3141         * gnulib/import/m4/locale-fr.m4: Likewise.
3142         * gnulib/import/m4/locale-ja.m4: Likewise.
3143         * gnulib/import/m4/locale-zh.m4: Likewise.
3144         * gnulib/import/m4/mbrtowc.m4: Likewise.
3145         * gnulib/import/m4/mbsinit.m4: Likewise.
3146         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3147         * gnulib/import/m4/mbstate_t.m4: Likewise.
3148         * gnulib/import/m4/stdbool.m4: Likewise.
3149         * gnulib/import/m4/wchar_h.m4: Likewise.
3150         * gnulib/import/m4/wctype_h.m4: Likewise.
3151         * gnulib/import/m4/wint_t.m4: Likewise.
3152         * gnulib/import/mbrtowc.c: Likewise.
3153         * gnulib/import/mbsinit.c: Likewise.
3154         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3155         * gnulib/import/mbsrtowcs-state.c: Likewise.
3156         * gnulib/import/mbsrtowcs.c: Likewise.
3157         * gnulib/import/ref-add.sin: Likewise.
3158         * gnulib/import/ref-del.sin: Likewise.
3159         * gnulib/import/stdbool.in.h: Likewise.
3160         * gnulib/import/streq.h: Likewise.
3161         * gnulib/import/strnlen1.c: Likewise.
3162         * gnulib/import/strnlen1.h: Likewise.
3163         * gnulib/import/verify.h: Likewise.
3164         * gnulib/import/wchar.in.h: Likewise.
3165         * gnulib/import/wctype.in.h: Likewise.
3166
3167 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3168
3169         Support shell wildcards for 'set auto-load safe-path'.
3170         * auto-load.c: Include fnmatch.h.
3171         (filename_is_in_dir): Rename to ...
3172         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3173         it.  Update function comment.  Rename dir_len to pattern_len.  New
3174         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3175         messages.  Use gdb_filename_fnmatch.
3176         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3177         pattern.
3178         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3179         * defs.h (gdb_filename_fnmatch): New declaration.
3180         * utils.c: Include fnmatch.h.
3181         (gdb_filename_fnmatch): New function.
3182
3183 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3184
3185         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3186         `-probe' and `-probe-stap' options.
3187
3188 2012-07-01  Yao Qi  <yao@codesourcery.com>
3189
3190         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3191         always_inserted_off, and always_inserted_enums.
3192         Change always_inserted_mode's type to 'enum auto_boolean'.
3193         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3194         callers.
3195         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3196         of add_setshow_enum_cmd.
3197         * infrun.c: Remove can_use_displaced_stepping_auto,
3198         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3199         can_use_displaced_stepping_enum.
3200         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3201         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3202         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3203         add_setshow_enum_cmd.
3204
3205 2012-06-30  Doug Evans  <dje@google.com>
3206
3207         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3208         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3209         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3210
3211 2012-06-29  Doug Evans  <dje@google.com>
3212
3213         * linespec.c: #include "stack.h".
3214         (decode_line_with_current_source): Moved here from symtab.c and
3215         renamed from decode_line_spec.  All callers updated.
3216         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3217         renamed from decode_line_spec_1.  All callers updated.
3218         * linespec.h (decode_line_with_current_source): Move declaration here
3219         from symtab.h and renamed from decode_line_spec.
3220         (decode_line_with_last_displayed): Move declaration here from symtab.h
3221         and renamed from decode_line_spec_1.
3222         * macrocmd.c: #include "linespec.h".
3223         * symtab.c: Remove #include "linespec.h".
3224
3225 2012-06-28  Doug Evans  <dje@google.com>
3226
3227         * dwarf2read.c (get_cu_length): New function.
3228         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3229         (create_debug_types_hash_table): Ditto.
3230         (init_cutu_and_read_dies): Ditto.
3231         (init_cutu_and_read_dies_no_follow): Ditto.
3232
3233         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3234
3235         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3236         (struct abbrev_table): Define.
3237         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3238         abbrev_table.
3239         (init_cutu_and_read_dies): Update.
3240         (abbrev_table_alloc_abbrev): New function.  Replaces
3241         dwarf_alloc_abbrev.  All callers updated.
3242         (abbrev_table_add_abbrev): New function.
3243         (abbrev_table_lookup_abbrev): New function.  Replaces
3244         dwarf2_lookup_abbrev.  All callers updated.
3245         (abbrev_table_read_table): New function.  Contents moved here from
3246         dwarf2_read_abbrevs.
3247         (dwarf2_read_abbrevs): Call it.
3248         (abbrev_table_free): New function.
3249         (dwarf2_free_abbrev_table): Call it.
3250
3251 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3252
3253         * osdata.c (info_osdata_command): Filter out "Title" columns
3254         from non-MI uses.
3255         * common/linux-osdata.c (struct osdata_type): Add title field.
3256         (osdata_table): Add titles to each entry.
3257         (linux_command_xfer_osdata): Add a column for title data.
3258
3259 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3260
3261         Make logging work for MI.
3262         * NEWS: Mention it.
3263         * interps.h (interp_set_logging_ftype): New typedef.
3264         (struct interp_procs): New field set_logging_proc.
3265         (current_interp_set_logging): Declare.
3266         * interps.c (current_interp_set_logging): New function.
3267         * cli/cli-logging.c: Include interps.h.
3268         (set_logging_redirect): Call current_interp_set_logging.
3269         (pop_output_files): Ditto.
3270         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3271         * mi/mi-console.h (mi_console_set_raw): Declare.
3272         * mi/mi-console.c (mi_console_set_raw): New function.
3273         * mi/mi-interp.c (saved_raw_stdout): New global.
3274         (mi_set_logging): New function.
3275         (_initialize_mi_interp): Add it to interp procs.
3276
3277 2012-06-28  Doug Evans  <dje@google.com>
3278
3279         * symtab.c (lookup_symbol_aux_objfile): Use
3280         ALL_OBJFILE_PRIMARY_SYMTABS.
3281
3282         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3283
3284 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3285
3286         * common/buffer.c: Include inttypes.h and stdint.h.
3287         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3288
3289 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3290             Pedro Alves  <palves@redhat.com>
3291
3292         * gdbthread.h (ALL_THREADS): New macro.
3293         (thread_list): Declare.
3294         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3295         going, but instead fall through to the stepping handling.
3296         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3297         the passed in signal.  Adjust debug output.
3298         (resume_callback): Rename to ...
3299         (linux_nat_resume_callback): ... this.  Pass the thread's last
3300         stop signal, if in "pass" state.
3301         (linux_nat_resume): Adjust to rename.
3302         (stop_wait_callback): New assertion.  Don't respawn signals;
3303         instead let the LWP remain with SIGNALLED set.
3304         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3305         * remote.c (append_pending_thread_resumptions): New.
3306         (remote_vcont_resume): Call it.
3307         * target.h (target_resume): Extend comment.
3308
3309 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3310
3311         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3312
3313 2012-06-27  Doug Evans  <dje@google.com>
3314
3315         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3316         Delete have_addr_base, unused.  All uses updated.
3317         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3318         (dwarf2_get_pc_bounds): Add ranges_base.
3319         (dwarf2_record_block_ranges): Ditto.
3320
3321 2012-06-27  Tom Tromey  <tromey@redhat.com>
3322
3323         PR macros/7961:
3324         * varobj.c (varobj_create): Update.
3325         (varobj_set_value): Update.
3326         * tracepoint.c (validate_actionline): Update.
3327         (encode_actions_1): Update.
3328         * parse.c (parse_exp_1): Add 'pc' argument.
3329         (parse_exp_in_context): Add 'pc' argument.  Change how
3330         expression_context_pc is set.
3331         (parse_expression): Update.
3332         (parse_field_expression): Update.
3333         * expression.h (parse_exp_1): Update.
3334         * eval.c (parse_to_comma_and_eval): Update.
3335         * breakpoint.c (set_breakpoint_condition): Update.
3336         (update_watchpoint): Update.
3337         (init_breakpoint_sal): Update
3338         (find_condition_and_thread): Update.
3339         (watch_command_1): Update.
3340         (update_breakpoint_locations): Update.
3341         * ada-lang.c (ada_read_renaming_var_value): Update.
3342         (create_excep_cond_exprs): Update.
3343
3344 2012-06-27  Doug Evans  <dje@google.com>
3345
3346         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3347         type units.
3348
3349 2012-06-26  Doug Evans  <dje@google.com>
3350
3351         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3352         prototype.
3353         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3354         updated.
3355         (read_and_check_comp_unit_head): Ditto.
3356         (read_and_check_type_unit_head): Ditto.
3357
3358 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3359
3360         New attribute 'last' for gdb.Symtab_and_line.
3361         * NEWS (Python Scripting): Add entry about the new attribute.
3362         * python/py-symtab.c (salpy_get_last): New function which
3363         implements the get method for the 'last' attribute of
3364         gdb.Symtab_and_line.
3365         (sal_object_getset): Add entry for the 'last' attribute.
3366
3367 2012-06-26  Doug Evans  <dje@google.com>
3368
3369         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3370         (dwo_sections): Add macinfo, macro.
3371         (dwarf2_locate_dwo_sections): Watch for macro sections.
3372         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3373         All callers updated.  Handle DWO files.
3374
3375         * NEWS: Mention new options "set debug dwarf2-read" and
3376         "set debug symtab-create".
3377         * dwarf2read.c (dwarf2_read_debug): New static global.
3378         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3379         (process_queue): Ditto.
3380         (process_full_comp_unit): Ditto.
3381         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3382         * elfread.c (elf_symfile_read): Add debugging printf.
3383         * minsyms.c (install_minimal_symbols): Ditto.
3384         * psymtab.c (allocate_psymtab): Ditto.
3385         * symfile.c (allocate_symtab): Ditto.
3386         * symtab.c (symtab_create_debug): New global.
3387         (_initialize_symtab): Add new option "set debug symtab-create".
3388         * symtab.h (symtab_create_debug): Declare.
3389
3390         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3391         (lookup_dwo_type_unit): Ditto.
3392
3393 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3394             H.J. Lu  <hongjiu.lu@intel.com>
3395
3396         * amd64-linux-nat.c: Include <sys/user.h>.
3397         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3398         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3399         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3400
3401         * configure.ac: Check if the fs_base and gs_base members of
3402         `struct user_regs_struct' exist.
3403         * config.in: Regenerated.
3404         * configure: Likewise.
3405
3406 2012-06-25  Michael Eager  <eager@eagercon.com>
3407
3408         PR python/14291
3409         * python/python.c (gdbpy_write): Check for interrupted output.
3410
3411 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3412
3413         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3414         register as a stack alignment in ARM mode.
3415
3416 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3417
3418         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3419         * gnulib/config.in: Regenerate.
3420         * gnulib/configure: Likewise.
3421         * gnulib/import/m4/extensions.m4: Update it.
3422         * gnulib/import/m4/gnulib-common.m4: Likewise.
3423         * gnulib/import/m4/memmem.m4: Likewise.
3424         * gnulib/import/m4/mmap-anon.m4: Likewise.
3425         * gnulib/import/m4/multiarch.m4: Likewise.
3426         * gnulib/import/stdint.in.h: Likewise.
3427
3428 2012-06-24  Yao Qi  <yao@codesourcery.com>
3429
3430         * corefile.c (write_memory_with_notification): New.
3431         * gdbcore.h: Declare write_memory_with_notification.
3432         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3433         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3434         * valops.c (value_assign): Likewise.
3435         * python/py-inferior.c (infpy_write_memory): Call
3436         'write_memory_with_notification'.
3437
3438 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3439
3440         * cc-with-index.sh: Use also -ex "set auto-load no".
3441
3442 2012-06-23  Doug Evans  <dje@google.com>
3443
3444         PR 14125
3445         * NEWS: Document additions to .gdb_index.
3446         * dwarf2read.c: #include "gdb/gdb-index.h".
3447         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3448         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3449         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3450         (dwarf2_read_index): Recognize version 7.
3451         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3452         block_kind, domain): All callers updated.
3453         (dw2_find_symbol_file): Handle new index CU values.
3454         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3455         (add_index_entry): New args is_static, kind.  All callers updated.
3456         (offset_type_compare, uniquify_cu_indices): New functions
3457         (symbol_kind): New function.
3458         (write_psymtabs_to_index): Remove duplicate CU values.
3459         (write_psymtabs_to_index): Write .gdb_index version 7.
3460
3461 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3462
3463         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3464         * configure: Regenerate.
3465
3466 2012-06-20  Yao Qi  <yao@codesourcery.com>
3467
3468         * python/py-inferior.c: Update comments of infpy_read_memory
3469         and infpy_write_memory.
3470
3471 2012-06-19  Tom Tromey  <tromey@redhat.com>
3472
3473         PR exp/9514:
3474         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3475         (push_type_address_space): Remove.
3476         * parse.c (insert_into_type_stack): New function.
3477         (insert_type): Likewise.
3478         (insert_type_address_space): Rename from push_type_address_space.
3479         Insert tp_space_identifier.
3480         * c-exp.y (ptr_operator): New production.
3481         (abs_decl): Use ptr_operator.
3482         (space_identifier): Call insert_type_address_space.
3483         (ptype): Don't use const_or_volatile_or_space_identifier.
3484         (const_or_volatile_noopt): Call insert_type.
3485         (conversion_type_id, conversion_declarator): New productions.
3486         (operator): Use conversion_type_id.
3487
3488 2012-06-18  Doug Evans  <dje@google.com>
3489
3490         * symtab.h (minimal_symbol): New member created_by_gdb.
3491         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3492         created by gdb.
3493         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3494         (search_symbols): Call it instead of lookup_symbol.
3495         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3496
3497         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3498         Adjust address for DW_OP_GNU_addr_index.
3499         * dwarf2expr.h (dwarf_expr_context): Update comment.
3500         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3501         all callers updated.  Handle TLS vars described with
3502         DW_OP_GNU_const_index.
3503         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3504         and DW_OP_GNU_const_index.
3505         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3506
3507         * block.c (find_block_in_blockvector): Make explicit the fact that we
3508         ignore GLOBAL_BLOCK.
3509
3510 2012-06-18  Tom Tromey  <tromey@redhat.com>
3511
3512         * c-exp.y (operator): Remove trailing space after "delete" and
3513         "delete[]".
3514
3515 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3516             Jan Kratochvil  <jan.kratochvil@redhat.com>
3517
3518         Switch i386 and derived targets to ON_STACK.
3519         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3520         (amd64_dicos_init_abi): Remove its installment.
3521         * dicos-tdep.c (dicos_init_abi): Remove the
3522         set_gdbarch_call_dummy_location call.  Update the comment here.
3523         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3524         (i386_dicos_init_abi): Remove its installment.
3525         * i386-tdep.c (i386_push_dummy_code): New function.
3526         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3527         i386_push_dummy_code.
3528
3529 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3530
3531         Remove stale dummy frames.
3532         * breakpoint.c: Include dummy-frame.h.
3533         (longjmp_breakpoint_ops): New variable.
3534         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3535         bp_longjmp_call_dummy.
3536         (bpstat_what, bptype_string, print_one_breakpoint_location)
3537         (init_bp_location): Support bp_longjmp_call_dummy.
3538         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3539         (set_longjmp_breakpoint_for_call_dummy)
3540         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3541         functions.
3542         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3543         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3544         FIXME comment and extend the other comment for bp_call_dummy.
3545         (set_longjmp_breakpoint_for_call_dummy)
3546         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3547         * dummy-frame.c: Include gdbthread.h.
3548         (pop_dummy_frame_bpt): New function.
3549         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3550         (dummy_frame_discard): New function.
3551         (cleanup_dummy_frames): Update the comment about longjmps.
3552         * dummy-frame.h (dummy_frame_discard): New declaration.
3553         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3554         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3555         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3556         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3557         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3558         keep_going if IS_LONGJMP and there is no other reason to stop.
3559
3560 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3561
3562         * remote-sim.c (sim_command_completer): Initialize
3563         variable 'result'.
3564
3565 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3566
3567         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3568         * dwarf2loc.c (call_site_parameter_matches): Support
3569         CALL_SITE_PARAMETER_PARAM_OFFSET.
3570         (needs_dwarf_reg_entry_value): Push stub value.
3571         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3572         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3573         * gdbtypes.h (enum call_site_parameter_kind): New item
3574         CALL_SITE_PARAMETER_PARAM_OFFSET.
3575         (struct call_site.parameter.u): New field param_offset.
3576
3577 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3578
3579         Code cleanup: Generalize call_site.parameter key.
3580         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3581         variable dwarf_reg.  New variable kind_u.  Update parameters to
3582         push_dwarf_reg_entry_value.
3583         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3584         * dwarf2expr.h (enum call_site_parameter_kind)
3585         (union call_site_parameter_u): Forward declarations.
3586         (struct dwarf_expr_context_funcs): Update parameters and their
3587         description for push_dwarf_reg_entry_value.
3588         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3589         * dwarf2loc.c (call_site_parameter_matches): New function.
3590         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3591         description.  Use call_site_parameter_matches.
3592         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3593         Update parameters and their description.
3594         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3595         New variable kind_u.  Adjust the caller for updated parameters.
3596         (needs_dwarf_reg_entry_value): Update parameters.
3597         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3598         instead of attr.  Update for the changed fields of struct
3599         call_site_parameter.
3600         * gdbtypes.h: Include dwarf2expr.h.
3601         (enum call_site_parameter_kind): New.
3602         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3603         fb_offset into new union u.
3604
3605 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3606
3607         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3608         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3609         for x32.
3610
3611 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3612
3613         * amd64-linux-nat.c (compat_x32_clock_t): New.
3614         (compat_x32_siginfo_t): Likewise.
3615         (compat_x32_siginfo_from_siginfo): Likewise.
3616         (siginfo_from_compat_x32_siginfo): Likewise.
3617         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3618         and siginfo_from_compat_x32_siginfo for x32.
3619
3620 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3621
3622         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3623
3624 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3625
3626         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3627         instead of gdbarch_ptr_bit.
3628         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3629         (amd64_supply_native_gregset): Likewise.
3630         (amd64_collect_native_gregset): Likewise.
3631         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3632         (amd64_supply_xsave): Likewise.
3633         (amd64_collect_fxsave): Likewise.
3634         (amd64_collect_xsave): Likewise.
3635
3636 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3639         (amd64_linux_read_description): Check DS segment register for
3640         x32 process.
3641
3642 2012-06-15  Tom Tromey  <tromey@redhat.com>
3643
3644         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3645         init_cutu_and_read_dies.
3646
3647 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3648
3649         * MAINTAINERS (Write After Approval): Add myself to the list.
3650
3651 2012-06-15  Tom Tromey  <tromey@redhat.com>
3652
3653         * valops.c (value_find_oload_method_list): Now static.
3654         * value.h (value_find_oload_method_list): Don't declare.
3655
3656 2012-06-15  Tom Tromey  <tromey@redhat.com>
3657
3658         * valops.c (find_overload_match): Use value_ind.
3659
3660 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3661
3662         * infrun.c (handle_inferior_event): Correct indentation.
3663
3664 2012-06-14  Doug Evans  <dje@google.com>
3665
3666         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3667         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3668         All uses updated.
3669         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3670         updated.  Handle DEBUG_LOC_START_LENGTH.
3671         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3672         (loclist_describe_location): Ditto.
3673
3674 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3675
3676         PR backtrace/13866
3677         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3678         after hiding inline functions.
3679
3680 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3681
3682         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3683         _initialize_inf_ttrace.
3684
3685 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3686
3687         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3688         _initialize_hppa_hpux_nat.
3689
3690 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3691
3692         * remote-sim.c (sim_command_completer): Change type of return
3693         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3694
3695 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3696             Jan Kratochvil  <jan.kratochvil@redhat.com>
3697
3698         PR tdep/14222
3699         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3700         stack on a 16-byte boundary.
3701
3702 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3703
3704         * jit.c (finalize_symtab): Set function's return type to 'void' by
3705         default.
3706
3707 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3708             H.J. Lu  <hongjiu.lu@intel.com>
3709
3710         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3711         Move bits common to both the classic LP64 and the new x32 ILP32
3712         ABI here.
3713         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3714         (amd64_x32_linux_init_abi): New function.
3715         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3716         subtype.
3717
3718         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3719         * i386-tdep.c (i386_pseudo_register_name): Make public.
3720         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3721         * amd64-tdep.c (amd64_dword_names): Add "eip".
3722         (amd64_x32_pseudo_register_type): New function
3723         (amd64_x32_init_abi): New function.
3724
3725 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3726
3727         PR build/14003
3728         * inferior.h (struct inferior_suspend_state): Comment out.
3729         (struct inferior): Comment out the field suspend.
3730         * infrun.c (struct infcall_suspend_state): Comment out the field
3731         inferior_suspend.
3732         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3733         out its assignment.
3734
3735 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3736
3737         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3738         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3739         function comment.  Return ERROR for unresolved cases.  Implement
3740         returning proper NAME.
3741         (yylex): Accept also NAME from classify_inner_name.
3742         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3743         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3744         LOC_TYPEDEF type.
3745         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3746
3747 2012-06-13  Tom Tromey  <tromey@redhat.com>
3748
3749         * breakpoint.c (condition_completer): New function.
3750         (_initialize_breakpoint): Use it.
3751         * value.c (complete_internalvar): New function.
3752         * value.h (complete_internalvar): Declare.
3753
3754 2012-06-13  Tom Tromey  <tromey@redhat.com>
3755
3756         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3757         * breakpoint.c (catch_syscall_completer): Return a VEC.
3758         * cli/cli-cmds.c (complete_command): Update.
3759         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3760         (complete_on_enum): Likewise.
3761         * command.h: Include gdb_vecs.h.
3762         (completer_ftype): Change return type.
3763         (complete_on_cmdlist, complete_on_enum): Likewise.
3764         * completer.c (noop_completer, filename_completer)
3765         (location_completer): Return a VEC.
3766         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3767         to a VEC.
3768         (expression_completer, complete_line_internal, complete_line)
3769         (command_completer): Return a VEC.
3770         (gdb_completion_word_break_characters, line_completion_function):
3771         Update.
3772         * completer.h: Include gdb_vecs.h.
3773         (complete_line, noop_completer, filename_completer)
3774         (expression_completer, location_completer, command_completer):
3775         Update.
3776         * f-lang.c (f_word_break_characters): Return a VEC.
3777         * interps.c (interpreter_completer): Return a VEC.
3778         * language.h (struct language_defn)
3779         <la_make_symbol_completion_list>: Return a VEC.
3780         * python/py-cmd.c (cmdpy_completer): Return a VEC.
3781         * symtab.c (free_completion_list): Take a VEC.
3782         (return_val_size, return_val_index): Remove.
3783         (return_val): Now a VEC.
3784         (completion_list_add_name): Update.
3785         (default_make_symbol_completion_list_break_on)
3786         (default_make_symbol_completion_list, make_symbol_completion_list)
3787         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3788         Return a VEC.
3789         (add_filename_to_list): Update.
3790         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3791         <list>: Now a VEC.
3792         (maybe_add_partial_symtab_filename): Update.
3793         (make_source_files_completion_list): Return a VEC.
3794         * symtab.h (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         (make_source_files_completion_list): Update.
3798
3799 2012-06-13  Tom Tromey  <tromey@redhat.com>
3800
3801         * breakpoint.c (add_catch_command): Use completer_ftype.
3802         * breakpoint.h: Include command.h.
3803         (add_catch_command): Use completer_ftype.
3804         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3805         * cli/cli-decode.h (struct cmd_list_element) <completer>:
3806         Use completer_ftype.
3807         * command.h (completer_ftype): New typedef.
3808         (set_cmd_completer): Use it.
3809         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3810         completer_ftype.
3811
3812 2012-06-13  Pedro Alves  <palves@redhat.com>
3813
3814         Partial revert of previous change.
3815
3816         * serial.c (scb_base): New global.
3817         (serial_for_fd): New.
3818         (serial_open, serial_fdopen_ops): Link new serial in open serials
3819         chain.
3820         (do_serial_close): Unlink serial from the open serials chain.
3821
3822 2012-06-12  Pedro Alves  <palves@redhat.com>
3823
3824         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3825         threads here.
3826         (prepare_for_detach): No longer context switch here in non-stop
3827         mode.
3828         (fetch_inferior_event): Ditto.
3829         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3830         to the event thread before removing breakpoints.  Switch to the
3831         event thread before inserting breakpoints and resuming.
3832         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3833         event thread before resuming.
3834         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3835         Switch to the event thread before removing breakpoints.
3836
3837 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
3838
3839         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3840         special characters correctly for the Windows shells.  See
3841         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3842         report.
3843         [!__MINGW32__]: Remove extra double quote character from special
3844         characters.
3845
3846 2012-06-11  Stan Shebs  <stan@codesourcery.com>
3847
3848         * ui-out.h: Remove #if 0 declarations.
3849         * ui-out.c: Remove #if 0 functions.
3850
3851 2012-06-11  Pedro Alves  <palves@redhat.com>
3852
3853         * ser-base.c (run_async_handler_and_reschedule): New.
3854         (fd_event, push_event): Use it.
3855         * serial.c (serial_open, serial_fdopen_ops): Set the initial
3856         reference count to 1.
3857         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
3858         instead of xfree.
3859         (serial_is_open, serial_ref, serial_unref): New.
3860         * serial.h (serial_open): Adjust comment.
3861         (serial_is_open): Declare.
3862         (serial_close): Adjust comment.
3863         (serial_ref, serial_unref) Declare.
3864         (struct serial): New field 'refcnt'.
3865
3866 2012-06-11  Pedro Alves  <palves@redhat.com>
3867
3868         Remove #if 0'd "connect" command, and unnecessary associated
3869         refcounting and serial reuse bits.
3870
3871         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3872         * serial.c (last_serial_opened): Delete.
3873         (scb_base): Delete.
3874         (serial_open): Adjust.
3875         (serial_for_fd): Delete.
3876         (serial_fdopen_ops, do_serial_close): Adjust.
3877         (serial_fdopen_ops): Adjust.
3878
3879 2012-06-11  Pedro Alves  <palves@redhat.com>
3880
3881         * serial.c (do_serial_close): Remove early return when SCB is
3882         null.
3883
3884 2012-06-11  Tom Tromey  <tromey@redhat.com>
3885
3886         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3887
3888 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3889
3890         Fix regression by the "ambiguous linespec" series.
3891         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
3892         get_last_displayed_symtab and get_last_displayed_line and depending
3893         on CURSAL.
3894
3895 2012-06-11  Tom Tromey  <tromey@redhat.com>
3896
3897         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3898         (dw2_find_symbol_file): Use it.
3899
3900 2012-06-11  Michael Eager  <eager@eagercon.com>
3901
3902         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3903         * mips-linux-tdep.h (mips_signals): New
3904
3905 2012-06-11  Tom Tromey  <tromey@redhat.com>
3906
3907         * infrun.c (handle_inferior_event)
3908         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3909         breakpoint.
3910         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3911         exception logic in all cases.  Update comments.
3912         (insert_longjmp_resume_breakpoint): Set the exception resume
3913         breakpoint.
3914
3915 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
3916
3917         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3918
3919 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
3920
3921         * valarith.c (binop_types_user_defined_p): Fix a typo.
3922
3923 2012-06-08  Yao Qi  <yao@codesourcery.com>
3924             Chung-Lin Tang <cltang@codesourcery.com>
3925
3926         * arch-utils.c (default_return_in_first_hidden_param_p): New.
3927         * arch-utils.h: Declare.
3928         * gdbarch.sh: Add return_in_first_hidden_param_p.
3929         * gdbarch.c, gdbarch.h: Regenerated.
3930         * infcall.c (call_function_by_hand): Call
3931         gdbarch_return_in_first_hidden_param_p instead of
3932         language_pass_by_reference.
3933
3934         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3935         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3936         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3937         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3938         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3939         `cplus_return_struct_by_reference'.
3940         (tic6x_return_value): Handle language cplusplus.
3941         (tic6x_return_in_first_hidden_param_p): New.
3942         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3943
3944 2012-06-07  Doug Evans  <dje@google.com>
3945
3946         * dwarf2read.c (dwarf2_cu): Add comment.
3947
3948 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
3949
3950         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3951         variable.
3952         (mips_eabi_push_dummy_call): Likewise.
3953         (mips_n32n64_push_dummy_call): Likewise.
3954         (mips_o32_push_dummy_call): Likewise.
3955         (mips_o64_push_dummy_call): Likewise.
3956
3957 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
3958
3959         * mips-tdep.c (mips_convert_register_p): Correct coding style.
3960
3961 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
3962
3963         * mips-tdep.c (mips_pseudo_register_type): Use
3964         mips_float_register_p.
3965
3966 2012-06-06  Pedro Alves  <palves@redhat.com>
3967
3968         * infrun.c (handle_inferior_event): Remove calls to
3969         reinit_frame_cache that follow a context_switch call.
3970
3971 2012-06-06  Pedro Alves  <palves@redhat.com>
3972
3973         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3974         context_switch and remove stale comment.
3975
3976 2012-06-06  Pedro Alves  <palves@redhat.com>
3977
3978         * infrun.c (struct execution_control_state): Remove
3979         `new_thread_event' field.
3980         (handle_inferior_event): Simplify new threads handling; don't
3981         resume the inferior if we find a new thread.
3982
3983 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
3984
3985         * NEWS: Document the deprecation of SH's 'regs' command.
3986         * inferior.h (all_registers_info): Add function declaration.
3987         * sh-tdep.c (sh_show_regs): Remove variable.
3988         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3989         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3990         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3991         (sh_show_regs_command): Remove functions.
3992         (sh_gdbarch_init): Don't set sh_show_regs.
3993         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3994         'info all-registers'.
3995         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3996         (sh64_show_regs): Remove functions.
3997         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3998
3999 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4000
4001         * configure.ac: Move development=true below AC_INIT.
4002         * configure: Regenerate.
4003
4004 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4005
4006         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4007         gdb_stdout.
4008
4009 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4010
4011         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4012         argument as ssize_t.
4013         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4014         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4015         * target.c (target_read_stack, target_write_memory)
4016         (target_write_raw_memory): Likewise.
4017         * target.h (target_read_stack, target_write_memory)
4018         (target_write_raw_memory): Likewise.
4019
4020 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4021
4022         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4023         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4024         * target.c (target_read_memory): Change LEN to ssize_t.
4025         * target.h (target_read_memory): Change LEN to ssize_t.
4026
4027 2012-06-05  Pedro Alves  <palves@redhat.com>
4028
4029         PR backtrace/13866
4030
4031         * breakpoint.c (until_break_command): Only fetch the selected
4032         frame after decode_line_1.
4033
4034 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4035
4036         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4037         event breakpoint at _start, __start or main if a program
4038         interpreter is not found.
4039
4040 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4041
4042         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4043         Add declaration.
4044         * windows-tdep.c: #include "objfiles.h".
4045         (windows_iterate_over_objfiles_in_search_order): New function.
4046         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4047         iterate_over_objfiles_in_search_order gdbarch method to
4048         windows_iterate_over_objfiles_in_search_order.
4049         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4050
4051 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4052
4053         * gdbarch.sh: Add generation of
4054         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4055         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4056         (iterate_over_objfiles_in_search_order): New gdbarch method.
4057         * gdbarch.h, gdbarch.c: Regenerate.
4058         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4059         Add declaration.
4060         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4061         New function.
4062         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4063         out of lookup_symbol_aux_symtabs.
4064         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4065         call to lookup_symbol_aux_objfile.
4066         (struct global_sym_lookup_data): New type.
4067         (lookup_symbol_global_iterator_cb): New function.
4068         (lookup_symbol_global): Search for symbol using
4069         gdbarch_iterate_over_objfiles_in_search_order and
4070         lookup_symbol_global_iterator_cb.
4071         * findvar.c (struct minsym_lookup_data): New type.
4072         (minsym_lookup_iterator_cb): New function.
4073         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4074         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4075         and minsym_lookup_iterator_cb.
4076
4077 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4078
4079         Revert the following patch:
4080         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4081         try locating the symbol in the symbol's own objfile first, before
4082         extending the search to all objfiles.
4083         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4084         out of lookup_symbol_aux_symtabs.
4085         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4086         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4087         Do not search EXCLUDE_OBJFILE.
4088         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4089         (lookup_symbol_global): Search for matches in the block's objfile
4090         first, before searching all other objfiles.
4091
4092 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4093
4094         * breakpoint.c (find_condition_and_thread): Stop parsing
4095         as soon as the first invalid keyword is found.
4096
4097 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4098
4099         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4100
4101 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4102
4103         * config/djgpp/djcheck.sh: Add copyright header.
4104
4105 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4106
4107         * copyright.py (update_files, main): Fix path to update-copyright
4108         script.
4109
4110 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4111
4112         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4113         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4114         for which a reminder to update by hand is printed.
4115
4116 2012-06-04  Doug Evans  <dje@google.com>
4117
4118         * buildsym.c (make_blockvector): Add comment.
4119
4120 2012-06-04  Pedro Alves  <palves@redhat.com>
4121
4122         * arch-utils.c (default_gdb_signal_from_target): Delete.
4123         * arch-utils.h (default_gdb_signal_from_target): Delete.
4124         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4125         gdbarch_gdb_signal_from_target_p.
4126         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4127         predicate).
4128         * gdbarch.h: Regenerate.
4129         * gdbarch.c: Regenerate.
4130
4131 2012-06-04  Pedro Alves  <palves@redhat.com>
4132
4133         * gdbarch.sh (gdb_signal_from_target): Mention that the
4134         implementation of the method must be host independent.
4135         * gdbarch.h: Regenerate.
4136
4137 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4138
4139         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4140         parameters.
4141         (target_read_memory_bfd): New function.
4142         (symbol_file_add_from_memory): Use it.
4143
4144 2012-06-03  Doug Evans  <dje@google.com>
4145
4146         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4147         of primary symtab.
4148         (basic_lookup_transparent_type): Ditto.
4149
4150         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4151         (ALL_PRIMARY_SYMTABS): Use it.
4152         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4153         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4154         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4155         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4156         (basic_lookup_transparent_type): Ditto.
4157
4158 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4159
4160         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4161         it to optimize resolution of demangled name.
4162
4163 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4164
4165         * configure.ac (development): Define new variable.
4166         Call AC_CHECK_LIB for mcheck if $development.
4167         (ERROR_ON_WARNING): Enable it by default only if $development.
4168         * config.in: Regenerate.
4169         * configure: Regenerate.
4170
4171 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4172
4173         * target.c (target_read_memory): Make LEN argument as size_t.
4174         * target.h (target_read_memory): Likewise.
4175
4176 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4177
4178         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4179
4180 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4181
4182         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4183         BookE interface for PowerPC server processors if not available
4184         in the Linux Kernel.
4185
4186 2012-05-31  Keith Seitz  <keiths@redhat.com>
4187
4188         * linespec.c (decode_objc): Add cleanup to free
4189         INFO.FILE_SYMTABS.
4190         (find_linespec_symbols): Add cleanup to free CLASSES.
4191         * symfile.c (find_separate_debug_file_by_debuglink): Add
4192         cleanup to free DEBUGLINK.
4193         * ui-out.c (clear_header_list): No need to check if
4194         HEADER_NEXT.COLHDR is NULL.
4195         Free HEADER_NEXT.COL_NAME.
4196
4197 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4198
4199         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4200         warning.
4201
4202 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4203
4204         * configure.host (gdb_host_cpu): Handle tilegx*.
4205         (gdb_host): Handle tilegx-*-linux*.
4206         * tilegx-linux-nat.c: New file.
4207         * config/tilegx/linux.mh: New file.
4208
4209 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4210
4211         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4212         tilegx-linux-tdep.o.
4213         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4214         tilegx-linux-tdep.c.
4215         * configure.tgt: Handle tilegx-*-linux*.
4216         * tilegx-tdep.h: New file.
4217         * tilegx-tdep.c: New file.
4218         * tilegx-linux-tdep.c: New file.
4219         * regformats/reg-tilegx.dat: New file.
4220
4221 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4222
4223         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4224         accounting of hw watchpoints on ppc.
4225
4226 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4227
4228         * source.c (openp): Expand tilde in path entries.
4229
4230 2012-05-29  Doug Evans  <dje@google.com>
4231
4232         * buildsym.c (block_compar): Fix comment.
4233         (end_symtab): Fix and clarify some comments.
4234
4235         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4236         cleanup_undefined_types.
4237         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4238         All callers updated.
4239
4240 2012-05-29  Tom Tromey  <tromey@redhat.com>
4241
4242         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4243         fails.
4244         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4245         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4246         fails.
4247         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4248         fails.
4249
4250 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4251
4252         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4253         (struct darwin_info): ... New struct.
4254         (solib_darwin_pspace_data): New variable.
4255         (darwin_pspace_data_cleanup): New function.
4256         (get_darwin_info): Likewise.
4257         (darwin_dyld_version_ok, darwin_load_image_infos)
4258         (darwin_solib_get_all_image_info_addr_at_init)
4259         (darwin_solib_read_all_image_info_addr): Add info argument.
4260         Adjust code.
4261         (darwin_current_sos): Use per pspace structure.
4262         (darwin_solib_create_inferior_hook): Likewise.
4263         (darwin_clear_solib): Likewise.
4264         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4265
4266 2012-05-28  Pedro Alves  <palves@redhat.com>
4267
4268         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4269         block that uses them.  Clear ecss before handling each event.
4270
4271 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4272
4273         * solib-svr4.c (svr4_current_sos): New comment on
4274         svr4_current_sos_via_xfer_libraries fall back.
4275
4276 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4277
4278         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4279         it as a fallback for TYPE_IS_OPAQUE.
4280         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4281         symbols for lookup_symbol.
4282
4283 2012-05-24  John Steele Scott  <toojays@toojays.net>
4284
4285         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4286         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4287         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4288         (check_producer): ... this new function, which also checks for ICC
4289         and caches the result.
4290         (producer_is_icc): New function.
4291         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4292         producer was ICC.
4293
4294 2012-05-24  Pedro Alves  <palves@redhat.com>
4295
4296         PR gdb/7205
4297
4298         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4299         (default_gdb_signal_to_target): ... this.  Add comment.
4300         (default_gdb_signal_from_host): Rename to ...
4301         (default_gdb_signal_from_target): ... this.  Add comment.
4302         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4303         (default_gdb_signal_to_target): ... this.
4304         (default_gdb_signal_from_host): Rename to ...
4305         (default_gdb_signal_from_target): ... this.
4306         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4307         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4308         (gdb_signal_from_target): ... this.  Adjust to
4309         default_gdb_signal_from_host naming change.  Extend comment.
4310         (gdb_signal_to_host): Rename to ...
4311         (gdb_signal_to_target): ... this.  Adjust to
4312         default_gdb_signal_to_host naming change.
4313         * gdbarch.h, gdbarch.c: Renegerate.
4314
4315 2012-05-24  Pedro Alves  <palves@redhat.com>
4316
4317         PR gdb/7205
4318
4319         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4320
4321 2012-05-24  Pedro Alves  <palves@redhat.com>
4322
4323         PR gdb/7205
4324
4325         Replace target_signal with gdb_signal throughout.
4326
4327 2012-05-24  Pedro Alves  <palves@redhat.com>
4328
4329         PR tui/14159
4330
4331         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4332         string, instead of reusing the va_list argument.
4333
4334 2012-05-24  Tom Tromey  <tromey@redhat.com>
4335
4336         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4337         Remove.
4338
4339 2012-05-23  Doug Evans  <dje@google.com>
4340
4341         * symtab.c (search_symbols): Formatting fixes.
4342         (print_symbol_info): Formatting fixes.
4343
4344         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4345         int64_t change to leb128 API.
4346         (read_encoded_value, decode_frame_entry_1): Ditto.
4347         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4348         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4349         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4350         (execute_stack_op): Ditto.
4351         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4352         (safe_read_uleb128, safe_read_sleb128): Ditto.
4353         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4354         (dwarf2_compile_expr_to_ax): Ditto.
4355         (locexpr_describe_location_piece): Ditto.
4356         (disassemble_dwarf_expression): Ditto.
4357         (locexpr_describe_location_1): Ditto.
4358
4359 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4360             Kwok Cheung Yeung  <kcy@codesourcery.com>
4361
4362         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4363         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4364         (mi-cmd-info.o): New rule.
4365         * osdata.h (info_osdata_command): New declaration.
4366         * osdata.c (info_osdata_command): Change to non-static.
4367         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4368         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4369         * mi/mi-cmd-info.c: New file.
4370
4371 2012-05-23  Doug Evans  <dje@google.com>
4372
4373         * symtab.c (search_symbols): Pass NULL for file_matcher to
4374         expand_symtabs_matching if there are no files to match.
4375
4376         * gdbtypes.c (lookup_typename): Simplify.
4377
4378 2012-05-23  Pedro Alves  <palves@redhat.com>
4379
4380         * arch-utils.h (default_target_signal_to_host): Delete.
4381         * arch-utils.c (default_target_signal_to_host): Delete.
4382         * gdbarch.sh (target_signal_to_host): Remove.
4383         * gdbarch.h, gdbarch.c: Regenerate.
4384
4385 2012-05-22  Doug Evans  <dje@google.com>
4386
4387         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4388         "const gdb_byte *".
4389         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4390         (execute_cfa_program): Update to match API of leb128 functions.
4391         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4392         "const gdb_byte *".
4393         (read_unsigned_leb128, read_signed_leb128): Delete.
4394         (read_initial_length): Change type of buf argument to
4395         "const gdb_byte *".
4396         (read_encoded_value): Update to match API of leb128 functions.
4397         (decode_frame_entry): Change result to "const gdb_byte *", and
4398         similarly for "start" parameter.
4399         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4400         (dwarf2_build_frame_info): Change local frame_ptr to
4401         "const gdb_byte *".
4402         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4403         read_uleb128, read_sleb128.  All callers updated.
4404         (safe_skip_leb128): New function.
4405         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4406         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4407         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4408         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4409         read_uleb128, read_sleb128.
4410         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4411         (execute_stack_op): Update to match API of leb128 functions.
4412         * dwarf2expr.h: #include "leb128.h".
4413         (read_uleb128, read_sleb128): Delete.
4414         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4415         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4416         * dwarf2loc.c (debug_loc_kind): New enum.
4417         (decode_debug_loc_addresses): New function.
4418         (decode_debug_loc_dwo_addresses): New function.
4419         (dwarf2_find_location_expression): Rewrite.
4420         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4421         (locexpr_describe_location_piece): Ditto.
4422         (disassemble_dwarf_expression): Ditto.
4423         (locexpr_describe_location_1): Ditto.
4424         (loclist_describe_location): Rewrite.
4425         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4426         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4427         (dwarf2_section_buffer_overflow_complaint): Renamed from
4428         dwarf2_macros_too_long_complaint.  All callers updated.
4429         (skip_leb128): Delete.
4430         (init_cu_die_reader): Initialize reader->buffer_end.
4431         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4432         (skip_form_bytes): New arg buffer_end.  All callers updated.
4433         Replace call to skip_leb128 with gdb_skip_leb128.
4434         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4435         (fill_in_loclist_baton): Initialize baton->from_dwo.
4436
4437 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4438
4439         * mips-linux-nat.c (mips_linux_read_description): Use a more
4440         verbose error message.
4441
4442 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4443
4444         * NEWS: Add MIPS/Linux DSP support.
4445         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4446         (SIGCONTEXT_DSPCTL): New macro.
4447         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4448         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4449         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4450         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4451         (N64_SIGCONTEXT_HI3): Likewise.
4452         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4453         (N64_SIGCONTEXT_LO3): Likewise.
4454         (N64_SIGCONTEXT_DSPCTL): Likewise.
4455         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4456         (mips_linux_o32_sigframe_init): Handle DSP registers.
4457         (mips_linux_n32n64_sigframe_init): Likewise.
4458
4459 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4460
4461         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4462         call to abort.
4463
4464 2012-05-22  Pedro Alves  <palves@redhat.com>
4465
4466         * target.h (store_waitstatus): Move declaration ...
4467         * inf-child.h (store_waitstatus): ... here.
4468         * target.c: Move inclusion of gdb_wait.h, and ...
4469         (store_waitstatus): ... this ...
4470         * inf-child.c: ... here.
4471         * linux-nat.c: Include inf-child.h.
4472         * rs6000-nat.c: Include inf-child.h.
4473         * spu-linux-nat.c: Include inf-child.h.
4474
4475 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4476
4477         * tracepoint.c (start_tracing): Add missing i18n markup.
4478         (stop_tracing, set_trace_user): Ditto.
4479         (set_trace_notes, set_trace_stop_notes): Ditto.
4480
4481 2012-05-21  Tom Tromey  <tromey@redhat.com>
4482
4483         PR c++/7173:
4484         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4485         types.
4486         * value.h (value_cast_pointers): Update.
4487         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4488         (value_cast): Update.
4489         (update_search_result): New function.
4490         (do_search_struct_field): New, from search_struct_field.  Check
4491         for ambiguous results.
4492         (search_struct_field): Rewrite.
4493         * infcall.c (value_arg_coerce): Update.
4494         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4495         value_cast_pointers.
4496         * ada-lang.c (ada_convert_actual): Update.
4497
4498 2012-05-21  Tom Tromey  <tromey@redhat.com>
4499
4500         * macroexp.c (macro_stringify): Terminate the string.
4501
4502 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4503
4504         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4505         Describe it.
4506         * auto-load.c (auto_load_expand_dir_vars): New function.
4507         (auto_load_safe_path_vec_update): Use it, remove the
4508         substitute_path_component call thanks to it.
4509         (auto_load_objfile_script): Remove the debug_file_directory processing.
4510         Use auto_load_expand_dir_vars, remove the substitute_path_component
4511         call thanks to it.
4512         * configure: Regenerate.
4513         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4514         path.  Escape $ also for $debugdir.
4515         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4516         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4517
4518 2012-05-20  Doug Evans  <dje@google.com>
4519
4520         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4521         before use.  Check for symtab->includes == NULL before scanning it.
4522
4523 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4524
4525         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4526
4527 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4528
4529         * NEWS: Add microMIPS support and "set mips compression",
4530         "show mips compression" commands.
4531         * mips-tdep.h (mips_isa): New enum.
4532         (gdbarch_tdep): Add mips_isa.
4533         (mips_pc_is_mips16): Update prototype.
4534         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4535         * mips-tdep.c (mips_compression_mips16): New variable.
4536         (mips_compression_micromips): Likewise.
4537         (mips_compression_strings): Likewise.
4538         (mips_compression_string): Likewise.
4539         (is_mips16_isa, is_micromips_isa): New functions.
4540         (is_mips16_addr): Rename to...
4541         (is_compact_addr): ... this.
4542         (unmake_mips16_addr): Likewise to...
4543         (unmake_compact_addr): ... this.
4544         (make_mips16_addr): Likewise to...
4545         (make_compact_addr): ... this.
4546         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4547         functions.
4548         (mips_elf_make_msymbol_special): Handle microMIPS code.
4549         (msymbol_is_special): Rename to...
4550         (msymbol_is_mips16): ... this.
4551         (mips_make_symbol_special, mips_pc_is_mips16): Update
4552         accordingly.
4553         (msymbol_is_mips, msymbol_is_micromips): New functions.
4554         (mips16_to_32_reg): Rename to...
4555         (mips_reg3_to_reg): ... this.
4556         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4557         (mips_pc_isa): Likewise.
4558         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4559         code.
4560         (mips_fetch_instruction): Pass return status instead of printing
4561         an error message if requested.  Handle microMIPS code.  Bail out
4562         on an invalid ISA.
4563         (micromips_op): New macro.
4564         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4565         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4566         (b6s4_op, b7s3_reg): Likewise.
4567         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4568         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4569         (mips_insn_size): New function.
4570         (mips32_next_pc): Update mips_fetch_instruction call.
4571         (micromips_relative_offset7): New function.
4572         (micromips_relative_offset10): Likewise.
4573         (micromips_relative_offset16): Likewise.
4574         (micromips_pc_insn_size): Likewise.
4575         (micromips_bc1_pc): Likewise.
4576         (micromips_next_pc): Likewise.
4577         (unpack_mips16): Update mips_fetch_instruction call.
4578         (extended_mips16_next_pc): Update according to change to
4579         mips16_to_32_reg.
4580         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4581         code.
4582         (mips16_scan_prologue): Update mips_fetch_instruction call.
4583         Update according to change to mips16_to_32_reg.
4584         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4585         (mips_insn16_frame_base_sniffer): Likewise.
4586         (micromips_decode_imm9): New function.
4587         (micromips_scan_prologue): Likewise.
4588         (mips_micro_frame_cache): Likewise.
4589         (mips_micro_frame_this_id): Likewise.
4590         (mips_micro_frame_prev_register): Likewise.
4591         (mips_micro_frame_sniffer): Likewise.
4592         (mips_micro_frame_unwind): New variable.
4593         (mips_micro_frame_base_address): New function.
4594         (mips_micro_frame_base): New variable.
4595         (mips_micro_frame_base_sniffer): New function.
4596         (mips32_scan_prologue): Update mips_fetch_instruction call.
4597         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4598         rather than for MIPS16.
4599         (mips_insn32_frame_base_sniffer): Likewise.
4600         (mips_addr_bits_remove): Handle microMIPS code.
4601         (deal_with_atomic_sequence): Rename to...
4602         (mips_deal_with_atomic_sequence): ... this.  Update the type
4603         of the variable used to hold an instruction.  Remove the ISA bit
4604         check.  Update mips_fetch_instruction call.
4605         (micromips_deal_with_atomic_sequence): New function.
4606         (deal_with_atomic_sequence): Likewise.
4607         (mips_about_to_return): Handle microMIPS code.  Update
4608         mips_fetch_instruction call.
4609         (heuristic_proc_start): Check for the standard MIPS ISA rather
4610         than for MIPS16.  Update mips_pc_is_mips16 and
4611         mips_fetch_instruction calls.  Handle microMIPS code.
4612         (mips_push_dummy_code): Handle microMIPS code.
4613         (mips_eabi_push_dummy_call): Likewise.
4614         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4615         (mips_o64_push_dummy_call): Handle microMIPS code.
4616         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4617         (is_delayed): Remove function.
4618         (mips_single_step_through_delay): Replace the call to is_delayed
4619         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4620         Handle microMIPS code.
4621         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4622         microMIPS code.
4623         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4624         call.
4625         (micromips_in_function_epilogue_p): New function.
4626         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4627         call.
4628         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4629         Handle microMIPS.
4630         (gdb_print_insn_mips): Likewise.
4631         (mips_breakpoint_from_pc): Likewise.
4632         (mips_remote_breakpoint_from_pc): New function.
4633         (mips32_instruction_has_delay_slot): Simplify making use of the
4634         updated mips_fetch_instruction interface.
4635         (micromips_instruction_has_delay_slot): New function.
4636         (mips16_instruction_has_delay_slot): Simplify making use of the
4637         updated mips_fetch_instruction interface.
4638         (mips_adjust_breakpoint_address): Check for the standard MIPS
4639         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4640         calls.  Handle microMIPS code.
4641         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4642         (mips_skip_trampoline_code): Handle microMIPS code.
4643         (global_mips_compression): New function.
4644         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4645         file flags.  Register the microMIPS remote breakpoint handler
4646         and heuristic frame unwinder.
4647         (show_mips_compression): New function.
4648         (_initialize_mips_tdep): Add the "set mips compression" and
4649         "show mips compression" commands.
4650
4651 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4652
4653         * ada-lang.c:
4654         * ada-tasks.c:
4655         * ada-varobj.c:
4656         * amd64-darwin-tdep.c:
4657         * arm-symbian-tdep.c:
4658         * arm-tdep.c:
4659         * avr-tdep.c:
4660         * ax-gdb.c:
4661         * bfin-linux-tdep.c:
4662         * breakpoint.c:
4663         * c-valprint.c:
4664         * cli/cli-cmds.c:
4665         * coffread.c:
4666         * cp-support.c:
4667         * cris-tdep.c:
4668         * dwarf2-frame-tailcall.c:
4669         * dwarf2-frame.c:
4670         * dwarf2expr.c:
4671         * dwarf2loc.c:
4672         * dwarf2read.c:
4673         * elfread.c:
4674         * eval.c:
4675         * expprint.c:
4676         * f-valprint.c:
4677         * frv-tdep.c:
4678         * h8300-tdep.c:
4679         * hppa-hpux-tdep.c:
4680         * hppa-tdep.c:
4681         * hppanbsd-tdep.c:
4682         * i386-nto-tdep.c:
4683         * i386-tdep.c:
4684         * i387-tdep.c:
4685         * ia64-tdep.c:
4686         * jit.c:
4687         * linespec.c:
4688         * linux-tdep.c:
4689         * lm32-tdep.c:
4690         * m2-valprint.c:
4691         * m32c-tdep.c:
4692         * m32r-rom.c:
4693         * m32r-tdep.c:
4694         * m68k-tdep.c:
4695         * m68klinux-tdep.c:
4696         * mi/mi-main.c:
4697         * microblaze-tdep.c:
4698         * mips-linux-tdep.c:
4699         * mips-tdep.c:
4700         * mn10300-tdep.c:
4701         * p-valprint.c:
4702         * parse.c:
4703         * ppc-linux-tdep.c:
4704         * ppc-sysv-tdep.c:
4705         * printcmd.c:
4706         * python/py-finishbreakpoint.c:
4707         * python/py-inferior.c:
4708         * python/py-infthread.c:
4709         * python/py-type.c:
4710         * python/python.c:
4711         * remote-fileio.c:
4712         * remote-m32r-sdi.c:
4713         * remote-mips.c:
4714         * reverse.c:
4715         * rl78-tdep.c:
4716         * rs6000-aix-tdep.c:
4717         * rs6000-tdep.c:
4718         * s390-tdep.c:
4719         * score-tdep.c:
4720         * sh64-tdep.c:
4721         * skip.c:
4722         * solib-darwin.c:
4723         * solib-dsbt.c:
4724         * solib-frv.c:
4725         * sparc-tdep.c:
4726         * spu-multiarch.c:
4727         * spu-tdep.c:
4728         * stack.c:
4729         * symfile.c:
4730         * symtab.c:
4731         * tic6x-tdep.c:
4732         * tracepoint.c:
4733         * v850-tdep.c:
4734         * valarith.c:
4735         * valprint.c:
4736         * value.c:
4737         * xcoffread.c:
4738         * xtensa-tdep.c:
4739         * ada-lang.c:
4740         * ada-tasks.c:
4741         * ada-varobj.c:
4742         * amd64-darwin-tdep.c:
4743         * arm-symbian-tdep.c:
4744         * arm-tdep.c: Delete unused variables.
4745
4746 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4747
4748         Rename $ddir to $datadir.
4749         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4750         * auto-load.c (auto_load_safe_path_vec_update)
4751         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4752         * configure: Regenerate.
4753         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4754         Likewise.  Remove the 'use $ddir' help string.
4755
4756 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4757
4758         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4759         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4760
4761 2012-05-18  Tom Tromey  <tromey@redhat.com>
4762
4763         PR exp/13907:
4764         * valprint.h (struct value_print_options) <symbol_print>: New
4765         field.
4766         * valprint.c (user_print_options): Add default for symbol_print.
4767         (show_symbol_print): New function.
4768         (generic_val_print): Respect symbol_print.
4769         (_initialize_valprint): Add "print symbol" setting.
4770         * f-valprint.c (f_val_print): Respect symbol_print.
4771         * c-valprint.c (c_val_print): Respect symbol_print.
4772         * NEWS: Update.
4773         * printcmd.c (print_address_symbolic): Return int.  Ignore some
4774         zero-size symbols.
4775         (print_address_demangle): Return int.
4776         * defs.h: (print_address_symbolic): Return int.
4777         * value.h (print_address_demangle): Return int.
4778
4779 2012-05-18  Tom Tromey  <tromey@redhat.com>
4780
4781         * valprint.c (val_print_string): Don't print leading space.
4782         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4783         print space before string or vtbl.
4784         * m2-valprint.c (print_unpacked_pointer): Optionally print space
4785         before string.
4786         * jv-valprint.c (java_value_print): Print space before string.
4787         * go-valprint.c (print_go_string): Print space before string.
4788         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4789         space before string.
4790         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4791         space before string or vtbl.
4792         * auxv.c (fprint_target_auxv): Print space after address.
4793
4794 2012-05-18  Tom Tromey  <tromey@redhat.com>
4795
4796         * printcmd.c (print_address_demangle): Remove special case for 0.
4797
4798 2012-05-18  Tom Tromey  <tromey@redhat.com>
4799
4800         * printcmd.c (print_address_demangle): Add 'opts' argument.
4801         * p-valprint.c (pascal_val_print): Update.
4802         * jv-valprint.c (java_val_print): Update.
4803         * value.h: Update.
4804         * valprint.c (generic_val_print): Update.
4805         (print_function_pointer_address): Add 'options' argument.  Remove
4806         'addressprint' argument.  Update.
4807         * m2-valprint.c (print_unpacked_pointer): Update.
4808         * gnu-v3-abi.c (print_one_vtable): Update.
4809         (gnuv3_print_method_ptr): Update.
4810         * f-valprint.c (f_val_print): Update.
4811         * cp-valprint.c (cp_print_value_fields): Update.
4812         * valprint.h (print_function_pointer_address): Update.
4813         * c-valprint.c (c_val_print): Update.
4814
4815 2012-05-18  Tom Tromey  <tromey@redhat.com>
4816
4817         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4818         directly corresponding to the found psymtab.
4819         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4820         (dw2_find_pc_sect_symtab): Use it.
4821         * block.h (blockvector_contains_pc): Declare.
4822         * block.c (find_block_in_blockvector): New function.
4823         (blockvector_for_pc_sect): Use it.
4824         (blockvector_contains_pc): New function.
4825
4826 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4827
4828         * mips-tdep.h (mips_write_pc): New prototype.
4829         * mips-tdep.c (mips_write_pc): Make external, add description.
4830         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4831         add description.
4832
4833 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4834
4835         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4836         mips_regnum->pc.
4837         (mips_unwind_pc, mips_write_pc): Likewise.
4838         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4839         gdbarch_read_pc.
4840
4841 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
4842
4843         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4844         proc_warn, proc_error, proc_get_status, proc_flags,
4845         proc_why, proc_what, proc_nsysarg, proc_sysargs,
4846         proc_set_run_on_last_close, proc_unset_run_on_last_close,
4847         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4848         proc_stop_process, proc_wait_for_stop, proc_run_process,
4849         proc_set_traced_signals, proc_set_traced_faults,
4850         proc_set_traced_sysentry, proc_set_traced_sysexit,
4851         proc_set_held_signals, proc_get_held_signals,
4852         proc_get_traced_signals, proc_get_traced_faults,
4853         proc_get_traced_sysentry, proc_get_traced_sysexit,
4854         proc_clear_current_fault, proc_set_current_signal,
4855         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4856         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4857         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4858         proc_get_current_thread, proc_get_current_thread,
4859         proc_get_current_thread, proc_update_threads,
4860         proc_update_threads, proc_update_threads, proc_update_threads,
4861         proc_iterate_over_threads, procfs_find_new_threads,
4862         procfs_pid_to_str): Make static.  Remove advance declaration.
4863         (proc_cursig): Make static.  Conditionalized defintion on
4864         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4865         (proc_syscall, proc_set_kill_on_last_close,
4866         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4867         proc_get_pending_signals, proc_get_signal_actions,
4868         proc_trace_signal, proc_ignore_signal): Delete.
4869
4870 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4871
4872         * coffread.c (cs_section_address): Passing proper argument for
4873         `bfd_get_section_vma'.
4874         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4875         `bfd_get_section_flags'.
4876         * remote.c (remote_trace_set_readonly_regions): Likewise, for
4877         `bfd_get_section_vma'.
4878
4879 2012-05-16  Tom Tromey  <tromey@redhat.com>
4880
4881         PR macros/13205:
4882         * macrotab.h: (macro_define_special): Declare.
4883         (enum macro_special_kind): New.
4884         (struct macro_definition) <argc, replacement>: Update comments.
4885         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4886         (macro_define_object_internal): New function.
4887         (macro_define_object): Use it.
4888         (macro_define_special): New function.
4889         (fixup_definition): New function.
4890         (macro_lookup_definition, foreach_macro_in_scope)
4891         (foreach_macro): Use fixup_definition.
4892         * macroexp.h (macro_stringify): Declare.
4893         * macroexp.c (free_buffer_return_text): New function.
4894         (stringify): Constify "arg".
4895         (macro_stringify): New function.
4896         * dwarf2read.c (macro_start_file): Call macro_define_special.
4897
4898 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4899             Maciej W. Rozycki  <macro@mips.com>
4900
4901         * breakpoint.h (bp_location): Add related_address member.
4902         * inferior.h (get_return_value): Take a pointer to struct value
4903         instead of struct type for the function requested.
4904         * value.h (using_struct_return): Likewise.
4905         * gdbarch.sh (return_value): Take a pointer to struct value
4906         instead of struct type for the function requested.
4907         * breakpoint.c (set_breakpoint_location_function): Initialize
4908         related_address for bp_gnu_ifunc_resolver breakpoints.
4909         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4910         requested function's address to gdbarch_return_value.
4911         * eval.c (evaluate_subexp_standard): Pass the requested
4912         function's address to using_struct_return.
4913         * infcall.c (call_function_by_hand): Pass the requested
4914         function's address to using_struct_return and
4915         gdbarch_return_value.
4916         * infcmd.c (get_return_value): Take a pointer to struct value
4917         instead of struct type for the function requested.
4918         (print_return_value): Update accordingly.
4919         (finish_command_continuation): Likewise.
4920         * stack.c (return_command): Pass the requested function's
4921         address to using_struct_return and gdbarch_return_value.
4922         * value.c (using_struct_return): Take a pointer to struct value
4923         instead of struct type for the function requested.  Pass the
4924         requested function's address to gdbarch_return_value.
4925         * python/py-finishbreakpoint.c (finish_breakpoint_object):
4926         New function_value member, replacing function_type.
4927         (bpfinishpy_dealloc): Update accordingly.
4928         (bpfinishpy_pre_stop_hook): Likewise.
4929         (bpfinishpy_init): Likewise.  Record the requested function's
4930         address.
4931         * mips-tdep.c (mips_fval_reg): New enum.
4932         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4933         words put in GP registers.
4934         (mips_o64_push_dummy_call): Update a comment.
4935         (mips_o32_return_value): Take a pointer to struct value instead
4936         of struct type for the function requested and use it to check if
4937         using the MIPS16 calling convention.  Return the designated
4938         general purpose registers for floating-point values returned in
4939         MIPS16 mode.
4940         (mips_o64_return_value): Likewise.
4941         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4942         (ppc_sysv_abi_broken_return_value): Likewise.
4943         (ppc64_sysv_abi_return_value): Likewise.
4944         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4945         value instead of struct type for the function requested.
4946         * amd64-tdep.c (amd64_return_value): Likewise.
4947         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4948         * arm-tdep.c (arm_return_value): Likewise.
4949         * avr-tdep.c (avr_return_value): Likewise.
4950         * bfin-tdep.c (bfin_return_value): Likewise.
4951         * cris-tdep.c (cris_return_value): Likewise.
4952         * frv-tdep.c (frv_return_value): Likewise.
4953         * h8300-tdep.c (h8300_return_value): Likewise.
4954         (h8300h_return_value): Likewise.
4955         * hppa-tdep.c (hppa32_return_value): Likewise.
4956         (hppa64_return_value): Likewise.
4957         * i386-tdep.c (i386_return_value): Likewise.
4958         * ia64-tdep.c (ia64_return_value): Likewise.
4959         * iq2000-tdep.c (iq2000_return_value): Likewise.
4960         * lm32-tdep.c (lm32_return_value): Likewise.
4961         * m32c-tdep.c (m32c_return_value): Likewise.
4962         * m32r-tdep.c (m32r_return_value): Likewise.
4963         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4964         * m68k-tdep.c (m68k_return_value): Likewise.
4965         (m68k_svr4_return_value): Likewise.
4966         * m88k-tdep.c (m88k_return_value): Likewise.
4967         * mep-tdep.c (mep_return_value): Likewise.
4968         * microblaze-tdep.c (microblaze_return_value): Likewise.
4969         * mn10300-tdep.c (mn10300_return_value): Likewise.
4970         * moxie-tdep.c (moxie_return_value): Likewise.
4971         * mt-tdep.c (mt_return_value): Likewise.
4972         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4973         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4974         (ppc_sysv_abi_broken_return_value): Likewise.
4975         (ppc64_sysv_abi_return_value): Likewise.
4976         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4977         * rl78-tdep.c (rl78_return_value): Likewise.
4978         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4979         * rx-tdep.c (rx_return_value): Likewise.
4980         * s390-tdep.c (s390_return_value): Likewise.
4981         * score-tdep.c (score_return_value): Likewise.
4982         * sh-tdep.c (sh_return_value_nofpu): Likewise.
4983         (sh_return_value_fpu): Likewise.
4984         * sh64-tdep.c (sh64_return_value): Likewise.
4985         * sparc-tdep.c (sparc32_return_value): Likewise.
4986         * sparc64-tdep.c (sparc64_return_value): Likewise.
4987         * spu-tdep.c (spu_return_value): Likewise.
4988         * tic6x-tdep.c (tic6x_return_value): Likewise.
4989         * v850-tdep.c (v850_return_value): Likewise.
4990         * vax-tdep.c (vax_return_value): Likewise.
4991         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4992         * xtensa-tdep.c (xtensa_return_value): Likewise.
4993         * gdbarch.c: Regenerate.
4994         * gdbarch.h: Regenerate.
4995
4996 2012-05-15  Tom Tromey  <tromey@redhat.com>
4997
4998         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4999
5000 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5001
5002         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5003         of command in two error message.
5004
5005 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5006
5007         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5008
5009 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5010
5011         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5012
5013 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5014
5015         * NEWS (show auto-load scripts-directory): Add forgotten command.
5016
5017 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5018
5019         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5020         parameters.
5021
5022 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5023
5024         * amd64-tdep.c: Include features/i386/x32.c and
5025         features/i386/x32-avx.c.
5026         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5027         initialize_tdesc_x32_avx.
5028
5029 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5030
5031         Add dynamic printf.
5032         * breakpoint.h (enum bptype): New type bp_dprintf.
5033         (struct breakpoint): New field extra_string.
5034         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5035         (create_breakpoint): Add extra_string arg.
5036         * breakpoint.c (dprintf_breakpoint_ops): New.
5037         (is_breakpoint): Add bp_dprintf.
5038         (bpstat_what): Add dprintf case.
5039         (bptype_string): Ditto.
5040         (print_one_breakpoint_location): Ditto.
5041         (init_bp_location): Ditto.
5042         (bkpt_print_mention): Ditto.
5043         (dprintf_style_enums): New array.
5044         (dprintf_style): New global.
5045         (dprintf_function): New global.
5046         (dprintf_channel): New global.
5047         (update_dprintf_command_list): New function.
5048         (update_dprintf_commands): New function.
5049         (init_breakpoint_sal): Add extra_string argument, handle it.
5050         (create_breakpoint_sal): Add extra_string argument.
5051         (create_breakpoints_sal): Add extra_string argument, update callers.
5052         (find_condition_and_thread): Add extra argument.
5053         (create_breakpoint): Add extra_string argument, record it.
5054         (dprintf_command): New function.
5055         (break_command_1): Add arg to create_breakpoint call.
5056         (handle_gnu_v3_exceptions): Ditto.
5057         (trace_command): Ditto.
5058         (ftrace_command): Ditto.
5059         (strace_command): Ditto.
5060         (bkpt_print_mention): Add dprintf case.
5061         (create_breakpoint_sal_default): Add extra_string argument.
5062         (_initialize_breakpoint): Add new commands.
5063         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5064         * python/py-breakpoint.c (bppy_init): Ditto.
5065         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5066
5067 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5068
5069         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5070
5071 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5072
5073         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5074         unsigned long long.
5075
5076 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5077
5078         Add a new function gdb.find_pc_line to the Python API.
5079         * NEWS (Python Scripting): Add entry about the new function.
5080         * python/python.c (gdbpy_find_pc_line): New function which
5081         implements gdb.find_pc_line.
5082         (GdbMethods): Add entry for the new function.
5083
5084 2012-05-12  Pedro Alves  <palves@redhat.com>
5085
5086         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5087         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5088
5089 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5090
5091         * inferior.c: Include completer.h
5092         (initialize_inferiors): Set completer of add-inferior to
5093         filename_completer.
5094
5095 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5096
5097         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5098         gdbarch_ptr_bit for x32 core dump.
5099
5100 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5101
5102         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5103         and features/i386/x32-avx-linux.c.
5104
5105 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5106             Kwok Cheung Yeung  <kcy@codesourcery.com>
5107
5108         * NEWS: Describe new info os commands.
5109         * common/linux-osdata.c (PID_T, TIME_T): Define.
5110         (MAX_PID_T_STRLEN): New.
5111         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5112         MAX_PID_T_STRLEN.
5113         (command_from_pid): Add comment.  Change to use PID_T.
5114         (commandline_from_pid):  Change to use PID_T.
5115         (user_from_pid): Add comment.
5116         (get_process_owner): Add comment. Change to use PID_T and
5117         MAX_PID_T_STRLEN.
5118         (get_number_of_cpu_cores): Add comment.
5119         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5120         MAX_PID_T_STRLEN.
5121         (linux_xfer_osdata_processes): Change to use PID_T and
5122         MAX_PID_T_STRLEN.
5123         (compare_processes): New function.
5124         (linux_xfer_osdata_processgroups): New function.
5125         (linux_xfer_osdata_threads): Change to use PID_T.
5126         (linux_xfer_osdata_fds): New function.
5127         (format_socket_state, print_sockets): New functions.
5128         (union socket_addr): New union.
5129         (linux_xfer_osdata_isockets): New function.
5130         (time_from_time_t, group_from_gid): New functions.
5131         (linux_xfer_osdata_shm): New function.
5132         (linux_xfer_osdata_sem): New function.
5133         (linux_xfer_osdata_msg): New function.
5134         (linux_xfer_osdata_modules): New function.
5135         (osdata_table): Add new entries.
5136         * common/buffer.c (buffer_xml_printf): Add support for long and
5137         long long format specifiers.
5138
5139 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5140
5141         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5142         (tdesc_x32_avx_linux): Likewise.
5143
5144 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5145
5146         Implement multi-component --with-auto-load-dir.
5147         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5148         entries.
5149         (--with-auto-load-safe-path): Update the default value description.
5150         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5151         New.
5152         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5153         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5154         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5155         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5156         "set auto-load scripts-directory".
5157         * config.in: Regenerate.
5158         * configure: Regenerate.
5159         * configure.ac (--with-auto-load-dir): New configure option.
5160         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5161
5162 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5163
5164         Provide $ddir substitution for --with-auto-load-safe-path.
5165         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5166         entries.
5167         * auto-load.c: Include observer.h.
5168         (auto_load_safe_path_vec_update): Call substitute_path_component for
5169         each component.  New variable ddir_subst.
5170         (auto_load_gdb_datadir_changed): New function.
5171         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5172         AUTO_LOAD_SAFE_PATH.  New comment.
5173         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5174         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5175         * config.in: Regenerate.
5176         * configure: Regenerate.
5177         * configure.ac (--auto-load-safe-path): Rename
5178         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5179         GDB_DATADIR/auto-load.
5180         * defs.h (substitute_path_component): New declaration.
5181         * top.c: Include observer.h.
5182         (set_gdb_datadir): New function.
5183         (init_main): Install it for "set data-directory".
5184         * utils.c (substitute_path_component): New function.
5185
5186 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5187
5188         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5189         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5190         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5191         DEBUG_FILE_DIRECTORY.
5192
5193 2012-05-10  Tom Tromey  <tromey@redhat.com>
5194
5195         * dwarf2read.c (recursively_write_psymbols): New function.
5196         (write_psymtabs_to_index): Use it.
5197
5198         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5199         field.
5200         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5201         (load_partial_comp_unit): Update.
5202         (queue_comp_unit): Add argument 'pretend_language'.
5203         (process_queue): Update.
5204         (psymtab_to_symtab_1): Skip dependencies that have a user.
5205         (load_partial_comp_unit_reader): Give meaning to the 'data'
5206         argument.
5207         (load_full_comp_unit): Add 'pretend_language' argument.
5208         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5209         language on CU.
5210         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5211         Update.
5212         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5213         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5214         Update.
5215         (prepare_one_comp_unit): Add 'pretend_language' argument.
5216
5217         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5218         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5219         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5220         (dw2_do_instantiate_symtab): Check whether symtab was read in
5221         before queueing.
5222         (dw2_instantiate_symtab): Add assertion.  Call
5223         process_cu_includes.
5224         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5225         (partial_symtab_p): New typedef.
5226         (set_partial_user): New function.
5227         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5228         (scan_partial_symbols): Add imported CU to imported_symtabs.
5229         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5230         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5231         (get_symtab, recursively_compute_inclusions)
5232         (compute_symtab_includes, process_cu_includes)
5233         (process_imported_unit_die): New functions.
5234         (process_die) <DW_TAG_imported_unit>: New case.
5235         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5236
5237         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5238         comment.
5239         (struct partial_die_info) <locdesc>: Remove.
5240         <d>: New field.
5241         (process_psymtab_comp_unit): Add 'read_partial' argument.
5242         Update.
5243         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5244         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5245         (add_partial_symbol): Update.
5246         (process_die): Handle DW_TAG_partial_unit.
5247         (read_file_scope): Update comment.
5248         (load_partial_dies): Handle DW_TAG_imported_unit.
5249         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5250         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5251
5252 2012-05-10  Tom Tromey  <tromey@redhat.com>
5253
5254         * cc-with-dwz.sh: New file.
5255
5256 2012-05-10  Tom Tromey  <tromey@redhat.com>
5257
5258         * symtab.h (struct symtab) <includes, user>: New fields.
5259         * block.h (struct block_iterator) <d, idx, which>: New fields.
5260         * block.c (initialize_block_iterator, find_iterator_symtab)
5261         (block_iterator_step, block_iter_name_step)
5262         (block_iter_match_step): New functions.
5263         (block_iterator_first, block_iterator_next)
5264         (block_iter_name_first, block_iter_name_next)
5265         (block_iter_match_first, block_iter_match_next): Rewrite.
5266         (get_block_symtab): New function.
5267
5268 2012-05-10  Tom Tromey  <tromey@redhat.com>
5269
5270         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5271         set_block_symtab.
5272         * jit.c (finalize_symtab): Use allocate_global_block,
5273         set_block_symtab.
5274         * buildsym.c (finish_block_internal): New function, from old
5275         finish_block.
5276         (finish_block): Rewrite.
5277         (end_symtab): Use finish_block_internal, set_block_symtab.
5278         * block.h (struct global_block): New.
5279         (allocate_global_block, set_block_symtab): Declare.
5280         * block.c (allocate_global_block, set_block_symtab): New
5281         functions.
5282
5283 2012-05-10  Tom Tromey  <tromey@redhat.com>
5284
5285         * psymtab.c (partial_map_expand_apply): Add assertion.
5286         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5287         (psymtab_to_symtab): Find unshared psymtab.
5288         (dump_psymtab): Print including psymtabs.
5289         (recursively_search_psymtabs): New function.
5290         (expand_symtabs_matching_via_partial): Use it.
5291         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5292         fields.
5293         (enum psymtab_search_status): New.
5294
5295 2012-05-10  Tom Tromey  <tromey@redhat.com>
5296
5297         * tracepoint.c (scope_info): Update.
5298         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5299         (find_pc_sect_symtab, search_symbols)
5300         (default_make_symbol_completion_list_break_on)
5301         (make_file_symbol_completion_list): Update.
5302         * symmisc.c (dump_symtab_1): Update.
5303         * stack.c (print_frame_args, iterate_over_block_locals)
5304         (print_frame_labels, iterate_over_block_arg_vars): Update.
5305         * python/py-block.c (block_object) <dict>: Remove.
5306         <block>: New field.
5307         <iter>: Change type.
5308         (blpy_iter): Update.
5309         (blpy_block_syms_iternext): Update.
5310         * psymtab.c (map_block): Use block iterators.
5311         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5312         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5313         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5314         * infrun.c (check_exception_resume): Update.
5315         * cp-support.c (make_symbol_overload_list_block): Update.
5316         * coffread.c (patch_opaque_types): Update.
5317         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5318         * block.h (struct block_iterator): New.
5319         (block_iterator_first, block_iterator_next, block_iter_name_first)
5320         (block_iter_name_next, block_iter_match_first)
5321         (block_iter_match_next): Declare.
5322         (ALL_BLOCK_SYMBOLS): Redefine.
5323         * block.c (block_iterator_first, block_iterator_next)
5324         (block_iter_name_first, block_iter_name_next)
5325         (block_iter_match_first, block_iter_match_next): New functions.
5326         * ada-lang.c (ada_add_block_symbols)
5327         (ada_make_symbol_completion_list): Use block iterator.
5328
5329 2012-05-10  Tom Tromey  <tromey@redhat.com>
5330
5331         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5332         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5333         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5334         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5335         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5336         Update.
5337
5338 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5339
5340         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5341         print-file-var-lib2.c, print-file-var-main.c and
5342         print-file-var.exp (located in gdb/testsuite/gdb.base).
5343
5344 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5345
5346         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5347         try locating the symbol in the symbol's own objfile first, before
5348         extending the search to all objfiles.
5349         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5350         out of lookup_symbol_aux_symtabs.
5351         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5352         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5353         Do not search EXCLUDE_OBJFILE.
5354         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5355         (lookup_symbol_global): Search for matches in the block's objfile
5356         first, before searching all other objfiles.
5357
5358 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5359
5360         * printcmd.c (set_command): Add pre/post inc/dec.
5361
5362 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5363
5364         * gdb.1: Document -ex option.
5365
5366 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5367
5368         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5369         * inferior.h (AT_SYMBOL): Delete.
5370
5371 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5372
5373         * mips-tdep.c (mips_push_dummy_code): New function.
5374         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5375         ON_STACK and install mips_push_dummy_code as our gdbarch
5376         push_dummy_code routine.
5377
5378 2012-05-09  Pedro Alves  <palves@redhat.com>
5379
5380         * target.c (set_maintenance_target_async_permitted): Rename to ...
5381         (set_target_async_command): ... this.
5382         (show_maintenance_target_async_permitted): Rename to ...
5383         (show_target_async_command): ... this.
5384         (initialize_targets): Adjust.
5385
5386 2012-05-08  Doug Evans  <dje@google.com>
5387
5388         * go-exp.y (classify_name): Add missing assignment of fields of
5389         yylval.ssym.
5390
5391 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5392
5393         Display the ">" prompt in interactive mode while reading canned
5394         commands, even when the current interpreter is MI.
5395
5396         * interps.c (interp_set_temp): New function.
5397
5398         * interps.h (interp_set_temp): Add prototype.
5399
5400         * cli/cli-script.c (restore_interp): New cleanup function.
5401         (read_command_lines): Temporarily override the current interpreter
5402         with CLI and arrange for restoring the original one.
5403
5404 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5405
5406         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5407
5408 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5409
5410         * probe.c (parse_probes): Move conditional to check for
5411         debuginfo files from here...
5412         * stap-probe.c (stap_get_probes): ... to here.
5413
5414 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5415             H.J. Lu  <hongjiu.lu@intel.com>
5416
5417         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5418         `movl %esp, %ebp' for the X32 ABI.
5419
5420 2012-05-07  Tom Tromey  <tromey@redhat.com>
5421
5422         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5423         get_DW_TAG_name.
5424         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5425         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5426         (dwarf_stack_op_name): Remove.
5427         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5428         (decode_locdesc): Use get_DW_OP_name.
5429         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5430         (dwarf2_compile_expr_to_ax): Likewise.
5431         (disassemble_dwarf_expression): Likewise.
5432         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5433
5434 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5435
5436         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5437         (sh_linux_sigtramp_cache): New function.
5438         (sh_linux_sigreturn_init): New function.
5439         (sh_linux_rt_sigreturn_init): New function.
5440         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5441         patterns.
5442         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5443         syscall codes.
5444         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5445         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5446         (sh_linux_init_abi): Add init calls to register new tramp_frame
5447         definitions under 32-bit SH, update comments.
5448
5449 2012-05-07  Pedro Alves  <palves@redhat.com>
5450
5451         PR gdb/10952
5452
5453         * amd64-linux-tdep.c: Include glibc-tdep.h.
5454         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5455         gdbarch_skip_solib_resolver callback.
5456
5457 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5458
5459         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5460         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5461         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5462         (add_auto_load_safe_path): Change the error message.
5463         (_initialize_auto_load): Change the "safe-path" help text.
5464         * configure: Regenerate
5465         * configure.ac (--without-auto-load-safe-path): Set
5466         WITH_AUTO_LOAD_SAFE_PATH to /.
5467
5468 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5469
5470         * stap-probe.h: Do not include unecessary `probe.h'.
5471
5472 2012-05-05  Alan Modra  <amodra@gmail.com>
5473
5474         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5475         bfd_und_section_ptr.
5476         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5477         and bfd_com_section_ptr.
5478
5479 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5480
5481         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5482
5483 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5484
5485         * windows-nat.h (segment_register_p_ftype): New typedef.
5486         (windows_set_segment_register_p): Add declaration.
5487         * windows-nat.c (segment_register_p): New static global.
5488         (windows_set_segment_register_p): New function.
5489         (do_windows_fetch_inferior_registers): Add special handling
5490         for segment registers.
5491         * amd64-windows-nat.c: #include "amd64-tdep.h".
5492         (amd64_windows_segment_register_p): New function.
5493         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5494         * i386-windows-nat.c: #include "i386-tdep.h".
5495         (i386_windows_segment_register_p): New function.
5496         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5497
5498 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5499
5500         * printcmd.c (set_command): Emit a warning if the expression is not
5501         an assignment.
5502
5503 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5504
5505         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5506         Make static.
5507
5508 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5509
5510         * stap-probe.c (stap_is_operator): Change declaration.
5511         (stap_get_opcode): Change return value.
5512         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5513         `stap_parse_argument_1'.
5514
5515 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5516
5517         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5518         debug log.
5519
5520 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5521
5522         Add two new methods global_block and static_block to gdb.Symtab
5523         objects.
5524         * NEWS (Python scripting): Add entry about the new methods.
5525         * python/py-symtab.c (stpy_global_block): New function which
5526         implements the gdb.Symtab.global_block() method.
5527         (stpy_static_block): New function which implements the
5528         gdb.Symtab.static_block() method.
5529         (symtab_object_methods): Add entries for the two new methods.
5530
5531 2012-05-03  Doug Evans  <dje@google.com>
5532
5533         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5534         files.
5535
5536 2012-05-03  Yao Qi  <yao@codesourcery.com>
5537
5538         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5539         space.
5540         (i386_process_record): Ditto.
5541
5542 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5543
5544         * infcall.c (unwind_on_signal_p): Make static.
5545
5546 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5547
5548         * sol-thread.c (solaris_pid_to_str): Make static.
5549         (_initialize_sol_thread): Add prototype.
5550
5551 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5552
5553         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5554
5555 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5556
5557         * MAINTAINERS: Remove myself.
5558
5559 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5560
5561         Fix --without-auto-load-safe-path for MS-Windows host platform.
5562         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5563
5564 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5565
5566         * gdb_curses.h: Undefine KEY_EVENT before including curses
5567         headers.  Move "#undef MOUSE_MOVED" before any curses header
5568         inclusion.
5569
5570 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5571
5572         * features/i386/i386-mmx-linux.c: Regenerate.
5573         * features/rs6000/powerpc-32.c: Likewise.
5574         * features/rs6000/powerpc-32l.c: Likewise.
5575         * features/rs6000/powerpc-403.c: Likewise.
5576         * features/rs6000/powerpc-403gc.c: Likewise.
5577         * features/rs6000/powerpc-405.c: Likewise.
5578         * features/rs6000/powerpc-505.c: Likewise.
5579         * features/rs6000/powerpc-601.c: Likewise.
5580         * features/rs6000/powerpc-602.c: Likewise.
5581         * features/rs6000/powerpc-603.c: Likewise.
5582         * features/rs6000/powerpc-604.c: Likewise.
5583         * features/rs6000/powerpc-64.c: Likewise.
5584         * features/rs6000/powerpc-64l.c: Likewise.
5585         * features/rs6000/powerpc-750.c: Likewise.
5586         * features/rs6000/powerpc-860.c: Likewise.
5587         * features/rs6000/powerpc-e500.c: Likewise.
5588         * features/rs6000/powerpc-e500l.c: Likewise.
5589         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5590         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5591         * features/rs6000/rs6000.c: Likewise.
5592
5593 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5594
5595         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5596         variable.
5597         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5598         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5599         (stap_parse_argument) <e>: Likewise.
5600         (handle_stap_probe) <byte_order>: Likewise.
5601
5602 2012-04-30  Doug Evans  <dje@google.com>
5603
5604         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5605         init_and_read_dies_worker.  All callers updated.
5606         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5607         replaced with init_cutu_and_read_dies.
5608         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5609         (find_partial_die): Remove FIXME.  Don't free current CU.
5610
5611 2012-04-30  Sterling Augustine  <saugustine@google.com>
5612
5613         * contrib: New directory.
5614         * contrib/test_pubnames_and_indexes.py: New file.
5615
5616 2012-04-30  Doug Evans  <dje@google.com>
5617
5618         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5619         All callers updated.
5620         (init_cu_die_reader): Verify the section is non-empty.
5621         (dwarf_decode_line_header): Don't dereference section->asection
5622         until we know the section is present.
5623
5624 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5625
5626         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5627         probes.
5628
5629 2012-04-29  Yao Qi  <yao@codesourcery.com>
5630
5631         * gdb-code-style.el: New hook gdb-markup-hook
5632         and gdb-comment-hook.
5633
5634 2012-04-28  Doug Evans  <dje@google.com>
5635
5636         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5637         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5638         objfile->obfd.
5639         * symfile.h (dwarf2_debug_sections): New member addr.
5640         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5641         (ctx_no_get_addr_index): New function.
5642         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5643         (ctx_no_get_addr_index): Declare.
5644         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5645         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5646         (dwarf_expr_ctx_funcs): Update.
5647         (needs_get_addr_index): New function.
5648         (needs_frame_ctx_funcs): Update.
5649         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5650         * dwarf2read.c: #include "gdbcore.h".
5651         (dwarf2_per_objfile): New members addr, dwo_files.
5652         (dwarf2_elf_names): Add entry for addr.
5653         (struct dwo_section_names): New type.
5654         (dwo_section_names): New static global.
5655         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5656         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5657         old debug_types_section member updated to use this.
5658         Rename member debug_types_section to info_or_types_section,
5659         all uses updated.
5660         (signatured_type): Rename member type_offset to type_offset_in_tu,
5661         all uses updated.  New member type_offset_in_section.
5662         (struct dwo_sections): New type.
5663         (struct dwo_unit): New type.
5664         (struct dwo_file): New type.
5665         (die_reader_specs): New member dwo_file.
5666         (dwarf2_locate_sections): Watch for .debug_addr.
5667         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5668         (dwarf2_read_section): Get bfd of section from bfd's asection,
5669         instead of objfile.
5670         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5671         (create_signatured_type_table_from_index): Initialize
5672         sig_type->info_or_types_section.
5673         (dw2_get_file_names): Statement lists for type units with DWO files
5674         live in the DWO file.
5675         (create_debug_types_hash_table): New function.
5676         (create_all_type_units): Rewrite.
5677         (init_cu_die_reader): New arg dwo_file, all callers updated.
5678         (init_and_read_dies_worker): Get section from
5679         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5680         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5681         continue reading the CU/TU from there.
5682         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5683         updated.  Get section from this_cu->info_or_types_section.
5684         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5685         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5686         DW_FORM_GNU_str_index.
5687         (hash_dwo_file, eq_dwo_file): New functions.
5688         (allocate_dwo_file_hash_table): New function.
5689         (hash_dwo_unit, eq_dwo_unit): New functions.
5690         (allocate_dwo_unit_table): New function.
5691         (dwarf2_locate_dwo_sections): New function.
5692         (struct create_dwo_info_table_data): New type.
5693         (create_debug_info_hash_table_reader): New function.
5694         (create_debug_info_hash_table): New function.
5695         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5696         (lookup_dwo_file): New function.
5697         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5698         (free_dwo_file, free_dwo_file_cleanup): New functions.
5699         (free_dwo_file_from_slot, free_dwo_files): New functions.
5700         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5701         (dwarf2_record_block_ranges): Ditto.
5702         (read_partial_die): Ditto.
5703         (process_enumeration_scope): Update to use type_offset_in_section.
5704         (read_full_die_1): New function.
5705         (read_full_die): Rewrite.
5706         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5707         DW_FORM_GNU_str_index.
5708         (read_addr_index_1, read_addr_index): New functions.
5709         (read_addr_index_from_leb128): New function.
5710         (struct dwarf2_read_addr_index_data): New type.
5711         (dwarf2_read_addr_index_reader): New function.
5712         (dwarf2_read_addr_index): New function.
5713         (read_str_index): New function.
5714         (leb128_size): New function.
5715         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5716         If processing a type unit from a DWO file, get the line section
5717         from the DWO file.
5718         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5719         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5720         DW_FORM_GNU_str_index.
5721         (lookup_die_type): Check whether section offset of type's die is
5722         known before looking it up.  Remove assert.  Condition can
5723         legimately happen for inter-cu type references.
5724         (dwarf_attr_name): Handle Fission attributes.
5725         (dwarf_form_name): Handle Fission forms.
5726         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5727         DW_FORM_GNU_str_index.
5728         (follow_die_sig): Update to use type_offset_in_section.
5729         (decode_locdesc): New case DW_OP_GNU_addr_index.
5730         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5731         DW_FORM_GNU_str_index.
5732         (cu_debug_loc_section): New function.
5733         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5734         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5735         Free DWO files if present.
5736         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5737
5738         Refactor DIE reading.
5739         * dwarf2read.c (dwarf2_per_objfile): Replace members
5740         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5741         (die_reader_specs): New member "die_section".  Temporarily make
5742         member "buffer" non-const, pending constifying all info_ptr uses.
5743         (die_reader_func_ftype): New typedef.
5744         (dw2_get_file_names_reader): New function.
5745         (dw2_get_file_names): Rewrite.
5746         (read_and_check_type_unit_head): Rename arg type_offset to
5747         type_offset_in_tu.
5748         (create_all_type_units): Improve debugging message.
5749         Improve dummy type unit check.
5750         (init_cu_die_reader): New arg "section".  All callers updated.
5751         (init_and_read_dies_worker): New function.
5752         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5753         (init_cutu_and_read_dies_no_follow): New function.
5754         (init_cutu_and_read_dies_simple): New function.
5755         (process_psymtab_comp_unit_reader): New function.
5756         (process_psymtab_comp_unit): Delete args section,
5757         is_debug_types_section.  Rewrite.  All callers updated.
5758         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5759         All callers updated.  Rewrite.
5760         (load_partial_comp_unit_reader): New function.
5761         (load_partial_comp_unit): Rewrite.
5762         (skip_children): New arg reader.  Delete args buffer, cu.
5763         All callers updated.
5764         (skip_one_die): New arg reader.  Delete args buffer, cu.
5765         All callers updated.
5766         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5767         All callers updated.
5768         (load_full_comp_unit_reader): New function.
5769         (load_full_comp_unit): Rewrite.
5770         (read_comp_unit): Delete.
5771         (read_die_and_children_1): Delete, contents moved ...
5772         (read_die_and_children): ... here.
5773         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
5774         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
5775         All callers updated.
5776         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
5777         All callers updated.
5778         (find_partial_die): Rewrite load_all_dies support.
5779         (read_attribute_value): New arg reader.  Delete args abfd, cu.
5780         All callers updated.
5781         (read_attribute): New arg reader.  Delete args abfd, cu.
5782         All callers updated.
5783         (load_full_type_unit): Add assert.
5784         (read_signatured_type_reader): New function.
5785         (read_signatured_type): Rewrite.
5786         (free_stack_comp_unit): Remove call to age_cached_comp_units.
5787         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5788         All callers updated.  Set per_cu->cu = NULL after freeing it.
5789         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5790         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5791         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5792         (set_die_type): Update.
5793         (get_die_type_at_offset): Update.
5794         (read_file_scope): Call prepare_one_comp_unit.
5795         (read_type_unit_scope): Ditto.
5796         (prepare_one_comp_unit): Set producer if present.
5797
5798 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
5799
5800         * probe.c (compile_rx_or_error): Silence ARI warning about missing
5801          gettext function on `error'.
5802
5803 2012-04-27  Doug Evans  <dje@google.com>
5804
5805         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5806         is empty.
5807
5808 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5809             Tom Tromey  <tromey@redhat.com>
5810
5811         * breakpoint.c (struct breakpoint_objfile_data)
5812         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5813         <exception_probes>: New fields.
5814         (free_breakpoint_probes): New function.
5815         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5816         `_Unwind_DebugHook'.
5817         (create_exception_master_breakpoint): Likewise.
5818         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5819         * infrun.c: Including necessary header files for handling SystemTap
5820         probes.
5821         (handle_inferior_event): Handling longjmp breakpoint and exceptions
5822         via SystemTap probes.
5823         (check_exception_resume): Remove `func' argument.  Handle exception
5824         unwinding breakpoint set via a SystemTap probe.
5825         (insert_exception_resume_from_probe): New function.
5826
5827 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5828             Tom Tromey  <tromey@redhat.com>
5829             Jan Kratochvil  <jan.kratochvil@redhat.com>
5830
5831         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5832         (COMMON_OBS): Likewise.
5833         (HFILES_NO_SRCDIR): Add `probe'.
5834         * NEWS: Mention support for static and SystemTap probes.
5835         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5836         SystemTap probes' arguments parser.
5837         * arm-linux-tdep.c: Including headers needed to perform the parsing
5838         of SystemTap probes' arguments.
5839         (arm_stap_is_single_operand): New function.
5840         (arm_stap_parse_special_token): Likewise.
5841         (arm_linux_init_abi): Initializing proper fields used by SystemTap
5842         probes' arguments parser.
5843         * ax-gdb.c (require_rvalue): Removing static declaration.
5844         (gen_expr): Likewise.
5845         * ax-gdb.h (gen_expr): Declaring function.
5846         (require_rvalue): Likewise.
5847         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5848         (bkpt_probe_breakpoint_ops): New variable.
5849         (momentary_breakpoint_from_master): Set the `probe' value.
5850         (add_location_to_breakpoint): Likewise.
5851         (break_command_1): Using proper breakpoint_ops according to the
5852         argument passed by the user in the command line.
5853         (bkpt_probe_insert_location): New function.
5854         (bkpt_probe_remove_location): Likewise.
5855         (bkpt_probe_create_sals_from_address): Likewise.
5856         (bkpt_probe_decode_linespec): Likewise.
5857         (tracepoint_probe_create_sals_from_address): Likewise.
5858         (tracepoint_probe_decode_linespec): Likewise.
5859         (tracepoint_probe_breakpoint_ops): New variable.
5860         (trace_command): Using proper breakpoint_ops according to the
5861         argument passed by the user in the command line.
5862         (initialize_breakpoint_ops): Initializing breakpoint_ops for
5863         static probes on breakpoints and tracepoints.
5864         * breakpoint.h (struct bp_location) <probe>: New field.
5865         * cli-utils.c (skip_spaces_const): New function.
5866         (extract_arg): Likewise.
5867         * cli-utils.h (skip_spaces_const): Likewise.
5868         (extract_arg): Likewise.
5869         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5870         * configure.ac: Append `stap-probe.o' to be generated when ELF
5871         support is present.
5872         * configure: Regenerate.
5873         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5874         * elfread.c: Include `probe.h' and `arch-utils.h'.
5875         (probe_key): New variable.
5876         (elf_get_probes): New function.
5877         (elf_get_probe_argument_count): Likewise.
5878         (elf_evaluate_probe_argument): Likewise.
5879         (elf_compile_to_ax): Likewise.
5880         (elf_symfile_relocate_probe): Likewise.
5881         (stap_probe_key_free): Likewise.
5882         (elf_probe_fns): New variable.
5883         (elf_sym_fns): Add `sym_probe_fns' value.
5884         (elf_sym_fns_lazy_psyms): Likewise.
5885         (elf_sym_fns_gdb_index): Likewise.
5886         (_initialize_elfread): Initialize objfile cache for static
5887         probes.
5888         * gdb_vecs.h (struct probe): New forward declaration.
5889         (probe_p): New VEC declaration.
5890         * gdbarch.c: Regenerate.
5891         * gdbarch.h: Regenerate.
5892         * gdbarch.sh (stap_integer_prefix): New variable.
5893         (stap_integer_suffix): Likewise.
5894         (stap_register_prefix): Likewise.
5895         (stap_register_suffix): Likewise.
5896         (stap_register_indirection_prefix): Likewise.
5897         (stap_register_indirection_suffix): Likewise.
5898         (stap_gdb_register_prefix): Likewise.
5899         (stap_gdb_register_suffix): Likewise.
5900         (stap_is_single_operand): New function.
5901         (stap_parse_special_token): Likewise.
5902         (struct stap_parse_info): Forward declaration.
5903         * i386-tdep.c: Including headers needed to perform the parsing
5904         of SystemTap probes' arguments.
5905         (i386_stap_is_single_operand): New function.
5906         (i386_stap_parse_special_token): Likewise.
5907         (i386_elf_init_abi): Initializing proper fields used by SystemTap
5908         probes' arguments parser.
5909         * i386-tdep.h (i386_stap_is_single_operand): New function.
5910         (i386_stap_parse_special_token): Likewise.
5911         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5912         * mipsread.c (ecoff_sym_fns): Likewise.
5913         * objfiles.c (objfile_relocate1): Support relocation for static
5914         probes.
5915         * parse.c (prefixify_expression): Remove static declaration.
5916         (initialize_expout): Likewise.
5917         (reallocate_expout): Likewise.
5918         * parser-defs.h (initialize_expout): Declare function.
5919         (reallocate_expout): Likewise.
5920         (prefixify_expression): Likewise.
5921         * ppc-linux-tdep.c: Including headers needed to perform the parsing
5922         of SystemTap probes' arguments.
5923         (ppc_stap_is_single_operand): New function.
5924         (ppc_stap_parse_special_token): Likewise.
5925         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5926         probes' arguments parser.
5927         * probe.c: New file, for generic statically defined probe support.
5928         * probe.h: Likewise.
5929         * s390-tdep.c: Including headers needed to perform the parsing of
5930         SystemTap probes' arguments.
5931         (s390_stap_is_single_operand): New function.
5932         (s390_gdbarch_init): Initializing proper fields used by SystemTap
5933         probes' arguments parser.
5934         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5935         * stap-probe.c: New file, for SystemTap probe support.
5936         * stap-probe.h: Likewise.
5937         * symfile.h: Include `gdb_vecs.h'.
5938         (struct sym_probe_fns): New struct.
5939         (struct sym_fns) <sym_probe_fns>: New field.
5940         * symtab.c (init_sal): Initialize `probe' field.
5941         * symtab.h (struct probe): Forward declaration.
5942         (struct symtab_and_line) <probe>: New field.
5943         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5944         locations.
5945         (stop_tracing): Likewise.
5946         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5947
5948 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5949             Tom Tromey  <tromey@redhat.com>
5950
5951         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5952         and to compile agent expressions.
5953         * infrun.c (siginfo_make_value): New argument `ignore'.
5954         (siginfo_funcs): New struct.
5955         (_initialize_infrun): New argument when calling
5956         `create_internalvar_type_lazy'.
5957         * thread.c (thread_id_make_value): New argument `ignore'.
5958         (thread_funcs): New struct.
5959         (_initialize_thread): New argument when calling
5960         `create_internalvar_type_lazy'.
5961         * tracepoint.c (sdata_make_value): New argument `ignore'.
5962         (sdata_funcs): New struct.
5963         (_initialize_tracepoint): New argument when calling
5964         `create_internalvar_type_lazy'.
5965         * value.c (make_value): New struct.
5966         (create_internalvar_type_lazy): New argument `data'.
5967         (compile_internalvar_to_ax): New function.
5968         (value_of_internalvar): Properly handling `make_value' case.
5969         (clear_internalvar): Likewise.
5970         (show_convenience): Adding `TRY_CATCH' block.
5971         * value.h (internalvar_make_value): Delete, replace by...
5972         (struct internalvar_funcs): ... this.
5973         (create_internalvar_type_lazy) <fun>: Delete argument.
5974         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5975         (compile_internalvar_to_ax): New function.
5976         * windows-tdep.c (tlb_make_value): New argument `ignore'.
5977         (tlb_funcs): New struct.
5978         (_initialize_windows_tdep): New argument when calling
5979         `create_internalvar_type_lazy'.
5980
5981 2012-04-27  Mark Wielaard  <mjw@redhat.com>
5982
5983         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5984         see whether it is an address or a constant offset from DW_AT_low_pc.
5985         (dwarf2_record_block_ranges): Likewise.
5986         (read_partial_die): Likewise.
5987
5988 2012-04-26  Mark Wielaard  <mjw@redhat.com>
5989
5990         * MAINTAINERS (Write After Approval): Add myself to the list.
5991
5992 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
5993
5994         * proc-utils.h (proc_prettyprint_signalset): New prototype.
5995         (proc_prettyprint_signal): Likewise.
5996         (proc_prettyprint_faultset): Likewise.
5997         (proc_prettyprint_fault): Likewise.
5998         (proc_prettyprint_actionset): Likewise.
5999         (proc_prettyprint_flags): Move to new proc-flags.c section.
6000         (proc_prettyfprint_flags): New prototype.
6001         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6002         (proc_syscall, proc_cursig): Likewise.
6003         (proc_set_kill_on_last_close): Likewise.
6004         (proc_unset_kill_on_last_close): Likewise.
6005         (proc_set_watchpoint): Make static.
6006         (proc_delete_dead_threads): Likewise.
6007         (procfs_set_watchpoint): Likewise.
6008         (_initialize_procfs): Add prototype.
6009         * proc-events.c: Include proc-utils.h.
6010         (init_syscall_table): Make static.
6011         * proc-api.c (_initialize_proc_api): Add prototype.
6012         * proc-flags.c: Include proc-utils.h.
6013
6014 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6015
6016         * configure.ac: Add AC_ARG_PROGRAM.
6017         * configure: Regenerate.
6018
6019 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6020
6021         Fix DW_AT_lower_bound defaults for DWARF-4+.
6022         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6023         high.  New variable low_default_is_valid.  Implement DWARF-4+
6024         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6025         no default by the DWARF standard.
6026
6027 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6028             Maciej W. Rozycki  <macro@codesourcery.com>
6029
6030         * infrun.c (handle_inferior_event): Move the check for return
6031         trampolines ahead of the check for function trampolines.
6032         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6033         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6034         (mips_str_mips16_ret_stub): Likewise.
6035         (mips_str_call_fp_stub): Likewise.
6036         (mips_str_call_stub): Likewise.
6037         (mips_str_fn_stub): Likewise.
6038         (mips_str_pic): Likewise.
6039         (mips_in_frame_stub): New function.
6040         (mips_unwind_pc): Return the return address rather than the PC
6041         if the PC of an intermediate frame is inside a call thunk.
6042         (mips_is_stub_suffix): New function.
6043         (mips_is_stub_mode): Likewise.
6044         (mips_get_mips16_fn_stub_pc): Likewise.
6045         (mips_skip_mips16_trampoline_code): Update to handle all the
6046         currently generated stub types.  Don't recurse into __fn_stub
6047         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6048         Use cooked register accesses.
6049         (mips_in_return_stub): Reintroduce function.
6050         (mips_skip_trampoline_code): Traverse trampolines recursively.
6051         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6052
6053 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6054
6055         GDB 7.4.1 released.
6056
6057 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6058
6059         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6060         * features/arm-with-m-vfp-d16.xml: New file. Describes
6061         Cortex-M with VFPv4-sp-d16 FPU register layout.
6062         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6063         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6064         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6065         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6066         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6067
6068 2012-04-25  Doug Evans  <dje@google.com>
6069
6070         * cli/cli-decode.c (print_doc_line): Use stream instead of
6071         current_uiout.
6072
6073 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6074
6075         * features/arm-with-iwmmxt.c: Regenerate.
6076         * features/arm-with-m-fpa-layout.c: Likewise.
6077         * features/arm-with-m.c: Likewise.
6078         * features/arm-with-neon.c: Likewise.
6079         * features/arm-with-vfpv2.c: Likewise.
6080         * features/arm-with-vfpv3.c: Likewise.
6081         * features/mips-dsp-linux.c: Likewise.
6082         * features/mips-linux.c: Likewise.
6083         * features/mips64-dsp-linux.c: Likewise.
6084         * features/mips64-linux.c: Likewise.
6085         * features/s390-linux32.c: Likewise.
6086         * features/s390-linux32v1.c: Likewise.
6087         * features/s390-linux32v2.c: Likewise.
6088         * features/s390-linux64.c: Likewise.
6089         * features/s390-linux64v1.c: Likewise.
6090         * features/s390-linux64v2.c: Likewise.
6091         * features/s390x-linux64.c: Likewise.
6092         * features/s390x-linux64v1.c: Likewise.
6093         * features/s390x-linux64v2.c: Likewise.
6094         * features/tic6x-c62x-linux.c: Likewise.
6095         * features/tic6x-c62x.c: Likewise.
6096         * features/tic6x-c64x-linux.c: Likewise.
6097         * features/tic6x-c64x.c: Likewise.
6098         * features/tic6x-c64xp-linux.c: Likewise.
6099         * features/tic6x-c64xp.c: Likewise.
6100         * target-descriptions.c: Only generate `field_type' and `type'
6101         variables when needed.
6102
6103 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6104
6105         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6106
6107 2012-04-25  Doug Evans  <dje@google.com>
6108
6109         Initial pass at Go language support.
6110         * NEWS: Mention Go.
6111         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6112         go-valprint.c.
6113         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6114         (YYFILES): Add go-exp.c.
6115         (YYOBJ): Add go-exp.o.
6116         (local-maintainer-clean): Delete go-exp.c.
6117         * defs.h (enum language): Add language_go.
6118         * dwarf2read.c: #include "go-lang.h".
6119         (fixup_go_packaging): New function.
6120         (process_full_comp_unit): Call it when processing Go CUs.
6121         (dwarf2_physname): Add Go support.
6122         (read_file_scope): Handle missing language spec for GNU Go.
6123         (set_cu_language): Handle DW_LANG_Go.
6124         * go-exp.y: New file.
6125         * go-lang.h: New file.
6126         * go-lang.c: New file.
6127         * go-typeprint.c: New file.
6128         * go-valprint.c: New file.
6129         * symtab.c: #include "go-lang.h".
6130         (symbol_set_language): Handle language_go.
6131         (symbol_find_demangled_name, symbol_set_names): Ditto.
6132         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6133
6134 2012-04-24  Jim Meyering  <meyering@redhat.com>
6135
6136         avoid a few strncpy-induced buffer overruns
6137         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6138         fname and psargs before trying to concatenate.
6139         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6140         "name" before applying strchr.
6141
6142 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6143
6144         * CONTRIBUTE: Use unified diff instead of context diff when
6145         generating patches.
6146
6147 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6148
6149         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6150         code.  Handle JR.HB correctly.
6151
6152 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6153
6154         * mips-tdep.c
6155         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6156         with the other MIPS16 helpers.
6157
6158 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6159
6160         * observer.sh: Conditionally declare `args', thus cleaning up
6161         unused instances of this variable.
6162
6163 2012-04-24  Yao Qi  <yao@codesourcery.com>
6164
6165         Revert this patch to allow breakpoint always-inserted
6166         in record target.
6167         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6168         * breakpoint.c: Include record.h.
6169         (breakpoints_always_inserted_mode): Return false when the record
6170         target is in use.
6171
6172         * breakpoint.c (iterate_over_bp_locations): New.
6173         * breakpoint.h: Declare.
6174         New typedef walk_bp_location_callback.
6175         * record.c (record_open): Call record_init_record_breakpoints.
6176         (record_sync_record_breakpoints): New.
6177         (record_init_record_breakpoints): New.
6178         * NEWS: Mention supporting breakpoint always-inserted mode in
6179         record target.
6180
6181 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6182
6183         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6184         any thread.
6185
6186 2012-04-24  Yao Qi  <yao@codesourcery.com>
6187
6188         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6189         (is_catchpoint): ... it.
6190         (print_one_breakpoint_location): Caller update.
6191         * breakpoint.h: Update declaration.
6192
6193 2012-04-23  David S. Miller  <davem@davemloft.net>
6194
6195         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6196
6197 2012-04-23  Tom Tromey  <tromey@redhat.com>
6198
6199         * buildsym.c (add_free_pendings): Remove.
6200         * buildsym.h (add_free_pendings): Remove.
6201
6202 2012-04-23  Doug Evans  <dje@google.com>
6203
6204         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6205         attr.u.unsnd instead of attr.u.addr.
6206         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6207         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6208         DW_FORM_ref_udata.
6209         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6210         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6211         DW_FORM_ref_udata.
6212         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6213
6214 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6215
6216         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6217         (mips_o32_return_value): Likewise.
6218         (mips_o64_return_value): Likewise.
6219
6220 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6221
6222         * ada-lang.c (ada_evaluate_subexp): Add cases for
6223         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6224         their treatment in eval.c.
6225
6226 2012-04-21  David S. Miller  <davem@davemloft.net>
6227
6228         * sparc-tdep.c (X_DISP10): Define.
6229         (sparc_analyze_control_transfer): Handle compare-and-branch.
6230
6231 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6232
6233         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6234         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6235
6236 2012-04-20  Nigel Stephens  <nigel@mips.com>
6237             Maciej W. Rozycki  <macro@codesourcery.com>
6238
6239         * mips-tdep.c (mips_float_register_p): New function.
6240         (mips_convert_register_float_case_p): Use mips_float_register_p.
6241         (mips_register_type): Likewise.
6242         (mips_print_register): Likewise.
6243         (print_gp_register_row): Likewise.
6244         (mips_print_registers_info): Likewise.
6245
6246 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6247
6248         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6249         of mips16 symbols.
6250
6251 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6252
6253         * MAINTAINERS (Write After Approval): Add myself to the list.
6254
6255 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6256
6257         * MAINTAINERS: Update my e-mail address.
6258
6259 2012-04-20  Pedro Alves  <palves@redhat.com>
6260
6261         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6262         $srcdir.
6263         * configure: Regenerate.
6264
6265 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6266
6267         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6268         declaration.
6269         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6270
6271 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6272
6273         Fix compilation compatibility with python-2.4
6274         * python/py-type.c (convert_field): Cast ADDRSTRING for
6275         PyObject_SetAttrString as non-const.  New comment.
6276
6277 2012-04-19  Tom Tromey  <tromey@redhat.com>
6278
6279         * top.c (quit_target): Use all_cleanups.
6280         * main.c (captured_command_loop): Use all_cleanups.
6281         * exceptions.c (throw_exception): Use all_cleanups.
6282
6283 2012-04-19  Pedro Alves  <palves@redhat.com>
6284
6285         * Makefile.in (GNULIB_BUILDDIR): New.
6286         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6287         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6288         (CLEANDIRS). Remove gnulib/import.
6289         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6290         (all-lib): Ditto.
6291         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6292         (gnulib/import/Makefile): Replace gnulib/import with
6293         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6294         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6295         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6296         acx_configure_dir.m4.
6297         * acinclude.m4: Include acx_configure_dir.m4.
6298         * acx_configure_dir.m4: New file.
6299         * aclocal.m4: Regenerate.
6300         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6301         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6302         (GNULIB): New variable.
6303         (GNULIB_STDINT_H): Adjust.
6304         (AC_OUTPUT): Don't output gnulib/Makefile.
6305         * gdb/defs.h: Include build-gnulib/config.h.
6306         * aclocal.m4: Regenerate.
6307         * config.in: Regenerate.
6308         * configure: Regenerate.
6309
6310         * gnulib/Makefile.in: New file.
6311         * gnulib/configure.ac: New file.
6312         * gnulib/aclocal.m4: New file.
6313         * gnulib/config.in: New file.
6314         * gnulib/configure: New file.
6315         * gnulib/: Re-run gnulib-tool to adjust.
6316
6317 2012-04-19  Doug Evans  <dje@google.com>
6318
6319         * cleanups.h (struct cleanup): Move to cleanups.c.
6320         (make_cleanup_dtor_ftype): New typedef.
6321         (make_cleanup_dtor): Use it.
6322         (ALL_CLEANUPS): Replace with ...
6323         (all_cleanups): ... this.  Declare.  All uses updated.
6324         * cleanups.c: #include "gdb_assert.h".
6325         (sentinel_cleanup): New static global.
6326         (SENTINEL_CLEANUP): Define.
6327         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6328         (make_my_cleanup2): Assert result is non-NULL.
6329         (all_cleanups): New function.
6330         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6331         of NULL.
6332
6333 2012-04-19  Pedro Alves  <palves@redhat.com>
6334
6335         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6336         Adjust paths to gnulib imported files.
6337
6338 2012-04-19  Pedro Alves  <palves@redhat.com>
6339
6340         * gnulib/: Move whole directory ...
6341         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6342         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6343         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6344         (aclocal_m4_deps): Adjust.
6345         * aclocal.m4: Regenerate.
6346         * configure: Regenerate.
6347         * configure.ac: Adjust AC_OUTPUT output.
6348
6349 2012-04-19  Yao Qi  <yao@codesourcery.com>
6350
6351         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6352         (vec.o): New rule.
6353         * vec.c: Move it ...
6354         * common/vec.c: ... here.
6355         * vec.h: Move it ...
6356         * common/vec.h: ... here.
6357
6358 2012-04-19  Yao Qi  <yao@codesourcery.com>
6359
6360         * gdb-code-style.el: New.
6361
6362 2012-04-18  Pedro Alves  <palves@redhat.com>
6363
6364         Update gnulib from latest git.
6365         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6366
6367         * gnulib/Makefile.am: Update.
6368         * gnulib/dummy.c: Update.
6369         * gnulib/extra/arg-nonnull.h: Update.
6370         * gnulib/extra/c++defs.h: Update.
6371         * gnulib/extra/update-copyright: Update.
6372         * gnulib/extra/warn-on-use.h: Update.
6373         * gnulib/inttypes.in.h: Update.
6374         * gnulib/m4/00gnulib.m4: Update.
6375         * gnulib/m4/extensions.m4: Update.
6376         * gnulib/m4/gnulib-cache.m4: Update.
6377         * gnulib/m4/gnulib-common.m4: Update.
6378         * gnulib/m4/gnulib-comp.m4: Update.
6379         * gnulib/m4/gnulib-tool.m4: Update.
6380         * gnulib/m4/include_next.m4: Update.
6381         * gnulib/m4/inttypes-pri.m4: Update.
6382         * gnulib/m4/inttypes.m4: Update.
6383         * gnulib/m4/longlong.m4: Update.
6384         * gnulib/m4/memchr.m4: Update.
6385         * gnulib/m4/memmem.m4: Update.
6386         * gnulib/m4/mmap-anon.m4: Update.
6387         * gnulib/m4/multiarch.m4: Update.
6388         * gnulib/m4/onceonly.m4: Update.
6389         * gnulib/m4/stddef_h.m4: Update.
6390         * gnulib/m4/stdint.m4: Update.
6391         * gnulib/m4/string_h.m4: Update.
6392         * gnulib/m4/warn-on-use.m4: Update.
6393         * gnulib/m4/wchar_h.m4: Update.
6394         * gnulib/m4/wchar_t.m4: Update.
6395         * gnulib/m4/wint_t.m4: Update.
6396         * gnulib/memchr.c: Update.
6397         * gnulib/memmem.c: Update.
6398         * gnulib/stddef.in.h: Update.
6399         * gnulib/stdint.in.h: Update.
6400         * gnulib/str-two-way.h: Update.
6401         * gnulib/string.in.h: Update.
6402         * gnulib/wchar.in.h: Update.
6403
6404         * gnulib/extra/arg-nonnull.h: Delete.
6405         * gnulib/extra/c++defs.h: Delete.
6406         * gnulib/extra/warn-on-use.h: Delete.
6407         * gnulib/m4/wchar_h.m4: Delete.
6408         * gnulib/m4/wint_t.m4: Delete.
6409         * gnulib/wchar.in.h: Delete.
6410
6411         * gnulib/extra/snippets/arg-nonnull.h: New.
6412         * gnulib/extra/snippets/c++defs.h: New.
6413         * gnulib/extra/snippets/warn-on-use.h: New.
6414
6415         * aclocal.m4: Regenerate.
6416         * config.in: Regenerate.
6417         * configure: Regenerate.
6418         * gnulib/Makefile.in: Regenerate.
6419
6420 2012-04-18  Pedro Alves  <palves@redhat.com>
6421
6422         Reimport the update-copyright module from gnulib
6423         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6424
6425         * configure: Regenerate.
6426         * gnulib/Makefile.am: Update.
6427         * gnulib/Makefile.in: Regenerate.
6428         * gnulib/extra/update-copyright: Update.
6429         * gnulib/m4/gnulib-cache.m4: Update.
6430         * gnulib/m4/gnulib-comp.m4: Update.
6431
6432 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6433
6434         * configure.ac (aix): Put -lpthread into libs.
6435         * configure: Regenerate.
6436
6437 2012-04-18  Tom Tromey  <tromey@redhat.com>
6438
6439         * linespec.c (convert_linespec_to_sals): Don't use
6440         SYMBOL_OBJ_SECTION.
6441         (compare_msymbols): Arguments are minsym_and_objfile, not
6442         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6443
6444 2012-04-18  Pedro Alves  <palves@redhat.com>
6445
6446         Revert gnulib/ part of:
6447         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6448         Copyright year update in most files (performed by copyright.sh).
6449
6450 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6451
6452         Fix 64-bit constants on 32-bit hosts.
6453         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6454         from unsigned long to ULONGEST.
6455         (read_signed_leb128): Change declaration return type from long to
6456         LONGEST.
6457         (dwarf2_const_value_attr): Change declaration parameter value from long
6458         to LONGEST.
6459         (dwarf2_compute_name): Change variable value from long to LONGEST.
6460         (read_unsigned_leb128): Change return type, variable result and some
6461         casts from unsigned long to ULONGEST.
6462         (read_signed_leb128): Change return type, variable result and some
6463         casts from long to LONGEST.
6464         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6465         value from long to LONGEST.
6466         (dwarf2_const_value): Change variable value from long to LONGEST.
6467         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6468         plongest and hex_string.
6469         * symtab.h (struct general_symbol_info): Change ivalue from long to
6470         LONGEST, remove the comment.
6471         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6472         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6473
6474 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6475
6476         PR symtab/7259:
6477         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6478         * ada-lang.c (ada_discrete_type_high_bound)
6479         (ada_discrete_type_low_bound): Fix function comment.  Use
6480         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6481         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6482         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6483         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6484         Use TYPE_FIELD_ENUMVAL.
6485         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6486         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6487         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6488         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6489         TYPE_CODE_ENUM.
6490         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6491         * dwarf2read.c (process_enumeration_scope): Likewise.
6492         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6493         field.bitpos.
6494         (class StructMainTypePrettyPrinter): Support also
6495         FIELD_LOC_KIND_ENUMVAL.
6496         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6497         TYPE_CODE_ENUM.
6498         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6499         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6500         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6501         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6502         field enumval.
6503         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6504         accommodate enumval.
6505         (struct call_site): Adjust loc_kind to accommodate enumval.
6506         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6507         (TYPE_FIELD_ENUMVAL): New macros.
6508         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6509         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6510         TYPE_CODE_ENUM.
6511         * p-typeprint.c (pascal_type_print_base): Likewise.
6512         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6513         enumval.
6514         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6515         * python/py-type.c (convert_field): New variable addrstring.  Use
6516         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6517         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6518         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6519         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6520         TYPE_CODE_ENUM.
6521         * valprint.c (generic_val_print): Likewise.
6522
6523 2012-04-17  Doug Evans  <dje@google.com>
6524
6525         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6526
6527         * dwarf2read.c: Whitespace fixes.
6528         (lookup_signatured_type): Tweak comment.
6529         (get_die_type_at_offset): Fix comment.
6530
6531 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6532
6533         * xcoffread.c (xcoff_secnum_to_sections): New function.
6534         (secnum_to_section, secnum_to_bfd_section): Reimplement
6535         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6536         into "n_scnum".
6537         (RECORD_MINIMAL_SYMBOL): Delete.
6538         (record_minimal_symbol): New function.
6539         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6540         by call to record_minimal_symbol and set misc_func_recorded
6541         to 1.  Set last_csect_sec to the XCOFF section index instead
6542         of GDB's section_offset index.  Update calls to
6543         prim_record_minimal_symbol_and_info to pass the BFD section
6544         as well.
6545
6546 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6547
6548         * xcoffread.c (read_xcoff_symtab): Delete variables
6549         last_csect_val and last_csect_sec and associated code.
6550
6551 2012-04-17  Doug Evans  <dje@google.com>
6552
6553         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6554         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6555         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6556         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6557
6558         * cleanups.h: New file.
6559         * cleanups.c: New file.
6560         * Makefile.in (SFILES): Add cleanups.c.
6561         (HFILES_NO_SRCDIR): Add cleanups.h.
6562         (COMMON_OBS): Add cleanups.o.
6563         * defs.h (struct cleanup): Moved to cleanups.h.
6564         (do_cleanups,do_final_cleanups): Ditto.
6565         (discard_cleanups,discard_final_cleanups): Ditto
6566         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6567         (save_cleanups,save_final_cleanups): Ditto.
6568         (restore_cleanups,restore_final_cleanups): Ditto.
6569         (null_cleanup): Ditto.
6570         (make_my_cleanup,make_my_cleanup2): Ditto.
6571         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6572         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
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
6582         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6583         make_my_cleanup.
6584         (make_cleanup_dyn_string_delete): Ditto.
6585         (make_cleanup_ui_file_delete): Ditto.
6586         (make_cleanup_ui_out_redirect_pop): Ditto.
6587         (make_cleanup_free_section_addr_info): Ditto.
6588         (make_cleanup_restore_integer): Ditto.
6589         (make_cleanup_unpush_target): Ditto.
6590         (make_cleanup_value_free_to_mark): Ditto.
6591         (make_cleanup_value_free): Ditto.
6592         (make_cleanup_free_so): Ditto.
6593
6594 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6595
6596         New option "set debug auto-load".
6597         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6598         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6599         (auto_load_safe_path_vec_update)
6600         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6601         if DEBUG_AUTO_LOAD.
6602         (file_is_auto_load_safe): New parameters debug_fmt and ....
6603         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6604         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6605         caller by explanatory string.
6606         (_initialize_auto_load): Register "set debug auto-load".
6607         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6608         and ....
6609         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6610         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6611         by explanatory string.
6612         * main.c (captured_main): Likewise.
6613         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6614         (source_section_scripts): Likewise.
6615
6616 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6617
6618         New option "set auto-load safe-path".
6619         * NEWS: New commands "set auto-load safe-path"
6620         and "show auto-load safe-path".
6621         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6622         (auto_load_safe_path, auto_load_safe_path_vec)
6623         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6624         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6625         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6626         (source_gdb_script_for_objfile): New variable is_safe.  Call
6627         file_is_auto_load_safe.  Return if it is not.
6628         (struct loaded_script): New field loaded.
6629         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6630         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6631         output "Missing" to "No".
6632         (_initialize_auto_load): New variable cmd.  Initialize
6633         auto_load_safe_path.  Register "set auto-load safe-path",
6634         "show auto-load safe-path" and "add-auto-load-safe-path".
6635         * auto-load.h (maybe_add_script): Add parameter loaded.
6636         (file_is_auto_load_safe): New declaration.
6637         * config.in: Regenerate.
6638         * configure: Regenerate.
6639         * configure.ac: New parameters --with-auto-load-safe-path
6640         and --without-auto-load-safe-path.
6641         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6642         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6643         * main.c (captured_main): Check file_is_auto_load_safe for
6644         LOCAL_GDBINIT.
6645         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6646         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6647         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6648         not.
6649
6650 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6651
6652         auto-load: Implementation.
6653         * NEWS: New descriptions for "info auto-load",
6654         "info auto-load gdb-scripts", "info auto-load python-scripts",
6655         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6656         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6657         and "show auto-load-scripts".  New description for "set auto-load",
6658         "show auto-load", "set auto-load gdb-scripts",
6659         "show auto-load gdb-scripts", "set auto-load python-scripts",
6660         "show auto-load python-scripts", "set auto-load local-gdbinit",
6661         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6662         "show auto-load libthread-db".
6663         * auto-load.c: Remove include python/python-internal.h.  Add includes
6664         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6665         cli/cli-setshow.h.
6666         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6667         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6668         (gdbpy_global_auto_load): Rename to ...
6669         (global_auto_load): ... here.
6670         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6671         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6672         (script_language_gdb, source_gdb_script_for_objfile): New.
6673         (struct loaded_script): New field language.
6674         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6675         LANGUAGE.
6676         (maybe_add_script): Add parameter language.  Drop redundant
6677         entry.full_path initialization.  Initialize entry.language and
6678         (*slot)->language.
6679         (auto_load_objfile_script): Change parameter suffix to language.
6680         Remove the call of maybe_add_script.
6681         Call language->source_script_for_objfile.
6682         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6683         New.
6684         (collect_matching_scripts): Adjust it for
6685         struct collect_matching_scripts_data.
6686         (auto_load_info_scripts_pattern_nl): New variable.
6687         (info_auto_load_scripts): Rename to ...
6688         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6689         for struct collect_matching_scripts_data.
6690         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6691         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6692         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6693         (auto_load_info_cmdlist_get): New.
6694         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6695         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6696         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6697         "info auto-load local-gdbinit".
6698         * auto-load.h (struct script_language): New.
6699         (gdbpy_global_auto_load): Rename to ...
6700         (global_auto_load): ... here.
6701         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6702         (auto_load_local_gdbinit_loaded): New declarations.
6703         (maybe_add_script): New parameter language.
6704         (auto_load_objfile_script): Change parameter suffix to language.
6705         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6706         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6707         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6708         declarations.
6709         * linux-thread-db.c: Include auto-load.h and ctype.h.
6710         (auto_load_thread_db, show_auto_load_thread_db): New.
6711         (struct thread_db_info): New field filename.
6712         (delete_thread_db_info): Call xfree for FILENAME.
6713         (try_thread_db_load): Initialize FILENAME.
6714         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6715         if !AUTO_LOAD_THREAD_DB.
6716         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6717         (_initialize_thread_db): Install auto_load_thread_db
6718         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6719         as "info auto-load libthread-db".
6720         * main.c (captured_main): Rename gdbpy_global_auto_load to
6721         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6722         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6723         (print_gdb_help): Extend the help for 'local init file'.
6724         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6725         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6726         (auto_load_scripts): Rename to ...
6727         (auto_load_python_scripts): ... here, update the comment.
6728         (gdbpy_load_auto_script_for_objfile): New declaration.
6729         (show_auto_load_python_scripts, script_language_python)
6730         (gdbpy_load_auto_script_for_objfile): New.
6731         (source_section_scripts): Refactor the code.
6732         (load_auto_scripts_for_objfile): Rename to ...
6733         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6734         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6735         (info_auto_load_python_scripts): New.
6736         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6737         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6738         Register "set auto-load-scripts" as its deprecated alias.  Register
6739         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6740         its deprecated alias.
6741         (load_auto_scripts_for_objfile): Rename to ...
6742         (gdbpy_load_auto_scripts_for_objfile): ... here.
6743         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6744         (gdbpy_load_auto_scripts_for_objfile): ... here.
6745
6746 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6747
6748         auto-load: Move files.
6749         * Makefile.in (SFILES): Add auto-load.c.
6750         (HFILES_NO_SRCDIR): Add auto-load.h.
6751         (COMMON_OBS): Add auto-load.o.
6752         (distclean): Change .gdbinit for gdb-gdb.gdb.
6753         * auto-load.c: New file, with parts from python/py-auto-load.c.
6754         * auto-load.h: New file, with parts from python/python.h.
6755         * configure: Regenerate.
6756         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6757         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6758         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6759         * main.c: Include auto-load.h.
6760         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6761         command.h, observer.h and progspace.h to auto-load.c.  Add include
6762         auto-load.h.
6763         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6764         (struct loaded_script, auto_load_pspace_data)
6765         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6766         (hash_loaded_script_entry, eq_loaded_script_entry)
6767         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6768         (maybe_add_script): Move to auto-load.c.
6769         (source_section_scripts): Change maybe_add_script parameters passing,
6770         use script_not_found_warning_print.
6771         (clear_section_scripts, auto_load_objfile_script)
6772         (auto_load_new_objfile, loaded_script_ptr)
6773         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6774         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6775         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6776         auto_load_new_objfile and info_auto_load_scripts initizations to
6777         auto-load.c.
6778         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6779
6780 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6781
6782         Code cleanup.
6783         * charset.c (find_charset_names): Remove variables ix and elt.
6784         Use free_char_ptr_vec.
6785         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6786         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6787         debugdir_end.  New variable debugdir_len.
6788         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6789         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6790         declarations.
6791         * progspace.c (clear_program_space_solib_cache): Remove variables ix
6792         and elt.  Use free_char_ptr_vec.
6793         * source.c (add_path): Remove variables argv, arg and argv_index.
6794         New variables dir_vec, back_to, ix and name.
6795         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
6796         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
6797         no longer expecting DIRNAME_SEPARATOR.
6798         (openp): Remove variable p, p1 and len.  New variables dir_vec,
6799         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
6800         no longer expecting DIRNAME_SEPARATOR.
6801         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6802         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6803         debugdir_end.
6804         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6805         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6806         (dirnames_to_char_ptr_vec): New functions.
6807
6808 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6809
6810         Code cleanup.
6811         * source.c (add_path): Remove always true conditional 'p == 0' and
6812         unindent its code block.
6813
6814 2012-04-17  Pedro Alves  <palves@redhat.com>
6815
6816         * gdbtypes.h (FIELD_BITPOS): Rename to ...
6817         (FIELD_BITPOS_LVAL): ... this.
6818         (FIELD_BITPOS): New.
6819         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6820         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6821         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6822         SET_FIELD_BITPOS.
6823         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6824         SET_FIELD_BITPOS.
6825         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6826         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6827         * target-descriptions.c (tdesc_gdb_type): Adjust to use
6828         SET_FIELD_BITPOS.
6829
6830 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6831
6832         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6833         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6834         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6835         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6836         * jv-lang.c (java_link_class_type): Likewise, once.
6837         * stabsread.c (read_enum_type): Likewise.
6838
6839 2012-04-16  Yao Qi  <yao@codesourcery.com>
6840
6841         * common/agent.c (agent_run_command): Add one more parameter `len'.
6842         Update callers.
6843         * common/agent.h: Update declaration.
6844         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6845         Update.
6846         (linux_child_static_tracepoint_markers_by_strid): Ditto.
6847
6848 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
6849
6850         PR mi/13393
6851         * value.c (value_actual_type): New function.
6852         * value.h (value_actual_type): New declaration.
6853         * varobj.c (update_type_if_necessary): New function.
6854         (varobj_create): Call value_actual_type instead of
6855         value_type.
6856         (install_dynamic_child): distinct changed and type changed MI variable
6857         objects.
6858         (update_dynamic_varobj_children): Updated for install_dynamic_child
6859         change.  All callers updated.
6860         (varobj_update): Support for MI variable object type change if
6861         the value changed and RTTI is used to determine the type.
6862         (create_child_with_value): Call value_actual_type instead of
6863         value_type.
6864         (adjust_value_for_child_access): Extended with a new parameter which
6865         specify whether the given value should be casted to enclosing type.
6866         All callers updated.
6867
6868 2012-04-14  Yao Qi  <yao@codesourcery.com>
6869
6870         Import gnulib module inttypes from git
6871         (250b80067c1e1d8faa0c42fb572f721975b929c5)
6872         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6873         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6874         gnulib/m4/inttypes-pri.m4
6875         * aclocal.m4, config.in, configure: Regenerated.
6876         * gnulib/Makefile.am: Update.
6877         * gnulib/Makefile.in: Update.
6878         * gnulib/m4/gnulib-cache.m4: Update.
6879         * gnulib/m4/gnulib-comp.m4: Update.
6880         * gnulib/inttypes.in.h: New.
6881         * gnulib/m4/inttypes-pri.m4: New.
6882         * gnulib/m4/inttypes.m4: New.
6883
6884 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
6885
6886         * infrun.c (resume): Update PC address to the real PC after
6887         preparing to do displaced stepping.
6888
6889 2012-04-12  Doug Evans  <dje@google.com>
6890
6891         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6892         All callers updated.
6893
6894 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
6895
6896         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6897
6898 2012-04-12  Doug Evans  <dje@google.com>
6899
6900         * dwarf2read.c (create_all_type_units): Renamed from
6901         create_debug_types_hash_table.  All callers updated.
6902
6903         * dwarf2read.c (create_signatured_type_table_from_index): Rename
6904         local type_sig to sig_type, type_offset to type_offset_in_tu.
6905         (hash_signatured_type): Renamed from hash_type_signature,
6906         all callers updated.
6907         (eq_signatured_type): Renamed from eq_type_signature,
6908         all callers updated.
6909         (create_debug_types_hash_table): Rename local type_sig to sig_type.
6910         (process_enumeration_scope): Ditto.
6911         (lookup_signatured_type_at_offset): Ditto.
6912         (load_full_type_unit, read_signatured_type): Ditto.
6913
6914 2012-04-12  Yao Qi  <yao@codesourcery.com>
6915
6916         * remote.c (async_remote_interrupt): Correct function name in
6917         debug message.
6918         (async_remote_interrupt_twice): Ditto.
6919
6920 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
6921
6922         * source.c (find_and_open_source): Consistently pass resulting
6923         full path through xfullpath.
6924
6925 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6926
6927         Provide more specific displaced-stepping memory error message.
6928         * infrun.c (displaced_step_prepare): New variable status.  Call
6929         target_read_memory instead of read_memory, provide more specific
6930         error message.
6931
6932 2012-04-11  Tristan Gingold  <gingold@adacore.com>
6933
6934         PR gdb/13901
6935         * darwin-nat.c (darwin_execvp): Revert previous patch.
6936
6937 2012-04-11  Tristan Gingold  <gingold@adacore.com>
6938
6939         PR gdb/13901
6940         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6941         in case of change.
6942
6943 2012-04-11  Tristan Gingold  <gingold@adacore.com>
6944
6945         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6946         warning.
6947
6948 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
6949
6950         New command 'explore' which helps explore values and types in
6951         scope.
6952         * NEWS: Add an entry about the new 'explore' command.
6953         * data-directory/Makefile.in: Add gdb/command/explore.py
6954         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6955         command using the GDB Python API.
6956
6957 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
6958
6959         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6960         extension in jump target calculation.
6961
6962 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
6963
6964         * mips-tdep.c (mips32_next_pc): Handle JALX.
6965
6966 2012-04-10  Yao Qi  <yao@codesourcery.com>
6967
6968         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6969
6970 2012-04-10  Yao Qi  <yao@codesourcery.com>
6971
6972         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6973         and gnulib/m4/gnulib-tool.m4.
6974
6975 2012-04-10  Doug Evans  <dje@google.com>
6976
6977         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6978         (load_partial_dies): Clarify comment.
6979         (find_partial_die): Support rereading type units.
6980         Clarify CU handling, if we know offset is in CU, don't search for the
6981         containing CU.  Add comment regarding memory waste.
6982
6983 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6984
6985         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6986         i386/x32-avx and i386/x32-avx-linux.
6987         (i386/x32-expedite): New.
6988         (i386/x32-linux-expedite): Likewise.
6989         (i386/x32-avx-expedite): Likewise.
6990         (i386/x32-avx-linux-expedite): Likewise.
6991         ($(outdir)/i386/x32.dat): Likewise.
6992         ($(outdir)/i386/x32-linux.dat): Likewise.
6993         ($(outdir)/i386/x32-avx.dat): Likewise.
6994         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6995
6996         * features/i386/x32-avx-linux.xml: New file.
6997         * features/i386/x32-avx.xml: Likewise.
6998         * features/i386/x32-core.xml: Likewise.
6999         * features/i386/x32-linux.xml: Likewise.
7000         * features/i386/x32.xml: Likewise.
7001
7002         * features/i386/x32-avx-linux.c: New.  Generated.
7003         * features/i386/x32-avx.c: Likewise.
7004         * features/i386/x32-linux.c: Likewise.
7005         * features/i386/x32.c: Likewise.
7006         * regformats/i386/x32-avx-linux.dat: Likewise.
7007         * regformats/i386/x32-avx.dat: Likewise.
7008         * regformats/i386/x32-linux.dat: Likewise.
7009         * regformats/i386/x32.dat: Likewise.
7010
7011 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7012
7013         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7014         code to kill the inferior.
7015
7016 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7017
7018         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7019         defines.
7020         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7021         defines.
7022         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7023         (yyvsp): New defines.
7024         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7025         defines.
7026         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7027         defines.
7028         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7029         defines.
7030         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7031         defines.
7032         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7033         defines.
7034
7035 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7036
7037         * sparc64-tdep.c (sparc64_store_arguments)
7038         (sparc64_store_arguments): Fix coding style.
7039
7040 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7041
7042         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7043         complex floats, adjust some related comments and tighten a related
7044         assertion.
7045         (sparc64_extract_return_value): Handle complex floats.
7046
7047 2012-04-07  Doug Evans  <dje@google.com>
7048
7049         * dwarf2read.c (load_partial_dies): Change condition to assert.
7050
7051 2012-04-06  Doug Evans  <dje@google.com>
7052
7053         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7054         "mov %rsp,%rbp".
7055
7056 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7057
7058         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7059         fencepost error.
7060         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7061         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7062         architecture.
7063
7064 2012-04-05  Keith Seitz  <keiths@redhat.com>
7065
7066         * linespec.c (decode_compound): Remove.
7067         (enum offset_relative_sign): New enum.
7068         (struct line_offset): New struct.
7069         (struct linespec): New struct.
7070         (struct linespec_state): Move file_symtabs,
7071         user_filename, and user_function into struct linespec.
7072         Make result an anonymous struct holding vectors of
7073         symbolp and minsym_and_objfile_d.
7074         Add language member.
7075         (enum ls_token_type): New enum.
7076         (linespec_keywords): New array.
7077         (struct ls_token): New struct.
7078         (struct ls_parser): New struct.
7079         (linespec_lexer_lex_number): New function.
7080         (linespec_lexer_lex_keyword): New function.
7081         (is_ada_operator): New function.
7082         (skip_quote_char): New function.
7083         (copy_token_string): New function.
7084         (is_closing_quote_enclosed): New function.
7085         (find_parameter_list_end): New function.
7086         (linespec_lexer_lex_string): New function.
7087         (linespec_lexer_lex_one): New function.
7088         (linespec_lexer_consume_token): New function.
7089         (linespec_lexer_peek_token): New function.
7090         (cplusplus_error): Remove unused function.
7091         (find_methods): Update comment.
7092         (find_toplevel_char): Return const.
7093         (is_objc_method_format): Remove unused function.
7094         (find_toplevel_string): New function.
7095         (is_linespec_boundary): Remove.
7096         (symbol_not_found_error): New function.
7097         (find_method_overload_end): Remove function.
7098         (unexpected_linespec_error): New function.
7099         (keep_name_info): Remove.
7100         (linespec_parse_line_offset): New function.
7101         (linespec_parse_basic): New function.
7102         (canonicalize_linespec): New function.
7103         (decode_line_internal): Remove.
7104         (create_sals_line_offset): New function adapted from
7105         decode_all_digits.
7106         (convert_linespec_to_sals): New function.
7107         (parse_linespec): New function.
7108         (linespec_parser_new): New function.
7109         (linespec_state_destructor): Change parameter type to
7110         struct linespec_state *.
7111         Add language parameter.
7112         Remove freeing of moved members.
7113         (linespec_parser_delete): New function.
7114         (decode_line_full): Use parse_linespec and linespec_parser_new.
7115         (decode_line_1): Likewise.
7116         (decode_indirect): Rename to ...
7117         (linespec_expression_to_pc): ... this and rewrite
7118         to simply find CORE_ADDR, storing this result for later
7119         conversion to SALs.
7120         (locate_first_half): Remove.
7121         (deocde_objc): Add parameter LS.
7122         Initialize new struct collect_info members.
7123         Handle minimal symbols, too.
7124         (decode_compound): Delete.
7125         (lookup_prefix_sym): Rewrite.
7126         (compare_msymbols): New function.
7127         (find_method): Rewrite.
7128         Do not call cplusplus_error.
7129         (symtabs_from_filename): Rewrite.
7130         (collect_function_symbols): Delete.
7131         (find_function_symbols): Rewrite without ARGPTR-style
7132         processing.
7133         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7134         (decode_dollar): Adapted and renamed to ...
7135         (linespec_parse_variable): ... this.
7136         (find_linespec_symbols): New function.
7137         (decode_label): Adapted and renamed to ...
7138         (find_label_symbols): ... this.
7139         (decode_digits_list_mode): Add and use LS argument.
7140         (decode_digits_ordinary): Likewise.
7141         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7142         If in list mode, allow any symbol class.  Otherwise, only
7143         permit LOC_BLOCK symbols.
7144         (minsym_found): Update comments.
7145         (search_minsyms_for_name): Do not convert the matching symbol
7146         into a SAL.  Simply push the symbol and objfile into the
7147         result vector.
7148         (decode_variable): Delete. Contents adapted into
7149         find_linespec_symbols.
7150
7151         * cp-support.c (SKIP_SPACE): Remove.
7152         (operator_tokens): Remove unused global.
7153         (cp_validate_operator): Remove.
7154         * cp-support.h (cp_validate_operator): Remove declaration.
7155
7156 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7157
7158         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7159         for TYPE_VPTR_FIELDNO.
7160         * valprint.c (valprint_check_validity): Make it global, move the
7161         function comment ...
7162         * value.h (valprint_check_validity): ... to this new declaration.
7163
7164 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7165
7166         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7167         the STATE32 api for i386 state.
7168         (i386_darwin_store_inferior_registers): Likewise.
7169
7170 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7171
7172         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7173         SS offset.
7174         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7175         format_string.
7176
7177 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7178
7179         PR gdb/13901
7180         * darwin-nat.c (darwin_execvp): Set binary preference.
7181
7182 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7183
7184         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7185
7186 2012-03-30  Tom Tromey  <tromey@redhat.com>
7187
7188         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7189         of TRY_CATCH.  Fix error handling.
7190         * python/py-value.c (convert_value_from_python): Move 'old'
7191         declaration to innermost scope.
7192
7193 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7194             Andrey Smirnov  <andrew.smirnov@gmail.com>
7195
7196         -Wshadow warning fix.
7197         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7198         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7199         Adjust code accordingly.
7200
7201 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7202
7203         * ada-lang.c (symbol_completion_add): Rename parameter
7204         "encoded" into "encoded_p".  Ajust code and documentation
7205         accordingly.
7206
7207 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7208             Andrey Smirnov  <andrew.smirnov@gmail.com>
7209
7210         -Wshadow warning fix.
7211         * ada-lang.c (symbol_completion_add): Rename parameter
7212         "wild_match" into wild_match_p.  Update code and documentation
7213         accordingly.
7214
7215 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7216
7217         * ada-lang.c (symbol_completion_match): Rename parameter
7218         "encoded" into "encoded_p".  Ajust code and documentation
7219         accordingly.
7220
7221 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7222             Andrey Smirnov  <andrew.smirnov@gmail.com>
7223
7224         -Wshadow warning fix.
7225         * ada-lang.c (symbol_completion_match): Rename parameter
7226         "wild_match" into "wild_match_p".  Adjust code and function
7227         documentation accordingly.
7228
7229 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7230             Andrey Smirnov  <andrew.smirnov@gmail.com>
7231
7232         -Wshadow warning fix.
7233         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7234         "symbol_info" into "info".  Adjust code accordingly.
7235         (ada_lookup_symbol): Likewise.
7236
7237 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7238
7239         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7240         of this function's documentation.
7241
7242 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7243             Andrey Smirnov  <andrew.smirnov@gmail.com>
7244
7245         -Wshadow warning fix.
7246         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7247         variable into "wild_match_p".  Adjust code accordingly.
7248
7249 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7250             Andrey Smirnov  <andrew.smirnov@gmail.com>
7251
7252         -Wshadow warning fix.
7253         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7254         parameter into "wild_match_p".  Adjust code accordingly.
7255         Document this parameter in the function description.
7256
7257 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7258             Andrey Smirnov  <andrew.smirnov@gmail.com>
7259
7260         -Wshadow warning fix.
7261         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7262         "wild_match" parameter to "wild_match_p" (-Wshadow).
7263
7264 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7265
7266         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7267         in function documentation.
7268
7269 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7270             Andrey Smirnov  <andrew.smirnov@gmail.com>
7271
7272         -Wshadow warning fix.
7273         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7274         variable into wild_match_p.  Adjust code accordingly.
7275
7276 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7277             Andrey Smirnov  <andrew.smirnov@gmail.com>
7278
7279         * ada-valprint.c (ada_val_print_1): Move the code handling
7280         TYPE_CODE_ENUM inside its own lexical block.  Declare
7281         variables len and val there, instead of in the function's
7282         top level block.  Avoid declaring deref_val again in a way
7283         that shadows another variable of the same name declared
7284         in one of the up-level blocks.  Just re-use the up-level
7285         variable instead.
7286
7287 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7288
7289         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7290         Replace block_found argument by symbol_info.  Adjust
7291         implementation accordingly.  Add function documentation.
7292         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7293         Fix documentation.
7294         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7295         * ada-exp.y (write_object_renaming): Adjust to new
7296         ada_lookup_encoded_symbol API.
7297
7298 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7299
7300         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7301         documentation.
7302
7303 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7304
7305         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7306         (v850_register_name): Add the mpu and fpu register names.
7307         (v850e_register_name): Add the mpu and fpu register names.
7308         (v850e2_register_name): New function.
7309         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7310         bfd_mach_v850e2v3.
7311
7312 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7313
7314         * NEWS: Add entry for Ada varobj support.
7315
7316 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7317
7318         * varobj.c (default_value_is_changeable_p): New function,
7319         extracted from varobj_value_is_changeable_p.  Add declaration.
7320         (ada_value_is_changeable_p): New function, extracted from
7321         varobj_value_is_changeable_p.  Add declaration.
7322         (struct language_specific): New field "value_is_changeable_p".
7323         (languages): Add entries for new field.
7324         (varobj_create): Set language before calling install_new_value.
7325         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7326         "value_is_changeable_p" language callback.
7327
7328 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7329
7330         * ada-varobj.h, ada-varobj.c: New files.
7331         * Makefile.in (SFILES): Add ada-varobj.c.
7332         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7333         (COMMON_OBS): Add ada-varobj.o.
7334
7335 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7336
7337         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7338         (struct language_specific): New field "value_has_mutated".
7339         (languages): Set field "value_has_mutated" in each entry of array.
7340         (varobj_value_has_mutated): New function.
7341         (varobj_udpdate): Add handling of type mutation.
7342         (value_of_root): Add handling of type mutation.
7343         (ada_value_has_mutated): New function.
7344
7345 2012-03-28  Pedro Alves  <palves@redhat.com>
7346
7347         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7348         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7349
7350 2012-03-28  Tom Tromey  <tromey@redhat.com>
7351
7352         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7353         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7354         before returning.
7355
7356 2012-03-28  Tom Tromey  <tromey@redhat.com>
7357
7358         * .dir-locals.el: New file.
7359
7360 2012-03-28  Pedro Alves  <palves@redhat.com>
7361
7362         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7363
7364 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7365
7366         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7367         handling for r0.
7368
7369 2012-03-27  Pedro Alves  <palves@redhat.com>
7370
7371         Eliminate struct ui_stream.
7372
7373         * ui-out.h (struct ui_stream): Delete.
7374         (ui_out_field_stream): Adjust prototype.
7375         (ui_out_stream_new, ui_out_stream_delete)
7376         (make_cleanup_ui_out_stream_delete): Delete declarations.
7377         * ui-out.c (ui_out_field_stream): Change prototype to take a
7378         ui_file instead of a ui_stream.  Adjust.
7379         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7380         (make_cleanup_ui_out_stream_delete): Delete.
7381         * breakpoint.c (print_breakpoint_location)
7382         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7383         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7384         * disasm.c (dump_insns): Ditto.
7385         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7386         prototype.
7387         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7388         ui_stream/ui_out_stream_new.
7389         * infcmd.c (print_return_value): Ditto.
7390         * osdata.c (info_osdata_command): Don't allocate a local
7391         ui_stream.
7392         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7393         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7394         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7395         allocate a local ui_stream.
7396         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7397         instead of ui_stream/ui_out_stream_new.
7398         (list_args_or_locals): Don't allocate a local ui_stream.
7399         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7400         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7401         ui_stream/ui_out_stream_new.
7402         * cli/cli-setshow.c (do_setshow_command): Ditto.
7403
7404 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7405
7406         * arm-linux-tdep.c (arm_linux_init_abi): Call
7407         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7408         * arm-tdep.c (arm_process_record): New function.
7409         (deallocate_reg_mem): New function.
7410         (decode_insn): New function.
7411         (thumb_record_branch): New function.
7412         (thumb_record_ldm_stm_swi(): New function.
7413         (thumb_record_misc): New function.
7414         (thumb_record_ld_st_stack): New function.
7415         (thumb_record_ld_st_imm_offset): New function.
7416         (thumb_record_ld_st_reg_offset(): New function.
7417         (thumb_record_add_sub_cmp_mov): New function.
7418         (thumb_record_shift_add_sub): New function.
7419         (arm_record_coproc_data_proc): New function.
7420         (arm_record_coproc): New function.
7421         (arm_record_b_bl): New function.
7422         (arm_record_ld_st_multiple): New function.
7423         (arm_record_ld_st_reg_offset): New function.
7424         (arm_record_ld_st_imm_offset): New function.
7425         (arm_record_data_proc_imm): New function.
7426         (arm_record_data_proc_misc_ld_str): New function.
7427         (arm_record_extension_space): New function.
7428         (arm_record_strx): New function.
7429         (sbo_sbz): New function.
7430         (struct insn_decode_record): New structure for arm insn record.
7431         (REG_ALLOC): New macro for reg allocations.
7432         (MEM_ALLOC): New macro for memory allocations.
7433         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7434
7435 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7436
7437         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7438         (store_register): Likewise.
7439
7440 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7441
7442         * MAINTAINERS (Write After Approval): Add myself to the list.
7443
7444 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7445
7446         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7447         Describe also the option "auto".
7448
7449 2012-03-22  Richard Henderson  <rth@redhat.com>
7450
7451         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7452         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7453
7454 2012-03-22  Richard Henderson  <rth@redhat.com>
7455
7456         * jit.c (jit_read_code_entry): Compute alignment and offset of
7457         int64_t member before computing entry_size.
7458
7459 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7460
7461         Python scripting: Add new method Value.referenced_value to
7462         gdb.Value which can dereference pointer as well as reference
7463         values.
7464         * NEWS: Add entry under 'Python scripting' about the new method
7465         Value.referenced_value on gdb.Value objects.
7466         * python/py-value.c (valpy_referenced_value): New function
7467         defining a new method on gdb.Value objects which can dereference
7468         pointer and reference values.
7469
7470 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7471
7472         * MAINTAINERS (Write After Approval): Add myself to the list.
7473
7474 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7475
7476         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7477         in addition to "main".
7478
7479 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7480
7481         * expression.h (op_name): Add declaration.
7482         * expprint.c (op_name): Remove declaration.  Make non-static.
7483         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7484
7485 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7486
7487         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7488         of struct siginfo.
7489         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7490         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7491         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7492         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7493         (linux_nat_get_siginfo): Likewise.
7494         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7495         (linux_nat_get_siginfo): Likewise.
7496         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7497         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7498         * procfs.c (gdb_siginfo_t): Likewise.
7499
7500 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7501
7502         * .gitignore: Ignore more files.
7503
7504 2012-03-20  Pedro Alves  <palves@redhat.com>
7505
7506         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7507         returns.
7508
7509 2012-03-20  Yao Qi  <yao@codesourcery.com>
7510
7511         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7512         comment.
7513
7514 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7515
7516         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7517         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7518         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7519         sect_offset.
7520         * dwarf2expr.h (cu_offset, sect_offset): New types.
7521         (struct dwarf_expr_context_funcs) <dwarf_call>
7522         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7523         sect_offset.
7524         (struct dwarf_expr_context) <len>: Improve the comment.
7525         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7526         cu_offset and sect_offset.
7527         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7528         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7529         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7530         * dwarf2loc.h: Include dwarf2expr.h.
7531         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7532         and sect_offset.
7533         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7534         Improve the comment.
7535         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7536         (struct signatured_type, struct line_header, struct partial_die_info)
7537         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7538         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7539         (get_die_type_at_offset, create_cus_from_index)
7540         (create_signatured_type_table_from_index, dw2_get_file_names)
7541         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7542         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7543         (create_debug_types_hash_table, process_psymtab_comp_unit)
7544         (load_partial_comp_unit, create_all_comp_units)
7545         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7546         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7547         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7548         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7549         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7550         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7551         (find_partial_die, read_attribute_value, lookup_die_type)
7552         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7553         (is_ref_attr): New function comment.
7554         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7555         Use cu_offset and sect_offset.
7556         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7557         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7558         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7559         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7560         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7561         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7562         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7563         sect_offset.
7564
7565 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7566
7567         Code cleanup.
7568         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7569         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7570         with xfree.
7571         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7572
7573 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7574
7575         * NEWS: Describe new options --init-command=FILE, -ix and
7576         --init-eval-command=COMMAND, -iex.
7577         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7578         CMDARG_INIT_COMMAND.
7579         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7580         "init-command", "init-eval-command", "ix" and "iex" to the variable
7581         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7582         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7583         (print_gdb_help): Describe --init-command=FILE, -ix and
7584         --init-eval-command=COMMAND, -iex.
7585
7586 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7587
7588         Code cleanup.
7589         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7590         (cmdarg_s, VEC (cmdarg_s)): New.
7591         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7592         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7593         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7594         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7595         of CMDARG.
7596
7597 2012-03-19  Tom Tromey  <tromey@redhat.com>
7598
7599         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7600
7601 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7602
7603         PR symtab/13777
7604         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7605         GCC >=4.5.
7606
7607 2012-03-16  Chris January  <chris.january@allinea.com>
7608
7609         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7610         of clear.
7611
7612 2012-03-16  Chris January  <chris.january@allinea.com>
7613
7614         * source.c (add_path): Use memmove instead of strcpy because the
7615         strings overlap.
7616
7617 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7618
7619         * value.h (set_value_parent): Add declaration.
7620         * value.c (set_value_parent): New function.
7621         (value_address): If VALUE->PARENT is not NULL, then use it as
7622         the base address instead of VALUE->LOCATION.address.
7623         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7624         the same as OBJ's address.  Adjust V's offset accordingly.
7625         Set V's parent.
7626
7627 2012-03-16  Gary Benson  <gbenson@redhat.com>
7628
7629         PR breakpoints/10738
7630         * dwarf2read.c (use_deprecated_index_sections): New global.
7631         (struct partial_die_info): New member may_be_inlined.
7632         (read_partial_die): Set may_be_inlined where appropriate.
7633         (add_partial_subprogram): Add partial symbols for partial
7634         DIEs that may be inlined.
7635         (new_symbol_full): Add inlined subroutines to the current
7636         scope.
7637         (write_psymtabs_to_index): Bump version number.
7638         (dwarf2_read_index): Read only version 6 indices unless
7639         use_deprecated_index_sections is set.
7640         * linespec.c (symbol_and_data_callback): New structure.
7641         (iterate_inline_only): New function.
7642         (iterate_over_all_matching_symtabs): New argument
7643         "include_inline".  If nonzero, also call the callback for
7644         symbols representing inlined subroutines.
7645         (lookup_prefix_sym): Pass extra argument to the above.
7646         (find_function_symbols): Likewise.
7647         (add_matching_symbols_to_info): Likewise.
7648         * NEWS: Mention that GDB can now set breakpoints on inlined
7649         functions.
7650
7651 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7652
7653         * p-typeprint.c (pascal_type_print_method_args):
7654         Fix display of parameter of methods.
7655
7656 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7657
7658         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7659         Add missing prototype.
7660
7661 2012-03-16  Yao Qi  <yao@codesourcery.com>
7662             Jan Kratochvil  <jan.kratochvil@redhat.com>
7663
7664         Fix false compilation warning.
7665         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7666
7667 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7668             Pedro Alves  <pedro@codesourcery.com>
7669
7670         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7671         (arm_register_g_packet_guesses): New function.
7672         (arm_gdbarch_init): Don't force a target description with
7673         registers when the executable is detected as M-profile.  Instead
7674         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7675         (_initialize_arm_tdep): Initialize the new target description.
7676         * features/arm-with-m-fpa-layout.xml: New description.
7677         * features/arm-with-m-fpa-layout.c: New, generated.
7678
7679 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7680
7681         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7682         Update function description.
7683         (insert_bp_location): Do not wipe bl->target_info out.
7684         * mem-break.c: #include "gdb_string.h".
7685         (default_memory_insert_breakpoint): Do not call target_read_memory
7686         with a pointer to the breakpoint's shadow_contents buffer.  Use
7687         a local buffer instead.
7688         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7689
7690 2012-03-15  Tom Tromey  <tromey@redhat.com>
7691
7692         * NEWS: Mention "info vtbl", not "info vtable".
7693         * cp-support.c (info_vtbl_command): Fix comment.
7694         (_initialize_cp_support): Fix text.
7695
7696 2012-03-15  Tom Tromey  <tromey@redhat.com>
7697
7698         * cp-valprint.c (cp_print_value_fields): Use
7699         print_function_pointer_address for vtable slot.
7700
7701 2012-03-15  Tom Tromey  <tromey@redhat.com>
7702
7703         * gnu-v3-abi.c (struct value_and_voffset): New.
7704         (hash_value_and_voffset, eq_value_and_voffset)
7705         (compare_value_and_voffset, compute_vtable_size)
7706         (print_one_vtable, gnuv3_print_vtable): New functions.
7707         (init_gnuv3_ops): Initialize 'print_vtable' field.
7708         * cp-support.c (info_vtbl_command): New function.
7709         (_initialize_cp_support): Add "info vtbl".
7710         * cp-abi.h (cplus_print_vtable): Declare.
7711         (struct cp_abi_ops) <print_vtable>: New field.
7712         * cp-abi.c (cplus_print_vtable): New function.
7713         * NEWS: Update.
7714
7715 2012-03-15  Tom Tromey  <tromey@redhat.com>
7716
7717         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7718         iterate_over_symbols.
7719
7720 2012-03-14  Doug Evans  <dje@google.com>
7721
7722         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7723         DW_OP_GNU_parameter_ref.
7724
7725 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7726
7727         Fix double prompt of 'interpreter-exec mi'.
7728         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7729         (mi_interpreter_resume): use it.
7730         (mi_execute_command_input_handler): New function.
7731         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7732         mi_execute_command_input_handler.
7733
7734 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7735
7736         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7737         prototype.
7738         (darwin_debug_port_info): Make static.
7739         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7740         * machoread.c (_initialize_machoread): Add prototype.
7741         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7742         (i386_darwin_set_control, i386_darwin_get_control)
7743         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7744         i386_darwin_get_status, i386_darwin_get_control):
7745         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7746
7747 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7748
7749         * ax-gdb.c (gen_usual_unary): Remove special handling of
7750         enum and bool types.
7751
7752 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7753
7754         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7755
7756 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7757
7758         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7759
7760 2012-03-13  Chris January  <chris.january@allinea.com>
7761
7762         * aix-thread.c (fill_sprs): Store the floating point registers
7763         at the correct offsets into vals.
7764
7765 2012-03-13  Doug Evans  <dje@google.com>
7766
7767         * NEWS: Mention symbol-reloading has been deleted.
7768         * symfile.c (symbol_reloading): Delete.
7769         (show_symbol_reloading): Delete.
7770         (_initialize_symfile): Delete set/show symbol-reloading.
7771
7772         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7773         read_in_chain until we have successfully read it in.
7774         (load_full_comp_unit): Ditto.
7775         (read_signatured_type): Add comment.
7776
7777 2012-03-13  Chris January  <chris.january@allinea.com>
7778
7779         * stabsread.c (fix_common_block): Change type of valu argument
7780         to CORE_ADDR.
7781
7782 2012-03-13  Chris January  <chris.january@allinea.com>
7783
7784         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7785         instruction.
7786
7787 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7788
7789         * common/linux-procfs.c (linux_proc_get_int): New, from
7790         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7791         field.
7792         (linux_proc_get_tgid): Only call linux_proc_get_int.
7793         (linux_proc_get_tracerpid): New.
7794         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7795         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7796         linux_proc_pid_has_state.
7797         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7798         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7799         (linux_ptrace_attach_warnings): New.
7800         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7801         New declaration.
7802         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7803         (linux_nat_attach): New variables ex, buffer, message and message_s.
7804         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7805
7806 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7807
7808         * Makefile.in (linux-ptrace.o): New.
7809         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7810         from linux-nat.c.
7811         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7812         * common/linux-ptrace.c: New file.
7813         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7814         * config/arm/linux.mh: Likewise.
7815         * config/i386/linux.mh: Likewise.
7816         * config/i386/linux64.mh: Likewise.
7817         * config/ia64/linux.mh: Likewise.
7818         * config/m32r/linux.mh: Likewise.
7819         * config/m68k/linux.mh: Likewise.
7820         * config/mips/linux.mh: Likewise.
7821         * config/pa/linux.mh: Likewise.
7822         * config/powerpc/linux.mh: Likewise.
7823         * config/powerpc/ppc64-linux.mh: Likewise.
7824         * config/powerpc/spu-linux.mh: Likewise.
7825         * config/s390/s390.mh: Likewise.
7826         * config/sparc/linux.mh: Likewise.
7827         * config/sparc/linux64.mh: Likewise.
7828         * config/xtensa/linux.mh: Likewise.
7829         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7830         common/linux-procfs.c.
7831         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7832
7833 2012-03-13  Hui Zhu  <teawater@gmail.com>
7834             Pedro Alves  <palves@redhat.com>
7835
7836         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
7837         CREATE_BREAKPOINT_FLAGS_INSERTED.
7838         (create_breakpoint_sal, create_breakpoints_sal)
7839         (base_breakpoint_create_breakpoints_sal)
7840         (tracepoint_create_breakpoints_sal)
7841         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
7842         down.
7843         (break_command_1, handle_gnu_v3_exceptions, trace_command)
7844         (ftrace_command, strace_command): Adjust.
7845         (create_tracepoint_from_upload): Pass
7846         CREATE_BREAKPOINT_FLAGS_INSERTED.
7847         * breakpoint.h (enum breakpoint_create_flags): New.
7848         (create_breakpoint): New flags parameter.
7849         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7850         * python/py-breakpoint.c (bppy_init): Adjust.
7851         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7852         * spu-tdep.c (spu_catch_start): Adjust.
7853
7854 2012-03-13  Pedro Alves  <palves@redhat.com>
7855             Hui Zhu  <teawater@gmail.com>
7856             Yao Qi  <yao@codesourcery.com>
7857
7858         * remote.c (struct remote_state): New field `starting_up'.
7859         (remote_start_remote): Set and clear it.
7860         (remote_can_download_tracepoint): If starting up, return false.
7861
7862 2012-03-13  Yao Qi  <yao@codesourcery.com>
7863
7864         * inferior.h (struct inferior): Remove fields any_syscall_count,
7865         syscalls_counts and total_syscalls_count.  Move them to new
7866         struct catch_syscall_inferior_data in breakpoint.c.
7867         * breakpoint.c: Call DEF_VEC_I(int).
7868         (struct catch_syscall_inferior_data): New.
7869         (get_catch_syscall_inferior_data): New.
7870         (catch_syscall_inferior_data_cleanup): New.
7871         (insert_catch_syscall): Update to access data in
7872         struct catch_syscall_inferior_data.
7873         (insert_catch_syscall): Likewise.
7874         (remove_catch_syscall): Likewise.
7875         (remove_catch_syscall): Likewise.
7876         (is_syscall_catchpoint_enabled): Likewise.
7877         (add_catch_command): Likewise.
7878         (_initialize_breakpoint): Register cleanup.
7879         * breakpoint.h: Removed DEF_VEC_I(int).
7880         * dwarf2loc.c: Call DEF_VEC_I(int).
7881         * mi/mi-main.c: Likewise.
7882
7883 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
7884
7885         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7886
7887 2012-03-12  Chris January  <chris.january@allinea.com>
7888
7889         * aix-thread.c (_initialize_aix_thread): Add prototype.
7890         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7891         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7892
7893 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
7894
7895         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7896         include of "amd64-nat.h".
7897
7898 2012-03-12  Tom Tromey  <tromey@redhat.com>
7899
7900         * buildsym.c (record_pending_block): Now static.
7901         * buildsym.h: (record_pending_block): Remove.
7902
7903 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
7904
7905         * amd64bsd-nat.c: Include amd64bsd-nat.h.
7906
7907 2012-03-09  Tom Tromey  <tromey@redhat.com>
7908
7909         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7910         producer_is_gxx_lt_4_6>: New fields.
7911         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7912
7913 2012-03-09  Tom Tromey  <tromey@redhat.com>
7914
7915         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7916
7917 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7918
7919         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7920         prototype.
7921
7922 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7923
7924         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7925
7926 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7927
7928         Fix -Wmissing-prototypes build.
7929         * arm-linux-nat.c (get_thread_id): Make it static.
7930         * xtensa-linux-nat.c (get_thread_id): Likewise.
7931
7932 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7933
7934         * server.c (process_point_options): If a conditional expression
7935         is found, only print a message if remote_debug is nonzero.
7936
7937 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
7938
7939         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7940         of internal error for unknown/unsupported types.
7941
7942 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7943
7944         Fix CU relative vs. absolute DIE offsets.
7945         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7946         offset to offset_in_cu.
7947         * dwarf2read.c (process_enumeration_scope): Add CU offset to
7948         TYPE_OFFSET.
7949         (dwarf2_fetch_die_location_block): Rename parameter offset to
7950         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
7951
7952 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7953
7954         * libunwind-frame.c: Rename to ...
7955         * ia64-libunwind-tdep.c: ... here.
7956         * libunwind-frame.h: Rename to ...
7957         * ia64-libunwind-tdep.h: ... here.
7958         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7959         ia64-libunwind-tdep.h.
7960         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7961         * README (--with-libunwind): Rename to ...
7962         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7963         * config.in: Regenerate.
7964         * configure: Regenerate.
7965         * configure.ac: New option --with-libunwind-ia64, make the
7966         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
7967         Remove AC_DEFINE for HAVE_LIBUNWIND.
7968         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7969         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7970         Rename libunwind-frame in the general comment.
7971         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7972         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7973         Move forward declarations inside #ifndef.  Rename libunwind-frame in
7974         the general comment.
7975         * ia64-tdep.c: Rename libunwind-frame.h #include to
7976         ia64-libunwind-tdep.h.
7977         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7978         (ia64_libunwind_descr): Rename libunwind-frame to
7979         ia64-libunwind-tdep in these function comments.
7980         * ia64-tdep.h: Rename libunwind-frame.h #include to
7981         ia64-libunwind-tdep.h.
7982         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7983         ia64-libunwind-tdep in that data comment.
7984
7985 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7986
7987         * libunwind-frame.h (struct frame_unwind): New declaration.
7988
7989 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7990
7991         * breakpoint.c (_initialize_breakpoint): Fix error in help of
7992         "set breakpoint condition-evaluation" command.
7993
7994 2012-03-08  Tristan Gingold  <gingold@adacore.com>
7995
7996         * sparc-stub.c: Move to stubs/
7997         * sh-stub.c: Likewise.
7998         * m68k-stub.c: Likewise.
7999         * m32r-stub.c: Likewise.
8000         * i386-stub.c: Likewise.
8001
8002 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8003
8004         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8005         linux_get_siginfo_type.
8006
8007         * m68klinux-nat.c: Include "gdb_proc_service.h".
8008         (PTRACE_GET_THREAD_AREA): Define.
8009         (ps_get_thread_area): New function.
8010
8011 2012-03-08  Yao Qi  <yao@codesourcery.com>
8012
8013         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8014         `xsnprintf'.
8015         (remote_query_attached): Likewise.
8016         (remote_static_tracepoint_marker_at): Likewise.
8017         (remote_set_permissions): Likewise.
8018         (remote_detach_1, extended_remote_attach_1): Likewise.
8019         (send_g_packet, remote_vkill): Likewise.
8020         (extended_remote_disable_randomization): Likewise.
8021         (remote_add_target_side_condition): Likewise.
8022         (remote_insert_breakpoint): Likewise.
8023         (remote_remove_breakpoint): Likewise.
8024         (remote_insert_watchpoint): Likewise.
8025         (remote_remove_watchpoint): Likewise.
8026         (remote_insert_hw_breakpoint): Likewise.
8027         (remote_insert_hw_breakpoint): Likewise.
8028         (remote_remove_hw_breakpoint): Likewise.
8029         (remote_download_command_source): Likewise.
8030         (remote_download_tracepoint): Likewise.
8031         (remote_download_trace_state_variable): Likewise.
8032         (remote_disable_tracepoint): Likewise.
8033         (remote_trace_set_readonly_regions): Likewise.
8034         (remote_get_tracepoint_status): Likewise.
8035         (remote_trace_find): Likewise.
8036         (remote_get_trace_state_variable_value): Likewise.
8037         (remote_set_disconnected_tracing): Likewise.
8038         (remote_set_circular_trace_buffer): Likewise.
8039         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8040         (remote_use_agent): Likewise.
8041         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8042         Update callers.
8043
8044 2012-03-07  Pedro Alves  <palves@redhat.com>
8045
8046         * NEWS: Mention QProgramSignals.
8047         * inferior.h (update_signals_program_target): Declare.
8048         * infrun.c: (update_signals_program_target): New.
8049         (handle_command): Update the target of the new program signals
8050         array changes.
8051         * remote.c (PACKET_QProgramSignals): New enum.
8052         (last_program_signals_packet): New global.
8053         (remote_program_signals): New.
8054         (remote_start_remote): Update the target with the program signals
8055         list.
8056         (remote_protocol_features): Add entry for QPassSignals.
8057         (remote_open_1): Free anc clear last_program_signals_packet.
8058         (init_remote_ops): Install remote_program_signals.
8059         * target.c (update_current_target): Adjust.
8060         (target_program_signals): New.
8061         * target.h (struct target_ops) <to_program_signals>: New field.
8062         (target_program_signals): Declare.
8063
8064 2012-03-07  Pedro Alves  <palves@redhat.com>
8065
8066         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8067         extensions.
8068
8069 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8070
8071         * m68klinux-nat.c (getregs_supplies): Make static.
8072         (getfpregs_supplies): Likewise.
8073         (have_ptrace_getregs): Likewise.
8074
8075 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8076
8077         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8078         in call to get_die_type_at_offset.
8079
8080 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8081
8082         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8083         * mi/mi-cmd-disas.c: Ditto.
8084         * mi/mi-cmd-env.c: Ditto.
8085         * mi/mi-cmd-file.c: Ditto.
8086         * mi/mi-cmd-stack.c: Ditto.
8087         * mi/mi-cmd-target.c: Ditto.
8088         * mi/mi-cmd-var.c: Ditto.
8089         * mi/mi-cmds.c: Ditto.
8090         * mi/mi-cmds.h: Ditto.
8091         * mi/mi-console.c: Ditto.
8092         * mi/mi-getopt.c: Ditto.
8093         * mi/mi-getopt.h: Ditto.
8094         * mi/mi-interp.c: Ditto.
8095         * mi/mi-main.c: Ditto.
8096         * mi/mi-out.c: Ditto.
8097         * mi/mi-parse.c: Ditto.
8098         * mi/mi-parse.h: Ditto.
8099         * mi/mi-symbol-cmds.c: Ditto.
8100
8101         * mi/mi-getopt.h: Move mi_opt struct up.
8102         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8103         return.
8104         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8105
8106 2012-03-06  Tom Tromey  <tromey@redhat.com>
8107
8108         * proc-service.c (ps_pglobal_lookup): Set the current program
8109         space.
8110
8111 2012-03-06  Pedro Alves  <palves@redhat.com>
8112
8113         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8114
8115 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8116
8117         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8118
8119 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8120
8121         Code cleanup.
8122         * common/linux-osdata.c (linux_common_core_of_thread): New function
8123         comment.
8124         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8125         call by linux_common_core_of_thread.
8126         (linux_nat_core_of_thread_1): Remove.
8127         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8128         * linux-thread-db.c: Include linux-osdata.h.
8129         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8130         linux_common_core_of_thread.
8131
8132 2012-03-05  Tom Tromey  <tromey@redhat.com>
8133
8134         * value.c (value_primitive_field): Don't fetch contents for
8135         non-virtual bases.
8136
8137 2012-03-05  Tom Tromey  <tromey@redhat.com>
8138
8139         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8140
8141 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8142
8143         * s390-nat.c: Include "gregset.h".
8144
8145 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8146
8147         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8148         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8149         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8150         load also LIBUNWIND_SO_7.
8151
8152 2012-03-05  Pedro Alves  <palves@redhat.com>
8153
8154         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8155         is not NULL, and remove resulting dead code.
8156
8157 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8158
8159         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8160         prologue to sh_analyze_prologue.
8161         (sh_analyze_prologue): Make better use of such an upper limit, and
8162         generally be more cautious about accessing memory.
8163
8164 2012-03-05  Tom Tromey  <tromey@redhat.com>
8165
8166         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8167         _initialize_ia64_hpux_tdep.
8168
8169 2012-03-05  Pedro Alves  <palves@redhat.com>
8170
8171         PR gdb/13766
8172
8173         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8174         the register state is clear, supply explicit zero, instead of
8175         marking the register unavailable.
8176
8177 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8178
8179         * NEWS: Mention OpenVMS ia64 new target.
8180
8181 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8182
8183         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8184         (ia64_unw_accessors, ia64_unw_rse_accessors)
8185         (ia64_libunwind_descr): Declare.
8186         * ia64-vms-tdep.c: New file.
8187         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8188         (ia64_libunwind_descr): Make them public.
8189         * configure.tgt: Add ia64-*-*vms*.
8190         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8191         (ALLDEPFILES): Add ia64-vms-tdep.c
8192
8193 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8194
8195         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8196         * remote.c (PACKET_qXfer_uib): New enum value.
8197         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8198         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8199         (_initialize_remote): Call add_packet_config_cmd for
8200         xfer:uib packet.
8201
8202 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8203
8204         * osabi.c (gdb_osabi_names): Add OpenVMS.
8205         (generic_elf_osabi_sniffer): Likewise.
8206         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8207
8208 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8209
8210         Removed unused code.
8211         * libunwind-frame.c (libunwind_frame_unwind)
8212         (libunwind_frame_base_address): Remove.
8213         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8214
8215 2012-03-04  Yao Qi  <yao@codesourcery.com>
8216
8217         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8218         remove trailing new line.
8219         (agent_run_command, agent_run_command): Add _ markup.
8220         (agent_capability_check): Likewise.
8221
8222 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8223
8224         * breakpoint.c (set_condition_evaluation_mode): Set
8225         CONDITION_EVALUATION_MODE unconditionally.
8226
8227 2012-03-03  Yao Qi  <yao@codesourcery.com>
8228
8229         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8230         * common/agent.h: Update declaration.
8231         * inf-child.c (inf_child_use_agent): New.
8232         (inf_child_can_use_agent): New.
8233         (inf_child_target): Initialize fields `to_use_agent'
8234         and `to_can_use_agent'.
8235         * agent.c (agent_new_objfile): New.
8236         (_initialize_agent): Add agent_new_objfile to new_objfile
8237         observer.
8238
8239         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8240         New.
8241         (linux_target_install_ops): Initialize field
8242         `to_static_tracepoint_markers_by_strid'.
8243         * remote.c (free_current_marker): Move it to ...
8244         * tracepoint.c (free_current_marker): ... here.  New.
8245         (cleanup_target_stop): New.
8246         * tracepoint.h: Declare free_current_marker.
8247         * NEWS: Add one entry about `info static-tracepoint-marker'.
8248
8249 2012-03-03  Yao Qi  <yao@codesourcery.com>
8250
8251         * common/agent.c (agent_loaded_p): New.
8252         (agent_look_up_symbols): New global.
8253         * common/agent.h: Declare agent_loaded_p.
8254
8255 2012-03-03  Yao Qi  <yao@codesourcery.com>
8256
8257         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8258         (agent_capability_check, agent_capability_invalidate): New.
8259         (symbol_list): New array element.
8260         * common/agent.h (enum agent_capa): New.
8261         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8262
8263 2012-03-03  Yao Qi  <yao@codesourcery.com>
8264
8265         * target.h (struct target_ops) <to_use_agent>: New field.
8266         (struct target_ops) <to_can_use_agent>: New field.
8267         (target_use_agent, target_can_use_agent): New macro.
8268         * target.c (update_current_target): Update.
8269         * remote.c: New enum `PACKET_QAgent'.
8270         (remote_protocol_features): Add a new element.
8271         (remote_use_agent, remote_can_use_agent): New.
8272         (init_remote_ops): Initialize field `can_use_agent' with
8273         remote_can_use_agent.  Intiailize field `use_agent' with
8274         remote_use_agent.
8275         * common/agent.c (use_agent): New global.
8276         * common/agent.h: Declare it.
8277         * tracepoint.c (info_static_tracepoint_markers_command): Add
8278         comment.
8279         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8280         (COMMON_OBS): Add common/agent.o and agent.o
8281         (common-agent.o): New rule.
8282         * agent.c: New.
8283
8284 2012-03-03  Yao Qi  <yao@codesourcery.com>
8285
8286         * common/agent.c: New.
8287         * common/agent.h: New.
8288         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8289         AC_CHECK_HEADERS.
8290         * configure, configh.in: Regenerated.
8291
8292 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8293
8294         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8295         unless it exists for this architecture.
8296
8297 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8298
8299         * language.h (struct language_defn): New "method" la_read_var_value.
8300         * findvar.c: #include "language.h".
8301         (default_read_var_value): Renames read_var_value.  Rewrite
8302         function description.
8303         (read_var_value): New function.
8304         * value.h (default_read_var_value): Add prototype.
8305         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8306         New functions.
8307         (ada_language_defn): Add entry for la_read_var_value.
8308         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8309         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8310         language_defn structures to add entry for new la_read_var_value
8311         field.
8312
8313 2012-03-02  Tom Tromey  <tromey@redhat.com>
8314             Pedro Alves  <palves@redhat.com>
8315
8316         PR breakpoints/13776:
8317         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8318         breakpoints.
8319         (delete_longjmp_breakpoint_at_next_stop): New.
8320         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8321         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8322         before deleting the inferior.  Add comments.
8323         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8324         breakpoints immediately, but only on next stop.  Move that code
8325         next to where we mark other breakpoints for deletion.
8326
8327 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8328
8329         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8330         marker.
8331         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8332         violation.
8333
8334 2012-03-02  Pedro Alves  <palves@redhat.com>
8335
8336         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8337
8338 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8339
8340         Fix -Wmissing-prototypes build.
8341         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8342         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8343         (gdbsim_has_memory): Likewise.
8344
8345 2012-03-02  Yao Qi  <yao@codesourcery.com>
8346
8347         Fix -Wmissing-prototypes build.
8348         * charset.c (phony_iconv_open): Make static.
8349         (phony_iconv_close, phony_iconv): Likewise.
8350         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8351         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8352         prototype.
8353         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8354         * ser-mingw.c (create_select_thread): Make static.
8355         * windows-termcap.c (tgetent): New prototype.
8356         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8357
8358 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8359
8360         Fix -Wmissing-prototypes build.
8361         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8362         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8363         (_initialize_loadable): New prototypes.
8364
8365 2012-03-02  Doug Evans  <dje@google.com>
8366
8367         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8368         abbrev table, read_comp_unit will do it.
8369
8370 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8371
8372         Fix -Wmissing-prototypes build.
8373         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8374         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8375         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8376         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8377         (_initialize_arm_symbian_tdep): New prototype.
8378         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8379         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8380         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8381         static.
8382         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8383         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8384         prototype.
8385         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8386         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8387         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8388         static.
8389         * moxie-tdep.c (moxie_process_record): Likewise.
8390         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8391         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8392         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8393         (_initialize_rl78_tdep): New prototype.
8394         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8395         (_initialize_rx_tdep): New prototype.
8396         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8397         (_initialize_darwin_solib): New prototype.
8398         * solib-spu.c: Include solib-spu.h.
8399         (_initialize_spu_solib): New prototype.
8400         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8401         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8402         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8403         (tic6x_software_single_step): Make it static.
8404         (_initialize_tic6x_tdep): New prototype.
8405
8406 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8407
8408         Fix -Wmissing-prototypes build.
8409         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8410         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8411
8412 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8413
8414         Fix -Wmissing-prototypes build.
8415         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8416         (frv_have_stopped_data_address): Remove.
8417
8418 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8419
8420         Fix -Wmissing-prototypes build.
8421         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8422         * sh-tdep.c: Include sh64-tdep.h.
8423         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8424         * sh64-tdep.c: Include sh64-tdep.h.
8425         * sh64-tdep.h: New file.
8426
8427 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8428
8429         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8430
8431 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8432
8433         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8434         sp_regnum once the gdbarch_init_osabi hook has been called.
8435
8436 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8437
8438         * mips-tdep.c (mips32_bc1_pc): New function.
8439         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8440         BPOSGE32 and BPOSGE64 instructions.
8441         (deal_with_atomic_sequence): Likewise.
8442         (mips32_instruction_has_delay_slot): Likewise.
8443
8444 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8445             Chris Dearman  <chris@mips.com>
8446             Maciej W. Rozycki  <macro@codesourcery.com>
8447             Joseph Myers  <joseph@codesourcery.com>
8448
8449         * features/mips-dsp.xml: New file.
8450         * features/mips64-dsp.xml: New file.
8451         * features/mips-dsp-linux.xml: New file.
8452         * features/mips64-dsp-linux.xml: New file.
8453         * features/Makefile (WHICH): Add mips-dsp-linux and
8454         mips64-dsp-linux.
8455         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8456         * features/mips-dsp-linux.c: New file.
8457         * features/mips64-dsp-linux.c: New file.
8458         * regformats/mips-dsp-linux.dat: New file.
8459         * regformats/mips64-dsp-linux.dat: New file.
8460         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8461         registers.
8462         (mips64_linux_register_addr): Likewise.
8463         (mips64_linux_regsets_fetch_registers): Likewise.
8464         (mips64_linux_regsets_store_registers): Likewise.
8465         (mips64_linux_fetch_registers): Update call to
8466         mips64_linux_regsets_fetch_registers.
8467         (mips64_linux_store_registers): Update call to
8468         mips64_linux_regsets_store_registers.
8469         (mips_linux_read_description): Probe for DSP registers.
8470         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8471         and initialize_tdesc_mips64_dsp_linux.
8472         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8473         Remove padding of no longer used embedded register slots.
8474         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8475         (MIPS_RESTART_REGNUM): Redefine enum value.
8476         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8477         strings.
8478         (mips_tx39_reg_names): Likewise.
8479         (mips_linux_reg_names): New array of register names for Linux
8480         targets.
8481         (mips_register_name): Check for a null pointer in
8482         mips_processor_reg_names and return an empty string.
8483         (mips_register_type): Exclude embedded registers for the IRIX
8484         and Linux ABIs.
8485         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8486         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8487         DSP registers.
8488         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8489         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8490         (mips_gdbarch_init): Likewise.  Initialize internal register
8491         indices for the Linux ABI.  Use dynamic numbers to refer to
8492         registers, as applicable, while parsing the target description.
8493         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8494
8495 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8496
8497         * frame.h (read_frame_register_unsigned): Fix typo in function
8498         description.
8499
8500 2012-03-01  Pedro Alves  <palves@redhat.com>
8501
8502         * jit-reader.in [!__cplusplus]
8503         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8504
8505 2012-03-01  Pedro Alves  <palves@redhat.com>
8506
8507         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8508         * configure: Regenerate.
8509
8510 2012-03-01  Pedro Alves  <palves@redhat.com>
8511
8512         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8513         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8514         (ftrace_command, strace_command): Make static.
8515         * d-lang.c (_initialize_d_language): Declare.
8516         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8517         * dwarf2loc.c (_initialize_dwarf2loc):
8518         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8519         * exec.c (exec_get_section_table): Make static.
8520         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8521         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8522         * inferior.c (remove_inferior_command, add_inferior_command)
8523         (clone_inferior_command): Make static.
8524         * linux-nat.c (linux_nat_thread_address_space)
8525         (linux_nat_core_of_thread): Make static.
8526         * linux-tdep.c (_initialize_linux_tdep): Declare.
8527         * objc-lang.c (_initialize_objc_lang): Declare.
8528         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8529         Make static.
8530         (_initialize_opencl_language): Declare.
8531         * record.c (_initialize_record): Declare.
8532         * remote.c (demand_private_info, remote_get_tib_address)
8533         (remote_supports_cond_tracepoints)
8534         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8535         Make static.
8536         * skip.c (_initialize_step_skip): Declare.
8537         * symtab.c (skip_prologue_using_lineinfo): Make static.
8538         * tracepoint.c (delete_trace_state_variable)
8539         (trace_variable_command, delete_trace_variable_command)
8540         (get_uploaded_tsv, find_matching_tracepoint_location)
8541         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8542         Make static.
8543         * value.c (pack_unsigned_long): Make static.
8544         * varobj.c (varobj_ensure_python_env): Make static.
8545         * windows-tdep.c (_initialize_windows_tdep): Declare.
8546         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8547
8548 2012-03-01  Pedro Alves  <palves@redhat.com>
8549
8550         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8551         gdbarch parameter.
8552         (linux_init_abi): Install it as has_shared_address_space gdbarch
8553         callback.
8554
8555 2012-03-01  Pedro Alves  <palves@redhat.com>
8556
8557         * observer.c (observer_test_first_notification_function)
8558         (observer_test_second_notification_function)
8559         (observer_test_third_notification_function): Add declarations.
8560
8561 2012-03-01  Pedro Alves  <palves@redhat.com>
8562
8563         * common/signals.c (default_target_signal_to_host)
8564         (default_target_signal_from_host): Move ...
8565         * arch-utils.c: ... here.
8566         * arch-utils.h (default_target_signal_to_host)
8567         (default_target_signal_from_host): Declare.
8568
8569         * common/signals.c (target_signal_from_command): Move ...
8570         * infrun.c: ... here.
8571         * inferior.h (target_signal_from_command): Declare.
8572         * target.h (target_signal_from_command)
8573         (default_target_signal_from_host, default_target_signal_to_host):
8574         Delete declarations.
8575
8576         * common/signals.c (_initialize_signals): Delete.
8577
8578 2012-03-01  Pedro Alves  <palves@redhat.com>
8579
8580         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8581         both __cplusplus and !__cplusplus.
8582
8583 2012-03-01  Pedro Alves  <palves@redhat.com>
8584
8585         * psymtab.c (find_and_open_source): Delete declaration.
8586         * source.c (find_and_open_source): Move comment ...
8587         * source.h (find_and_open_source): ... to this new declaration.
8588
8589 2012-03-01  Pedro Alves  <palves@redhat.com>
8590
8591         * inline-frame.c: Include inline-frame.h.
8592
8593 2012-03-01  Pedro Alves  <palves@redhat.com>
8594
8595         * tui/tui-data.c (set_gen_win_origin): Delete.
8596         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8597         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8598
8599 2012-03-01  Pedro Alves  <palves@redhat.com>
8600
8601         * remote.c (encode_actions): Delete declaration.
8602         * tracepoint.c (encode_actions): Make extern.
8603         * tracepoint.h (encode_actions): Declare.
8604
8605 2012-03-01  Pedro Alves  <palves@redhat.com>
8606
8607         * python/py-breakpoint.c: Include python.h.
8608         * python/py-continueevent.c (create_continue_event_object): Make
8609         static.
8610         * python/py-lazy-string.c (stpy_get_type): Make static.
8611         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8612         Make static.
8613         * python/py-utils.c (unicode_to_target_python_string): Make
8614         static.
8615         * python/py-value.c: Include python.h.
8616
8617 2012-03-01  Pedro Alves  <palves@redhat.com>
8618
8619         * inferior.c (delete_threads_of_inferior): Delete.
8620
8621 2012-03-01  Pedro Alves  <palves@redhat.com>
8622
8623         Import fallback definitions from glibc.
8624
8625         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8626         ps_prochandle): Forward declare.
8627         (ps_err_e): Use glibc's comments.
8628         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8629         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8630         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8631         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8632         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8633         (struct ps_prochandle): Adjust comment.
8634
8635 2012-03-01  Pedro Alves  <palves@redhat.com>
8636
8637         * ada-lang.c (ada_modulus_from_name): Delete.
8638         * ada-lex.l (lexer_init): Make static.
8639
8640 2012-03-01  Pedro Alves  <palves@redhat.com>
8641
8642         PR gdb/13767
8643
8644         * frame.c (read_frame_register_unsigned): New.
8645         * frame.h (read_frame_register_unsigned): Declare.
8646         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8647         Handle it.
8648         (print_i387_control_word): New parameter `control_p'.  Handle it.
8649         (i387_print_float_info): Handle unavailable float registers.
8650
8651 2012-03-01  Keith Seitz  <keiths@redhat.com>
8652
8653         * linespec.c (decode_line_2): Sort the list of methods
8654         alphabetically before presenting the user with a selection
8655         menu.
8656
8657 2012-03-01  Doug Evans  <dje@google.com>
8658
8659         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8660         has_namespace_info.
8661         (dwarf2_read_abbrevs): Remove corresponding initialization.
8662
8663 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8664
8665         * NEWS: Mention new python command class gdb.COMMAND_USER.
8666         * cli/cli-cmds.c (show_user): Print error when used on a python
8667         command.
8668         (init_cli_cmds): Update documentation strings for "show user" and
8669         "set/show max-user-call-depth" to clarify that it does not apply to
8670         python commands.
8671         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8672         error check.
8673         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8674         gdb python api.
8675         * top.c (execute_command): Only execute a user-defined command as a
8676         legacy macro if c->user_commands is set.
8677
8678 2012-03-01  Tom Tromey  <tromey@redhat.com>
8679
8680         * valprint.h (struct generic_val_print_decorations): New.
8681         (generic_val_print): Declare.
8682         * valprint.c (generic_val_print): New function.
8683         * p-valprint.c (p_decorations): New global.
8684         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8685         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8686         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8687         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8688         * m2-valprint.c (m2_decorations): New global.
8689         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8690         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8691         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8692         TYPE_CODE_ERROR>: Call generic_val_print.
8693         * f-valprint.c (f_decorations): New global.
8694         (f_val_print): Use print_function_pointer_address.
8695         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8696         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8697         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8698         generic_val_print.
8699         * c-valprint.c (c_decorations): New global.
8700         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8701         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8702         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8703         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8704         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8705         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8706         case.
8707
8708 2012-03-01  Tom Tromey  <tromey@redhat.com>
8709
8710         * valprint.c (val_print): Update.
8711         * p-valprint (pascal_val_print): Return void.
8712         * p-lang.h (pascal_val_print): Return void.
8713         * m2-valprint.c (m2_val_print): Return void.
8714         * m2-lang.h (m2_val_print): Return void.
8715         * language.h (struct language_defn) <la_val_print>: Return void.
8716         * language.c (unk_lang_val_print): Return void.
8717         * jv-valprint.c (java_val_print): Return void.
8718         * jv-lang.h (java_val_print): Return void.
8719         * f-valprint.c (f_val_print): Return void.
8720         * f-lang.h (f_val_print): Return void.
8721         * d-valprint.c (d_val_print): Return void.
8722         (dynamic_array_type): Update.
8723         * d-lang.h (d_val_print): Return void.
8724         * c-valprint.c (c_val_print): Return void.
8725         * c-lang.h (c_val_print): Return void.
8726         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8727         void.
8728         * ada-lang.h (ada_val_print): Return void.
8729
8730 2012-03-01  Tom Tromey  <tromey@redhat.com>
8731
8732         * value.h (val_print): Return void.
8733         * valprint.c (val_print): Return void.
8734
8735 2012-03-01  Tom Tromey  <tromey@redhat.com>
8736
8737         * value.h (common_val_print): Return void.
8738         * valprint.c (common_val_print): Return void.
8739
8740 2012-03-01  Tom Tromey  <tromey@redhat.com>
8741
8742         * value.h (value_print): Return void.
8743         * valprint.c (value_print): Return void.
8744         * p-valprint.c (pascal_value_print): Return void.
8745         * p-lang.h (pascal_value_print): Return void.
8746         * language.h (struct language_defn) <la_value_print>: Return
8747         void.
8748         * language.c (unk_lang_value_print): Return void.
8749         * jv-valprint.c (java_value_print): Return void.
8750         * jv-lang.h (java_value_print): Return void.
8751         * f-valprint.c (c_value_print): Don't declare.
8752         Include c-lang.h.
8753         * c-valprint.c (c_value_print): Return void.
8754         * c-lang.h (c_value_print): Return void.
8755         * ada-valprint.c (ada_value_print): Return void.
8756         * ada-lang.h (ada_value_print): Return void.
8757
8758 2012-03-01  Tom Tromey  <tromey@redhat.com>
8759
8760         * value.c (value_primitive_field): Handle virtual base classes.
8761
8762 2012-03-01  Tom Tromey  <tromey@redhat.com>
8763
8764         * gdbtypes.h (struct vbase): Remove.
8765
8766 2012-03-01  Tom Tromey  <tromey@redhat.com>
8767
8768         * c-valprint.c (print_function_pointer_address): Move...
8769         * valprint.c: ... here.  Make non-static.
8770         * m2-valprint.c (print_function_pointer_address): Remove.
8771         * valprint.h (print_function_pointer_address): Declare.
8772
8773 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8774
8775         * NEWS: Document the fact that one can provide a condition when
8776         creating an Ada exception catchpoint.
8777
8778 2012-03-01  Tom Tromey  <tromey@redhat.com>
8779
8780         * valprint.c (val_print_type_code_flags): Fix placement of
8781         trailing brace.
8782
8783 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8784
8785         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8786         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8787         environment variable before calling update-copyright.
8788
8789 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8790
8791         * gnulib/extra/update-copyright: Update to the latest from
8792         gnulib's git repository.
8793         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8794         variable to 2 instead of 1.
8795
8796 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8797
8798         * varobj.c (c_value_of_variable): Remove dead code.
8799
8800 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8801
8802         * ada-lex.p (processId): Do not modify already encoded IDs.
8803         Update function documentation.
8804
8805 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8806
8807         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8808         "name" with "struct symbol *name_sym".
8809         * ada-exp.y (write_var_or_type): Update call to
8810         ada_find_renaming_symbol.
8811         "name" with "struct symbol *name_sym". Adjust Implementation
8812         accordingly.  Adjust the function documentation.
8813
8814 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8815
8816         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8817         * ada-lang.c (ada_find_any_type): Add advance declaration.
8818         Make static.  Replace ada_find_any_symbol by
8819         ada_find_any_type_symbol.
8820         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8821         Improve function description.  Make static.
8822         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8823         Replace ada_find_any_symbol by ada_find_any_type_symbol.
8824
8825 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8826
8827         * ada-lang.c (struct tag_args): Delete.
8828         (ada_get_tsd_type): Function body moved up in source file.
8829         (ada_tag_name_1, ada_tag_name_2): Delete.
8830         (ada_get_tsd_from_tag): New function.
8831         (ada_tag_name_from_tsd): New function.
8832         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8833         to determine the tag name.
8834
8835 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8836
8837         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8838         declaration.
8839         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8840         function.
8841
8842 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8843
8844         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8845
8846 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8847
8848         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8849         full searches.
8850
8851 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8852
8853         * ada-lang.c (constrained_packed_array_type): If there is a
8854         parallel XA type, use it to determine the array index type.
8855
8856 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8857
8858         * ada-valprint.c (ada_val_print_1): If our value is a reference
8859         to an array descriptor, dereference it before converting it
8860         to a simple array.
8861
8862 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8863
8864         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8865         creating fixed value.
8866         (ada_value_ind, ada_coerce_ref, assign_component)
8867         (ada_evaluate_subexp): Remove call to unwrap_value before
8868         call to ada_to_fixed_value.
8869
8870 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8871
8872         * ada-lang.c (to_fixed_array_type): Set result's type name.
8873
8874 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8875
8876         * ada-lang.c (catch_ada_exception_command_split): Add new
8877         argument cond_string.  Add support for condition at end of
8878         "catch exception" commands.
8879         (ada_decode_exception_location): Add new argument cond_string.
8880         Update call to catch_ada_exception_command_split.
8881         (create_ada_exception_catchpoint): Add new argument cond_string.
8882         Set the breakpoint condition if needed.
8883         (catch_ada_exception_command): Update call to
8884         ada_decode_exception_location.
8885         (ada_decode_assert_location): Add function documentation.
8886         Add support for condition at end of "catch assert" command.
8887         (catch_assert_command): Update calls to ada_decode_assert_location
8888         and create_ada_exception_catchpoint.
8889
8890 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8891
8892         Fix disp-step-syscall.exp: fork: single step over fork.
8893         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8894         (i386_linux_get_syscall_number_from_regcache): ... here, new function
8895         comment, change parameters gdbarch and ptid to regcache.  Remove
8896         parameter regcache, initialize gdbarch from regcache here.
8897         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8898         New functions.
8899         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8900         instead.
8901         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8902         'syscall'.  Make the 'int' check more strict.
8903
8904 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8905
8906         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8907         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8908         (i386_linux_intx80_sysenter_syscall_record): ... here.
8909         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8910         Use the renamed function name.
8911
8912 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8913
8914         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8915         * breakpoint.c (until_break_command): Likewise.
8916         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8917         * infcall.c (call_function_by_hand): Likewise.
8918         * infcmd.c (finish_forward): Likewise.
8919         * infrun.c (insert_exception_resume_breakpoint): Likewise.
8920
8921 2012-02-28  Tristan Gingold  <gingold@adacore.com>
8922
8923         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8924         avoid variable assignments inside condition.
8925
8926 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8927
8928         Fix static analysis issue found by cppcheck.
8929         * microblaze-tdep.c (microblaze_extract_return_value): Fix
8930         uninitialized BUF for size 2.
8931
8932 2012-02-27  Chris Dearman  <chris@mips.com>
8933             Nathan Froyd  <froydnj@codesourcery.com>
8934             Maciej W. Rozycki  <macro@codesourcery.com>
8935
8936         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8937         (mips16_instruction_has_delay_slot): Likewise.
8938         (mips_segment_boundary): Likewise.
8939         (mips_adjust_breakpoint_address): Likewise.
8940         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8941
8942 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
8943             Maciej W. Rozycki  <macro@codesourcery.com>
8944
8945         * infrun.c (handle_inferior_event): Don't proceed through
8946         shared library trampolines if stepping at the machine
8947         instruction level.
8948
8949 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
8950
8951         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8952         too.
8953
8954 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
8955
8956         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8957         (sh_stub_unwind_sniffer): New functions.
8958         (sh_stub_unwind): New variable.
8959         (sh_gdbarch_init): Wire everything.
8960
8961 2012-02-27  Pedro Alves  <palves@redhat.com>
8962
8963         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8964         (linux_nat_post_attach_wait): Adjust to use
8965         linux_proc_pid_is_stopped.
8966         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8967         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8968         based on pid_is_stopped from both linux-nat.c and
8969         gdbserver/linux-low.c, and renamed.
8970
8971 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
8972
8973         * remote.c (remote_watchpoint_addr_within_range): New function.
8974         (init_remote_ops): Use it.
8975
8976 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
8977
8978         * target.h (target_watchpoint_addr_within_range): Document macro.
8979
8980 2012-02-24  Pedro Alves  <palves@redhat.com>
8981
8982         * stack.c (set_last_displayed_sal): Issue internal_error instead
8983         of warning, and issue it after clearing the last displayed sal.
8984
8985 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
8986             Pedro Alves  <palves@redhat.com>
8987
8988         * breakpoint.c (until_break_command): Install breakpoints after
8989         all frame manipulations.
8990
8991 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
8992
8993         * remote.c (remote_supports_cond_breakpoints): New forward
8994         declaration.
8995         (remote_add_target_side_condition): New function.
8996         (remote_insert_breakpoint): Add target-side breakpoint
8997         conditional if supported.
8998         (remote_insert_hw_breakpoint): Likewise.
8999         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9000         hook.
9001
9002         * target.c (update_current_target): Inherit
9003         to_supports_evaluation_of_breakpoint_conditions.
9004         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9005
9006         * target.h (struct target_ops)
9007         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9008         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9009
9010         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9011         (condition_evaluation_both, condition_evaluation_auto,
9012         condition_evaluation_host, condition_evaluation_target,
9013         condition_evaluation_enums, condition_evaluation_mode_1,
9014         condition_evaluation_mode): New static globals.
9015         (translate_condition_evaluation_mode): New function.
9016         (breakpoint_condition_evaluation_mode): New function.
9017         (gdb_evaluates_breakpoint_condition_p): New function.
9018         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9019         (mark_breakpoint_modified): New function.
9020         (mark_breakpoint_location_modified): New function.
9021         (set_condition_evaluation_mode): New function.
9022         (show_condition_evaluation_mode): New function.
9023         (bp_location_compare_addrs): New function.
9024         (get_first_location_gte_addr): New helper function.
9025         (set_breakpoint_condition): Free condition bytecode if locations
9026         has become unconditional.  Call mark_breakpoint_modified (...).
9027         (condition_command): Call update_global_location_list (1) for
9028         breakpoints.
9029         (breakpoint_xfer_memory): Use is_breakpoint (...).
9030         (is_breakpoint): New function.
9031         (parse_cond_to_aexpr): New function.
9032         (build_target_condition_list): New function.
9033         (insert_bp_location): Handle target-side conditional
9034         breakpoints and call build_target_condition_list (...).
9035         (update_inserted_breakpoint_locations): New function.
9036         (insert_breakpoint_locations): Handle target-side conditional
9037         breakpoints.
9038         (bpstat_check_breakpoint_conditions): Add comment.
9039         (bp_condition_evaluator): New function.
9040         (bp_location_condition_evaluator): New function.
9041         (print_breakpoint_location): Print information on where the condition
9042         will be evaluated.
9043         (print_one_breakpoint_location): Likewise.
9044         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9045         breakpoint location.
9046         (force_breakpoint_reinsertion): New functions.
9047         (update_global_location_list): Handle target-side breakpoint
9048         conditions.
9049         Reinsert locations that are already inserted if conditions have
9050         changed.
9051         (bp_location_dtor): Free agent expression bytecode.
9052         (disable_breakpoint): Call mark_breakpoint_modified (...).
9053         Call update_global_location_list (...) with parameter 1 for breakpoints.
9054         (disable_command): Call mark_breakpoint_location_modified (...).
9055         Call update_global_location_list (...) with parameter 1 for breakpoints.
9056         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9057         (enable_command): mark_breakpoint_location_modified (...).
9058         (_initialize_breakpoint): Update documentation and add
9059         condition-evaluation breakpoint subcommand.
9060
9061         * breakpoint.h: Include ax.h.
9062         (condition_list): New data structure.
9063         (condition_status): New enum.
9064         (bp_target_info) <cond_list>: New field.
9065         (bp_location) <condition_changed, cond_bytecode>: New fields.
9066         (is_breakpoint): New prototype.
9067
9068 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9069
9070         * remote.c (remote_state) <cond_breakpoints>: New field.
9071         (PACKET_ConditionalBreakpoints): New enum.
9072         (remote_cond_breakpoint_feature): New function.
9073         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9074         (remote_supports_cond_breakpoints): New function.
9075         (_initialize_remote): Add new packet configuration for
9076         target-side conditional breakpoints.
9077
9078 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9079
9080         * NEWS: Mention target-side conditional breakpoint support,
9081         new condition-evaluation breakpoint subcommand and remote
9082         packet extensions.
9083
9084 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9085
9086         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9087         number.
9088
9089 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9090
9091         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9092         (after_prologue): Remove.
9093
9094 2012-02-23  Tom Tromey  <tromey@redhat.com>
9095
9096         * jv-valprint.c (java_val_print): Remove dead code.
9097
9098 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9099
9100         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9101         known_tasks_element and known_tasks_length fields.
9102         (read_known_tasks_array): Change argument type.  Use pointer type
9103         and number of elements from DATA.  Adjust.
9104         (read_known_tasks_list): Likewise.
9105         (get_known_tasks_addr): Remove.
9106         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9107         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9108         type and array length.  Merge former get_known_tasks_addr code.
9109
9110 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9111
9112         PR backtrace/13716
9113         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9114         it after set_momentary_breakpoint.
9115
9116 2012-02-22  Sterling Augustine  <saugustine@google.com>
9117
9118         PR 13689:
9119         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9120
9121 2012-02-22  Gary Benson  <gbenson@redhat.com>
9122
9123         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9124         (find_slot_in_mapped_hash): Likewise.
9125
9126 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9127
9128         PR build/13638
9129         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9130         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9131         * configure: Regenerate.
9132
9133 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9134             Pedro Alves  <palves@redhat.com>
9135
9136         * ia64-tdep.c: Do not include libunwind-ia64.h.
9137         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9138         Include libunwind-ia64.h instead of libunwind.h.
9139         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9140         for libunwind.h existence.
9141         * configure, config.in: Regenerate.
9142
9143 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9144
9145         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9146         instead of value_rtti_target_type.
9147         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9148         instead of value_rtti_target_type.
9149         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9150         value_rtti_target_type.
9151         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9152         (value_rtti_target_type): Rename to ...
9153         (value_rtti_indirect_type): ... here and make it indirect.  Update
9154         function comment.
9155         * value.c (readjust_indirect_value_type): New function.
9156         (coerce_ref): Support for enclosing type setting for references
9157         with readjust_indirect_value_type.
9158         * value.h (readjust_value_type): New declaration.
9159         (value_rtti_target_type): Rename to ...
9160         (value_rtti_indirect_type): ... here.
9161
9162 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9163
9164         * MAINTAINERS (Write After Approval): Add myself to the list.
9165
9166 2012-02-20  Doug Evans  <dje@google.com>
9167
9168         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9169         Rename objfile_p_char parameter to objfilep.
9170         (build_objfile_section_table): Result is now void.  All callers
9171         updated.
9172         * objfiles.h (struct objfile): Tweak comments, whitespace.
9173         (build_objfile_section_table): Update.
9174
9175         * elfread.c (elf_symfile_segments): Fix warning text.
9176
9177 2012-02-20  Tom Tromey  <tromey@redhat.com>
9178
9179         PR gdb/13498:
9180         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9181         particular set of file names once.
9182         (dw2_map_symbol_filenames): Likewise.
9183
9184 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9185
9186         Code cleanup.
9187         * main.c (write_files): Remove the declaration.
9188         (external_editor_command): Move the declaration ...
9189         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9190
9191 2012-02-20  Tom Tromey  <tromey@redhat.com>
9192
9193         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9194         extraneous block.
9195
9196 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9197
9198         * darwin-nat.h (enum darwin_msg_state): Add comments.
9199
9200 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9201
9202         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9203         value.
9204
9205 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9206
9207         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9208         between function description and implementation.
9209
9210 2012-02-17  Tom Tromey  <tromey@redhat.com>
9211
9212         PR python/12070:
9213         * python/py-event.c (event_object_getset): New global.
9214         (event_object_type): Reference it.
9215         * python/py-type.c (field_object_getset): New global.
9216         (field_object_type): Reference it.
9217         * python/python-internal.h (gdb_py_generic_dict): Declare.
9218         * python/py-utils.c (gdb_py_generic_dict): New function.
9219
9220 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9221
9222         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9223
9224 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9225
9226         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9227         TYPE_CALLING_CONVENTION annotation.
9228
9229 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9230
9231         * MAINTAINERS: Add rx to target ISA section.
9232         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9233         (ALLDEPFILES): Add rx-tdep.c.
9234
9235 2012-02-16  Tom Tromey  <tromey@redhat.com>
9236
9237         * symfile.c (symbol_file_add_main_1): Use inferior's
9238         symfile_flags.
9239         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9240         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9241         inferior.
9242         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9243         inferior.
9244         (follow_exec): Use inferior's symfile_flags.
9245         * inferior.h (struct inferior) <symfile_flags>: New field.
9246
9247 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9248
9249         PR gdb/9734:
9250         * remote-sim.c (gdbsim_create_inferior): Call error() when
9251         sim_create_inferior() fails.
9252
9253 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9254
9255         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9256
9257 2012-02-16  Tom Tromey  <tromey@redhat.com>
9258
9259         PR c++/13653:
9260         * thread.c (struct current_thread_cleanup) <was_removable>: New
9261         field.
9262         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9263         (make_cleanup_restore_current_thread): Initialize new field.
9264
9265 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9266
9267         * MAINTAINERS: Add rl78 to target ISA section.
9268         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9269         (ALLDEPFILES): Add rl78-tdep.c.
9270         * NEWS: Mention rl78 as a new target.
9271
9272 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9273
9274         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9275         data.
9276         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9277
9278 2012-02-15  Tom Tromey  <tromey@redhat.com>
9279
9280         PR gdb/12659:
9281         * infcmd.c (registers_info): Print just the current register's
9282         name.
9283
9284 2012-02-15  Tom Tromey  <tromey@redhat.com>
9285
9286         * python/py-symbol.c (sympy_value): Use _().
9287
9288 2012-02-15  Pedro Alves  <palves@redhat.com>
9289
9290         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9291         output to be like native targets'.
9292         (remote_pid_to_str): Special case the null ptid.
9293
9294 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9295
9296         * NEWS: Mention enable count command.
9297         * breakpoint.h (struct breakpoint): New field enable_count.
9298         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9299         (enable_breakpoint): Add arg to call.
9300         (struct disp_data): New struct.
9301         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9302         (do_map_enable_once_breakpoint): Create a struct and pass it.
9303         (do_map_enable_delete_breakpoint): Ditto.
9304         (do_map_enable_count_breakpoint): New function.
9305         (enable_count_command): New function.
9306         (bpstat_stop_status): Decrement enable_count.
9307         (print_one_breakpoint_location): Report enable count.
9308         (_initialize_breakpoint): Add enable count command.
9309
9310 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9311
9312         * rl78-tdep.c (reggroups.h): Include.
9313         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9314         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9315         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9316         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9317         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9318         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9319         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9320         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9321         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9322         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9323         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9324         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9325         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9326         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9327         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9328         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9329         beginning of register list.
9330         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9331         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9332         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9333         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9334         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9335         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9336         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9337         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9338         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9339         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9340         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9341         the pseudo registers.  Rearrange other pseudo registers too so
9342         that the bank registers appear at the end.
9343         (rl78_register_type): Account for the fact that the byte sized
9344         bank registers are now pseudo-registers.
9345         (rl78_register_name): Rearrange the register name array.  Make
9346         initial set of raw banked registers inaccessible.
9347         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9348         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9349         case for copying bytes back and forth between raw and pseudo
9350         versions of the banked registers.  Update other cases to reflect
9351         the changed names.
9352         (rl78_return_value): Update to account for changed names of
9353         raw registers.
9354         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9355         rl78_register_sim_regno().
9356
9357 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9358
9359         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9360         the name parameter being passed to find_pc_partial_function().
9361
9362 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9363
9364         * MAINTAINERS: Step down from being ia64 target maintainer.
9365
9366 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9367
9368         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9369         compilation warning.
9370
9371 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9372
9373         Fix crash on loaded shlibs without loaded exec_bfd.
9374         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9375         (set_section_command): Replace exec_bfd by p->bfd.
9376
9377 2012-02-10  Tom Tromey  <tromey@redhat.com>
9378
9379         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9380         when we have a C++ qualified name.
9381
9382 2012-02-10  Pedro Alves  <palves@redhat.com>
9383
9384         * inferior.c (inferior_pid_to_str): New.
9385         (print_inferior, inferior_command): Use it.
9386
9387 2012-02-10  Pedro Alves  <palves@redhat.com>
9388
9389         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9390         the test CFLAGS.
9391         * configure: Regenerate.
9392
9393 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9394
9395         * linespec.c (decode_line_internal): Fix comment correctness.
9396
9397 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9398
9399         PR gdb/12953
9400         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9401         * amd64bsd-nat.c: Add support for debug registers (adapted from
9402         i386bsd-nat.c).
9403         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9404         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9405         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9406         (amd64bsd_dr_get_control): New functions.
9407         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9408         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9409         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9410         watchpoints initialization.
9411         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9412
9413 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9414
9415         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9416         flds_bnds.fields.
9417         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9418
9419 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9420
9421         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9422
9423 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9424
9425         * language.h (symbol_name_cmp_ftype): Renames
9426         symbol_name_match_p_ftype.
9427         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9428         la_get_symbol_name_match_p.
9429         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9430         ada_get_symbol_name_match_p.  Update comment.
9431         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9432         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9433         Renames symbol_name_match_p.  Update field type.
9434         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9435         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9436         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9437         "la_get_symbol_name_cmp" in comments.
9438         * language.c: Likewise.
9439
9440 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9441
9442         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9443         %eflags offset.
9444         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9445         (amd64_sol2_gregset32_reg_offs): Likewise.
9446
9447 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9448
9449         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9450         of the returned BFD is allocated by GDB.
9451
9452 2012-02-07  Tom Tromey  <tromey@redhat.com>
9453
9454         PR python/12027:
9455         * python/python-internal.h (frame_object_type): Declare.
9456         * python/py-symbol.c (sympy_needs_frame): New function.
9457         (sympy_value): New function.
9458         (symbol_object_getset): Add "needs_frame".
9459         (symbol_object_methods): Add "value".
9460         * python/py-frame.c (frame_object_type): No longer static.
9461
9462 2012-02-07  Tom Tromey  <tromey@redhat.com>
9463
9464         PR python/13599:
9465         * python/py-symbol.c (sympy_line): New function.
9466         (symbol_object_getset): Add "line".
9467
9468 2012-02-07  Tom Tromey  <tromey@redhat.com>
9469
9470         * charset.c (find_charset_names): Check 'in' against NULL.
9471
9472 2012-02-06  Doug Evans  <dje@google.com>
9473
9474         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9475         and fields.name members from char * to const char *.  All uses updated.
9476         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9477         from char * to const char *.  All uses updated.
9478         (type_name_no_tag): Update.
9479         (lookup_unsigned_typename, lookup_signed_typename): Update.
9480         * gdbtypes.c (type_name_no_tag): Change result type
9481         from char * to const char *.  All callers updated.
9482         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9483         name parameter from char * to const char *.
9484         * symtab.h (struct cplus_specific): Change type of demangled_name
9485         member from char * to const char *.  All uses updated.
9486         (struct general_symbol_info): Change type of name and
9487         mangled_lang.demangled_name members from char * to const char *.
9488         All uses updated.
9489         (symbol_get_demangled_name, symbol_natural_name): Update.
9490         (symbol_demangled_name, symbol_search_name): Update.
9491         * symtab.c (symbol_get_demangled_name): Change result type
9492         from char * to const char *.  All callers updated.
9493         (symbol_natural_name, symbol_demangled_name): Ditto.
9494         (symbol_search_name): Ditto.
9495         (completion_list_add_name): Change type of symname,sym_text,
9496         text,word parameters from char * to const char *.
9497         (completion_list_objc_symbol): Change type of sym_text,
9498         text,word parameters from char * to const char *.
9499         * ada-lang.c (find_struct_field): Change type of name parameter
9500         from char * to const char *.
9501         (encoded_ordered_before): Similarly for N0,N1 parameters.
9502         (old_renaming_is_invisible): Similarly for function_name parameter.
9503         (ada_type_name): Change result type from char * to const char *.
9504         All callers updated.
9505         * ada-lang.h (ada_type_name): Update.
9506         * buildsym.c (hashname): Change type of name parameter
9507         from char * to const char *.
9508         * buildsym.h (hashname): Update.
9509         * dbxread.c (end_psymtab): Change type of include_list parameter
9510         from char ** to const char **.
9511         * dwarf2read.c (determine_prefix): Change result type
9512         from char * to const char *.  All callers updated.
9513         * f-lang.c (find_common_for_function): Change type of name, funcname
9514         parameters from char * to const char *.
9515         * f-lang.c (find_common_for_function): Update.
9516         * f-valprint.c (list_all_visible_commons): Change type of funcname
9517         parameters from char * to const char *.
9518         * gdbarch.sh (static_transform_name): Change type of name parameter
9519         and result from char * to const char *.
9520         * gdbarch.c: Regenerate.
9521         * gdbarch.h: Regenerate.
9522         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9523         of name parameter from char * to const char *.
9524         * jv-lang.c (java_primitive_type_from_name): Ditto.
9525         (java_demangled_signature_length): Similarly for signature parameter.
9526         (java_demangled_signature_copy): Ditto.
9527         (java_demangle_type_signature): Ditto.
9528         * jv-lang.h (java_primitive_type_from_name): Update.
9529         (java_demangle_type_signature): Update.
9530         * objc-lang.c (specialcmp): Change type of a,b parameters
9531         from char * to const char *.
9532         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9533         from char * to const char *.  All callers updated.
9534         * p-lang.h (is_pascal_string_type): Update.
9535         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9536         of name parameter from char * to const char *.
9537         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9538         * utils.c (fprintf_symbol_filtered): Ditto.
9539         * defs.h (fprintf_symbol_filtered): Update.
9540         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9541         * stabsread.h (end_psymtab): Update.
9542         * stack.c (find_frame_funname): Change type of funname parameter
9543         from char ** to const char **.
9544         * stack.h (find_frame_funname): Update.
9545         * typeprint.c (type_print): Change type of varstring parameter
9546         from char * to const char *.
9547         * value.h (type_print): Update.
9548         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9549         from char * to const char *.  All callers updated.
9550         (xcoff_end_psymtab): Change type of include_list parameter
9551         from char ** to const char **.  All callers updated.
9552         (swap_sym): Similarly for name parameter.  All callers updated.
9553         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9554         Use xstrdup.
9555         (process_coff_symbol): Use xstrdup.
9556         * stabsread.c (stabs_method_name_from_physname): Renamed from
9557         update_method_name_from_physname.  Change result type from void
9558         to char *.  All callers updated.
9559         (read_member_functions): In has_destructor case, store name in objfile
9560         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9561
9562 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9563
9564         * configure: Rebuild.
9565         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9566         LDFLAGS.
9567
9568 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9569
9570         * configure.tgt (rl78-*-elf): New target.
9571         * rl78-tdep.c: New file.
9572
9573 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9574
9575         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9576         and continue the loop.  Add QUIT statement.
9577
9578 2012-02-03  Tom Tromey  <tromey@redhat.com>
9579
9580         PR gdb/13596:
9581         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9582         bfd_lookup_symbol_from_symtab.
9583         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9584         gdb_bfd_lookup_symbol_from_symtab.
9585
9586 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9587
9588         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9589         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9590         symbol.  Add assertion that sym2 is never NULL.
9591
9592 2012-02-02  Doug Evans  <dje@google.com>
9593
9594         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9595         "name" parameter to const char ** from char **.  All callers updated.
9596         (find_pc_partial_function): Ditto.
9597         (cache_pc_function_name): Change type to const char * from char *.
9598         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9599         (find_pc_partial_function): Update.
9600         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9601         type of "name" parameter to const char * from char *.
9602         All uses updated.
9603         * arch-utils.c (generic_in_solib_return_trampoline): Change
9604         type of "name" parameter to const char * from char *.
9605         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9606         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9607         type of "name" parameter to const char * from char *.
9608         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9609         * gdbarch.c: Regenerate.
9610         * gdbarch.h: Regenerate.
9611         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9612         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9613         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9614         type of "name" parameter to const char * from char *.
9615         * skip.c (skip_function_pc): Ditto.
9616         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9617         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9618         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9619         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9620         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9621         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9622         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9623         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9624         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9625
9626 2012-02-02  Pedro Alves  <palves@redhat.com>
9627
9628         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9629         the current inferior has no execution.  Make sure the current
9630         remote process matches gdb's current inferior.
9631
9632 2012-02-02  Tom Tromey  <tromey@redhat.com>
9633
9634         PR gdb/13405:
9635         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9636         read-only memory.
9637
9638 2012-02-02  Tom Tromey  <tromey@redhat.com>
9639
9640         PR gdb/9307:
9641         * symtab.c (lookup_language_this): Set block_found.
9642
9643 2012-02-01  Tom Tromey  <tromey@redhat.com>
9644
9645         PR gdb/13431:
9646         * jit.c (struct jit_inferior_data): Rewrite.
9647         (struct jit_objfile_data): New.
9648         (get_jit_objfile_data): New function.
9649         (add_objfile_entry): Update.
9650         (jit_read_descriptor): Return int.  Replace descriptor_addr
9651         argument with inf_data.  Update.  Don't call error.
9652         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9653         descriptor here.
9654         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9655         (jit_reset_inferior_data_and_breakpoints)
9656         (jit_inferior_created_observer): Remove.
9657         (jit_inferior_exit_hook): Update.
9658         (jit_executable_changed_observer): Remove.
9659         (jit_event_handler): Update.
9660         (free_objfile_data): Reset inferior data if needed.
9661         (_initialize_jit): Update.
9662
9663 2012-02-01  Tom Tromey  <tromey@redhat.com>
9664
9665         * jit.c (bfd_open_from_target_memory): Move higher in file.
9666
9667 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9668
9669         * libunwind-frame.c (libunwind_load): Display message if dlopen
9670         failed.
9671
9672 2012-02-01  Gary Benson  <gbenson@redhat.com>
9673
9674         * symtab.h (symbol_found_callback_ftype): New typedef.
9675         (iterate_over_symbols): Use the above.
9676         * symtab.c (iterate_over_symbols): Likewise.
9677         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9678         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9679         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9680         (iterate_name_matcher): Document return values.
9681         (collect_one_symbol): Likewise.
9682         (collect_function_symbols): Likewise.
9683         (collect_symbols): Likewise.
9684
9685 2012-02-01  Tom Tromey  <tromey@redhat.com>
9686
9687         * ada-lang.c (resolve_subexp): Update.
9688         (ada_lookup_symbol_list): Add 'full_search' argument.
9689         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9690         ada_lookup_symbol_list.
9691         (ada_lookup_encoded_symbol): Update.
9692         (get_var_value): Update.
9693         * ada-exp.y (block_lookup): Update.
9694         (write_var_or_type): Update.
9695         (write_name_assoc): Update.
9696         * ada-lang.h (ada_lookup_symbol_list): Update.
9697
9698 2012-01-31  Tom Tromey  <tromey@redhat.com>
9699
9700         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9701         comment.
9702
9703 2012-01-31  Doug Evans  <dje@google.com>
9704
9705         * symtab.h: Remove outdated comment.
9706         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9707
9708 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9709
9710         Fix build error in Darwin port.
9711         * i386-darwin-nat.c: Include i386-nat.h.
9712
9713 2012-01-30  Tom Tromey  <tromey@redhat.com>
9714
9715         PR breakpoints/13568:
9716         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9717         argument.  Check for recursive includes.
9718         (dwarf_decode_macros): Create an include hash.
9719
9720 2012-01-30  Michael Eager  <eager@eagercon.com>
9721
9722         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9723         * ppc-linux-tdep.c: Include glibc-tdep.h.
9724         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9725         (powerpc_linux_in_plt_stub): New function.
9726         (powerpc_linux_in_dynsym_resolve_code): New function.
9727         (ppc_skip_trampoline_code): New function.
9728         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9729         Use glibc_skip_solib_resolver.
9730
9731 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9732
9733         Code cleanup: Make 1440 bytes of data segment read-only.
9734         * arch-utils.c (endian_enum): Make it const char *const [].
9735         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9736         Likewise.
9737         * breakpoint.c (always_inserted_enums): Likewise.
9738         * cli/cli-cmds.c (script_ext_enums): Likewise.
9739         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9740         enumlist parameter const char *const *.
9741         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9742         const char *const *.
9743         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9744         parameter const char *const *.
9745         * cris-tdep.c (cris_modes): Make it const char *const [].
9746         * filesystem.c (target_file_system_kinds): Likewise.
9747         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9748         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9749         (can_use_displaced_stepping_enum, scheduler_enums)
9750         (exec_direction_names): Likewise.
9751         * language.c (_initialize_language): Make the type_or_range_names and
9752         case_sensitive_names variables const char *const [].
9753         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9754         * python/python.c (python_excp_enums): Likewise.
9755         * remote.c (interrupt_sequence_modes): Likewise.
9756         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9757         * serial.c (logbase_enums): Likewise.
9758         * sh-tdep.c (sh_cc_enum): Likewise.
9759         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9760         Likewise.
9761         * symtab.c (multiple_symbols_modes): Likewise.
9762         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9763         Likewise.
9764         * utils.c (internal_problem_modes): Likewise.
9765
9766 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9767
9768         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9769         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9770         result.
9771
9772 2012-01-27  Doug Evans  <dje@google.com>
9773
9774         * configure.ac (with_python): Fix absolute path handling for win32.
9775         * configure: Regenerate.
9776
9777 2012-01-26  Doug Evans  <dje@google.com>
9778
9779         * symtab.c: Whitespace cleanup, no code changes.
9780
9781         * symtab.c (lookup_symbol_in_language): Improve comment.
9782         (lookup_symbol_aux): Fix comment.
9783
9784         * psymtab.c (add_psymbol_to_list): Result is now "void".
9785         * psympriv.h (add_psymbol_to_list): Update.
9786
9787         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9788
9789 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9790
9791         Do not open script filenames twice.
9792         * cli/cli-cmds.c (source_script_from_stream): Pass to
9793         source_python_script also STREAM.
9794         * python/py-auto-load.c (source_section_scripts): Pass to
9795         source_python_script_for_objfile also STREAM.
9796         (auto_load_objfile_script): Pass to source_python_script_for_objfile
9797         also INPUT.
9798         * python/python-internal.h (source_python_script_for_objfile): New
9799         parameter file, rename parameter file to filename.
9800         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9801         instead if !_WIN32.  Update the function comment.
9802         (source_python_script, source_python_script_for_objfile)
9803         (source_python_script): New parameter file, rename parameter file to
9804         filename.  Pass FILENAME to python_run_simple_file.
9805         * python/python.h (source_python_script): New parameter file, rename
9806         parameter file to filename.
9807
9808 2012-01-26  Pedro Alves  <palves@redhat.com>
9809
9810         * corelow.c (core_has_fake_pid): Delete.
9811         (core_close): Delete references to `core_has_fake_pid'.
9812         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9813         (core_open): Delete references to `core_has_fake_pid'.
9814         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9815         the removed global.
9816
9817 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9818
9819         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9820         Remove language parameter from name_matcher.  Adjust the comment.
9821         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9822         Remove language parameter.
9823         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9824         * linespec.c (iterate_name_matcher): Likewise.
9825         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9826         name_matcher.  Adjust call accordingly.
9827         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9828         (maintenance_check_symtabs): Adjust type of parameter "fun".
9829         * psymtab.h (maintenance_check_symtabs): Likewise.
9830
9831 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9832
9833         * language.h (symbol_name_match_p_ftype): New typedef.
9834         (struct language_defn): Replace field la_symbol_name_compare
9835         by la_get_symbol_name_match_p.
9836         * ada-lang.c (ada_get_symbol_name_match_p): New function.
9837         (ada_language_defn): Use it.
9838         * linespec.c (struct symbol_matcher_data): New type.
9839         (iterate_name_matcher): Rewrite.
9840         (iterate_over_all_matching_symtabs): Pass a pointer to
9841         a symbol_matcher_data struct to expand_symtabs_matching
9842         instead of just the lookup name.
9843         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9844         opencl-lang.c, p-lang.c, language.c: Delete field
9845         la_symbol_name_compare, and replace by NULL for new field
9846         la_get_symbol_name_match_p.
9847         * symfile.h (struct quick_symbol_functions): Update comment.
9848
9849 2012-01-25  Tom Tromey  <tromey@redhat.com>
9850
9851         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9852         dereferencing.
9853
9854 2012-01-24  Tom Tromey  <tromey@redhat.com>
9855
9856         PR symtab/12406:
9857         * solib.c (update_solib_list): Update the program space's
9858         added_solibs and deleted_solibs fields.
9859         * progspace.h (struct program_space) <added_solibs,
9860         deleted_solibs>: New fields.
9861         (clear_program_space_solib_cache): Declare.
9862         * progspace.c (release_program_space): Call
9863         clear_program_space_solib_cache.
9864         (clear_program_space_solib_cache): New function.
9865         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9866         bpstat_stop_status.  Use handle_solib_event.
9867         * breakpoint.c: Include gdb_regex.h.
9868         (print_solib_event): New function.
9869         (bpstat_print): Use print_solib_event.
9870         (bpstat_stop_status): Add special case for bp_shlib_event.
9871         (handle_solib_event): New function.
9872         (bpstat_what): Use handle_solib_event.
9873         (struct solib_catchpoint): New.
9874         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9875         (breakpoint_hit_catch_solib, check_status_catch_solib)
9876         (print_it_catch_solib, print_one_catch_solib)
9877         (print_mention_catch_solib, print_recreate_catch_solib): New
9878         functions.
9879         (catch_solib_breakpoint_ops): New global.
9880         (catch_load_or_unload, catch_load_command_1)
9881         (catch_unload_command_1): New functions.
9882         (internal_bkpt_check_status): Add special case for
9883         bp_shlib_event.
9884         (internal_bkpt_print_it): Use print_solib_event.
9885         (initialize_breakpoint_ops): Initialize
9886         catch_solib_breakpoint_ops.
9887         (_initialize_breakpoint): Register "catch load" and "catch
9888         unload".
9889         * breakpoint.h (handle_solib_event): Declare.
9890         * NEWS: Add entry for "catch load" and "catch unload".
9891
9892 2012-01-24  Tom Tromey  <tromey@redhat.com>
9893
9894         * ada-lang.c: Include gdb_vecs.h.
9895         * charset.c: Include gdb_vecs.h.
9896         * tracepoint.h: Include gdb_vecs.h.
9897         * gdb_vecs.h: New file.
9898
9899 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
9900
9901         * breakpoint.c (breakpoint_hit_catch_fork)
9902         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9903         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9904         * infrun.c (inferior_has_forked, inferior_has_vforked)
9905         (inferior_has_execd, inferior_has_called_syscall): Delete.
9906         (handle_syscall_event): Get syscall_number from the execution
9907         control state's wait status.
9908         (wait_for_inferior): Don't clear syscall_number.
9909
9910 2012-01-24  Pedro Alves  <palves@redhat.com>
9911
9912         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9913         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9914         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9915         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9916         `ws' parameter.
9917         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
9918         false for events other than TARGET_SIGNAL_TRAP.
9919         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9920         Add `ws' parameter.
9921         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
9922         events other than TARGET_SIGNAL_TRAP.
9923         (tracepoint_breakpoint_hit): Add `ws' parameter.
9924         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9925         parameter.
9926         (bpstat_stop_status): Same.
9927         (pc_at_non_inline_function): Same.
9928         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9929         to pass the current event's waitstatus to bpstat_stop_status
9930         and pc_at_non_inline_function.
9931
9932 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9933
9934         Code cleanup.
9935         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9936         Update the function comment for it.
9937         (source_script_with_search): Call make_cleanup_fclose for STREAM.
9938         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9939         for STREAM.
9940
9941 2012-01-24  Pedro Alves  <palves@redhat.com>
9942
9943         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9944         outside `bs->stop' block.
9945         (bpstat_what): Rework bp_shlib_event handling.
9946         (internal_bkpt_check_status): If the breakpoint is a
9947         bp_shlib_event, then set bs->stop and bs->print if
9948         stop_on_solib_events is set.
9949
9950 2012-01-24  Gary Benson  <gbenson@redhat.com>
9951
9952         Delete #if 0'd out code.
9953         * stack.c (print_frame_label_vars): Remove.
9954         (catch_info): Likewise.
9955         (_initialize_stack): Remove "info catch" command.
9956         * NEWS: Mention the above.
9957
9958 2012-01-24  Pedro Alves  <palves@redhat.com>
9959
9960         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
9961         it.
9962         (remote_notice_new_inferior): If the remote end doesn't support
9963         the multiprocess extensions, then the PID is fake.
9964         (add_current_inferior_and_thread): New.
9965         (remote_start_remote): Use it.
9966         (extended_remote_attach_1): Adjust.
9967         (extended_remote_create_inferior_1): Use
9968         add_current_inferior_and_thread.
9969
9970 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9971
9972         Fix watchpoints to be specific for each inferior.
9973         * breakpoint.c (watchpoint_in_thread_scope): Verify also
9974         current_program_space.
9975         * i386-nat.c (i386_inferior_data_cleanup): New.
9976         (i386_inferior_data_get): Replace variable inf_data_local by an
9977         inferior_data call.
9978         (i386_use_watchpoints): Initialize i386_inferior_data.
9979         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9980         specific iterate_over_lwps.
9981
9982 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9983
9984         Fix watchpoints across inferior fork.
9985         * amd64-linux-nat.c (update_debug_registers_callback): Update the
9986         comment for linux_nat_iterate_watchpoint_lwps.
9987         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9988         linux_nat_iterate_watchpoint_lwps.
9989         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9990         * i386-linux-nat.c (update_debug_registers_callback): Update the
9991         comment for linux_nat_iterate_watchpoint_lwps.
9992         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9993         linux_nat_iterate_watchpoint_lwps.
9994         (i386_linux_prepare_to_resume): New comment on Linux kernel.
9995         * i386-nat.c: Include inferior.h.
9996         (dr_mirror): Remove.
9997         (i386_inferior_data, struct i386_inferior_data)
9998         (i386_inferior_data_get): New.
9999         (i386_debug_reg_state): Use i386_inferior_data_get.
10000         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10001         (i386_insert_watchpoint, i386_remove_watchpoint)
10002         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10003         (i386_remove_hw_breakpoint): New variable state, use
10004         i386_debug_reg_state instead of DR_MIRROR.
10005         * linux-nat.c (delete_lwp): New declaration.
10006         (num_lwps): Move here from downwards.
10007         (delete_lwp_cleanup): New.
10008         (linux_child_follow_fork): Create new child_lp, call
10009         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10010         PTRACE_DETACH.
10011         (num_lwps): Move upwards.
10012         (linux_nat_iterate_watchpoint_lwps): New.
10013         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10014         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10015
10016 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10017
10018         GDB 7.4 released.
10019
10020 2012-01-23  Pedro Alves  <palves@redhat.com>
10021
10022         * top.c (caution): Rename to ...
10023         (confirm): ... this.
10024         (show_caution): Rename to ...
10025         (show_confirm): ... this.
10026         (quit_cover): Adjust.
10027         (init_main): Adjust.
10028         * top.h (caution): Rename to ...
10029         (confirm): ... this.
10030         * utils.c (internal_vproblem, defaulted_query): Adjust.
10031
10032 2012-01-23  Pedro Alves  <palves@redhat.com>
10033
10034         * top.c (caution): Update comment.
10035         (execute_command): Don't consider the current value of `caution'.
10036
10037 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10038
10039         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10040
10041 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10042
10043         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10044         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10045         * target.c (target_fileio_pwrite): Remove buffer address from
10046         debug output.
10047         (target_fileio_pread): Likewise.
10048
10049 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10050
10051         * NEWS: Document remote "info proc" and "generate-core-file".
10052
10053 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10054
10055         * gdbarch.sh (find_memory_regions): New callback.
10056         * gdbarch.c, gdbarch.h: Regenerate.
10057
10058         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10059         callback before falling back to target method.
10060
10061         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10062         (linux_target_install_ops): No longer install it.
10063
10064         * linux-tdep.c (linux_find_memory_regions): New function.
10065         (linux_init_abi): Install it.
10066
10067 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10068
10069         * gdbarch.sh (make_corefile_notes): New architecture callback.
10070         * gdbarch.c: Regenerate.
10071         * gdbarch.h: Likewise.
10072
10073         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10074         before target_make_corefile_notes.  If NULL is returned, the
10075         target does not support core file generation.
10076
10077         * linux-nat.c: Include "linux-tdep.h".
10078         (find_signalled_thread, find_stop_signal): Remove.
10079         (linux_nat_do_thread_registers): Likewise.
10080         (struct linux_nat_corefile_thread_data): Likewise.
10081         (linux_nat_corefile_thread_callback): Likewise.
10082         (iterate_over_spus): Likewise.
10083         (struct linux_spu_corefile_data): Likewise.
10084         (linux_spu_corefile_callback): Likewise.
10085         (linux_spu_make_corefile_notes): Likewise.
10086         (linux_nat_collect_thread_registers): New function.
10087         (linux_nat_make_corefile_notes): Replace contents by call to
10088         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10089         as native-only callback.
10090
10091         * linux-tdep.h: Include "bfd.h".
10092         (struct regcache): Add forward declaration.
10093         (linux_collect_thread_registers_ftype): New typedef.
10094         (linux_make_corefile_notes): Add prototype.
10095         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10096         "regset.h", and "elf-bfd.h".
10097         (find_signalled_thread, find_stop_signal): New functions.
10098         (linux_spu_make_corefile_notes): Likewise.
10099         (linux_collect_thread_registers): Likewise.
10100         (struct linux_corefile_thread_data): New data structure.
10101         (linux_corefile_thread_callback): New funcion.
10102         (linux_make_corefile_notes): Likewise.
10103         (linux_make_corefile_notes_1): Likewise.
10104         (linux_init_abi): Install it.
10105
10106 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10107
10108         * gdbarch.sh (info_proc): New callback.
10109         * gdbarch.c, gdbarch.h: Regenerate.
10110
10111         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10112         before falling back to the target info_proc callback.
10113
10114         * linux-nat.c: Do not include "cli/cli-utils.h".
10115         (linux_nat_info_proc): Remove.
10116         (linux_target_install_ops): No longer install it.
10117
10118         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10119         (read_mapping): New function.
10120         (linux_info_proc): Likewise.
10121         (linux_init_abi): Install it.
10122
10123 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10124
10125         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10126         * infcmd.c: (info_proc_cmd_1): New function.
10127         (info_proc_cmd): New function, moved here from equivalent routine
10128         orignally in linux-nat.c.
10129         (info_proc_cmd_mappings): Likewise.
10130         (info_proc_cmd_stat): Likewise.
10131         (info_proc_cmd_status): Likewise.
10132         (info_proc_cmd_cwd): Likewise.
10133         (info_proc_cmd_cmdline): Likewise.
10134         (info_proc_cmd_exe): Likewise.
10135         (info_proc_cmd_all): Likewise.
10136         (_initialize_infcmd): Install "info proc" command and subcommands.
10137
10138         * target.h (struct target_ops): Add to_info_proc.
10139         (target_info_proc): Add prototype.
10140         * target.c (target_info_proc): New function.
10141
10142         * procfs.c (procfs_info_proc): Add prototype.
10143         (info_proc_cmd): Rename into ...
10144         (procfs_info_proc): ... this.  Update argument types as appropriate
10145         for a to_info_proc implementation.  Handle "what" argument.
10146         (procfs_target): Install procfs_info_proc.
10147         (_initialize_procfs): No longer install "info proc" command.
10148
10149         * linux-nat.c: (enum info_proc_what): Remove.
10150         (linux_nat_info_proc_cmd_1): Rename into ...
10151         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10152         for a to_info_proc implementation.
10153         (linux_nat_info_proc_cmd): Remove.
10154         (linux_nat_info_proc_cmd_mappings): Likewise.
10155         (linux_nat_info_proc_cmd_stat): Likewise.
10156         (linux_nat_info_proc_cmd_status): Likewise.
10157         (linux_nat_info_proc_cmd_cwd): Likewise.
10158         (linux_nat_info_proc_cmd_cmdline): Likewise.
10159         (linux_nat_info_proc_cmd_exe): Likewise.
10160         (linux_nat_info_proc_cmd_all): Likewise.
10161         (linux_target_install_ops): Install linux_nat_info_proc.
10162         (_initialize_linux_nat): No longer install "info proc" command
10163         and subcommands.
10164
10165 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10166
10167         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10168         * config.in, configure: Regenerate.
10169
10170         * target.h (struct target_ops): Add to_fileio_readlink.
10171         (target_fileio_readlink): Add prototype.
10172         * target.c (target_fileio_readlink): New function.
10173
10174         * inf-child.c: Conditionally include <sys/param.h>.
10175         (inf_child_fileio_readlink): New function.
10176         (inf_child_target): Install it.
10177
10178         * remote.c (PACKET_vFile_readlink): New enum value.
10179         (remote_hostio_readlink): New function.
10180         (init_remote_ops): Install it.
10181         (_initialize_remote): Handle vFile:readlink packet type.
10182
10183 2012-01-20  Pedro Alves  <palves@redhat.com>
10184             Ulrich Weigand  <ulrich.weigand@linaro.org>
10185
10186         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10187         * config.in, configure: Regenerate.
10188
10189         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10190         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10191         (target_fileio_open): Add prototype.
10192         (target_fileio_pwrite): Likewise.
10193         (target_fileio_pread): Likewise.
10194         (target_fileio_close): Likewise.
10195         (target_fileio_unlink): Likewise.
10196         (target_fileio_read_alloc): Likewise.
10197         (target_fileio_read_stralloc): Likewise.
10198
10199         * target.c: Include "gdb/fileio.h".
10200         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10201         (default_fileio_target): New function.
10202         (target_fileio_open): Likewise.
10203         (target_fileio_pwrite): Likewise.
10204         (target_fileio_pread): Likewise.
10205         (target_fileio_close): Likewise.
10206         (target_fileio_unlink): Likewise.
10207         (target_fileio_close_cleanup): Likewise.
10208         (target_fileio_read_alloc_1): Likewise.
10209         (target_fileio_read_alloc): Likewise.
10210         (target_fileio_read_stralloc): Likewise.
10211
10212         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10213         <fcntl.h>, and <unistd.h>.
10214         (inf_child_fileio_open_flags_to_host): New function.
10215         (inf_child_errno_to_fileio_error): Likewise.
10216         (inf_child_fileio_open): Likewise.
10217         (inf_child_fileio_pwrite): Likewise.
10218         (inf_child_fileio_pread): Likewise.
10219         (inf_child_fileio_close): Likewise.
10220         (inf_child_fileio_unlink): Likewise.
10221         (inf_child_target): Install to_fileio routines.
10222
10223         * remote.c (init_remote_ops): Install to_fileio routines.
10224
10225 2012-01-20  Pedro Alves  <palves@redhat.com>
10226             Ulrich Weigand  <ulrich.weigand@linaro.org>
10227
10228         * remote.c (remote_multi_process_p): Only check for multi-process
10229         protocol feature, do not check for extended protocol.
10230         (remote_supports_multi_process): Check for extended protocol here.
10231         (set_general_process): Likewise.
10232         (extended_remote_kill): Likewise.
10233         (remote_pid_to_str): Likewise.
10234         (remote_query_supported): Always query multiprocess mode.
10235
10236 2012-01-20  Pedro Alves  <palves@redhat.com>
10237             Ulrich Weigand  <ulrich.weigand@linaro.org>
10238
10239         * inferior.h (struct inferior): Add fake_pid_p.
10240         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10241         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10242         magic_null_ptid since the remote side doesn't provide a real PID.
10243
10244 2012-01-19  Tom Tromey  <tromey@redhat.com>
10245
10246         * NEWS: Combine the two Python sections.
10247
10248 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10249
10250         * target.h (target_close): Update comment on the target's unpush state.
10251
10252 2012-01-19  Pedro Alves  <palves@redhat.com>
10253
10254         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10255         linux_nat_async directly instead of going through the target
10256         vector.
10257         * target.c (unpush_target): Close target after unpushing it, not
10258         before.
10259
10260 2012-01-19  Gary Benson  <gbenson@redhat.com>
10261
10262         * mdebugread.c (sort_blocks): Replace integer constants with ones
10263         derived from FIRST_LOCAL_BLOCK.
10264
10265 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10266             Jan Kratochvil  <jan.kratochvil@redhat.com>
10267
10268         PR gdb/9538
10269         * symfile.c (find_separate_debug_file): New function.
10270         (terminate_after_last_dir_separator): Likewise.
10271         (find_separate_debug_file_by_debuglink): Also try realpath.
10272         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10273         * configure: Regenerate.
10274         * config.in: Regenerate.
10275
10276 2012-01-18  Doug Evans  <dje@google.com>
10277
10278         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10279         (main.o): Remove rule.
10280         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10281         (--with-sysroot): Rewrite.
10282         * configure: Regenerate.
10283         * config.in: Regenerate.
10284
10285 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10286
10287         * parse.c (initialize_expout): New function.
10288         (reallocate_expout): Likewise.
10289         (parse_exp_in_context): Use `initialize_expout' and
10290         `reallocate_expout' when appropriate.
10291
10292 2012-01-18  Pedro Alves  <palves@redhat.com>
10293
10294         * record.c (struct record_breakpoint, record_breakpoint_p)
10295         (record_breakpoints): New.
10296         (record_insert_breakpoint, record_remove_breakpoint): Manage
10297         record breakpoints list.  Only remove breakpoints from the
10298         inferior if they had been inserted there in the first place.
10299
10300 2012-01-17  Doug Evans  <dje@google.com>
10301
10302         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10303         if we know we don't have a file name to look for.
10304
10305 2012-01-17  Pedro Alves  <palves@redhat.com>
10306
10307         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10308         the frame's stop reason is UNWIND_UNAVAILABLE.
10309
10310 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10311
10312         Fix compilation error.
10313         * m2-exp.y (yyerror): Use ANSI C prototype.
10314
10315 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10316
10317         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10318         (growbuf_by_size): Likewise.
10319         (yyerror): Likewise.
10320         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10321         (modblock): Remove variable (was #if 0'ed).
10322         (parse_number): Convert prototype from K&R to ANSI C.
10323         (yyerror): Likewise.
10324         * objc-exp.y (parse_number): Likewise.
10325         (yyerror): Likewise.
10326         (yylex): Remove #if 0'ed code.
10327         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10328         (yyerror): Likewise.
10329
10330 2012-01-16  Tom Tromey  <tromey@redhat.com>
10331
10332         * NEWS: Add item.
10333         * symtab.h (compare_filenames_for_search): Declare.
10334         * symtab.c (compare_filenames_for_search): New function.
10335         (iterate_over_some_symtabs): Use it.
10336         * symfile.h (struct quick_symbol_functions)
10337         <map_symtabs_matching_filename>: Change spec.
10338         * psymtab.c (partial_map_symtabs_matching_filename): Use
10339         compare_filenames_for_search.  Update for new spec.
10340         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10341         compare_filenames_for_search.  Update for new spec.
10342         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10343
10344 2012-01-16  Tom Tromey  <tromey@redhat.com>
10345
10346         PR python/13281:
10347         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10348         (struct main_type) <flag_flag_enum>: New field.
10349         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10350         * NEWS: Add entries.
10351         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10352         enums.
10353         * python/lib/gdb/printing.py (_EnumInstance): New class.
10354         (FlagEnumerationPrinter): Likewise.
10355
10356 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10357
10358         * breakpoint.c (create_sals_from_address_default): New function.
10359         (create_breakpoints_sal_default): Likewise.
10360         (decode_linespec_default): Likewise.
10361         (is_marker_spec): Removed.
10362         (strace_marker_p): New function.
10363         (init_breakpoint_sal): Using `strace_marker_p' instead of
10364         `is_marker_spec'.
10365         (create_breakpoint): Call method `create_sals_from_address' from
10366         breakpoint_ops, replacing code that created SALs conditionally
10367         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10368         replacing code that created breakpoints conditionally on the type
10369         wanted.
10370         (base_breakpoint_create_sals_from_address): New function.
10371         (base_breakpoint_create_breakpoints_sal): Likewise.
10372         (base_breakpoint_decode_linespec): Likewise.
10373         (base_breakpoint_ops): Add methods
10374         `base_breakpoint_create_sals_from_address',
10375         `base_breakpoint_create_breakpoints_sal' and
10376         `base_breakpoint_decode_linespec'.
10377         (bkpt_create_sals_from_address): New function.
10378         (bkpt_create_breakpoints_sal): Likewise.
10379         (bkpt_decode_linespec): Likewise.
10380         (tracepoint_create_sals_from_address): Likewise.
10381         (tracepoint_create_breakpoints_sal): Likewise.
10382         (tracepoint_decode_linespec): Likewise.
10383         (strace_marker_create_sals_from_address): Likewise.
10384         (strace_marker_create_breakpoints_sal): Likewise.
10385         (strace_marker_decode_linespec): Likewise.
10386         (strace_marker_breakpoint_ops): New variable.
10387         (addr_string_to_sals): Remove `marker_spec'.  Call method
10388         `decode_linespec' from breakpoint_ops, replacing code that decoded
10389         an address string into a SAL.  Use `strace_marker_p' instead of
10390         `marker_spec'.
10391         (strace_command): Decide whether we are dealing with a static
10392         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10393         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10394         * breakpoint.h (linespec_result, linespec_sals): New forward
10395         declarations.
10396         (breakpoint_ops) <create_sals_from_address>,
10397         <create_breakpoints_sal>, <decode_linespec>: New methods.
10398
10399 2012-01-14  Doug Evans  <dje@google.com>
10400
10401         * NEWS: Update text for "maint set python print-stack".
10402         It is deprecated in gdb 7.4 and deleted in 7.5.
10403
10404 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10405
10406         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10407         including curses.h.
10408
10409 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10410
10411         * configure: Regenerate.
10412         * config.in: Regenerate.
10413
10414 2012-01-12  Keith Seitz  <keiths@redhat.com>
10415
10416         PR mi/10586
10417         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10418         (ANONYMOUS_UNION_NAME): Define.
10419         (is_path_expr_parent): New function.
10420         (get_path_expr_parent): New function.
10421         (is_anonymous_child): New function.
10422         (create_child_with_value): If the child is anonymous and without
10423         a name, assign an object name to it.
10424         (c_describe_child): Use get_path_expr_parent to determine
10425         the parent expression.
10426         If there field represents an anonymous struct or union and
10427         has no name, set an appropriate display name and expression.
10428         (cplus_describe_child): Likewise.
10429
10430 2012-01-12  Pedro Alves  <palves@redhat.com>
10431
10432         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10433         available when %ebp is found to be zero (outermost).
10434
10435 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10436
10437         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10438         an internal gdb_static_assert.
10439         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10440
10441 2012-01-11  Tom Tromey  <tromey@redhat.com>
10442
10443         PR gdb/9598:
10444         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10445         catch" and "catch throw".
10446
10447 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10448
10449         * blockframe.c (block_innermost_frame): Start search from selected
10450         frame, if present, or otherwise the current frame.
10451
10452         * c-exp.y (variable): Update innermost_block for
10453         'block COLONCOLON NAME' clause.
10454         * m2-exp.y (variable): Ditto.
10455         * objc-exp.y (variable): Ditto.
10456
10457 2012-01-10  Tom Tromey  <tromey@redhat.com>
10458
10459         PR python/13199:
10460         * python/python.c (finish_python_initialization): Set sys.argv.
10461
10462 2012-01-10  Doug Evans  <dje@google.com>
10463
10464         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10465         "want_line_info".  All callers updated.
10466         (dwarf_decode_lines_1): New function.
10467         (handle_DW_AT_stmt_list): Add function comment.
10468         New arg "want_line_info".  All callers updated.
10469         (read_file_scope,read_type_unit_scope): Move comment from
10470         handle_DW_AT_stmt_list to here.
10471
10472 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10473
10474         Fix regression after libiberty/ update for GCC PR 6057 and others.
10475         * c-exp.y (operator) <OPERATOR DELETE>
10476         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10477         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10478         (make_builtin_type, make_name): New variable i, add gdb_assert.
10479         (operator) <OPERATOR NEW>: Update ARGS to 3.
10480         (operator) <OPERATOR DELETE>: Add trailing space.
10481         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10482         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10483         * cp-support.c (cp_canonicalize_string): Check NULL from
10484         cp_comp_to_string, call warning and return.
10485
10486 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10487
10488         Fix duplicate .o files after omitting libbfd.a.
10489         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10490         (SFILES): Add corelow.c.
10491         (COMMON_OBS): Add corelow.o.
10492         (ALLDEPFILES): Remove corelow.c.
10493         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10494         * config/alpha/alpha-osf3.mh: Likewise.
10495         * config/alpha/fbsd.mh: Likewise.
10496         * config/arm/nbsdaout.mh: Likewise.
10497         * config/arm/nbsdelf.mh: Likewise.
10498         * config/i386/i386gnu.mh: Likewise.
10499         * config/ia64/hpux.mh: Likewise.
10500         * config/ia64/linux.mh: Likewise.
10501         * config/m32r/linux.mh: Likewise.
10502         * config/m68k/linux.mh: Likewise.
10503         * config/mips/irix5.mh: Likewise.
10504         * config/mips/irix6.mh: Likewise.
10505         * config/pa/hpux.mh: Likewise.
10506         * config/pa/linux.mh: Likewise.
10507         * config/powerpc/aix.mh: Likewise.
10508         * config/sparc/linux.mh: Likewise.
10509         * config/sparc/linux64.mh: Likewise.
10510         * config/sparc/sol2.mh: Likewise.
10511         * config/vax/vax.mh: Likewise.
10512         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10513         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10514         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10515         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10516         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10517         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10518         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10519         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10520         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10521         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10522         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10523         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10524         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10525         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10526         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10527         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10528         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10529         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10530         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10531         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10532         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10533         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10534         corelow.o from gdb_target_obs.
10535         * corefile.c (core_target): Update the comment on NULL value.
10536         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10537         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10538         MATCHES.  Drop YUMMY set on NULL.
10539         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10540         reclaim CORE_DATA if it is already NULL.
10541
10542 2012-01-09  Doug Evans  <dje@google.com>
10543
10544         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10545         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10546
10547 2012-01-09  Keith Seitz  <keiths@redhat.com>
10548
10549         * breakpoint.c (wrapper.h): Don't include.
10550
10551 2012-01-09  Keith Seitz  <keiths@redhat.com>
10552
10553         * Makefile.in (SFILES): Remove wrapper.c.
10554         (HFILES_NO_SRCDIR): Remove wrapper.h.
10555         (COMMON_OBS): Remove wrapper.o.
10556         * cli/cli-interp.c: Don't inlude wrapper.h.
10557         * corelow.c: Likewise.
10558         (core_open): Replace gdb_target_find_new_threads with
10559         TRY_CATCH around target_find_new_threads.
10560         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10561         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10562         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10563         evaluate_expression.
10564         (varobj_set_value): Likewise for evaluate_expression and
10565         value_assign.
10566         (install_new_variable): Likewise for value_fetch_lazy.
10567         (adjust_value_for_child_access): Likewise for value_ind.
10568         (c_describe_child): Likewise for value_subscript and
10569         value_ind.
10570         (c_value_of_root): Likewise for evaluate_expression.
10571         * wrapper.c: Remove.
10572         * wrapper.h: Remove.
10573
10574 2012-01-09  Doug Evans  <dje@google.com>
10575
10576         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10577         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10578         "abfd" args with "section".  All callers updated.
10579         Error checking code moved ...
10580         (error_check_comp_unit_head): ... here.  New function.
10581         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10582         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10583         (create_debug_types_hash_table): Simplify by using
10584         read_and_check_type_unit_head.
10585
10586         * parser-defs.h (namecopy): Delete.
10587         * parse.c (namecopy, namecopy_size): Move into copy_name.
10588
10589 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10590
10591         Partially fix duplicate .o files after omitting libbfd.a.
10592         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10593         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10594         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10595         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10596         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10597         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10598         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10599
10600 2012-01-09  Pedro Alves  <palves@redhat.com>
10601
10602         * MAINTAINERS: Update my email address.
10603
10604 2012-01-08  Doug Evans  <dje@google.com>
10605
10606         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10607         n_type_units.  Rename type_comp_units to all_type_units.
10608         All uses updated.
10609         (add_signatured_type_cu_to_table): Renamed from
10610         add_signatured_type_cu_to_list.  All callers updated.
10611
10612         * gdbtypes.h (struct cplus_struct_type): Delete member
10613         nfn_fields_total.  All uses removed.
10614
10615 2012-01-06  Doug Evans  <dje@google.com>
10616
10617         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10618         to top of file.
10619         (dwarf2_find_comp_unit): Delete.
10620         (process_psymtab_comp_unit): Make result "void".
10621         Delete args buffer, info_ptr, buffer_size, and replace with
10622         "section".  All callers updated.
10623         (dwarf2_build_psymtabs_hard): Simplify.
10624
10625 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10626             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10627
10628         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10629         before `struct gdb_exception'.
10630         * breakpoint.c (update_global_location_list_nothrow)
10631         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10632         * cp-abi.c (value_rtti_type): Likewise.
10633         * cp-support.c (cp_validate_operator): Likewise.
10634         * infrun.c (insert_exception_resume_breakpoint)
10635         (check_exception_resume, keep_going): Likewise.
10636         * mi-interp.c (mi_breakpoint_created)
10637         (mi_breakpoint_modified): Likewise.
10638         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10639         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10640         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10641
10642 2012-01-05  Doug Evans  <dje@google.com>
10643
10644         * dwarf2read.c (statement_prologue): Delete, unused.
10645
10646         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10647         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10648
10649         * dwarf2read.c (comp_unit_header): Delete, unused.
10650
10651 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10652
10653         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10654         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10655
10656 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10657
10658         * infrun.c (normal_stop): Don't skip calling the normal_stop
10659         observers if the thread was doing a multi-step, but stopped for
10660         some reason other than stepping.
10661
10662 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10663
10664         * cli/cli-decode.h: Add comments.
10665         (CMD_LIST_AMBIGUOUS): Moved to command.h
10666         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10667         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10668         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10669         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10670         (add_com, add_com_alias, add_info, add_info_alias)
10671         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10672         declarations.
10673         * command.h: Add and adjust comments.
10674         (CMD_LIST_AMBIGUOUS): Moved here.
10675         (help_cmd, help_cmd_list): Delete declarations.
10676
10677 2012-01-04  Doug Evans  <dje@google.com>
10678
10679         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10680         All callers updated.
10681         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10682         Replace all arguments with "per_cu".  All callers updated.
10683
10684         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10685
10686         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10687         New arg "per_cu".  All callers updated.
10688
10689         Delete #if 0'd out code.
10690         * language.c (binop_result_type): Delete.
10691         (simple_type, ordered_type, same_type, integral_type): Delete.
10692         (numeric_type, character_type, string_type, boolean_type): Delete.
10693         (float_type, structured_type): Delete.
10694         * language.h: Update.
10695
10696 2012-01-04  Tom Tromey  <tromey@redhat.com>
10697
10698         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10699
10700 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10701
10702         * corefile.c (close_exec_file): Delete.
10703         (reopen_exec_file): Remove commented out code that seems related
10704         to close_exec_file, which is being deleted here.
10705         * inferior.h (close_exec_file): Delete.
10706         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10707
10708 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10709
10710         * ada-lang.c: #include "cli/cli-utils.h".
10711         (get_selections): Use skip_spaces.
10712         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10713         (catch_ada_exception_command_split): Use skip_spaces.
10714         (ada_decode_assert_location): Likewise.
10715
10716 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10717
10718         * linespec.c (decode_line_internal): Check for C++ or Java
10719         compound constructs only if the current language is C, C++
10720         or Java.
10721
10722 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10723
10724         Revert:
10725         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10726                     Joel Brobecker  <brobecker@adacore.com>
10727         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10728         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10729         3 times.
10730         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10731         fall through into AT_ENTRY_POINT.
10732         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10733         DUMMY_ADDR with it.
10734         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10735         PPC_INSN_SIZE skip to 3 times.
10736
10737 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10738
10739         * linespec.c (add_minsym): Preserve function descriptors.
10740
10741 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10742
10743         * breakpoint.c (all_locations_are_pending): Consider locations
10744         in program spaces executing during startup pending as well.
10745
10746 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10747
10748         Copyright year update in most files of the GDB Project.
10749
10750 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10751
10752         * copyright.sh: Delete.
10753         * copyright.py: Rewrite.
10754
10755 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10756
10757         * gnulib/extra/update-copyright: New file, imported from gnulib.
10758
10759 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10760
10761         * README (Copyright and License Notices): New section.
10762
10763 2012-01-03  Tom Tromey  <tromey@redhat.com>
10764
10765         PR python/12533:
10766         * python/py-value.c (valpy_dereference, valpy_get_address
10767         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10768         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10769         (valpy_absolute, valpy_richcompare): Free intermediate values.
10770
10771 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10772
10773         * ada-lang.c: Reformat the copyright notice.
10774
10775 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10776
10777         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10778         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10779         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10780         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10781         Revert this part of:
10782         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10783         Build gdb directly from *.o files not using libgdb.a.
10784         * Makefile.in (COMMON_OBS): Remove solib-target.o.
10785
10786 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10787
10788         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10789         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10790         Reformat the copyright header.
10791
10792 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10793
10794         Revert this part of:
10795         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10796         Remove the gdbtui binary.
10797         * gdb.c (main): Remove args.interpreter_p initialization.
10798         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10799         * main.h (struct captured_main_args): Remove interpreter_p.
10800
10801 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10802
10803         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10804
10805 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10806
10807         * top.c (print_gdb_version): Update copyright year.
10808
10809 2012-01-02  Yao Qi  <yao@codesourcery.com>
10810
10811         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10812
10813 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10814             Joel Brobecker  <brobecker@adacore.com>
10815
10816         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10817         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10818         3 times.
10819         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10820         fall through into AT_ENTRY_POINT.
10821         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10822         DUMMY_ADDR with it.
10823         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10824         PPC_INSN_SIZE skip to 3 times.
10825
10826 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10827
10828         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10829         the return value.
10830         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10831
10832 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10833
10834         Build gdb directly from *.o files not using libgdb.a.
10835         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10836         (COMMON_OBS): Remove solib-target.o.
10837         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10838         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10839         (LIBGDB_OBS, libgdb.a): Move it above.
10840         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10841         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10842         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10843         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10844         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10845         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10846         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10847         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10848         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10849         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10850         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10851         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10852         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10853         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10854         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10855         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10856         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10857         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10858         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10859         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10860         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10861         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10862         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10863         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10864         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10865         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10866         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10867
10868 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10869
10870         Remove the gdbtui binary.
10871         * .gitignore (/gdbtui): Remove.
10872         * Makefile.in (TUI): Remove.
10873         (SUBDIR_TUI_OBS): Remove tui-main.o.
10874         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10875         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10876         (tui-main.o): Remove.
10877         (all_object_files): Remove tui-main.o.
10878         * NEWS: New note for the gdbtui removal.
10879         * configure: Rebuilt.
10880         * configure.ac: No longer add all-tui, clean-tui, install-tui and
10881         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10882         CONFIG_UNINSTALL respectively.
10883         * gdb.c (main): Remove args.interpreter_p initialization.
10884         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10885         * main.h (struct captured_main_args): Remove interpreter_p.
10886         * tui/tui-main.c: Remove.
10887
10888 2012-01-01  Doug Evans  <dje@google.com>
10889
10890         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10891         (dwarf2_physname, read_import_statement): Ditto.
10892         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10893         (process_structure_scope read_subroutine_type): Ditto.
10894         (read_typedef, load_partial_dies, read_partial_die): Ditto.
10895         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10896         (dwarf2_fetch_die_location_block): Ditto.
10897         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10898
10899         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10900         All callers updated.
10901         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10902         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10903         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10904
10905         * dwarf2read.c (load_cu): Move assert to more useful location.
10906
10907         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10908         All callers updated.
10909
10910         * dwarf2read.c (dwarf2_per_objfile): Add comment.
10911         (dwarf2_elf_names): Minor reformat.
10912         (dwarf2_per_cu_data): Tweak comment.
10913         (dwarf2_read_section): Fix comment.
10914         (create_all_comp_units): Fix comment.
10915         (load_full_comp_unit): Fix comment.
10916         (process_full_comp_unit): Fix comment.
10917         (read_signatured_type): Fix comment.
10918
10919 For older changes see ChangeLog-2011.
10920 \f
10921 Local Variables:
10922 mode: change-log
10923 left-margin: 8
10924 fill-column: 74
10925 version-control: never
10926 coding: utf-8
10927 End: