2012-11-02 Pedro Alves <palves@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-02  Pedro Alves  <palves@redhat.com>
2
3         * gdb.base/foll-vfork.exp
4         (vfork_and_exec_child_follow_through_step): Don't skip on
5         non-HP/UX targets.  Expect the next to only step one line on
6         non-HP/UX targets, rather than stopping only after the exec.
7
8 2012-11-02  Pedro Alves  <palves@redhat.com>
9
10         Don't hard code line numbers.
11
12         * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
13         Expect text from the sources instead of a line number.
14         (vfork_parent_follow_to_bp)
15         (vfork_and_exec_child_follow_to_main_bp)
16         (vfork_and_exec_child_follow_through_step)
17         (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
18         Use gdb_get_line_number.
19
20 2012-11-02  Pedro Alves  <palves@redhat.com>
21
22         Modernize.
23
24         * gdb.base/foll-vfork.exp: Use standard_testfile and
25         build_executable.  Pass descriptive string to untested.
26         (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
27         (vfork_and_exec_child_follow_to_main_bp)
28         (vfork_and_exec_child_follow_through_step)
29         (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
30         (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
31         of send_gdb/gdb_expect.
32
33         (kill_child): New procedure.
34         (vfork_and_exec_child_follow_to_main_bp)
35         (vfork_and_exec_child_follow_through_step): Use it.
36
37 2012-11-02  Yao Qi  <yao@codesourcery.com>
38
39         * std-operator.def: Remove OP_LABELED.
40         * eval.c: Remove the declaration of 'get_label'.
41         (get_label): Remove.
42         (evaluate_struct_tuple): Remove code handling OP_LABELED.
43         Update comment.
44         Remove local variable 'variantno' and related code.
45         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
46         with 'fieldno'.
47         * expprint.c (print_subexp_standard): Likewise.
48         (dump_subexp_body_standard): Likewise.
49         * parse.c (operator_length_standard): Likewise.
50
51 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
52
53         Incorporate ARI web page generator into GDB sources.
54         * contrib/ari/create-web-ari-in-src.sh: New file.
55         * contrib/ari/gdb_ari.sh: New file.
56         * contrib/ari/gdb_find.sh: New file.
57         * contrib/ari/update-web-ari.sh: New file.
58
59 2012-10-31  Tom Tromey  <tromey@redhat.com>
60
61         * gdbarch.c: Rebuild.
62         * gdbarch.sh: Remove references to gdbarch_swap.
63         * corelow.c (core_open): Remove obsolete comment.
64
65 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
66
67         PR cli/14772
68         * c-typeprint.c (c_print_type): Don't print a space for vector
69         types, this is handled within the suffix.
70         (c_type_print_varspec_suffix): Add a space to vector suffix.
71
72 2012-10-26  Pedro Alves  <palves@redhat.com>
73
74         * amd64-tdep.c (amd64_relocate_instruction): Use
75         store_unsigned_integer instead of memcpy.
76         * i386-tdep.c (i386_relocate_instruction): Ditto.
77
78 2012-10-26  Pedro Alves  <palves@redhat.com>
79
80         * infrun.c (handle_inferior_event): Merge handling of
81         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
82         switch case.
83
84 2012-10-26  Pedro Alves  <palves@redhat.com>
85
86         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
87         Remove comment.
88
89 2012-10-26  Pedro Alves  <palves@redhat.com>
90
91         * target.c (target_waitstatus_to_string): Handle
92         TARGET_WAITKIND_VFORK_DONE.
93
94 2012-10-26  Pedro Alves  <palves@redhat.com>
95
96         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
97         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
98
99 2012-10-24  Tristan Gingold  <gingold@adacore.com>
100
101         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
102         Add comments.
103
104 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
105
106         * ravenscar-thread.c (ravenscar_wait): Only update the list
107         of threads and inferior_ptid if the inferior is still alive.
108
109 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
110
111         * ada-lang.c (is_known_support_routine): Use lbasename when
112         matching the symtab's filename against
113         known_runtime_file_name_patterns.
114
115 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
116
117         * ada-lang.c (ada_same_array_size_p): New function.
118         (ada_promote_array_of_integrals): New function.
119         (coerce_for_assign): Add handling of arrays where the elements
120         are integrals of a smaller size than the size of the target
121         array element type.
122
123 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
124
125         * doublest.c (convert_doublest_to_floatformat): Fix comparison
126         against maximum exponent value.
127
128 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
129
130         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
131         "unwind-seh.c".
132
133 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
134
135         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
136         strip typedef layer when computing the fixed type's field type,
137         only when computing its size.
138
139 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
140
141         PR gdb/12783
142         * i386-tdep.c (i386_return_value): Handle complex double and long
143         double.
144
145 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
146
147         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
148         New local variable args_len.
149         Quote the name of the executable when computing the command line.
150
151 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
152
153         PR gdb/12796
154         PR gdb/12798
155         PR gdb/12800
156         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
157         AMD64_FTAG_REGNUM.
158         * amd64-tdep.c (amd64_classify): Classify complex types.
159         (amd64_return_value): Handle the COMPLEX_X87 class.
160
161 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
162
163         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
164         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
165
166 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
167
168         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
169         function.
170         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
171         to amd64_windows_auto_wide_charset.
172
173 2012-10-23  Yao Qi  <yao@codesourcery.com>
174
175         * event-top.c (mark_async_signal_handler_wrapper): Remove.
176         * event-top.h: Remove its declaration.
177         (async_request_quit): Call mark_async_signal_handler instead of
178         mark_async_signal_handler_wrapper.
179         (async_do_nothing, async_disconnect): Likewise.
180         (async_stop_sig): Likewise.
181         * remote.c (handle_remote_sigint): Likewise.
182         (handle_remote_sigint_twice): Likewise.
183
184 2012-10-23  Yao Qi  <yao@codesourcery.com>
185
186         * event-top.c (sigint_token, sighup_token): Replace 'void *'
187         with 'static struct async_signal_handler *'.
188         (sighup_token, sigquit_token, sigstp_token): Likewise.
189
190 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
191
192         * gdbarch.sh (function_list): Use 'pstring' when printing
193         a variable which could return NULL.
194         * gdbarch.c: Regenerate.
195
196 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
197             Tom Tromey  <tromey@redhat.com>
198
199         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
200         inneffective if condition by gdb assertion.  Add function
201         description comment.
202
203 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
204
205         * parser-defs.h (struct exp_descriptor): Document constraint
206         on return value for "op_name" callbacks.
207
208 2012-10-18  Tom Tromey  <tromey@redhat.com>
209
210         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
211         * symtab.c (iterate_over_some_symtabs): Constify.
212         * source.h (symtab_to_fullname): Return 'const char *'.
213         * source.c (symtab_to_fullname): Return 'const char *'.
214         * python/py-symtab.c (stpy_fullname): Constify.
215         * cli/cli-cmds.c (edit_command): Constify.
216         * breakpoint.c (print_breakpoint_location)
217         (update_static_tracepoint): Constify.
218
219 2012-10-18  Tom Tromey  <tromey@redhat.com>
220
221         * breakpoint.c (compare_breakpoints): Fix comparison.
222
223 2012-10-18  Tom Tromey  <tromey@redhat.com>
224
225         * valprint.c (generic_emit_char, generic_printstr): Pass size of
226         gdb_wchar_t to convert_between_encodings.
227
228 2012-10-17  Yao Qi  <yao@codesourcery.com>
229
230         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
231         more parameter 'inferior'.
232         * corefile.c (write_memory_with_notification): Caller update.
233
234         * mi/mi-cmd-var.c: Include "mi-main.h".
235         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
236         to 1 and restore it later.
237         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
238         and "data-write-memory-bytes.
239         * mi/mi-interp.c: Include objfiles.h.
240         (mi_interpreter_init): Call observer_attach_memory_changed.
241         (mi_memory_changed): New.
242         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
243         New field.
244
245         * NEWS: Mention new MI notification "memory-changed".
246
247 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
248
249         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
250
251 2012-10-15  Doug Evans  <dje@google.com>
252
253         New option -nh: inhibit loading of ~/.gdbinit.
254         * NEWS: Mention -nh.
255         * main.c (captured_main): Recognize and process -nh.
256         (print_gdb_help): Mention -nh.
257         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
258
259 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
260
261         PR backtrace/14646
262         PR gdb/14647
263         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
264         pc_regnum_from_eax.
265         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
266         nor pc_regnum_from_eax.
267         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
268         nor pc_regnum_from_eax.
269
270 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
271
272         Fix entry values resolving in inlined frames.
273         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
274         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
275         entries of FRAME.
276
277 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
278
279         * configure.ac: Build with -DMS_WIN64 if building with Python
280         enabled using GCC on amd64-windows.
281         * configure: Regenerate.
282
283 2012-10-15  Tom Tromey  <tromey@redhat.com>
284
285         PR python/14635:
286         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
287         to Py_None.
288
289 2012-10-15  Tom Tromey  <tromey@redhat.com>
290
291         PR python/14634:
292         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
293
294 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
295
296         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
297         reset thread numbering back to 1.
298
299 2012-10-11  Doug Evans  <dje@google.com>
300
301         PR breakpoints/14643.
302         * linespec.c (struct ls_parser): New member keyword_ok.
303         (linespec_lexer_lex_string): Add comment.
304         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
305         for one.
306         (parse_linespec): Set keyword_ok.
307
308 2012-10-10  Doug Evans  <dje@google.com>
309
310         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
311         "0x" prefix on address in log message.
312
313         * dwarf2read.c (read_1_byte): Add const to buf parameter.
314         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
315         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
316         (lookup_dwo_file): Add const to dwo_name parameter.
317         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
318
319 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
320
321         Fix crash during stepping on ppc32.
322         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
323         SYM.
324
325 2012-10-03  Doug Evans  <dje@google.com>
326
327         PR symtab/14601
328         * buildsym.c (buildsym_init): Reset using_directives to NULL.
329
330 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
331
332         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
333         output and use uint32_t not long to ensure 4 byte size.
334
335 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
336
337         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
338         unref'ed it.
339
340 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
341
342         * target.c (simple_search_memory): Include access length in
343         warning message.
344
345 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
346             Edjunior Machado  <emachado@linux.vnet.ibm.com>
347
348         PR gdb/13989
349         * solib.c (solib_find): Prevent GDB from loading native libraries when
350         debugging a cross-target corefile.
351
352 2012-09-28  selven  <pcthegreat@gmail.com>
353
354         Make definition match declaration.
355
356         * regcache.c (regcache_register_status): Change return type to
357         enum register_status.
358
359 2012-09-28  Yao Qi  <yao@codesourcery.com>
360
361         * mi/mi-main.c (mi_cmd_data_write_memory): Call
362         write_memory_with_notification instead of write_memory.
363         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
364         instead of target_write_memory.
365
366 2012-09-28  Yao Qi  <yao@codesourcery.com>
367
368         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
369         when the length of content is not an even number.
370
371 2012-09-27  Tom Tromey  <tromey@redhat.com>
372
373         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
374         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
375
376 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
377
378         * sol-thread.c (sol_thread_fetch_registers)
379         (sol_thread_store_registers): Delete commented out code.
380
381 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
382
383         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
384         Move these functions to sparc-sol-thread.c.
385         * sparc-sol-thread.c: New file.
386         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
387         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
388         configurations.
389         * configure: Regenerate.
390
391 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
392
393         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
394         Remove commented-out code.
395
396 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
397
398         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
399         Enable this code for sparc hosts only.
400
401 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
402
403         * procfs.h (procfs_find_LDT_entry): Add declaration.
404         * sol-thread.c (ps_lgetLDT): Delete local declaration of
405         function procfs_find_LDT_entry.
406
407 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
408
409         * procfs.c (proc_get_LDT_entry): Make static.
410
411 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
412
413         * procfs.c (proc_find_memory_regions): Fix declaration.
414
415 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
416
417         * amd64-tdep.c (amd64_return_value): Revert previous change
418         that used TYPE_LENGTH directly.
419         * bfin-tdep.c (bfin_extract_return_value): Likewise.
420         (bfin_store_return_value): Likewise.
421         * cris-tdep.c (cris_store_return_value): Likewise.
422         (cris_extract_return_value): Likewise.
423         * h8300-tdep.c (h8300_extract_return_value): Likewise.
424         * hppa-tdep.c (hppa64_return_value): Likewise.
425         * lm32-tdep.c (lm32_store_return_value): Likewise.
426         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
427         * spu-tdep.c (spu_value_from_register): Likewise.
428         * vax-tdep.c (vax_return_value): Likewise.
429
430 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
431
432         * gdbtypes.c (lookup_array_range_type): Expand parameters
433         LOW_BOUND and HIGH_BOUND to LONGEST.
434         (lookup_string_range_type): Likewise.
435         * gdbtypes.h (lookup_array_range_type): Likewise.
436         (lookup_string_range_type): Likewise.
437         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
438         Expand HIGHBOUND to ssize_t.
439         (value_string): Likewise.
440         * value.h (value_cstring): Expand parameter LEN to ssize_t.
441         (value_string): Likewise.
442
443 2012-09-27  Yao Qi  <yao@codesourcery.com>
444
445         PR breakpoints/13898
446         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
447         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
448         per breakpoint type.
449
450 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
451
452         * procfs.c: Add gdb_bfd header.
453         * rs6000-nat.c: Likewise.
454         * solib-pa64.c: Likewise.
455         * spu-linux-nat.c: Likewise.
456         * windows-nat.c: Likewise.
457
458 2012-09-26  Tom Tromey  <tromey@redhat.com>
459
460         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
461
462 2012-09-26  Tom Tromey  <tromey@redhat.com>
463
464         * dwarf2read.c (mark_common_block_symbol_computed): New function.
465         (read_common_block): Handle child DIEs with
466         DW_AT_data_member_location.
467         (new_symbol_full): Add special case for common blocks.
468
469 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
470             Tom Tromey  <tromey@redhat.com>
471
472         * dwarf2read.c (read_common_block): Rewrite.
473         (new_symbol_full): Handle DW_TAG_common_block.
474         * f-lang.c (head_common_list, find_common_for_function):
475         Remove.
476         * f-lang.h (struct common_entry, struct saved_f77_common,
477         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
478         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
479         BLANK_COMMON_NAME_LOCAL): Remove.
480         (struct common_block): New.
481         * f-valprint.c (list_all_visible_commons): Remove.
482         (info_common_command_for_block): New function.
483         (info_common_command): Use it.
484         * stack.c (iterate_over_block_locals): Special case for
485         COMMON_BLOCK_DOMAIN.
486         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
487         constant.
488         (struct general_symbol_info) <value.common_block>: New field.
489         (SYMBOL_VALUE_COMMON_BLOCK): New define.
490
491 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
492             Tom Tromey  <tromey@redhat.com>
493
494         * f-lang.c (allocate_saved_bf_node,
495         allocate_saved_function_node, allocate_saved_f77_common_node,
496         allocate_common_entry_node, tail_common_list, current_common,
497         saved_bf_list, saved_bf_list_end, current_head_bf_list,
498         tmp_bf_ptr, add_common_block, add_common_entry,
499         find_first_common_named, patch_common_entries,
500         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
501         global_remote_debug, get_bf_for_fcn, saved_function_list,
502         saved_function_list_end, clear_function_list, struct saved_fcn,
503         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
504         SAVED_BF, SAVED_BF_PTR): Remove.
505         * f-lang.h (tail_common_list, current_common,
506         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
507         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
508         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
509         real_main_c_value): Remove.
510         * f-valprint.c (there_is_a_visible_common_named): Remove.
511
512 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
513
514         * breakpoint.c (update_global_location_list): Ignore previous
515         duplicate status of a breakpoint when starting a new scan for
516         duplicate breakpoints.
517
518 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
519         PR breakpoints/14419
520         * arm-tdep.c (arm_skip_prologue): Extending producer check to
521         support LLVM compiler.
522
523 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
524
525         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
526         * bfin-tdep.c (bfin_extract_return_value): Likewise.
527         (bfin_store_return_value): Likewise.
528         * cris-tdep.c (cris_store_return_value): Likewise.
529         (cris_extract_return_value): Likewise.
530         * h8300-tdep.c (h8300_extract_return_value): Likewise.
531         * hppa-tdep.c (hppa64_return_value): Likewise.
532         * lm32-tdep.c (lm32_store_return_value): Likewise.
533         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
534         * spu-tdep.c (spu_value_from_register): Likewise.
535         * vax-tdep.c (vax_return_value): Likewise.
536
537 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
538
539         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
540         parameter LEN to ssize_t.
541
542 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
543
544         * ada-valprint.c (ada_val_print_1): Eliminate single-use
545         variable LEN.
546         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
547         directly.
548         (alpha_store_return_value): Likewise.
549         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
550         (amd64_push_arguments): Likewise.
551         * ax-gdb.c (gen_trace_static_fields): Likewise.
552         (gen_traced_pop): Likewise.
553         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
554         * breakpoint.c (update_watchpoint): Likewise.
555         * findcmd.c (parse_find_args): Use local variable for type
556         instead of length.
557         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
558         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
559         (h8300_store_return_value): Likewise.
560         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
561         Use i386_darwin_arg_type_alignment directly.
562         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
563         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
564         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
565         (m68hc11_extract_return_value): Likewise.
566         * mep-tdep.c (mep_push_dummy_call): Likewise.
567         * printcmd.c (float_type_from_length): Likewise.
568         * s390-tdep.c (s390_value_from_register): Likewise.
569         * stack.c (read_frame_arg): Likewise.
570         * tracepoint.c (encode_actions_1): Likewise.
571         * valops.c (value_fetch_lazy): Use local variable for type
572         instead of length.  Use TYPE_LENGTH directly.
573         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
574
575 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
576
577         * symtab.c (skip_prologue_sal): Fix typo in comment.
578
579 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
580
581         * linespec.c (create_sals_line_offset): Fix typo in comment.
582
583 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
584
585         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
586         use plongest to print the array size.
587
588 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
589
590         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
591         * p-valprint.c (pascal_type_print_base): Likewise.
592
593 2012-09-22  Yao Qi  <yao@codesourcery.com>
594
595         * remote.c (remote_get_trace_status): Remove setting default
596         values of fields of 'ts'.
597
598 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
599
600         Fix internal error on canonicalization of clang types.
601         * cp-name-parser.y (operator): New comment at make_operator call for
602         new, delete, new[] and delete[].
603         (exp): Use "sizeof ".  Add new comment at make_operator call.
604
605 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
606
607         Fix disassemble without parameters in tailcall frame.
608         * cli/cli-cmds.c (disassemble_current_function): Use
609         get_frame_address_in_block.
610
611 2012-09-21  Tom Tromey  <tromey@redhat.com>
612
613         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
614         TYPE_CODE_UNION>: Unify, removing a goto.
615
616 2012-09-21  Tom Tromey  <tromey@redhat.com>
617
618         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
619
620 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
621
622         * findvar.c (read_frame_register_value): Mark the result value as
623         optimized out if any of the input registers have been optimized out.
624
625 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
626
627         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
628
629 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
630
631         * eval.c (evaluate_subexp_standard): Eliminate single-use
632         variable LOWER.
633
634 2012-09-21  Yao Qi  <yao@codesourcery.com>
635
636         * mi/mi-interp.c: Declare mi_record_changed.
637         (mi_interpreter_init): Call observer_attach_record_changed.
638         (mi_record_changed): New.
639         * record.c (record_open): Call observer_notify_record_changed.
640         (cmd_record_stop): Call observer_notify_record_changed.
641         * NEWS: Mention it.
642
643 2012-09-20  Tom Tromey  <tromey@redhat.com>
644
645         * NEWS: Update.
646         * python/python.c (finalize_python): New function.
647         (_initialize_python): Make a final cleanup.
648
649 2012-09-19  Doug Evans  <dje@google.com>
650
651         * buildsym.h (param_symbols): Delete, unused.
652         (context_stack): Delete member "params", unused.
653         * buildsym.c (push_context): Update.
654         * dwarf2read.c (read_func_scope): Update.
655
656 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
657
658         * sh-tdep.c (sh_register_convert_to_virtual)
659         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
660         all callers.  Just do a memcpy if not the little-endian case.
661
662         * h8300-tdep.c (h8300_gdbarch_init): Invoke
663         set_gdbarch_double_format and set_gdbarch_long_double_format.
664         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
665         set_gdbarch_double_format.
666         * sh-tdep.c (sh_gdbarch_init): Likewise.
667
668         * NEWS: Document the removal of SH's 'regs' command.
669         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
670         command.
671
672 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
673
674         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
675         `jump'.
676
677 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
678
679         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
680         language when iterating over symbols.
681
682 2012-09-18  Yao Qi  <yao@codesourcery.com>
683
684         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
685         (mi_interpreter_init): Call observer_attach_tsv_created and
686         observer_attach_tsv_deleted.
687         (mi_tsv_created, mi_tsv_deleted): New.
688         * tracepoint.c (delete_trace_state_variable): Call
689         observer_notify_tsv_deleted.
690         (trace_variable_command): Call observer_notify_tsv_created.
691         (delete_trace_variable_command): Call
692         observer_notify_tsv_deleted.
693         (create_tsv_from_upload): Call observer_notify_tsv_created.
694         * NEWS: Mention it.
695
696 2012-09-18  Yao Qi  <yao@codesourcery.com>
697
698         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
699         if traceframe changed.
700         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
701         "trace-find".
702         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
703         (mi_interpreter_init): Hook mi_traceframe_changed to observer
704         'traceframe_changed'.
705         (mi_traceframe_changed): New.
706         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
707         New field.
708         * NEWS: Mention the new MI notification.
709
710 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
711
712         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
713
714 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
715
716         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
717         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
718         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
719         Extend code also for PaX support.  Convert all gdb_assert to warning
720         calls.
721
722 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
723
724         Implement auto-load user conveniences suggested by Doug Evans.
725         * auto-load.c: Include top.h.
726         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
727         (_initialize_auto_load): New variable scripts_directory_help.  Mention
728         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
729         scripts-directory.  Document in online help one can use also files for
730         set auto-load safe-path.
731         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
732         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
733
734 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
735
736         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
737         of LEN.
738
739 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
740
741         * m2-valprint.c (m2_print_array_contents): Eliminate variable
742         ELTLEN and use TYPE_LENGTH directly.
743         (m2_val_print): Likewise.
744         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
745         variable LEN and use TYPE_LENGTH directly.
746         (m68k_svr4_store_return_value): Likewise.
747         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
748         ARGLEN and use TYPE_LENGTH directly.
749         (mips_o64_push_dummy_call): Likewise.
750         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
751         variable LENGTH and use TYPE_LENGTH directly.
752         (s390_function_arg_float): Likewise.
753         (s390_function_arg_integer): Likewise.
754         (s390_push_dummy_call): Likewise.
755         (s390_return_value_convention): Likewise.
756         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
757         TYPE_LENGTH directly.
758
759 2012-09-17  Yao Qi  <yao@codesourcery.com>
760
761         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
762         Update comment to add_setshow_integer_cmd.
763         * cli/cli-setshow.c (do_set_command): Handle case
764         'var_zuinteger_unlimited'.
765         (do_show_command): Likewise.
766         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
767         for command 'remotetimeout'.
768         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
769         to var_integer.
770         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
771         for command 'set listsize'.
772
773 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
774
775         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
776         variable LEN.
777
778 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
779
780         PR 14119
781         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
782         (frame_pop): Drop also TAILCALL_FRAME frames.
783         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
784
785 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
786             Pedro Alves  <palves@redhat.com>
787
788         PR 14548
789         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
790         function start if we are already at function start.  Both for
791         reverse-next and for reverse-step into function without line number
792         info.
793
794 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
795
796         Code cleanup - rename 'inline' depth to 'artificial' depth.
797         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
798         frame_id_artificial_p, extend the comment.
799         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
800         * frame.c (fprint_frame_id): Rename at a user, change debug output
801         text to "artificial=".
802         (skip_inlined_frames): Rename to ...
803         (skip_artificial_frames): ... here.  Extend the comment.
804         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
805         (frame_id_inlined_p): Rename to ...
806         (frame_id_artificial_p): ... here.  Rename at a user.
807         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
808         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
809         at a user.
810         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
811         Extend the comment.
812         (frame_id_inlined_p): Rename to ...
813         (frame_id_artificial_p): ... here.
814         * inline-frame.c (inline_frame_this_id): Rename at a user.
815
816 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
817
818         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
819         vector variables using vector_size syntax rather than array
820         syntax.
821
822 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
823
824         * valarith.c (value_concat): Replace unsafe ALLOCA with
825         XMALLOC/XFREE.
826
827 2012-09-14  Pedro Alves  <palves@redhat.com>
828
829         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
830
831 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
832
833         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
834         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
835         data-directory as appropriate.
836
837 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
838
839         * printcmd.c (ui_printf): Eliminate single-use variable
840         PARAM_LEN.
841
842 2012-09-14  Yao Qi  <yao@codesourcery.com>
843             Pedro Alves  <palves@redhat.com>
844
845         * valops.c (value_assign): Move observer_notify_target_changed
846         below to replace reinit_frame_cache.
847
848 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
849
850         Refactor Python "gdb" module into a proper Python package, by
851         introducing a new "_gdb" module for code implemented in C, and
852         using reload/__import__ instead of exec.
853         * python/lib/gdb/__init__.py: Import * from _gdb.
854         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
855         prompt_hook, sys.argv): Moved from finish_python_initialization.
856         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
857         (packages, auto_load_packages): New list and function replacing
858         module_dict and auto-loading code, using __file__ instead of
859         gdb.PYTHONDIR and reload/__import__ instead of exec.
860         (GdbSetPythonDirectory): Replacing function of the same name
861         from finish_python_initialization, using reload/__import__ instead
862         of exec, as well as call auto_load_packages.
863         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
864         gdb_python_module and not gdb_module.
865         * python/python-internal.h (gdb_python_module): Declare.
866         * python/python.c (gdb_python_module): New global.
867         (before_prompt_hook): Check gdb_python_module and not gdb_module.
868         (_initialize_python): Rename gdb module to _gdb.
869         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
870         (finish_python_initialization): Move Python code to
871         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
872         __main__.
873
874 2012-09-13  Pedro Alves  <palves@redhat.com>
875
876         * Makefile.in (COMMON_OBS): Add registry.o.
877         * registry.c: New file.
878         * registry.h (struct registry_container): Declare.
879         (registry_data_callback): New typedef.
880         (struct registry_data, struct registry_data_registration, struct
881         registry_data_registry): New type.
882         (register_data_with_cleanup, registry_alloc_data)
883         (registry_callback_adaptor, registry_clear_data)
884         (registry_container_free_data, registry_set_data, registry_data):
885         Declare.
886         (DEFINE_REGISTRY): Refactor structures and functions as shims over
887         the new common structures and functions.
888         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
889         callback typedefs.
890
891 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
892
893         * remote.c (remote_insert_hw_breakpoint): Throw exception if
894         there is an error inserting hardware breakpoints and use the
895         error message from the target.
896
897         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
898         Catch this exception and print the error message contained within. Do not
899         print the default hardware error breakpoint message in this case.
900
901 2012-09-12  Doug Evans  <dje@google.com>
902
903         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
904         cu == NULL.
905
906 2012-09-11  Doug Evans  <dje@google.com>
907
908         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
909         .gdb_index symbol attributes if there are none.
910
911 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
912
913         * symtab.h (struct minimal_symbol) [has_size]: New field.
914         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
915         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
916         * printcmd.c (build_address_symbolic): Only filter out zero-sized
917         minimal symbols if the symbol's size is actually known.
918         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
919         of msymbol's size field.  Add comment.
920         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
921         SET_MSYMBOL_SIZE to set the minimal symbol size.
922
923 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
924
925         * minsyms.c (install_minimal_symbols): Use memset to fill entire
926         minimal_symbol struct object, rather than setting some of its
927         fields one by one.
928
929 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
930
931         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
932         passed_a_ptr flag when displaying typedef types.
933
934 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
935
936         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
937         the optimized_out flag is preserved.
938
939 2012-09-10  Anthony Green  <green@moxielogic.com>
940
941         * moxie-tdep.c (moxie_analyze_prologue): Update for function
942         prologue changes in GCC.
943
944 2012-09-10  Keith Seitz  <keiths@redhat.com>
945
946         PR gdb/13483
947         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
948         (BOOL_CONVERSION_BADNESS): ... this.
949         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
950         (rank_one_type): Allow all boolean conversions
951         permitted by the standard.
952
953 2012-09-06  Tom Tromey  <tromey@redhat.com>
954
955         * python/py-newobjfileevent.c (create_new_objfile_event_object):
956         Don't decref py_objfile.
957
958 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
959
960         Do not enable -lmcheck by default when Python is enabled with
961         threading support.
962         * configure.ac: (python_has_threads) New variable, by testing
963         if WITH_THREAD is defined in Python.h.
964         Move --enable-lmcheck after --with-python.
965         Do not enable -lmcheck by default if python_has_threads=yes.
966         Warn if --enable-lmcheck and python_has_threads=yes.
967         * configure: Regenerate.
968
969 2012-08-31  Yao Qi  <yao@codesourcery.com>
970
971         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
972         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
973         Update some commands.
974         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
975         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
976         to 1.
977
978 2012-08-31  Yao Qi  <yao@codesourcery.com>
979
980         * mi/mi-cmds.c (mi_cmds): Add 'static'.
981
982 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
983
984         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
985
986 2012-08-29  Doug Evans  <dje@google.com>
987
988         * main.c (print_gdb_help): Remove reference to
989         --use-deprecated-index-sections.
990
991 2012-08-28  Yao Qi  <yao@codesourcery.com>
992
993         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
994         (init_cmds): Call add_setshow_uinteger_cmd for command
995         'max-user-call-depth'.
996         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
997         declaration of 'max_user_call_depth'.
998         * frame.c (backtrace_limit): Add 'unsigned'.
999         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1000         'limit'.
1001         * remote.c (remoteaddresssize): Add 'unsigned'.
1002         (remote_address_masked): Change local var 'address_size' to
1003         'unsigned'.
1004         (_initialize_remote): Call add_setshow_uinteger_cmd for
1005         'remoteaddresssize'.
1006         * top.c (history_size): Add 'unsigned'.
1007         (show_commands): Change local variables to 'unsigned'.
1008         (set_history_size_command): Don't check history_size is negative.
1009         Adjust the condition to call unstifle_history and set history_size
1010         to UNIT_MAX.
1011
1012 2012-08-28  Pedro Alves  <palves@redhat.com>
1013
1014         PR gdb/14428
1015
1016         * infcmd.c (default_print_one_register_info): New, factored out
1017         from default_print_registers_info.
1018         (default_print_registers_info): Use it.  Mark value unavailable if
1019         necessary.
1020         (registers_info): Print user registers with
1021         default_print_one_register_info.
1022
1023 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1024
1025         PR tui/14486
1026         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1027         is not NULL before referencing it.
1028
1029 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1030
1031         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1032         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1033         original PC for it.
1034
1035 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1036             Jan Kratochvil  <jan.kratochvil@redhat.com>
1037
1038         * auto-load.c (auto_load_objfile_script): Rename to ...
1039         (auto_load_objfile_script_1): ... here, change variable realname to
1040         parameter realname, document it, add return value, add variable retval.
1041         (auto_load_objfile_script): New function.
1042
1043 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1044
1045         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1046         followed by a whitespace.
1047
1048 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1049
1050         PR gdb/14494.
1051         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1052         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1053         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1054         here.
1055
1056 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1057
1058         * memattr.c (create_mem_region): Fix memory region overlapping
1059         checking.
1060
1061 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1062
1063         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1064         with xmalloc/cleanup.
1065         * mt-tdep.c (mt_push_dummy_call): Likewise.
1066         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1067         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1068
1069 2012-08-24  Yao Qi  <yao@codesourcery.com>
1070
1071         * jv-exp.y (push_expression_name): Add "." at the end of error
1072         message.
1073
1074 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1075
1076         Document how to return from "python-interactive" to GDB.
1077         * python/python.c (_initialize_python): Update documentation.
1078
1079 2012-08-23  Pedro Alves  <palves@redhat.com>
1080
1081         * infrun.c (_initialize_infrun) <handle command help text>:
1082         Mention that multiple signals are supported.
1083
1084 2012-08-23  Pedro Alves  <palves@redhat.com>
1085
1086         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1087         string.
1088
1089 2012-08-23  Yao Qi  <yao@codesourcery.com>
1090
1091         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1092         (tfind_1): Don't call registers_changed, set_traceframe_num,
1093         and clear_traceframe_info.
1094         Call set_current_traceframe.
1095         (set_current_traceframe): call set_traceframe_num.
1096
1097 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1098
1099         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1100         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1101
1102 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1103
1104         Enable readline in Python in a GDB-specific way and block the
1105         standard Python readline module to prevent conflicts with GDB.
1106         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1107         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1108         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1109         * python/py-gdb-readline.c: New file.
1110         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1111         prototype.
1112         * python/python.c (_initialize_python): Call
1113         gdbpy_initialize_gdb_readline.
1114
1115 2012-08-22  Keith Seitz  <keiths@redhat.com>
1116
1117         * defs.h: Include build-gnulib/config.h
1118
1119 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1120
1121         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1122         and blx pc.
1123
1124 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1125
1126         Add a new "python-interactive" command that starts a standard
1127         Python interactive prompt with "pi" as alias, and add "py" as
1128         an alias to "python".
1129         * NEWS: Mention the new commands.
1130         * python/python.c (eval_python_command): New function.
1131         (python_interactive_command): For "python-interactive" with
1132         arguments, call eval_python_command.  For "python-interactive"
1133         without arguments, call PyRun_InteractiveLoop.
1134         (_initialize_python): Add "python-interactive" command with
1135         "pi" as alias, and add "py" as an alias to "python".
1136
1137 2012-08-22  Tom Tromey  <tromey@redhat.com>
1138
1139         * defs.h (quit_flag): Don't declare.
1140         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1141         (QUIT): Use new functions.
1142         * event-top.c (command_handler): Use clear_quit_flag.
1143         (handle_sigint): Use set_quit_flag.
1144         (async_request_quit): Use check_quit_flag.  Don't check
1145         immediate_quit.
1146         * exceptions.c (throw_exception): Use clear_quit_flag.
1147         * main.c (captured_main): Use clear_quit_flag.
1148         * python/python.c (clear_quit_flag, set_quit_flag)
1149         (check_quit_flag): New functions.
1150         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1151         clear_quit_flag.
1152         * remote.c (remote_wait_as): Use check_quit_flag,
1153         clear_quit_flag.
1154         (remote_start_remote): Call QUIT.
1155         * symfile.c (load_progress): Use check_quit_flag.
1156         * top.c (command_loop): Use clear_quit_flag.
1157         (command_line_input): Call QUIT.
1158         * utils.c (quit_flag): Conditionally define.
1159         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1160         functions.
1161         (prompt_for_continue): Call QUIT.  Use quit, not
1162         async_request_quit.
1163         * remote-mips.c (mips_expect_timeout): Call QUIT.
1164         * monitor.c (monitor_expect): Call QUIT.
1165
1166 2012-08-22  Tom Tromey  <tromey@redhat.com>
1167
1168         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1169         (async_init_signals): Update.
1170         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1171         (SIGWINCH_HANDLER_BODY): Remove.
1172
1173 2012-08-22  Tom Tromey  <tromey@redhat.com>
1174
1175         * jit.c (jit_object_close_impl): Don't malloc the objfile
1176         name.
1177         * objfiles.c (allocate_objfile): Don't malloc the objfile
1178         name.
1179         (free_objfile): Don't free the objfile name.
1180         * objfiles.h (struct objfile) <name>: Update comment.
1181         * symfile.c (reread_symbols): Fix reference counting.  Don't
1182         malloc objfile name.
1183
1184 2012-08-22  Tom Tromey  <tromey@redhat.com>
1185
1186         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1187         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1188         (symfile_bfd_open): Likewise.
1189         (generic_load): Likewise.
1190         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1191         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1192         gdb_bfd_open.
1193         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1194         Use gdb_bfd_open.
1195         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1196         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1197         (pmon_load_fast): Likewise.
1198         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1199         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1200         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1201         (macho_check_dsym): Likewise.
1202         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1203         (m32r_upload_command): Likewise.
1204         * gdb_bfd.h (gdb_bfd_cache): Declare.
1205         * gdb_bfd.c (struct gdb_bfd_data): New.
1206         (gdb_bfd_cache): New global.
1207         (struct gdb_bfd_cache_search): New.
1208         (hash_bfd): New function.
1209         (eq_bfd): Likewise.
1210         (gdb_bfd_open): Likewise.
1211         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1212         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1213         gdb_bfd_data.
1214         * exec.c (exec_file_attach): Use gdb_bfd_open.
1215         * dsrec.c (load_srec): Use gdb_bfd_open.
1216
1217 2012-08-22  Tom Tromey  <tromey@redhat.com>
1218
1219         * dwarf2read.c (macro_start_file): Update.
1220         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1221         (free_objfile_per_bfd_storage): Destroy macro_cache.
1222         (allocate_objfile, free_objfile): Update.
1223         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1224         New field.
1225         (struct objfile) <macro_cache>: Remove.
1226         * symfile.c (reread_symbols): Update.
1227         * symmisc.c (print_symbol_bcache_statistics): Update.
1228         (print_objfile_statistics): Update.
1229
1230 2012-08-22  Tom Tromey  <tromey@redhat.com>
1231
1232         * elfread.c (elf_symtab_read): Update.
1233         * objfiles.c (objfiles_bfd_data): New global.
1234         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1235         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1236         (allocate_objfile, free_objfile): Update.
1237         (_initialize_objfiles): Initialize objfiles_bfd_data.
1238         * objfiles.h (struct objfile_per_bfd_storage): New.
1239         (struct objfile) <per_bfd>: New field.
1240         <filename_cache>: Remove.
1241         (set_objfile_per_bfd): Declare.
1242         * symfile.c (reread_symbols): Update.  Call
1243         set_objfile_per_bfd.
1244         (allocate_symtab): Update.
1245         * symmisc.c (print_symbol_bcache_statistics): Update.
1246         (print_objfile_statistics): Print the size of the BFD obstack.
1247
1248 2012-08-22  Tom Tromey  <tromey@redhat.com>
1249
1250         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1251         * gdb_bfd.c: Use DEFINE_REGISTRY.
1252         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1253         (gdb_bfd_ref): Call bfd_alloc_data.
1254         (gdb_bfd_unref): Call bfd_free_data.
1255
1256 2012-08-22  Tom Tromey  <tromey@redhat.com>
1257
1258         * registry.h (struct registry_fields): New.
1259         (REGISTRY_FIELDS): Redefine.
1260         (REGISTRY_ACCESS_FIELD): New macro.
1261         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1262         functions.
1263
1264 2012-08-22  Tom Tromey  <tromey@redhat.com>
1265
1266         * auto-load.c (_initialize_auto_load): Update.
1267         * solib-svr4.c (_initialize_svr4_solib): Update
1268         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1269         * solib-darwin.c (_initialize_darwin_solib): Update.
1270         * registry.h: New file.
1271         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1272         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1273         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1274         (register_program_space_data_with_cleanup)
1275         (register_program_space_data, program_space_alloc_data)
1276         (clear_program_space_data, set_program_space_data)
1277         (program_space_data): Don't declare.
1278         * progspace.c: Use DEFINE_REGISTRY.
1279         (struct program_space_data, struct
1280         program_space_data_registration, struct
1281         program_space_data_registry, program_space_data_registry)
1282         (register_program_space_data_with_cleanup)
1283         (register_program_space_data, program_space_alloc_data)
1284         (program_space_free_data, clear_program_space_data)
1285         (set_program_space_data, program_space_data): Remove.
1286         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1287         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1288         (register_objfile_data_with_cleanup, register_objfile_data)
1289         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1290         declare.
1291         * objfiles.c: Use DEFINE_REGISTRY.
1292         (struct objfile_data, struct objfile_data_registration, struct
1293         objfile_data_registry, objfile_data_registry)
1294         (register_objfile_data_with_cleanup, register_objfile_data)
1295         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1296         (set_objfile_data, objfile_data): Remove.
1297         (_initialize_objfiles): Update.
1298         * jit.c (_initialize_jit): Update.
1299         * inflow.c (_initialize_inflow): Update.
1300         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1301         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1302         (register_inferior_data_with_cleanup, register_inferior_data)
1303         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1304         declare.
1305         * inferior.c: Use DEFINE_REGISTRY.
1306         (struct inferior_data, struct inferior_data_registration, struct
1307         inferior_data_registry, inferior_data_registry)
1308         (register_inferior_data_with_cleanup, register_inferior_data)
1309         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1310         (set_inferior_data, inferior_data): Remove.
1311         * auxv.c (_initialize_auxv): Update.
1312         * ada-lang.c (_initialize_ada_language): Update.
1313         * breakpoint.c (_initialize_breakpoint): Update.
1314         * i386-nat.c (i386_use_watchpoints): Update.
1315
1316 2012-08-22  Tom Tromey  <tromey@redhat.com>
1317
1318         * exec.c (exec_close, exec_file_attach): Update.
1319         (add_to_section_table): Initialize 'key' field.
1320         (add_target_sections, remove_target_sections): Add 'key' argument.
1321         * exec.h (add_target_sections, remove_target_sections): Add
1322         'key' argument.
1323         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1324         (reload_shared_libraries_1): Update.
1325         * target.h (struct target_section) <key>: New field.
1326
1327 2012-08-22  Tom Tromey  <tromey@redhat.com>
1328
1329         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1330
1331 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1332
1333         * symfile.c (allocate_symtab): Use host_address_to_string
1334         function instead of cast of pointer to long which is not
1335         compatible with x86_64-w64-mingw32 build.
1336
1337 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1338
1339         * mips-tdep.c (is_octeon): New function.
1340         (is_octeon_bbit_op): New function.
1341         (mips32_next_pc): Handle Octeon's bbit instructions.
1342         (mips32_instruction_has_delay_slot): Likewise.
1343
1344 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1345
1346         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1347         before the function.
1348
1349 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1350
1351         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1352
1353 2012-08-19  Keith Seitz  <keiths@redhat.com>
1354
1355         PR c++/14365
1356         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1357         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1358
1359 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1360
1361         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1362         The typo broke "make TAGS".
1363
1364 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1365
1366         GDB 7.5 released.
1367
1368 2012-08-17  Keith Seitz  <keiths@redhat.com>
1369
1370         PR c++/13356
1371         * gdbtypes.c (strict_type_checking): New variable.
1372         (show_strict_type_checking): New function.
1373         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1374         if strict type checking is disabled.
1375         (_initialize_gdbtypes): Add "check type" subcommand.
1376         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1377
1378 2012-08-17  Keith Seitz  <keiths@redhat.com>
1379
1380         * language.h (type_mode): Remove.
1381         (type_check): Remove.
1382         (struct language_defn): Remove la_type_check.
1383         (STRICT_TYPE): Remove unused macro.
1384         (type_error): Remove.
1385         * language.c (set_type_range_case): Renamed to ...
1386         (set_range_case): ... this.  Update all callers.
1387         Remove type_mode/type_check.
1388         (type_mode): Remove.
1389         (type_check): Remove.
1390         (show_type_command): Remove.
1391         (set_type_command): Remove.
1392         (language_info): Remove type checking output.
1393         (type_error): Remove unused function.
1394         (range_error): Update comment.
1395         (unknown_language_defn): Remove la_type_check.
1396         (auto_language_defn): Likewise.
1397         (local_language_defn): Likewise.
1398         (_initialize_language): Remove "check type" subcommand.
1399         * ada-lang.c (ada_language_defn): Remove la_type_check.
1400         * c-lang.c (c_language_defn): Likewise.
1401         (cplus_language_defn): Likewise.
1402         (asm_language_defn): Likewise.
1403         (minimal_language_defn): Likewise.
1404         * d-lang.c (d_language_defn): Likewise.
1405         * f-lang.c (f_language_defn): Likewise.
1406         * go-lang.c (go_language_defn): Likewise.
1407         * jv-lang.c (java_language_defn): Likewise.
1408         * m2-lang.c (m2_language_defn): Likewise.
1409         * objc-lang.c (objc_language_defn): Likewise.
1410         * opencl-lang.c (opencl_language_defn): Likewise.
1411         * p-lang.c (pascal_language_defn): Likewise.
1412
1413 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1414
1415         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1416
1417 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1418
1419         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1420         New function.
1421         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1422         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1423         to access the bsp and bspstore registers if not.
1424
1425 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1426
1427         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1428         * breakpoint.c (detach_breakpoints): Change pid parameter into
1429         a ptid.  Adjust code accordingly.
1430         * infrun.c (handle_inferior_event): Delete variable child_pid.
1431         Update call to detach_breakpoints to pass the child ptid for
1432         fork events.
1433         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1434         assert that inferior_ptid's lwp is zero.
1435         (linux_handle_extended_wait): Update call to detach_breakpoints.
1436         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1437         detach_breakpoints.
1438
1439 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1440
1441         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1442         parent, only call detach_breakpoints if tts.tts_event ==
1443         TTEVT_VFORK.
1444
1445 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1446
1447         * dwarf2-frame.c (dwarf2_frame_cache): Use
1448         get_frame_address_in_block instead of get_frame_pc as
1449         the bound for executing the frame's FDE.
1450
1451 2012-08-16  Yao Qi  <yao@codesourcery.com>
1452
1453         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1454         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1455         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1456         (c_type_print_varspec_suffix): Likewise.
1457         * eval.c (evaluate_subexp_standard): Likewise.
1458         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1459         (f_type_print_varspec_suffix): Likewise.
1460         * gdbtypes.c (is_scalar_type): Likewise.
1461         (recursive_dump_type): Likewise.
1462         * infcall.c (value_arg_coerce): Likewise.
1463         * m2-valprint.c (m2_val_print): Likewise.
1464         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1465         (pascal_type_print_varspec_suffix): Likewise.
1466         (pascal_type_print_base): Likewise.
1467         * p-valprint.c (pascal_val_print): Likewise.
1468         (pascal_val_print): Likewise.
1469         * valops.c (value_slice): Likewise.
1470         * valprint.c (scalar_type_p): Likewise.
1471         * valarith.c (value_bitstring_subscript): Remove.
1472         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1473         Remove comment on TYPE_CODE_BITSTRING.
1474
1475         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1476         TYPE_CODE_BITSTRING.
1477
1478         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1479         slot 0.
1480
1481 2012-08-16  Yao Qi  <yao@codesourcery.com>
1482
1483         * tracepoint.c (trace_find_none_command): Remove.
1484         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1485
1486 2012-08-16  Yao Qi  <yao@codesourcery.com>
1487
1488         * remote.c (handle_notification): Remove parameter 'length'.
1489         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1490
1491 2012-08-15  Keith Seitz  <keiths@redhat.com>
1492
1493         * gdbtypes.c (opaque_type_resolution): Make static.
1494         Add missing comment.
1495         (overload_debug): Add missing comment.
1496         (show_opaque_type_resolution): Likewise.
1497         (show_overload_debug): Likewise.
1498         (print_bit_vector): Remove unnecessary forward declaration.
1499         (print_arg_types): Likewise.
1500         (dump_fn_fieldlists): Likewise.
1501         (print_cplus_stuff): Likewise.
1502
1503 2012-08-15  Tom Tromey  <tromey@redhat.com>
1504
1505         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1506         (gdb_bfd_ref): Initialize new field.
1507         (gdb_bfd_unref): Unref the archive BFD.
1508         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1509         parent archive.
1510
1511 2012-08-15  Tom Tromey  <tromey@redhat.com>
1512
1513         PR python/14387:
1514         * python/py-bpevent.c (create_breakpoint_event_object): Update
1515         comment.
1516         * python/py-event.c (evpy_add_attribute): Update comment.
1517         * python/py-exitedevent.c (create_exited_event_object): Fix
1518         reference counting and error handling.
1519         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1520         Fix reference counting.
1521         * python/py-signalevent.c (create_signal_event_object): Fix
1522         reference counting and error handling.
1523         * python/py-stopevent.c (emit_stop_event): Fix reference
1524         counting.
1525         * python/py-threadevent.c (get_event_thread): Return a
1526         borrowed reference.
1527         * python/py-type.c (convert_field): Fix reference counting.
1528
1529 2012-08-15  Tom Tromey  <tromey@redhat.com>
1530
1531         * dwarf2read.c (dwarf_decode_macro_bytes)
1532         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1533         as hash key.
1534
1535 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1536
1537         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1538         stepi, nexti, finish, next, step, jump, and continue commands.
1539         * infrun.c (_initialize_infrun): Update help text for the handle
1540         command.
1541
1542 2012-08-14  Doug Evans  <dje@google.com>
1543
1544         * gdbtypes.c (struct extra): Delete, unused.
1545
1546         * gdbtypes.c: Whitespace cleanup.
1547         (address_space_name_to_int): Remove "extern" from definition.
1548         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1549
1550         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1551         TYPE_POINTER_TYPE (type).
1552
1553 2012-08-14  Gary Benson  <gbenson@redhat.com>
1554
1555         * solib-svr4.c (svr4_free_library_list): Use free_so.
1556
1557 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1558
1559         * .gitignore: Add go-exp.c.
1560
1561 2012-08-13  Doug Evans  <dje@google.com>
1562
1563         * value.c (show_convenience): Tweak comment.
1564         (_initialize_values): Mention convenience functions in the help text
1565         for "show convenience".
1566
1567 2012-08-13  Yao Qi  <yao@codesourcery.com>
1568
1569         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1570         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1571         TERNOP_SLICE_COUNT.
1572         * eval.c (evaluate_subexp_standard): Likewise.
1573         * expprint.c (print_subexp_standard): Likewise.
1574         (dump_subexp_body_standard): Likewise.
1575         * parse.c (operator_length_standard): Likewise.
1576
1577 2012-08-13  Yao Qi  <yao@codesourcery.com>
1578
1579         * std-operator.def: Remove OP_BITSTRING.
1580         * breakpoint.c (watchpoint_exp_is_const): Update.
1581         * eval.c (evaluate_subexp_standard): Remove handling to
1582         OP_BITSTRING.
1583         * expprint.c (print_subexp_standard): Likewise.
1584         (dump_subexp_body_standard): Likewise.
1585         * parse.c (operator_length_standard): Likewise.
1586         * valops.c (value_bitstring): Remove.
1587         * value.h: Remove the declaration of 'value_bitstring'.
1588
1589 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1590
1591         * linespec.c (find_methods): Remove unused variables `i1' and
1592         `name_len'.
1593         (decode_line_full): Likewise for `arg_start'.
1594
1595 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1596
1597         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1598         (zlib_decompress_section): Likewise for `section_data'.
1599         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1600
1601 2012-08-10  Doug Evans  <dje@google.com>
1602
1603         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1604         * NEWS: Document them.
1605         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1606         function/strfns.py.
1607         * python/py-type.c (typy_array_1): New function.
1608         (typy_array): Call it.
1609         (typy_vector): New function.
1610         (type_object_methods): Add "vector".
1611         * python/lib/gdb/function/__init__.py: New file.
1612         * python/lib/gdb/function/strfns.py: New file.
1613
1614 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1615
1616         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1617         for TYPE_FIELD_BITPOS.
1618         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1619
1620 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1621
1622         PR cli/10436:
1623         * common/vec.h (VEC_merge): Define.
1624         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1625         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1626         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1627         * completer.c: Include gdb_signals.h.
1628         (signal_completer): Define.
1629         * completer.h (signal_completer): Add prototype.
1630         * infcmd.c (_initialize_infcmd): Assign the command
1631         completer for "signal" to handle_completer.
1632         * infrun.c: Include completer.h.
1633         (handle_completer): Define.
1634         (_initialize_infrun): Declare a new local variable c.  Store the
1635         result of add_com("handle") to it.  Assign the command
1636         completer for "handle" to handle_completer.
1637
1638 2012-08-09  Yao Qi  <yao@codesourcery.com>
1639
1640         * cli/cli-decode.c (set_cmd_prefix): New.
1641         (lookup_cmd_for_prefixlist): New.
1642         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1643         of each cmd_list_element in *prefixlist.
1644         (add_setshow_cmd_full): set_cmd_prefix.
1645         (add_alias_cmd): Likewise.
1646         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1647         Declare 'auto_boolean_enums'.
1648         * cli/cli-setshow.c: Include "observer.h".
1649         (notify_command_param_changed_p): New.
1650         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1651         Remove 'static'.
1652         (do_setshow_command): Split it to ...
1653         (do_set_command, do_show_command): ... them.  New.
1654         (do_set_command): Call observer_notify_command_param_changed if
1655         notify_command_param_changed_p returns true.
1656         (cmd_show_list): Caller update.
1657         * auto-load.c (set_auto_load_cmd): Likewise.
1658         * remote.c (show_remote_cmd): Likewise.
1659         * cli/cli-setshow.h: Update declarations.
1660         * top.c (execute_command): Call do_set_command and do_show_command.
1661
1662         * NEWS: Mention new MI notification.
1663         * mi/mi-interp.c: Declare mi_command_param_changed.
1664         (mi_interpreter_init): Attach mi_command_param_changed to
1665         observer command_param_changed.
1666         (mi_command_param_changed): New.
1667         Remove mi_suppress_breakpoint_notifications.
1668         Define global variable mi_suppress_notification.
1669         (mi_breakpoint_created): Update.
1670         (mi_breakpoint_deleted): Likewise.
1671         (mi_breakpoint_modified): Likewise.
1672         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1673         'gdb-set' and set mi_suppress_notification.
1674         * mi/mi-main.h: (mi_suppress_notification): New struct.
1675
1676 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1677             Jan Kratochvil  <jan.kratochvil@redhat.com>
1678
1679         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1680
1681 2012-08-09  Yao Qi  <yao@codesourcery.com>
1682
1683         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1684         (skiplist): Move it to skip.c.
1685         (init_cmd_lists): Remove code setting enablebreaklist and
1686         skiplist to NULL.
1687         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1688         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1689         skiplist.
1690         * gdbcmd.h: Likewise.
1691         * skip.c (_initialize_step_skip): Move 'skiplist' from
1692         cli/cli-cmds.c.
1693
1694 2012-08-09  Yao Qi  <yao@codesourcery.com>
1695
1696         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1697         * gnu-nat.c, symfile.c: Likewise.
1698
1699 2012-08-08  Aaron Gamble  <agamble@google.com>
1700
1701         * utils.c (prompt_for_continue_wait_time): New static global.
1702         (make_command_stats_cleanup): Initialize it.
1703         (report_command_stats): Subtract time waiting for user.
1704         (prompt_for_continue): Track time waiting for user.
1705         (defaulted_query): Track time waiting for user.
1706
1707 2012-08-08  Doug Evans  <dje@google.com>
1708
1709         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1710         UNOP_MEMVAL_TYPE.
1711         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1712         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1713         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1714         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1715         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1716         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1717         elt.
1718         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1719         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1720         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1721         (dump_prefix_expression): Handle OP_TYPE.
1722
1723 2012-08-08  Keith Seitz  <keiths@redhat.com>
1724
1725         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1726         addr_start.
1727
1728 2012-08-08  Doug Evans  <dje@google.com>
1729
1730         * linux-thread-db.c: #include "gdb_vecs.h".
1731         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1732         updated.
1733         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1734         (thread_db_load_search): Use a vector to iterate over path elements.
1735         Handle text appearing after "$pdir".
1736
1737         * gdb_string.h: Moved to ...
1738         * common/gdb_string.h: ... here.
1739         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1740         gdb_string.h and gdb_assert.h.
1741
1742 2012-08-08  Yao Qi  <yao@codesourcery.com>
1743
1744         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1745         (tic6x_value_to_register): Likewise.
1746         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1747         and set_gdbarch_value_to_register.
1748
1749 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1750             Jean-Marc Saffroy  <saffroy@gmail.com>
1751
1752         PR 11804
1753         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1754         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1755         * gcore.c (gcore_create_callback): New function comment.  Add modified
1756         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1757         according to MODIFIED.
1758         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1759         the passed modified value to FUNC.
1760         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1761         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1762         first.  New variables modified and has_anonymous.  Parse the lines of
1763         smaps file.  Add the passed MODIFIED value to FUNC.
1764         * procfs.c (find_memory_regions_callback): Add the passed modified
1765         value.
1766
1767 2012-08-06  Tom Tromey  <tromey@redhat.com>
1768
1769         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1770         (dwarf2_frame_cache): Use it.
1771         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1772         cache initialization constraint.
1773
1774 2012-08-06  Tom Tromey  <tromey@redhat.com>
1775
1776         PR python/14386:
1777         * varobj.c (update_dynamic_varobj_children): Don't call
1778         PyIter_Check.
1779
1780 2012-08-06  Tom Tromey  <tromey@redhat.com>
1781
1782         PR cli/14392:
1783         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1784
1785 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1786
1787         * NEWS: New entry for 'cd' default parameters.
1788         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1789
1790 2012-08-03  Tom Tromey  <tromey@redhat.com>
1791
1792         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1793         return.
1794
1795 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1796
1797         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1798         to attempting lseek/write.
1799         (inf_child_fileio_pread): Likewise for pread.
1800
1801 2012-08-02  Yao Qi  <yao@codesourcery.com>
1802
1803         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1804         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1805         add_setshow_zinteger_cmd.
1806         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1807         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1808         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1809         instead of add_setshow_zinteger_cmd.
1810         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1811         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1812         instead of add_setshow_zinteger_cmd.
1813         * frame.c (frame_debug): Add 'unsigned'.
1814         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1815         add_setshow_zinteger_cmd.
1816         * frame.h: Update the declaration of 'frame_debug'.
1817         * gdbtypes.c (overload_debug): Add 'unsigned'.
1818         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1819         add_setshow_zinteger_cmd.
1820         * inferior.h: Update declaration of 'debug_infrun'.
1821         * infrun.c (debug_infrun): Add 'unsigned'.
1822         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1823         add_setshow_zinteger_cmd.
1824         * jit.c (jit_debug): Add 'unsigned'.
1825         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1826         add_setshow_zinteger_cmd.
1827         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1828         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1829         instead of add_setshow_zinteger_cmd.
1830         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1831         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1832         add_setshow_zinteger_cmd.
1833         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1834         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1835         instead of add_setshow_zinteger_cmd.
1836         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1837         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1838         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1839         intead of add_setshow_zinteger_cmd.
1840         * mips-tdep.c (mips_debug): Add 'unsigned'.
1841         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1842         instead of add_setshow_zinteger_cmd.
1843         * monitor.c (monitor_debug): Add 'unsigned'.
1844         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1845         add_setshow_zinteger_cmd.
1846         * observer.c (observer_debug): Add 'unsigned'.
1847         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1848         add_setshow_zinteger_cmd.
1849         * parse.c (expressiondebug): Add 'unsigned'.
1850         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1851         add_setshow_zinteger_cmd.
1852         * record.c (record_debug): Add 'unsigned'.
1853         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1854         add_setshow_zinteger_cmd.
1855         * record.h: Update the declaration of 'record_debug'.
1856         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1857         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1858         add_setshow_zinteger_cmd.
1859         * serial.c (global_serial_debug_p): Add 'unsigned'.
1860         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1861         add_setshow_zinteger_cmd.
1862         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1863         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1864         add_setshow_zinteger_cmd.
1865         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1866         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1867         add_setshow_zinteger_cmd.
1868         * target.c (targetdebug): Add 'unsigned'.
1869         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1870         add_setshow_zinteger_cmd.
1871         * valops.c (overload_debug): Add 'unsigned'.
1872         * varobj.c (varobjdebug): Add 'unsigned'.
1873         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1874         add_setshow_zinteger_cmd.
1875         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1876         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1877         instead of add_setshow_zinteger_cmd.
1878
1879         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1880         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1881         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1882         instead of add_setshow_zinteger_cmd.
1883         * gdbarch.c, gdbarch.h: Re-generated.
1884
1885 2012-08-02  Yao Qi  <yao@codesourcery.com>
1886
1887         * nto-tdep.c: Don't include cli/cli-decode.h and
1888         cli/cli-cmds.h.
1889         (_initialize_nto_tdep): Remove.
1890         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1891         Remove field.
1892         Remove macro nto_internal_debugging.
1893
1894 2012-08-01  Richard Henderson  <rth@redhat.com>
1895
1896         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1897         (mep-*-*) [gdb_target_obs]: Likewise.
1898
1899 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1900
1901         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1902         linux_get_siginfo_type.
1903
1904 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1905
1906         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1907         AT_ENTRY_POINT.
1908         (call_function_by_hand) <ON_STACK>: Call write_memory with
1909         gdbarch_breakpoint_from_pc, if possible.
1910         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1911         here.
1912
1913 2012-07-31  Yao Qi  <yao@codesourcery.com>
1914
1915         * tracepoint.c: Add 'static' for some variables.
1916
1917 2012-07-31  Yao Qi  <yao@codesourcery.com>
1918
1919         * go32-nat.c: Declare _initialize_go32_nat.
1920         * ser-go32.c: Declare _initialize_ser_dos.
1921         * top.c (do_chdir_cleanup): Add 'static'.
1922
1923 2012-07-30  Keith Seitz  <keiths@redhat.com>
1924
1925         * linespec.c (linespec_lex_number): A number followed
1926         by quotes is a valid number, too.
1927
1928 2012-07-30  Tom Tromey  <tromey@redhat.com>
1929
1930         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1931
1932 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1933
1934         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1935         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1936
1937 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1938
1939         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1940         invalid or reevaluated to prevent prevent references to possibly
1941         delete'd type objects being left in the varobj.
1942
1943 2012-07-27  Tom Tromey  <tromey@redhat.com>
1944             Jan Kratochvil  <jan.kratochvil@redhat.com>
1945
1946         * copying.awk: Print buffer-read-only and vi ro markers.
1947         * copying.c: Rebuild.
1948         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1949         * gdbarch.c, gdbarch.h: Rebuild.
1950         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1951         buffer-read-only and vi ro markers.
1952         * features/arm-with-iwmmxt.c: Rebuild.
1953         * features/arm-with-m-fpa-layout.c: Rebuild.
1954         * features/arm-with-m-vfp-d16.c: Rebuild.
1955         * features/arm-with-m.c: Rebuild.
1956         * features/arm-with-neon.c: Rebuild.
1957         * features/arm-with-vfpv2.c: Rebuild.
1958         * features/arm-with-vfpv3.c: Rebuild.
1959         * features/i386/amd64-avx-linux.c: Rebuild.
1960         * features/i386/amd64-avx.c: Rebuild.
1961         * features/i386/amd64-linux.c: Rebuild.
1962         * features/i386/amd64.c: Rebuild.
1963         * features/i386/i386-avx-linux.c: Rebuild.
1964         * features/i386/i386-avx.c: Rebuild.
1965         * features/i386/i386-linux.c: Rebuild.
1966         * features/i386/i386-mmx-linux.c: Rebuild.
1967         * features/i386/i386-mmx.c: Rebuild.
1968         * features/i386/i386.c: Rebuild.
1969         * features/i386/x32-avx-linux.c: Rebuild.
1970         * features/i386/x32-avx.c: Rebuild.
1971         * features/i386/x32-linux.c: Rebuild.
1972         * features/i386/x32.c: Rebuild.
1973         * features/mips-dsp-linux.c: Rebuild.
1974         * features/mips-linux.c: Rebuild.
1975         * features/mips64-dsp-linux.c: Rebuild.
1976         * features/mips64-linux.c: Rebuild.
1977         * features/rs6000/powerpc-32.c: Rebuild.
1978         * features/rs6000/powerpc-32l.c: Rebuild.
1979         * features/rs6000/powerpc-403.c: Rebuild.
1980         * features/rs6000/powerpc-403gc.c: Rebuild.
1981         * features/rs6000/powerpc-405.c: Rebuild.
1982         * features/rs6000/powerpc-505.c: Rebuild.
1983         * features/rs6000/powerpc-601.c: Rebuild.
1984         * features/rs6000/powerpc-602.c: Rebuild.
1985         * features/rs6000/powerpc-603.c: Rebuild.
1986         * features/rs6000/powerpc-604.c: Rebuild.
1987         * features/rs6000/powerpc-64.c: Rebuild.
1988         * features/rs6000/powerpc-64l.c: Rebuild.
1989         * features/rs6000/powerpc-7400.c: Rebuild.
1990         * features/rs6000/powerpc-750.c: Rebuild.
1991         * features/rs6000/powerpc-860.c: Rebuild.
1992         * features/rs6000/powerpc-altivec32.c: Rebuild.
1993         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1994         * features/rs6000/powerpc-altivec64.c: Rebuild.
1995         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1996         * features/rs6000/powerpc-cell32l.c: Rebuild.
1997         * features/rs6000/powerpc-cell64l.c: Rebuild.
1998         * features/rs6000/powerpc-e500.c: Rebuild.
1999         * features/rs6000/powerpc-e500l.c: Rebuild.
2000         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2001         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2002         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2003         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2004         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2005         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2006         * features/rs6000/powerpc-vsx32.c: Rebuild.
2007         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2008         * features/rs6000/powerpc-vsx64.c: Rebuild.
2009         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2010         * features/rs6000/rs6000.c: Rebuild.
2011         * features/s390-linux32.c: Rebuild.
2012         * features/s390-linux32v1.c: Rebuild.
2013         * features/s390-linux32v2.c: Rebuild.
2014         * features/s390-linux64.c: Rebuild.
2015         * features/s390-linux64v1.c: Rebuild.
2016         * features/s390-linux64v2.c: Rebuild.
2017         * features/s390x-linux64.c: Rebuild.
2018         * features/s390x-linux64v1.c: Rebuild.
2019         * features/s390x-linux64v2.c: Rebuild.
2020         * features/tic6x-c62x-linux.c: Rebuild.
2021         * features/tic6x-c62x.c: Rebuild.
2022         * features/tic6x-c64x-linux.c: Rebuild.
2023         * features/tic6x-c64x.c: Rebuild.
2024         * features/tic6x-c64xp-linux.c: Rebuild.
2025         * features/tic6x-c64xp.c: Rebuild.
2026
2027 2012-07-27  Tom Tromey  <tromey@redhat.com>
2028
2029         * c-exp.y (classify_name): Avoid assignment in condition.
2030
2031 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2032
2033         * amd64-windows-tdep.c: Include "frame.h".
2034         (amd64_windows_skip_trampoline_code): New function.
2035         (amd64_windows_init_abi): Add trampoline registration.
2036
2037 2012-07-27  Yao Qi  <yao@codesourcery.com>
2038
2039         * tracepoint.c (cur_traceframe_number): Remove.
2040         (set_tfile_traceframe): Remove.
2041         (tfile_trace_find, tfile_fetch_registers): Update callers.
2042         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2043         (tfile_open, tfile_trace_find): Likewise.
2044
2045 2012-07-27  Yao Qi  <yao@codesourcery.com>
2046
2047         * thread.c (switch_to_thread): Don't call registers_changed.
2048
2049 2012-07-26  Tom Tromey  <tromey@redhat.com>
2050
2051         * Makefile.in (SFILES): Remove objc-exp.y.
2052         (YYFILES): Remove objc-exp.c.
2053         (YYOBJ): Remove objc-exp.o.
2054         (local-maintainer-clean): Don't mention objc-exp.c.
2055         * c-exp.y: Include objc-lang.h.
2056         (%union) <class>: New field.
2057         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2058         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2059         Objective C productions.
2060         (msglist, msgarglist, msgarg): New productions.
2061         (array_mod, func_mod, operator): Clone productions for
2062         OBJC_LBRAC.
2063         (parse_string_or_char): Handle '@' strings.
2064         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2065         (classify_name): Check la_name_of_this.  Recognize ObjC class
2066         names.
2067         * objc-exp.y: Remove.
2068         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2069         * objc-lang.h (objc_parse, objc_error): Don't declare.
2070
2071 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2072
2073         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2074
2075 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2076
2077         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2078         and decrement.
2079
2080 2012-07-26  Tom Tromey  <tromey@redhat.com>
2081
2082         * copying.c: Rebuild.
2083         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2084         'no_class'.
2085
2086 2012-07-26  Tom Tromey  <tromey@redhat.com>
2087
2088         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2089         immediate_quit.
2090         (print_objfile_statistics): Likewise.
2091         (maintenance_print_symbols): Likewise.
2092         (maintenance_print_msymbols): Likewise.
2093         (maintenance_print_objfiles): Likewise.
2094         * psymtab.c (print_partial_symbols): Call QUIT.
2095         (maintenance_print_psymbols): Likewise.  Don't modify
2096         immediate_quit.
2097         * copying.c (show_copying_command): Don't modify immediate_quit.
2098         (show_warranty_command): Likewise.
2099         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2100
2101 2012-07-26  Keith Seitz  <keiths@redhat.com>
2102
2103         * linespec.c (linespec_lexer_lex_number): The input
2104         is also a valid number if the next character is a comma
2105         or colon.
2106
2107 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2108
2109         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2110         configure options.
2111
2112 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2113
2114         * machoread.c: Include gdb_bfd.h.
2115
2116 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2117
2118         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2119         offset.
2120
2121 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2122
2123         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2124         SIZE to size_t.
2125         (dwarf2_evaluate_loc_desc): Likewise.
2126         (dwarf2_loc_desc_needs_frame): Likewise.
2127         (locexpr_describe_location_1): Likewise.
2128         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2129         size_t.
2130         (struct dwarf2_loclist_baton): Likewise.
2131         * dwarf2read.c (struct dwarf_block): Likewise.
2132         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2133         (decode_locdesc): Expand SIZE and I to size_t.
2134
2135 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2136
2137         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2138
2139 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2140
2141         * doublest.c (convert_doublest_to_floatformat): If the exponent
2142         is too small, treat the value as zero.  If the exponent is too
2143         large, treat the value as infinity.
2144
2145 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2146
2147         * configure.ac: Add --enable-lmcheck configure option.
2148         * configure: Regenerate.
2149
2150 2012-07-25  Tom Tromey  <tromey@redhat.com>
2151
2152         * NEWS: Mention maint info bfds.
2153         * gdb_bfd.c (all_bfds): New global.
2154         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2155         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2156         New functions.
2157
2158 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2159
2160         * configure.tgt: Add v850*-*-rtems*.
2161
2162 2012-07-25  Tom Tromey  <tromey@redhat.com>
2163
2164         * macrotab.c (macro_bcache_str): Remove cast.
2165
2166 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2167
2168         * linespec.c (linespec_lexer_lex_number): Update comments,
2169         change the return and add check to make sure the input is
2170         the decimal numbers.
2171         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2172         false, call linespec_lexer_lex_string.
2173
2174 2012-07-24  Tom Tromey  <tromey@redhat.com>
2175
2176         * symfile.c (symbol_file_add): Don't open BFD twice.
2177
2178 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2179
2180         * breakpoint.c (create_breakpoint): Store condition for pending
2181         breakpoints.
2182
2183 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2184
2185         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2186         (m68k_return_value): Handle complex types like structures.
2187         (m68k_svr4_return_value): Likewise.
2188
2189 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2190
2191         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2192         parameters to bfd_get_section_name.
2193
2194 2012-07-24  Yao Qi  <yao@codesourcery.com>
2195
2196         * cli/cli-setshow.c: Handle case 'var_uinteger'
2197         and 'var_zuninteger' together.  Handle case 'var_integer' and
2198         'var_zinteger' together.
2199
2200 2012-07-23  Keith Seitz  <keiths@redhat.com>
2201
2202         * linespec.c (convert_linespec_to_sal): Don't add
2203         any symbols to the result vector if symbol_to_sal
2204         returns zero.
2205
2206 2012-07-23  Keith Seitz  <keiths@redhat.com>
2207
2208         * linespec.c (decode_objc): Record the function name
2209         in the linespec.
2210
2211 2012-07-23  Tom Tromey  <tromey@redhat.com>
2212
2213         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2214         counting.
2215         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2216         (map_vmap): Acquire a reference to the BFD.
2217
2218 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2219
2220         * p-valprint.c (pascal_object_print_value): Replace potentially
2221         unsafe alloca with xmalloc/xfree.
2222         * valops.c (search_struct_method): Likewise.
2223
2224 2012-07-23  Tom Tromey  <tromey@redhat.com>
2225
2226         * solib-svr4.c (enable_break): Update.
2227         * bfd-target.h (target_bfd_reopen): Update documentation.
2228
2229 2012-07-23  Tom Tromey  <tromey@redhat.com>
2230
2231         * symfile.c (separate_debug_file_exists): Update.
2232         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2233         (reread_symbols): Update.
2234         * elfread.c (build_id_verify): Update.
2235         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2236         bfd_open_maybe_remote.
2237
2238 2012-07-23  Tom Tromey  <tromey@redhat.com>
2239
2240         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2241
2242 2012-07-23  Tom Tromey  <tromey@redhat.com>
2243
2244         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2245         and 'abfd'.
2246         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2247         and 'abfd'.
2248         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2249         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2250         'abfd'.
2251         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2252         * objfiles.c (allocate_objfile): Acquire a new reference.
2253         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2254         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2255         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2256         a cleanup for 'nbfd'.
2257         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2258         for 'nbfd'.
2259         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2260         make a cleanup for 'abfd'.
2261         (symbol_file_add): Make a BFD cleanup.
2262
2263 2012-07-23  Tom Tromey  <tromey@redhat.com>
2264
2265         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2266         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2267         * corelow.c (core_open): Use gdb_bfd_fopen.
2268         * dsrec.c (load_srec): Use gdb_bfd_openr.
2269         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2270         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2271         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2272         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2273         (gdb_bfd_fdopenr): New functions.
2274         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2275         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2276         (gdb_bfd_fdopenr): Declare.
2277         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2278         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2279         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2280         gdb_bfd_openr_next_archived_file.
2281         (macho_check_dsym): Use gdb_bfd_openr.
2282         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2283         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2284         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2285         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2286         gdb_bfd_openr.
2287         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2288         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2289         gdb_bfd_openr_next_archived_file.
2290         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2291         Use gdb_bfd_openr.
2292         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2293         gdb_bfd_openr.
2294         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2295         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2296         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2297         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2298         (symfile_bfd_open): Use gdb_bfd_fopen.
2299         (generic_load): Use gdb_bfd_openr.
2300         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2301
2302 2012-07-23  Tom Tromey  <tromey@redhat.com>
2303
2304         * bfd-target.c (target_bfd_reopen): Update.
2305         * cli/cli-dump.c (bfd_openr_with_cleanup)
2306         (bfd_openw_with_cleanup): Update.
2307         * corelow.c (core_open): Update.
2308         * dsrec.c (load_srec): Update.
2309         * exec.c (exec_file_attach): Update.
2310         * gcore.c (create_gcore_bfd): Update.
2311         * gdb_bfd.c (gdb_bfd_ref): Return void.
2312         (gdb_bfd_open): Update.
2313         * gdb_bfd.h (gdb_bfd_ref): Return void.
2314         Update comments.
2315         * jit.c (jit_bfd_try_read_symtab): Update.
2316         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2317         * machoread.c (macho_symfile_read_all_oso): Update.
2318         (macho_check_dsym): Update.
2319         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2320         * remote-m32r-sdi.c (m32r_load): Update.
2321         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2322         * rs6000-nat.c (add_vmap): Update.
2323         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2324         Update.
2325         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2326         * solib-spu.c (spu_bfd_open): Update.
2327         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2328         * spu-linux-nat.c (spu_bfd_open): Update.
2329         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2330         (generic_load): Update.
2331         * windows-nat.c (windows_make_so): Update.
2332
2333 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2334
2335         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2336
2337 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2338
2339         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2340         SIGTRAMP_FRAME unwinding.
2341
2342 2012-07-20  Doug Evans  <dje@google.com>
2343
2344         * NEWS: Document new options "set/show use-deprecated-index-sections",
2345         and delete reference to --use-deprecated-index-sections.
2346         * symfile.h (use_deprecated_index_sections): Delete.
2347         * dwarf2read.c (use_deprecated_index_sections): Make static.
2348         (read_index_from_section): Update wording of how to load
2349         deprecated index sections.
2350         (_initialize_dwarf2_read): New options
2351         "set/show use-deprecated-index-sections".
2352         * main.c (captured_main): Delete --use-deprecated-index-sections.
2353
2354 2012-07-20  Pedro Alves  <palves@redhat.com>
2355
2356         PR threads/11692
2357         PR gdb/12203
2358
2359         * infrun.c (handle_inferior_event) <new thread>: Don't special
2360         case minus_one_ptid.
2361         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2362         * linux-thread-db.c (thread_get_info_callback): Don't return early
2363         if the thread is zombie.
2364         (thread_from_lwp): Change return type to void.  Rewrite stale
2365         comment.
2366         (attach_thread): Don't return early if the thread is zombie,
2367         instead set its "dying" flag.
2368         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2369         (find_new_threads_callback): Don't return early if the thread is
2370         zombie.
2371
2372 2012-07-20  Pedro Alves  <palves@redhat.com>
2373
2374         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2375         * target.c (target_wait): Likewise.
2376         (str_comma_list_concat_elem, do_option, target_options_to_string):
2377         New functions.
2378         * target.h (target_options_to_string): Declare.
2379
2380 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2381             Tom Tromey  <tromey@redhat.com>
2382
2383         * dwarf2read.c (dwarf_decode_macros)
2384         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2385         DW_MACRO_GNU_transparent_include_alt>: New cases.
2386         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2387         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2388
2389 2012-07-20  Tom Tromey  <tromey@redhat.com>
2390
2391         * dwarf2read.c (try_open_dwo_file): Don't call
2392         gdb_bfd_stash_filename.
2393
2394 2012-07-20  Pedro Alves  <palves@redhat.com>
2395
2396         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2397         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2398         (i386_process_record): Tweak description comments.
2399
2400 2012-07-20  Pedro Alves  <palves@redhat.com>
2401
2402         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2403         (i386_process_record): Use record_read_memory.
2404         * record.c (record_read_memory): New function.
2405         (record_arch_list_add_mem, record_exec_insn): Use
2406         record_read_memory.
2407         * record.h (record_read_memory): Declare.
2408
2409 2012-07-20  Yao Qi  <yao@codesourcery.com>
2410
2411         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2412         NULL for xfree.
2413
2414 2012-07-19  Pedro Alves  <palves@redhat.com>
2415
2416         * record.c (record_resume): Ask the target beneath to report all
2417         signals.
2418
2419 2012-07-19  Doug Evans  <dje@google.com>
2420
2421         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2422         there's no section at address zero.
2423         (dwarf2_record_block_ranges): Ditto.
2424
2425 2012-07-19  Yao Qi  <yao@codesourcery.com>
2426
2427         * command.h, remote.c: Fix a typo in comment.
2428
2429 2012-07-19  Tom Tromey  <tromey@redhat.com>
2430
2431         PR exp/13206:
2432         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2433         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2434         OP_DECLTYPE>: New cases.
2435         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2436         (type_exp): Add new productions.
2437         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2438         and decltype.
2439         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2440         New case.
2441         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2442         OP_DECLTYPE>: New case.
2443         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2444         New case.
2445         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2446         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2447
2448 2012-07-19  Tom Tromey  <tromey@redhat.com>
2449
2450         * c-exp.y (enum token_flags): New.
2451         (struct token) <cxx_only>: Remove.
2452         <flags>: New field.
2453         (tokentab3, tokentab2, ident_tokens): Update.
2454         (lex_one_token): Update.  Handle FLAG_SHADOW.
2455
2456 2012-07-19  Tom Tromey  <tromey@redhat.com>
2457
2458         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2459         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2460         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2461         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2462         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2463         type_exp production where appropriate.
2464         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2465         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2466         <UNOP_MEMVAL_TYPE>: New case.
2467         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2468         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2469         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2470         <UNOP_MEMVAL_TYPE>: New case.
2471         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2472         UNOP_REINTERPRET_CAST>: Update.
2473         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2474         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2475         UNOP_REINTERPRET_CAST>: Update.
2476         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2477         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2478         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2479         constants.
2480
2481 2012-07-19  Yao Qi  <yao@codesourcery.com>
2482             Jan Kratochvil <jan.kratochvil@redhat.com>
2483
2484         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2485         and case 'var_optional_filename' together.
2486         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2487         instead of add_setshow_optional_filename_cmd for setshow command
2488         'args'.  Set completer for 'set args'.
2489
2490 2012-07-18  Doug Evans  <dje@google.com>
2491
2492         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2493         * common/gdb_vecs.c: New file, contents from utils.c.
2494         * common/host-defs.h: New file, contents from defs.h.
2495         * utils.h: New file, contents from defs.h.
2496         * defs.h: Move all declarations of objects defined in utils.c
2497         to utils.h (except QUIT() and related).
2498         #include "utils.h", "host-defs.h".
2499         * probe.h (probe_p): Move here from gdb_vecs.h.
2500         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2501         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2502         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2503         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2504         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2505         (COMMON_OBS): Add gdb_vecs.o.
2506         (gdb_vecs.o): New rule.
2507
2508 2012-07-18  Keith Seitz  <keiths@redhat.com>
2509
2510         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2511         parameter.  If non-zero, use SYMNAME as the canonical name
2512         for the SaL.
2513         Update all callers.
2514         (convert_linespec_to_sals): Use add_sal_to_sals for
2515         expressions, too.
2516         (decode_line_full): No need to "fill in missing canonical names"
2517         anymore. Simply make cleanups for the allocated names.
2518
2519 2012-07-18  Keith Seitz  <keiths@redhat.com>
2520
2521         * linespec.c (struct linespec): Constify expression,
2522         source_filename, function_name, and label_name.
2523         (symbol_not_found_error): Make all parameters const.
2524         (linespec_parser_delete): No need to check for NULL
2525         when using xfree. Cast const char * to char * for xfree.
2526
2527 2012-07-18  Keith Seitz  <keiths@redhat.com>
2528
2529         * breakpoint.c (invalid_thread_id_error): New function.
2530         (find_condition_and_thread): Use invalid_thread_id_error.
2531         (watch_command_1): Likewise.
2532
2533 2012-07-18  Tom Tromey  <tromey@redhat.com>
2534
2535         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2536         * contrib/cc-with-tweaks.sh: New file.
2537
2538 2012-07-18  Tom Tromey  <tromey@redhat.com>
2539
2540         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2541         (locate_dwz_sections): Recognize .gdb_index.
2542         (create_cus_from_index_list): New function.
2543         (create_cus_from_index): Use it.  Handle .dwz data.
2544         (read_index_from_section): New function, extracted from
2545         dwarf2_read_index.
2546         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2547         if needed.
2548
2549 2012-07-18  Tom Tromey  <tromey@redhat.com>
2550
2551         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2552         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2553         <is_dwz>: New field.
2554         (struct dwz_file): New.
2555         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2556         (locate_dwz_sections, dwarf2_get_dwz_file)
2557         (get_abbrev_section_for_cu): New functions.
2558         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2559         (read_and_check_type_unit_head): Add abbrev_section argument.
2560         (create_debug_types_hash_table): Update.
2561         (init_cutu_and_read_dies): Use proper abbrev section.
2562         (init_cutu_and_read_dies_no_follow): Likewise.
2563         (set_partial_user): Do nothing if PST==NULL.
2564         (read_comp_units_from_section): New function.
2565         (create_all_comp_units): Use it.
2566         (scan_partial_symbols, partial_die_parent_scope): Update.
2567         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2568         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2569         (find_partial_die): Add offset_in_dwz argument.  Update.
2570         (guess_partial_die_structure_name, fixup_partial_die): Update.
2571         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2572         DW_FORM_GNU_strp_alt.
2573         (read_indirect_string_from_dwz): New function.
2574         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2575         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2576         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2577         (follow_die_offset): Add offset_in_dwz argument.
2578         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2579         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2580         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2581         Handle new macro forms.
2582         (dwarf_decode_macros): Update.
2583         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2584         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2585         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2586         (create_debug_types_hash_table): Use correct abbrev section.
2587         (get_debug_line_section): New function.
2588         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2589         (process_full_comp_unit): Pass 'required' argument to
2590         end_symtab_get_static_block.
2591         * buildsym.h (end_symtab_get_static_block): Update.
2592         * buildsym.c (end_symtab_get_static_block): Add 'required'
2593         argument.
2594         (end_symtab, end_expandable_symtab): Update.
2595
2596 2012-07-18  Tom Tromey  <tromey@redhat.com>
2597
2598         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2599         (pagesize): Remove.
2600         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2601         (zlib_decompress_section): Remove.
2602         (dwarf2_read_section): Use gdb_bfd_map_section.
2603         (munmap_section_buffer): Remove.
2604         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2605         munmap_section_buffer.
2606         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2607         (struct gdb_bfd_section_data): New.
2608         (free_one_bfd_section): New function.
2609         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2610         (get_section_descriptor, zlib_decompress_section)
2611         (gdb_bfd_map_section): New functions.
2612         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2613
2614 2012-07-18  Tom Tromey  <tromey@redhat.com>
2615
2616         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2617
2618 2012-07-18  Tom Tromey  <tromey@redhat.com>
2619
2620         * gdb_bfd.c (struct gdb_bfd_data): New.
2621         (gdb_bfd_cache): New global.
2622         (struct gdb_bfd_cache_search): New.
2623         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2624         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2625         * gdb_bfd.h (gdb_bfd_open): Declare.
2626
2627 2012-07-18  Tom Tromey  <tromey@redhat.com>
2628
2629         * utils.c (make_cleanup_bfd_unref): Rename from
2630         make_cleanup_bfd_close.
2631         * defs.h (make_cleanup_bfd_unref): Rename from
2632         make_cleanup_bfd_close.
2633         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2634         (bfd_openw_with_cleanup): Update.
2635         * corelow.c (core_open): Update.
2636         * dsrec.c (load_srec): Update.
2637         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2638         * remote-m32r-sdi.c (m32r_load): Update.
2639         * remote-mips.c (mips_load_srec): Update.
2640         (pmon_load_fast): Update.
2641         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2642         Update.
2643         (darwin_bfd_open): Update.
2644         * solib.c (solib_bfd_fopen): Update.
2645         * symfile-mem.c (symbol_file_add_from_memory): Update.
2646         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2647         (symfile_bfd_open): Update.
2648         (generic_load): Update.
2649
2650 2012-07-18  Tom Tromey  <tromey@redhat.com>
2651
2652         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2653         (pmon_load_fast): Likewise.
2654         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2655         (m32r_upload_command): Likewise.
2656         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2657         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2658         Use make_cleanup_bfd_close.
2659
2660 2012-07-18  Tom Tromey  <tromey@redhat.com>
2661
2662         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2663         gdb_bfd_stash_filename.
2664         (load_command): Open the new BFD before freeing the old.
2665         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2666         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2667         Call gdb_bfd_stash_filename.
2668         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2669         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2670         gdb_bfd_stash_filename.
2671         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2672         Free found_pathname.
2673         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2674         gdb_bfd_stash_filename.
2675         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2676         * machoread.c (macho_add_oso_symfile): Call
2677         gdb_bfd_stash_filename.
2678         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2679         gdb_bfd_stash_filename.
2680         (macho_check_dsym): Don't copy filename.  Call
2681         gdb_bfd_stash_filename.
2682         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2683         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2684         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2685         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2686         * exec.c (exec_close): Don't free the BFD's filename.
2687         (exec_file_attach): Don't copy the filename.  Call
2688         gdb_bfd_stash_filename.
2689         * corelow.c (core_close): Don't free the BFD's filename.
2690         (core_open): Call gdb_bfd_stash_filename.
2691         * corefile.c (reopen_exec_file): Remove #if 0 code.
2692         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2693         pathname.
2694         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2695
2696 2012-07-18  Tom Tromey  <tromey@redhat.com>
2697
2698         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2699         gdb_bfd_unref.
2700         (free_dwo_file): Use gdb_bfd_unref.
2701         * cli/cli-dump.c: Include gdb_bfd.h.
2702         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2703         (bfd_openr_with_cleanup): Likewise.
2704         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2705         gdb_bfd_unref.
2706         * utils.c: Include gdb_bfd.h.
2707         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2708         * symfile.c: Include gdb_bfd.h.
2709         (separate_debug_file_exists): Use gdb_bfd_unref.
2710         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2711         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2712         (generic_load): Use gdb_bfd_ref.
2713         (reread_symbols): Use gdb_bfd_unref.
2714         * symfile-mem.c: Include gdb_bfd.h.
2715         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2716         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2717         * solib.c: Include gdb_bfd.h.
2718         (solib_bfd_fopen): Use gdb_bfd_ref.
2719         (solib_bfd_open): Use gdb_bfd_unref.
2720         (free_so_symbols): Use gdb_bfd_unref.
2721         (reload_shared_libraries_1): Use gdb_bfd_unref.
2722         * solib-spu.c: Include gdb_bfd.h.
2723         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2724         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2725         gdb_bfd_unref.
2726         * solib-frv.c: Include gdb_bfd.h.
2727         (enable_break2): Use gdb_bfd_unref.
2728         * solib-dsbt.c: Include gdb_bfd.h.
2729         (enable_break2): Use gdb_bfd_unref.
2730         * solib-darwin.c: Include gdb_bfd.h.
2731         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2732         gdb_bfd_unref.
2733         (darwin_bfd_open): Use gdb_bfd_unref.
2734         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2735         * remote-mips.c: Include gdb_bfd.h.
2736         (mips_load_srec): Use gdb_bfd_ref.
2737         (pmon_load_fast): Use gdb_bfd_ref.
2738         * remote-m32r-sdi.c: Include gdb_bfd.h.
2739         (m32r_load): Use gdb_bfd_ref.
2740         * record.c: Include gdb_bfd.h.
2741         (record_save_cleanups): Use gdb_bfd_unref.
2742         (cmd_record_save): Use gdb_bfd_unref.
2743         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2744         gdb_bfd_unref.
2745         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2746         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2747         * objfiles.c: Include gdb_bfd.h.
2748         (free_objfile): Use gdb_bfd_unref.
2749         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2750         gdb_bfd.c.
2751         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2752         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2753         (macho_check_dsym): Likewise.
2754         * m32r-rom.c: Include gdb_bfd.h.
2755         (m32r_load): Use gdb_bfd_ref.
2756         (m32r_upload_command): Use gdb_bfd_ref.
2757         * jit.c: Include gdb_bfd.h.
2758         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2759         * gdb_bfd.h: New file.
2760         * gdb_bfd.c: New file.
2761         * gcore.c: Include gdb_bfd.h.
2762         (create_gcore_bfd): Use gdb_bfd_ref.
2763         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2764         (gcore_command): Use gdb_bfd_unref.
2765         * exec.c: Include gdb_bfd.h.
2766         (exec_close): Use gdb_bfd_unref.
2767         (exec_close_1): Use gdb_bfd_unref.
2768         (exec_file_attach): Use gdb_bfd_ref.
2769         * elfread.c: Include gdb_bfd.h.
2770         (build_id_verify): Use gdb_bfd_unref.
2771         * dsrec.c: Include gdb_bfd.h.
2772         (load_srec): Use gdb_bfd_ref.
2773         * corelow.c: Include gdb_bfd.h.
2774         (core_close): Use gdb_bfd_unref.
2775         (core_open): Use gdb_bfd_ref.
2776         * bfd-target.c: Include gdb_bfd.h.
2777         (target_bfd_xclose): Use gdb_bfd_unref.
2778         (target_bfd_reopen): Use gdb_bfd_ref.
2779         * Makefile.in (SFILES): Add gdb_bfd.c.
2780         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2781         (COMMON_OBS): Add gdb_bfd.o.
2782
2783 2012-07-18  Keith Seitz  <keiths@redhat.com>
2784
2785         * breakpoint.c (find_condition_and_thread): Initialize
2786         TASK and REST.
2787         (create_breakpiont): find_condition_and_thread will now
2788         initialize COND_STRING, THREAD, and REST (and TASK).
2789         (addr_string_to_sals): Likewise.
2790
2791 2012-07-18  Pedro Alves  <palves@redhat.com>
2792
2793         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2794         Pull the single step breakpoints out of the target.
2795
2796 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2797
2798         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2799         * stap-probe.c (compile_probe_arg): Likewise.
2800
2801 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2802
2803         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2804         (elf_compile_to_ax): Likewise.
2805         * infrun.c (insert_exception_resume_from_probe): Likewise.
2806         (check_exception_resume): Remove `objfile' variable.
2807         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2808         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2809         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2810         (compare_entries): Rename to...
2811         (compare_probes): ...this.  Adjust function to work with
2812         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2813         respectively.
2814         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2815         `VEC (probe_p) *'.
2816         (print_ui_out_info): Adjust argument to be `struct probe *'.
2817         (info_probes_for_ops): Adjust internal computations to use
2818         `VEC (probe_p) *'.
2819         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2820         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2821         gen_info_probes_table_values>: Remove `objfile' argument.
2822         (struct probe) <objfile>: New field.
2823         (find_probe_by_pc): Remove `objfile' argument.
2824         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2825         (stap_get_probe_argument_count): Likewise.
2826         (stap_get_arg): Likewise.
2827         (stap_evaluate_probe_argument): Likewise.
2828         (stap_compile_to_ax): Likewise.
2829         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2830         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2831         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2832         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2833         sym_compile_to_ax>: Likewise.
2834
2835 2012-07-18  Terry Guo  <terry.guo@arm.com>
2836
2837         PR 14329
2838         * defs.h (GDB_MI_MSG_WIDTH): New.
2839         * ser_base (ser_base_read_error_fd): New function.
2840         (do_ser_base_readchar): Poll error file descriptor as well as
2841         standard output.
2842         (generic_readchar): Refactor error handling.
2843
2844 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2845
2846         * NEWS: Create a new section for the next release branch.
2847         Rename the section of the current branch, now that it has
2848         been cut.
2849
2850 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2851
2852         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2853         * version.in: Bump version to 7.5.50.20120718-cvs.
2854
2855 2012-07-17  Keith Seitz  <keiths@redhat.com>
2856
2857         * linespec.c (linespec_parse_line_offset): Make parameter
2858         const.
2859
2860 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2861
2862         PR 11914
2863         * f-valprint.c (info_common_command): New variable frame_id.
2864         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2865         * printcmd.c (print_variable_and_value): Extend function comment.
2866         Add comment for invalidated FRAME.
2867         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2868         FI form FRAME_ID after each print_frame_local_vars.
2869         (struct print_variable_and_value_data): Change frame to frame_id.
2870         (do_print_variable_and_value): New variable frame, initialize it from
2871         p->frame_id.  Add comment for invalidated FRAME.
2872         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2873         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2874         for invalidated FRAME.
2875
2876 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2877             Pedro Alves  <palves@redhat.com>
2878
2879         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2880         loop.
2881
2882 2012-07-16  Tom Tromey  <tromey@redhat.com>
2883
2884         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2885
2886 2012-07-15  Doug Evans  <dje@google.com>
2887
2888         * dwarf2read.c (stmt_list_hash): New struct.
2889         (type_unit_group): Embed "per_cu" member, remove pointer.
2890         New union member "t", move member "tus" into it, all uses updated.
2891         New member "hash", replaces member "line_offset, all uses updated.
2892         (quick_file_names): Replace member "offset" with "hash", all uses
2893         updated.
2894         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2895         (hash_file_name_entry, eq_file_name_entry): Call them.
2896         (hash_type_unit_group, eq_type_unit_group): Ditto.
2897         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2898         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2899         (dw2_get_file_names): Update.
2900         (create_type_unit_group): Replace "per_cu" arg with "cu".
2901         All callers updated.  Fix "quick" (.gdb_index) handling.
2902         (get_type_unit_group): Replace "per_cu" arg with "cu".
2903         All callers updated.
2904         (build_type_unit_groups): Don't reset tu_stats.
2905
2906         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2907         "tab_cur_size".  Change member "tab" to be a htab_t.
2908         (create_filename_seen_cache): Update.
2909         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2910         (filename_seen): Update.
2911
2912 2012-07-13  Doug Evans  <dje@google.com>
2913
2914         * symtab.c (filename_seen): Update comment.
2915
2916 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2917             Doug Evans  <dje@google.com>
2918
2919         * buildsym.c (end_symtab_1): Split it to ...
2920         (end_symtab_get_static_block): ... this ...
2921         (end_symtab_from_static_block): ... and this function.
2922         (end_symtab, end_expandable_symtab): Call them.
2923         * buildsym.h (end_symtab_get_static_block)
2924         (end_symtab_from_static_block): New declarations.
2925         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2926         Set its valid CU ranges.
2927
2928 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2929
2930         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2931         DW_OP_GNU_parameter_ref.
2932
2933 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2934
2935         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2936         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2937
2938 2012-07-13  Doug Evans  <dje@google.com>
2939
2940         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2941         (filename_seen_cache): New struct.
2942         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2943         (create_filename_seen_cache): New function.
2944         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2945         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2946         updated.
2947         (output_source_filename_data): New struct.
2948         (output_source_filename): Delete arg "first".  New arg "data".
2949         All callers updated.
2950         (sources_info): Delete local "first".  New locals "data", "cleanups".
2951         Rewrite to use filename_seen_cache.
2952         (add_partial_filename_data): Delete member "first".  New member
2953         "filename_seen_cache".  All uses updated.
2954         (make_source_files_completion_list): Rewrite to use
2955         filename_seen_cache.
2956
2957 2012-07-12  Doug Evans  <dje@google.com>
2958
2959         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2960
2961 2012-07-10  Doug Evans  <dje@google.com>
2962
2963         PR gdb/13498
2964         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2965         all_type_unit_groups, type_unit_groups, tu_stats.
2966         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2967         All uses updated.  Add type_unit_group to union "s".
2968         (type_unit_group): New struct.
2969         (IS_TYPE_UNIT_GROUP): New macro.
2970         (abbrev_table): Delete unused member "section".
2971         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2972         (dw2_get_cu): Assert not used with type_unit_group.
2973         (dw2_get_primary_cu): New function.
2974         (dw2_build_type_unit_groups_reader): New function.
2975         (dw2_build_type_unit_groups): New function.
2976         (dw2_get_file_names): Assert not called on type units.
2977         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2978         Redo loop to iterate over type unit groups instead of type units.
2979         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2980         (read_abbrev_offset): New function.
2981         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2982         updated.
2983         (create_partial_symtab): New function.
2984         (process_psymtab_comp_unit_reader): Assert not used with type units.
2985         Call create_partial_symtab.
2986         (process_psymtab_type_unit): Delete.
2987         (hash_type_unit_group, eq_type_unit_group): New functions.
2988         (allocate_type_unit_groups_table): New function.
2989         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2990         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2991         (create_type_unit_group, get_type_unit_group): New functions.
2992         (tu_abbrev_offset): New struct.
2993         (sort_tu_by_abbrev_offset): New function.
2994         (add_type_unit_group_to_table): New function.
2995         (build_type_unit_groups): New function.
2996         (build_type_psymtabs_reader): New function.
2997         (build_type_psymtab_dependencies): New function.
2998         (build_type_psymtabs): Rewrite.
2999         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3000         is seen in a type unit.
3001         (process_queue): Move symtab expansion debugging printfs here.
3002         Call process_full_type_unit for type units.
3003         (compute_symtab_includes): Assert not called for type units.
3004         (process_cu_includes): Don't call compute_symtab_includes for
3005         type units.
3006         (process_full_type_unit): New function.
3007         (process_imported_unit_die): Flag an error if called for type units.
3008         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3009         updated.  Assert not called for type units.
3010         (read_file_scope): Call dwarf2_start_symtab.
3011         (setup_type_unit_groups): New function.
3012         (read_type_unit_scope): Rewrite.
3013         (abbrev_table_read_table): Initialize abbrev_table->offset.
3014         (abbrev_table_free_cleanup): New function.
3015         (dwarf2_start_symtab): New function.
3016         (load_full_type_unit): Assert not called for type unit groups.
3017         * buildsym.c (finish_block_internal): New arg "expandable".
3018         All callers updated.
3019         (start_symtab): Move most contents to ...
3020         (restart_symtab): ... here.  New function.
3021         (reset_symtab_globals): New function.
3022         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3023         Call reset_symtab_globals.
3024         (end_symtab, end_expandable_symtab): New functions.
3025         (set_missing_symtab, augment_type_symtab): New functions.
3026         * buildsym.h (end_expandable_symtab): Declare.
3027         (augment_type_symtab, restart_symtab): Declare.
3028         * psympriv.h (struct partial_symtab): New member "anonymous".
3029         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3030         anonymous psymtabs.
3031         (read_psymtabs_with_filename): Ditto.
3032         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3033         (expand_symtabs_matching_via_partial): Ditto.
3034         (dump_psymtab): Update.
3035         * dictionary.c (dict_add_pending): New function.
3036         * dictionary.h (dict_add_pending): Declare.
3037
3038 2012-07-09  Doug Evans  <dje@google.com>
3039
3040         * buildsym.c (start_subfile): Remove unnecessary check for
3041         name == NULL.
3042
3043         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3044
3045         * dwarf2read.c (load_full_type_unit): Simplify.
3046
3047         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3048         to struct signatured_type **.  All uses updated.
3049
3050         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3051         All callers updated.
3052
3053 2012-07-09  Tom Tromey  <tromey@redhat.com>
3054
3055         * c-exp.y (check_parameter_typelist): New function.
3056         (parameter_typelist): Call it.
3057         * eval.c (make_params): Handle '(void)' case.
3058         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3059         '(void)' case.
3060
3061 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3062
3063         * common/linux-ptrace.c: Include gdb_assert.h.
3064         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3065         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3066         stdint.h.
3067         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3068         functions.
3069         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3070         * linux-nat.c (linux_child_post_attach)
3071         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3072
3073 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3074
3075         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3076         nptl <2.7 bug workaround for core files.
3077
3078 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3079
3080         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3081         clearing.
3082         (save_siginfo): Remove.
3083         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3084         call.
3085         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3086         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3087         * linux-nat.h (struct lwp_info): Remove field siginfo.
3088
3089 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3090
3091         Code cleanup for the next patch.
3092         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3093         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3094         call for it.
3095         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3096         (ia64_linux_stopped_data_address):
3097         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3098         the return value.
3099         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3100         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3101         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3102         call for it.
3103
3104 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3105
3106         PR 14321
3107         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3108         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3109
3110 2012-07-06  Tom Tromey  <tromey@redhat.com>
3111
3112         * c-exp.y (DOTDOTDOT): New token.
3113         (func_mod, exp): Use parameter_typelist.
3114         (parameter_typelist): New production.
3115         (tokentab3): Add "..." token.
3116         * eval.c (make_params): Handle varargs.
3117         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3118         varargs.
3119
3120 2012-07-06  Tom Tromey  <tromey@redhat.com>
3121
3122         PR exp/9608:
3123         * c-exp.y (%union) <tvec>: Change type.
3124         (func_mod): Now uses <tvec> type.
3125         (exp): Update for tvec change.
3126         (direct_abs_decl): Push the typelist.
3127         (func_mod): Return a typelist.
3128         (nonempty_typelist): Update for tvec change.
3129         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3130         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3131         * parse.c (pop_type_list): New function.
3132         (push_typelist): New function.
3133         (follow_types): Handle tp_function_with_arguments.
3134         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3135         (enum type_pieces) <tp_function_with_arguments>: New constant.
3136         (union type_stack_elt) <typelist_val>: New field.
3137         (push_typelist): Declare.
3138
3139 2012-07-06  Tom Tromey  <tromey@redhat.com>
3140
3141         * c-exp.y (%union) <type_stack>: New field.
3142         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3143         (ptr_operator_ts): New production.
3144         (ptype): Update.
3145         * parse.c (type_stack_reserve): New function.
3146         (check_type_stack_depth): Use it.
3147         (pop_type_stack, append_type_stack, push_type_stack)
3148         (get_type_stack, type_stack_cleanup): New functions.
3149         (follow_types): Handle tp_type_stack.
3150         (_initialize_parse): Simplify initialization.
3151         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3152         constant.
3153         (union type_stack_elt) <stack_val>: New field.
3154         (get_type_stack, append_type_stack, push_type_stack)
3155         (type_stack_cleanup): Declare.
3156
3157 2012-07-06  Tom Tromey  <tromey@redhat.com>
3158
3159         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3160         Remove.
3161         (struct type_stack): New.
3162         * parse.c (type_stack, type_stack_size, type_stack_depth):
3163         Remove.
3164         (type_stack): New global.
3165         (parse_exp_in_context, check_type_stack_depth)
3166         (insert_into_type_stack, insert_type, push_type, push_type_int)
3167         (insert_type_address_space, pop_type, pop_type_int)
3168         (_initialize_parse): Update.
3169
3170 2012-07-06  Tom Tromey  <tromey@redhat.com>
3171
3172         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3173         Remove %type.
3174
3175 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3176
3177         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3178
3179 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3180             Jan Kratochvil  <jan.kratochvil@redhat.com>
3181
3182         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3183         alloca with xmalloc/xfree.
3184
3185 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3186
3187         * MAINTAINERS (Write After Approval): Add myself to the list.
3188
3189 2012-07-05  Doug Evans  <dje@google.com>
3190
3191         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3192
3193 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3194
3195         * ax-gdb.c (cli/cli-utils.h): New include.
3196         (linespec.h): Ditto.
3197         (agent_eval_command_one): New function.
3198         (agent_command_1): Ditto.
3199         (agent_command): Call function agent_command_1.
3200         (agent_eval_command): Ditto.
3201         (_initialize_ax_gdb): Change help for "maint agent"
3202         and "maint agent-eval".
3203
3204 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3205
3206         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3207         * cli/cli-utils.c (check_for_argument): New function.
3208         * cli/cli-utils.h (check_for_argument): Ditto.
3209
3210 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3211
3212         * NEWS: Mention x32 ABI support.
3213
3214 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3215
3216         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3217         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3218
3219         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3220         and pc_regnum_from_eax to -1.  Update SP regnum from
3221         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3222         needed.
3223
3224         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3225         pc_regnum_from_eax.
3226
3227 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3228
3229         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3230         * dwarf2expr.h: Include gdbtypes.h.
3231         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3232         these forward declarations.
3233         (cu_offset, sect_offset): Move these ...
3234         * gdbtypes.h: Remove include dwarf2expr.h.
3235         (cu_offset, sect_offset): ... here.
3236
3237 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3238
3239         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3240         (amd64_linux_sigtramp_code): This.
3241         (amd64_x32_linux_sigtramp_code): New.
3242         (LINUX_SIGTRAMP_LEN): Updated.
3243         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3244
3245 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3246
3247         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3248
3249 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3250
3251         * config.in: Regenerate.
3252         * configure: Regenerate.
3253         * configure.ac: Remove check for gnu/libc-version.h.
3254         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3255         gnu/libc-version.h.
3256         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3257         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3258         inferior_has_bug.  Extend the comment.
3259
3260 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3261
3262         * linux-thread-db.c (inferior_has_bug): New function.
3263         (thread_db_find_new_threads_silently): Return boolean as checked by
3264         inferior_has_bug, describe it in the comments.
3265         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3266         earlier.  Abort the initialization if it returned non-zero.
3267         (thread_db_new_objfile): Exclude debug files.
3268         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3269         if UNTIL_NO_NEW,
3270
3271 2012-07-02  Doug Evans  <dje@google.com>
3272
3273         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3274         related to queue management.
3275
3276         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3277         instead of "debug dwarf2-die" in debugging printfs.
3278         (create_debug_info_hash_table_reader): Ditto.
3279         (create_debug_info_hash_table): Ditto.
3280         (init_dwo_file): Ditto.
3281         (init_cutu_and_read_dies): Add debugging printf.
3282         (init_cutu_and_read_dies_no_follow): Ditto.
3283         (process_psymtab_comp_unit_reader): Ditto.
3284
3285 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3286
3287         Add target-side support for dynamic printf.
3288         * NEWS: Mention the additional style.
3289         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3290         (struct bp_location): New field cmd_bytecode.
3291         * breakpoint.c: Include format.h.
3292         (disconnected_dprintf): New global.
3293         (parse_cmd_to_aexpr): New function.
3294         (build_target_command_list): New function.
3295         (insert_bp_location): Call it.
3296         (remove_breakpoints_pid): Skip dprintf breakpoints.
3297         (print_one_breakpoint_location): Ditto.
3298         (dprintf_style_agent): New global.
3299         (dprintf_style_enums): Add dprintf_style_agent.
3300         (update_dprintf_command_list): Add agent case.
3301         (agent_printf_command): New function.
3302         (_initialize_breakpoint): Add new commands.
3303         * common/ax.def (printf): New bytecode.
3304         * ax.h (ax_string): Declare.
3305         * ax-gdb.h (gen_printf): Declare.
3306         * ax-gdb.c: Include cli-utils.h, format.h.
3307         (gen_printf): New function.
3308         (maint_agent_print_command): New function.
3309         (_initialize_ax_gdb): Add maint agent-printf command.
3310         * ax-general.c (ax_string): New function.
3311         (ax_print): Add printf disassembly.
3312         * Makefile.in (SFILES): Add format.c
3313         (COMMON_OBS): Add format.o.
3314         * common/format.h: New file.
3315         * common/format.c: New file.
3316         * printcmd.c: Include format.h.
3317         (ui_printf): Call parse_format_string.
3318         * remote.c (remote_state): New field breakpoint_commands.
3319         (PACKET_BreakpointCommands): New enum.
3320         (remote_breakpoint_commands_feature): New function.
3321         (remote_protocol_features): Add new BreakpointCommands entry.
3322         (remote_can_run_breakpoint_commands): New function.
3323         (remote_add_target_side_commands): New function.
3324         (remote_insert_breakpoint): Call it.
3325         (remote_insert_hw_breakpoint): Ditto.
3326         (_initialize_remote): Add new packet configuration for
3327         target-side breakpoint commands.
3328         * target.h (struct target_ops): New field
3329         to_can_run_breakpoint_commands.
3330         (target_can_run_breakpoint_commands): New macro.
3331         * target.c (update_current_target): Handle
3332         to_can_run_breakpoint_commands.
3333
3334 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3335
3336         Execute -ix and -iex only after system and user gdbinit files.
3337         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3338         processing down after gdbinit files.
3339
3340 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3341
3342         Add fnmatch-gnu module.
3343         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3344         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3345         * gnulib/aclocal.m4: Regenerate.
3346         * gnulib/config.in: Regenerate.
3347         * gnulib/configure: Regenerate.
3348         * gnulib/import/dummy.c: Remove.
3349         * gnulib/import/Makefile.am: Regenerate.
3350         * gnulib/import/Makefile.in: Likewise.
3351         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3352         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3353         * gnulib/import/alloca.c: New file.
3354         * gnulib/import/alloca.in.h: Likewise.
3355         * gnulib/import/config.charset: Likewise.
3356         * gnulib/import/fnmatch.c: Likewise.
3357         * gnulib/import/fnmatch.in.h: Likewise.
3358         * gnulib/import/fnmatch_loop.c: Likewise.
3359         * gnulib/import/localcharset.c: Likewise.
3360         * gnulib/import/localcharset.h: Likewise.
3361         * gnulib/import/m4/alloca.m4: Likewise.
3362         * gnulib/import/m4/codeset.m4: Likewise.
3363         * gnulib/import/m4/configmake.m4: Likewise.
3364         * gnulib/import/m4/fcntl-o.m4: Likewise.
3365         * gnulib/import/m4/fnmatch.m4: Likewise.
3366         * gnulib/import/m4/glibc21.m4: Likewise.
3367         * gnulib/import/m4/localcharset.m4: Likewise.
3368         * gnulib/import/m4/locale-fr.m4: Likewise.
3369         * gnulib/import/m4/locale-ja.m4: Likewise.
3370         * gnulib/import/m4/locale-zh.m4: Likewise.
3371         * gnulib/import/m4/mbrtowc.m4: Likewise.
3372         * gnulib/import/m4/mbsinit.m4: Likewise.
3373         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3374         * gnulib/import/m4/mbstate_t.m4: Likewise.
3375         * gnulib/import/m4/stdbool.m4: Likewise.
3376         * gnulib/import/m4/wchar_h.m4: Likewise.
3377         * gnulib/import/m4/wctype_h.m4: Likewise.
3378         * gnulib/import/m4/wint_t.m4: Likewise.
3379         * gnulib/import/mbrtowc.c: Likewise.
3380         * gnulib/import/mbsinit.c: Likewise.
3381         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3382         * gnulib/import/mbsrtowcs-state.c: Likewise.
3383         * gnulib/import/mbsrtowcs.c: Likewise.
3384         * gnulib/import/ref-add.sin: Likewise.
3385         * gnulib/import/ref-del.sin: Likewise.
3386         * gnulib/import/stdbool.in.h: Likewise.
3387         * gnulib/import/streq.h: Likewise.
3388         * gnulib/import/strnlen1.c: Likewise.
3389         * gnulib/import/strnlen1.h: Likewise.
3390         * gnulib/import/verify.h: Likewise.
3391         * gnulib/import/wchar.in.h: Likewise.
3392         * gnulib/import/wctype.in.h: Likewise.
3393
3394 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3395
3396         Support shell wildcards for 'set auto-load safe-path'.
3397         * auto-load.c: Include fnmatch.h.
3398         (filename_is_in_dir): Rename to ...
3399         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3400         it.  Update function comment.  Rename dir_len to pattern_len.  New
3401         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3402         messages.  Use gdb_filename_fnmatch.
3403         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3404         pattern.
3405         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3406         * defs.h (gdb_filename_fnmatch): New declaration.
3407         * utils.c: Include fnmatch.h.
3408         (gdb_filename_fnmatch): New function.
3409
3410 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3411
3412         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3413         `-probe' and `-probe-stap' options.
3414
3415 2012-07-01  Yao Qi  <yao@codesourcery.com>
3416
3417         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3418         always_inserted_off, and always_inserted_enums.
3419         Change always_inserted_mode's type to 'enum auto_boolean'.
3420         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3421         callers.
3422         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3423         of add_setshow_enum_cmd.
3424         * infrun.c: Remove can_use_displaced_stepping_auto,
3425         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3426         can_use_displaced_stepping_enum.
3427         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3428         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3429         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3430         add_setshow_enum_cmd.
3431
3432 2012-06-30  Doug Evans  <dje@google.com>
3433
3434         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3435         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3436         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3437
3438 2012-06-29  Doug Evans  <dje@google.com>
3439
3440         * linespec.c: #include "stack.h".
3441         (decode_line_with_current_source): Moved here from symtab.c and
3442         renamed from decode_line_spec.  All callers updated.
3443         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3444         renamed from decode_line_spec_1.  All callers updated.
3445         * linespec.h (decode_line_with_current_source): Move declaration here
3446         from symtab.h and renamed from decode_line_spec.
3447         (decode_line_with_last_displayed): Move declaration here from symtab.h
3448         and renamed from decode_line_spec_1.
3449         * macrocmd.c: #include "linespec.h".
3450         * symtab.c: Remove #include "linespec.h".
3451
3452 2012-06-28  Doug Evans  <dje@google.com>
3453
3454         * dwarf2read.c (get_cu_length): New function.
3455         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3456         (create_debug_types_hash_table): Ditto.
3457         (init_cutu_and_read_dies): Ditto.
3458         (init_cutu_and_read_dies_no_follow): Ditto.
3459
3460         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3461
3462         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3463         (struct abbrev_table): Define.
3464         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3465         abbrev_table.
3466         (init_cutu_and_read_dies): Update.
3467         (abbrev_table_alloc_abbrev): New function.  Replaces
3468         dwarf_alloc_abbrev.  All callers updated.
3469         (abbrev_table_add_abbrev): New function.
3470         (abbrev_table_lookup_abbrev): New function.  Replaces
3471         dwarf2_lookup_abbrev.  All callers updated.
3472         (abbrev_table_read_table): New function.  Contents moved here from
3473         dwarf2_read_abbrevs.
3474         (dwarf2_read_abbrevs): Call it.
3475         (abbrev_table_free): New function.
3476         (dwarf2_free_abbrev_table): Call it.
3477
3478 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3479
3480         * osdata.c (info_osdata_command): Filter out "Title" columns
3481         from non-MI uses.
3482         * common/linux-osdata.c (struct osdata_type): Add title field.
3483         (osdata_table): Add titles to each entry.
3484         (linux_command_xfer_osdata): Add a column for title data.
3485
3486 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3487
3488         Make logging work for MI.
3489         * NEWS: Mention it.
3490         * interps.h (interp_set_logging_ftype): New typedef.
3491         (struct interp_procs): New field set_logging_proc.
3492         (current_interp_set_logging): Declare.
3493         * interps.c (current_interp_set_logging): New function.
3494         * cli/cli-logging.c: Include interps.h.
3495         (set_logging_redirect): Call current_interp_set_logging.
3496         (pop_output_files): Ditto.
3497         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3498         * mi/mi-console.h (mi_console_set_raw): Declare.
3499         * mi/mi-console.c (mi_console_set_raw): New function.
3500         * mi/mi-interp.c (saved_raw_stdout): New global.
3501         (mi_set_logging): New function.
3502         (_initialize_mi_interp): Add it to interp procs.
3503
3504 2012-06-28  Doug Evans  <dje@google.com>
3505
3506         * symtab.c (lookup_symbol_aux_objfile): Use
3507         ALL_OBJFILE_PRIMARY_SYMTABS.
3508
3509         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3510
3511 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3512
3513         * common/buffer.c: Include inttypes.h and stdint.h.
3514         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3515
3516 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3517             Pedro Alves  <palves@redhat.com>
3518
3519         * gdbthread.h (ALL_THREADS): New macro.
3520         (thread_list): Declare.
3521         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3522         going, but instead fall through to the stepping handling.
3523         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3524         the passed in signal.  Adjust debug output.
3525         (resume_callback): Rename to ...
3526         (linux_nat_resume_callback): ... this.  Pass the thread's last
3527         stop signal, if in "pass" state.
3528         (linux_nat_resume): Adjust to rename.
3529         (stop_wait_callback): New assertion.  Don't respawn signals;
3530         instead let the LWP remain with SIGNALLED set.
3531         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3532         * remote.c (append_pending_thread_resumptions): New.
3533         (remote_vcont_resume): Call it.
3534         * target.h (target_resume): Extend comment.
3535
3536 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3537
3538         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3539
3540 2012-06-27  Doug Evans  <dje@google.com>
3541
3542         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3543         Delete have_addr_base, unused.  All uses updated.
3544         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3545         (dwarf2_get_pc_bounds): Add ranges_base.
3546         (dwarf2_record_block_ranges): Ditto.
3547
3548 2012-06-27  Tom Tromey  <tromey@redhat.com>
3549
3550         PR macros/7961:
3551         * varobj.c (varobj_create): Update.
3552         (varobj_set_value): Update.
3553         * tracepoint.c (validate_actionline): Update.
3554         (encode_actions_1): Update.
3555         * parse.c (parse_exp_1): Add 'pc' argument.
3556         (parse_exp_in_context): Add 'pc' argument.  Change how
3557         expression_context_pc is set.
3558         (parse_expression): Update.
3559         (parse_field_expression): Update.
3560         * expression.h (parse_exp_1): Update.
3561         * eval.c (parse_to_comma_and_eval): Update.
3562         * breakpoint.c (set_breakpoint_condition): Update.
3563         (update_watchpoint): Update.
3564         (init_breakpoint_sal): Update
3565         (find_condition_and_thread): Update.
3566         (watch_command_1): Update.
3567         (update_breakpoint_locations): Update.
3568         * ada-lang.c (ada_read_renaming_var_value): Update.
3569         (create_excep_cond_exprs): Update.
3570
3571 2012-06-27  Doug Evans  <dje@google.com>
3572
3573         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3574         type units.
3575
3576 2012-06-26  Doug Evans  <dje@google.com>
3577
3578         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3579         prototype.
3580         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3581         updated.
3582         (read_and_check_comp_unit_head): Ditto.
3583         (read_and_check_type_unit_head): Ditto.
3584
3585 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3586
3587         New attribute 'last' for gdb.Symtab_and_line.
3588         * NEWS (Python Scripting): Add entry about the new attribute.
3589         * python/py-symtab.c (salpy_get_last): New function which
3590         implements the get method for the 'last' attribute of
3591         gdb.Symtab_and_line.
3592         (sal_object_getset): Add entry for the 'last' attribute.
3593
3594 2012-06-26  Doug Evans  <dje@google.com>
3595
3596         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3597         (dwo_sections): Add macinfo, macro.
3598         (dwarf2_locate_dwo_sections): Watch for macro sections.
3599         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3600         All callers updated.  Handle DWO files.
3601
3602         * NEWS: Mention new options "set debug dwarf2-read" and
3603         "set debug symtab-create".
3604         * dwarf2read.c (dwarf2_read_debug): New static global.
3605         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3606         (process_queue): Ditto.
3607         (process_full_comp_unit): Ditto.
3608         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3609         * elfread.c (elf_symfile_read): Add debugging printf.
3610         * minsyms.c (install_minimal_symbols): Ditto.
3611         * psymtab.c (allocate_psymtab): Ditto.
3612         * symfile.c (allocate_symtab): Ditto.
3613         * symtab.c (symtab_create_debug): New global.
3614         (_initialize_symtab): Add new option "set debug symtab-create".
3615         * symtab.h (symtab_create_debug): Declare.
3616
3617         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3618         (lookup_dwo_type_unit): Ditto.
3619
3620 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3621             H.J. Lu  <hongjiu.lu@intel.com>
3622
3623         * amd64-linux-nat.c: Include <sys/user.h>.
3624         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3625         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3626         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3627
3628         * configure.ac: Check if the fs_base and gs_base members of
3629         `struct user_regs_struct' exist.
3630         * config.in: Regenerated.
3631         * configure: Likewise.
3632
3633 2012-06-25  Michael Eager  <eager@eagercon.com>
3634
3635         PR python/14291
3636         * python/python.c (gdbpy_write): Check for interrupted output.
3637
3638 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3639
3640         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3641         register as a stack alignment in ARM mode.
3642
3643 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3644
3645         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3646         * gnulib/config.in: Regenerate.
3647         * gnulib/configure: Likewise.
3648         * gnulib/import/m4/extensions.m4: Update it.
3649         * gnulib/import/m4/gnulib-common.m4: Likewise.
3650         * gnulib/import/m4/memmem.m4: Likewise.
3651         * gnulib/import/m4/mmap-anon.m4: Likewise.
3652         * gnulib/import/m4/multiarch.m4: Likewise.
3653         * gnulib/import/stdint.in.h: Likewise.
3654
3655 2012-06-24  Yao Qi  <yao@codesourcery.com>
3656
3657         * corefile.c (write_memory_with_notification): New.
3658         * gdbcore.h: Declare write_memory_with_notification.
3659         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3660         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3661         * valops.c (value_assign): Likewise.
3662         * python/py-inferior.c (infpy_write_memory): Call
3663         'write_memory_with_notification'.
3664
3665 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3666
3667         * cc-with-index.sh: Use also -ex "set auto-load no".
3668
3669 2012-06-23  Doug Evans  <dje@google.com>
3670
3671         PR 14125
3672         * NEWS: Document additions to .gdb_index.
3673         * dwarf2read.c: #include "gdb/gdb-index.h".
3674         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3675         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3676         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3677         (dwarf2_read_index): Recognize version 7.
3678         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3679         block_kind, domain): All callers updated.
3680         (dw2_find_symbol_file): Handle new index CU values.
3681         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3682         (add_index_entry): New args is_static, kind.  All callers updated.
3683         (offset_type_compare, uniquify_cu_indices): New functions
3684         (symbol_kind): New function.
3685         (write_psymtabs_to_index): Remove duplicate CU values.
3686         (write_psymtabs_to_index): Write .gdb_index version 7.
3687
3688 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3689
3690         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3691         * configure: Regenerate.
3692
3693 2012-06-20  Yao Qi  <yao@codesourcery.com>
3694
3695         * python/py-inferior.c: Update comments of infpy_read_memory
3696         and infpy_write_memory.
3697
3698 2012-06-19  Tom Tromey  <tromey@redhat.com>
3699
3700         PR exp/9514:
3701         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3702         (push_type_address_space): Remove.
3703         * parse.c (insert_into_type_stack): New function.
3704         (insert_type): Likewise.
3705         (insert_type_address_space): Rename from push_type_address_space.
3706         Insert tp_space_identifier.
3707         * c-exp.y (ptr_operator): New production.
3708         (abs_decl): Use ptr_operator.
3709         (space_identifier): Call insert_type_address_space.
3710         (ptype): Don't use const_or_volatile_or_space_identifier.
3711         (const_or_volatile_noopt): Call insert_type.
3712         (conversion_type_id, conversion_declarator): New productions.
3713         (operator): Use conversion_type_id.
3714
3715 2012-06-18  Doug Evans  <dje@google.com>
3716
3717         * symtab.h (minimal_symbol): New member created_by_gdb.
3718         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3719         created by gdb.
3720         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3721         (search_symbols): Call it instead of lookup_symbol.
3722         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3723
3724         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3725         Adjust address for DW_OP_GNU_addr_index.
3726         * dwarf2expr.h (dwarf_expr_context): Update comment.
3727         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3728         all callers updated.  Handle TLS vars described with
3729         DW_OP_GNU_const_index.
3730         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3731         and DW_OP_GNU_const_index.
3732         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3733
3734         * block.c (find_block_in_blockvector): Make explicit the fact that we
3735         ignore GLOBAL_BLOCK.
3736
3737 2012-06-18  Tom Tromey  <tromey@redhat.com>
3738
3739         * c-exp.y (operator): Remove trailing space after "delete" and
3740         "delete[]".
3741
3742 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3743             Jan Kratochvil  <jan.kratochvil@redhat.com>
3744
3745         Switch i386 and derived targets to ON_STACK.
3746         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3747         (amd64_dicos_init_abi): Remove its installment.
3748         * dicos-tdep.c (dicos_init_abi): Remove the
3749         set_gdbarch_call_dummy_location call.  Update the comment here.
3750         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3751         (i386_dicos_init_abi): Remove its installment.
3752         * i386-tdep.c (i386_push_dummy_code): New function.
3753         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3754         i386_push_dummy_code.
3755
3756 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3757
3758         Remove stale dummy frames.
3759         * breakpoint.c: Include dummy-frame.h.
3760         (longjmp_breakpoint_ops): New variable.
3761         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3762         bp_longjmp_call_dummy.
3763         (bpstat_what, bptype_string, print_one_breakpoint_location)
3764         (init_bp_location): Support bp_longjmp_call_dummy.
3765         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3766         (set_longjmp_breakpoint_for_call_dummy)
3767         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3768         functions.
3769         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3770         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3771         FIXME comment and extend the other comment for bp_call_dummy.
3772         (set_longjmp_breakpoint_for_call_dummy)
3773         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3774         * dummy-frame.c: Include gdbthread.h.
3775         (pop_dummy_frame_bpt): New function.
3776         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3777         (dummy_frame_discard): New function.
3778         (cleanup_dummy_frames): Update the comment about longjmps.
3779         * dummy-frame.h (dummy_frame_discard): New declaration.
3780         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3781         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3782         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3783         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3784         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3785         keep_going if IS_LONGJMP and there is no other reason to stop.
3786
3787 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3788
3789         * remote-sim.c (sim_command_completer): Initialize
3790         variable 'result'.
3791
3792 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3793
3794         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3795         * dwarf2loc.c (call_site_parameter_matches): Support
3796         CALL_SITE_PARAMETER_PARAM_OFFSET.
3797         (needs_dwarf_reg_entry_value): Push stub value.
3798         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3799         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3800         * gdbtypes.h (enum call_site_parameter_kind): New item
3801         CALL_SITE_PARAMETER_PARAM_OFFSET.
3802         (struct call_site.parameter.u): New field param_offset.
3803
3804 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3805
3806         Code cleanup: Generalize call_site.parameter key.
3807         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3808         variable dwarf_reg.  New variable kind_u.  Update parameters to
3809         push_dwarf_reg_entry_value.
3810         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3811         * dwarf2expr.h (enum call_site_parameter_kind)
3812         (union call_site_parameter_u): Forward declarations.
3813         (struct dwarf_expr_context_funcs): Update parameters and their
3814         description for push_dwarf_reg_entry_value.
3815         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3816         * dwarf2loc.c (call_site_parameter_matches): New function.
3817         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3818         description.  Use call_site_parameter_matches.
3819         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3820         Update parameters and their description.
3821         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3822         New variable kind_u.  Adjust the caller for updated parameters.
3823         (needs_dwarf_reg_entry_value): Update parameters.
3824         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3825         instead of attr.  Update for the changed fields of struct
3826         call_site_parameter.
3827         * gdbtypes.h: Include dwarf2expr.h.
3828         (enum call_site_parameter_kind): New.
3829         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3830         fb_offset into new union u.
3831
3832 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3833
3834         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3835         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3836         for x32.
3837
3838 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3839
3840         * amd64-linux-nat.c (compat_x32_clock_t): New.
3841         (compat_x32_siginfo_t): Likewise.
3842         (compat_x32_siginfo_from_siginfo): Likewise.
3843         (siginfo_from_compat_x32_siginfo): Likewise.
3844         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3845         and siginfo_from_compat_x32_siginfo for x32.
3846
3847 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3848
3849         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3850
3851 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3852
3853         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3854         instead of gdbarch_ptr_bit.
3855         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3856         (amd64_supply_native_gregset): Likewise.
3857         (amd64_collect_native_gregset): Likewise.
3858         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3859         (amd64_supply_xsave): Likewise.
3860         (amd64_collect_fxsave): Likewise.
3861         (amd64_collect_xsave): Likewise.
3862
3863 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3864
3865         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3866         (amd64_linux_read_description): Check DS segment register for
3867         x32 process.
3868
3869 2012-06-15  Tom Tromey  <tromey@redhat.com>
3870
3871         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3872         init_cutu_and_read_dies.
3873
3874 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3875
3876         * MAINTAINERS (Write After Approval): Add myself to the list.
3877
3878 2012-06-15  Tom Tromey  <tromey@redhat.com>
3879
3880         * valops.c (value_find_oload_method_list): Now static.
3881         * value.h (value_find_oload_method_list): Don't declare.
3882
3883 2012-06-15  Tom Tromey  <tromey@redhat.com>
3884
3885         * valops.c (find_overload_match): Use value_ind.
3886
3887 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3888
3889         * infrun.c (handle_inferior_event): Correct indentation.
3890
3891 2012-06-14  Doug Evans  <dje@google.com>
3892
3893         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3894         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3895         All uses updated.
3896         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3897         updated.  Handle DEBUG_LOC_START_LENGTH.
3898         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3899         (loclist_describe_location): Ditto.
3900
3901 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3902
3903         PR backtrace/13866
3904         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3905         after hiding inline functions.
3906
3907 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3908
3909         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3910         _initialize_inf_ttrace.
3911
3912 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3913
3914         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3915         _initialize_hppa_hpux_nat.
3916
3917 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3918
3919         * remote-sim.c (sim_command_completer): Change type of return
3920         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3921
3922 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3923             Jan Kratochvil  <jan.kratochvil@redhat.com>
3924
3925         PR tdep/14222
3926         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3927         stack on a 16-byte boundary.
3928
3929 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3930
3931         * jit.c (finalize_symtab): Set function's return type to 'void' by
3932         default.
3933
3934 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3935             H.J. Lu  <hongjiu.lu@intel.com>
3936
3937         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3938         Move bits common to both the classic LP64 and the new x32 ILP32
3939         ABI here.
3940         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3941         (amd64_x32_linux_init_abi): New function.
3942         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3943         subtype.
3944
3945         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3946         * i386-tdep.c (i386_pseudo_register_name): Make public.
3947         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3948         * amd64-tdep.c (amd64_dword_names): Add "eip".
3949         (amd64_x32_pseudo_register_type): New function
3950         (amd64_x32_init_abi): New function.
3951
3952 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3953
3954         PR build/14003
3955         * inferior.h (struct inferior_suspend_state): Comment out.
3956         (struct inferior): Comment out the field suspend.
3957         * infrun.c (struct infcall_suspend_state): Comment out the field
3958         inferior_suspend.
3959         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3960         out its assignment.
3961
3962 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3963
3964         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3965         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3966         function comment.  Return ERROR for unresolved cases.  Implement
3967         returning proper NAME.
3968         (yylex): Accept also NAME from classify_inner_name.
3969         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3970         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3971         LOC_TYPEDEF type.
3972         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3973
3974 2012-06-13  Tom Tromey  <tromey@redhat.com>
3975
3976         * breakpoint.c (condition_completer): New function.
3977         (_initialize_breakpoint): Use it.
3978         * value.c (complete_internalvar): New function.
3979         * value.h (complete_internalvar): Declare.
3980
3981 2012-06-13  Tom Tromey  <tromey@redhat.com>
3982
3983         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3984         * breakpoint.c (catch_syscall_completer): Return a VEC.
3985         * cli/cli-cmds.c (complete_command): Update.
3986         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3987         (complete_on_enum): Likewise.
3988         * command.h: Include gdb_vecs.h.
3989         (completer_ftype): Change return type.
3990         (complete_on_cmdlist, complete_on_enum): Likewise.
3991         * completer.c (noop_completer, filename_completer)
3992         (location_completer): Return a VEC.
3993         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3994         to a VEC.
3995         (expression_completer, complete_line_internal, complete_line)
3996         (command_completer): Return a VEC.
3997         (gdb_completion_word_break_characters, line_completion_function):
3998         Update.
3999         * completer.h: Include gdb_vecs.h.
4000         (complete_line, noop_completer, filename_completer)
4001         (expression_completer, location_completer, command_completer):
4002         Update.
4003         * f-lang.c (f_word_break_characters): Return a VEC.
4004         * interps.c (interpreter_completer): Return a VEC.
4005         * language.h (struct language_defn)
4006         <la_make_symbol_completion_list>: Return a VEC.
4007         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4008         * symtab.c (free_completion_list): Take a VEC.
4009         (return_val_size, return_val_index): Remove.
4010         (return_val): Now a VEC.
4011         (completion_list_add_name): Update.
4012         (default_make_symbol_completion_list_break_on)
4013         (default_make_symbol_completion_list, make_symbol_completion_list)
4014         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4015         Return a VEC.
4016         (add_filename_to_list): Update.
4017         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4018         <list>: Now a VEC.
4019         (maybe_add_partial_symtab_filename): Update.
4020         (make_source_files_completion_list): Return a VEC.
4021         * symtab.h (default_make_symbol_completion_list_break_on)
4022         (default_make_symbol_completion_list, make_symbol_completion_list)
4023         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4024         (make_source_files_completion_list): Update.
4025
4026 2012-06-13  Tom Tromey  <tromey@redhat.com>
4027
4028         * breakpoint.c (add_catch_command): Use completer_ftype.
4029         * breakpoint.h: Include command.h.
4030         (add_catch_command): Use completer_ftype.
4031         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4032         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4033         Use completer_ftype.
4034         * command.h (completer_ftype): New typedef.
4035         (set_cmd_completer): Use it.
4036         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4037         completer_ftype.
4038
4039 2012-06-13  Pedro Alves  <palves@redhat.com>
4040
4041         Partial revert of previous change.
4042
4043         * serial.c (scb_base): New global.
4044         (serial_for_fd): New.
4045         (serial_open, serial_fdopen_ops): Link new serial in open serials
4046         chain.
4047         (do_serial_close): Unlink serial from the open serials chain.
4048
4049 2012-06-12  Pedro Alves  <palves@redhat.com>
4050
4051         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4052         threads here.
4053         (prepare_for_detach): No longer context switch here in non-stop
4054         mode.
4055         (fetch_inferior_event): Ditto.
4056         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4057         to the event thread before removing breakpoints.  Switch to the
4058         event thread before inserting breakpoints and resuming.
4059         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4060         event thread before resuming.
4061         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4062         Switch to the event thread before removing breakpoints.
4063
4064 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4065
4066         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4067         special characters correctly for the Windows shells.  See
4068         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4069         report.
4070         [!__MINGW32__]: Remove extra double quote character from special
4071         characters.
4072
4073 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4074
4075         * ui-out.h: Remove #if 0 declarations.
4076         * ui-out.c: Remove #if 0 functions.
4077
4078 2012-06-11  Pedro Alves  <palves@redhat.com>
4079
4080         * ser-base.c (run_async_handler_and_reschedule): New.
4081         (fd_event, push_event): Use it.
4082         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4083         reference count to 1.
4084         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4085         instead of xfree.
4086         (serial_is_open, serial_ref, serial_unref): New.
4087         * serial.h (serial_open): Adjust comment.
4088         (serial_is_open): Declare.
4089         (serial_close): Adjust comment.
4090         (serial_ref, serial_unref) Declare.
4091         (struct serial): New field 'refcnt'.
4092
4093 2012-06-11  Pedro Alves  <palves@redhat.com>
4094
4095         Remove #if 0'd "connect" command, and unnecessary associated
4096         refcounting and serial reuse bits.
4097
4098         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4099         * serial.c (last_serial_opened): Delete.
4100         (scb_base): Delete.
4101         (serial_open): Adjust.
4102         (serial_for_fd): Delete.
4103         (serial_fdopen_ops, do_serial_close): Adjust.
4104         (serial_fdopen_ops): Adjust.
4105
4106 2012-06-11  Pedro Alves  <palves@redhat.com>
4107
4108         * serial.c (do_serial_close): Remove early return when SCB is
4109         null.
4110
4111 2012-06-11  Tom Tromey  <tromey@redhat.com>
4112
4113         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4114
4115 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4116
4117         Fix regression by the "ambiguous linespec" series.
4118         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4119         get_last_displayed_symtab and get_last_displayed_line and depending
4120         on CURSAL.
4121
4122 2012-06-11  Tom Tromey  <tromey@redhat.com>
4123
4124         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4125         (dw2_find_symbol_file): Use it.
4126
4127 2012-06-11  Michael Eager  <eager@eagercon.com>
4128
4129         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4130         * mips-linux-tdep.h (mips_signals): New
4131
4132 2012-06-11  Tom Tromey  <tromey@redhat.com>
4133
4134         * infrun.c (handle_inferior_event)
4135         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4136         breakpoint.
4137         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4138         exception logic in all cases.  Update comments.
4139         (insert_longjmp_resume_breakpoint): Set the exception resume
4140         breakpoint.
4141
4142 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4143
4144         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4145
4146 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4147
4148         * valarith.c (binop_types_user_defined_p): Fix a typo.
4149
4150 2012-06-08  Yao Qi  <yao@codesourcery.com>
4151             Chung-Lin Tang <cltang@codesourcery.com>
4152
4153         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4154         * arch-utils.h: Declare.
4155         * gdbarch.sh: Add return_in_first_hidden_param_p.
4156         * gdbarch.c, gdbarch.h: Regenerated.
4157         * infcall.c (call_function_by_hand): Call
4158         gdbarch_return_in_first_hidden_param_p instead of
4159         language_pass_by_reference.
4160
4161         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4162         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4163         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4164         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4165         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4166         `cplus_return_struct_by_reference'.
4167         (tic6x_return_value): Handle language cplusplus.
4168         (tic6x_return_in_first_hidden_param_p): New.
4169         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4170
4171 2012-06-07  Doug Evans  <dje@google.com>
4172
4173         * dwarf2read.c (dwarf2_cu): Add comment.
4174
4175 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4176
4177         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4178         variable.
4179         (mips_eabi_push_dummy_call): Likewise.
4180         (mips_n32n64_push_dummy_call): Likewise.
4181         (mips_o32_push_dummy_call): Likewise.
4182         (mips_o64_push_dummy_call): Likewise.
4183
4184 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4185
4186         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4187
4188 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4189
4190         * mips-tdep.c (mips_pseudo_register_type): Use
4191         mips_float_register_p.
4192
4193 2012-06-06  Pedro Alves  <palves@redhat.com>
4194
4195         * infrun.c (handle_inferior_event): Remove calls to
4196         reinit_frame_cache that follow a context_switch call.
4197
4198 2012-06-06  Pedro Alves  <palves@redhat.com>
4199
4200         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4201         context_switch and remove stale comment.
4202
4203 2012-06-06  Pedro Alves  <palves@redhat.com>
4204
4205         * infrun.c (struct execution_control_state): Remove
4206         `new_thread_event' field.
4207         (handle_inferior_event): Simplify new threads handling; don't
4208         resume the inferior if we find a new thread.
4209
4210 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4211
4212         * NEWS: Document the deprecation of SH's 'regs' command.
4213         * inferior.h (all_registers_info): Add function declaration.
4214         * sh-tdep.c (sh_show_regs): Remove variable.
4215         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4216         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4217         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4218         (sh_show_regs_command): Remove functions.
4219         (sh_gdbarch_init): Don't set sh_show_regs.
4220         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4221         'info all-registers'.
4222         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4223         (sh64_show_regs): Remove functions.
4224         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4225
4226 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4227
4228         * configure.ac: Move development=true below AC_INIT.
4229         * configure: Regenerate.
4230
4231 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4232
4233         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4234         gdb_stdout.
4235
4236 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4237
4238         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4239         argument as ssize_t.
4240         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4241         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4242         * target.c (target_read_stack, target_write_memory)
4243         (target_write_raw_memory): Likewise.
4244         * target.h (target_read_stack, target_write_memory)
4245         (target_write_raw_memory): Likewise.
4246
4247 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4248
4249         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4250         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4251         * target.c (target_read_memory): Change LEN to ssize_t.
4252         * target.h (target_read_memory): Change LEN to ssize_t.
4253
4254 2012-06-05  Pedro Alves  <palves@redhat.com>
4255
4256         PR backtrace/13866
4257
4258         * breakpoint.c (until_break_command): Only fetch the selected
4259         frame after decode_line_1.
4260
4261 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4262
4263         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4264         event breakpoint at _start, __start or main if a program
4265         interpreter is not found.
4266
4267 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4268
4269         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4270         Add declaration.
4271         * windows-tdep.c: #include "objfiles.h".
4272         (windows_iterate_over_objfiles_in_search_order): New function.
4273         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4274         iterate_over_objfiles_in_search_order gdbarch method to
4275         windows_iterate_over_objfiles_in_search_order.
4276         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4277
4278 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4279
4280         * gdbarch.sh: Add generation of
4281         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4282         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4283         (iterate_over_objfiles_in_search_order): New gdbarch method.
4284         * gdbarch.h, gdbarch.c: Regenerate.
4285         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4286         Add declaration.
4287         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4288         New function.
4289         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4290         out of lookup_symbol_aux_symtabs.
4291         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4292         call to lookup_symbol_aux_objfile.
4293         (struct global_sym_lookup_data): New type.
4294         (lookup_symbol_global_iterator_cb): New function.
4295         (lookup_symbol_global): Search for symbol using
4296         gdbarch_iterate_over_objfiles_in_search_order and
4297         lookup_symbol_global_iterator_cb.
4298         * findvar.c (struct minsym_lookup_data): New type.
4299         (minsym_lookup_iterator_cb): New function.
4300         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4301         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4302         and minsym_lookup_iterator_cb.
4303
4304 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4305
4306         Revert the following patch:
4307         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4308         try locating the symbol in the symbol's own objfile first, before
4309         extending the search to all objfiles.
4310         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4311         out of lookup_symbol_aux_symtabs.
4312         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4313         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4314         Do not search EXCLUDE_OBJFILE.
4315         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4316         (lookup_symbol_global): Search for matches in the block's objfile
4317         first, before searching all other objfiles.
4318
4319 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4320
4321         * breakpoint.c (find_condition_and_thread): Stop parsing
4322         as soon as the first invalid keyword is found.
4323
4324 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4325
4326         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4327
4328 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4329
4330         * config/djgpp/djcheck.sh: Add copyright header.
4331
4332 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4333
4334         * copyright.py (update_files, main): Fix path to update-copyright
4335         script.
4336
4337 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4338
4339         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4340         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4341         for which a reminder to update by hand is printed.
4342
4343 2012-06-04  Doug Evans  <dje@google.com>
4344
4345         * buildsym.c (make_blockvector): Add comment.
4346
4347 2012-06-04  Pedro Alves  <palves@redhat.com>
4348
4349         * arch-utils.c (default_gdb_signal_from_target): Delete.
4350         * arch-utils.h (default_gdb_signal_from_target): Delete.
4351         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4352         gdbarch_gdb_signal_from_target_p.
4353         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4354         predicate).
4355         * gdbarch.h: Regenerate.
4356         * gdbarch.c: Regenerate.
4357
4358 2012-06-04  Pedro Alves  <palves@redhat.com>
4359
4360         * gdbarch.sh (gdb_signal_from_target): Mention that the
4361         implementation of the method must be host independent.
4362         * gdbarch.h: Regenerate.
4363
4364 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4365
4366         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4367         parameters.
4368         (target_read_memory_bfd): New function.
4369         (symbol_file_add_from_memory): Use it.
4370
4371 2012-06-03  Doug Evans  <dje@google.com>
4372
4373         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4374         of primary symtab.
4375         (basic_lookup_transparent_type): Ditto.
4376
4377         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4378         (ALL_PRIMARY_SYMTABS): Use it.
4379         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4380         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4381         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4382         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4383         (basic_lookup_transparent_type): Ditto.
4384
4385 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4386
4387         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4388         it to optimize resolution of demangled name.
4389
4390 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4391
4392         * configure.ac (development): Define new variable.
4393         Call AC_CHECK_LIB for mcheck if $development.
4394         (ERROR_ON_WARNING): Enable it by default only if $development.
4395         * config.in: Regenerate.
4396         * configure: Regenerate.
4397
4398 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4399
4400         * target.c (target_read_memory): Make LEN argument as size_t.
4401         * target.h (target_read_memory): Likewise.
4402
4403 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4404
4405         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4406
4407 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4408
4409         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4410         BookE interface for PowerPC server processors if not available
4411         in the Linux Kernel.
4412
4413 2012-05-31  Keith Seitz  <keiths@redhat.com>
4414
4415         * linespec.c (decode_objc): Add cleanup to free
4416         INFO.FILE_SYMTABS.
4417         (find_linespec_symbols): Add cleanup to free CLASSES.
4418         * symfile.c (find_separate_debug_file_by_debuglink): Add
4419         cleanup to free DEBUGLINK.
4420         * ui-out.c (clear_header_list): No need to check if
4421         HEADER_NEXT.COLHDR is NULL.
4422         Free HEADER_NEXT.COL_NAME.
4423
4424 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4425
4426         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4427         warning.
4428
4429 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4430
4431         * configure.host (gdb_host_cpu): Handle tilegx*.
4432         (gdb_host): Handle tilegx-*-linux*.
4433         * tilegx-linux-nat.c: New file.
4434         * config/tilegx/linux.mh: New file.
4435
4436 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4437
4438         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4439         tilegx-linux-tdep.o.
4440         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4441         tilegx-linux-tdep.c.
4442         * configure.tgt: Handle tilegx-*-linux*.
4443         * tilegx-tdep.h: New file.
4444         * tilegx-tdep.c: New file.
4445         * tilegx-linux-tdep.c: New file.
4446         * regformats/reg-tilegx.dat: New file.
4447
4448 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4449
4450         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4451         accounting of hw watchpoints on ppc.
4452
4453 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4454
4455         * source.c (openp): Expand tilde in path entries.
4456
4457 2012-05-29  Doug Evans  <dje@google.com>
4458
4459         * buildsym.c (block_compar): Fix comment.
4460         (end_symtab): Fix and clarify some comments.
4461
4462         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4463         cleanup_undefined_types.
4464         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4465         All callers updated.
4466
4467 2012-05-29  Tom Tromey  <tromey@redhat.com>
4468
4469         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4470         fails.
4471         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4472         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4473         fails.
4474         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4475         fails.
4476
4477 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4478
4479         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4480         (struct darwin_info): ... New struct.
4481         (solib_darwin_pspace_data): New variable.
4482         (darwin_pspace_data_cleanup): New function.
4483         (get_darwin_info): Likewise.
4484         (darwin_dyld_version_ok, darwin_load_image_infos)
4485         (darwin_solib_get_all_image_info_addr_at_init)
4486         (darwin_solib_read_all_image_info_addr): Add info argument.
4487         Adjust code.
4488         (darwin_current_sos): Use per pspace structure.
4489         (darwin_solib_create_inferior_hook): Likewise.
4490         (darwin_clear_solib): Likewise.
4491         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4492
4493 2012-05-28  Pedro Alves  <palves@redhat.com>
4494
4495         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4496         block that uses them.  Clear ecss before handling each event.
4497
4498 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4499
4500         * solib-svr4.c (svr4_current_sos): New comment on
4501         svr4_current_sos_via_xfer_libraries fall back.
4502
4503 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4504
4505         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4506         it as a fallback for TYPE_IS_OPAQUE.
4507         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4508         symbols for lookup_symbol.
4509
4510 2012-05-24  John Steele Scott  <toojays@toojays.net>
4511
4512         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4513         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4514         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4515         (check_producer): ... this new function, which also checks for ICC
4516         and caches the result.
4517         (producer_is_icc): New function.
4518         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4519         producer was ICC.
4520
4521 2012-05-24  Pedro Alves  <palves@redhat.com>
4522
4523         PR gdb/7205
4524
4525         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4526         (default_gdb_signal_to_target): ... this.  Add comment.
4527         (default_gdb_signal_from_host): Rename to ...
4528         (default_gdb_signal_from_target): ... this.  Add comment.
4529         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4530         (default_gdb_signal_to_target): ... this.
4531         (default_gdb_signal_from_host): Rename to ...
4532         (default_gdb_signal_from_target): ... this.
4533         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4534         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4535         (gdb_signal_from_target): ... this.  Adjust to
4536         default_gdb_signal_from_host naming change.  Extend comment.
4537         (gdb_signal_to_host): Rename to ...
4538         (gdb_signal_to_target): ... this.  Adjust to
4539         default_gdb_signal_to_host naming change.
4540         * gdbarch.h, gdbarch.c: Renegerate.
4541
4542 2012-05-24  Pedro Alves  <palves@redhat.com>
4543
4544         PR gdb/7205
4545
4546         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4547
4548 2012-05-24  Pedro Alves  <palves@redhat.com>
4549
4550         PR gdb/7205
4551
4552         Replace target_signal with gdb_signal throughout.
4553
4554 2012-05-24  Pedro Alves  <palves@redhat.com>
4555
4556         PR tui/14159
4557
4558         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4559         string, instead of reusing the va_list argument.
4560
4561 2012-05-24  Tom Tromey  <tromey@redhat.com>
4562
4563         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4564         Remove.
4565
4566 2012-05-23  Doug Evans  <dje@google.com>
4567
4568         * symtab.c (search_symbols): Formatting fixes.
4569         (print_symbol_info): Formatting fixes.
4570
4571         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4572         int64_t change to leb128 API.
4573         (read_encoded_value, decode_frame_entry_1): Ditto.
4574         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4575         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4576         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4577         (execute_stack_op): Ditto.
4578         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4579         (safe_read_uleb128, safe_read_sleb128): Ditto.
4580         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4581         (dwarf2_compile_expr_to_ax): Ditto.
4582         (locexpr_describe_location_piece): Ditto.
4583         (disassemble_dwarf_expression): Ditto.
4584         (locexpr_describe_location_1): Ditto.
4585
4586 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4587             Kwok Cheung Yeung  <kcy@codesourcery.com>
4588
4589         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4590         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4591         (mi-cmd-info.o): New rule.
4592         * osdata.h (info_osdata_command): New declaration.
4593         * osdata.c (info_osdata_command): Change to non-static.
4594         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4595         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4596         * mi/mi-cmd-info.c: New file.
4597
4598 2012-05-23  Doug Evans  <dje@google.com>
4599
4600         * symtab.c (search_symbols): Pass NULL for file_matcher to
4601         expand_symtabs_matching if there are no files to match.
4602
4603         * gdbtypes.c (lookup_typename): Simplify.
4604
4605 2012-05-23  Pedro Alves  <palves@redhat.com>
4606
4607         * arch-utils.h (default_target_signal_to_host): Delete.
4608         * arch-utils.c (default_target_signal_to_host): Delete.
4609         * gdbarch.sh (target_signal_to_host): Remove.
4610         * gdbarch.h, gdbarch.c: Regenerate.
4611
4612 2012-05-22  Doug Evans  <dje@google.com>
4613
4614         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4615         "const gdb_byte *".
4616         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4617         (execute_cfa_program): Update to match API of leb128 functions.
4618         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4619         "const gdb_byte *".
4620         (read_unsigned_leb128, read_signed_leb128): Delete.
4621         (read_initial_length): Change type of buf argument to
4622         "const gdb_byte *".
4623         (read_encoded_value): Update to match API of leb128 functions.
4624         (decode_frame_entry): Change result to "const gdb_byte *", and
4625         similarly for "start" parameter.
4626         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4627         (dwarf2_build_frame_info): Change local frame_ptr to
4628         "const gdb_byte *".
4629         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4630         read_uleb128, read_sleb128.  All callers updated.
4631         (safe_skip_leb128): New function.
4632         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4633         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4634         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4635         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4636         read_uleb128, read_sleb128.
4637         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4638         (execute_stack_op): Update to match API of leb128 functions.
4639         * dwarf2expr.h: #include "leb128.h".
4640         (read_uleb128, read_sleb128): Delete.
4641         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4642         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4643         * dwarf2loc.c (debug_loc_kind): New enum.
4644         (decode_debug_loc_addresses): New function.
4645         (decode_debug_loc_dwo_addresses): New function.
4646         (dwarf2_find_location_expression): Rewrite.
4647         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4648         (locexpr_describe_location_piece): Ditto.
4649         (disassemble_dwarf_expression): Ditto.
4650         (locexpr_describe_location_1): Ditto.
4651         (loclist_describe_location): Rewrite.
4652         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4653         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4654         (dwarf2_section_buffer_overflow_complaint): Renamed from
4655         dwarf2_macros_too_long_complaint.  All callers updated.
4656         (skip_leb128): Delete.
4657         (init_cu_die_reader): Initialize reader->buffer_end.
4658         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4659         (skip_form_bytes): New arg buffer_end.  All callers updated.
4660         Replace call to skip_leb128 with gdb_skip_leb128.
4661         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4662         (fill_in_loclist_baton): Initialize baton->from_dwo.
4663
4664 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4665
4666         * mips-linux-nat.c (mips_linux_read_description): Use a more
4667         verbose error message.
4668
4669 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4670
4671         * NEWS: Add MIPS/Linux DSP support.
4672         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4673         (SIGCONTEXT_DSPCTL): New macro.
4674         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4675         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4676         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4677         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4678         (N64_SIGCONTEXT_HI3): Likewise.
4679         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4680         (N64_SIGCONTEXT_LO3): Likewise.
4681         (N64_SIGCONTEXT_DSPCTL): Likewise.
4682         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4683         (mips_linux_o32_sigframe_init): Handle DSP registers.
4684         (mips_linux_n32n64_sigframe_init): Likewise.
4685
4686 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4687
4688         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4689         call to abort.
4690
4691 2012-05-22  Pedro Alves  <palves@redhat.com>
4692
4693         * target.h (store_waitstatus): Move declaration ...
4694         * inf-child.h (store_waitstatus): ... here.
4695         * target.c: Move inclusion of gdb_wait.h, and ...
4696         (store_waitstatus): ... this ...
4697         * inf-child.c: ... here.
4698         * linux-nat.c: Include inf-child.h.
4699         * rs6000-nat.c: Include inf-child.h.
4700         * spu-linux-nat.c: Include inf-child.h.
4701
4702 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4703
4704         * tracepoint.c (start_tracing): Add missing i18n markup.
4705         (stop_tracing, set_trace_user): Ditto.
4706         (set_trace_notes, set_trace_stop_notes): Ditto.
4707
4708 2012-05-21  Tom Tromey  <tromey@redhat.com>
4709
4710         PR c++/7173:
4711         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4712         types.
4713         * value.h (value_cast_pointers): Update.
4714         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4715         (value_cast): Update.
4716         (update_search_result): New function.
4717         (do_search_struct_field): New, from search_struct_field.  Check
4718         for ambiguous results.
4719         (search_struct_field): Rewrite.
4720         * infcall.c (value_arg_coerce): Update.
4721         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4722         value_cast_pointers.
4723         * ada-lang.c (ada_convert_actual): Update.
4724
4725 2012-05-21  Tom Tromey  <tromey@redhat.com>
4726
4727         * macroexp.c (macro_stringify): Terminate the string.
4728
4729 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4730
4731         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4732         Describe it.
4733         * auto-load.c (auto_load_expand_dir_vars): New function.
4734         (auto_load_safe_path_vec_update): Use it, remove the
4735         substitute_path_component call thanks to it.
4736         (auto_load_objfile_script): Remove the debug_file_directory processing.
4737         Use auto_load_expand_dir_vars, remove the substitute_path_component
4738         call thanks to it.
4739         * configure: Regenerate.
4740         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4741         path.  Escape $ also for $debugdir.
4742         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4743         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4744
4745 2012-05-20  Doug Evans  <dje@google.com>
4746
4747         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4748         before use.  Check for symtab->includes == NULL before scanning it.
4749
4750 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4751
4752         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4753
4754 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4755
4756         * NEWS: Add microMIPS support and "set mips compression",
4757         "show mips compression" commands.
4758         * mips-tdep.h (mips_isa): New enum.
4759         (gdbarch_tdep): Add mips_isa.
4760         (mips_pc_is_mips16): Update prototype.
4761         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4762         * mips-tdep.c (mips_compression_mips16): New variable.
4763         (mips_compression_micromips): Likewise.
4764         (mips_compression_strings): Likewise.
4765         (mips_compression_string): Likewise.
4766         (is_mips16_isa, is_micromips_isa): New functions.
4767         (is_mips16_addr): Rename to...
4768         (is_compact_addr): ... this.
4769         (unmake_mips16_addr): Likewise to...
4770         (unmake_compact_addr): ... this.
4771         (make_mips16_addr): Likewise to...
4772         (make_compact_addr): ... this.
4773         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4774         functions.
4775         (mips_elf_make_msymbol_special): Handle microMIPS code.
4776         (msymbol_is_special): Rename to...
4777         (msymbol_is_mips16): ... this.
4778         (mips_make_symbol_special, mips_pc_is_mips16): Update
4779         accordingly.
4780         (msymbol_is_mips, msymbol_is_micromips): New functions.
4781         (mips16_to_32_reg): Rename to...
4782         (mips_reg3_to_reg): ... this.
4783         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4784         (mips_pc_isa): Likewise.
4785         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4786         code.
4787         (mips_fetch_instruction): Pass return status instead of printing
4788         an error message if requested.  Handle microMIPS code.  Bail out
4789         on an invalid ISA.
4790         (micromips_op): New macro.
4791         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4792         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4793         (b6s4_op, b7s3_reg): Likewise.
4794         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4795         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4796         (mips_insn_size): New function.
4797         (mips32_next_pc): Update mips_fetch_instruction call.
4798         (micromips_relative_offset7): New function.
4799         (micromips_relative_offset10): Likewise.
4800         (micromips_relative_offset16): Likewise.
4801         (micromips_pc_insn_size): Likewise.
4802         (micromips_bc1_pc): Likewise.
4803         (micromips_next_pc): Likewise.
4804         (unpack_mips16): Update mips_fetch_instruction call.
4805         (extended_mips16_next_pc): Update according to change to
4806         mips16_to_32_reg.
4807         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4808         code.
4809         (mips16_scan_prologue): Update mips_fetch_instruction call.
4810         Update according to change to mips16_to_32_reg.
4811         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4812         (mips_insn16_frame_base_sniffer): Likewise.
4813         (micromips_decode_imm9): New function.
4814         (micromips_scan_prologue): Likewise.
4815         (mips_micro_frame_cache): Likewise.
4816         (mips_micro_frame_this_id): Likewise.
4817         (mips_micro_frame_prev_register): Likewise.
4818         (mips_micro_frame_sniffer): Likewise.
4819         (mips_micro_frame_unwind): New variable.
4820         (mips_micro_frame_base_address): New function.
4821         (mips_micro_frame_base): New variable.
4822         (mips_micro_frame_base_sniffer): New function.
4823         (mips32_scan_prologue): Update mips_fetch_instruction call.
4824         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4825         rather than for MIPS16.
4826         (mips_insn32_frame_base_sniffer): Likewise.
4827         (mips_addr_bits_remove): Handle microMIPS code.
4828         (deal_with_atomic_sequence): Rename to...
4829         (mips_deal_with_atomic_sequence): ... this.  Update the type
4830         of the variable used to hold an instruction.  Remove the ISA bit
4831         check.  Update mips_fetch_instruction call.
4832         (micromips_deal_with_atomic_sequence): New function.
4833         (deal_with_atomic_sequence): Likewise.
4834         (mips_about_to_return): Handle microMIPS code.  Update
4835         mips_fetch_instruction call.
4836         (heuristic_proc_start): Check for the standard MIPS ISA rather
4837         than for MIPS16.  Update mips_pc_is_mips16 and
4838         mips_fetch_instruction calls.  Handle microMIPS code.
4839         (mips_push_dummy_code): Handle microMIPS code.
4840         (mips_eabi_push_dummy_call): Likewise.
4841         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4842         (mips_o64_push_dummy_call): Handle microMIPS code.
4843         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4844         (is_delayed): Remove function.
4845         (mips_single_step_through_delay): Replace the call to is_delayed
4846         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4847         Handle microMIPS code.
4848         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4849         microMIPS code.
4850         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4851         call.
4852         (micromips_in_function_epilogue_p): New function.
4853         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4854         call.
4855         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4856         Handle microMIPS.
4857         (gdb_print_insn_mips): Likewise.
4858         (mips_breakpoint_from_pc): Likewise.
4859         (mips_remote_breakpoint_from_pc): New function.
4860         (mips32_instruction_has_delay_slot): Simplify making use of the
4861         updated mips_fetch_instruction interface.
4862         (micromips_instruction_has_delay_slot): New function.
4863         (mips16_instruction_has_delay_slot): Simplify making use of the
4864         updated mips_fetch_instruction interface.
4865         (mips_adjust_breakpoint_address): Check for the standard MIPS
4866         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4867         calls.  Handle microMIPS code.
4868         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4869         (mips_skip_trampoline_code): Handle microMIPS code.
4870         (global_mips_compression): New function.
4871         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4872         file flags.  Register the microMIPS remote breakpoint handler
4873         and heuristic frame unwinder.
4874         (show_mips_compression): New function.
4875         (_initialize_mips_tdep): Add the "set mips compression" and
4876         "show mips compression" commands.
4877
4878 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4879
4880         * ada-lang.c:
4881         * ada-tasks.c:
4882         * ada-varobj.c:
4883         * amd64-darwin-tdep.c:
4884         * arm-symbian-tdep.c:
4885         * arm-tdep.c:
4886         * avr-tdep.c:
4887         * ax-gdb.c:
4888         * bfin-linux-tdep.c:
4889         * breakpoint.c:
4890         * c-valprint.c:
4891         * cli/cli-cmds.c:
4892         * coffread.c:
4893         * cp-support.c:
4894         * cris-tdep.c:
4895         * dwarf2-frame-tailcall.c:
4896         * dwarf2-frame.c:
4897         * dwarf2expr.c:
4898         * dwarf2loc.c:
4899         * dwarf2read.c:
4900         * elfread.c:
4901         * eval.c:
4902         * expprint.c:
4903         * f-valprint.c:
4904         * frv-tdep.c:
4905         * h8300-tdep.c:
4906         * hppa-hpux-tdep.c:
4907         * hppa-tdep.c:
4908         * hppanbsd-tdep.c:
4909         * i386-nto-tdep.c:
4910         * i386-tdep.c:
4911         * i387-tdep.c:
4912         * ia64-tdep.c:
4913         * jit.c:
4914         * linespec.c:
4915         * linux-tdep.c:
4916         * lm32-tdep.c:
4917         * m2-valprint.c:
4918         * m32c-tdep.c:
4919         * m32r-rom.c:
4920         * m32r-tdep.c:
4921         * m68k-tdep.c:
4922         * m68klinux-tdep.c:
4923         * mi/mi-main.c:
4924         * microblaze-tdep.c:
4925         * mips-linux-tdep.c:
4926         * mips-tdep.c:
4927         * mn10300-tdep.c:
4928         * p-valprint.c:
4929         * parse.c:
4930         * ppc-linux-tdep.c:
4931         * ppc-sysv-tdep.c:
4932         * printcmd.c:
4933         * python/py-finishbreakpoint.c:
4934         * python/py-inferior.c:
4935         * python/py-infthread.c:
4936         * python/py-type.c:
4937         * python/python.c:
4938         * remote-fileio.c:
4939         * remote-m32r-sdi.c:
4940         * remote-mips.c:
4941         * reverse.c:
4942         * rl78-tdep.c:
4943         * rs6000-aix-tdep.c:
4944         * rs6000-tdep.c:
4945         * s390-tdep.c:
4946         * score-tdep.c:
4947         * sh64-tdep.c:
4948         * skip.c:
4949         * solib-darwin.c:
4950         * solib-dsbt.c:
4951         * solib-frv.c:
4952         * sparc-tdep.c:
4953         * spu-multiarch.c:
4954         * spu-tdep.c:
4955         * stack.c:
4956         * symfile.c:
4957         * symtab.c:
4958         * tic6x-tdep.c:
4959         * tracepoint.c:
4960         * v850-tdep.c:
4961         * valarith.c:
4962         * valprint.c:
4963         * value.c:
4964         * xcoffread.c:
4965         * xtensa-tdep.c:
4966         * ada-lang.c:
4967         * ada-tasks.c:
4968         * ada-varobj.c:
4969         * amd64-darwin-tdep.c:
4970         * arm-symbian-tdep.c:
4971         * arm-tdep.c: Delete unused variables.
4972
4973 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4974
4975         Rename $ddir to $datadir.
4976         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4977         * auto-load.c (auto_load_safe_path_vec_update)
4978         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4979         * configure: Regenerate.
4980         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4981         Likewise.  Remove the 'use $ddir' help string.
4982
4983 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4984
4985         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4986         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4987
4988 2012-05-18  Tom Tromey  <tromey@redhat.com>
4989
4990         PR exp/13907:
4991         * valprint.h (struct value_print_options) <symbol_print>: New
4992         field.
4993         * valprint.c (user_print_options): Add default for symbol_print.
4994         (show_symbol_print): New function.
4995         (generic_val_print): Respect symbol_print.
4996         (_initialize_valprint): Add "print symbol" setting.
4997         * f-valprint.c (f_val_print): Respect symbol_print.
4998         * c-valprint.c (c_val_print): Respect symbol_print.
4999         * NEWS: Update.
5000         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5001         zero-size symbols.
5002         (print_address_demangle): Return int.
5003         * defs.h: (print_address_symbolic): Return int.
5004         * value.h (print_address_demangle): Return int.
5005
5006 2012-05-18  Tom Tromey  <tromey@redhat.com>
5007
5008         * valprint.c (val_print_string): Don't print leading space.
5009         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5010         print space before string or vtbl.
5011         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5012         before string.
5013         * jv-valprint.c (java_value_print): Print space before string.
5014         * go-valprint.c (print_go_string): Print space before string.
5015         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5016         space before string.
5017         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5018         space before string or vtbl.
5019         * auxv.c (fprint_target_auxv): Print space after address.
5020
5021 2012-05-18  Tom Tromey  <tromey@redhat.com>
5022
5023         * printcmd.c (print_address_demangle): Remove special case for 0.
5024
5025 2012-05-18  Tom Tromey  <tromey@redhat.com>
5026
5027         * printcmd.c (print_address_demangle): Add 'opts' argument.
5028         * p-valprint.c (pascal_val_print): Update.
5029         * jv-valprint.c (java_val_print): Update.
5030         * value.h: Update.
5031         * valprint.c (generic_val_print): Update.
5032         (print_function_pointer_address): Add 'options' argument.  Remove
5033         'addressprint' argument.  Update.
5034         * m2-valprint.c (print_unpacked_pointer): Update.
5035         * gnu-v3-abi.c (print_one_vtable): Update.
5036         (gnuv3_print_method_ptr): Update.
5037         * f-valprint.c (f_val_print): Update.
5038         * cp-valprint.c (cp_print_value_fields): Update.
5039         * valprint.h (print_function_pointer_address): Update.
5040         * c-valprint.c (c_val_print): Update.
5041
5042 2012-05-18  Tom Tromey  <tromey@redhat.com>
5043
5044         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5045         directly corresponding to the found psymtab.
5046         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5047         (dw2_find_pc_sect_symtab): Use it.
5048         * block.h (blockvector_contains_pc): Declare.
5049         * block.c (find_block_in_blockvector): New function.
5050         (blockvector_for_pc_sect): Use it.
5051         (blockvector_contains_pc): New function.
5052
5053 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5054
5055         * mips-tdep.h (mips_write_pc): New prototype.
5056         * mips-tdep.c (mips_write_pc): Make external, add description.
5057         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5058         add description.
5059
5060 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5061
5062         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5063         mips_regnum->pc.
5064         (mips_unwind_pc, mips_write_pc): Likewise.
5065         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5066         gdbarch_read_pc.
5067
5068 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5069
5070         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5071         proc_warn, proc_error, proc_get_status, proc_flags,
5072         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5073         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5074         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5075         proc_stop_process, proc_wait_for_stop, proc_run_process,
5076         proc_set_traced_signals, proc_set_traced_faults,
5077         proc_set_traced_sysentry, proc_set_traced_sysexit,
5078         proc_set_held_signals, proc_get_held_signals,
5079         proc_get_traced_signals, proc_get_traced_faults,
5080         proc_get_traced_sysentry, proc_get_traced_sysexit,
5081         proc_clear_current_fault, proc_set_current_signal,
5082         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5083         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5084         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5085         proc_get_current_thread, proc_get_current_thread,
5086         proc_get_current_thread, proc_update_threads,
5087         proc_update_threads, proc_update_threads, proc_update_threads,
5088         proc_iterate_over_threads, procfs_find_new_threads,
5089         procfs_pid_to_str): Make static.  Remove advance declaration.
5090         (proc_cursig): Make static.  Conditionalized defintion on
5091         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5092         (proc_syscall, proc_set_kill_on_last_close,
5093         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5094         proc_get_pending_signals, proc_get_signal_actions,
5095         proc_trace_signal, proc_ignore_signal): Delete.
5096
5097 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5098
5099         * coffread.c (cs_section_address): Passing proper argument for
5100         `bfd_get_section_vma'.
5101         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5102         `bfd_get_section_flags'.
5103         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5104         `bfd_get_section_vma'.
5105
5106 2012-05-16  Tom Tromey  <tromey@redhat.com>
5107
5108         PR macros/13205:
5109         * macrotab.h: (macro_define_special): Declare.
5110         (enum macro_special_kind): New.
5111         (struct macro_definition) <argc, replacement>: Update comments.
5112         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5113         (macro_define_object_internal): New function.
5114         (macro_define_object): Use it.
5115         (macro_define_special): New function.
5116         (fixup_definition): New function.
5117         (macro_lookup_definition, foreach_macro_in_scope)
5118         (foreach_macro): Use fixup_definition.
5119         * macroexp.h (macro_stringify): Declare.
5120         * macroexp.c (free_buffer_return_text): New function.
5121         (stringify): Constify "arg".
5122         (macro_stringify): New function.
5123         * dwarf2read.c (macro_start_file): Call macro_define_special.
5124
5125 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5126             Maciej W. Rozycki  <macro@mips.com>
5127
5128         * breakpoint.h (bp_location): Add related_address member.
5129         * inferior.h (get_return_value): Take a pointer to struct value
5130         instead of struct type for the function requested.
5131         * value.h (using_struct_return): Likewise.
5132         * gdbarch.sh (return_value): Take a pointer to struct value
5133         instead of struct type for the function requested.
5134         * breakpoint.c (set_breakpoint_location_function): Initialize
5135         related_address for bp_gnu_ifunc_resolver breakpoints.
5136         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5137         requested function's address to gdbarch_return_value.
5138         * eval.c (evaluate_subexp_standard): Pass the requested
5139         function's address to using_struct_return.
5140         * infcall.c (call_function_by_hand): Pass the requested
5141         function's address to using_struct_return and
5142         gdbarch_return_value.
5143         * infcmd.c (get_return_value): Take a pointer to struct value
5144         instead of struct type for the function requested.
5145         (print_return_value): Update accordingly.
5146         (finish_command_continuation): Likewise.
5147         * stack.c (return_command): Pass the requested function's
5148         address to using_struct_return and gdbarch_return_value.
5149         * value.c (using_struct_return): Take a pointer to struct value
5150         instead of struct type for the function requested.  Pass the
5151         requested function's address to gdbarch_return_value.
5152         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5153         New function_value member, replacing function_type.
5154         (bpfinishpy_dealloc): Update accordingly.
5155         (bpfinishpy_pre_stop_hook): Likewise.
5156         (bpfinishpy_init): Likewise.  Record the requested function's
5157         address.
5158         * mips-tdep.c (mips_fval_reg): New enum.
5159         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5160         words put in GP registers.
5161         (mips_o64_push_dummy_call): Update a comment.
5162         (mips_o32_return_value): Take a pointer to struct value instead
5163         of struct type for the function requested and use it to check if
5164         using the MIPS16 calling convention.  Return the designated
5165         general purpose registers for floating-point values returned in
5166         MIPS16 mode.
5167         (mips_o64_return_value): Likewise.
5168         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5169         (ppc_sysv_abi_broken_return_value): Likewise.
5170         (ppc64_sysv_abi_return_value): Likewise.
5171         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5172         value instead of struct type for the function requested.
5173         * amd64-tdep.c (amd64_return_value): Likewise.
5174         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5175         * arm-tdep.c (arm_return_value): Likewise.
5176         * avr-tdep.c (avr_return_value): Likewise.
5177         * bfin-tdep.c (bfin_return_value): Likewise.
5178         * cris-tdep.c (cris_return_value): Likewise.
5179         * frv-tdep.c (frv_return_value): Likewise.
5180         * h8300-tdep.c (h8300_return_value): Likewise.
5181         (h8300h_return_value): Likewise.
5182         * hppa-tdep.c (hppa32_return_value): Likewise.
5183         (hppa64_return_value): Likewise.
5184         * i386-tdep.c (i386_return_value): Likewise.
5185         * ia64-tdep.c (ia64_return_value): Likewise.
5186         * iq2000-tdep.c (iq2000_return_value): Likewise.
5187         * lm32-tdep.c (lm32_return_value): Likewise.
5188         * m32c-tdep.c (m32c_return_value): Likewise.
5189         * m32r-tdep.c (m32r_return_value): Likewise.
5190         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5191         * m68k-tdep.c (m68k_return_value): Likewise.
5192         (m68k_svr4_return_value): Likewise.
5193         * m88k-tdep.c (m88k_return_value): Likewise.
5194         * mep-tdep.c (mep_return_value): Likewise.
5195         * microblaze-tdep.c (microblaze_return_value): Likewise.
5196         * mn10300-tdep.c (mn10300_return_value): Likewise.
5197         * moxie-tdep.c (moxie_return_value): Likewise.
5198         * mt-tdep.c (mt_return_value): Likewise.
5199         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5200         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5201         (ppc_sysv_abi_broken_return_value): Likewise.
5202         (ppc64_sysv_abi_return_value): Likewise.
5203         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5204         * rl78-tdep.c (rl78_return_value): Likewise.
5205         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5206         * rx-tdep.c (rx_return_value): Likewise.
5207         * s390-tdep.c (s390_return_value): Likewise.
5208         * score-tdep.c (score_return_value): Likewise.
5209         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5210         (sh_return_value_fpu): Likewise.
5211         * sh64-tdep.c (sh64_return_value): Likewise.
5212         * sparc-tdep.c (sparc32_return_value): Likewise.
5213         * sparc64-tdep.c (sparc64_return_value): Likewise.
5214         * spu-tdep.c (spu_return_value): Likewise.
5215         * tic6x-tdep.c (tic6x_return_value): Likewise.
5216         * v850-tdep.c (v850_return_value): Likewise.
5217         * vax-tdep.c (vax_return_value): Likewise.
5218         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5219         * xtensa-tdep.c (xtensa_return_value): Likewise.
5220         * gdbarch.c: Regenerate.
5221         * gdbarch.h: Regenerate.
5222
5223 2012-05-15  Tom Tromey  <tromey@redhat.com>
5224
5225         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5226
5227 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5228
5229         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5230         of command in two error message.
5231
5232 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5233
5234         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5235
5236 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5237
5238         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5239
5240 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5241
5242         * NEWS (show auto-load scripts-directory): Add forgotten command.
5243
5244 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5245
5246         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5247         parameters.
5248
5249 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5250
5251         * amd64-tdep.c: Include features/i386/x32.c and
5252         features/i386/x32-avx.c.
5253         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5254         initialize_tdesc_x32_avx.
5255
5256 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5257
5258         Add dynamic printf.
5259         * breakpoint.h (enum bptype): New type bp_dprintf.
5260         (struct breakpoint): New field extra_string.
5261         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5262         (create_breakpoint): Add extra_string arg.
5263         * breakpoint.c (dprintf_breakpoint_ops): New.
5264         (is_breakpoint): Add bp_dprintf.
5265         (bpstat_what): Add dprintf case.
5266         (bptype_string): Ditto.
5267         (print_one_breakpoint_location): Ditto.
5268         (init_bp_location): Ditto.
5269         (bkpt_print_mention): Ditto.
5270         (dprintf_style_enums): New array.
5271         (dprintf_style): New global.
5272         (dprintf_function): New global.
5273         (dprintf_channel): New global.
5274         (update_dprintf_command_list): New function.
5275         (update_dprintf_commands): New function.
5276         (init_breakpoint_sal): Add extra_string argument, handle it.
5277         (create_breakpoint_sal): Add extra_string argument.
5278         (create_breakpoints_sal): Add extra_string argument, update callers.
5279         (find_condition_and_thread): Add extra argument.
5280         (create_breakpoint): Add extra_string argument, record it.
5281         (dprintf_command): New function.
5282         (break_command_1): Add arg to create_breakpoint call.
5283         (handle_gnu_v3_exceptions): Ditto.
5284         (trace_command): Ditto.
5285         (ftrace_command): Ditto.
5286         (strace_command): Ditto.
5287         (bkpt_print_mention): Add dprintf case.
5288         (create_breakpoint_sal_default): Add extra_string argument.
5289         (_initialize_breakpoint): Add new commands.
5290         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5291         * python/py-breakpoint.c (bppy_init): Ditto.
5292         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5293
5294 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5295
5296         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5297
5298 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5299
5300         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5301         unsigned long long.
5302
5303 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5304
5305         Add a new function gdb.find_pc_line to the Python API.
5306         * NEWS (Python Scripting): Add entry about the new function.
5307         * python/python.c (gdbpy_find_pc_line): New function which
5308         implements gdb.find_pc_line.
5309         (GdbMethods): Add entry for the new function.
5310
5311 2012-05-12  Pedro Alves  <palves@redhat.com>
5312
5313         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5314         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5315
5316 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5317
5318         * inferior.c: Include completer.h
5319         (initialize_inferiors): Set completer of add-inferior to
5320         filename_completer.
5321
5322 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5323
5324         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5325         gdbarch_ptr_bit for x32 core dump.
5326
5327 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5328
5329         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5330         and features/i386/x32-avx-linux.c.
5331
5332 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5333             Kwok Cheung Yeung  <kcy@codesourcery.com>
5334
5335         * NEWS: Describe new info os commands.
5336         * common/linux-osdata.c (PID_T, TIME_T): Define.
5337         (MAX_PID_T_STRLEN): New.
5338         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5339         MAX_PID_T_STRLEN.
5340         (command_from_pid): Add comment.  Change to use PID_T.
5341         (commandline_from_pid):  Change to use PID_T.
5342         (user_from_pid): Add comment.
5343         (get_process_owner): Add comment. Change to use PID_T and
5344         MAX_PID_T_STRLEN.
5345         (get_number_of_cpu_cores): Add comment.
5346         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5347         MAX_PID_T_STRLEN.
5348         (linux_xfer_osdata_processes): Change to use PID_T and
5349         MAX_PID_T_STRLEN.
5350         (compare_processes): New function.
5351         (linux_xfer_osdata_processgroups): New function.
5352         (linux_xfer_osdata_threads): Change to use PID_T.
5353         (linux_xfer_osdata_fds): New function.
5354         (format_socket_state, print_sockets): New functions.
5355         (union socket_addr): New union.
5356         (linux_xfer_osdata_isockets): New function.
5357         (time_from_time_t, group_from_gid): New functions.
5358         (linux_xfer_osdata_shm): New function.
5359         (linux_xfer_osdata_sem): New function.
5360         (linux_xfer_osdata_msg): New function.
5361         (linux_xfer_osdata_modules): New function.
5362         (osdata_table): Add new entries.
5363         * common/buffer.c (buffer_xml_printf): Add support for long and
5364         long long format specifiers.
5365
5366 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5367
5368         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5369         (tdesc_x32_avx_linux): Likewise.
5370
5371 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5372
5373         Implement multi-component --with-auto-load-dir.
5374         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5375         entries.
5376         (--with-auto-load-safe-path): Update the default value description.
5377         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5378         New.
5379         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5380         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5381         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5382         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5383         "set auto-load scripts-directory".
5384         * config.in: Regenerate.
5385         * configure: Regenerate.
5386         * configure.ac (--with-auto-load-dir): New configure option.
5387         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5388
5389 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5390
5391         Provide $ddir substitution for --with-auto-load-safe-path.
5392         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5393         entries.
5394         * auto-load.c: Include observer.h.
5395         (auto_load_safe_path_vec_update): Call substitute_path_component for
5396         each component.  New variable ddir_subst.
5397         (auto_load_gdb_datadir_changed): New function.
5398         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5399         AUTO_LOAD_SAFE_PATH.  New comment.
5400         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5401         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5402         * config.in: Regenerate.
5403         * configure: Regenerate.
5404         * configure.ac (--auto-load-safe-path): Rename
5405         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5406         GDB_DATADIR/auto-load.
5407         * defs.h (substitute_path_component): New declaration.
5408         * top.c: Include observer.h.
5409         (set_gdb_datadir): New function.
5410         (init_main): Install it for "set data-directory".
5411         * utils.c (substitute_path_component): New function.
5412
5413 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5414
5415         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5416         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5417         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5418         DEBUG_FILE_DIRECTORY.
5419
5420 2012-05-10  Tom Tromey  <tromey@redhat.com>
5421
5422         * dwarf2read.c (recursively_write_psymbols): New function.
5423         (write_psymtabs_to_index): Use it.
5424
5425         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5426         field.
5427         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5428         (load_partial_comp_unit): Update.
5429         (queue_comp_unit): Add argument 'pretend_language'.
5430         (process_queue): Update.
5431         (psymtab_to_symtab_1): Skip dependencies that have a user.
5432         (load_partial_comp_unit_reader): Give meaning to the 'data'
5433         argument.
5434         (load_full_comp_unit): Add 'pretend_language' argument.
5435         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5436         language on CU.
5437         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5438         Update.
5439         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5440         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5441         Update.
5442         (prepare_one_comp_unit): Add 'pretend_language' argument.
5443
5444         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5445         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5446         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5447         (dw2_do_instantiate_symtab): Check whether symtab was read in
5448         before queueing.
5449         (dw2_instantiate_symtab): Add assertion.  Call
5450         process_cu_includes.
5451         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5452         (partial_symtab_p): New typedef.
5453         (set_partial_user): New function.
5454         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5455         (scan_partial_symbols): Add imported CU to imported_symtabs.
5456         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5457         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5458         (get_symtab, recursively_compute_inclusions)
5459         (compute_symtab_includes, process_cu_includes)
5460         (process_imported_unit_die): New functions.
5461         (process_die) <DW_TAG_imported_unit>: New case.
5462         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5463
5464         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5465         comment.
5466         (struct partial_die_info) <locdesc>: Remove.
5467         <d>: New field.
5468         (process_psymtab_comp_unit): Add 'read_partial' argument.
5469         Update.
5470         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5471         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5472         (add_partial_symbol): Update.
5473         (process_die): Handle DW_TAG_partial_unit.
5474         (read_file_scope): Update comment.
5475         (load_partial_dies): Handle DW_TAG_imported_unit.
5476         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5477         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5478
5479 2012-05-10  Tom Tromey  <tromey@redhat.com>
5480
5481         * cc-with-dwz.sh: New file.
5482
5483 2012-05-10  Tom Tromey  <tromey@redhat.com>
5484
5485         * symtab.h (struct symtab) <includes, user>: New fields.
5486         * block.h (struct block_iterator) <d, idx, which>: New fields.
5487         * block.c (initialize_block_iterator, find_iterator_symtab)
5488         (block_iterator_step, block_iter_name_step)
5489         (block_iter_match_step): New functions.
5490         (block_iterator_first, block_iterator_next)
5491         (block_iter_name_first, block_iter_name_next)
5492         (block_iter_match_first, block_iter_match_next): Rewrite.
5493         (get_block_symtab): New function.
5494
5495 2012-05-10  Tom Tromey  <tromey@redhat.com>
5496
5497         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5498         set_block_symtab.
5499         * jit.c (finalize_symtab): Use allocate_global_block,
5500         set_block_symtab.
5501         * buildsym.c (finish_block_internal): New function, from old
5502         finish_block.
5503         (finish_block): Rewrite.
5504         (end_symtab): Use finish_block_internal, set_block_symtab.
5505         * block.h (struct global_block): New.
5506         (allocate_global_block, set_block_symtab): Declare.
5507         * block.c (allocate_global_block, set_block_symtab): New
5508         functions.
5509
5510 2012-05-10  Tom Tromey  <tromey@redhat.com>
5511
5512         * psymtab.c (partial_map_expand_apply): Add assertion.
5513         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5514         (psymtab_to_symtab): Find unshared psymtab.
5515         (dump_psymtab): Print including psymtabs.
5516         (recursively_search_psymtabs): New function.
5517         (expand_symtabs_matching_via_partial): Use it.
5518         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5519         fields.
5520         (enum psymtab_search_status): New.
5521
5522 2012-05-10  Tom Tromey  <tromey@redhat.com>
5523
5524         * tracepoint.c (scope_info): Update.
5525         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5526         (find_pc_sect_symtab, search_symbols)
5527         (default_make_symbol_completion_list_break_on)
5528         (make_file_symbol_completion_list): Update.
5529         * symmisc.c (dump_symtab_1): Update.
5530         * stack.c (print_frame_args, iterate_over_block_locals)
5531         (print_frame_labels, iterate_over_block_arg_vars): Update.
5532         * python/py-block.c (block_object) <dict>: Remove.
5533         <block>: New field.
5534         <iter>: Change type.
5535         (blpy_iter): Update.
5536         (blpy_block_syms_iternext): Update.
5537         * psymtab.c (map_block): Use block iterators.
5538         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5539         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5540         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5541         * infrun.c (check_exception_resume): Update.
5542         * cp-support.c (make_symbol_overload_list_block): Update.
5543         * coffread.c (patch_opaque_types): Update.
5544         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5545         * block.h (struct block_iterator): New.
5546         (block_iterator_first, block_iterator_next, block_iter_name_first)
5547         (block_iter_name_next, block_iter_match_first)
5548         (block_iter_match_next): Declare.
5549         (ALL_BLOCK_SYMBOLS): Redefine.
5550         * block.c (block_iterator_first, block_iterator_next)
5551         (block_iter_name_first, block_iter_name_next)
5552         (block_iter_match_first, block_iter_match_next): New functions.
5553         * ada-lang.c (ada_add_block_symbols)
5554         (ada_make_symbol_completion_list): Use block iterator.
5555
5556 2012-05-10  Tom Tromey  <tromey@redhat.com>
5557
5558         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5559         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5560         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5561         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5562         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5563         Update.
5564
5565 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5566
5567         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5568         print-file-var-lib2.c, print-file-var-main.c and
5569         print-file-var.exp (located in gdb/testsuite/gdb.base).
5570
5571 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5572
5573         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5574         try locating the symbol in the symbol's own objfile first, before
5575         extending the search to all objfiles.
5576         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5577         out of lookup_symbol_aux_symtabs.
5578         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5579         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5580         Do not search EXCLUDE_OBJFILE.
5581         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5582         (lookup_symbol_global): Search for matches in the block's objfile
5583         first, before searching all other objfiles.
5584
5585 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5586
5587         * printcmd.c (set_command): Add pre/post inc/dec.
5588
5589 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5590
5591         * gdb.1: Document -ex option.
5592
5593 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5594
5595         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5596         * inferior.h (AT_SYMBOL): Delete.
5597
5598 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5599
5600         * mips-tdep.c (mips_push_dummy_code): New function.
5601         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5602         ON_STACK and install mips_push_dummy_code as our gdbarch
5603         push_dummy_code routine.
5604
5605 2012-05-09  Pedro Alves  <palves@redhat.com>
5606
5607         * target.c (set_maintenance_target_async_permitted): Rename to ...
5608         (set_target_async_command): ... this.
5609         (show_maintenance_target_async_permitted): Rename to ...
5610         (show_target_async_command): ... this.
5611         (initialize_targets): Adjust.
5612
5613 2012-05-08  Doug Evans  <dje@google.com>
5614
5615         * go-exp.y (classify_name): Add missing assignment of fields of
5616         yylval.ssym.
5617
5618 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5619
5620         Display the ">" prompt in interactive mode while reading canned
5621         commands, even when the current interpreter is MI.
5622
5623         * interps.c (interp_set_temp): New function.
5624
5625         * interps.h (interp_set_temp): Add prototype.
5626
5627         * cli/cli-script.c (restore_interp): New cleanup function.
5628         (read_command_lines): Temporarily override the current interpreter
5629         with CLI and arrange for restoring the original one.
5630
5631 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5632
5633         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5634
5635 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5636
5637         * probe.c (parse_probes): Move conditional to check for
5638         debuginfo files from here...
5639         * stap-probe.c (stap_get_probes): ... to here.
5640
5641 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5642             H.J. Lu  <hongjiu.lu@intel.com>
5643
5644         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5645         `movl %esp, %ebp' for the X32 ABI.
5646
5647 2012-05-07  Tom Tromey  <tromey@redhat.com>
5648
5649         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5650         get_DW_TAG_name.
5651         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5652         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5653         (dwarf_stack_op_name): Remove.
5654         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5655         (decode_locdesc): Use get_DW_OP_name.
5656         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5657         (dwarf2_compile_expr_to_ax): Likewise.
5658         (disassemble_dwarf_expression): Likewise.
5659         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5660
5661 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5662
5663         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5664         (sh_linux_sigtramp_cache): New function.
5665         (sh_linux_sigreturn_init): New function.
5666         (sh_linux_rt_sigreturn_init): New function.
5667         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5668         patterns.
5669         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5670         syscall codes.
5671         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5672         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5673         (sh_linux_init_abi): Add init calls to register new tramp_frame
5674         definitions under 32-bit SH, update comments.
5675
5676 2012-05-07  Pedro Alves  <palves@redhat.com>
5677
5678         PR gdb/10952
5679
5680         * amd64-linux-tdep.c: Include glibc-tdep.h.
5681         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5682         gdbarch_skip_solib_resolver callback.
5683
5684 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5685
5686         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5687         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5688         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5689         (add_auto_load_safe_path): Change the error message.
5690         (_initialize_auto_load): Change the "safe-path" help text.
5691         * configure: Regenerate
5692         * configure.ac (--without-auto-load-safe-path): Set
5693         WITH_AUTO_LOAD_SAFE_PATH to /.
5694
5695 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5696
5697         * stap-probe.h: Do not include unecessary `probe.h'.
5698
5699 2012-05-05  Alan Modra  <amodra@gmail.com>
5700
5701         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5702         bfd_und_section_ptr.
5703         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5704         and bfd_com_section_ptr.
5705
5706 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5707
5708         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5709
5710 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5711
5712         * windows-nat.h (segment_register_p_ftype): New typedef.
5713         (windows_set_segment_register_p): Add declaration.
5714         * windows-nat.c (segment_register_p): New static global.
5715         (windows_set_segment_register_p): New function.
5716         (do_windows_fetch_inferior_registers): Add special handling
5717         for segment registers.
5718         * amd64-windows-nat.c: #include "amd64-tdep.h".
5719         (amd64_windows_segment_register_p): New function.
5720         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5721         * i386-windows-nat.c: #include "i386-tdep.h".
5722         (i386_windows_segment_register_p): New function.
5723         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5724
5725 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5726
5727         * printcmd.c (set_command): Emit a warning if the expression is not
5728         an assignment.
5729
5730 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5731
5732         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5733         Make static.
5734
5735 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5736
5737         * stap-probe.c (stap_is_operator): Change declaration.
5738         (stap_get_opcode): Change return value.
5739         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5740         `stap_parse_argument_1'.
5741
5742 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5743
5744         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5745         debug log.
5746
5747 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5748
5749         Add two new methods global_block and static_block to gdb.Symtab
5750         objects.
5751         * NEWS (Python scripting): Add entry about the new methods.
5752         * python/py-symtab.c (stpy_global_block): New function which
5753         implements the gdb.Symtab.global_block() method.
5754         (stpy_static_block): New function which implements the
5755         gdb.Symtab.static_block() method.
5756         (symtab_object_methods): Add entries for the two new methods.
5757
5758 2012-05-03  Doug Evans  <dje@google.com>
5759
5760         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5761         files.
5762
5763 2012-05-03  Yao Qi  <yao@codesourcery.com>
5764
5765         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5766         space.
5767         (i386_process_record): Ditto.
5768
5769 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5770
5771         * infcall.c (unwind_on_signal_p): Make static.
5772
5773 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5774
5775         * sol-thread.c (solaris_pid_to_str): Make static.
5776         (_initialize_sol_thread): Add prototype.
5777
5778 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5779
5780         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5781
5782 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5783
5784         * MAINTAINERS: Remove myself.
5785
5786 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5787
5788         Fix --without-auto-load-safe-path for MS-Windows host platform.
5789         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5790
5791 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5792
5793         * gdb_curses.h: Undefine KEY_EVENT before including curses
5794         headers.  Move "#undef MOUSE_MOVED" before any curses header
5795         inclusion.
5796
5797 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5798
5799         * features/i386/i386-mmx-linux.c: Regenerate.
5800         * features/rs6000/powerpc-32.c: Likewise.
5801         * features/rs6000/powerpc-32l.c: Likewise.
5802         * features/rs6000/powerpc-403.c: Likewise.
5803         * features/rs6000/powerpc-403gc.c: Likewise.
5804         * features/rs6000/powerpc-405.c: Likewise.
5805         * features/rs6000/powerpc-505.c: Likewise.
5806         * features/rs6000/powerpc-601.c: Likewise.
5807         * features/rs6000/powerpc-602.c: Likewise.
5808         * features/rs6000/powerpc-603.c: Likewise.
5809         * features/rs6000/powerpc-604.c: Likewise.
5810         * features/rs6000/powerpc-64.c: Likewise.
5811         * features/rs6000/powerpc-64l.c: Likewise.
5812         * features/rs6000/powerpc-750.c: Likewise.
5813         * features/rs6000/powerpc-860.c: Likewise.
5814         * features/rs6000/powerpc-e500.c: Likewise.
5815         * features/rs6000/powerpc-e500l.c: Likewise.
5816         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5817         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5818         * features/rs6000/rs6000.c: Likewise.
5819
5820 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5821
5822         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5823         variable.
5824         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5825         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5826         (stap_parse_argument) <e>: Likewise.
5827         (handle_stap_probe) <byte_order>: Likewise.
5828
5829 2012-04-30  Doug Evans  <dje@google.com>
5830
5831         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5832         init_and_read_dies_worker.  All callers updated.
5833         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5834         replaced with init_cutu_and_read_dies.
5835         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5836         (find_partial_die): Remove FIXME.  Don't free current CU.
5837
5838 2012-04-30  Sterling Augustine  <saugustine@google.com>
5839
5840         * contrib: New directory.
5841         * contrib/test_pubnames_and_indexes.py: New file.
5842
5843 2012-04-30  Doug Evans  <dje@google.com>
5844
5845         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5846         All callers updated.
5847         (init_cu_die_reader): Verify the section is non-empty.
5848         (dwarf_decode_line_header): Don't dereference section->asection
5849         until we know the section is present.
5850
5851 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5852
5853         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5854         probes.
5855
5856 2012-04-29  Yao Qi  <yao@codesourcery.com>
5857
5858         * gdb-code-style.el: New hook gdb-markup-hook
5859         and gdb-comment-hook.
5860
5861 2012-04-28  Doug Evans  <dje@google.com>
5862
5863         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5864         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5865         objfile->obfd.
5866         * symfile.h (dwarf2_debug_sections): New member addr.
5867         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5868         (ctx_no_get_addr_index): New function.
5869         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5870         (ctx_no_get_addr_index): Declare.
5871         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5872         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5873         (dwarf_expr_ctx_funcs): Update.
5874         (needs_get_addr_index): New function.
5875         (needs_frame_ctx_funcs): Update.
5876         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5877         * dwarf2read.c: #include "gdbcore.h".
5878         (dwarf2_per_objfile): New members addr, dwo_files.
5879         (dwarf2_elf_names): Add entry for addr.
5880         (struct dwo_section_names): New type.
5881         (dwo_section_names): New static global.
5882         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5883         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5884         old debug_types_section member updated to use this.
5885         Rename member debug_types_section to info_or_types_section,
5886         all uses updated.
5887         (signatured_type): Rename member type_offset to type_offset_in_tu,
5888         all uses updated.  New member type_offset_in_section.
5889         (struct dwo_sections): New type.
5890         (struct dwo_unit): New type.
5891         (struct dwo_file): New type.
5892         (die_reader_specs): New member dwo_file.
5893         (dwarf2_locate_sections): Watch for .debug_addr.
5894         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5895         (dwarf2_read_section): Get bfd of section from bfd's asection,
5896         instead of objfile.
5897         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5898         (create_signatured_type_table_from_index): Initialize
5899         sig_type->info_or_types_section.
5900         (dw2_get_file_names): Statement lists for type units with DWO files
5901         live in the DWO file.
5902         (create_debug_types_hash_table): New function.
5903         (create_all_type_units): Rewrite.
5904         (init_cu_die_reader): New arg dwo_file, all callers updated.
5905         (init_and_read_dies_worker): Get section from
5906         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5907         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5908         continue reading the CU/TU from there.
5909         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5910         updated.  Get section from this_cu->info_or_types_section.
5911         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5912         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5913         DW_FORM_GNU_str_index.
5914         (hash_dwo_file, eq_dwo_file): New functions.
5915         (allocate_dwo_file_hash_table): New function.
5916         (hash_dwo_unit, eq_dwo_unit): New functions.
5917         (allocate_dwo_unit_table): New function.
5918         (dwarf2_locate_dwo_sections): New function.
5919         (struct create_dwo_info_table_data): New type.
5920         (create_debug_info_hash_table_reader): New function.
5921         (create_debug_info_hash_table): New function.
5922         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5923         (lookup_dwo_file): New function.
5924         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5925         (free_dwo_file, free_dwo_file_cleanup): New functions.
5926         (free_dwo_file_from_slot, free_dwo_files): New functions.
5927         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5928         (dwarf2_record_block_ranges): Ditto.
5929         (read_partial_die): Ditto.
5930         (process_enumeration_scope): Update to use type_offset_in_section.
5931         (read_full_die_1): New function.
5932         (read_full_die): Rewrite.
5933         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5934         DW_FORM_GNU_str_index.
5935         (read_addr_index_1, read_addr_index): New functions.
5936         (read_addr_index_from_leb128): New function.
5937         (struct dwarf2_read_addr_index_data): New type.
5938         (dwarf2_read_addr_index_reader): New function.
5939         (dwarf2_read_addr_index): New function.
5940         (read_str_index): New function.
5941         (leb128_size): New function.
5942         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5943         If processing a type unit from a DWO file, get the line section
5944         from the DWO file.
5945         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5946         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5947         DW_FORM_GNU_str_index.
5948         (lookup_die_type): Check whether section offset of type's die is
5949         known before looking it up.  Remove assert.  Condition can
5950         legimately happen for inter-cu type references.
5951         (dwarf_attr_name): Handle Fission attributes.
5952         (dwarf_form_name): Handle Fission forms.
5953         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5954         DW_FORM_GNU_str_index.
5955         (follow_die_sig): Update to use type_offset_in_section.
5956         (decode_locdesc): New case DW_OP_GNU_addr_index.
5957         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5958         DW_FORM_GNU_str_index.
5959         (cu_debug_loc_section): New function.
5960         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5961         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5962         Free DWO files if present.
5963         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5964
5965         Refactor DIE reading.
5966         * dwarf2read.c (dwarf2_per_objfile): Replace members
5967         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5968         (die_reader_specs): New member "die_section".  Temporarily make
5969         member "buffer" non-const, pending constifying all info_ptr uses.
5970         (die_reader_func_ftype): New typedef.
5971         (dw2_get_file_names_reader): New function.
5972         (dw2_get_file_names): Rewrite.
5973         (read_and_check_type_unit_head): Rename arg type_offset to
5974         type_offset_in_tu.
5975         (create_all_type_units): Improve debugging message.
5976         Improve dummy type unit check.
5977         (init_cu_die_reader): New arg "section".  All callers updated.
5978         (init_and_read_dies_worker): New function.
5979         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5980         (init_cutu_and_read_dies_no_follow): New function.
5981         (init_cutu_and_read_dies_simple): New function.
5982         (process_psymtab_comp_unit_reader): New function.
5983         (process_psymtab_comp_unit): Delete args section,
5984         is_debug_types_section.  Rewrite.  All callers updated.
5985         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5986         All callers updated.  Rewrite.
5987         (load_partial_comp_unit_reader): New function.
5988         (load_partial_comp_unit): Rewrite.
5989         (skip_children): New arg reader.  Delete args buffer, cu.
5990         All callers updated.
5991         (skip_one_die): New arg reader.  Delete args buffer, cu.
5992         All callers updated.
5993         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5994         All callers updated.
5995         (load_full_comp_unit_reader): New function.
5996         (load_full_comp_unit): Rewrite.
5997         (read_comp_unit): Delete.
5998         (read_die_and_children_1): Delete, contents moved ...
5999         (read_die_and_children): ... here.
6000         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6001         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6002         All callers updated.
6003         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6004         All callers updated.
6005         (find_partial_die): Rewrite load_all_dies support.
6006         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6007         All callers updated.
6008         (read_attribute): New arg reader.  Delete args abfd, cu.
6009         All callers updated.
6010         (load_full_type_unit): Add assert.
6011         (read_signatured_type_reader): New function.
6012         (read_signatured_type): Rewrite.
6013         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6014         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6015         All callers updated.  Set per_cu->cu = NULL after freeing it.
6016         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6017         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6018         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6019         (set_die_type): Update.
6020         (get_die_type_at_offset): Update.
6021         (read_file_scope): Call prepare_one_comp_unit.
6022         (read_type_unit_scope): Ditto.
6023         (prepare_one_comp_unit): Set producer if present.
6024
6025 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6026
6027         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6028          gettext function on `error'.
6029
6030 2012-04-27  Doug Evans  <dje@google.com>
6031
6032         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6033         is empty.
6034
6035 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6036             Tom Tromey  <tromey@redhat.com>
6037
6038         * breakpoint.c (struct breakpoint_objfile_data)
6039         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6040         <exception_probes>: New fields.
6041         (free_breakpoint_probes): New function.
6042         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6043         `_Unwind_DebugHook'.
6044         (create_exception_master_breakpoint): Likewise.
6045         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6046         * infrun.c: Including necessary header files for handling SystemTap
6047         probes.
6048         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6049         via SystemTap probes.
6050         (check_exception_resume): Remove `func' argument.  Handle exception
6051         unwinding breakpoint set via a SystemTap probe.
6052         (insert_exception_resume_from_probe): New function.
6053
6054 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6055             Tom Tromey  <tromey@redhat.com>
6056             Jan Kratochvil  <jan.kratochvil@redhat.com>
6057
6058         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6059         (COMMON_OBS): Likewise.
6060         (HFILES_NO_SRCDIR): Add `probe'.
6061         * NEWS: Mention support for static and SystemTap probes.
6062         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6063         SystemTap probes' arguments parser.
6064         * arm-linux-tdep.c: Including headers needed to perform the parsing
6065         of SystemTap probes' arguments.
6066         (arm_stap_is_single_operand): New function.
6067         (arm_stap_parse_special_token): Likewise.
6068         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6069         probes' arguments parser.
6070         * ax-gdb.c (require_rvalue): Removing static declaration.
6071         (gen_expr): Likewise.
6072         * ax-gdb.h (gen_expr): Declaring function.
6073         (require_rvalue): Likewise.
6074         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6075         (bkpt_probe_breakpoint_ops): New variable.
6076         (momentary_breakpoint_from_master): Set the `probe' value.
6077         (add_location_to_breakpoint): Likewise.
6078         (break_command_1): Using proper breakpoint_ops according to the
6079         argument passed by the user in the command line.
6080         (bkpt_probe_insert_location): New function.
6081         (bkpt_probe_remove_location): Likewise.
6082         (bkpt_probe_create_sals_from_address): Likewise.
6083         (bkpt_probe_decode_linespec): Likewise.
6084         (tracepoint_probe_create_sals_from_address): Likewise.
6085         (tracepoint_probe_decode_linespec): Likewise.
6086         (tracepoint_probe_breakpoint_ops): New variable.
6087         (trace_command): Using proper breakpoint_ops according to the
6088         argument passed by the user in the command line.
6089         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6090         static probes on breakpoints and tracepoints.
6091         * breakpoint.h (struct bp_location) <probe>: New field.
6092         * cli-utils.c (skip_spaces_const): New function.
6093         (extract_arg): Likewise.
6094         * cli-utils.h (skip_spaces_const): Likewise.
6095         (extract_arg): Likewise.
6096         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6097         * configure.ac: Append `stap-probe.o' to be generated when ELF
6098         support is present.
6099         * configure: Regenerate.
6100         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6101         * elfread.c: Include `probe.h' and `arch-utils.h'.
6102         (probe_key): New variable.
6103         (elf_get_probes): New function.
6104         (elf_get_probe_argument_count): Likewise.
6105         (elf_evaluate_probe_argument): Likewise.
6106         (elf_compile_to_ax): Likewise.
6107         (elf_symfile_relocate_probe): Likewise.
6108         (stap_probe_key_free): Likewise.
6109         (elf_probe_fns): New variable.
6110         (elf_sym_fns): Add `sym_probe_fns' value.
6111         (elf_sym_fns_lazy_psyms): Likewise.
6112         (elf_sym_fns_gdb_index): Likewise.
6113         (_initialize_elfread): Initialize objfile cache for static
6114         probes.
6115         * gdb_vecs.h (struct probe): New forward declaration.
6116         (probe_p): New VEC declaration.
6117         * gdbarch.c: Regenerate.
6118         * gdbarch.h: Regenerate.
6119         * gdbarch.sh (stap_integer_prefix): New variable.
6120         (stap_integer_suffix): Likewise.
6121         (stap_register_prefix): Likewise.
6122         (stap_register_suffix): Likewise.
6123         (stap_register_indirection_prefix): Likewise.
6124         (stap_register_indirection_suffix): Likewise.
6125         (stap_gdb_register_prefix): Likewise.
6126         (stap_gdb_register_suffix): Likewise.
6127         (stap_is_single_operand): New function.
6128         (stap_parse_special_token): Likewise.
6129         (struct stap_parse_info): Forward declaration.
6130         * i386-tdep.c: Including headers needed to perform the parsing
6131         of SystemTap probes' arguments.
6132         (i386_stap_is_single_operand): New function.
6133         (i386_stap_parse_special_token): Likewise.
6134         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6135         probes' arguments parser.
6136         * i386-tdep.h (i386_stap_is_single_operand): New function.
6137         (i386_stap_parse_special_token): Likewise.
6138         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6139         * mipsread.c (ecoff_sym_fns): Likewise.
6140         * objfiles.c (objfile_relocate1): Support relocation for static
6141         probes.
6142         * parse.c (prefixify_expression): Remove static declaration.
6143         (initialize_expout): Likewise.
6144         (reallocate_expout): Likewise.
6145         * parser-defs.h (initialize_expout): Declare function.
6146         (reallocate_expout): Likewise.
6147         (prefixify_expression): Likewise.
6148         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6149         of SystemTap probes' arguments.
6150         (ppc_stap_is_single_operand): New function.
6151         (ppc_stap_parse_special_token): Likewise.
6152         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6153         probes' arguments parser.
6154         * probe.c: New file, for generic statically defined probe support.
6155         * probe.h: Likewise.
6156         * s390-tdep.c: Including headers needed to perform the parsing of
6157         SystemTap probes' arguments.
6158         (s390_stap_is_single_operand): New function.
6159         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6160         probes' arguments parser.
6161         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6162         * stap-probe.c: New file, for SystemTap probe support.
6163         * stap-probe.h: Likewise.
6164         * symfile.h: Include `gdb_vecs.h'.
6165         (struct sym_probe_fns): New struct.
6166         (struct sym_fns) <sym_probe_fns>: New field.
6167         * symtab.c (init_sal): Initialize `probe' field.
6168         * symtab.h (struct probe): Forward declaration.
6169         (struct symtab_and_line) <probe>: New field.
6170         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6171         locations.
6172         (stop_tracing): Likewise.
6173         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6174
6175 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6176             Tom Tromey  <tromey@redhat.com>
6177
6178         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6179         and to compile agent expressions.
6180         * infrun.c (siginfo_make_value): New argument `ignore'.
6181         (siginfo_funcs): New struct.
6182         (_initialize_infrun): New argument when calling
6183         `create_internalvar_type_lazy'.
6184         * thread.c (thread_id_make_value): New argument `ignore'.
6185         (thread_funcs): New struct.
6186         (_initialize_thread): New argument when calling
6187         `create_internalvar_type_lazy'.
6188         * tracepoint.c (sdata_make_value): New argument `ignore'.
6189         (sdata_funcs): New struct.
6190         (_initialize_tracepoint): New argument when calling
6191         `create_internalvar_type_lazy'.
6192         * value.c (make_value): New struct.
6193         (create_internalvar_type_lazy): New argument `data'.
6194         (compile_internalvar_to_ax): New function.
6195         (value_of_internalvar): Properly handling `make_value' case.
6196         (clear_internalvar): Likewise.
6197         (show_convenience): Adding `TRY_CATCH' block.
6198         * value.h (internalvar_make_value): Delete, replace by...
6199         (struct internalvar_funcs): ... this.
6200         (create_internalvar_type_lazy) <fun>: Delete argument.
6201         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6202         (compile_internalvar_to_ax): New function.
6203         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6204         (tlb_funcs): New struct.
6205         (_initialize_windows_tdep): New argument when calling
6206         `create_internalvar_type_lazy'.
6207
6208 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6209
6210         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6211         see whether it is an address or a constant offset from DW_AT_low_pc.
6212         (dwarf2_record_block_ranges): Likewise.
6213         (read_partial_die): Likewise.
6214
6215 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6216
6217         * MAINTAINERS (Write After Approval): Add myself to the list.
6218
6219 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6220
6221         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6222         (proc_prettyprint_signal): Likewise.
6223         (proc_prettyprint_faultset): Likewise.
6224         (proc_prettyprint_fault): Likewise.
6225         (proc_prettyprint_actionset): Likewise.
6226         (proc_prettyprint_flags): Move to new proc-flags.c section.
6227         (proc_prettyfprint_flags): New prototype.
6228         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6229         (proc_syscall, proc_cursig): Likewise.
6230         (proc_set_kill_on_last_close): Likewise.
6231         (proc_unset_kill_on_last_close): Likewise.
6232         (proc_set_watchpoint): Make static.
6233         (proc_delete_dead_threads): Likewise.
6234         (procfs_set_watchpoint): Likewise.
6235         (_initialize_procfs): Add prototype.
6236         * proc-events.c: Include proc-utils.h.
6237         (init_syscall_table): Make static.
6238         * proc-api.c (_initialize_proc_api): Add prototype.
6239         * proc-flags.c: Include proc-utils.h.
6240
6241 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6242
6243         * configure.ac: Add AC_ARG_PROGRAM.
6244         * configure: Regenerate.
6245
6246 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6247
6248         Fix DW_AT_lower_bound defaults for DWARF-4+.
6249         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6250         high.  New variable low_default_is_valid.  Implement DWARF-4+
6251         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6252         no default by the DWARF standard.
6253
6254 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6255             Maciej W. Rozycki  <macro@codesourcery.com>
6256
6257         * infrun.c (handle_inferior_event): Move the check for return
6258         trampolines ahead of the check for function trampolines.
6259         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6260         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6261         (mips_str_mips16_ret_stub): Likewise.
6262         (mips_str_call_fp_stub): Likewise.
6263         (mips_str_call_stub): Likewise.
6264         (mips_str_fn_stub): Likewise.
6265         (mips_str_pic): Likewise.
6266         (mips_in_frame_stub): New function.
6267         (mips_unwind_pc): Return the return address rather than the PC
6268         if the PC of an intermediate frame is inside a call thunk.
6269         (mips_is_stub_suffix): New function.
6270         (mips_is_stub_mode): Likewise.
6271         (mips_get_mips16_fn_stub_pc): Likewise.
6272         (mips_skip_mips16_trampoline_code): Update to handle all the
6273         currently generated stub types.  Don't recurse into __fn_stub
6274         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6275         Use cooked register accesses.
6276         (mips_in_return_stub): Reintroduce function.
6277         (mips_skip_trampoline_code): Traverse trampolines recursively.
6278         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6279
6280 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6281
6282         GDB 7.4.1 released.
6283
6284 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6285
6286         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6287         * features/arm-with-m-vfp-d16.xml: New file. Describes
6288         Cortex-M with VFPv4-sp-d16 FPU register layout.
6289         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6290         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6291         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6292         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6293         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6294
6295 2012-04-25  Doug Evans  <dje@google.com>
6296
6297         * cli/cli-decode.c (print_doc_line): Use stream instead of
6298         current_uiout.
6299
6300 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6301
6302         * features/arm-with-iwmmxt.c: Regenerate.
6303         * features/arm-with-m-fpa-layout.c: Likewise.
6304         * features/arm-with-m.c: Likewise.
6305         * features/arm-with-neon.c: Likewise.
6306         * features/arm-with-vfpv2.c: Likewise.
6307         * features/arm-with-vfpv3.c: Likewise.
6308         * features/mips-dsp-linux.c: Likewise.
6309         * features/mips-linux.c: Likewise.
6310         * features/mips64-dsp-linux.c: Likewise.
6311         * features/mips64-linux.c: Likewise.
6312         * features/s390-linux32.c: Likewise.
6313         * features/s390-linux32v1.c: Likewise.
6314         * features/s390-linux32v2.c: Likewise.
6315         * features/s390-linux64.c: Likewise.
6316         * features/s390-linux64v1.c: Likewise.
6317         * features/s390-linux64v2.c: Likewise.
6318         * features/s390x-linux64.c: Likewise.
6319         * features/s390x-linux64v1.c: Likewise.
6320         * features/s390x-linux64v2.c: Likewise.
6321         * features/tic6x-c62x-linux.c: Likewise.
6322         * features/tic6x-c62x.c: Likewise.
6323         * features/tic6x-c64x-linux.c: Likewise.
6324         * features/tic6x-c64x.c: Likewise.
6325         * features/tic6x-c64xp-linux.c: Likewise.
6326         * features/tic6x-c64xp.c: Likewise.
6327         * target-descriptions.c: Only generate `field_type' and `type'
6328         variables when needed.
6329
6330 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6331
6332         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6333
6334 2012-04-25  Doug Evans  <dje@google.com>
6335
6336         Initial pass at Go language support.
6337         * NEWS: Mention Go.
6338         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6339         go-valprint.c.
6340         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6341         (YYFILES): Add go-exp.c.
6342         (YYOBJ): Add go-exp.o.
6343         (local-maintainer-clean): Delete go-exp.c.
6344         * defs.h (enum language): Add language_go.
6345         * dwarf2read.c: #include "go-lang.h".
6346         (fixup_go_packaging): New function.
6347         (process_full_comp_unit): Call it when processing Go CUs.
6348         (dwarf2_physname): Add Go support.
6349         (read_file_scope): Handle missing language spec for GNU Go.
6350         (set_cu_language): Handle DW_LANG_Go.
6351         * go-exp.y: New file.
6352         * go-lang.h: New file.
6353         * go-lang.c: New file.
6354         * go-typeprint.c: New file.
6355         * go-valprint.c: New file.
6356         * symtab.c: #include "go-lang.h".
6357         (symbol_set_language): Handle language_go.
6358         (symbol_find_demangled_name, symbol_set_names): Ditto.
6359         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6360
6361 2012-04-24  Jim Meyering  <meyering@redhat.com>
6362
6363         avoid a few strncpy-induced buffer overruns
6364         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6365         fname and psargs before trying to concatenate.
6366         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6367         "name" before applying strchr.
6368
6369 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6370
6371         * CONTRIBUTE: Use unified diff instead of context diff when
6372         generating patches.
6373
6374 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6375
6376         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6377         code.  Handle JR.HB correctly.
6378
6379 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6380
6381         * mips-tdep.c
6382         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6383         with the other MIPS16 helpers.
6384
6385 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6386
6387         * observer.sh: Conditionally declare `args', thus cleaning up
6388         unused instances of this variable.
6389
6390 2012-04-24  Yao Qi  <yao@codesourcery.com>
6391
6392         Revert this patch to allow breakpoint always-inserted
6393         in record target.
6394         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6395         * breakpoint.c: Include record.h.
6396         (breakpoints_always_inserted_mode): Return false when the record
6397         target is in use.
6398
6399         * breakpoint.c (iterate_over_bp_locations): New.
6400         * breakpoint.h: Declare.
6401         New typedef walk_bp_location_callback.
6402         * record.c (record_open): Call record_init_record_breakpoints.
6403         (record_sync_record_breakpoints): New.
6404         (record_init_record_breakpoints): New.
6405         * NEWS: Mention supporting breakpoint always-inserted mode in
6406         record target.
6407
6408 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6409
6410         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6411         any thread.
6412
6413 2012-04-24  Yao Qi  <yao@codesourcery.com>
6414
6415         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6416         (is_catchpoint): ... it.
6417         (print_one_breakpoint_location): Caller update.
6418         * breakpoint.h: Update declaration.
6419
6420 2012-04-23  David S. Miller  <davem@davemloft.net>
6421
6422         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6423
6424 2012-04-23  Tom Tromey  <tromey@redhat.com>
6425
6426         * buildsym.c (add_free_pendings): Remove.
6427         * buildsym.h (add_free_pendings): Remove.
6428
6429 2012-04-23  Doug Evans  <dje@google.com>
6430
6431         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6432         attr.u.unsnd instead of attr.u.addr.
6433         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6434         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6435         DW_FORM_ref_udata.
6436         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6437         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6438         DW_FORM_ref_udata.
6439         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6440
6441 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6442
6443         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6444         (mips_o32_return_value): Likewise.
6445         (mips_o64_return_value): Likewise.
6446
6447 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6448
6449         * ada-lang.c (ada_evaluate_subexp): Add cases for
6450         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6451         their treatment in eval.c.
6452
6453 2012-04-21  David S. Miller  <davem@davemloft.net>
6454
6455         * sparc-tdep.c (X_DISP10): Define.
6456         (sparc_analyze_control_transfer): Handle compare-and-branch.
6457
6458 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6459
6460         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6461         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6462
6463 2012-04-20  Nigel Stephens  <nigel@mips.com>
6464             Maciej W. Rozycki  <macro@codesourcery.com>
6465
6466         * mips-tdep.c (mips_float_register_p): New function.
6467         (mips_convert_register_float_case_p): Use mips_float_register_p.
6468         (mips_register_type): Likewise.
6469         (mips_print_register): Likewise.
6470         (print_gp_register_row): Likewise.
6471         (mips_print_registers_info): Likewise.
6472
6473 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6474
6475         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6476         of mips16 symbols.
6477
6478 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6479
6480         * MAINTAINERS (Write After Approval): Add myself to the list.
6481
6482 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6483
6484         * MAINTAINERS: Update my e-mail address.
6485
6486 2012-04-20  Pedro Alves  <palves@redhat.com>
6487
6488         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6489         $srcdir.
6490         * configure: Regenerate.
6491
6492 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6493
6494         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6495         declaration.
6496         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6497
6498 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6499
6500         Fix compilation compatibility with python-2.4
6501         * python/py-type.c (convert_field): Cast ADDRSTRING for
6502         PyObject_SetAttrString as non-const.  New comment.
6503
6504 2012-04-19  Tom Tromey  <tromey@redhat.com>
6505
6506         * top.c (quit_target): Use all_cleanups.
6507         * main.c (captured_command_loop): Use all_cleanups.
6508         * exceptions.c (throw_exception): Use all_cleanups.
6509
6510 2012-04-19  Pedro Alves  <palves@redhat.com>
6511
6512         * Makefile.in (GNULIB_BUILDDIR): New.
6513         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6514         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6515         (CLEANDIRS). Remove gnulib/import.
6516         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6517         (all-lib): Ditto.
6518         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6519         (gnulib/import/Makefile): Replace gnulib/import with
6520         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6521         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6522         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6523         acx_configure_dir.m4.
6524         * acinclude.m4: Include acx_configure_dir.m4.
6525         * acx_configure_dir.m4: New file.
6526         * aclocal.m4: Regenerate.
6527         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6528         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6529         (GNULIB): New variable.
6530         (GNULIB_STDINT_H): Adjust.
6531         (AC_OUTPUT): Don't output gnulib/Makefile.
6532         * gdb/defs.h: Include build-gnulib/config.h.
6533         * aclocal.m4: Regenerate.
6534         * config.in: Regenerate.
6535         * configure: Regenerate.
6536
6537         * gnulib/Makefile.in: New file.
6538         * gnulib/configure.ac: New file.
6539         * gnulib/aclocal.m4: New file.
6540         * gnulib/config.in: New file.
6541         * gnulib/configure: New file.
6542         * gnulib/: Re-run gnulib-tool to adjust.
6543
6544 2012-04-19  Doug Evans  <dje@google.com>
6545
6546         * cleanups.h (struct cleanup): Move to cleanups.c.
6547         (make_cleanup_dtor_ftype): New typedef.
6548         (make_cleanup_dtor): Use it.
6549         (ALL_CLEANUPS): Replace with ...
6550         (all_cleanups): ... this.  Declare.  All uses updated.
6551         * cleanups.c: #include "gdb_assert.h".
6552         (sentinel_cleanup): New static global.
6553         (SENTINEL_CLEANUP): Define.
6554         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6555         (make_my_cleanup2): Assert result is non-NULL.
6556         (all_cleanups): New function.
6557         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6558         of NULL.
6559
6560 2012-04-19  Pedro Alves  <palves@redhat.com>
6561
6562         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6563         Adjust paths to gnulib imported files.
6564
6565 2012-04-19  Pedro Alves  <palves@redhat.com>
6566
6567         * gnulib/: Move whole directory ...
6568         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6569         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6570         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6571         (aclocal_m4_deps): Adjust.
6572         * aclocal.m4: Regenerate.
6573         * configure: Regenerate.
6574         * configure.ac: Adjust AC_OUTPUT output.
6575
6576 2012-04-19  Yao Qi  <yao@codesourcery.com>
6577
6578         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6579         (vec.o): New rule.
6580         * vec.c: Move it ...
6581         * common/vec.c: ... here.
6582         * vec.h: Move it ...
6583         * common/vec.h: ... here.
6584
6585 2012-04-19  Yao Qi  <yao@codesourcery.com>
6586
6587         * gdb-code-style.el: New.
6588
6589 2012-04-18  Pedro Alves  <palves@redhat.com>
6590
6591         Update gnulib from latest git.
6592         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6593
6594         * gnulib/Makefile.am: Update.
6595         * gnulib/dummy.c: Update.
6596         * gnulib/extra/arg-nonnull.h: Update.
6597         * gnulib/extra/c++defs.h: Update.
6598         * gnulib/extra/update-copyright: Update.
6599         * gnulib/extra/warn-on-use.h: Update.
6600         * gnulib/inttypes.in.h: Update.
6601         * gnulib/m4/00gnulib.m4: Update.
6602         * gnulib/m4/extensions.m4: Update.
6603         * gnulib/m4/gnulib-cache.m4: Update.
6604         * gnulib/m4/gnulib-common.m4: Update.
6605         * gnulib/m4/gnulib-comp.m4: Update.
6606         * gnulib/m4/gnulib-tool.m4: Update.
6607         * gnulib/m4/include_next.m4: Update.
6608         * gnulib/m4/inttypes-pri.m4: Update.
6609         * gnulib/m4/inttypes.m4: Update.
6610         * gnulib/m4/longlong.m4: Update.
6611         * gnulib/m4/memchr.m4: Update.
6612         * gnulib/m4/memmem.m4: Update.
6613         * gnulib/m4/mmap-anon.m4: Update.
6614         * gnulib/m4/multiarch.m4: Update.
6615         * gnulib/m4/onceonly.m4: Update.
6616         * gnulib/m4/stddef_h.m4: Update.
6617         * gnulib/m4/stdint.m4: Update.
6618         * gnulib/m4/string_h.m4: Update.
6619         * gnulib/m4/warn-on-use.m4: Update.
6620         * gnulib/m4/wchar_h.m4: Update.
6621         * gnulib/m4/wchar_t.m4: Update.
6622         * gnulib/m4/wint_t.m4: Update.
6623         * gnulib/memchr.c: Update.
6624         * gnulib/memmem.c: Update.
6625         * gnulib/stddef.in.h: Update.
6626         * gnulib/stdint.in.h: Update.
6627         * gnulib/str-two-way.h: Update.
6628         * gnulib/string.in.h: Update.
6629         * gnulib/wchar.in.h: Update.
6630
6631         * gnulib/extra/arg-nonnull.h: Delete.
6632         * gnulib/extra/c++defs.h: Delete.
6633         * gnulib/extra/warn-on-use.h: Delete.
6634         * gnulib/m4/wchar_h.m4: Delete.
6635         * gnulib/m4/wint_t.m4: Delete.
6636         * gnulib/wchar.in.h: Delete.
6637
6638         * gnulib/extra/snippets/arg-nonnull.h: New.
6639         * gnulib/extra/snippets/c++defs.h: New.
6640         * gnulib/extra/snippets/warn-on-use.h: New.
6641
6642         * aclocal.m4: Regenerate.
6643         * config.in: Regenerate.
6644         * configure: Regenerate.
6645         * gnulib/Makefile.in: Regenerate.
6646
6647 2012-04-18  Pedro Alves  <palves@redhat.com>
6648
6649         Reimport the update-copyright module from gnulib
6650         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6651
6652         * configure: Regenerate.
6653         * gnulib/Makefile.am: Update.
6654         * gnulib/Makefile.in: Regenerate.
6655         * gnulib/extra/update-copyright: Update.
6656         * gnulib/m4/gnulib-cache.m4: Update.
6657         * gnulib/m4/gnulib-comp.m4: Update.
6658
6659 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6660
6661         * configure.ac (aix): Put -lpthread into libs.
6662         * configure: Regenerate.
6663
6664 2012-04-18  Tom Tromey  <tromey@redhat.com>
6665
6666         * linespec.c (convert_linespec_to_sals): Don't use
6667         SYMBOL_OBJ_SECTION.
6668         (compare_msymbols): Arguments are minsym_and_objfile, not
6669         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6670
6671 2012-04-18  Pedro Alves  <palves@redhat.com>
6672
6673         Revert gnulib/ part of:
6674         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6675         Copyright year update in most files (performed by copyright.sh).
6676
6677 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6678
6679         Fix 64-bit constants on 32-bit hosts.
6680         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6681         from unsigned long to ULONGEST.
6682         (read_signed_leb128): Change declaration return type from long to
6683         LONGEST.
6684         (dwarf2_const_value_attr): Change declaration parameter value from long
6685         to LONGEST.
6686         (dwarf2_compute_name): Change variable value from long to LONGEST.
6687         (read_unsigned_leb128): Change return type, variable result and some
6688         casts from unsigned long to ULONGEST.
6689         (read_signed_leb128): Change return type, variable result and some
6690         casts from long to LONGEST.
6691         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6692         value from long to LONGEST.
6693         (dwarf2_const_value): Change variable value from long to LONGEST.
6694         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6695         plongest and hex_string.
6696         * symtab.h (struct general_symbol_info): Change ivalue from long to
6697         LONGEST, remove the comment.
6698         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6699         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6700
6701 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6702
6703         PR symtab/7259:
6704         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6705         * ada-lang.c (ada_discrete_type_high_bound)
6706         (ada_discrete_type_low_bound): Fix function comment.  Use
6707         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6708         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6709         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6710         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6711         Use TYPE_FIELD_ENUMVAL.
6712         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6713         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6714         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6715         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6716         TYPE_CODE_ENUM.
6717         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6718         * dwarf2read.c (process_enumeration_scope): Likewise.
6719         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6720         field.bitpos.
6721         (class StructMainTypePrettyPrinter): Support also
6722         FIELD_LOC_KIND_ENUMVAL.
6723         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6724         TYPE_CODE_ENUM.
6725         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6726         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6727         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6728         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6729         field enumval.
6730         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6731         accommodate enumval.
6732         (struct call_site): Adjust loc_kind to accommodate enumval.
6733         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6734         (TYPE_FIELD_ENUMVAL): New macros.
6735         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6736         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6737         TYPE_CODE_ENUM.
6738         * p-typeprint.c (pascal_type_print_base): Likewise.
6739         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6740         enumval.
6741         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6742         * python/py-type.c (convert_field): New variable addrstring.  Use
6743         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6744         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6745         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6746         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6747         TYPE_CODE_ENUM.
6748         * valprint.c (generic_val_print): Likewise.
6749
6750 2012-04-17  Doug Evans  <dje@google.com>
6751
6752         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6753
6754         * dwarf2read.c: Whitespace fixes.
6755         (lookup_signatured_type): Tweak comment.
6756         (get_die_type_at_offset): Fix comment.
6757
6758 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6759
6760         * xcoffread.c (xcoff_secnum_to_sections): New function.
6761         (secnum_to_section, secnum_to_bfd_section): Reimplement
6762         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6763         into "n_scnum".
6764         (RECORD_MINIMAL_SYMBOL): Delete.
6765         (record_minimal_symbol): New function.
6766         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6767         by call to record_minimal_symbol and set misc_func_recorded
6768         to 1.  Set last_csect_sec to the XCOFF section index instead
6769         of GDB's section_offset index.  Update calls to
6770         prim_record_minimal_symbol_and_info to pass the BFD section
6771         as well.
6772
6773 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6774
6775         * xcoffread.c (read_xcoff_symtab): Delete variables
6776         last_csect_val and last_csect_sec and associated code.
6777
6778 2012-04-17  Doug Evans  <dje@google.com>
6779
6780         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6781         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6782         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6783         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6784
6785         * cleanups.h: New file.
6786         * cleanups.c: New file.
6787         * Makefile.in (SFILES): Add cleanups.c.
6788         (HFILES_NO_SRCDIR): Add cleanups.h.
6789         (COMMON_OBS): Add cleanups.o.
6790         * defs.h (struct cleanup): Moved to cleanups.h.
6791         (do_cleanups,do_final_cleanups): Ditto.
6792         (discard_cleanups,discard_final_cleanups): Ditto
6793         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6794         (save_cleanups,save_final_cleanups): Ditto.
6795         (restore_cleanups,restore_final_cleanups): Ditto.
6796         (null_cleanup): Ditto.
6797         (make_my_cleanup,make_my_cleanup2): Ditto.
6798         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6799         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6800         (do_cleanups,do_final_cleanups): Ditto.
6801         (discard_cleanups,discard_final_cleanups): Ditto
6802         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6803         (save_cleanups,save_final_cleanups): Ditto.
6804         (restore_cleanups,restore_final_cleanups): Ditto.
6805         (null_cleanup): Ditto.
6806         (make_my_cleanup,make_my_cleanup2): Ditto.
6807         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6808
6809         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6810         make_my_cleanup.
6811         (make_cleanup_dyn_string_delete): Ditto.
6812         (make_cleanup_ui_file_delete): Ditto.
6813         (make_cleanup_ui_out_redirect_pop): Ditto.
6814         (make_cleanup_free_section_addr_info): Ditto.
6815         (make_cleanup_restore_integer): Ditto.
6816         (make_cleanup_unpush_target): Ditto.
6817         (make_cleanup_value_free_to_mark): Ditto.
6818         (make_cleanup_value_free): Ditto.
6819         (make_cleanup_free_so): Ditto.
6820
6821 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6822
6823         New option "set debug auto-load".
6824         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6825         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6826         (auto_load_safe_path_vec_update)
6827         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6828         if DEBUG_AUTO_LOAD.
6829         (file_is_auto_load_safe): New parameters debug_fmt and ....
6830         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6831         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6832         caller by explanatory string.
6833         (_initialize_auto_load): Register "set debug auto-load".
6834         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6835         and ....
6836         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6837         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6838         by explanatory string.
6839         * main.c (captured_main): Likewise.
6840         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6841         (source_section_scripts): Likewise.
6842
6843 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6844
6845         New option "set auto-load safe-path".
6846         * NEWS: New commands "set auto-load safe-path"
6847         and "show auto-load safe-path".
6848         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6849         (auto_load_safe_path, auto_load_safe_path_vec)
6850         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6851         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6852         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6853         (source_gdb_script_for_objfile): New variable is_safe.  Call
6854         file_is_auto_load_safe.  Return if it is not.
6855         (struct loaded_script): New field loaded.
6856         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6857         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6858         output "Missing" to "No".
6859         (_initialize_auto_load): New variable cmd.  Initialize
6860         auto_load_safe_path.  Register "set auto-load safe-path",
6861         "show auto-load safe-path" and "add-auto-load-safe-path".
6862         * auto-load.h (maybe_add_script): Add parameter loaded.
6863         (file_is_auto_load_safe): New declaration.
6864         * config.in: Regenerate.
6865         * configure: Regenerate.
6866         * configure.ac: New parameters --with-auto-load-safe-path
6867         and --without-auto-load-safe-path.
6868         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6869         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6870         * main.c (captured_main): Check file_is_auto_load_safe for
6871         LOCAL_GDBINIT.
6872         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6873         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6874         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6875         not.
6876
6877 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6878
6879         auto-load: Implementation.
6880         * NEWS: New descriptions for "info auto-load",
6881         "info auto-load gdb-scripts", "info auto-load python-scripts",
6882         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6883         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6884         and "show auto-load-scripts".  New description for "set auto-load",
6885         "show auto-load", "set auto-load gdb-scripts",
6886         "show auto-load gdb-scripts", "set auto-load python-scripts",
6887         "show auto-load python-scripts", "set auto-load local-gdbinit",
6888         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6889         "show auto-load libthread-db".
6890         * auto-load.c: Remove include python/python-internal.h.  Add includes
6891         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6892         cli/cli-setshow.h.
6893         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6894         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6895         (gdbpy_global_auto_load): Rename to ...
6896         (global_auto_load): ... here.
6897         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6898         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6899         (script_language_gdb, source_gdb_script_for_objfile): New.
6900         (struct loaded_script): New field language.
6901         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6902         LANGUAGE.
6903         (maybe_add_script): Add parameter language.  Drop redundant
6904         entry.full_path initialization.  Initialize entry.language and
6905         (*slot)->language.
6906         (auto_load_objfile_script): Change parameter suffix to language.
6907         Remove the call of maybe_add_script.
6908         Call language->source_script_for_objfile.
6909         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6910         New.
6911         (collect_matching_scripts): Adjust it for
6912         struct collect_matching_scripts_data.
6913         (auto_load_info_scripts_pattern_nl): New variable.
6914         (info_auto_load_scripts): Rename to ...
6915         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6916         for struct collect_matching_scripts_data.
6917         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6918         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6919         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6920         (auto_load_info_cmdlist_get): New.
6921         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6922         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6923         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6924         "info auto-load local-gdbinit".
6925         * auto-load.h (struct script_language): New.
6926         (gdbpy_global_auto_load): Rename to ...
6927         (global_auto_load): ... here.
6928         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6929         (auto_load_local_gdbinit_loaded): New declarations.
6930         (maybe_add_script): New parameter language.
6931         (auto_load_objfile_script): Change parameter suffix to language.
6932         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6933         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6934         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6935         declarations.
6936         * linux-thread-db.c: Include auto-load.h and ctype.h.
6937         (auto_load_thread_db, show_auto_load_thread_db): New.
6938         (struct thread_db_info): New field filename.
6939         (delete_thread_db_info): Call xfree for FILENAME.
6940         (try_thread_db_load): Initialize FILENAME.
6941         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6942         if !AUTO_LOAD_THREAD_DB.
6943         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6944         (_initialize_thread_db): Install auto_load_thread_db
6945         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6946         as "info auto-load libthread-db".
6947         * main.c (captured_main): Rename gdbpy_global_auto_load to
6948         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6949         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6950         (print_gdb_help): Extend the help for 'local init file'.
6951         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6952         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6953         (auto_load_scripts): Rename to ...
6954         (auto_load_python_scripts): ... here, update the comment.
6955         (gdbpy_load_auto_script_for_objfile): New declaration.
6956         (show_auto_load_python_scripts, script_language_python)
6957         (gdbpy_load_auto_script_for_objfile): New.
6958         (source_section_scripts): Refactor the code.
6959         (load_auto_scripts_for_objfile): Rename to ...
6960         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6961         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6962         (info_auto_load_python_scripts): New.
6963         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6964         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6965         Register "set auto-load-scripts" as its deprecated alias.  Register
6966         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6967         its deprecated alias.
6968         (load_auto_scripts_for_objfile): Rename to ...
6969         (gdbpy_load_auto_scripts_for_objfile): ... here.
6970         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6971         (gdbpy_load_auto_scripts_for_objfile): ... here.
6972
6973 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6974
6975         auto-load: Move files.
6976         * Makefile.in (SFILES): Add auto-load.c.
6977         (HFILES_NO_SRCDIR): Add auto-load.h.
6978         (COMMON_OBS): Add auto-load.o.
6979         (distclean): Change .gdbinit for gdb-gdb.gdb.
6980         * auto-load.c: New file, with parts from python/py-auto-load.c.
6981         * auto-load.h: New file, with parts from python/python.h.
6982         * configure: Regenerate.
6983         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6984         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6985         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6986         * main.c: Include auto-load.h.
6987         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6988         command.h, observer.h and progspace.h to auto-load.c.  Add include
6989         auto-load.h.
6990         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6991         (struct loaded_script, auto_load_pspace_data)
6992         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6993         (hash_loaded_script_entry, eq_loaded_script_entry)
6994         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6995         (maybe_add_script): Move to auto-load.c.
6996         (source_section_scripts): Change maybe_add_script parameters passing,
6997         use script_not_found_warning_print.
6998         (clear_section_scripts, auto_load_objfile_script)
6999         (auto_load_new_objfile, loaded_script_ptr)
7000         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7001         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7002         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7003         auto_load_new_objfile and info_auto_load_scripts initizations to
7004         auto-load.c.
7005         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7006
7007 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7008
7009         Code cleanup.
7010         * charset.c (find_charset_names): Remove variables ix and elt.
7011         Use free_char_ptr_vec.
7012         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7013         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7014         debugdir_end.  New variable debugdir_len.
7015         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7016         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7017         declarations.
7018         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7019         and elt.  Use free_char_ptr_vec.
7020         * source.c (add_path): Remove variables argv, arg and argv_index.
7021         New variables dir_vec, back_to, ix and name.
7022         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7023         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7024         no longer expecting DIRNAME_SEPARATOR.
7025         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7026         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7027         no longer expecting DIRNAME_SEPARATOR.
7028         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7029         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7030         debugdir_end.
7031         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7032         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7033         (dirnames_to_char_ptr_vec): New functions.
7034
7035 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7036
7037         Code cleanup.
7038         * source.c (add_path): Remove always true conditional 'p == 0' and
7039         unindent its code block.
7040
7041 2012-04-17  Pedro Alves  <palves@redhat.com>
7042
7043         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7044         (FIELD_BITPOS_LVAL): ... this.
7045         (FIELD_BITPOS): New.
7046         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7047         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7048         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7049         SET_FIELD_BITPOS.
7050         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7051         SET_FIELD_BITPOS.
7052         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7053         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7054         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7055         SET_FIELD_BITPOS.
7056
7057 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7058
7059         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7060         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7061         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7062         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7063         * jv-lang.c (java_link_class_type): Likewise, once.
7064         * stabsread.c (read_enum_type): Likewise.
7065
7066 2012-04-16  Yao Qi  <yao@codesourcery.com>
7067
7068         * common/agent.c (agent_run_command): Add one more parameter `len'.
7069         Update callers.
7070         * common/agent.h: Update declaration.
7071         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7072         Update.
7073         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7074
7075 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7076
7077         PR mi/13393
7078         * value.c (value_actual_type): New function.
7079         * value.h (value_actual_type): New declaration.
7080         * varobj.c (update_type_if_necessary): New function.
7081         (varobj_create): Call value_actual_type instead of
7082         value_type.
7083         (install_dynamic_child): distinct changed and type changed MI variable
7084         objects.
7085         (update_dynamic_varobj_children): Updated for install_dynamic_child
7086         change.  All callers updated.
7087         (varobj_update): Support for MI variable object type change if
7088         the value changed and RTTI is used to determine the type.
7089         (create_child_with_value): Call value_actual_type instead of
7090         value_type.
7091         (adjust_value_for_child_access): Extended with a new parameter which
7092         specify whether the given value should be casted to enclosing type.
7093         All callers updated.
7094
7095 2012-04-14  Yao Qi  <yao@codesourcery.com>
7096
7097         Import gnulib module inttypes from git
7098         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7099         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7100         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7101         gnulib/m4/inttypes-pri.m4
7102         * aclocal.m4, config.in, configure: Regenerated.
7103         * gnulib/Makefile.am: Update.
7104         * gnulib/Makefile.in: Update.
7105         * gnulib/m4/gnulib-cache.m4: Update.
7106         * gnulib/m4/gnulib-comp.m4: Update.
7107         * gnulib/inttypes.in.h: New.
7108         * gnulib/m4/inttypes-pri.m4: New.
7109         * gnulib/m4/inttypes.m4: New.
7110
7111 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7112
7113         * infrun.c (resume): Update PC address to the real PC after
7114         preparing to do displaced stepping.
7115
7116 2012-04-12  Doug Evans  <dje@google.com>
7117
7118         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7119         All callers updated.
7120
7121 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7122
7123         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7124
7125 2012-04-12  Doug Evans  <dje@google.com>
7126
7127         * dwarf2read.c (create_all_type_units): Renamed from
7128         create_debug_types_hash_table.  All callers updated.
7129
7130         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7131         local type_sig to sig_type, type_offset to type_offset_in_tu.
7132         (hash_signatured_type): Renamed from hash_type_signature,
7133         all callers updated.
7134         (eq_signatured_type): Renamed from eq_type_signature,
7135         all callers updated.
7136         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7137         (process_enumeration_scope): Ditto.
7138         (lookup_signatured_type_at_offset): Ditto.
7139         (load_full_type_unit, read_signatured_type): Ditto.
7140
7141 2012-04-12  Yao Qi  <yao@codesourcery.com>
7142
7143         * remote.c (async_remote_interrupt): Correct function name in
7144         debug message.
7145         (async_remote_interrupt_twice): Ditto.
7146
7147 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7148
7149         * source.c (find_and_open_source): Consistently pass resulting
7150         full path through xfullpath.
7151
7152 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7153
7154         Provide more specific displaced-stepping memory error message.
7155         * infrun.c (displaced_step_prepare): New variable status.  Call
7156         target_read_memory instead of read_memory, provide more specific
7157         error message.
7158
7159 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7160
7161         PR gdb/13901
7162         * darwin-nat.c (darwin_execvp): Revert previous patch.
7163
7164 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7165
7166         PR gdb/13901
7167         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7168         in case of change.
7169
7170 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7171
7172         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7173         warning.
7174
7175 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7176
7177         New command 'explore' which helps explore values and types in
7178         scope.
7179         * NEWS: Add an entry about the new 'explore' command.
7180         * data-directory/Makefile.in: Add gdb/command/explore.py
7181         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7182         command using the GDB Python API.
7183
7184 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7185
7186         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7187         extension in jump target calculation.
7188
7189 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7190
7191         * mips-tdep.c (mips32_next_pc): Handle JALX.
7192
7193 2012-04-10  Yao Qi  <yao@codesourcery.com>
7194
7195         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7196
7197 2012-04-10  Yao Qi  <yao@codesourcery.com>
7198
7199         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7200         and gnulib/m4/gnulib-tool.m4.
7201
7202 2012-04-10  Doug Evans  <dje@google.com>
7203
7204         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7205         (load_partial_dies): Clarify comment.
7206         (find_partial_die): Support rereading type units.
7207         Clarify CU handling, if we know offset is in CU, don't search for the
7208         containing CU.  Add comment regarding memory waste.
7209
7210 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7211
7212         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7213         i386/x32-avx and i386/x32-avx-linux.
7214         (i386/x32-expedite): New.
7215         (i386/x32-linux-expedite): Likewise.
7216         (i386/x32-avx-expedite): Likewise.
7217         (i386/x32-avx-linux-expedite): Likewise.
7218         ($(outdir)/i386/x32.dat): Likewise.
7219         ($(outdir)/i386/x32-linux.dat): Likewise.
7220         ($(outdir)/i386/x32-avx.dat): Likewise.
7221         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7222
7223         * features/i386/x32-avx-linux.xml: New file.
7224         * features/i386/x32-avx.xml: Likewise.
7225         * features/i386/x32-core.xml: Likewise.
7226         * features/i386/x32-linux.xml: Likewise.
7227         * features/i386/x32.xml: Likewise.
7228
7229         * features/i386/x32-avx-linux.c: New.  Generated.
7230         * features/i386/x32-avx.c: Likewise.
7231         * features/i386/x32-linux.c: Likewise.
7232         * features/i386/x32.c: Likewise.
7233         * regformats/i386/x32-avx-linux.dat: Likewise.
7234         * regformats/i386/x32-avx.dat: Likewise.
7235         * regformats/i386/x32-linux.dat: Likewise.
7236         * regformats/i386/x32.dat: Likewise.
7237
7238 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7239
7240         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7241         code to kill the inferior.
7242
7243 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7244
7245         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7246         defines.
7247         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7248         defines.
7249         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7250         (yyvsp): New defines.
7251         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7252         defines.
7253         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7254         defines.
7255         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7256         defines.
7257         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7258         defines.
7259         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7260         defines.
7261
7262 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7263
7264         * sparc64-tdep.c (sparc64_store_arguments)
7265         (sparc64_store_arguments): Fix coding style.
7266
7267 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7268
7269         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7270         complex floats, adjust some related comments and tighten a related
7271         assertion.
7272         (sparc64_extract_return_value): Handle complex floats.
7273
7274 2012-04-07  Doug Evans  <dje@google.com>
7275
7276         * dwarf2read.c (load_partial_dies): Change condition to assert.
7277
7278 2012-04-06  Doug Evans  <dje@google.com>
7279
7280         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7281         "mov %rsp,%rbp".
7282
7283 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7284
7285         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7286         fencepost error.
7287         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7288         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7289         architecture.
7290
7291 2012-04-05  Keith Seitz  <keiths@redhat.com>
7292
7293         * linespec.c (decode_compound): Remove.
7294         (enum offset_relative_sign): New enum.
7295         (struct line_offset): New struct.
7296         (struct linespec): New struct.
7297         (struct linespec_state): Move file_symtabs,
7298         user_filename, and user_function into struct linespec.
7299         Make result an anonymous struct holding vectors of
7300         symbolp and minsym_and_objfile_d.
7301         Add language member.
7302         (enum ls_token_type): New enum.
7303         (linespec_keywords): New array.
7304         (struct ls_token): New struct.
7305         (struct ls_parser): New struct.
7306         (linespec_lexer_lex_number): New function.
7307         (linespec_lexer_lex_keyword): New function.
7308         (is_ada_operator): New function.
7309         (skip_quote_char): New function.
7310         (copy_token_string): New function.
7311         (is_closing_quote_enclosed): New function.
7312         (find_parameter_list_end): New function.
7313         (linespec_lexer_lex_string): New function.
7314         (linespec_lexer_lex_one): New function.
7315         (linespec_lexer_consume_token): New function.
7316         (linespec_lexer_peek_token): New function.
7317         (cplusplus_error): Remove unused function.
7318         (find_methods): Update comment.
7319         (find_toplevel_char): Return const.
7320         (is_objc_method_format): Remove unused function.
7321         (find_toplevel_string): New function.
7322         (is_linespec_boundary): Remove.
7323         (symbol_not_found_error): New function.
7324         (find_method_overload_end): Remove function.
7325         (unexpected_linespec_error): New function.
7326         (keep_name_info): Remove.
7327         (linespec_parse_line_offset): New function.
7328         (linespec_parse_basic): New function.
7329         (canonicalize_linespec): New function.
7330         (decode_line_internal): Remove.
7331         (create_sals_line_offset): New function adapted from
7332         decode_all_digits.
7333         (convert_linespec_to_sals): New function.
7334         (parse_linespec): New function.
7335         (linespec_parser_new): New function.
7336         (linespec_state_destructor): Change parameter type to
7337         struct linespec_state *.
7338         Add language parameter.
7339         Remove freeing of moved members.
7340         (linespec_parser_delete): New function.
7341         (decode_line_full): Use parse_linespec and linespec_parser_new.
7342         (decode_line_1): Likewise.
7343         (decode_indirect): Rename to ...
7344         (linespec_expression_to_pc): ... this and rewrite
7345         to simply find CORE_ADDR, storing this result for later
7346         conversion to SALs.
7347         (locate_first_half): Remove.
7348         (deocde_objc): Add parameter LS.
7349         Initialize new struct collect_info members.
7350         Handle minimal symbols, too.
7351         (decode_compound): Delete.
7352         (lookup_prefix_sym): Rewrite.
7353         (compare_msymbols): New function.
7354         (find_method): Rewrite.
7355         Do not call cplusplus_error.
7356         (symtabs_from_filename): Rewrite.
7357         (collect_function_symbols): Delete.
7358         (find_function_symbols): Rewrite without ARGPTR-style
7359         processing.
7360         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7361         (decode_dollar): Adapted and renamed to ...
7362         (linespec_parse_variable): ... this.
7363         (find_linespec_symbols): New function.
7364         (decode_label): Adapted and renamed to ...
7365         (find_label_symbols): ... this.
7366         (decode_digits_list_mode): Add and use LS argument.
7367         (decode_digits_ordinary): Likewise.
7368         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7369         If in list mode, allow any symbol class.  Otherwise, only
7370         permit LOC_BLOCK symbols.
7371         (minsym_found): Update comments.
7372         (search_minsyms_for_name): Do not convert the matching symbol
7373         into a SAL.  Simply push the symbol and objfile into the
7374         result vector.
7375         (decode_variable): Delete. Contents adapted into
7376         find_linespec_symbols.
7377
7378         * cp-support.c (SKIP_SPACE): Remove.
7379         (operator_tokens): Remove unused global.
7380         (cp_validate_operator): Remove.
7381         * cp-support.h (cp_validate_operator): Remove declaration.
7382
7383 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7384
7385         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7386         for TYPE_VPTR_FIELDNO.
7387         * valprint.c (valprint_check_validity): Make it global, move the
7388         function comment ...
7389         * value.h (valprint_check_validity): ... to this new declaration.
7390
7391 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7392
7393         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7394         the STATE32 api for i386 state.
7395         (i386_darwin_store_inferior_registers): Likewise.
7396
7397 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7398
7399         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7400         SS offset.
7401         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7402         format_string.
7403
7404 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7405
7406         PR gdb/13901
7407         * darwin-nat.c (darwin_execvp): Set binary preference.
7408
7409 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7410
7411         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7412
7413 2012-03-30  Tom Tromey  <tromey@redhat.com>
7414
7415         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7416         of TRY_CATCH.  Fix error handling.
7417         * python/py-value.c (convert_value_from_python): Move 'old'
7418         declaration to innermost scope.
7419
7420 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7421             Andrey Smirnov  <andrew.smirnov@gmail.com>
7422
7423         -Wshadow warning fix.
7424         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7425         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7426         Adjust code accordingly.
7427
7428 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7429
7430         * ada-lang.c (symbol_completion_add): Rename parameter
7431         "encoded" into "encoded_p".  Ajust code and documentation
7432         accordingly.
7433
7434 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7435             Andrey Smirnov  <andrew.smirnov@gmail.com>
7436
7437         -Wshadow warning fix.
7438         * ada-lang.c (symbol_completion_add): Rename parameter
7439         "wild_match" into wild_match_p.  Update code and documentation
7440         accordingly.
7441
7442 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7443
7444         * ada-lang.c (symbol_completion_match): Rename parameter
7445         "encoded" into "encoded_p".  Ajust code and documentation
7446         accordingly.
7447
7448 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7449             Andrey Smirnov  <andrew.smirnov@gmail.com>
7450
7451         -Wshadow warning fix.
7452         * ada-lang.c (symbol_completion_match): Rename parameter
7453         "wild_match" into "wild_match_p".  Adjust code and function
7454         documentation accordingly.
7455
7456 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7457             Andrey Smirnov  <andrew.smirnov@gmail.com>
7458
7459         -Wshadow warning fix.
7460         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7461         "symbol_info" into "info".  Adjust code accordingly.
7462         (ada_lookup_symbol): Likewise.
7463
7464 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7465
7466         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7467         of this function's documentation.
7468
7469 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7470             Andrey Smirnov  <andrew.smirnov@gmail.com>
7471
7472         -Wshadow warning fix.
7473         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7474         variable into "wild_match_p".  Adjust code accordingly.
7475
7476 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7477             Andrey Smirnov  <andrew.smirnov@gmail.com>
7478
7479         -Wshadow warning fix.
7480         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7481         parameter into "wild_match_p".  Adjust code accordingly.
7482         Document this parameter in the function description.
7483
7484 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7485             Andrey Smirnov  <andrew.smirnov@gmail.com>
7486
7487         -Wshadow warning fix.
7488         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7489         "wild_match" parameter to "wild_match_p" (-Wshadow).
7490
7491 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7492
7493         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7494         in function documentation.
7495
7496 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7497             Andrey Smirnov  <andrew.smirnov@gmail.com>
7498
7499         -Wshadow warning fix.
7500         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7501         variable into wild_match_p.  Adjust code accordingly.
7502
7503 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7504             Andrey Smirnov  <andrew.smirnov@gmail.com>
7505
7506         * ada-valprint.c (ada_val_print_1): Move the code handling
7507         TYPE_CODE_ENUM inside its own lexical block.  Declare
7508         variables len and val there, instead of in the function's
7509         top level block.  Avoid declaring deref_val again in a way
7510         that shadows another variable of the same name declared
7511         in one of the up-level blocks.  Just re-use the up-level
7512         variable instead.
7513
7514 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7515
7516         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7517         Replace block_found argument by symbol_info.  Adjust
7518         implementation accordingly.  Add function documentation.
7519         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7520         Fix documentation.
7521         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7522         * ada-exp.y (write_object_renaming): Adjust to new
7523         ada_lookup_encoded_symbol API.
7524
7525 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7526
7527         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7528         documentation.
7529
7530 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7531
7532         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7533         (v850_register_name): Add the mpu and fpu register names.
7534         (v850e_register_name): Add the mpu and fpu register names.
7535         (v850e2_register_name): New function.
7536         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7537         bfd_mach_v850e2v3.
7538
7539 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7540
7541         * NEWS: Add entry for Ada varobj support.
7542
7543 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7544
7545         * varobj.c (default_value_is_changeable_p): New function,
7546         extracted from varobj_value_is_changeable_p.  Add declaration.
7547         (ada_value_is_changeable_p): New function, extracted from
7548         varobj_value_is_changeable_p.  Add declaration.
7549         (struct language_specific): New field "value_is_changeable_p".
7550         (languages): Add entries for new field.
7551         (varobj_create): Set language before calling install_new_value.
7552         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7553         "value_is_changeable_p" language callback.
7554
7555 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7556
7557         * ada-varobj.h, ada-varobj.c: New files.
7558         * Makefile.in (SFILES): Add ada-varobj.c.
7559         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7560         (COMMON_OBS): Add ada-varobj.o.
7561
7562 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7563
7564         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7565         (struct language_specific): New field "value_has_mutated".
7566         (languages): Set field "value_has_mutated" in each entry of array.
7567         (varobj_value_has_mutated): New function.
7568         (varobj_udpdate): Add handling of type mutation.
7569         (value_of_root): Add handling of type mutation.
7570         (ada_value_has_mutated): New function.
7571
7572 2012-03-28  Pedro Alves  <palves@redhat.com>
7573
7574         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7575         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7576
7577 2012-03-28  Tom Tromey  <tromey@redhat.com>
7578
7579         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7580         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7581         before returning.
7582
7583 2012-03-28  Tom Tromey  <tromey@redhat.com>
7584
7585         * .dir-locals.el: New file.
7586
7587 2012-03-28  Pedro Alves  <palves@redhat.com>
7588
7589         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7590
7591 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7592
7593         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7594         handling for r0.
7595
7596 2012-03-27  Pedro Alves  <palves@redhat.com>
7597
7598         Eliminate struct ui_stream.
7599
7600         * ui-out.h (struct ui_stream): Delete.
7601         (ui_out_field_stream): Adjust prototype.
7602         (ui_out_stream_new, ui_out_stream_delete)
7603         (make_cleanup_ui_out_stream_delete): Delete declarations.
7604         * ui-out.c (ui_out_field_stream): Change prototype to take a
7605         ui_file instead of a ui_stream.  Adjust.
7606         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7607         (make_cleanup_ui_out_stream_delete): Delete.
7608         * breakpoint.c (print_breakpoint_location)
7609         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7610         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7611         * disasm.c (dump_insns): Ditto.
7612         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7613         prototype.
7614         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7615         ui_stream/ui_out_stream_new.
7616         * infcmd.c (print_return_value): Ditto.
7617         * osdata.c (info_osdata_command): Don't allocate a local
7618         ui_stream.
7619         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7620         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7621         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7622         allocate a local ui_stream.
7623         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7624         instead of ui_stream/ui_out_stream_new.
7625         (list_args_or_locals): Don't allocate a local ui_stream.
7626         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7627         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7628         ui_stream/ui_out_stream_new.
7629         * cli/cli-setshow.c (do_setshow_command): Ditto.
7630
7631 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7632
7633         * arm-linux-tdep.c (arm_linux_init_abi): Call
7634         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7635         * arm-tdep.c (arm_process_record): New function.
7636         (deallocate_reg_mem): New function.
7637         (decode_insn): New function.
7638         (thumb_record_branch): New function.
7639         (thumb_record_ldm_stm_swi(): New function.
7640         (thumb_record_misc): New function.
7641         (thumb_record_ld_st_stack): New function.
7642         (thumb_record_ld_st_imm_offset): New function.
7643         (thumb_record_ld_st_reg_offset(): New function.
7644         (thumb_record_add_sub_cmp_mov): New function.
7645         (thumb_record_shift_add_sub): New function.
7646         (arm_record_coproc_data_proc): New function.
7647         (arm_record_coproc): New function.
7648         (arm_record_b_bl): New function.
7649         (arm_record_ld_st_multiple): New function.
7650         (arm_record_ld_st_reg_offset): New function.
7651         (arm_record_ld_st_imm_offset): New function.
7652         (arm_record_data_proc_imm): New function.
7653         (arm_record_data_proc_misc_ld_str): New function.
7654         (arm_record_extension_space): New function.
7655         (arm_record_strx): New function.
7656         (sbo_sbz): New function.
7657         (struct insn_decode_record): New structure for arm insn record.
7658         (REG_ALLOC): New macro for reg allocations.
7659         (MEM_ALLOC): New macro for memory allocations.
7660         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7661
7662 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7663
7664         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7665         (store_register): Likewise.
7666
7667 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7668
7669         * MAINTAINERS (Write After Approval): Add myself to the list.
7670
7671 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7674         Describe also the option "auto".
7675
7676 2012-03-22  Richard Henderson  <rth@redhat.com>
7677
7678         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7679         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7680
7681 2012-03-22  Richard Henderson  <rth@redhat.com>
7682
7683         * jit.c (jit_read_code_entry): Compute alignment and offset of
7684         int64_t member before computing entry_size.
7685
7686 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7687
7688         Python scripting: Add new method Value.referenced_value to
7689         gdb.Value which can dereference pointer as well as reference
7690         values.
7691         * NEWS: Add entry under 'Python scripting' about the new method
7692         Value.referenced_value on gdb.Value objects.
7693         * python/py-value.c (valpy_referenced_value): New function
7694         defining a new method on gdb.Value objects which can dereference
7695         pointer and reference values.
7696
7697 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7698
7699         * MAINTAINERS (Write After Approval): Add myself to the list.
7700
7701 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7702
7703         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7704         in addition to "main".
7705
7706 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7707
7708         * expression.h (op_name): Add declaration.
7709         * expprint.c (op_name): Remove declaration.  Make non-static.
7710         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7711
7712 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7713
7714         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7715         of struct siginfo.
7716         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7717         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7718         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7719         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7720         (linux_nat_get_siginfo): Likewise.
7721         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7722         (linux_nat_get_siginfo): Likewise.
7723         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7724         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7725         * procfs.c (gdb_siginfo_t): Likewise.
7726
7727 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7728
7729         * .gitignore: Ignore more files.
7730
7731 2012-03-20  Pedro Alves  <palves@redhat.com>
7732
7733         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7734         returns.
7735
7736 2012-03-20  Yao Qi  <yao@codesourcery.com>
7737
7738         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7739         comment.
7740
7741 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7742
7743         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7744         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7745         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7746         sect_offset.
7747         * dwarf2expr.h (cu_offset, sect_offset): New types.
7748         (struct dwarf_expr_context_funcs) <dwarf_call>
7749         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7750         sect_offset.
7751         (struct dwarf_expr_context) <len>: Improve the comment.
7752         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7753         cu_offset and sect_offset.
7754         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7755         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7756         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7757         * dwarf2loc.h: Include dwarf2expr.h.
7758         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7759         and sect_offset.
7760         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7761         Improve the comment.
7762         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7763         (struct signatured_type, struct line_header, struct partial_die_info)
7764         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7765         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7766         (get_die_type_at_offset, create_cus_from_index)
7767         (create_signatured_type_table_from_index, dw2_get_file_names)
7768         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7769         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7770         (create_debug_types_hash_table, process_psymtab_comp_unit)
7771         (load_partial_comp_unit, create_all_comp_units)
7772         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7773         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7774         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7775         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7776         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7777         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7778         (find_partial_die, read_attribute_value, lookup_die_type)
7779         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7780         (is_ref_attr): New function comment.
7781         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7782         Use cu_offset and sect_offset.
7783         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7784         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7785         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7786         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7787         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7788         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7789         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7790         sect_offset.
7791
7792 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7793
7794         Code cleanup.
7795         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7796         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7797         with xfree.
7798         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7799
7800 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7801
7802         * NEWS: Describe new options --init-command=FILE, -ix and
7803         --init-eval-command=COMMAND, -iex.
7804         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7805         CMDARG_INIT_COMMAND.
7806         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7807         "init-command", "init-eval-command", "ix" and "iex" to the variable
7808         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7809         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7810         (print_gdb_help): Describe --init-command=FILE, -ix and
7811         --init-eval-command=COMMAND, -iex.
7812
7813 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7814
7815         Code cleanup.
7816         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7817         (cmdarg_s, VEC (cmdarg_s)): New.
7818         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7819         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7820         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7821         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7822         of CMDARG.
7823
7824 2012-03-19  Tom Tromey  <tromey@redhat.com>
7825
7826         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7827
7828 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7829
7830         PR symtab/13777
7831         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7832         GCC >=4.5.
7833
7834 2012-03-16  Chris January  <chris.january@allinea.com>
7835
7836         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7837         of clear.
7838
7839 2012-03-16  Chris January  <chris.january@allinea.com>
7840
7841         * source.c (add_path): Use memmove instead of strcpy because the
7842         strings overlap.
7843
7844 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7845
7846         * value.h (set_value_parent): Add declaration.
7847         * value.c (set_value_parent): New function.
7848         (value_address): If VALUE->PARENT is not NULL, then use it as
7849         the base address instead of VALUE->LOCATION.address.
7850         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7851         the same as OBJ's address.  Adjust V's offset accordingly.
7852         Set V's parent.
7853
7854 2012-03-16  Gary Benson  <gbenson@redhat.com>
7855
7856         PR breakpoints/10738
7857         * dwarf2read.c (use_deprecated_index_sections): New global.
7858         (struct partial_die_info): New member may_be_inlined.
7859         (read_partial_die): Set may_be_inlined where appropriate.
7860         (add_partial_subprogram): Add partial symbols for partial
7861         DIEs that may be inlined.
7862         (new_symbol_full): Add inlined subroutines to the current
7863         scope.
7864         (write_psymtabs_to_index): Bump version number.
7865         (dwarf2_read_index): Read only version 6 indices unless
7866         use_deprecated_index_sections is set.
7867         * linespec.c (symbol_and_data_callback): New structure.
7868         (iterate_inline_only): New function.
7869         (iterate_over_all_matching_symtabs): New argument
7870         "include_inline".  If nonzero, also call the callback for
7871         symbols representing inlined subroutines.
7872         (lookup_prefix_sym): Pass extra argument to the above.
7873         (find_function_symbols): Likewise.
7874         (add_matching_symbols_to_info): Likewise.
7875         * NEWS: Mention that GDB can now set breakpoints on inlined
7876         functions.
7877
7878 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7879
7880         * p-typeprint.c (pascal_type_print_method_args):
7881         Fix display of parameter of methods.
7882
7883 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7884
7885         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7886         Add missing prototype.
7887
7888 2012-03-16  Yao Qi  <yao@codesourcery.com>
7889             Jan Kratochvil  <jan.kratochvil@redhat.com>
7890
7891         Fix false compilation warning.
7892         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7893
7894 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7895             Pedro Alves  <pedro@codesourcery.com>
7896
7897         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7898         (arm_register_g_packet_guesses): New function.
7899         (arm_gdbarch_init): Don't force a target description with
7900         registers when the executable is detected as M-profile.  Instead
7901         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7902         (_initialize_arm_tdep): Initialize the new target description.
7903         * features/arm-with-m-fpa-layout.xml: New description.
7904         * features/arm-with-m-fpa-layout.c: New, generated.
7905
7906 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7907
7908         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7909         Update function description.
7910         (insert_bp_location): Do not wipe bl->target_info out.
7911         * mem-break.c: #include "gdb_string.h".
7912         (default_memory_insert_breakpoint): Do not call target_read_memory
7913         with a pointer to the breakpoint's shadow_contents buffer.  Use
7914         a local buffer instead.
7915         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7916
7917 2012-03-15  Tom Tromey  <tromey@redhat.com>
7918
7919         * NEWS: Mention "info vtbl", not "info vtable".
7920         * cp-support.c (info_vtbl_command): Fix comment.
7921         (_initialize_cp_support): Fix text.
7922
7923 2012-03-15  Tom Tromey  <tromey@redhat.com>
7924
7925         * cp-valprint.c (cp_print_value_fields): Use
7926         print_function_pointer_address for vtable slot.
7927
7928 2012-03-15  Tom Tromey  <tromey@redhat.com>
7929
7930         * gnu-v3-abi.c (struct value_and_voffset): New.
7931         (hash_value_and_voffset, eq_value_and_voffset)
7932         (compare_value_and_voffset, compute_vtable_size)
7933         (print_one_vtable, gnuv3_print_vtable): New functions.
7934         (init_gnuv3_ops): Initialize 'print_vtable' field.
7935         * cp-support.c (info_vtbl_command): New function.
7936         (_initialize_cp_support): Add "info vtbl".
7937         * cp-abi.h (cplus_print_vtable): Declare.
7938         (struct cp_abi_ops) <print_vtable>: New field.
7939         * cp-abi.c (cplus_print_vtable): New function.
7940         * NEWS: Update.
7941
7942 2012-03-15  Tom Tromey  <tromey@redhat.com>
7943
7944         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7945         iterate_over_symbols.
7946
7947 2012-03-14  Doug Evans  <dje@google.com>
7948
7949         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7950         DW_OP_GNU_parameter_ref.
7951
7952 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7953
7954         Fix double prompt of 'interpreter-exec mi'.
7955         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7956         (mi_interpreter_resume): use it.
7957         (mi_execute_command_input_handler): New function.
7958         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7959         mi_execute_command_input_handler.
7960
7961 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7962
7963         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7964         prototype.
7965         (darwin_debug_port_info): Make static.
7966         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7967         * machoread.c (_initialize_machoread): Add prototype.
7968         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7969         (i386_darwin_set_control, i386_darwin_get_control)
7970         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7971         i386_darwin_get_status, i386_darwin_get_control):
7972         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7973
7974 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7975
7976         * ax-gdb.c (gen_usual_unary): Remove special handling of
7977         enum and bool types.
7978
7979 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7980
7981         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7982
7983 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7984
7985         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7986
7987 2012-03-13  Chris January  <chris.january@allinea.com>
7988
7989         * aix-thread.c (fill_sprs): Store the floating point registers
7990         at the correct offsets into vals.
7991
7992 2012-03-13  Doug Evans  <dje@google.com>
7993
7994         * NEWS: Mention symbol-reloading has been deleted.
7995         * symfile.c (symbol_reloading): Delete.
7996         (show_symbol_reloading): Delete.
7997         (_initialize_symfile): Delete set/show symbol-reloading.
7998
7999         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8000         read_in_chain until we have successfully read it in.
8001         (load_full_comp_unit): Ditto.
8002         (read_signatured_type): Add comment.
8003
8004 2012-03-13  Chris January  <chris.january@allinea.com>
8005
8006         * stabsread.c (fix_common_block): Change type of valu argument
8007         to CORE_ADDR.
8008
8009 2012-03-13  Chris January  <chris.january@allinea.com>
8010
8011         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8012         instruction.
8013
8014 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8015
8016         * common/linux-procfs.c (linux_proc_get_int): New, from
8017         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8018         field.
8019         (linux_proc_get_tgid): Only call linux_proc_get_int.
8020         (linux_proc_get_tracerpid): New.
8021         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8022         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8023         linux_proc_pid_has_state.
8024         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8025         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8026         (linux_ptrace_attach_warnings): New.
8027         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8028         New declaration.
8029         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8030         (linux_nat_attach): New variables ex, buffer, message and message_s.
8031         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8032
8033 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8034
8035         * Makefile.in (linux-ptrace.o): New.
8036         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8037         from linux-nat.c.
8038         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8039         * common/linux-ptrace.c: New file.
8040         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8041         * config/arm/linux.mh: Likewise.
8042         * config/i386/linux.mh: Likewise.
8043         * config/i386/linux64.mh: Likewise.
8044         * config/ia64/linux.mh: Likewise.
8045         * config/m32r/linux.mh: Likewise.
8046         * config/m68k/linux.mh: Likewise.
8047         * config/mips/linux.mh: Likewise.
8048         * config/pa/linux.mh: Likewise.
8049         * config/powerpc/linux.mh: Likewise.
8050         * config/powerpc/ppc64-linux.mh: Likewise.
8051         * config/powerpc/spu-linux.mh: Likewise.
8052         * config/s390/s390.mh: Likewise.
8053         * config/sparc/linux.mh: Likewise.
8054         * config/sparc/linux64.mh: Likewise.
8055         * config/xtensa/linux.mh: Likewise.
8056         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8057         common/linux-procfs.c.
8058         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8059
8060 2012-03-13  Hui Zhu  <teawater@gmail.com>
8061             Pedro Alves  <palves@redhat.com>
8062
8063         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8064         CREATE_BREAKPOINT_FLAGS_INSERTED.
8065         (create_breakpoint_sal, create_breakpoints_sal)
8066         (base_breakpoint_create_breakpoints_sal)
8067         (tracepoint_create_breakpoints_sal)
8068         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8069         down.
8070         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8071         (ftrace_command, strace_command): Adjust.
8072         (create_tracepoint_from_upload): Pass
8073         CREATE_BREAKPOINT_FLAGS_INSERTED.
8074         * breakpoint.h (enum breakpoint_create_flags): New.
8075         (create_breakpoint): New flags parameter.
8076         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8077         * python/py-breakpoint.c (bppy_init): Adjust.
8078         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8079         * spu-tdep.c (spu_catch_start): Adjust.
8080
8081 2012-03-13  Pedro Alves  <palves@redhat.com>
8082             Hui Zhu  <teawater@gmail.com>
8083             Yao Qi  <yao@codesourcery.com>
8084
8085         * remote.c (struct remote_state): New field `starting_up'.
8086         (remote_start_remote): Set and clear it.
8087         (remote_can_download_tracepoint): If starting up, return false.
8088
8089 2012-03-13  Yao Qi  <yao@codesourcery.com>
8090
8091         * inferior.h (struct inferior): Remove fields any_syscall_count,
8092         syscalls_counts and total_syscalls_count.  Move them to new
8093         struct catch_syscall_inferior_data in breakpoint.c.
8094         * breakpoint.c: Call DEF_VEC_I(int).
8095         (struct catch_syscall_inferior_data): New.
8096         (get_catch_syscall_inferior_data): New.
8097         (catch_syscall_inferior_data_cleanup): New.
8098         (insert_catch_syscall): Update to access data in
8099         struct catch_syscall_inferior_data.
8100         (insert_catch_syscall): Likewise.
8101         (remove_catch_syscall): Likewise.
8102         (remove_catch_syscall): Likewise.
8103         (is_syscall_catchpoint_enabled): Likewise.
8104         (add_catch_command): Likewise.
8105         (_initialize_breakpoint): Register cleanup.
8106         * breakpoint.h: Removed DEF_VEC_I(int).
8107         * dwarf2loc.c: Call DEF_VEC_I(int).
8108         * mi/mi-main.c: Likewise.
8109
8110 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8111
8112         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8113
8114 2012-03-12  Chris January  <chris.january@allinea.com>
8115
8116         * aix-thread.c (_initialize_aix_thread): Add prototype.
8117         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8118         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8119
8120 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8121
8122         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8123         include of "amd64-nat.h".
8124
8125 2012-03-12  Tom Tromey  <tromey@redhat.com>
8126
8127         * buildsym.c (record_pending_block): Now static.
8128         * buildsym.h: (record_pending_block): Remove.
8129
8130 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8131
8132         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8133
8134 2012-03-09  Tom Tromey  <tromey@redhat.com>
8135
8136         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8137         producer_is_gxx_lt_4_6>: New fields.
8138         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8139
8140 2012-03-09  Tom Tromey  <tromey@redhat.com>
8141
8142         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8143
8144 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8145
8146         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8147         prototype.
8148
8149 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8150
8151         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8152
8153 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8154
8155         Fix -Wmissing-prototypes build.
8156         * arm-linux-nat.c (get_thread_id): Make it static.
8157         * xtensa-linux-nat.c (get_thread_id): Likewise.
8158
8159 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8160
8161         * server.c (process_point_options): If a conditional expression
8162         is found, only print a message if remote_debug is nonzero.
8163
8164 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8165
8166         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8167         of internal error for unknown/unsupported types.
8168
8169 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8170
8171         Fix CU relative vs. absolute DIE offsets.
8172         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8173         offset to offset_in_cu.
8174         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8175         TYPE_OFFSET.
8176         (dwarf2_fetch_die_location_block): Rename parameter offset to
8177         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8178
8179 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8180
8181         * libunwind-frame.c: Rename to ...
8182         * ia64-libunwind-tdep.c: ... here.
8183         * libunwind-frame.h: Rename to ...
8184         * ia64-libunwind-tdep.h: ... here.
8185         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8186         ia64-libunwind-tdep.h.
8187         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8188         * README (--with-libunwind): Rename to ...
8189         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8190         * config.in: Regenerate.
8191         * configure: Regenerate.
8192         * configure.ac: New option --with-libunwind-ia64, make the
8193         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8194         Remove AC_DEFINE for HAVE_LIBUNWIND.
8195         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8196         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8197         Rename libunwind-frame in the general comment.
8198         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8199         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8200         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8201         the general comment.
8202         * ia64-tdep.c: Rename libunwind-frame.h #include to
8203         ia64-libunwind-tdep.h.
8204         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8205         (ia64_libunwind_descr): Rename libunwind-frame to
8206         ia64-libunwind-tdep in these function comments.
8207         * ia64-tdep.h: Rename libunwind-frame.h #include to
8208         ia64-libunwind-tdep.h.
8209         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8210         ia64-libunwind-tdep in that data comment.
8211
8212 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8213
8214         * libunwind-frame.h (struct frame_unwind): New declaration.
8215
8216 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8217
8218         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8219         "set breakpoint condition-evaluation" command.
8220
8221 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8222
8223         * sparc-stub.c: Move to stubs/
8224         * sh-stub.c: Likewise.
8225         * m68k-stub.c: Likewise.
8226         * m32r-stub.c: Likewise.
8227         * i386-stub.c: Likewise.
8228
8229 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8230
8231         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8232         linux_get_siginfo_type.
8233
8234         * m68klinux-nat.c: Include "gdb_proc_service.h".
8235         (PTRACE_GET_THREAD_AREA): Define.
8236         (ps_get_thread_area): New function.
8237
8238 2012-03-08  Yao Qi  <yao@codesourcery.com>
8239
8240         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8241         `xsnprintf'.
8242         (remote_query_attached): Likewise.
8243         (remote_static_tracepoint_marker_at): Likewise.
8244         (remote_set_permissions): Likewise.
8245         (remote_detach_1, extended_remote_attach_1): Likewise.
8246         (send_g_packet, remote_vkill): Likewise.
8247         (extended_remote_disable_randomization): Likewise.
8248         (remote_add_target_side_condition): Likewise.
8249         (remote_insert_breakpoint): Likewise.
8250         (remote_remove_breakpoint): Likewise.
8251         (remote_insert_watchpoint): Likewise.
8252         (remote_remove_watchpoint): Likewise.
8253         (remote_insert_hw_breakpoint): Likewise.
8254         (remote_insert_hw_breakpoint): Likewise.
8255         (remote_remove_hw_breakpoint): Likewise.
8256         (remote_download_command_source): Likewise.
8257         (remote_download_tracepoint): Likewise.
8258         (remote_download_trace_state_variable): Likewise.
8259         (remote_disable_tracepoint): Likewise.
8260         (remote_trace_set_readonly_regions): Likewise.
8261         (remote_get_tracepoint_status): Likewise.
8262         (remote_trace_find): Likewise.
8263         (remote_get_trace_state_variable_value): Likewise.
8264         (remote_set_disconnected_tracing): Likewise.
8265         (remote_set_circular_trace_buffer): Likewise.
8266         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8267         (remote_use_agent): Likewise.
8268         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8269         Update callers.
8270
8271 2012-03-07  Pedro Alves  <palves@redhat.com>
8272
8273         * NEWS: Mention QProgramSignals.
8274         * inferior.h (update_signals_program_target): Declare.
8275         * infrun.c: (update_signals_program_target): New.
8276         (handle_command): Update the target of the new program signals
8277         array changes.
8278         * remote.c (PACKET_QProgramSignals): New enum.
8279         (last_program_signals_packet): New global.
8280         (remote_program_signals): New.
8281         (remote_start_remote): Update the target with the program signals
8282         list.
8283         (remote_protocol_features): Add entry for QPassSignals.
8284         (remote_open_1): Free anc clear last_program_signals_packet.
8285         (init_remote_ops): Install remote_program_signals.
8286         * target.c (update_current_target): Adjust.
8287         (target_program_signals): New.
8288         * target.h (struct target_ops) <to_program_signals>: New field.
8289         (target_program_signals): Declare.
8290
8291 2012-03-07  Pedro Alves  <palves@redhat.com>
8292
8293         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8294         extensions.
8295
8296 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8297
8298         * m68klinux-nat.c (getregs_supplies): Make static.
8299         (getfpregs_supplies): Likewise.
8300         (have_ptrace_getregs): Likewise.
8301
8302 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8303
8304         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8305         in call to get_die_type_at_offset.
8306
8307 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8308
8309         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8310         * mi/mi-cmd-disas.c: Ditto.
8311         * mi/mi-cmd-env.c: Ditto.
8312         * mi/mi-cmd-file.c: Ditto.
8313         * mi/mi-cmd-stack.c: Ditto.
8314         * mi/mi-cmd-target.c: Ditto.
8315         * mi/mi-cmd-var.c: Ditto.
8316         * mi/mi-cmds.c: Ditto.
8317         * mi/mi-cmds.h: Ditto.
8318         * mi/mi-console.c: Ditto.
8319         * mi/mi-getopt.c: Ditto.
8320         * mi/mi-getopt.h: Ditto.
8321         * mi/mi-interp.c: Ditto.
8322         * mi/mi-main.c: Ditto.
8323         * mi/mi-out.c: Ditto.
8324         * mi/mi-parse.c: Ditto.
8325         * mi/mi-parse.h: Ditto.
8326         * mi/mi-symbol-cmds.c: Ditto.
8327
8328         * mi/mi-getopt.h: Move mi_opt struct up.
8329         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8330         return.
8331         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8332
8333 2012-03-06  Tom Tromey  <tromey@redhat.com>
8334
8335         * proc-service.c (ps_pglobal_lookup): Set the current program
8336         space.
8337
8338 2012-03-06  Pedro Alves  <palves@redhat.com>
8339
8340         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8341
8342 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8343
8344         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8345
8346 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8347
8348         Code cleanup.
8349         * common/linux-osdata.c (linux_common_core_of_thread): New function
8350         comment.
8351         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8352         call by linux_common_core_of_thread.
8353         (linux_nat_core_of_thread_1): Remove.
8354         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8355         * linux-thread-db.c: Include linux-osdata.h.
8356         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8357         linux_common_core_of_thread.
8358
8359 2012-03-05  Tom Tromey  <tromey@redhat.com>
8360
8361         * value.c (value_primitive_field): Don't fetch contents for
8362         non-virtual bases.
8363
8364 2012-03-05  Tom Tromey  <tromey@redhat.com>
8365
8366         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8367
8368 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8369
8370         * s390-nat.c: Include "gregset.h".
8371
8372 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8373
8374         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8375         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8376         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8377         load also LIBUNWIND_SO_7.
8378
8379 2012-03-05  Pedro Alves  <palves@redhat.com>
8380
8381         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8382         is not NULL, and remove resulting dead code.
8383
8384 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8385
8386         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8387         prologue to sh_analyze_prologue.
8388         (sh_analyze_prologue): Make better use of such an upper limit, and
8389         generally be more cautious about accessing memory.
8390
8391 2012-03-05  Tom Tromey  <tromey@redhat.com>
8392
8393         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8394         _initialize_ia64_hpux_tdep.
8395
8396 2012-03-05  Pedro Alves  <palves@redhat.com>
8397
8398         PR gdb/13766
8399
8400         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8401         the register state is clear, supply explicit zero, instead of
8402         marking the register unavailable.
8403
8404 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8405
8406         * NEWS: Mention OpenVMS ia64 new target.
8407
8408 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8409
8410         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8411         (ia64_unw_accessors, ia64_unw_rse_accessors)
8412         (ia64_libunwind_descr): Declare.
8413         * ia64-vms-tdep.c: New file.
8414         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8415         (ia64_libunwind_descr): Make them public.
8416         * configure.tgt: Add ia64-*-*vms*.
8417         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8418         (ALLDEPFILES): Add ia64-vms-tdep.c
8419
8420 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8421
8422         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8423         * remote.c (PACKET_qXfer_uib): New enum value.
8424         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8425         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8426         (_initialize_remote): Call add_packet_config_cmd for
8427         xfer:uib packet.
8428
8429 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8430
8431         * osabi.c (gdb_osabi_names): Add OpenVMS.
8432         (generic_elf_osabi_sniffer): Likewise.
8433         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8434
8435 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8436
8437         Removed unused code.
8438         * libunwind-frame.c (libunwind_frame_unwind)
8439         (libunwind_frame_base_address): Remove.
8440         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8441
8442 2012-03-04  Yao Qi  <yao@codesourcery.com>
8443
8444         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8445         remove trailing new line.
8446         (agent_run_command, agent_run_command): Add _ markup.
8447         (agent_capability_check): Likewise.
8448
8449 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8450
8451         * breakpoint.c (set_condition_evaluation_mode): Set
8452         CONDITION_EVALUATION_MODE unconditionally.
8453
8454 2012-03-03  Yao Qi  <yao@codesourcery.com>
8455
8456         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8457         * common/agent.h: Update declaration.
8458         * inf-child.c (inf_child_use_agent): New.
8459         (inf_child_can_use_agent): New.
8460         (inf_child_target): Initialize fields `to_use_agent'
8461         and `to_can_use_agent'.
8462         * agent.c (agent_new_objfile): New.
8463         (_initialize_agent): Add agent_new_objfile to new_objfile
8464         observer.
8465
8466         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8467         New.
8468         (linux_target_install_ops): Initialize field
8469         `to_static_tracepoint_markers_by_strid'.
8470         * remote.c (free_current_marker): Move it to ...
8471         * tracepoint.c (free_current_marker): ... here.  New.
8472         (cleanup_target_stop): New.
8473         * tracepoint.h: Declare free_current_marker.
8474         * NEWS: Add one entry about `info static-tracepoint-marker'.
8475
8476 2012-03-03  Yao Qi  <yao@codesourcery.com>
8477
8478         * common/agent.c (agent_loaded_p): New.
8479         (agent_look_up_symbols): New global.
8480         * common/agent.h: Declare agent_loaded_p.
8481
8482 2012-03-03  Yao Qi  <yao@codesourcery.com>
8483
8484         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8485         (agent_capability_check, agent_capability_invalidate): New.
8486         (symbol_list): New array element.
8487         * common/agent.h (enum agent_capa): New.
8488         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8489
8490 2012-03-03  Yao Qi  <yao@codesourcery.com>
8491
8492         * target.h (struct target_ops) <to_use_agent>: New field.
8493         (struct target_ops) <to_can_use_agent>: New field.
8494         (target_use_agent, target_can_use_agent): New macro.
8495         * target.c (update_current_target): Update.
8496         * remote.c: New enum `PACKET_QAgent'.
8497         (remote_protocol_features): Add a new element.
8498         (remote_use_agent, remote_can_use_agent): New.
8499         (init_remote_ops): Initialize field `can_use_agent' with
8500         remote_can_use_agent.  Intiailize field `use_agent' with
8501         remote_use_agent.
8502         * common/agent.c (use_agent): New global.
8503         * common/agent.h: Declare it.
8504         * tracepoint.c (info_static_tracepoint_markers_command): Add
8505         comment.
8506         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8507         (COMMON_OBS): Add common/agent.o and agent.o
8508         (common-agent.o): New rule.
8509         * agent.c: New.
8510
8511 2012-03-03  Yao Qi  <yao@codesourcery.com>
8512
8513         * common/agent.c: New.
8514         * common/agent.h: New.
8515         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8516         AC_CHECK_HEADERS.
8517         * configure, configh.in: Regenerated.
8518
8519 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8520
8521         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8522         unless it exists for this architecture.
8523
8524 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8525
8526         * language.h (struct language_defn): New "method" la_read_var_value.
8527         * findvar.c: #include "language.h".
8528         (default_read_var_value): Renames read_var_value.  Rewrite
8529         function description.
8530         (read_var_value): New function.
8531         * value.h (default_read_var_value): Add prototype.
8532         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8533         New functions.
8534         (ada_language_defn): Add entry for la_read_var_value.
8535         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8536         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8537         language_defn structures to add entry for new la_read_var_value
8538         field.
8539
8540 2012-03-02  Tom Tromey  <tromey@redhat.com>
8541             Pedro Alves  <palves@redhat.com>
8542
8543         PR breakpoints/13776:
8544         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8545         breakpoints.
8546         (delete_longjmp_breakpoint_at_next_stop): New.
8547         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8548         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8549         before deleting the inferior.  Add comments.
8550         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8551         breakpoints immediately, but only on next stop.  Move that code
8552         next to where we mark other breakpoints for deletion.
8553
8554 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8555
8556         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8557         marker.
8558         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8559         violation.
8560
8561 2012-03-02  Pedro Alves  <palves@redhat.com>
8562
8563         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8564
8565 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8566
8567         Fix -Wmissing-prototypes build.
8568         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8569         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8570         (gdbsim_has_memory): Likewise.
8571
8572 2012-03-02  Yao Qi  <yao@codesourcery.com>
8573
8574         Fix -Wmissing-prototypes build.
8575         * charset.c (phony_iconv_open): Make static.
8576         (phony_iconv_close, phony_iconv): Likewise.
8577         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8578         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8579         prototype.
8580         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8581         * ser-mingw.c (create_select_thread): Make static.
8582         * windows-termcap.c (tgetent): New prototype.
8583         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8584
8585 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8586
8587         Fix -Wmissing-prototypes build.
8588         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8589         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8590         (_initialize_loadable): New prototypes.
8591
8592 2012-03-02  Doug Evans  <dje@google.com>
8593
8594         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8595         abbrev table, read_comp_unit will do it.
8596
8597 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8598
8599         Fix -Wmissing-prototypes build.
8600         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8601         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8602         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8603         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8604         (_initialize_arm_symbian_tdep): New prototype.
8605         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8606         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8607         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8608         static.
8609         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8610         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8611         prototype.
8612         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8613         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8614         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8615         static.
8616         * moxie-tdep.c (moxie_process_record): Likewise.
8617         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8618         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8619         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8620         (_initialize_rl78_tdep): New prototype.
8621         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8622         (_initialize_rx_tdep): New prototype.
8623         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8624         (_initialize_darwin_solib): New prototype.
8625         * solib-spu.c: Include solib-spu.h.
8626         (_initialize_spu_solib): New prototype.
8627         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8628         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8629         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8630         (tic6x_software_single_step): Make it static.
8631         (_initialize_tic6x_tdep): New prototype.
8632
8633 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8634
8635         Fix -Wmissing-prototypes build.
8636         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8637         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8638
8639 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8640
8641         Fix -Wmissing-prototypes build.
8642         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8643         (frv_have_stopped_data_address): Remove.
8644
8645 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8646
8647         Fix -Wmissing-prototypes build.
8648         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8649         * sh-tdep.c: Include sh64-tdep.h.
8650         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8651         * sh64-tdep.c: Include sh64-tdep.h.
8652         * sh64-tdep.h: New file.
8653
8654 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8655
8656         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8657
8658 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8659
8660         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8661         sp_regnum once the gdbarch_init_osabi hook has been called.
8662
8663 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8664
8665         * mips-tdep.c (mips32_bc1_pc): New function.
8666         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8667         BPOSGE32 and BPOSGE64 instructions.
8668         (deal_with_atomic_sequence): Likewise.
8669         (mips32_instruction_has_delay_slot): Likewise.
8670
8671 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8672             Chris Dearman  <chris@mips.com>
8673             Maciej W. Rozycki  <macro@codesourcery.com>
8674             Joseph Myers  <joseph@codesourcery.com>
8675
8676         * features/mips-dsp.xml: New file.
8677         * features/mips64-dsp.xml: New file.
8678         * features/mips-dsp-linux.xml: New file.
8679         * features/mips64-dsp-linux.xml: New file.
8680         * features/Makefile (WHICH): Add mips-dsp-linux and
8681         mips64-dsp-linux.
8682         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8683         * features/mips-dsp-linux.c: New file.
8684         * features/mips64-dsp-linux.c: New file.
8685         * regformats/mips-dsp-linux.dat: New file.
8686         * regformats/mips64-dsp-linux.dat: New file.
8687         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8688         registers.
8689         (mips64_linux_register_addr): Likewise.
8690         (mips64_linux_regsets_fetch_registers): Likewise.
8691         (mips64_linux_regsets_store_registers): Likewise.
8692         (mips64_linux_fetch_registers): Update call to
8693         mips64_linux_regsets_fetch_registers.
8694         (mips64_linux_store_registers): Update call to
8695         mips64_linux_regsets_store_registers.
8696         (mips_linux_read_description): Probe for DSP registers.
8697         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8698         and initialize_tdesc_mips64_dsp_linux.
8699         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8700         Remove padding of no longer used embedded register slots.
8701         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8702         (MIPS_RESTART_REGNUM): Redefine enum value.
8703         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8704         strings.
8705         (mips_tx39_reg_names): Likewise.
8706         (mips_linux_reg_names): New array of register names for Linux
8707         targets.
8708         (mips_register_name): Check for a null pointer in
8709         mips_processor_reg_names and return an empty string.
8710         (mips_register_type): Exclude embedded registers for the IRIX
8711         and Linux ABIs.
8712         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8713         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8714         DSP registers.
8715         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8716         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8717         (mips_gdbarch_init): Likewise.  Initialize internal register
8718         indices for the Linux ABI.  Use dynamic numbers to refer to
8719         registers, as applicable, while parsing the target description.
8720         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8721
8722 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8723
8724         * frame.h (read_frame_register_unsigned): Fix typo in function
8725         description.
8726
8727 2012-03-01  Pedro Alves  <palves@redhat.com>
8728
8729         * jit-reader.in [!__cplusplus]
8730         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8731
8732 2012-03-01  Pedro Alves  <palves@redhat.com>
8733
8734         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8735         * configure: Regenerate.
8736
8737 2012-03-01  Pedro Alves  <palves@redhat.com>
8738
8739         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8740         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8741         (ftrace_command, strace_command): Make static.
8742         * d-lang.c (_initialize_d_language): Declare.
8743         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8744         * dwarf2loc.c (_initialize_dwarf2loc):
8745         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8746         * exec.c (exec_get_section_table): Make static.
8747         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8748         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8749         * inferior.c (remove_inferior_command, add_inferior_command)
8750         (clone_inferior_command): Make static.
8751         * linux-nat.c (linux_nat_thread_address_space)
8752         (linux_nat_core_of_thread): Make static.
8753         * linux-tdep.c (_initialize_linux_tdep): Declare.
8754         * objc-lang.c (_initialize_objc_lang): Declare.
8755         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8756         Make static.
8757         (_initialize_opencl_language): Declare.
8758         * record.c (_initialize_record): Declare.
8759         * remote.c (demand_private_info, remote_get_tib_address)
8760         (remote_supports_cond_tracepoints)
8761         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8762         Make static.
8763         * skip.c (_initialize_step_skip): Declare.
8764         * symtab.c (skip_prologue_using_lineinfo): Make static.
8765         * tracepoint.c (delete_trace_state_variable)
8766         (trace_variable_command, delete_trace_variable_command)
8767         (get_uploaded_tsv, find_matching_tracepoint_location)
8768         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8769         Make static.
8770         * value.c (pack_unsigned_long): Make static.
8771         * varobj.c (varobj_ensure_python_env): Make static.
8772         * windows-tdep.c (_initialize_windows_tdep): Declare.
8773         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8774
8775 2012-03-01  Pedro Alves  <palves@redhat.com>
8776
8777         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8778         gdbarch parameter.
8779         (linux_init_abi): Install it as has_shared_address_space gdbarch
8780         callback.
8781
8782 2012-03-01  Pedro Alves  <palves@redhat.com>
8783
8784         * observer.c (observer_test_first_notification_function)
8785         (observer_test_second_notification_function)
8786         (observer_test_third_notification_function): Add declarations.
8787
8788 2012-03-01  Pedro Alves  <palves@redhat.com>
8789
8790         * common/signals.c (default_target_signal_to_host)
8791         (default_target_signal_from_host): Move ...
8792         * arch-utils.c: ... here.
8793         * arch-utils.h (default_target_signal_to_host)
8794         (default_target_signal_from_host): Declare.
8795
8796         * common/signals.c (target_signal_from_command): Move ...
8797         * infrun.c: ... here.
8798         * inferior.h (target_signal_from_command): Declare.
8799         * target.h (target_signal_from_command)
8800         (default_target_signal_from_host, default_target_signal_to_host):
8801         Delete declarations.
8802
8803         * common/signals.c (_initialize_signals): Delete.
8804
8805 2012-03-01  Pedro Alves  <palves@redhat.com>
8806
8807         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8808         both __cplusplus and !__cplusplus.
8809
8810 2012-03-01  Pedro Alves  <palves@redhat.com>
8811
8812         * psymtab.c (find_and_open_source): Delete declaration.
8813         * source.c (find_and_open_source): Move comment ...
8814         * source.h (find_and_open_source): ... to this new declaration.
8815
8816 2012-03-01  Pedro Alves  <palves@redhat.com>
8817
8818         * inline-frame.c: Include inline-frame.h.
8819
8820 2012-03-01  Pedro Alves  <palves@redhat.com>
8821
8822         * tui/tui-data.c (set_gen_win_origin): Delete.
8823         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8824         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8825
8826 2012-03-01  Pedro Alves  <palves@redhat.com>
8827
8828         * remote.c (encode_actions): Delete declaration.
8829         * tracepoint.c (encode_actions): Make extern.
8830         * tracepoint.h (encode_actions): Declare.
8831
8832 2012-03-01  Pedro Alves  <palves@redhat.com>
8833
8834         * python/py-breakpoint.c: Include python.h.
8835         * python/py-continueevent.c (create_continue_event_object): Make
8836         static.
8837         * python/py-lazy-string.c (stpy_get_type): Make static.
8838         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8839         Make static.
8840         * python/py-utils.c (unicode_to_target_python_string): Make
8841         static.
8842         * python/py-value.c: Include python.h.
8843
8844 2012-03-01  Pedro Alves  <palves@redhat.com>
8845
8846         * inferior.c (delete_threads_of_inferior): Delete.
8847
8848 2012-03-01  Pedro Alves  <palves@redhat.com>
8849
8850         Import fallback definitions from glibc.
8851
8852         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8853         ps_prochandle): Forward declare.
8854         (ps_err_e): Use glibc's comments.
8855         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8856         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8857         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8858         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8859         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8860         (struct ps_prochandle): Adjust comment.
8861
8862 2012-03-01  Pedro Alves  <palves@redhat.com>
8863
8864         * ada-lang.c (ada_modulus_from_name): Delete.
8865         * ada-lex.l (lexer_init): Make static.
8866
8867 2012-03-01  Pedro Alves  <palves@redhat.com>
8868
8869         PR gdb/13767
8870
8871         * frame.c (read_frame_register_unsigned): New.
8872         * frame.h (read_frame_register_unsigned): Declare.
8873         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8874         Handle it.
8875         (print_i387_control_word): New parameter `control_p'.  Handle it.
8876         (i387_print_float_info): Handle unavailable float registers.
8877
8878 2012-03-01  Keith Seitz  <keiths@redhat.com>
8879
8880         * linespec.c (decode_line_2): Sort the list of methods
8881         alphabetically before presenting the user with a selection
8882         menu.
8883
8884 2012-03-01  Doug Evans  <dje@google.com>
8885
8886         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8887         has_namespace_info.
8888         (dwarf2_read_abbrevs): Remove corresponding initialization.
8889
8890 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8891
8892         * NEWS: Mention new python command class gdb.COMMAND_USER.
8893         * cli/cli-cmds.c (show_user): Print error when used on a python
8894         command.
8895         (init_cli_cmds): Update documentation strings for "show user" and
8896         "set/show max-user-call-depth" to clarify that it does not apply to
8897         python commands.
8898         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8899         error check.
8900         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8901         gdb python api.
8902         * top.c (execute_command): Only execute a user-defined command as a
8903         legacy macro if c->user_commands is set.
8904
8905 2012-03-01  Tom Tromey  <tromey@redhat.com>
8906
8907         * valprint.h (struct generic_val_print_decorations): New.
8908         (generic_val_print): Declare.
8909         * valprint.c (generic_val_print): New function.
8910         * p-valprint.c (p_decorations): New global.
8911         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8912         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8913         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8914         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8915         * m2-valprint.c (m2_decorations): New global.
8916         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8917         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8918         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8919         TYPE_CODE_ERROR>: Call generic_val_print.
8920         * f-valprint.c (f_decorations): New global.
8921         (f_val_print): Use print_function_pointer_address.
8922         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8923         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8924         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8925         generic_val_print.
8926         * c-valprint.c (c_decorations): New global.
8927         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8928         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8929         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8930         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8931         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8932         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8933         case.
8934
8935 2012-03-01  Tom Tromey  <tromey@redhat.com>
8936
8937         * valprint.c (val_print): Update.
8938         * p-valprint (pascal_val_print): Return void.
8939         * p-lang.h (pascal_val_print): Return void.
8940         * m2-valprint.c (m2_val_print): Return void.
8941         * m2-lang.h (m2_val_print): Return void.
8942         * language.h (struct language_defn) <la_val_print>: Return void.
8943         * language.c (unk_lang_val_print): Return void.
8944         * jv-valprint.c (java_val_print): Return void.
8945         * jv-lang.h (java_val_print): Return void.
8946         * f-valprint.c (f_val_print): Return void.
8947         * f-lang.h (f_val_print): Return void.
8948         * d-valprint.c (d_val_print): Return void.
8949         (dynamic_array_type): Update.
8950         * d-lang.h (d_val_print): Return void.
8951         * c-valprint.c (c_val_print): Return void.
8952         * c-lang.h (c_val_print): Return void.
8953         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8954         void.
8955         * ada-lang.h (ada_val_print): Return void.
8956
8957 2012-03-01  Tom Tromey  <tromey@redhat.com>
8958
8959         * value.h (val_print): Return void.
8960         * valprint.c (val_print): Return void.
8961
8962 2012-03-01  Tom Tromey  <tromey@redhat.com>
8963
8964         * value.h (common_val_print): Return void.
8965         * valprint.c (common_val_print): Return void.
8966
8967 2012-03-01  Tom Tromey  <tromey@redhat.com>
8968
8969         * value.h (value_print): Return void.
8970         * valprint.c (value_print): Return void.
8971         * p-valprint.c (pascal_value_print): Return void.
8972         * p-lang.h (pascal_value_print): Return void.
8973         * language.h (struct language_defn) <la_value_print>: Return
8974         void.
8975         * language.c (unk_lang_value_print): Return void.
8976         * jv-valprint.c (java_value_print): Return void.
8977         * jv-lang.h (java_value_print): Return void.
8978         * f-valprint.c (c_value_print): Don't declare.
8979         Include c-lang.h.
8980         * c-valprint.c (c_value_print): Return void.
8981         * c-lang.h (c_value_print): Return void.
8982         * ada-valprint.c (ada_value_print): Return void.
8983         * ada-lang.h (ada_value_print): Return void.
8984
8985 2012-03-01  Tom Tromey  <tromey@redhat.com>
8986
8987         * value.c (value_primitive_field): Handle virtual base classes.
8988
8989 2012-03-01  Tom Tromey  <tromey@redhat.com>
8990
8991         * gdbtypes.h (struct vbase): Remove.
8992
8993 2012-03-01  Tom Tromey  <tromey@redhat.com>
8994
8995         * c-valprint.c (print_function_pointer_address): Move...
8996         * valprint.c: ... here.  Make non-static.
8997         * m2-valprint.c (print_function_pointer_address): Remove.
8998         * valprint.h (print_function_pointer_address): Declare.
8999
9000 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9001
9002         * NEWS: Document the fact that one can provide a condition when
9003         creating an Ada exception catchpoint.
9004
9005 2012-03-01  Tom Tromey  <tromey@redhat.com>
9006
9007         * valprint.c (val_print_type_code_flags): Fix placement of
9008         trailing brace.
9009
9010 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9011
9012         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9013         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9014         environment variable before calling update-copyright.
9015
9016 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9017
9018         * gnulib/extra/update-copyright: Update to the latest from
9019         gnulib's git repository.
9020         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9021         variable to 2 instead of 1.
9022
9023 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9024
9025         * varobj.c (c_value_of_variable): Remove dead code.
9026
9027 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9028
9029         * ada-lex.p (processId): Do not modify already encoded IDs.
9030         Update function documentation.
9031
9032 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9033
9034         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9035         "name" with "struct symbol *name_sym".
9036         * ada-exp.y (write_var_or_type): Update call to
9037         ada_find_renaming_symbol.
9038         "name" with "struct symbol *name_sym". Adjust Implementation
9039         accordingly.  Adjust the function documentation.
9040
9041 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9042
9043         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9044         * ada-lang.c (ada_find_any_type): Add advance declaration.
9045         Make static.  Replace ada_find_any_symbol by
9046         ada_find_any_type_symbol.
9047         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9048         Improve function description.  Make static.
9049         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9050         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9051
9052 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9053
9054         * ada-lang.c (struct tag_args): Delete.
9055         (ada_get_tsd_type): Function body moved up in source file.
9056         (ada_tag_name_1, ada_tag_name_2): Delete.
9057         (ada_get_tsd_from_tag): New function.
9058         (ada_tag_name_from_tsd): New function.
9059         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9060         to determine the tag name.
9061
9062 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9063
9064         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9065         declaration.
9066         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9067         function.
9068
9069 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9070
9071         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9072
9073 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9074
9075         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9076         full searches.
9077
9078 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9079
9080         * ada-lang.c (constrained_packed_array_type): If there is a
9081         parallel XA type, use it to determine the array index type.
9082
9083 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9084
9085         * ada-valprint.c (ada_val_print_1): If our value is a reference
9086         to an array descriptor, dereference it before converting it
9087         to a simple array.
9088
9089 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9090
9091         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9092         creating fixed value.
9093         (ada_value_ind, ada_coerce_ref, assign_component)
9094         (ada_evaluate_subexp): Remove call to unwrap_value before
9095         call to ada_to_fixed_value.
9096
9097 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9098
9099         * ada-lang.c (to_fixed_array_type): Set result's type name.
9100
9101 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9102
9103         * ada-lang.c (catch_ada_exception_command_split): Add new
9104         argument cond_string.  Add support for condition at end of
9105         "catch exception" commands.
9106         (ada_decode_exception_location): Add new argument cond_string.
9107         Update call to catch_ada_exception_command_split.
9108         (create_ada_exception_catchpoint): Add new argument cond_string.
9109         Set the breakpoint condition if needed.
9110         (catch_ada_exception_command): Update call to
9111         ada_decode_exception_location.
9112         (ada_decode_assert_location): Add function documentation.
9113         Add support for condition at end of "catch assert" command.
9114         (catch_assert_command): Update calls to ada_decode_assert_location
9115         and create_ada_exception_catchpoint.
9116
9117 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9118
9119         Fix disp-step-syscall.exp: fork: single step over fork.
9120         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9121         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9122         comment, change parameters gdbarch and ptid to regcache.  Remove
9123         parameter regcache, initialize gdbarch from regcache here.
9124         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9125         New functions.
9126         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9127         instead.
9128         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9129         'syscall'.  Make the 'int' check more strict.
9130
9131 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9132
9133         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9134         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9135         (i386_linux_intx80_sysenter_syscall_record): ... here.
9136         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9137         Use the renamed function name.
9138
9139 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9140
9141         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9142         * breakpoint.c (until_break_command): Likewise.
9143         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9144         * infcall.c (call_function_by_hand): Likewise.
9145         * infcmd.c (finish_forward): Likewise.
9146         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9147
9148 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9149
9150         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9151         avoid variable assignments inside condition.
9152
9153 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9154
9155         Fix static analysis issue found by cppcheck.
9156         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9157         uninitialized BUF for size 2.
9158
9159 2012-02-27  Chris Dearman  <chris@mips.com>
9160             Nathan Froyd  <froydnj@codesourcery.com>
9161             Maciej W. Rozycki  <macro@codesourcery.com>
9162
9163         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9164         (mips16_instruction_has_delay_slot): Likewise.
9165         (mips_segment_boundary): Likewise.
9166         (mips_adjust_breakpoint_address): Likewise.
9167         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9168
9169 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9170             Maciej W. Rozycki  <macro@codesourcery.com>
9171
9172         * infrun.c (handle_inferior_event): Don't proceed through
9173         shared library trampolines if stepping at the machine
9174         instruction level.
9175
9176 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9177
9178         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9179         too.
9180
9181 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9182
9183         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9184         (sh_stub_unwind_sniffer): New functions.
9185         (sh_stub_unwind): New variable.
9186         (sh_gdbarch_init): Wire everything.
9187
9188 2012-02-27  Pedro Alves  <palves@redhat.com>
9189
9190         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9191         (linux_nat_post_attach_wait): Adjust to use
9192         linux_proc_pid_is_stopped.
9193         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9194         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9195         based on pid_is_stopped from both linux-nat.c and
9196         gdbserver/linux-low.c, and renamed.
9197
9198 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9199
9200         * remote.c (remote_watchpoint_addr_within_range): New function.
9201         (init_remote_ops): Use it.
9202
9203 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9204
9205         * target.h (target_watchpoint_addr_within_range): Document macro.
9206
9207 2012-02-24  Pedro Alves  <palves@redhat.com>
9208
9209         * stack.c (set_last_displayed_sal): Issue internal_error instead
9210         of warning, and issue it after clearing the last displayed sal.
9211
9212 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9213             Pedro Alves  <palves@redhat.com>
9214
9215         * breakpoint.c (until_break_command): Install breakpoints after
9216         all frame manipulations.
9217
9218 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9219
9220         * remote.c (remote_supports_cond_breakpoints): New forward
9221         declaration.
9222         (remote_add_target_side_condition): New function.
9223         (remote_insert_breakpoint): Add target-side breakpoint
9224         conditional if supported.
9225         (remote_insert_hw_breakpoint): Likewise.
9226         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9227         hook.
9228
9229         * target.c (update_current_target): Inherit
9230         to_supports_evaluation_of_breakpoint_conditions.
9231         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9232
9233         * target.h (struct target_ops)
9234         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9235         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9236
9237         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9238         (condition_evaluation_both, condition_evaluation_auto,
9239         condition_evaluation_host, condition_evaluation_target,
9240         condition_evaluation_enums, condition_evaluation_mode_1,
9241         condition_evaluation_mode): New static globals.
9242         (translate_condition_evaluation_mode): New function.
9243         (breakpoint_condition_evaluation_mode): New function.
9244         (gdb_evaluates_breakpoint_condition_p): New function.
9245         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9246         (mark_breakpoint_modified): New function.
9247         (mark_breakpoint_location_modified): New function.
9248         (set_condition_evaluation_mode): New function.
9249         (show_condition_evaluation_mode): New function.
9250         (bp_location_compare_addrs): New function.
9251         (get_first_location_gte_addr): New helper function.
9252         (set_breakpoint_condition): Free condition bytecode if locations
9253         has become unconditional.  Call mark_breakpoint_modified (...).
9254         (condition_command): Call update_global_location_list (1) for
9255         breakpoints.
9256         (breakpoint_xfer_memory): Use is_breakpoint (...).
9257         (is_breakpoint): New function.
9258         (parse_cond_to_aexpr): New function.
9259         (build_target_condition_list): New function.
9260         (insert_bp_location): Handle target-side conditional
9261         breakpoints and call build_target_condition_list (...).
9262         (update_inserted_breakpoint_locations): New function.
9263         (insert_breakpoint_locations): Handle target-side conditional
9264         breakpoints.
9265         (bpstat_check_breakpoint_conditions): Add comment.
9266         (bp_condition_evaluator): New function.
9267         (bp_location_condition_evaluator): New function.
9268         (print_breakpoint_location): Print information on where the condition
9269         will be evaluated.
9270         (print_one_breakpoint_location): Likewise.
9271         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9272         breakpoint location.
9273         (force_breakpoint_reinsertion): New functions.
9274         (update_global_location_list): Handle target-side breakpoint
9275         conditions.
9276         Reinsert locations that are already inserted if conditions have
9277         changed.
9278         (bp_location_dtor): Free agent expression bytecode.
9279         (disable_breakpoint): Call mark_breakpoint_modified (...).
9280         Call update_global_location_list (...) with parameter 1 for breakpoints.
9281         (disable_command): Call mark_breakpoint_location_modified (...).
9282         Call update_global_location_list (...) with parameter 1 for breakpoints.
9283         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9284         (enable_command): mark_breakpoint_location_modified (...).
9285         (_initialize_breakpoint): Update documentation and add
9286         condition-evaluation breakpoint subcommand.
9287
9288         * breakpoint.h: Include ax.h.
9289         (condition_list): New data structure.
9290         (condition_status): New enum.
9291         (bp_target_info) <cond_list>: New field.
9292         (bp_location) <condition_changed, cond_bytecode>: New fields.
9293         (is_breakpoint): New prototype.
9294
9295 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9296
9297         * remote.c (remote_state) <cond_breakpoints>: New field.
9298         (PACKET_ConditionalBreakpoints): New enum.
9299         (remote_cond_breakpoint_feature): New function.
9300         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9301         (remote_supports_cond_breakpoints): New function.
9302         (_initialize_remote): Add new packet configuration for
9303         target-side conditional breakpoints.
9304
9305 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9306
9307         * NEWS: Mention target-side conditional breakpoint support,
9308         new condition-evaluation breakpoint subcommand and remote
9309         packet extensions.
9310
9311 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9312
9313         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9314         number.
9315
9316 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9317
9318         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9319         (after_prologue): Remove.
9320
9321 2012-02-23  Tom Tromey  <tromey@redhat.com>
9322
9323         * jv-valprint.c (java_val_print): Remove dead code.
9324
9325 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9326
9327         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9328         known_tasks_element and known_tasks_length fields.
9329         (read_known_tasks_array): Change argument type.  Use pointer type
9330         and number of elements from DATA.  Adjust.
9331         (read_known_tasks_list): Likewise.
9332         (get_known_tasks_addr): Remove.
9333         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9334         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9335         type and array length.  Merge former get_known_tasks_addr code.
9336
9337 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9338
9339         PR backtrace/13716
9340         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9341         it after set_momentary_breakpoint.
9342
9343 2012-02-22  Sterling Augustine  <saugustine@google.com>
9344
9345         PR 13689:
9346         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9347
9348 2012-02-22  Gary Benson  <gbenson@redhat.com>
9349
9350         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9351         (find_slot_in_mapped_hash): Likewise.
9352
9353 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9354
9355         PR build/13638
9356         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9357         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9358         * configure: Regenerate.
9359
9360 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9361             Pedro Alves  <palves@redhat.com>
9362
9363         * ia64-tdep.c: Do not include libunwind-ia64.h.
9364         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9365         Include libunwind-ia64.h instead of libunwind.h.
9366         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9367         for libunwind.h existence.
9368         * configure, config.in: Regenerate.
9369
9370 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9371
9372         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9373         instead of value_rtti_target_type.
9374         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9375         instead of value_rtti_target_type.
9376         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9377         value_rtti_target_type.
9378         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9379         (value_rtti_target_type): Rename to ...
9380         (value_rtti_indirect_type): ... here and make it indirect.  Update
9381         function comment.
9382         * value.c (readjust_indirect_value_type): New function.
9383         (coerce_ref): Support for enclosing type setting for references
9384         with readjust_indirect_value_type.
9385         * value.h (readjust_value_type): New declaration.
9386         (value_rtti_target_type): Rename to ...
9387         (value_rtti_indirect_type): ... here.
9388
9389 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9390
9391         * MAINTAINERS (Write After Approval): Add myself to the list.
9392
9393 2012-02-20  Doug Evans  <dje@google.com>
9394
9395         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9396         Rename objfile_p_char parameter to objfilep.
9397         (build_objfile_section_table): Result is now void.  All callers
9398         updated.
9399         * objfiles.h (struct objfile): Tweak comments, whitespace.
9400         (build_objfile_section_table): Update.
9401
9402         * elfread.c (elf_symfile_segments): Fix warning text.
9403
9404 2012-02-20  Tom Tromey  <tromey@redhat.com>
9405
9406         PR gdb/13498:
9407         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9408         particular set of file names once.
9409         (dw2_map_symbol_filenames): Likewise.
9410
9411 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9412
9413         Code cleanup.
9414         * main.c (write_files): Remove the declaration.
9415         (external_editor_command): Move the declaration ...
9416         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9417
9418 2012-02-20  Tom Tromey  <tromey@redhat.com>
9419
9420         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9421         extraneous block.
9422
9423 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9424
9425         * darwin-nat.h (enum darwin_msg_state): Add comments.
9426
9427 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9428
9429         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9430         value.
9431
9432 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9433
9434         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9435         between function description and implementation.
9436
9437 2012-02-17  Tom Tromey  <tromey@redhat.com>
9438
9439         PR python/12070:
9440         * python/py-event.c (event_object_getset): New global.
9441         (event_object_type): Reference it.
9442         * python/py-type.c (field_object_getset): New global.
9443         (field_object_type): Reference it.
9444         * python/python-internal.h (gdb_py_generic_dict): Declare.
9445         * python/py-utils.c (gdb_py_generic_dict): New function.
9446
9447 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9448
9449         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9450
9451 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9452
9453         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9454         TYPE_CALLING_CONVENTION annotation.
9455
9456 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9457
9458         * MAINTAINERS: Add rx to target ISA section.
9459         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9460         (ALLDEPFILES): Add rx-tdep.c.
9461
9462 2012-02-16  Tom Tromey  <tromey@redhat.com>
9463
9464         * symfile.c (symbol_file_add_main_1): Use inferior's
9465         symfile_flags.
9466         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9467         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9468         inferior.
9469         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9470         inferior.
9471         (follow_exec): Use inferior's symfile_flags.
9472         * inferior.h (struct inferior) <symfile_flags>: New field.
9473
9474 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9475
9476         PR gdb/9734:
9477         * remote-sim.c (gdbsim_create_inferior): Call error() when
9478         sim_create_inferior() fails.
9479
9480 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9481
9482         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9483
9484 2012-02-16  Tom Tromey  <tromey@redhat.com>
9485
9486         PR c++/13653:
9487         * thread.c (struct current_thread_cleanup) <was_removable>: New
9488         field.
9489         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9490         (make_cleanup_restore_current_thread): Initialize new field.
9491
9492 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9493
9494         * MAINTAINERS: Add rl78 to target ISA section.
9495         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9496         (ALLDEPFILES): Add rl78-tdep.c.
9497         * NEWS: Mention rl78 as a new target.
9498
9499 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9500
9501         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9502         data.
9503         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9504
9505 2012-02-15  Tom Tromey  <tromey@redhat.com>
9506
9507         PR gdb/12659:
9508         * infcmd.c (registers_info): Print just the current register's
9509         name.
9510
9511 2012-02-15  Tom Tromey  <tromey@redhat.com>
9512
9513         * python/py-symbol.c (sympy_value): Use _().
9514
9515 2012-02-15  Pedro Alves  <palves@redhat.com>
9516
9517         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9518         output to be like native targets'.
9519         (remote_pid_to_str): Special case the null ptid.
9520
9521 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9522
9523         * NEWS: Mention enable count command.
9524         * breakpoint.h (struct breakpoint): New field enable_count.
9525         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9526         (enable_breakpoint): Add arg to call.
9527         (struct disp_data): New struct.
9528         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9529         (do_map_enable_once_breakpoint): Create a struct and pass it.
9530         (do_map_enable_delete_breakpoint): Ditto.
9531         (do_map_enable_count_breakpoint): New function.
9532         (enable_count_command): New function.
9533         (bpstat_stop_status): Decrement enable_count.
9534         (print_one_breakpoint_location): Report enable count.
9535         (_initialize_breakpoint): Add enable count command.
9536
9537 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9538
9539         * rl78-tdep.c (reggroups.h): Include.
9540         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9541         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9542         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9543         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9544         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9545         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9546         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9547         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9548         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9549         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9550         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9551         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9552         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9553         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9554         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9555         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9556         beginning of register list.
9557         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9558         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9559         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9560         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9561         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9562         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9563         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9564         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9565         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9566         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9567         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9568         the pseudo registers.  Rearrange other pseudo registers too so
9569         that the bank registers appear at the end.
9570         (rl78_register_type): Account for the fact that the byte sized
9571         bank registers are now pseudo-registers.
9572         (rl78_register_name): Rearrange the register name array.  Make
9573         initial set of raw banked registers inaccessible.
9574         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9575         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9576         case for copying bytes back and forth between raw and pseudo
9577         versions of the banked registers.  Update other cases to reflect
9578         the changed names.
9579         (rl78_return_value): Update to account for changed names of
9580         raw registers.
9581         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9582         rl78_register_sim_regno().
9583
9584 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9585
9586         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9587         the name parameter being passed to find_pc_partial_function().
9588
9589 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9590
9591         * MAINTAINERS: Step down from being ia64 target maintainer.
9592
9593 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9594
9595         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9596         compilation warning.
9597
9598 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9599
9600         Fix crash on loaded shlibs without loaded exec_bfd.
9601         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9602         (set_section_command): Replace exec_bfd by p->bfd.
9603
9604 2012-02-10  Tom Tromey  <tromey@redhat.com>
9605
9606         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9607         when we have a C++ qualified name.
9608
9609 2012-02-10  Pedro Alves  <palves@redhat.com>
9610
9611         * inferior.c (inferior_pid_to_str): New.
9612         (print_inferior, inferior_command): Use it.
9613
9614 2012-02-10  Pedro Alves  <palves@redhat.com>
9615
9616         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9617         the test CFLAGS.
9618         * configure: Regenerate.
9619
9620 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9621
9622         * linespec.c (decode_line_internal): Fix comment correctness.
9623
9624 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9625
9626         PR gdb/12953
9627         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9628         * amd64bsd-nat.c: Add support for debug registers (adapted from
9629         i386bsd-nat.c).
9630         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9631         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9632         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9633         (amd64bsd_dr_get_control): New functions.
9634         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9635         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9636         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9637         watchpoints initialization.
9638         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9639
9640 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9641
9642         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9643         flds_bnds.fields.
9644         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9645
9646 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9647
9648         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9649
9650 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9651
9652         * language.h (symbol_name_cmp_ftype): Renames
9653         symbol_name_match_p_ftype.
9654         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9655         la_get_symbol_name_match_p.
9656         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9657         ada_get_symbol_name_match_p.  Update comment.
9658         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9659         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9660         Renames symbol_name_match_p.  Update field type.
9661         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9662         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9663         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9664         "la_get_symbol_name_cmp" in comments.
9665         * language.c: Likewise.
9666
9667 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9668
9669         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9670         %eflags offset.
9671         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9672         (amd64_sol2_gregset32_reg_offs): Likewise.
9673
9674 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9675
9676         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9677         of the returned BFD is allocated by GDB.
9678
9679 2012-02-07  Tom Tromey  <tromey@redhat.com>
9680
9681         PR python/12027:
9682         * python/python-internal.h (frame_object_type): Declare.
9683         * python/py-symbol.c (sympy_needs_frame): New function.
9684         (sympy_value): New function.
9685         (symbol_object_getset): Add "needs_frame".
9686         (symbol_object_methods): Add "value".
9687         * python/py-frame.c (frame_object_type): No longer static.
9688
9689 2012-02-07  Tom Tromey  <tromey@redhat.com>
9690
9691         PR python/13599:
9692         * python/py-symbol.c (sympy_line): New function.
9693         (symbol_object_getset): Add "line".
9694
9695 2012-02-07  Tom Tromey  <tromey@redhat.com>
9696
9697         * charset.c (find_charset_names): Check 'in' against NULL.
9698
9699 2012-02-06  Doug Evans  <dje@google.com>
9700
9701         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9702         and fields.name members from char * to const char *.  All uses updated.
9703         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9704         from char * to const char *.  All uses updated.
9705         (type_name_no_tag): Update.
9706         (lookup_unsigned_typename, lookup_signed_typename): Update.
9707         * gdbtypes.c (type_name_no_tag): Change result type
9708         from char * to const char *.  All callers updated.
9709         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9710         name parameter from char * to const char *.
9711         * symtab.h (struct cplus_specific): Change type of demangled_name
9712         member from char * to const char *.  All uses updated.
9713         (struct general_symbol_info): Change type of name and
9714         mangled_lang.demangled_name members from char * to const char *.
9715         All uses updated.
9716         (symbol_get_demangled_name, symbol_natural_name): Update.
9717         (symbol_demangled_name, symbol_search_name): Update.
9718         * symtab.c (symbol_get_demangled_name): Change result type
9719         from char * to const char *.  All callers updated.
9720         (symbol_natural_name, symbol_demangled_name): Ditto.
9721         (symbol_search_name): Ditto.
9722         (completion_list_add_name): Change type of symname,sym_text,
9723         text,word parameters from char * to const char *.
9724         (completion_list_objc_symbol): Change type of sym_text,
9725         text,word parameters from char * to const char *.
9726         * ada-lang.c (find_struct_field): Change type of name parameter
9727         from char * to const char *.
9728         (encoded_ordered_before): Similarly for N0,N1 parameters.
9729         (old_renaming_is_invisible): Similarly for function_name parameter.
9730         (ada_type_name): Change result type from char * to const char *.
9731         All callers updated.
9732         * ada-lang.h (ada_type_name): Update.
9733         * buildsym.c (hashname): Change type of name parameter
9734         from char * to const char *.
9735         * buildsym.h (hashname): Update.
9736         * dbxread.c (end_psymtab): Change type of include_list parameter
9737         from char ** to const char **.
9738         * dwarf2read.c (determine_prefix): Change result type
9739         from char * to const char *.  All callers updated.
9740         * f-lang.c (find_common_for_function): Change type of name, funcname
9741         parameters from char * to const char *.
9742         * f-lang.c (find_common_for_function): Update.
9743         * f-valprint.c (list_all_visible_commons): Change type of funcname
9744         parameters from char * to const char *.
9745         * gdbarch.sh (static_transform_name): Change type of name parameter
9746         and result from char * to const char *.
9747         * gdbarch.c: Regenerate.
9748         * gdbarch.h: Regenerate.
9749         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9750         of name parameter from char * to const char *.
9751         * jv-lang.c (java_primitive_type_from_name): Ditto.
9752         (java_demangled_signature_length): Similarly for signature parameter.
9753         (java_demangled_signature_copy): Ditto.
9754         (java_demangle_type_signature): Ditto.
9755         * jv-lang.h (java_primitive_type_from_name): Update.
9756         (java_demangle_type_signature): Update.
9757         * objc-lang.c (specialcmp): Change type of a,b parameters
9758         from char * to const char *.
9759         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9760         from char * to const char *.  All callers updated.
9761         * p-lang.h (is_pascal_string_type): Update.
9762         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9763         of name parameter from char * to const char *.
9764         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9765         * utils.c (fprintf_symbol_filtered): Ditto.
9766         * defs.h (fprintf_symbol_filtered): Update.
9767         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9768         * stabsread.h (end_psymtab): Update.
9769         * stack.c (find_frame_funname): Change type of funname parameter
9770         from char ** to const char **.
9771         * stack.h (find_frame_funname): Update.
9772         * typeprint.c (type_print): Change type of varstring parameter
9773         from char * to const char *.
9774         * value.h (type_print): Update.
9775         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9776         from char * to const char *.  All callers updated.
9777         (xcoff_end_psymtab): Change type of include_list parameter
9778         from char ** to const char **.  All callers updated.
9779         (swap_sym): Similarly for name parameter.  All callers updated.
9780         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9781         Use xstrdup.
9782         (process_coff_symbol): Use xstrdup.
9783         * stabsread.c (stabs_method_name_from_physname): Renamed from
9784         update_method_name_from_physname.  Change result type from void
9785         to char *.  All callers updated.
9786         (read_member_functions): In has_destructor case, store name in objfile
9787         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9788
9789 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9790
9791         * configure: Rebuild.
9792         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9793         LDFLAGS.
9794
9795 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9796
9797         * configure.tgt (rl78-*-elf): New target.
9798         * rl78-tdep.c: New file.
9799
9800 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9801
9802         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9803         and continue the loop.  Add QUIT statement.
9804
9805 2012-02-03  Tom Tromey  <tromey@redhat.com>
9806
9807         PR gdb/13596:
9808         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9809         bfd_lookup_symbol_from_symtab.
9810         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9811         gdb_bfd_lookup_symbol_from_symtab.
9812
9813 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9814
9815         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9816         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9817         symbol.  Add assertion that sym2 is never NULL.
9818
9819 2012-02-02  Doug Evans  <dje@google.com>
9820
9821         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9822         "name" parameter to const char ** from char **.  All callers updated.
9823         (find_pc_partial_function): Ditto.
9824         (cache_pc_function_name): Change type to const char * from char *.
9825         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9826         (find_pc_partial_function): Update.
9827         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9828         type of "name" parameter to const char * from char *.
9829         All uses updated.
9830         * arch-utils.c (generic_in_solib_return_trampoline): Change
9831         type of "name" parameter to const char * from char *.
9832         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9833         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9834         type of "name" parameter to const char * from char *.
9835         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9836         * gdbarch.c: Regenerate.
9837         * gdbarch.h: Regenerate.
9838         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9839         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9840         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9841         type of "name" parameter to const char * from char *.
9842         * skip.c (skip_function_pc): Ditto.
9843         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9844         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9845         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9846         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9847         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9848         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9849         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9850         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9851         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9852
9853 2012-02-02  Pedro Alves  <palves@redhat.com>
9854
9855         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9856         the current inferior has no execution.  Make sure the current
9857         remote process matches gdb's current inferior.
9858
9859 2012-02-02  Tom Tromey  <tromey@redhat.com>
9860
9861         PR gdb/13405:
9862         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9863         read-only memory.
9864
9865 2012-02-02  Tom Tromey  <tromey@redhat.com>
9866
9867         PR gdb/9307:
9868         * symtab.c (lookup_language_this): Set block_found.
9869
9870 2012-02-01  Tom Tromey  <tromey@redhat.com>
9871
9872         PR gdb/13431:
9873         * jit.c (struct jit_inferior_data): Rewrite.
9874         (struct jit_objfile_data): New.
9875         (get_jit_objfile_data): New function.
9876         (add_objfile_entry): Update.
9877         (jit_read_descriptor): Return int.  Replace descriptor_addr
9878         argument with inf_data.  Update.  Don't call error.
9879         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9880         descriptor here.
9881         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9882         (jit_reset_inferior_data_and_breakpoints)
9883         (jit_inferior_created_observer): Remove.
9884         (jit_inferior_exit_hook): Update.
9885         (jit_executable_changed_observer): Remove.
9886         (jit_event_handler): Update.
9887         (free_objfile_data): Reset inferior data if needed.
9888         (_initialize_jit): Update.
9889
9890 2012-02-01  Tom Tromey  <tromey@redhat.com>
9891
9892         * jit.c (bfd_open_from_target_memory): Move higher in file.
9893
9894 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9895
9896         * libunwind-frame.c (libunwind_load): Display message if dlopen
9897         failed.
9898
9899 2012-02-01  Gary Benson  <gbenson@redhat.com>
9900
9901         * symtab.h (symbol_found_callback_ftype): New typedef.
9902         (iterate_over_symbols): Use the above.
9903         * symtab.c (iterate_over_symbols): Likewise.
9904         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9905         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9906         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9907         (iterate_name_matcher): Document return values.
9908         (collect_one_symbol): Likewise.
9909         (collect_function_symbols): Likewise.
9910         (collect_symbols): Likewise.
9911
9912 2012-02-01  Tom Tromey  <tromey@redhat.com>
9913
9914         * ada-lang.c (resolve_subexp): Update.
9915         (ada_lookup_symbol_list): Add 'full_search' argument.
9916         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9917         ada_lookup_symbol_list.
9918         (ada_lookup_encoded_symbol): Update.
9919         (get_var_value): Update.
9920         * ada-exp.y (block_lookup): Update.
9921         (write_var_or_type): Update.
9922         (write_name_assoc): Update.
9923         * ada-lang.h (ada_lookup_symbol_list): Update.
9924
9925 2012-01-31  Tom Tromey  <tromey@redhat.com>
9926
9927         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9928         comment.
9929
9930 2012-01-31  Doug Evans  <dje@google.com>
9931
9932         * symtab.h: Remove outdated comment.
9933         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9934
9935 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9936
9937         Fix build error in Darwin port.
9938         * i386-darwin-nat.c: Include i386-nat.h.
9939
9940 2012-01-30  Tom Tromey  <tromey@redhat.com>
9941
9942         PR breakpoints/13568:
9943         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9944         argument.  Check for recursive includes.
9945         (dwarf_decode_macros): Create an include hash.
9946
9947 2012-01-30  Michael Eager  <eager@eagercon.com>
9948
9949         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9950         * ppc-linux-tdep.c: Include glibc-tdep.h.
9951         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9952         (powerpc_linux_in_plt_stub): New function.
9953         (powerpc_linux_in_dynsym_resolve_code): New function.
9954         (ppc_skip_trampoline_code): New function.
9955         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9956         Use glibc_skip_solib_resolver.
9957
9958 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9959
9960         Code cleanup: Make 1440 bytes of data segment read-only.
9961         * arch-utils.c (endian_enum): Make it const char *const [].
9962         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9963         Likewise.
9964         * breakpoint.c (always_inserted_enums): Likewise.
9965         * cli/cli-cmds.c (script_ext_enums): Likewise.
9966         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9967         enumlist parameter const char *const *.
9968         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9969         const char *const *.
9970         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9971         parameter const char *const *.
9972         * cris-tdep.c (cris_modes): Make it const char *const [].
9973         * filesystem.c (target_file_system_kinds): Likewise.
9974         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9975         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9976         (can_use_displaced_stepping_enum, scheduler_enums)
9977         (exec_direction_names): Likewise.
9978         * language.c (_initialize_language): Make the type_or_range_names and
9979         case_sensitive_names variables const char *const [].
9980         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9981         * python/python.c (python_excp_enums): Likewise.
9982         * remote.c (interrupt_sequence_modes): Likewise.
9983         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9984         * serial.c (logbase_enums): Likewise.
9985         * sh-tdep.c (sh_cc_enum): Likewise.
9986         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9987         Likewise.
9988         * symtab.c (multiple_symbols_modes): Likewise.
9989         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9990         Likewise.
9991         * utils.c (internal_problem_modes): Likewise.
9992
9993 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9994
9995         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9996         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9997         result.
9998
9999 2012-01-27  Doug Evans  <dje@google.com>
10000
10001         * configure.ac (with_python): Fix absolute path handling for win32.
10002         * configure: Regenerate.
10003
10004 2012-01-26  Doug Evans  <dje@google.com>
10005
10006         * symtab.c: Whitespace cleanup, no code changes.
10007
10008         * symtab.c (lookup_symbol_in_language): Improve comment.
10009         (lookup_symbol_aux): Fix comment.
10010
10011         * psymtab.c (add_psymbol_to_list): Result is now "void".
10012         * psympriv.h (add_psymbol_to_list): Update.
10013
10014         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10015
10016 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10017
10018         Do not open script filenames twice.
10019         * cli/cli-cmds.c (source_script_from_stream): Pass to
10020         source_python_script also STREAM.
10021         * python/py-auto-load.c (source_section_scripts): Pass to
10022         source_python_script_for_objfile also STREAM.
10023         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10024         also INPUT.
10025         * python/python-internal.h (source_python_script_for_objfile): New
10026         parameter file, rename parameter file to filename.
10027         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10028         instead if !_WIN32.  Update the function comment.
10029         (source_python_script, source_python_script_for_objfile)
10030         (source_python_script): New parameter file, rename parameter file to
10031         filename.  Pass FILENAME to python_run_simple_file.
10032         * python/python.h (source_python_script): New parameter file, rename
10033         parameter file to filename.
10034
10035 2012-01-26  Pedro Alves  <palves@redhat.com>
10036
10037         * corelow.c (core_has_fake_pid): Delete.
10038         (core_close): Delete references to `core_has_fake_pid'.
10039         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10040         (core_open): Delete references to `core_has_fake_pid'.
10041         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10042         the removed global.
10043
10044 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10045
10046         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10047         Remove language parameter from name_matcher.  Adjust the comment.
10048         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10049         Remove language parameter.
10050         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10051         * linespec.c (iterate_name_matcher): Likewise.
10052         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10053         name_matcher.  Adjust call accordingly.
10054         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10055         (maintenance_check_symtabs): Adjust type of parameter "fun".
10056         * psymtab.h (maintenance_check_symtabs): Likewise.
10057
10058 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10059
10060         * language.h (symbol_name_match_p_ftype): New typedef.
10061         (struct language_defn): Replace field la_symbol_name_compare
10062         by la_get_symbol_name_match_p.
10063         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10064         (ada_language_defn): Use it.
10065         * linespec.c (struct symbol_matcher_data): New type.
10066         (iterate_name_matcher): Rewrite.
10067         (iterate_over_all_matching_symtabs): Pass a pointer to
10068         a symbol_matcher_data struct to expand_symtabs_matching
10069         instead of just the lookup name.
10070         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10071         opencl-lang.c, p-lang.c, language.c: Delete field
10072         la_symbol_name_compare, and replace by NULL for new field
10073         la_get_symbol_name_match_p.
10074         * symfile.h (struct quick_symbol_functions): Update comment.
10075
10076 2012-01-25  Tom Tromey  <tromey@redhat.com>
10077
10078         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10079         dereferencing.
10080
10081 2012-01-24  Tom Tromey  <tromey@redhat.com>
10082
10083         PR symtab/12406:
10084         * solib.c (update_solib_list): Update the program space's
10085         added_solibs and deleted_solibs fields.
10086         * progspace.h (struct program_space) <added_solibs,
10087         deleted_solibs>: New fields.
10088         (clear_program_space_solib_cache): Declare.
10089         * progspace.c (release_program_space): Call
10090         clear_program_space_solib_cache.
10091         (clear_program_space_solib_cache): New function.
10092         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10093         bpstat_stop_status.  Use handle_solib_event.
10094         * breakpoint.c: Include gdb_regex.h.
10095         (print_solib_event): New function.
10096         (bpstat_print): Use print_solib_event.
10097         (bpstat_stop_status): Add special case for bp_shlib_event.
10098         (handle_solib_event): New function.
10099         (bpstat_what): Use handle_solib_event.
10100         (struct solib_catchpoint): New.
10101         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10102         (breakpoint_hit_catch_solib, check_status_catch_solib)
10103         (print_it_catch_solib, print_one_catch_solib)
10104         (print_mention_catch_solib, print_recreate_catch_solib): New
10105         functions.
10106         (catch_solib_breakpoint_ops): New global.
10107         (catch_load_or_unload, catch_load_command_1)
10108         (catch_unload_command_1): New functions.
10109         (internal_bkpt_check_status): Add special case for
10110         bp_shlib_event.
10111         (internal_bkpt_print_it): Use print_solib_event.
10112         (initialize_breakpoint_ops): Initialize
10113         catch_solib_breakpoint_ops.
10114         (_initialize_breakpoint): Register "catch load" and "catch
10115         unload".
10116         * breakpoint.h (handle_solib_event): Declare.
10117         * NEWS: Add entry for "catch load" and "catch unload".
10118
10119 2012-01-24  Tom Tromey  <tromey@redhat.com>
10120
10121         * ada-lang.c: Include gdb_vecs.h.
10122         * charset.c: Include gdb_vecs.h.
10123         * tracepoint.h: Include gdb_vecs.h.
10124         * gdb_vecs.h: New file.
10125
10126 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10127
10128         * breakpoint.c (breakpoint_hit_catch_fork)
10129         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10130         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10131         * infrun.c (inferior_has_forked, inferior_has_vforked)
10132         (inferior_has_execd, inferior_has_called_syscall): Delete.
10133         (handle_syscall_event): Get syscall_number from the execution
10134         control state's wait status.
10135         (wait_for_inferior): Don't clear syscall_number.
10136
10137 2012-01-24  Pedro Alves  <palves@redhat.com>
10138
10139         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10140         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10141         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10142         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10143         `ws' parameter.
10144         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10145         false for events other than TARGET_SIGNAL_TRAP.
10146         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10147         Add `ws' parameter.
10148         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10149         events other than TARGET_SIGNAL_TRAP.
10150         (tracepoint_breakpoint_hit): Add `ws' parameter.
10151         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10152         parameter.
10153         (bpstat_stop_status): Same.
10154         (pc_at_non_inline_function): Same.
10155         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10156         to pass the current event's waitstatus to bpstat_stop_status
10157         and pc_at_non_inline_function.
10158
10159 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10160
10161         Code cleanup.
10162         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10163         Update the function comment for it.
10164         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10165         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10166         for STREAM.
10167
10168 2012-01-24  Pedro Alves  <palves@redhat.com>
10169
10170         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10171         outside `bs->stop' block.
10172         (bpstat_what): Rework bp_shlib_event handling.
10173         (internal_bkpt_check_status): If the breakpoint is a
10174         bp_shlib_event, then set bs->stop and bs->print if
10175         stop_on_solib_events is set.
10176
10177 2012-01-24  Gary Benson  <gbenson@redhat.com>
10178
10179         Delete #if 0'd out code.
10180         * stack.c (print_frame_label_vars): Remove.
10181         (catch_info): Likewise.
10182         (_initialize_stack): Remove "info catch" command.
10183         * NEWS: Mention the above.
10184
10185 2012-01-24  Pedro Alves  <palves@redhat.com>
10186
10187         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10188         it.
10189         (remote_notice_new_inferior): If the remote end doesn't support
10190         the multiprocess extensions, then the PID is fake.
10191         (add_current_inferior_and_thread): New.
10192         (remote_start_remote): Use it.
10193         (extended_remote_attach_1): Adjust.
10194         (extended_remote_create_inferior_1): Use
10195         add_current_inferior_and_thread.
10196
10197 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10198
10199         Fix watchpoints to be specific for each inferior.
10200         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10201         current_program_space.
10202         * i386-nat.c (i386_inferior_data_cleanup): New.
10203         (i386_inferior_data_get): Replace variable inf_data_local by an
10204         inferior_data call.
10205         (i386_use_watchpoints): Initialize i386_inferior_data.
10206         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10207         specific iterate_over_lwps.
10208
10209 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10210
10211         Fix watchpoints across inferior fork.
10212         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10213         comment for linux_nat_iterate_watchpoint_lwps.
10214         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10215         linux_nat_iterate_watchpoint_lwps.
10216         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10217         * i386-linux-nat.c (update_debug_registers_callback): Update the
10218         comment for linux_nat_iterate_watchpoint_lwps.
10219         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10220         linux_nat_iterate_watchpoint_lwps.
10221         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10222         * i386-nat.c: Include inferior.h.
10223         (dr_mirror): Remove.
10224         (i386_inferior_data, struct i386_inferior_data)
10225         (i386_inferior_data_get): New.
10226         (i386_debug_reg_state): Use i386_inferior_data_get.
10227         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10228         (i386_insert_watchpoint, i386_remove_watchpoint)
10229         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10230         (i386_remove_hw_breakpoint): New variable state, use
10231         i386_debug_reg_state instead of DR_MIRROR.
10232         * linux-nat.c (delete_lwp): New declaration.
10233         (num_lwps): Move here from downwards.
10234         (delete_lwp_cleanup): New.
10235         (linux_child_follow_fork): Create new child_lp, call
10236         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10237         PTRACE_DETACH.
10238         (num_lwps): Move upwards.
10239         (linux_nat_iterate_watchpoint_lwps): New.
10240         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10241         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10242
10243 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10244
10245         GDB 7.4 released.
10246
10247 2012-01-23  Pedro Alves  <palves@redhat.com>
10248
10249         * top.c (caution): Rename to ...
10250         (confirm): ... this.
10251         (show_caution): Rename to ...
10252         (show_confirm): ... this.
10253         (quit_cover): Adjust.
10254         (init_main): Adjust.
10255         * top.h (caution): Rename to ...
10256         (confirm): ... this.
10257         * utils.c (internal_vproblem, defaulted_query): Adjust.
10258
10259 2012-01-23  Pedro Alves  <palves@redhat.com>
10260
10261         * top.c (caution): Update comment.
10262         (execute_command): Don't consider the current value of `caution'.
10263
10264 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10265
10266         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10267
10268 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10269
10270         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10271         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10272         * target.c (target_fileio_pwrite): Remove buffer address from
10273         debug output.
10274         (target_fileio_pread): Likewise.
10275
10276 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10277
10278         * NEWS: Document remote "info proc" and "generate-core-file".
10279
10280 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10281
10282         * gdbarch.sh (find_memory_regions): New callback.
10283         * gdbarch.c, gdbarch.h: Regenerate.
10284
10285         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10286         callback before falling back to target method.
10287
10288         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10289         (linux_target_install_ops): No longer install it.
10290
10291         * linux-tdep.c (linux_find_memory_regions): New function.
10292         (linux_init_abi): Install it.
10293
10294 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10295
10296         * gdbarch.sh (make_corefile_notes): New architecture callback.
10297         * gdbarch.c: Regenerate.
10298         * gdbarch.h: Likewise.
10299
10300         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10301         before target_make_corefile_notes.  If NULL is returned, the
10302         target does not support core file generation.
10303
10304         * linux-nat.c: Include "linux-tdep.h".
10305         (find_signalled_thread, find_stop_signal): Remove.
10306         (linux_nat_do_thread_registers): Likewise.
10307         (struct linux_nat_corefile_thread_data): Likewise.
10308         (linux_nat_corefile_thread_callback): Likewise.
10309         (iterate_over_spus): Likewise.
10310         (struct linux_spu_corefile_data): Likewise.
10311         (linux_spu_corefile_callback): Likewise.
10312         (linux_spu_make_corefile_notes): Likewise.
10313         (linux_nat_collect_thread_registers): New function.
10314         (linux_nat_make_corefile_notes): Replace contents by call to
10315         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10316         as native-only callback.
10317
10318         * linux-tdep.h: Include "bfd.h".
10319         (struct regcache): Add forward declaration.
10320         (linux_collect_thread_registers_ftype): New typedef.
10321         (linux_make_corefile_notes): Add prototype.
10322         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10323         "regset.h", and "elf-bfd.h".
10324         (find_signalled_thread, find_stop_signal): New functions.
10325         (linux_spu_make_corefile_notes): Likewise.
10326         (linux_collect_thread_registers): Likewise.
10327         (struct linux_corefile_thread_data): New data structure.
10328         (linux_corefile_thread_callback): New funcion.
10329         (linux_make_corefile_notes): Likewise.
10330         (linux_make_corefile_notes_1): Likewise.
10331         (linux_init_abi): Install it.
10332
10333 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10334
10335         * gdbarch.sh (info_proc): New callback.
10336         * gdbarch.c, gdbarch.h: Regenerate.
10337
10338         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10339         before falling back to the target info_proc callback.
10340
10341         * linux-nat.c: Do not include "cli/cli-utils.h".
10342         (linux_nat_info_proc): Remove.
10343         (linux_target_install_ops): No longer install it.
10344
10345         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10346         (read_mapping): New function.
10347         (linux_info_proc): Likewise.
10348         (linux_init_abi): Install it.
10349
10350 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10351
10352         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10353         * infcmd.c: (info_proc_cmd_1): New function.
10354         (info_proc_cmd): New function, moved here from equivalent routine
10355         orignally in linux-nat.c.
10356         (info_proc_cmd_mappings): Likewise.
10357         (info_proc_cmd_stat): Likewise.
10358         (info_proc_cmd_status): Likewise.
10359         (info_proc_cmd_cwd): Likewise.
10360         (info_proc_cmd_cmdline): Likewise.
10361         (info_proc_cmd_exe): Likewise.
10362         (info_proc_cmd_all): Likewise.
10363         (_initialize_infcmd): Install "info proc" command and subcommands.
10364
10365         * target.h (struct target_ops): Add to_info_proc.
10366         (target_info_proc): Add prototype.
10367         * target.c (target_info_proc): New function.
10368
10369         * procfs.c (procfs_info_proc): Add prototype.
10370         (info_proc_cmd): Rename into ...
10371         (procfs_info_proc): ... this.  Update argument types as appropriate
10372         for a to_info_proc implementation.  Handle "what" argument.
10373         (procfs_target): Install procfs_info_proc.
10374         (_initialize_procfs): No longer install "info proc" command.
10375
10376         * linux-nat.c: (enum info_proc_what): Remove.
10377         (linux_nat_info_proc_cmd_1): Rename into ...
10378         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10379         for a to_info_proc implementation.
10380         (linux_nat_info_proc_cmd): Remove.
10381         (linux_nat_info_proc_cmd_mappings): Likewise.
10382         (linux_nat_info_proc_cmd_stat): Likewise.
10383         (linux_nat_info_proc_cmd_status): Likewise.
10384         (linux_nat_info_proc_cmd_cwd): Likewise.
10385         (linux_nat_info_proc_cmd_cmdline): Likewise.
10386         (linux_nat_info_proc_cmd_exe): Likewise.
10387         (linux_nat_info_proc_cmd_all): Likewise.
10388         (linux_target_install_ops): Install linux_nat_info_proc.
10389         (_initialize_linux_nat): No longer install "info proc" command
10390         and subcommands.
10391
10392 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10393
10394         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10395         * config.in, configure: Regenerate.
10396
10397         * target.h (struct target_ops): Add to_fileio_readlink.
10398         (target_fileio_readlink): Add prototype.
10399         * target.c (target_fileio_readlink): New function.
10400
10401         * inf-child.c: Conditionally include <sys/param.h>.
10402         (inf_child_fileio_readlink): New function.
10403         (inf_child_target): Install it.
10404
10405         * remote.c (PACKET_vFile_readlink): New enum value.
10406         (remote_hostio_readlink): New function.
10407         (init_remote_ops): Install it.
10408         (_initialize_remote): Handle vFile:readlink packet type.
10409
10410 2012-01-20  Pedro Alves  <palves@redhat.com>
10411             Ulrich Weigand  <ulrich.weigand@linaro.org>
10412
10413         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10414         * config.in, configure: Regenerate.
10415
10416         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10417         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10418         (target_fileio_open): Add prototype.
10419         (target_fileio_pwrite): Likewise.
10420         (target_fileio_pread): Likewise.
10421         (target_fileio_close): Likewise.
10422         (target_fileio_unlink): Likewise.
10423         (target_fileio_read_alloc): Likewise.
10424         (target_fileio_read_stralloc): Likewise.
10425
10426         * target.c: Include "gdb/fileio.h".
10427         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10428         (default_fileio_target): New function.
10429         (target_fileio_open): Likewise.
10430         (target_fileio_pwrite): Likewise.
10431         (target_fileio_pread): Likewise.
10432         (target_fileio_close): Likewise.
10433         (target_fileio_unlink): Likewise.
10434         (target_fileio_close_cleanup): Likewise.
10435         (target_fileio_read_alloc_1): Likewise.
10436         (target_fileio_read_alloc): Likewise.
10437         (target_fileio_read_stralloc): Likewise.
10438
10439         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10440         <fcntl.h>, and <unistd.h>.
10441         (inf_child_fileio_open_flags_to_host): New function.
10442         (inf_child_errno_to_fileio_error): Likewise.
10443         (inf_child_fileio_open): Likewise.
10444         (inf_child_fileio_pwrite): Likewise.
10445         (inf_child_fileio_pread): Likewise.
10446         (inf_child_fileio_close): Likewise.
10447         (inf_child_fileio_unlink): Likewise.
10448         (inf_child_target): Install to_fileio routines.
10449
10450         * remote.c (init_remote_ops): Install to_fileio routines.
10451
10452 2012-01-20  Pedro Alves  <palves@redhat.com>
10453             Ulrich Weigand  <ulrich.weigand@linaro.org>
10454
10455         * remote.c (remote_multi_process_p): Only check for multi-process
10456         protocol feature, do not check for extended protocol.
10457         (remote_supports_multi_process): Check for extended protocol here.
10458         (set_general_process): Likewise.
10459         (extended_remote_kill): Likewise.
10460         (remote_pid_to_str): Likewise.
10461         (remote_query_supported): Always query multiprocess mode.
10462
10463 2012-01-20  Pedro Alves  <palves@redhat.com>
10464             Ulrich Weigand  <ulrich.weigand@linaro.org>
10465
10466         * inferior.h (struct inferior): Add fake_pid_p.
10467         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10468         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10469         magic_null_ptid since the remote side doesn't provide a real PID.
10470
10471 2012-01-19  Tom Tromey  <tromey@redhat.com>
10472
10473         * NEWS: Combine the two Python sections.
10474
10475 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10476
10477         * target.h (target_close): Update comment on the target's unpush state.
10478
10479 2012-01-19  Pedro Alves  <palves@redhat.com>
10480
10481         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10482         linux_nat_async directly instead of going through the target
10483         vector.
10484         * target.c (unpush_target): Close target after unpushing it, not
10485         before.
10486
10487 2012-01-19  Gary Benson  <gbenson@redhat.com>
10488
10489         * mdebugread.c (sort_blocks): Replace integer constants with ones
10490         derived from FIRST_LOCAL_BLOCK.
10491
10492 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10493             Jan Kratochvil  <jan.kratochvil@redhat.com>
10494
10495         PR gdb/9538
10496         * symfile.c (find_separate_debug_file): New function.
10497         (terminate_after_last_dir_separator): Likewise.
10498         (find_separate_debug_file_by_debuglink): Also try realpath.
10499         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10500         * configure: Regenerate.
10501         * config.in: Regenerate.
10502
10503 2012-01-18  Doug Evans  <dje@google.com>
10504
10505         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10506         (main.o): Remove rule.
10507         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10508         (--with-sysroot): Rewrite.
10509         * configure: Regenerate.
10510         * config.in: Regenerate.
10511
10512 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10513
10514         * parse.c (initialize_expout): New function.
10515         (reallocate_expout): Likewise.
10516         (parse_exp_in_context): Use `initialize_expout' and
10517         `reallocate_expout' when appropriate.
10518
10519 2012-01-18  Pedro Alves  <palves@redhat.com>
10520
10521         * record.c (struct record_breakpoint, record_breakpoint_p)
10522         (record_breakpoints): New.
10523         (record_insert_breakpoint, record_remove_breakpoint): Manage
10524         record breakpoints list.  Only remove breakpoints from the
10525         inferior if they had been inserted there in the first place.
10526
10527 2012-01-17  Doug Evans  <dje@google.com>
10528
10529         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10530         if we know we don't have a file name to look for.
10531
10532 2012-01-17  Pedro Alves  <palves@redhat.com>
10533
10534         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10535         the frame's stop reason is UNWIND_UNAVAILABLE.
10536
10537 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10538
10539         Fix compilation error.
10540         * m2-exp.y (yyerror): Use ANSI C prototype.
10541
10542 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10543
10544         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10545         (growbuf_by_size): Likewise.
10546         (yyerror): Likewise.
10547         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10548         (modblock): Remove variable (was #if 0'ed).
10549         (parse_number): Convert prototype from K&R to ANSI C.
10550         (yyerror): Likewise.
10551         * objc-exp.y (parse_number): Likewise.
10552         (yyerror): Likewise.
10553         (yylex): Remove #if 0'ed code.
10554         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10555         (yyerror): Likewise.
10556
10557 2012-01-16  Tom Tromey  <tromey@redhat.com>
10558
10559         * NEWS: Add item.
10560         * symtab.h (compare_filenames_for_search): Declare.
10561         * symtab.c (compare_filenames_for_search): New function.
10562         (iterate_over_some_symtabs): Use it.
10563         * symfile.h (struct quick_symbol_functions)
10564         <map_symtabs_matching_filename>: Change spec.
10565         * psymtab.c (partial_map_symtabs_matching_filename): Use
10566         compare_filenames_for_search.  Update for new spec.
10567         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10568         compare_filenames_for_search.  Update for new spec.
10569         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10570
10571 2012-01-16  Tom Tromey  <tromey@redhat.com>
10572
10573         PR python/13281:
10574         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10575         (struct main_type) <flag_flag_enum>: New field.
10576         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10577         * NEWS: Add entries.
10578         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10579         enums.
10580         * python/lib/gdb/printing.py (_EnumInstance): New class.
10581         (FlagEnumerationPrinter): Likewise.
10582
10583 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10584
10585         * breakpoint.c (create_sals_from_address_default): New function.
10586         (create_breakpoints_sal_default): Likewise.
10587         (decode_linespec_default): Likewise.
10588         (is_marker_spec): Removed.
10589         (strace_marker_p): New function.
10590         (init_breakpoint_sal): Using `strace_marker_p' instead of
10591         `is_marker_spec'.
10592         (create_breakpoint): Call method `create_sals_from_address' from
10593         breakpoint_ops, replacing code that created SALs conditionally
10594         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10595         replacing code that created breakpoints conditionally on the type
10596         wanted.
10597         (base_breakpoint_create_sals_from_address): New function.
10598         (base_breakpoint_create_breakpoints_sal): Likewise.
10599         (base_breakpoint_decode_linespec): Likewise.
10600         (base_breakpoint_ops): Add methods
10601         `base_breakpoint_create_sals_from_address',
10602         `base_breakpoint_create_breakpoints_sal' and
10603         `base_breakpoint_decode_linespec'.
10604         (bkpt_create_sals_from_address): New function.
10605         (bkpt_create_breakpoints_sal): Likewise.
10606         (bkpt_decode_linespec): Likewise.
10607         (tracepoint_create_sals_from_address): Likewise.
10608         (tracepoint_create_breakpoints_sal): Likewise.
10609         (tracepoint_decode_linespec): Likewise.
10610         (strace_marker_create_sals_from_address): Likewise.
10611         (strace_marker_create_breakpoints_sal): Likewise.
10612         (strace_marker_decode_linespec): Likewise.
10613         (strace_marker_breakpoint_ops): New variable.
10614         (addr_string_to_sals): Remove `marker_spec'.  Call method
10615         `decode_linespec' from breakpoint_ops, replacing code that decoded
10616         an address string into a SAL.  Use `strace_marker_p' instead of
10617         `marker_spec'.
10618         (strace_command): Decide whether we are dealing with a static
10619         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10620         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10621         * breakpoint.h (linespec_result, linespec_sals): New forward
10622         declarations.
10623         (breakpoint_ops) <create_sals_from_address>,
10624         <create_breakpoints_sal>, <decode_linespec>: New methods.
10625
10626 2012-01-14  Doug Evans  <dje@google.com>
10627
10628         * NEWS: Update text for "maint set python print-stack".
10629         It is deprecated in gdb 7.4 and deleted in 7.5.
10630
10631 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10632
10633         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10634         including curses.h.
10635
10636 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10637
10638         * configure: Regenerate.
10639         * config.in: Regenerate.
10640
10641 2012-01-12  Keith Seitz  <keiths@redhat.com>
10642
10643         PR mi/10586
10644         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10645         (ANONYMOUS_UNION_NAME): Define.
10646         (is_path_expr_parent): New function.
10647         (get_path_expr_parent): New function.
10648         (is_anonymous_child): New function.
10649         (create_child_with_value): If the child is anonymous and without
10650         a name, assign an object name to it.
10651         (c_describe_child): Use get_path_expr_parent to determine
10652         the parent expression.
10653         If there field represents an anonymous struct or union and
10654         has no name, set an appropriate display name and expression.
10655         (cplus_describe_child): Likewise.
10656
10657 2012-01-12  Pedro Alves  <palves@redhat.com>
10658
10659         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10660         available when %ebp is found to be zero (outermost).
10661
10662 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10663
10664         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10665         an internal gdb_static_assert.
10666         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10667
10668 2012-01-11  Tom Tromey  <tromey@redhat.com>
10669
10670         PR gdb/9598:
10671         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10672         catch" and "catch throw".
10673
10674 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10675
10676         * blockframe.c (block_innermost_frame): Start search from selected
10677         frame, if present, or otherwise the current frame.
10678
10679         * c-exp.y (variable): Update innermost_block for
10680         'block COLONCOLON NAME' clause.
10681         * m2-exp.y (variable): Ditto.
10682         * objc-exp.y (variable): Ditto.
10683
10684 2012-01-10  Tom Tromey  <tromey@redhat.com>
10685
10686         PR python/13199:
10687         * python/python.c (finish_python_initialization): Set sys.argv.
10688
10689 2012-01-10  Doug Evans  <dje@google.com>
10690
10691         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10692         "want_line_info".  All callers updated.
10693         (dwarf_decode_lines_1): New function.
10694         (handle_DW_AT_stmt_list): Add function comment.
10695         New arg "want_line_info".  All callers updated.
10696         (read_file_scope,read_type_unit_scope): Move comment from
10697         handle_DW_AT_stmt_list to here.
10698
10699 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10700
10701         Fix regression after libiberty/ update for GCC PR 6057 and others.
10702         * c-exp.y (operator) <OPERATOR DELETE>
10703         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10704         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10705         (make_builtin_type, make_name): New variable i, add gdb_assert.
10706         (operator) <OPERATOR NEW>: Update ARGS to 3.
10707         (operator) <OPERATOR DELETE>: Add trailing space.
10708         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10709         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10710         * cp-support.c (cp_canonicalize_string): Check NULL from
10711         cp_comp_to_string, call warning and return.
10712
10713 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10714
10715         Fix duplicate .o files after omitting libbfd.a.
10716         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10717         (SFILES): Add corelow.c.
10718         (COMMON_OBS): Add corelow.o.
10719         (ALLDEPFILES): Remove corelow.c.
10720         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10721         * config/alpha/alpha-osf3.mh: Likewise.
10722         * config/alpha/fbsd.mh: Likewise.
10723         * config/arm/nbsdaout.mh: Likewise.
10724         * config/arm/nbsdelf.mh: Likewise.
10725         * config/i386/i386gnu.mh: Likewise.
10726         * config/ia64/hpux.mh: Likewise.
10727         * config/ia64/linux.mh: Likewise.
10728         * config/m32r/linux.mh: Likewise.
10729         * config/m68k/linux.mh: Likewise.
10730         * config/mips/irix5.mh: Likewise.
10731         * config/mips/irix6.mh: Likewise.
10732         * config/pa/hpux.mh: Likewise.
10733         * config/pa/linux.mh: Likewise.
10734         * config/powerpc/aix.mh: Likewise.
10735         * config/sparc/linux.mh: Likewise.
10736         * config/sparc/linux64.mh: Likewise.
10737         * config/sparc/sol2.mh: Likewise.
10738         * config/vax/vax.mh: Likewise.
10739         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10740         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10741         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10742         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10743         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10744         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10745         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10746         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10747         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10748         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10749         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10750         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10751         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10752         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10753         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10754         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10755         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10756         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10757         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10758         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10759         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10760         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10761         corelow.o from gdb_target_obs.
10762         * corefile.c (core_target): Update the comment on NULL value.
10763         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10764         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10765         MATCHES.  Drop YUMMY set on NULL.
10766         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10767         reclaim CORE_DATA if it is already NULL.
10768
10769 2012-01-09  Doug Evans  <dje@google.com>
10770
10771         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10772         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10773
10774 2012-01-09  Keith Seitz  <keiths@redhat.com>
10775
10776         * breakpoint.c (wrapper.h): Don't include.
10777
10778 2012-01-09  Keith Seitz  <keiths@redhat.com>
10779
10780         * Makefile.in (SFILES): Remove wrapper.c.
10781         (HFILES_NO_SRCDIR): Remove wrapper.h.
10782         (COMMON_OBS): Remove wrapper.o.
10783         * cli/cli-interp.c: Don't inlude wrapper.h.
10784         * corelow.c: Likewise.
10785         (core_open): Replace gdb_target_find_new_threads with
10786         TRY_CATCH around target_find_new_threads.
10787         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10788         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10789         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10790         evaluate_expression.
10791         (varobj_set_value): Likewise for evaluate_expression and
10792         value_assign.
10793         (install_new_variable): Likewise for value_fetch_lazy.
10794         (adjust_value_for_child_access): Likewise for value_ind.
10795         (c_describe_child): Likewise for value_subscript and
10796         value_ind.
10797         (c_value_of_root): Likewise for evaluate_expression.
10798         * wrapper.c: Remove.
10799         * wrapper.h: Remove.
10800
10801 2012-01-09  Doug Evans  <dje@google.com>
10802
10803         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10804         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10805         "abfd" args with "section".  All callers updated.
10806         Error checking code moved ...
10807         (error_check_comp_unit_head): ... here.  New function.
10808         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10809         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10810         (create_debug_types_hash_table): Simplify by using
10811         read_and_check_type_unit_head.
10812
10813         * parser-defs.h (namecopy): Delete.
10814         * parse.c (namecopy, namecopy_size): Move into copy_name.
10815
10816 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10817
10818         Partially fix duplicate .o files after omitting libbfd.a.
10819         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10820         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10821         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10822         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10823         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10824         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10825         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10826
10827 2012-01-09  Pedro Alves  <palves@redhat.com>
10828
10829         * MAINTAINERS: Update my email address.
10830
10831 2012-01-08  Doug Evans  <dje@google.com>
10832
10833         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10834         n_type_units.  Rename type_comp_units to all_type_units.
10835         All uses updated.
10836         (add_signatured_type_cu_to_table): Renamed from
10837         add_signatured_type_cu_to_list.  All callers updated.
10838
10839         * gdbtypes.h (struct cplus_struct_type): Delete member
10840         nfn_fields_total.  All uses removed.
10841
10842 2012-01-06  Doug Evans  <dje@google.com>
10843
10844         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10845         to top of file.
10846         (dwarf2_find_comp_unit): Delete.
10847         (process_psymtab_comp_unit): Make result "void".
10848         Delete args buffer, info_ptr, buffer_size, and replace with
10849         "section".  All callers updated.
10850         (dwarf2_build_psymtabs_hard): Simplify.
10851
10852 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10853             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10854
10855         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10856         before `struct gdb_exception'.
10857         * breakpoint.c (update_global_location_list_nothrow)
10858         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10859         * cp-abi.c (value_rtti_type): Likewise.
10860         * cp-support.c (cp_validate_operator): Likewise.
10861         * infrun.c (insert_exception_resume_breakpoint)
10862         (check_exception_resume, keep_going): Likewise.
10863         * mi-interp.c (mi_breakpoint_created)
10864         (mi_breakpoint_modified): Likewise.
10865         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10866         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10867         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10868
10869 2012-01-05  Doug Evans  <dje@google.com>
10870
10871         * dwarf2read.c (statement_prologue): Delete, unused.
10872
10873         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10874         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10875
10876         * dwarf2read.c (comp_unit_header): Delete, unused.
10877
10878 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10879
10880         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10881         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10882
10883 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10884
10885         * infrun.c (normal_stop): Don't skip calling the normal_stop
10886         observers if the thread was doing a multi-step, but stopped for
10887         some reason other than stepping.
10888
10889 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10890
10891         * cli/cli-decode.h: Add comments.
10892         (CMD_LIST_AMBIGUOUS): Moved to command.h
10893         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10894         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10895         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10896         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10897         (add_com, add_com_alias, add_info, add_info_alias)
10898         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10899         declarations.
10900         * command.h: Add and adjust comments.
10901         (CMD_LIST_AMBIGUOUS): Moved here.
10902         (help_cmd, help_cmd_list): Delete declarations.
10903
10904 2012-01-04  Doug Evans  <dje@google.com>
10905
10906         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10907         All callers updated.
10908         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10909         Replace all arguments with "per_cu".  All callers updated.
10910
10911         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10912
10913         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10914         New arg "per_cu".  All callers updated.
10915
10916         Delete #if 0'd out code.
10917         * language.c (binop_result_type): Delete.
10918         (simple_type, ordered_type, same_type, integral_type): Delete.
10919         (numeric_type, character_type, string_type, boolean_type): Delete.
10920         (float_type, structured_type): Delete.
10921         * language.h: Update.
10922
10923 2012-01-04  Tom Tromey  <tromey@redhat.com>
10924
10925         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10926
10927 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10928
10929         * corefile.c (close_exec_file): Delete.
10930         (reopen_exec_file): Remove commented out code that seems related
10931         to close_exec_file, which is being deleted here.
10932         * inferior.h (close_exec_file): Delete.
10933         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10934
10935 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10936
10937         * ada-lang.c: #include "cli/cli-utils.h".
10938         (get_selections): Use skip_spaces.
10939         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10940         (catch_ada_exception_command_split): Use skip_spaces.
10941         (ada_decode_assert_location): Likewise.
10942
10943 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10944
10945         * linespec.c (decode_line_internal): Check for C++ or Java
10946         compound constructs only if the current language is C, C++
10947         or Java.
10948
10949 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10950
10951         Revert:
10952         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10953                     Joel Brobecker  <brobecker@adacore.com>
10954         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10955         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10956         3 times.
10957         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10958         fall through into AT_ENTRY_POINT.
10959         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10960         DUMMY_ADDR with it.
10961         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10962         PPC_INSN_SIZE skip to 3 times.
10963
10964 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10965
10966         * linespec.c (add_minsym): Preserve function descriptors.
10967
10968 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10969
10970         * breakpoint.c (all_locations_are_pending): Consider locations
10971         in program spaces executing during startup pending as well.
10972
10973 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10974
10975         Copyright year update in most files of the GDB Project.
10976
10977 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10978
10979         * copyright.sh: Delete.
10980         * copyright.py: Rewrite.
10981
10982 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10983
10984         * gnulib/extra/update-copyright: New file, imported from gnulib.
10985
10986 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10987
10988         * README (Copyright and License Notices): New section.
10989
10990 2012-01-03  Tom Tromey  <tromey@redhat.com>
10991
10992         PR python/12533:
10993         * python/py-value.c (valpy_dereference, valpy_get_address
10994         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10995         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10996         (valpy_absolute, valpy_richcompare): Free intermediate values.
10997
10998 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10999
11000         * ada-lang.c: Reformat the copyright notice.
11001
11002 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11003
11004         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11005         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11006         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11007         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11008         Revert this part of:
11009         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11010         Build gdb directly from *.o files not using libgdb.a.
11011         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11012
11013 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11014
11015         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11016         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11017         Reformat the copyright header.
11018
11019 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11020
11021         Revert this part of:
11022         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11023         Remove the gdbtui binary.
11024         * gdb.c (main): Remove args.interpreter_p initialization.
11025         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11026         * main.h (struct captured_main_args): Remove interpreter_p.
11027
11028 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11029
11030         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11031
11032 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11033
11034         * top.c (print_gdb_version): Update copyright year.
11035
11036 2012-01-02  Yao Qi  <yao@codesourcery.com>
11037
11038         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11039
11040 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11041             Joel Brobecker  <brobecker@adacore.com>
11042
11043         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11044         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11045         3 times.
11046         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11047         fall through into AT_ENTRY_POINT.
11048         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11049         DUMMY_ADDR with it.
11050         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11051         PPC_INSN_SIZE skip to 3 times.
11052
11053 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11054
11055         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11056         the return value.
11057         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11058
11059 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11060
11061         Build gdb directly from *.o files not using libgdb.a.
11062         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11063         (COMMON_OBS): Remove solib-target.o.
11064         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11065         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11066         (LIBGDB_OBS, libgdb.a): Move it above.
11067         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11068         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11069         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11070         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11071         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11072         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11073         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11074         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11075         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11076         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11077         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11078         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11079         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11080         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11081         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11082         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11083         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11084         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11085         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11086         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11087         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11088         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11089         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11090         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11091         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11092         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11093         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11094
11095 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11096
11097         Remove the gdbtui binary.
11098         * .gitignore (/gdbtui): Remove.
11099         * Makefile.in (TUI): Remove.
11100         (SUBDIR_TUI_OBS): Remove tui-main.o.
11101         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11102         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11103         (tui-main.o): Remove.
11104         (all_object_files): Remove tui-main.o.
11105         * NEWS: New note for the gdbtui removal.
11106         * configure: Rebuilt.
11107         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11108         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11109         CONFIG_UNINSTALL respectively.
11110         * gdb.c (main): Remove args.interpreter_p initialization.
11111         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11112         * main.h (struct captured_main_args): Remove interpreter_p.
11113         * tui/tui-main.c: Remove.
11114
11115 2012-01-01  Doug Evans  <dje@google.com>
11116
11117         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11118         (dwarf2_physname, read_import_statement): Ditto.
11119         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11120         (process_structure_scope read_subroutine_type): Ditto.
11121         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11122         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11123         (dwarf2_fetch_die_location_block): Ditto.
11124         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11125
11126         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11127         All callers updated.
11128         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11129         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11130         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11131
11132         * dwarf2read.c (load_cu): Move assert to more useful location.
11133
11134         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11135         All callers updated.
11136
11137         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11138         (dwarf2_elf_names): Minor reformat.
11139         (dwarf2_per_cu_data): Tweak comment.
11140         (dwarf2_read_section): Fix comment.
11141         (create_all_comp_units): Fix comment.
11142         (load_full_comp_unit): Fix comment.
11143         (process_full_comp_unit): Fix comment.
11144         (read_signatured_type): Fix comment.
11145
11146 For older changes see ChangeLog-2011.
11147 \f
11148 Local Variables:
11149 mode: change-log
11150 left-margin: 8
11151 fill-column: 74
11152 version-control: never
11153 coding: utf-8
11154 End: