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