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