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