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