do not use dwarf2_per_objfile in dwarf2_per_objfile_free.
[external/binutils.git] / gdb / ChangeLog
1 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
2
3         * dwarf2read.c (dwarf2_per_objfile): Replace uses of
4         DWARF2_PER_OBJFILE by uses of DATA instead.
5
6 2013-06-18  Tom Tromey  <tromey@redhat.com>
7
8         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
9         argument.
10         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
11         Special case signals other than GDB_SIGNAL_TRAP.
12         (explains_signal_watchpoint): New function.
13         (base_breakpoint_explains_signal): Add 'sig' argument.
14         (initialize_breakpoint_ops): Set 'explains_signal' method for
15         watchpoints.
16         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
17         signal argument.
18         (bpstat_explains_signal): Likewise.
19         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
20
21 2013-06-18  Tom Tromey  <tromey@redhat.com>
22
23         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
24
25 2013-06-18  Tom Tromey  <tromey@redhat.com>
26
27         * python/python.c (finish_python_initialization): Decref
28         'pythondir' on failure path as well.
29
30 2013-06-18  Tom Tromey  <tromey@redhat.com>
31
32         PR symtab/15391:
33         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
34         after taking bits_to_skip into account.  Sign extend byte_offset.
35         * utils.h (gdb_sign_extend): Declare.
36         * utils.c (gdb_sign_extend): New function.
37
38 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
39
40         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
41
42 2013-06-17  Pierre Muller  <muller@sourceware.org>
43
44         * corelow.c (core_open): Print GDB signal name instead of target
45         signal number.
46
47 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
48
49         * .gitignore: Add /gcore.
50
51 2013-06-13  Doug Evans  <dje@google.com>
52
53         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
54         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
55
56 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
57
58         * stack.c (backtrace_command_1): Fix indentation.
59
60 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
61
62         * window-nat.c (thread_rec): Add missing empty line after
63         local variable declaration.
64
65 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
66
67         * windows-nat.c (thread_rec): Revert format used to print
68         error code returned by SuspendThread from %d back to %u.
69
70 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
71
72         * windows-nat.c (windows_continue): Add "0x" prefix for thread
73         ID in debug trace.
74         (get_windows_debug_event): Likewise, for all debug traces.
75
76 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
77
78         * window-nat.c (thread_rec): Add thread ID in SuspendThread
79         warning message.
80
81 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
82             Yao Qi  <yao@codesourcery.com>
83
84         * mi/mi-main.c (get_register): Remove declaration.
85         (output_register): Declare.
86         (mi_cmd_data_list_register_values): Remove local variable
87         'tuple_cleanup'.  Move some code into output_register.
88         (get_register): Renamed to ...
89         (output_register): ... this.  Output the register's
90         "number" ui_out tuple here.
91
92 2013-06-07  Pedro Alves  <palves@redhat.com>
93
94         * darwin-nat.c: Fix formating in copyright header.
95         * darwin-nat.h: Likewise.
96         * gnu-nat.c: Likewise.
97         * machoread.c: Likewise.
98
99 2013-06-07  Pedro Alves  <palves@redhat.com>
100
101         PR server/14823
102         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
103         static.  Output a global target description pointer.
104         (init_registers_${name}): Adjust to initialize a
105         target description structure.
106
107 2013-06-07  Will Newton  <will.newton@linaro.org>
108
109         * printcmd.c (build_address_symbolic): Call
110         gdbarch_addr_bits_remove for text minimal symbols.
111
112 2013-06-07  Will Newton  <will.newton@linaro.org>
113
114         * MAINTAINERS: Add myself to Write After Approval.
115
116 2013-06-07  Yao Qi  <yao@codesourcery.com>
117
118         * tracepoint.c (start_tracing): Move code to ...
119         (trace_reset_local_state): ... here.  New.
120         (disconnect_tracing): Don't call set_current_traceframe,
121         set_tracepoint_num, and set_traceframe_context. Call
122         trace_reset_local_state instead.
123         (tfile_close): Call trace_reset_local_state.
124         * ctf.c (ctf_close): Likewise.
125         * remote.c (remote_close): Likewise.
126         * tracepoint.h (trace_reset_local_state): Declare.
127
128 2013-06-06  Doug Evans  <dje@google.com>
129
130         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
131         and fix header docs.
132
133 2013-06-05  Doug Evans  <dje@google.com>
134             Keith Seitz  <keiths@redhat.com>
135
136         PR 15519
137         * cp-namespace.c (find_symbol_in_baseclass): Call
138         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
139         Check result of call to lookup_symbol_static.
140         Call lookup_static_symbol_aux unconditionally.
141         Call check_typedef on base types before accessing them.
142         (cp_lookup_nested_symbol): Fix comment.
143
144 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
145
146         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
147         minimal symbols pointing to function descriptors.
148
149 2013-06-05  Tom Tromey  <tromey@redhat.com>
150
151         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
152
153 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
154             Pedro Alves  <palves@redhat.com>
155
156         * remote.c (remote_wait_as): Restore signal handler before returning
157         when GDB gets a notification.
158
159 2013-06-04  Gary Benson  <gbenson@redhat.com>
160
161         PR 2328
162         * breakpoint.h (handle_solib_event): Moved function declaration
163         to solib.h.
164         * breakpoint.c (handle_solib_event): Moved function to solib.c.
165         (bpstat_stop_status): Pass new argument to handle_solib_event.
166         * solib.h (update_solib_breakpoints): New function declaration.
167         (handle_solib_event): Moved function declaration from
168         breakpoint.h.
169         * solib.c (update_solib_breakpoints): New function.
170         (handle_solib_event): Moved function from breakpoint.c.
171         Updated to call solib_ops->handle_event if not NULL.
172         * solist.h (target_so_ops): New fields "update_breakpoints" and
173         "handle_event".
174         * infrun.c (set_stop_on_solib_events): New function.
175         (_initialize_infrun): Use the above for "set
176         stop-on-solib-events".
177         (handle_inferior_event): Pass new argument to handle_solib_event.
178         * solib-svr4.c (probe.h): New include.
179         (svr4_free_library_list): New forward declaration.
180         (probe_action): New enum.
181         (probe_info): New struct.
182         (probe_info): New static variable.
183         (NUM_PROBES): New definition.
184         (svr4_info): New fields "using_xfer", "probes_table" and
185         "solib_list".
186         (free_probes_table): New function.
187         (free_solib_list): New function.
188         (svr4_pspace_data_cleanup): Free probes table and solib list.
189         (svr4_copy_library_list): New function.
190         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
191         (svr4_read_so_list): New parameter "prev_lm".
192         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
193         (svr4_current_sos): New function.
194         (probe_and_action): New struct.
195         (hash_probe_and_action): New function.
196         (equal_probe_and_action): Likewise.
197         (register_solib_event_probe): Likewise.
198         (solib_event_probe_at): Likewise.
199         (solib_event_probe_action): Likewise.
200         (solist_update_full): Likewise.
201         (solist_update_incremental): Likewise.
202         (disable_probes_interface_cleanup): Likewise.
203         (svr4_handle_solib_event): Likewise.
204         (svr4_update_solib_event_breakpoint): Likewise.
205         (svr4_update_solib_event_breakpoints): Likewise.
206         (svr4_create_solib_event_breakpoints): Likewise.
207         (enable_break): Free probes table before creating breakpoints.
208         Use svr4_create_solib_event_breakpoints to create breakpoints.
209         (svr4_solib_create_inferior_hook): Free the solib list.
210         (_initialize_svr4_solib): Initialise
211         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
212
213 2013-06-04  Gary Benson  <gbenson@redhat.com>
214
215         * target.h (target_ops): New field
216         "to_augmented_libraries_svr4_read".
217         (target_augmented_libraries_svr4_read): New macro.
218         * target.c (update_current_target): Handle
219         to_augmented_libraries_svr4_read.
220         * remote.c (remote_state): New field
221         "augmented_libraries_svr4_read".
222         (remote_augmented_libraries_svr4_read_feature): New function.
223         (remote_protocol_features): Add entry for
224         "augmented-libraries-svr4-read".
225         (remote_augmented_libraries_svr4_read): New function.
226         (init_remote_ops): Initialize
227         remote_ops.to_augmented_libraries_svr4_read.
228
229 2013-06-04  Gary Benson  <gbenson@redhat.com>
230
231         * NEWS: Update.
232
233 2013-06-04  Gary Benson  <gbenson@redhat.com>
234
235         * objfiles.h (inhibit_section_map_updates): New function
236         declaration.
237         (resume_section_map_updates): Likewise.
238         (resume_section_map_updates_cleanup): Likewise.
239         * objfiles.c (objfile_pspace_info): Removed field
240         "objfiles_changed_p".  New fields "new_objfiles_available",
241         "section_map_dirty" and "inhibit_updates".
242         (allocate_objfile): Set new_objfiles_available.
243         (free_objfile): Set section_map_dirty.
244         (objfile_relocate1): Likewise.
245         (in_plt_section): Likewise.
246         (find_pc_section): Update the conditions under which the
247         section map will be updated.
248         (inhibit_section_map_updates): New function.
249         (resume_section_map_updates): Likewise.
250         (resume_section_map_updates_cleanup): Likewise.
251
252 2013-06-04  Gary Benson  <gbenson@redhat.com>
253
254         * probe.h (get_probe_argument_count): New declaration.
255         (evaluate_probe_argument): Likewise.
256         * probe.c (get_probe_argument_count): New function.
257         (evaluate_probe_argument): Likewise.
258         (probe_safe_evaluate_at_pc): Use the above new functions.
259
260 2013-06-04  Alan Modra  <amodra@gmail.com>
261
262         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
263         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
264         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
265         target mem reads on optional insns.
266         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
267         ppc_insns_match_pattern calls.
268         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
269         Add match for power7 thread safety insns, and new order of
270         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
271         invocation in comment, and update rest of comment.
272         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
273         PPC64_STANDARD_LINKAGE3_LEN): Delete.
274         (ppc64_standard_linkage2_target): Update insn offsets.
275         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
276         stubs first.  Update calls.
277
278 2013-06-04  Yao Qi  <yao@codesourcery.com>
279
280         * solib.c (solib_find): Don't need dir separator if path has
281         drive spec.
282
283 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
284
285         Revert (indirectly causes a SIGSEGV):
286         * machoread.c (macho_symfile_read): Assign first cleanup to
287         'back_to'.
288
289 2013-06-03  Yao Qi  <yao@codesourcery.com>
290
291         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
292         mi-parse.c.  Make them static.
293         (mi_all_values): Likewise.
294         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
295         mi_parse_print_values.  Make it external.
296         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
297         Remove the declarations.
298         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
299         * mi/mi-parse.h (mi_parse_print_values): Declare.
300         * mi/mi-cmd-stack.c: Include mi-parse.h.
301         (parse_print_values): Remove
302         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
303         of parse_print_values.
304         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
305
306 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
307             Yao Qi  <yao@codesourcery.com>
308
309         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
310         (encode_actions): Move code to ...
311         (all_tracepoint_actions_and_cleanup): ... here.  New.
312         (trace_dump_command): Likewise.
313
314 2013-05-30  Tom Tromey  <tromey@redhat.com>
315
316         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
317
318 2013-05-30  Tom Tromey  <tromey@redhat.com>
319
320         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
321         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
322         'old_chain' argument.  Add 'parser_result' argument.
323         (gdb_xml_create_parser_and_cleanup): Remove old version.
324         (gdb_xml_parse_quick): Update.
325         (xml_process_xincludes): Update.
326         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
327         declare.
328
329 2013-05-30  Tom Tromey  <tromey@redhat.com>
330
331         * probe.c (collect_probes): Check arguments for NULL before
332         calling compile_rx_or_error.
333         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
334         Remove NULL return.
335
336 2013-05-30  Tom Tromey  <tromey@redhat.com>
337
338         * infrun.c (adjust_pc_after_break): Introduce an outer null
339         cleanup.
340
341 2013-05-30  Tom Tromey  <tromey@redhat.com>
342
343         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
344
345 2013-05-30  Tom Tromey  <tromey@redhat.com>
346
347         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
348         for 'old_chain'.  Do not check 'head' before processing
349         cleanups.
350
351 2013-05-30  Tom Tromey  <tromey@redhat.com>
352
353         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
354         "cleanup_tuple".
355
356 2013-05-30  Tom Tromey  <tromey@redhat.com>
357
358         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
359         inner scope.  Unconditionally call do_cleanups.
360
361 2013-05-30  Tom Tromey  <tromey@redhat.com>
362
363         * source.c (find_and_open_source): Call do_cleanups.
364
365 2013-05-30  Tom Tromey  <tromey@redhat.com>
366
367         * linux-thread-db.c (thread_db_load_search): Unconditionally
368         call do_cleanups.
369
370 2013-05-30  Tom Tromey  <tromey@redhat.com>
371
372         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
373         for 'cleanup'; instead use a later one.
374
375 2013-05-30  Tom Tromey  <tromey@redhat.com>
376
377         * python/py-breakpoint.c (bppy_get_commands): Use
378         explicit, unconditional return.
379         * python/py-frame.c (frapy_read_var): Likewise.
380         * python/python.c (gdbpy_decode_line): Likewise.
381
382 2013-05-30  Tom Tromey  <tromey@redhat.com>
383
384         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
385         do_cleanups on all return paths.
386
387 2013-05-30  Tom Tromey  <tromey@redhat.com>
388
389         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
390
391 2013-05-30  Tom Tromey  <tromey@redhat.com>
392
393         * stabsread.c (read_struct_type): Call do_cleanups along
394         all return paths.
395
396 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
397
398         * mips-linux-tdep.c: Adjust formatting throughout.
399
400 2013-05-30  Tom Tromey  <tromey@redhat.com>
401
402         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
403         along all return paths.
404
405 2013-05-30  Tom Tromey  <tromey@redhat.com>
406
407         * symfile.c (find_separate_debug_file): Call do_cleanups
408         along all return paths.
409
410 2013-05-30  Tom Tromey  <tromey@redhat.com>
411
412         * symtab.c (search_symbols): Introduce a null cleanup for
413         'retval_chain'.
414
415 2013-05-30  Tom Tromey  <tromey@redhat.com>
416
417         * python/py-value.c (valpy_binop): Call do_cleanups before
418         exiting loop.
419
420 2013-05-30  Tom Tromey  <tromey@redhat.com>
421
422         * python/py-prettyprint.c (print_children): Remove extra
423         do_cleanups call.
424
425 2013-05-30  Tom Tromey  <tromey@redhat.com>
426
427         * python/py-frame.c (frapy_read_var): Call do_cleanups along
428         all return paths.
429
430 2013-05-30  Tom Tromey  <tromey@redhat.com>
431
432         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
433         along all return paths.
434
435 2013-05-30  Tom Tromey  <tromey@redhat.com>
436
437         * cli/cli-logging.c (set_logging_redirect): Unconditionally
438         call do_cleanups.
439
440 2013-05-30  Tom Tromey  <tromey@redhat.com>
441
442         * varobj.c (c_value_of_root): Call do_cleanups along all
443         return paths.
444
445 2013-05-30  Tom Tromey  <tromey@redhat.com>
446
447         * tracepoint.c (trace_dump_command): Unconditionally call
448         do_cleanups.
449
450 2013-05-30  Tom Tromey  <tromey@redhat.com>
451
452         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
453         do_cleanups earlier.
454
455 2013-05-30  Tom Tromey  <tromey@redhat.com>
456
457         * machoread.c (macho_symfile_read): Assign first cleanup to
458         'back_to'.
459
460 2013-05-30  Tom Tromey  <tromey@redhat.com>
461
462         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
463
464 2013-05-30  Tom Tromey  <tromey@redhat.com>
465
466         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
467
468 2013-05-30  Tom Tromey  <tromey@redhat.com>
469
470         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
471         call discard_cleanups.
472         (inf_ptrace_attach): Likewise.
473
474 2013-05-30  Tom Tromey  <tromey@redhat.com>
475
476         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
477         return paths.
478         (mips_initialize): Likewise.
479         (common_open): Call do_cleanups.
480
481 2013-05-30  Tom Tromey  <tromey@redhat.com>
482
483         * utils.c (internal_vproblem): Call do_cleanups.
484
485 2013-05-30  Tom Tromey  <tromey@redhat.com>
486
487         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
488
489 2013-05-30  Tom Tromey  <tromey@redhat.com>
490
491         * cli/cli-script.c (setup_user_args): Don't return after error.
492
493 2013-05-30  Tom Tromey  <tromey@redhat.com>
494
495         * somread.c (som_symtab_read): Call do_cleanups.
496
497 2013-05-30  Tom Tromey  <tromey@redhat.com>
498
499         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
500
501 2013-05-30  Tom Tromey  <tromey@redhat.com>
502
503         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
504         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
505         * interps.c (interpreter_exec_cmd): Call do_cleanups.
506         * source.c (show_substitute_path_command): Call do_cleanups.
507         (unset_substitute_path_command, set_substitute_path_command):
508         Likewise.
509         * symfile.c (load_command): Call do_cleanups.
510
511 2013-05-30  Tom Tromey  <tromey@redhat.com>
512
513         * contrib/cleanup_check.py: New file.
514         * contrib/gcc-with-excheck: Add option parsing.
515
516 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
517
518         * windows-nat.c (windows_delete_thread): Add missing space
519         in cast expression.
520
521 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
522
523         * inferior.c (top level): Include tilde.h.
524         (add_inferior_command): Call tilde_expand on the value of 'exec'
525         argument.
526
527 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
528             Yao Qi  <yao@codesourcery.com>
529
530         * tracepoint.c (encode_actions_1): Remove parameter 't'.
531         Caller update.
532         (encode_actions): Likewise.
533         * remote.c (remote_download_tracepoint): Caller update.
534         * tracepoint.h (encode_actions): Update declaration.
535
536 2013-05-30  Pedro Alves  <palves@redhat.com>
537
538         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
539         pointer.
540
541 2013-05-30  Yao Qi  <yao@codesourcery.com>
542
543         * remote.c (remote_check_symbols): Remove unused parameter
544         'objfile'.
545         Declaration update.
546         (remote_start_remote, remote_new_objfile): Caller update.
547
548 2013-05-30  Yao Qi  <yao@codesourcery.com>
549
550         * mi/mi-cmds.c (mi_cmds): Define MI command
551         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
552         DEF_MI_CMD_CLI.
553
554 2013-05-29  Pedro Alves  <palves@redhat.com>
555
556         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
557         (remote_insert_watchpoint, remote_remove_watchpoint)
558         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
559         (remote_verify_memory, compare_sections_command)
560         (remote_search_memory): Set the general process/thread on the
561         remote side.
562
563 2013-05-29  Pedro Alves  <palves@redhat.com>
564
565         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
566         (_initialize_aarch64_tdep): Don't call
567         initialize_tdesc_aarch64_without_fpu.
568         * features/Makefile (WHICH): Remove reference to
569         aarch64-without-fpu.
570         * features/aarch64-without-fpu.c: Delete file.
571         * regformats/aarch64-without-fpu.dat: Delete file.
572
573 2013-05-28  Yao Qi  <yao@codesourcery.com>
574
575         * tracepoint.c (stringify_collection_list): Remove parameter
576         'string'.
577         (encode_actions): Caller update.  Remove local variables.
578
579 2013-05-24  Yao Qi  <yao@codesourcery.com>
580
581         * tracepoint.c (TFILE_PID): Remove.
582         (tfile_open): Don't add thread and inferior.
583         (tfile_close): Don't set 'inferior_ptid'.  Don't call
584         exit_inferior_silent.
585         (tfile_thread_alive): Remove.
586         (init_tfile_ops): Don't set field 'to_thread_alive' of
587         tfile_ops.
588
589 2013-05-23  Doug Evans  <dje@google.com>
590
591         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
592
593 2013-05-23  Pedro Alves  <palves@redhat.com>
594
595         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
596         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
597         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
598         Only define if HAVE_SOCKETS is defined.
599         * configure.ac: Check for sys/socket.h.
600         * config.in, configure: Regenerate.
601
602 2013-05-23  Pedro Alves  <palves@redhat.com>
603
604         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
605         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
606         printing uint32_t variables.
607
608 2013-05-23  Pedro Alves  <palves@redhat.com>
609
610         * NEWS: Mention GDBserver range stepping support.
611
612 2013-05-23  Yao Qi  <yao@codesourcery.com>
613             Pedro Alves  <palves@redhat.com>
614
615         * gdbthread.h (struct thread_control_state) <may_range_step>: New
616         field.
617         * infcmd.c (step_once, until_next_command): Enable range stepping.
618         * infrun.c (displaced_step_prepare): Disable range stepping.
619         (resume): Disable range stepping if stepping over a breakpoint or
620         we have software watchpoints.  If range stepping is enabled,
621         assert the thread is in the stepping range.
622         (clear_proceed_status_thread): Clear may_range_step.
623         (handle_inferior_event): Disable range stepping as soon as we know
624         the thread that hit the event.  Re-enable it whenever we're going
625         to step with a step range.
626         * remote.c (struct vCont_action_support) <r>: New field.
627         (use_range_stepping): New global.
628         (remote_vcont_probe): Handle 'r' action.
629         (append_resumption): Append an 'r' action if the thread may range
630         step.
631         (show_range_stepping): New function.
632         (set_range_stepping): New function.
633         (_initialize_remote): Call add_setshow_boolean_cmd to register the
634         'set range-stepping' and 'show range-stepping' commands.
635         * NEWS: Mention range stepping, the new vCont;r action, and the
636         new "set/show range-stepping" commands.
637
638 2013-05-23  Yao Qi  <yao@codesourcery.com>
639             Pedro Alves  <palves@redhat.com>
640
641         * remote.c (struct vCont_action_support): New struct.
642         (struct remote_state) <support_vCont_t>: Remove field.
643         <vCont_actions_support>: New field.
644         (remote_vcont_probe, remote_stop_ns): Update.
645
646 2013-05-23  Yao Qi  <yao@codesourcery.com>
647             Pedro Alves  <palves@redhat.com>
648
649         * gdbthread.h (pc_in_thread_step_range): New declaration.
650         * thread.c (pc_in_thread_step_range): New function.
651         * infrun.c (handle_inferior_event): Use it.
652
653 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
654
655         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
656         of sprintf.
657
658 2013-05-22  Keith Seitz  <keiths@redhat.com>
659
660         * ada-lang.c (is_known_support_routine): Add explicit free of
661         'func_name' from find_frame_funname.
662         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
663         for func_name from find_frame_funname.
664         * python/py-frame.c (frapy_name): Add explicit free of
665         'name' from find_frame_funname.
666         * stack.c (find_frame_funname): Add comment explaining that
667         funcp must be freed by the caller.
668         Return copy of symbol names instead of pointers.
669         (print_frame): Add a cleanup for 'funname' from
670         find_frame_funname.
671         * stack.h (find_frame_funname): Remove "const" from
672         'funname' parameter.
673
674 2013-05-22  Tom Tromey  <tromey@redhat.com>
675
676         PR c++/15401:
677         * c-valprint.c (c_value_print): Use value_addr for
678         references.  Convert back to reference type with value_ref.
679
680 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
681
682         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
683         unloaded DLL, it will be done by handle_solib_event.  See
684         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
685         details.
686
687 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
688
689         * ui-out.c: Create typedef ui_out_level_p and define vector
690         operations for that type.
691         (struct ui_out): Use a vector instead of an array.
692         (current_level): Return level from a vector.
693         (push_level): Create a level in a vector.
694         (pop_level): Delete a level in a vector.
695         (ui_out_new): Create initial level zero level, and store in a
696         vector.
697         (ui_out_destroy): Add vector cleanup.
698
699 2013-05-22  Pedro Alves  <palves@redhat.com>
700
701         * python/python-internal.h (gdb_Py_DECREF): Tag with
702         "ARI: editCase function".
703
704 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
705
706         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
707
708 2013-05-21  Pedro Alves  <palves@redhat.com>
709
710         * python/py-prettyprint.c (apply_val_pretty_printer): Check
711         whether PRINTER is NULL before installing a Py_DECREF cleanup.
712         * python/py-utils.c (py_decref): Don't check for NULL before
713         calling Py_DECREF.
714
715 2013-05-21  Pedro Alves  <palves@redhat.com>
716
717         * python/py-utils.c (py_decref): Remove extra braces.
718         (gdb_pymodule_addobject): Remove extra braces.
719         * python-internal.h (gdb_Py_DECREF): New static inline function.
720         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
721
722 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
723
724         * breakpoints.c (detach_breakpoints): Do not
725         detach breakpoints locations with loc_type bp_loc_other.
726
727 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
728
729         Workaround Python 2.6.
730         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
731         a block.
732
733 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
734
735         Code cleanup: constification.
736         * solib.c (solib_ops): Make return type and ops variable type const.
737         (set_solib_ops): Make the new_ops parameter and ops variable const.
738         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
739         (solib_add, solib_keep_data_in_core, clear_solib)
740         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
741         (reload_shared_libraries, solib_global_lookup): Make the ops variable
742         const.
743         * solib.h (set_solib_ops): Make the new_ops parameter const.
744
745 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
746
747         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
748         variable.
749         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
750         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
751         (SYSTEM_GDBINIT_FILES): New variables.
752         (all): Add stamp-system-gdbinit.
753         (stamp-system-gdbinit): New rule.
754         (clean-system-gdbinit, install-system-gdbinit)
755         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
756         (install-only): Add dependency on install-system-gdbinit.
757         (uninstall): Add dependency on uninstall-system-gdbinit.
758         (clean): Add dependency on clean-system-gdbinit.
759         * system-gdbinit/elinos.py: New file.
760         * system-gdbinit/wrs-linux.py: New file.
761
762 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
763
764         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
765
766 2013-05-21  Hui Zhu  <hui@codesourcery.com>
767
768         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
769         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
770         * mi/mi-cmd-break.c (ctype.h): New include.
771         (gdb_obstack.h): New include.
772         (mi_argv_to_format, mi_cmd_break_insert_1): New.
773         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
774         (mi_cmd_dprintf_insert): New.
775         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
776         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
777
778 2013-05-20  Tom Tromey  <tromey@redhat.com>
779
780         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
781
782 2013-05-20  Tom Tromey  <tromey@redhat.com>
783
784         * python/py-value.c (valpy_get_dynamic_type): Simplify
785         dynamic_type assignment.  Use Py_XINCREF.
786
787 2013-05-20  Tom Tromey  <tromey@redhat.com>
788
789         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
790
791 2013-05-20  Tom Tromey  <tromey@redhat.com>
792
793         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
794         (gdbpy_selected_frame): Move object-construction code
795         out of TRY_CATCH.
796
797 2013-05-20  Tom Tromey  <tromey@redhat.com>
798
799         * python/py-arch.c (gdbpy_initialize_arch): Use
800         gdb_pymodule_addobject.
801         * python/py-block.c (gdbpy_initialize_blocks): Use
802         gdb_pymodule_addobject.
803         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
804         gdb_pymodule_addobject.
805         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
806         gdb_pymodule_addobject.
807         * python/py-event.c (gdbpy_initialize_event_generic): Use
808         gdb_pymodule_addobject.
809         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
810         gdb_pymodule_addobject.
811         * python/py-evts.c (add_new_registry): Use
812         gdb_pymodule_addobject.
813         (gdbpy_initialize_py_events): Likewise.
814         * python/py-finishbreakpoint.c
815         (gdbpy_initialize_finishbreakpoints): Use
816         gdb_pymodule_addobject.
817         * python/py-frame.c (gdbpy_initialize_frames): Use
818         gdb_pymodule_addobject.
819         * python/py-function.c (gdbpy_initialize_functions): Use
820         gdb_pymodule_addobject.
821         * python/py-inferior.c (gdbpy_initialize_inferior): Use
822         gdb_pymodule_addobject.
823         * python/py-infthread.c (gdbpy_initialize_thread): Use
824         gdb_pymodule_addobject.
825         * python/py-objfile.c (gdbpy_initialize_objfile): Use
826         gdb_pymodule_addobject.
827         * python/py-param.c (gdbpy_initialize_parameters): Use
828         gdb_pymodule_addobject.
829         * python/py-progspace.c (gdbpy_initialize_pspace): Use
830         gdb_pymodule_addobject.
831         * python/py-symbol.c (gdbpy_initialize_symbols): Use
832         gdb_pymodule_addobject.
833         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
834         gdb_pymodule_addobject.
835         * python/py-type.c (gdbpy_initialize_types): Use
836         gdb_pymodule_addobject.
837         * python/py-utils.c (gdb_pymodule_addobject): New function.
838         * python/py-value.c (gdbpy_initialize_values): Use
839         gdb_pymodule_addobject.
840         * python/python-internal.h (gdb_pymodule_addobject): Declare.
841         * python/python.c (_initialize_python): Use
842         gdb_pymodule_addobject.
843
844 2013-05-20  Tom Tromey  <tromey@redhat.com>
845
846         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
847         * python/py-param.c (get_set_value, get_show_value): Use
848         explicit decrefs.
849         * python/python.c (start_type_printers, apply_type_printers):
850         Use explicit decrefs.
851
852 2013-05-20  Tom Tromey  <tromey@redhat.com>
853
854         * python/py-evts.c (gdbpy_initialize_py_events): Don't
855         incref the module.
856
857 2013-05-20  Tom Tromey  <tromey@redhat.com>
858
859         * python/python.c (gdbpy_run_events): Decref the result
860         of PyObject_CallObject.
861
862 2013-05-20  Tom Tromey  <tromey@redhat.com>
863
864         * python/py-symtab.c (set_sal): Use
865         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
866         (symtab_and_line_to_sal_object): Update.
867
868 2013-05-20  Tom Tromey  <tromey@redhat.com>
869
870         * python/py-param.c (compute_enum_values): Decref 'item'.
871
872 2013-05-20  Tom Tromey  <tromey@redhat.com>
873
874         * mi/mi-main.c: Include python-internal.h.
875         (mi_cmd_list_features): Check gdb_python_initialized.
876         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
877         (python_inferior_exit, python_new_objfile, add_thread_object)
878         (delete_thread_object, py_free_inferior): Check
879         gdb_python_initialized.
880         * python/py-prettyprint.c (apply_val_pretty_printer): Check
881         gdb_python_initialized.
882         * python/py-type.c (save_objfile_types): Check
883         gdb_python_initialized.
884         * python/python-internal.h (gdb_python_initialized): Declare.
885         * python/python.c (ensure_python_env): Throw exception if
886         Python not initialized.
887         (before_prompt_hook, source_python_script_for_objfile)
888         (start_type_printers, apply_type_printers,
889         free_type_printers): Check gdb_python_initialized.
890         * varobj.c (varobj_get_display_hint)
891         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
892         (install_new_value_visualizer, varobj_set_visualizer)
893         (value_get_print_value): Check gdb_python_initialized.
894
895 2013-05-20  Tom Tromey  <tromey@redhat.com>
896
897         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
898         Check errors.
899         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
900         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
901         Check errors.
902         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
903         Check errors.
904         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
905         Check errors.
906         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
907         Check errors.
908         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
909         init function to return 'int'.
910         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
911         Return 'int'.  Check errors.
912         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
913         Check errors.
914         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
915         Return 'int'.  Check errors.
916         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
917         Check errors.
918         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
919         Check errors.
920         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
921         Check errors.
922         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
923         Check errors.
924         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
925         Check errors.
926         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
927         Check errors.
928         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
929         Check errors.
930         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
931         Check errors.
932         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
933         Check errors.
934         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
935         Check errors.
936         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
937         Check errors.
938         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
939         Check errors.
940         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
941         Check errors.
942         * python/python-internal.h (gdbpy_initialize_auto_load,
943         gdbpy_initialize_values, gdbpy_initialize_frames,
944         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
945         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
946         gdbpy_initialize_blocks, gdbpy_initialize_types,
947         gdbpy_initialize_functions, gdbpy_initialize_pspace,
948         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
949         gdbpy_initialize_finishbreakpoints,
950         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
951         gdbpy_initialize_thread, gdbpy_initialize_inferior,
952         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
953         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
954         gdbpy_initialize_signal_event,
955         gdbpy_initialize_breakpoint_event,
956         gdbpy_initialize_continue_event,
957         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
958         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
959         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
960         * python/python.c (gdb_python_initialized): New global.
961         (gdbpy_initialize_events): Return 'int'.  Check errors.
962         (_initialize_python): Check errors.  Set
963         gdb_python_initialized.
964
965 2013-05-20  Tom Tromey  <tromey@redhat.com>
966
967         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
968         Decref the reslut of PyObject_CallMethod.
969
970 2013-05-20  Tom Tromey  <tromey@redhat.com>
971
972         * python/py-event.c (gdbpy_initialize_event_generic): Return
973         early if PyType_Ready fails.
974
975 2013-05-20  Tom Tromey  <tromey@redhat.com>
976
977         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
978         as 'default' in the switch.
979
980 2013-05-20  Tom Tromey  <tromey@redhat.com>
981
982         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
983         get_addr_from_python calls out of TRY_CATCH.
984         (infpy_write_memory, infpy_search_memory): Likewise.
985         * python/py-utils.c (get_addr_from_python): Return negative
986         value on error.  Use TRY_CATCH.
987         * python/python-internal.h (get_addr_from_python): Use
988         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
989
990 2013-05-20  Tom Tromey  <tromey@redhat.com>
991
992         * python/py-event.c (evpy_emit_event): Decref the
993         result of PyObject_CallFunctionObjArgs.
994
995 2013-05-20  Tom Tromey  <tromey@redhat.com>
996
997         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
998         Correctly decref.
999
1000 2013-05-20  Tom Tromey  <tromey@redhat.com>
1001
1002         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
1003
1004 2013-05-20  Tom Tromey  <tromey@redhat.com>
1005
1006         * python/py-event.h (gdbpy_initialize_event_generic): Use
1007         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1008         * python/py-evts.c (add_new_registry): Use
1009         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1010         * python/python-internal.h
1011         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
1012
1013 2013-05-20  Tom Tromey  <tromey@redhat.com>
1014
1015         * python/py-arch.c (archpy_disassemble): Update.
1016         * python/py-type.c (typy_get_composite, typy_lookup_typename)
1017         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
1018         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
1019         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
1020         macro.
1021         (GDB_PY_HANDLE_EXCEPTION): Update.
1022         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
1023
1024 2013-05-20  Tom Tromey  <tromey@redhat.com>
1025
1026         * python/python-internal.h (events_object_type): Remove.
1027
1028 2013-05-20  Tom Tromey  <tromey@redhat.com>
1029
1030         * python/py-event.h (evpy_emit_event): Use
1031         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1032         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1033         New macro.
1034
1035 2013-05-20  Tom Tromey  <tromey@redhat.com>
1036
1037         * py-evtregistry.c (create_event_object): Decref
1038         eventregistry_object if PyList_New fails.
1039
1040 2013-05-20  Tom Tromey  <tromey@redhat.com>
1041
1042         * py-cmd.c (gdbpy_string_to_argv): Check result of
1043         PyList_New.
1044
1045 2013-05-20  Tom Tromey  <tromey@redhat.com>
1046
1047         * python/python.c (before_prompt_hook): Add cleanup to
1048         decref 'hook'.
1049
1050 2013-05-20  Tom Tromey  <tromey@redhat.com>
1051
1052         * python/py-function.c (fnpy_init): Decref result of
1053         PyObject_GetAttrString.
1054
1055 2013-05-20  Tom Tromey  <tromey@redhat.com>
1056
1057         * python/py-threadevent.c (get_event_thread): Use
1058         CPYCHECKER_RETURNS_BORROWED_REF.
1059         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1060         New define.
1061         (pspace_to_pspace_object, objfile_to_objfile_object)
1062         (find_thread_object): Use it.
1063
1064 2013-05-20  Tom Tromey  <tromey@redhat.com>
1065
1066         * python/py-arch.c (arch_object_type): Use
1067         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1068         * python/py-block.c (block_syms_iterator_object_type):
1069         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1070         * python/py-bpevent.c (breakpoint_event_object_type):
1071         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1072         * python/py-cmd.c (cmdpy_object_type): Use
1073         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1074         * python/py-continueevent.c (continue_event_object_type):
1075         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1076         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1077         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1078         * python/py-events.h (thread_event_object_type):
1079         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1080         * python/py-evtregistry.c (eventregistry_object_type): Use
1081         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1082         * python/py-exitedevent.c (exited_event_object_type):
1083         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1084         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1085         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1086         * python/py-function.c (fnpy_object_type): Use
1087         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1088         * python/py-inferior.c (inferior_object_type, membuf_object_type):
1089         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1090         * python/py-infthread.c (thread_object_type): Use
1091         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1092         * python/py-lazy-string.c (lazy_string_object_type):
1093         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1094         * python/py-newobjfileevent.c (new_objfile_event_object_type):
1095         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1096         * python/py-objfile.c (objfile_object_type): Use
1097         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1098         * python/py-param.c (parmpy_object_type):
1099         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1100         * python/py-progspace.c (pspace_object_type):
1101         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1102         * python/py-signalevent.c (signal_event_object_type):
1103         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1104         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1105         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1106         * python/py-type.c (type_object_type, field_object_type)
1107         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1108         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1109         define.
1110         (value_object_type, block_object_type, symbol_object_type)
1111         (event_object_type, stop_event_object_type, breakpoint_object_type)
1112         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1113
1114 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
1115
1116         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1117         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1118
1119 2013-05-20  Doug Evans  <dje@google.com>
1120
1121         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
1122         For Fission.
1123         * dwarf2read.c (struct dwarf2_per_cu_data): New member
1124         reading_dwo_directly.
1125         (struct signatured_type): New member dwo_unit.
1126         (struct die_reader_specs): New member comp_dir.
1127         (create_signatured_type_table_from_index): Use malloc for
1128         all_type_units instead of objfile's obstack.
1129         (create_all_type_units): Ditto.
1130         (fill_in_sig_entry_from_dwo_entry): New function.
1131         (add_type_unit): New function.
1132         (lookup_dwo_signatured_type): New function.
1133         (lookup_dwp_signatured_type): New function.
1134         (lookup_signatured_type): New arg cu.  All callers updated.
1135         (init_cu_die_reader): Initialize comp_dir.
1136         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
1137         Change assert of matching type signatures to call error on mismatch.
1138         (lookup_dwo_unit): Add assert.
1139         (init_tu_and_read_dwo_dies): New function.
1140         (init_cutu_and_read_dies): Call it.
1141         (build_type_unit_groups): Handle case of no type unit groups created.
1142         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1143         (lookup_dwo_cutu): Tweak complaint.
1144         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1145         (dwarf2_per_objfile_free): Free all_type_units.
1146
1147 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1148
1149         * windows-nat.c (handle_unload_dll): Add missing empty line.
1150
1151 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1152
1153         * dwarf2read.c (prototyped_function_p): New function.
1154         (read_subroutine_type): Use it.
1155
1156 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1157
1158         * rs6000-aix-tdep.c: De-indent some example code provided
1159         as a comment.
1160
1161 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1162
1163         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1164         region is ok for a hardware watchpoint using the new ptrace interface
1165         on Power servers.
1166
1167 2013-05-17  Doug Evans  <dje@google.com>
1168
1169         * NEWS: Mention new maintenance commands check-symtabs, and
1170         expand-symtabs, and renamed check-psymtabs.
1171         * psymtab.c (maintenance_check_psymtabs): Renamed from
1172         maintenance_check_symtabs.  Only process already-expanded symbol
1173         tables.
1174         (_initialize_psymtab): Update.
1175         * symmisc.c (maintenance_check_symtabs): New function.
1176         (maintenance_expand_name_matcher): New function
1177         (maintenance_expand_file_matcher): New function
1178         (maintenance_expand_symtabs): New function.
1179         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1180         commands.
1181
1182 2013-05-17  Tom Tromey  <tromey@redhat.com>
1183
1184         * python/py-inferior.c (infpy_read_memory): Don't call
1185         PyErr_SetString if PyObject_New fails.
1186         * python/py-frame.c (frame_info_to_frame_object): Don't call
1187         PyErr_SetString if PyObject_New fails.
1188
1189 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
1190
1191         * acinclude.m4: Add check for dlopen in libdl.
1192         * configure.ac: Ditto.
1193         * configure: Regenerate.
1194
1195 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
1196
1197         * frame.c (frame_stash): Convert to htab.
1198         (frame_addr_hash): New function.
1199         (frame_addr_hash_eq): New function.
1200         (frame_stash_create): Convert function to create
1201         a hash table.
1202         (frame_stash_add): Convert function to add an entry to a hash
1203         table.
1204         (frame_stash_find): Convert function to search the hash table.
1205         (frame_stash_invalidate): Convert function to empty the hash
1206         table.
1207         (get_frame_id): Only add to stash if a frame_id is created.
1208         (_initialize_frame): Call frame_stash_create.
1209
1210 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
1211
1212         * configure.ac: Ensure MIG is available when building for GNU Hurd
1213         hosts.
1214         * configure: Regenerate.
1215
1216 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
1217
1218         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1219
1220 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
1221
1222         * ada-lang.c (ada_make_symbol_completion_list): Make sure
1223         all cleanups are done before returning from this function.
1224
1225 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
1226
1227         * utils.h: #include "exceptions.h".
1228         (enum errors): Remove partial declaration.
1229
1230 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
1231
1232         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1233         * gdbarch.h, gdbarch.c: Regenerate.
1234         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1235         handling.
1236
1237         * rs6000-aix-tdep.h: New file.
1238         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1239         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1240         "xml-utils.h".
1241         (struct field_info, struct ld_info_desc): New types.
1242         (ld_info32_desc, ld_info64_desc): New static constants.
1243         (struct ld_info): New type.
1244         (rs6000_aix_extract_ld_info): New function.
1245         (rs6000_aix_shared_library_to_xml): Likewise.
1246         (rs6000_aix_ld_info_to_xml): Likewise.
1247         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1248         (rs6000_aix_init_osabi): Add call to
1249         set_gdbarch_core_xfer_shared_libraries_aix.
1250         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1251         Remove "xml-utils.h" include.
1252         (LdInfo): Delete typedef.
1253         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1254         Delete macros.
1255         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1256         Adjust code accordingly.
1257         (rs6000_core_ldinfo): Delete, folded into
1258         rs6000_aix_core_xfer_shared_libraries_aix.
1259         (rs6000_xfer_shared_library): Delete.
1260         (rs6000_xfer_shared_libraries): Reimplement.
1261
1262 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
1263
1264         * record.c (record_goto_cmdlist): New.
1265         (cmd_record_goto): Split into this ...
1266         (cmd_record_goto_begin): ... this
1267         (cmd_record_goto_end): ... and this.
1268         (_initialize_record): Change "record goto" to prefix command.
1269         Add commands for "record goto begin" and "record goto end".
1270         Add an alias for "record goto start" to "record goto begin".
1271
1272 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1273
1274         * linespec.c (convert_linespec_to_sals): New comment for
1275         SOURCE_FILENAME assignment.
1276
1277 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1278
1279         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1280         internal_warning.
1281
1282 2013-05-14  Tom Tromey  <tromey@redhat.com>
1283
1284         * eval.c (parse_and_eval_long): Make 'exp' const.
1285         * value.h (parse_and_eval_long): Update.
1286
1287 2013-05-14  Tom Tromey  <tromey@redhat.com>
1288
1289         * ui-file.c (gdb_fopen): Make arguments const.
1290         * ui-file.h (gdb_fopen): Make arguments const.
1291
1292 2013-05-14  Tom Tromey  <tromey@redhat.com>
1293
1294         * remote.c (remote_set_trace_notes): Make arguments const.
1295         * target.c (update_current_target): Update cast.
1296         * target.h (to_set_trace_notes): Make arguments const.
1297
1298 2013-05-14  Tom Tromey  <tromey@redhat.com>
1299
1300         * go32-nat.c (go32_terminal_info): Make 'args' const.
1301         * inferior.h (child_terminal_info): Update.
1302         * inflow.c (child_terminal_info): Make 'args' const.
1303         * target.c (default_terminal_info): Make 'args' const.
1304         (debug_to_terminal_save_ours): Likewise.
1305         * target.h (struct target_ops) <to_terminal_info>: Make argument
1306         const.
1307
1308 2013-05-13  Tom Tromey  <tromey@redhat.com>
1309
1310         * gcore.c (create_gcore_bfd): Make 'filename' const.
1311         * gcore.h (create_gcore_bfd): Make 'filename' const.
1312         * record-full.c (record_full_save): Make 'recfilename' const.
1313         * target.c (target_save_record): Make 'filename' const.
1314         * target.h (struct target_ops) <to_save_record>: Make 'filename'
1315         const.
1316         (target_save_record): Likewise.
1317
1318 2013-05-13  Tom Tromey  <tromey@redhat.com>
1319
1320         PR gdb/15338:
1321         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1322         ranges section has been read.
1323
1324 2013-05-13  Tom Tromey  <tromey@redhat.com>
1325
1326         PR exp/15364:
1327         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1328         STRUCTOP_PTR>: Return a not_lval value for
1329         EVAL_AVOID_SIDE_EFFECTS.
1330         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1331         for EVAL_AVOID_SIDE_EFFECTS.
1332
1333 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
1334
1335         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1336         floating point registers to register type before storing
1337         value.
1338         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1339         Likewise.
1340
1341 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1342             Tom Tromey  <tromey@redhat.com>
1343
1344         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1345         New functions.
1346         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1347         Declare.
1348         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1349         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1350         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1351         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1352
1353 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
1354             Tom Tromey  <tromey@redhat.com>
1355
1356         PR build/15414:
1357         * configure: Rebuild.
1358         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1359         with -Wno-format.
1360
1361 2013-05-10  Pedro Alves  <palves@redhat.com>
1362
1363         * remote.c (_initialize_remote): Fix spelling of
1364         qXfer:traceframe-info:read packet in packet config command.
1365
1366 2013-05-10  David Taylor  <dtaylor@emc.com>
1367
1368         PR remote/15455
1369
1370         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1371         "QTro" at start of packet.
1372
1373 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1374
1375         * solib-aix.c (solib_aix_relocate_section_addresses):
1376         For the .bss section action, apply the same offset as
1377         the .data section.
1378
1379 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1380
1381         * solib-aix.c (solib_aix_relocate_section_addresses):
1382         Remove FIXME comment.
1383
1384 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1385
1386         PR tdep/15420:
1387         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1388         New functions, directly copied from sparc-sol-thread.c.
1389         * sparc-sol-thread.c: Delete.
1390         * configure.ac: Remove code handling sparc-solaris-thread.c.
1391         * configure: Regenerate.
1392
1393 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
1394
1395         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1396         filter logic.
1397         (backtrace_command): Add "no-filters" option parsing.
1398         (_initialize_stack): Alter help to reflect "no-filters" option.
1399         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1400         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1401         (py-frame.o): Add target
1402         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1403         filter files.
1404         * python/python.h: Add new frame filter constants, and flag enum.
1405         (apply_frame_filter): Add definition.
1406         * python/python.c (apply_frame_filter): New non-Python
1407         enabled function.
1408         * python/py-utils.c (py_xdecref): New function.
1409         (make_cleanup_py_xdecref): Ditto.
1410         * python/py-objfile.c: Declare frame_filters dictionary.
1411         (objfpy_dealloc): Add frame_filters dealloc.
1412         (objfpy_new): Initialize frame_filters attribute.
1413         (objfile_to_objfile_object): Ditto.
1414         (objfpy_get_frame_filters): New function.
1415         (objfpy_set_frame_filters): New function.
1416         * python/py-progspace.c: Declare frame_filters dictionary.
1417         (pspy_dealloc): Add frame_filters dealloc.
1418         (pspy_new): Initialize frame_filters attribute.
1419         (pspacee_to_pspace_object): Ditto.
1420         (pspy_get_frame_filters): New function.
1421         (pspy_set_frame_filters): New function.
1422         * python/py-framefilter.c: New file.
1423         * python/lib/gdb/command/frame_filters.py: New file.
1424         * python/lib/gdb/frames.py: New file.
1425         * python/lib/gdb/__init__.py: Initialize global frame_filters
1426         dictionary
1427         * python/lib/gdb/FrameDecorator.py: New file.
1428         * python/lib/gdb/FrameIterator.py: New file.
1429         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1430         * mi/mi-cmds.h: Declare.
1431         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1432         --no-frame-filter logic, and Python frame filter logic.
1433         (stack_enable_frame_filters): New function.
1434         (parse_no_frame_option): Ditto.
1435         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1436         filter logic.
1437         (mi_cmd_stack_list_locals): Ditto.
1438         (mi_cmd_stack_list_args): Ditto.
1439         (mi_cmd_stack_list_variables): Ditto.
1440         * NEWS: Add frame filter note.
1441
1442 2013-05-09  Doug Evans  <dje@google.com>
1443
1444         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
1445         All callers updated.
1446         (syms_from_objfile): Ditto.  Make static.
1447         (symbol_file_add_with_addrs): Renamed from
1448         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
1449         num_offsets.  All callers updated.
1450         * symfile.h (syms_from_objfile): Delete.
1451
1452         * symfile.c (decrement_reading_symtab): Add assert.
1453         (increment_reading_symtab): Ditto.
1454
1455 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
1456
1457         * source.c (forward_search_command): Replace call to getc
1458         by call to fgetc.
1459         (reverse_search_command): Likewise.
1460
1461 2013-05-08  Doug Evans  <dje@google.com>
1462
1463         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
1464         matching test.
1465
1466 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1467
1468         * sol-thread.c (info_cb): Factorize the code a little.
1469
1470 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1471
1472         * sol-thread.c (info_cb): Rework the output of the "maintenance
1473         info sol-threads" command a bit.
1474
1475 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1476
1477         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
1478         Replace ti.ti_startfunc by ti.ti_pc.
1479
1480 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1481
1482         * solib-aix.c (solib_aix_free_library_list): New function
1483         for the case where HAVE_LIBEXPAT is not defined.
1484
1485 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
1486
1487         PR breakpoints/15413:
1488         * breakpoint.c (condition_completer): Simplify the code to
1489         disconsider multiple locations of breakpoints when completing the
1490         "condition" command.
1491
1492 2013-05-07  Pierre Muller  <muller@sourceware.org>
1493
1494         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
1495         instead of <sys/wait.h>.
1496
1497 2013-05-07  Pierre Muller  <muller@sourceware.org>
1498
1499         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
1500         trailing new line from warning message.
1501
1502 2013-05-07  Pierre Muller  <muller@sourceware.org>
1503
1504         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
1505         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
1506
1507 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
1508
1509         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1510         error message (ARI fix).
1511
1512 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
1513
1514         * features/library-list-aix.dtd: Replace library-list by
1515         library-list-aix.
1516         * rs6000-nat.c: Replace library-list by library-list-aix
1517         throughout.
1518         * solib-aix.c: Likewise.
1519
1520 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
1521
1522         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1523         Renames TARGET_OBJECT_AIX_LIBRARIES.
1524         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1525         TARGET_OBJECT_LIBRARIES_AIX throughout.
1526         * solib-aix.c: Likwise.
1527
1528 2013-05-07  Yao Qi  <yao@codesourcery.com>
1529
1530         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1531         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1532
1533 2013-05-07  Yao Qi  <yao@codesourcery.com>
1534
1535         * solib-dsbt.c (enable_break): Declare.
1536         (dsbt_current_sos): Remove call to enable_break2.
1537         (enable_break2): Rename to enable_break.  Set solib breakpoint
1538         on '_dl_debug_state'.
1539         (enable_break): Remove.
1540
1541 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
1542
1543         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1544         debug state prior to replicating existing hardware watchpoints or
1545         breakpoints.
1546
1547 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1548
1549         * gcore.c (gcore_create_callback): Ignore sections with
1550         separate_debug_objfile_backlink != NULL.
1551
1552 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
1553             Andrew Jenner  <andrew@codesourcery.com>
1554             Chung-Lin Tang  <cltang@codesourcery.com>
1555             Julian Brown  <julian@codesourcery.com>
1556
1557         Based on the nios2-elf port from Altera Corporation.
1558
1559         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1560         nios2-linux-tdep.o.
1561         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1562         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1563         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1564         * nios2-tdep.h: New.
1565         * nios2-tdep.c: New.
1566         * nios2-linux-tdep.c: New.
1567         * features/Makefile (WHICH): Add nios2-linux.
1568         (nios2-linux-expedite): Set.
1569         * features/nios2-cpu.xml: New.
1570         * features/nios2.xml: New.
1571         * features/nios2-linux.xml: New.
1572         * features/nios2.c: New (autogenerated).
1573         * features/nios2-linux.c: New (autogenerated).
1574         * regformats/nios2-linux.dat: New (autogenerated).
1575         * NEWS (Changes since GDB 7.6): Add new Nios II targets
1576         and commands.
1577
1578 2013-05-06  Doug Evans  <dje@google.com>
1579
1580         * symfile.c: Whitespace cleanup.
1581
1582         * solist.h (struct target_so_ops): New member clear_so.
1583         * solib-svr4.c (svr4_clear_so): New function.
1584         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1585         * solib.c (clear_so): Renamed from free_so_symbols.
1586         All callers updated.  Call target clear_so if it exists.
1587
1588 2013-05-06  Tom Tromey  <tromey@redhat.com>
1589
1590         * ada-lang.c (ada_value_primitive_packed_val): Don't
1591         call value_incref.
1592         * value.c (set_value_parent): Incref the new parent and decref
1593         the old parent.
1594         (value_copy, value_primitive_field): Use set_value_parent.
1595
1596 2013-05-06  Tom Tromey  <tromey@redhat.com>
1597
1598         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1599         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1600         if needed.
1601         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1602         * dwarf2read.c (write_constant_as_bytes)
1603         (dwarf2_fetch_constant_bytes): New functions.
1604
1605 2013-05-06  Tom Tromey  <tromey@redhat.com>
1606
1607         * dwarf2read.c (dwarf2_const_value_data): Remove unused
1608         parameters.
1609         (dwarf2_const_value_attr): Update.
1610
1611 2013-05-06  Tom Tromey  <tromey@redhat.com>
1612
1613         * somread.c (som_symfile_offsets): Add 'const' to addrs.
1614         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1615         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1616         Remove declaration.
1617
1618 2013-05-06  Tom Tromey  <tromey@redhat.com>
1619
1620         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1621         objfile's obstack.
1622
1623 2013-05-06  Doug Evans  <dje@google.com>
1624
1625         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1626         * stabsread.h (process_one_symbol): Update declaration.
1627         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1628         * elfread.c (elf_symfile_relocate_probe): Ditto.
1629         * psymtab.c (relocate_psymtabs): Ditto.
1630         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1631         (objfile_relocate): Ditto.
1632         * objfiles.h (objfile_relocate): Update declaration.
1633         * symfile.c (relative_addr_info_to_section_offsets): Constify
1634         addrs parameter.
1635         (default_symfile_offsets): Ditto.
1636         (syms_from_objfile_1): Constify offsets parameter.
1637         (syms_from_objfile): Ditto.
1638         (symbol_file_add_with_addrs_or_offsets): Ditto.
1639         (symfile_map_offsets_to_segments): Constify data parameter.
1640         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1641         delta parameters of member relocate.
1642         (struct sym_probe_fns): Constify new_offsets,
1643         delta parameters of member sym_relocate_probe.
1644         (struct sym_fns): Constify section_addr_info parameter of member
1645         sym_offsets.
1646         (relative_addr_info_to_section_offsets): Update declaration.
1647         (default_symfile_offsets): Ditto.
1648         (syms_from_objfile): Ditto.
1649         (symfile_map_offsets_to_segments): Ditto.
1650
1651         * symfile.c (syms_from_objfile_1): Use correct section count when
1652         objfile->sf == NULL.
1653
1654 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1655
1656         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1657
1658 2013-05-06  Doug Evans  <dje@google.com>
1659
1660         * psympriv.h (struct partial_symtab): Augment comment for member
1661         section_offsets.
1662
1663 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1664
1665         Reimplement shared library support on ppc-aix...
1666         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1667         * features/library-list-aix.dtd: New file.
1668         * solib-aix.h, solib-aix.c: New file.
1669         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1670         (rs6000_find_toc_address_hook): Delete.
1671         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1672         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1673         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
1674         "xml-utils.h".
1675         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1676         (vmap_symtab, fixup_breakpoints): Delete.
1677         (rs6000_xfer_shared_libraries): New function.
1678         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1679         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1680         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1681         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1682         (rs6000_xfer_shared_library): New function.
1683         (find_toc_address): Delete.
1684         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1685         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1686         * xcoffread.c (record_minimal_symbol): Reloate symbol address
1687         before creating minimal symbol.  Adjust function description
1688         accordingly.
1689         (scan_xcoff_symtab): Replace call to
1690         prim_record_minimal_symbol_and_info by call to
1691         record_minimal_symbol.
1692         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1693         around default_symfile_offsets.
1694         * configure.tgt: Add solib-aix.o to gdb_target_obs for
1695         powerpc-aix targets.
1696         * config/rs6000/nm-rs6000.h: Delete.
1697         * config/powerpc/aix.mh (NAT_FILE): Delete.
1698         (NATDEPFILES): Remove xcoffsolib.o.
1699         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1700         (ALL_TARGET_OBS): Add solib-aix.o.
1701         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1702         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
1703         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
1704         * xcoffsolib.h, xcoffsolib.c: Delete.
1705
1706         * solib.c (reload_shared_libraries): Remove reference to
1707         SOLIB_CREATE_INFERIOR_HOOK.
1708         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1709         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1710         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1711         comment.
1712         * corelow.c (deprecated_core_resize_section_table): Delete.
1713         * exec.c: Remove include of xcoffsolib.h".
1714         (map_vmap, vmap): Delete.
1715         (exec_close_1): Remove references to vmap.
1716         (exec_file_attach): Remove vmap handling code, and reference
1717         to DEPRECATED_IBM6000_TARGET.
1718         (bfdsec_to_vmap): Delete.
1719         (exec_files_info): Remove block of code handling VMAP.
1720         * infcmd.c (post_create_inferior): Remove reference to
1721         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1722         * infrun.c (follow_exec): Remove reference to
1723         SOLIB_CREATE_INFERIOR_HOOK.
1724         * stack.c (print_frame): Remove reference to PC_SOLIB.
1725         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1726         (dsbt_relocate_main_executable): Likewise.
1727         * solib-frv.c (frv_current_sos): Likewise.
1728
1729 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1730
1731         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
1732         to target_write_memory and target_read_memory.
1733
1734 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1735
1736         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
1737         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
1738
1739 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1740
1741         * darwin-nat.c: Replace all "%x" instances in format strings
1742         into "0x%x" throughout.
1743
1744 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1745
1746         * darwin-nat.c (darwin_mourn_inferior): Replace call to
1747         gdb_assert by call to MACH_CHECK_ERROR.
1748         (darwin_attach_pid): Raise an error rather than a failed
1749         assertion when various system calls failed.  Report a warning
1750         instead of raising a failed assertion when PREV_NOT is not NULL
1751         after call to mach_port_request_notification.
1752         (darwin_ptrace_me): Raise an error rather than a failed
1753         assertion when read returns nonzero.
1754
1755 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1756
1757         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
1758
1759 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1760
1761         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
1762
1763 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1764
1765         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
1766         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
1767         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
1768         a stale cleanup.  Fix double free of NAME.
1769
1770 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
1771
1772         * windows-nat.c (windows_delete_thread): Accept an additional
1773         argument, the thread's exit code, and announce thread death when
1774         print_thread_events is non-zero and we are deleting a thread that
1775         is not the main thread.
1776         (get_windows_debug_event): Pass thread exit code to
1777         windows_delete_thread.
1778
1779 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
1780
1781         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
1782         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
1783         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
1784         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
1785         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
1786         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
1787         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
1788         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
1789         (gdbarch_tdep): New struct.
1790         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
1791         E_NUM_REGS.
1792         (v850e3v5_register_name): New function.
1793         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
1794         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
1795         code handling the struct return conventions for the RH850 ABI.
1796         Update all callers.
1797         (v850_eight_byte_align_p): New function.
1798         (v850_push_call_dummy): Push structs by value, not by reference
1799         for the RH850 ABI.  Add support for eight byte alignment.
1800         (v850_dbtrap_breakpoint_from_pc): New function.
1801         (v850_gdbarch_init): Add ABI detection code.  Register
1802         v850e3v5_register_name for the v850e3v5 architecture.  Set the
1803         number of registers for v850e3v5.  Register
1804         v850_dbtrap_breakpoint_from_pc as appropriate.
1805         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
1806
1807 2013-05-03  Doug Evans  <dje@google.com>
1808
1809         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
1810         of bfd_count_sections.
1811         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
1812         * symfile.c (default_symfile_offsets): Ditto.
1813         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
1814         one entry, not bfd_count_sections entries.
1815
1816 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
1817
1818         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
1819         `save' and `restore' register groups.  Don't include SPL
1820         or SPH in these groups.
1821         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
1822         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
1823         RL78_ES_REGNUM, and RL78_CS_REGNUM.
1824         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
1825         dwarf2_append_unwinders().
1826
1827 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1828
1829         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
1830         ignore SIGINT and SIGTRAP in case these internal signals are
1831         caught explicitely.
1832
1833 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
1834
1835         * darwin-nat.c (darwin_read_write_inferior): Change types
1836         of parameters rdaddr and wraddr to "gdb_byte *". Change type
1837         of copy_count to "mach_msg_type_number_t".
1838         (darwin_read_dyld_info): Change type of parameter
1839         rdaddr to "gdb_byte *".
1840
1841 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
1842
1843         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
1844         of &info->load_map from "char *" to "gdb_byte *".
1845
1846 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
1847
1848         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
1849         from "char *" to "gdb_byte *".
1850         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
1851
1852 2013-04-30  Doug Evans  <dje@google.com>
1853
1854         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
1855         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
1856         DWO stub.  If DWO isn't found, just use stub.
1857         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
1858
1859         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
1860         calling init_cutu_and_read_dies.
1861
1862 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1863
1864         * target-descriptions.c (maint_print_c_tdesc_cmd):
1865         Add case to parse structures as register types and
1866         bitfields.
1867
1868 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1869
1870         * MAINTAINERS (Write After Approval): Add myself to the list.
1871
1872 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
1873
1874         * sol-thread.c (rw_common): Change type of parameter "buf"
1875         to "gdb_byte *".
1876         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
1877         rw_common to "gdb_byte *" instead of "char *".
1878
1879 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
1880
1881         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
1882         of local variable msym to const struct bound_minimal_symbol.
1883         Adjust use accordingly.
1884         [ti.ti_state == TD_THR_SLEEP]: Likewise.
1885
1886 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
1887
1888         * i386gnu-nat.c (CREG_OFFSET): New macro.
1889         (creg_offset): New array.
1890         (CREG_ADDR): Use creg_offset instead of reg_offset.
1891
1892 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
1893
1894         * mep-tdep.c (mep_write_pc): Delete.
1895         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
1896         Add call to set_gdbarch_pc_regnum.
1897
1898 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
1899
1900         * common/filestuff.c: Replace #include <dirent.h> by
1901         #include "gdb_dirent.h".
1902
1903 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
1904
1905         * common/filestuff.c: Replace #include <sys/stat.h> by
1906         #include "gdb_stat.h".
1907
1908 2013-04-29  Pierre Muller  <muller@sourceware.org>
1909
1910         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
1911         editCase function rule.
1912         (get_DW_AT_signature_type): Likewise.
1913
1914 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
1915
1916         * m32r-tdep.c (m32r_write_pc): Delete.
1917         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
1918         Add call to set_gdbarch_pc_regnum.
1919
1920 2013-04-29  Pierre Muller  <muller@sourceware.org>
1921
1922         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
1923
1924 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
1925
1926         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
1927
1928 2013-04-28  Yao Qi  <yao@codesourcery.com>
1929
1930         * solib-dsbt.c (fetch_loadmap): Re-indent.
1931         (displacement_from_map, enable_break2): Likewise.
1932         (dsbt_relocate_section_addresses): Likewise.
1933
1934 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
1935
1936         GDB 7.6 released.
1937
1938 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
1939
1940         PR corefiles/14983:
1941         * dwarf2read.c (process_full_comp_unit): Always create a static
1942         block.
1943
1944 2013-04-25  Hui Zhu  <hui@codesourcery.com>
1945
1946         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
1947         to loc->cmd_bytecode.
1948
1949 2013-04-24  Doug Evans  <dje@google.com>
1950
1951         * dwarf2read.c (setup_type_unit_groups): Fix comment.
1952
1953 2013-04-22  Keith Seitz  <keiths@redhat.com>
1954
1955         * tracepoint.c (trace_save):  Call the writer's start method.
1956
1957 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
1958
1959         PR gdb/10462
1960         * cli/cli-decode.c (lookup_command): Show an error if there is no space
1961         before argument.
1962
1963 2013-04-23  Tom Tromey  <tromey@redhat.com>
1964
1965         * common/filestuff.c: Check USE_WIN32API before including
1966         sys/socket.h.
1967         (HAVE_F_GETFD): New define.
1968         (mark_cloexec): Check HAVE_F_GETFD.
1969         (gdb_open_cloexec): Change 'mode' to unsigned long.
1970         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1971         (gdb_pipe_cloexec): Check HAVE_PIPE.
1972         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1973         long.
1974
1975 2013-04-23  Hui Zhu  <hui@codesourcery.com>
1976
1977         PR gdb/15293
1978         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1979
1980 2013-04-23  Hui Zhu  <hui@codesourcery.com>
1981
1982         PR gdb/15165
1983         * breakpoint.c (dprintf_print_recreate): New.
1984         (save_breakpoints): Let it not save dprintf commands.
1985         (initialize_breakpoint_ops): Set dprintf_print_recreate.
1986
1987 2013-04-22  Tom Tromey  <tromey@redhat.com>
1988
1989         PR gdb/7912:
1990         * Makefile.in (SFILES): Add filestuff.c
1991         (COMMON_OBS): Add filestuff.o.
1992         (filestuff.o): New target.
1993         * auto-load.c (auto_load_objfile_script_1): Use
1994         gdb_fopen_cloexec.
1995         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1996         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1997         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1998         * common/agent.c (gdb_connect_sync_socket): Use
1999         gdb_socket_cloexec.
2000         * common/filestuff.c: New file.
2001         * common/filestuff.h: New file.
2002         * common/linux-osdata.c (linux_common_core_of_thread)
2003         (command_from_pid, commandline_from_pid, print_source_lines)
2004         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2005         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
2006         gdb_fopen_cloexec.
2007         * common/linux-procfs.c (linux_proc_get_int)
2008         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
2009         * config.in, configure: Rebuild.
2010         * configure.ac: Don't check for sys/socket.h.  Check for
2011         fdwalk, pipe2.
2012         * corelow.c (core_open): Use gdb_open_cloexec.
2013         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
2014         * fork-child.c (fork_inferior): Call close_most_fds.
2015         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
2016         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
2017         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
2018         Use gdb_fopen_cloexec.
2019         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
2020         gdb_open_cloexec.
2021         (linux_async_pipe): Use gdb_pipe_cloexec.
2022         * remote-fileio.c (remote_fileio_func_open): Use
2023         gdb_open_cloexec.
2024         * remote.c (remote_file_put, remote_file_get): Use
2025         gdb_fopen_cloexec.
2026         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
2027         close_most_fds.
2028         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
2029         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
2030         * solib.c (solib_find): Use gdb_open_cloexec.
2031         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
2032         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
2033         (tfile_open): Use gdb_open_cloexec.
2034         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
2035         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
2036         * xml-support.c (xml_fetch_content_from_file): Use
2037         gdb_fopen_cloexec.
2038         * main.c (captured_main): Call notice_open_fds.
2039
2040 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2041
2042         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2043         'char *' to 'gdb_byte *'.
2044         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2045         'gdb_byte'.
2046
2047 2013-04-22  Yao Qi  <yao@codesourcery.com>
2048
2049         * infrun.c: Fix typo in comment.
2050
2051 2013-04-22  Andrew Haley  <aph@redhat.com>
2052
2053         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2054         instead of "long".
2055
2056 2013-04-20  Yao Qi  <yao@codesourcery.com>
2057
2058         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2059         'char *' to 'gdb_byte *'.  Cast the return value of
2060         'bt_ctf_get_char_array' to 'gdb_byte *'.
2061
2062 2013-04-19  Pedro Alves  <palves@redhat.com>
2063
2064         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2065         -Wpointer-sign.
2066         * configure: Regenerate.
2067
2068 2013-04-19  Pedro Alves  <palves@redhat.com>
2069
2070         * ser-tcp.c (net_read_prim): Cast second argument to recv to
2071         'void *'.
2072
2073 2013-04-19  Pedro Alves  <palves@redhat.com>
2074
2075         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2076         Change type of 'myaddr' parameter to gdb_byte pointer.
2077         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
2078         to 'long long' pointer instead of to 'unsigned long long'.
2079         (monitor_write_memory_block, monitor_read_memory_single)
2080         (monitor_read_memory): Change type of 'myaddr' parameter to
2081         gdb_byte pointer.
2082
2083 2013-04-19  Pedro Alves  <palves@redhat.com>
2084
2085         * record.c (validate_history_size): Make parameter 'setting'
2086         unsigned.
2087
2088 2013-04-19  Pedro Alves  <palves@redhat.com>
2089
2090         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2091         to 'gdb_byte *'.
2092
2093 2013-04-19  Pedro Alves  <palves@redhat.com>
2094
2095         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2096         local to int.
2097
2098 2013-04-19  Pedro Alves  <palves@redhat.com>
2099
2100         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2101         * ada-tasks.c (read_fat_string_value): Likewise.
2102
2103 2013-04-19  Pedro Alves  <palves@redhat.com>
2104
2105         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2106         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
2107         'offset', and adjust.
2108
2109 2013-04-19  Pedro Alves  <palves@redhat.com>
2110
2111         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2112         (read_index_from_section): Add cast to 'char *'.
2113
2114 2013-04-19  Pedro Alves  <palves@redhat.com>
2115
2116         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2117
2118 2013-04-19  Pedro Alves  <palves@redhat.com>
2119
2120         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2121
2122 2013-04-19  Pedro Alves  <palves@redhat.com>
2123
2124         * record-full.c (record_full_get_bookmark): Change local 'ret'
2125         type to char * and add cast to gdb_byte *.
2126         (record_full_goto_bookmark): Handle 'bookmark' argument as a
2127         string.
2128         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2129
2130 2013-04-19  Pedro Alves  <palves@redhat.com>
2131
2132         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2133         * python/py-prettyprint.c (print_string_repr): Change type of
2134         'output' local to char *.  Add cast to gdb_byte * in
2135         LA_PRINT_STRING call.
2136         (print_children): Change type of 'output' local to char *.
2137         * python/py-value.c (valpy_string): Add cast to const char * in
2138         PyUnicode_Decode call.
2139
2140 2013-04-19  Pedro Alves  <palves@redhat.com>
2141
2142         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2143         and change its type to 'const char *'.  Adjust.
2144         (mips_send_packet): Add cast to 'char *', and remove cast to
2145         'unsigned char *'.
2146         (mips_receive_packet): Remove cast to 'unsigned char *'.
2147         (mips_load_srec): Use bfd_byte.
2148         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2149         (pmon_checkset): Make 'value' parameter unsigned.
2150
2151 2013-04-19  Pedro Alves  <palves@redhat.com>
2152
2153         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2154
2155 2013-04-19  Pedro Alves  <palves@redhat.com>
2156
2157         * remote.c (remote_write_bytes_aux, compare_sections_command)
2158         (remote_read_qxfer)
2159         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2160         (remote_hostio_readlink, remote_bfd_iovec_pread)
2161         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2162         binary buffer, and char when buffer is used as string.
2163         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2164         (trace_save, tfile_open, traceframe_walk_blocks)
2165         (tfile_fetch_registers): Likewise.
2166
2167 2013-04-19  Pedro Alves  <palves@redhat.com>
2168
2169         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2170         buffer and size_t size.  Adjust.
2171         * ser-base.h (ser_base_write): Adjust.
2172         * ser-go32.c (cnts): Change type to size_t.
2173         (dos_write): Change prototype -- take 'void *'
2174         buffer and size_t size.  Adjust.
2175         (dos_info): Print elements of 'cnts' as unsigned long.
2176         * serial.c (serial_write): Likewise.
2177         * serial.h (serial_write): Adjust.
2178         (struct serial_ops) <write>: Change prototype -- take 'void *'
2179         buffer and size_t size.  Adjust.
2180
2181 2013-04-19  Pedro Alves  <palves@redhat.com>
2182
2183         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2184         gdb_byte *.
2185         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2186
2187 2013-04-19  Pedro Alves  <palves@redhat.com>
2188
2189         * alpha-tdep.c (alpha_extract_return_value): Use
2190         regcache_cooked_read_unsigned to read 'v0'.
2191
2192 2013-04-19  Pedro Alves  <palves@redhat.com>
2193
2194         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2195         parameters 'at', 'as' and 'offset' to uint32_t.
2196
2197 2013-04-19  Pedro Alves  <palves@redhat.com>
2198
2199         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2200         'is64' to signed 'int'.
2201
2202 2013-04-19  Pedro Alves  <palves@redhat.com>
2203
2204         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2205         parameter to int *.
2206
2207 2013-04-19  Pedro Alves  <palves@redhat.com>
2208
2209         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2210         'insnbuf' buffer type to unsigned int[].
2211
2212 2013-04-19  Pedro Alves  <palves@redhat.com>
2213
2214         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2215
2216 2013-04-19  Pedro Alves  <palves@redhat.com>
2217
2218         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2219         unsigned long *.
2220
2221 2013-04-19  Pedro Alves  <palves@redhat.com>
2222
2223         * alpha-tdep.c (heuristic_fence_post): Change type to int.
2224         (alpha_heuristic_proc_start): Adjust to check -1 instead of
2225         UINT_MAX.
2226         * mips-tdep.c (heuristic_fence_post): Change type to int.
2227         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2228
2229 2013-04-19  Pedro Alves  <palves@redhat.com>
2230
2231         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2232         (struct gdbarch_tdep) <cris_version>: Make unsigned.
2233         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2234
2235 2013-04-19  Pedro Alves  <palves@redhat.com>
2236
2237         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
2238         it to get a string view of the byte buffer.
2239         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2240         type to gdb_byte *.  Adjust.
2241         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2242         Change local to char *.
2243         * solib-darwin.c (find_program_interpreter): Change return type to
2244         char *.  Adjust.
2245         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2246         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2247         * solib-frv.c (enable_break2): Change local 'buf' to char *.
2248         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2249         * solib-svr4.c (find_program_interpreter): Change return type to
2250         char *.  Adjust.
2251         (enable_break): Change local 'interp_name' to char *.
2252         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2253         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2254         (spu_pseudo_register_write_spu): Use char for string buffer.
2255         Adjust.
2256         (info_spu_event_command, info_spu_signal_command): Add casts to
2257         'char *'.
2258
2259 2013-04-19  Pedro Alves  <palves@redhat.com>
2260
2261         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2262         gdb_byte[].
2263         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2264         * ada-lang.c (ada_value_assign): Use gdb_byte.
2265         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2266         (alphanbsd_sigtramp_offset): Use gdb_byte.
2267         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2268         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2269         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2270         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2271         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2272         * arm-tdep.c (arm_stub_unwind_sniffer)
2273         (arm_displaced_init_closure): Use gdb_byte.
2274         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2275         (arm_default_thumb_le_breakpoint)
2276         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2277         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2278         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2279         * arm-wince-tdep.c (arm_wince_le_breakpoint)
2280         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2281         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2282         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2283         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2284         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2285         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2286         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2287         (cris_store_return_value, cris_extract_return_value): Use
2288         gdb_byte.
2289         (constraint): Change type of parameter to char * from signed
2290         char*.  Use gdb_byte.
2291         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2292         of local buffer to gdb_byte *.
2293         * dwarf2read.c (read_index_from_section): Use gdb_byte.
2294         (create_dwp_hash_table): Change type of locals to gdb_byte *.
2295         (add_address_entry): Change type of local buffer to gdb_byte[].
2296         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2297         (frv_push_dummy_call): Use gdb_byte.
2298         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2299         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2300         (hppa_hpux_supply_save_state): Use gdb_byte.
2301         * hppa-tdep.c (hppa32_push_dummy_call)
2302         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2303         * ia64-tdep.c (extract_bit_field, replace_bit_field)
2304         (slotN_contents, replace_slotN_contents): Change type of parameter
2305         to gdb_byte *.
2306         (fetch_instruction, ia64_pseudo_register_write)
2307         (ia64_register_to_value, ia64_value_to_register)
2308         (ia64_extract_return_value, ia64_store_return_value)
2309         (ia64_push_dummy_call): Use gdb_byte.
2310         * m32c-tdep.c (m32c_return_value): Remove cast.
2311         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2312         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2313         gdb_byte.
2314         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2315         * mn10300-tdep.c (mn10300_store_return_value)
2316         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2317         gdb_byte.
2318         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2319         (moxie_process_record): Remove casts.
2320         * ppc-ravenscar-thread.c (supply_register_at_address)
2321         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2322         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2323         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2324         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2325         * remote.c (compare_sections_command): Use gdb_byte.
2326         * score-tdep.c (score7_free_memblock): Change type of parameter to
2327         gdb_byte *.
2328         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2329         gdb_byte *.  Use gdb_byte.
2330         (sh_push_dummy_call_fpu): Use gdb_byte.
2331         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2332         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2333         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2334         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
2335         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2336         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2337         (sh64_store_return_value, sh64_register_convert_to_virtual):
2338         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
2339         (sh64_pseudo_register_write): Use gdb_byte.
2340         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2341         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
2342         buffer.
2343         (irix_current_sos): Use gdb_byte.
2344         * solib-som.c (som_current_sos): Use gdb_byte.
2345         * sparc-ravenscar-thread.c (supply_register_at_address)
2346         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2347         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2348         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2349         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2350         'gdb_byte *'.
2351         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2352         'gdb_byte *'.
2353         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2354         * xstormy16-tdep.c (xstormy16_extract_return_value)
2355         (xstormy16_store_return_value): Change parameter type to
2356         'gdb_byte *'.  Adjust.
2357         (xstormy16_push_dummy_call): Use gdb_byte.
2358         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2359         (call0_analyze_prologue, execute_code): Use gdb_byte.
2360
2361 2013-04-19  Vladimir Kargov <kargov@gmail.com>
2362             Pedro Alves  <palves@redhat.com>
2363
2364         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2365         value contents.
2366
2367 2013-04-17  Doug Evans  <dje@google.com>
2368
2369         * dwarf2read.c (struct signatured_type): New member type.
2370         (struct attribute): Replace member signatured_type with signature.
2371         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2372         (read_call_site_scope): Call follow_die_ref instead of
2373         follow_die_ref_or_sig.
2374         (read_structure_type): Rewrite handling of signatured types.
2375         (read_enumeration_type): Ditto.
2376         (read_attribute_value): Update.
2377         (build_error_marker_type): New function.
2378         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
2379         Don't call error for bad types, just build an error marker type.
2380         (dump_die_shallow): Update.
2381         (follow_die_sig_1): Renamed from follow_die_sig.
2382         Don't call error for bad types, instead return NULL.
2383         (follow_die_sig): New function.
2384         (get_signatured_type, get_DW_AT_signature_type): New functions.
2385
2386 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
2387
2388         * aarch64-tdep.c (aarch64_write_pc): Removed.
2389         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2390         function.
2391
2392 2013-04-17  Yao Qi  <yao@codesourcery.com>
2393
2394         * top.c (print_gdb_configuration): Print configure-time
2395         parameter on using libbabeltrace or not.
2396
2397 2013-04-16  Pedro Alves  <palves@redhat.com>
2398
2399         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2400
2401 2013-04-16  Pedro Alves  <palves@redhat.com>
2402
2403         * common/glibc_thread_db.h: Update from upstream glibc
2404         (git 568035b7874a099087b77f7bba3e36a1173787b0).
2405
2406 2013-04-16  Pedro Alves  <palves@redhat.com>
2407
2408         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2409         * common/glibc_thread_db.h: ... this new file ...
2410         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2411
2412 2013-04-16  Will Newton  <will.newton@gmail.com>
2413             Pedro Alves  <palves@redhat.com>
2414
2415         PR build/11881
2416
2417         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2418         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2419         HAVE_THREAD_DB_H.
2420
2421 2013-04-16  Pedro Alves  <palves@redhat.com>
2422             Eli Zaretskii  <eliz@gnu.org>
2423
2424         * NEWS: Mention "set foo unlimited".
2425
2426 2013-04-15  Doug Evans  <dje@google.com>
2427
2428         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2429         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2430         (create_dwo_cu_reader): Renamed from
2431         create_dwo_debug_info_hash_table_reader.
2432         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2433         Remove support for multiple CUs in a DWO file.
2434         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2435
2436         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2437         instead of phex.
2438         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
2439         (create_dwo_in_dwp): Ditto.
2440
2441 2013-04-15  Tom Tromey  <tromey@redhat.com>
2442
2443         * NEWS: Move recent entries into "since 7.6" section.
2444
2445 2013-04-15  Tom Tromey  <tromey@redhat.com>
2446
2447         PR c++/13588:
2448         * NEWS: Update.
2449         * break-catch-throw.c (struct exception_catchpoint)
2450         <exception_rx, pattern>: New fields.
2451         (fetch_probe_arguments, dtor_exception_catchpoint)
2452         (check_status_exception_catchpoint)
2453         (print_one_detail_exception_catchpoint): New functions.
2454         (handle_gnu_v3_exceptions): Add "except_rx" argument.
2455         Compile regular expression if needed.
2456         (extract_exception_regexp): New function.
2457         (catch_exception_command_1): Use extract_exception_regexp.
2458         (compute_exception): Use fetch_probe_arguments.
2459         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
2460         and check_status fields.
2461         * cp-abi.c (cplus_typename_from_type_info): New function.
2462         * cp-abi.h (cplus_typename_from_type_info): Declare.
2463         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
2464         * gdb_regex.h (compile_rx_or_error): Declare.
2465         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
2466         comment.
2467         (init_gnuv3_ops): Set get_type_from_type_info field.
2468         * probe.c (compile_rx_or_error): Move...
2469         * utils.c (compile_rx_or_error): ... here.
2470
2471 2013-04-15  Tom Tromey  <tromey@redhat.com>
2472
2473         PR c++/15176:
2474         * NEWS: Update.
2475         * break-catch-throw.c (compute_exception): New function.
2476         (exception_funcs): New global.
2477         (_initialize_break_catch_throw): Create $_exception.
2478         * cp-abi.c (cplus_type_from_type_info): New function.
2479         * cp-abi.h (cplus_type_from_type_info): Declare.
2480         (struct cp_abi_ops) <get_type_from_type_info>: New field.
2481         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
2482         (gnuv3_get_type_from_type_info): New functions.
2483         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
2484
2485 2013-04-15  Tom Tromey  <tromey@redhat.com>
2486
2487         * break-catch-throw.c (struct exception_names): New.
2488         (exception_functions): Change type.
2489         (re_set_exception_catchpoint): Look for SDT probes.
2490
2491 2013-04-15  Tom Tromey  <tromey@redhat.com>
2492
2493         PR c++/10119:
2494         * break-catch-throw.c (exception_functions): New global.
2495         (gnu_v3_exception_catchpoint_ops): Move earlier.
2496         (struct exception_catchpoint): New.
2497         (classify_exception_breakpoint): Rewrite.
2498         (re_set_exception_catchpoint): New function.
2499         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
2500         Allocate a struct exception_catchpoint.
2501         (catch_exception_command_1): Update.
2502         (initialize_throw_catchpoint_ops): Set 're_set' method.
2503
2504 2013-04-15  Tom Tromey  <tromey@redhat.com>
2505
2506         * Makefile.in (SFILES): Add break-catch-throw.c
2507         (COMMON_OBS): Add break-catch-throw.o.
2508         * break-catch-throw.c: New file.
2509         * breakpoint.c: Move exception-catching code to new file.
2510         (ep_parse_optional_if_clause): No longer static.
2511         * breakpoint.h (ep_parse_optional_if_clause): Declare.
2512
2513 2013-04-15  Tom Tromey  <tromey@redhat.com>
2514
2515         PR c++/9065:
2516         * NEWS: Update.
2517         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2518         * c-exp.y (TYPEID): New token.
2519         (exp): Add new TYPEID productions.
2520         (ident_tokens): Add "typeid".
2521         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2522         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2523         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2524         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2525         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2526         case.
2527         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2528         (build_std_type_info_type, gnuv3_get_typeid_type)
2529         (gnuv3_get_typeid): New functions.
2530         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
2531         new fields on ABI object.
2532         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2533         * std-operator.def (OP_TYPEID): New.
2534
2535 2013-04-15  Tom Tromey  <tromey@redhat.com>
2536
2537         * elfread.c (elf_symtab_read): Install versioned symbol under
2538         unversioned name as well.
2539
2540 2013-04-15  Tom Tromey  <tromey@redhat.com>
2541
2542         PR c++/11990:
2543         * c-lang.c (cplus_language_defn): Use gdb_demangle.
2544         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2545         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2546         (gdb_demangle): New function.
2547         * cp-support.h (gdb_demangle): Declare.
2548         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2549         (dwarf2_name): Use gdb_demangle.
2550         * gdbtypes.c (check_stub_method): Use gdb_demangle.
2551         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2552         suffixes from name.
2553         (gnuv3_print_method_ptr): Use gdb_demangle.
2554         * jv-lang.c (java_demangle): Use gdb_demangle.
2555         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2556         * language.c (unk_lang_demangle): Use gdb_demangle.
2557         * symtab.c (symbol_find_demangled_name)
2558         (demangle_for_lookup): Use gdb_demangle.
2559
2560 2013-04-15  Tom Tromey  <tromey@redhat.com>
2561
2562         PR c++/12824:
2563         * NEWS: Update.
2564         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2565         New constant.
2566         (classify_exception_breakpoint): New function.
2567         (print_it_exception_catchpoint, print_one_exception_catchpoint)
2568         (print_mention_exception_catchpoint)
2569         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2570         (catch_exception_command_1): Handle "rethrow" catchpoint.
2571         (catch_rethrow_command): New function.
2572         (_initialize_breakpoint): Add "catch rethrow" command.
2573
2574 2013-04-15  Pierre Muller  <muller@sourceware.org>
2575
2576         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2577         set_gdbarch_write_pc as deprecated anymore.
2578
2579 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
2580
2581         * spu-tdep.c (spu_write_pc): Add empty line after local variable
2582         declarations.
2583
2584 2013-04-13  Yao Qi  <yao@codesourcery.com>
2585
2586         * ctf.c (_initialize_ctf): Include "completer.h".
2587         Call add_target_with_completer instead of add_target.
2588
2589 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2590
2591         Fix GDB regression related to PR binutils/14813.
2592         * jit.c (mem_bfd_iovec_close): Return 0 for success.
2593         * minidebug.c (lzma_close): Add return value comment.
2594         * remote.c (remote_bfd_iovec_close): Return 0 for success.
2595         * solib-spu.c (spu_bfd_iovec_close): Likewise.
2596         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2597
2598 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2599
2600         * config.in: Regenerate.
2601
2602 2013-04-12  Tom Tromey  <tromey@redhat.com>
2603
2604         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2605         const.
2606         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2607         (struct die_reader_specs) <buffer>: Likewise.
2608         (die_reader_func_ftype): Make 'info_ptr' const.
2609         (struct line_header) <include_dirs, statement_program_start,
2610         statement_program_end>: Now const.
2611         (struct file_entry) <name>: Likewise.
2612         (struct partial_die_info) <sibling>: Likewise.
2613         (struct dwarf_block) <data>: Likewise.
2614         (dwarf2_read_section): Remove cast.
2615         (dwarf2_get_section_info): Make 'bufp' const.
2616         (read_index_from_section): Constify.
2617         (dw2_get_file_names_reader): Make 'info_ptr' const.
2618         (dw2_get_primary_filename_reader): Likewise.
2619         (read_comp_unit_head): Make 'info_ptr' and return type const.
2620         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2621         Likewise.
2622         (read_abbrev_offset): Constify.
2623         (dwarf2_create_include_psymtab): Make 'name' const.
2624         (create_debug_types_hash_table): Update.
2625         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2626         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2627         Constify.
2628         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2629         (load_partial_comp_unit_reader): Make 'info_ptr' const.
2630         (read_comp_units_from_section): Constify.
2631         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2632         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2633         const.
2634         (dwarf2_compute_name, setup_type_unit_groups): Constify.
2635         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2636         (create_dwp_hash_table, dwarf2_ranges_read)
2637         (dwarf2_record_block_ranges): Constify.
2638         (read_die_and_children, read_die_and_siblings_1)
2639         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2640         const.
2641         (read_full_die_1, read_full_die): Make 'info_ptr' const.
2642         (abbrev_table_read_table): Constify.
2643         (load_partial_dies): Make 'info_ptr' const.
2644         (read_partial_die, read_attribute_value, read_attribute): Make
2645         'info_ptr' and return type const.
2646         (read_address, read_initial_length)
2647         (read_checked_initial_length_and_offset, read_offset)
2648         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2649         const.
2650         (read_direct_string): Make 'buf' and return type const.
2651         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2652         (read_indirect_string): Make return type const.
2653         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2654         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2655         'info_ptr' const.
2656         (read_str_index): Make return type const.
2657         (add_include_dir): Make 'include_dir' const.
2658         (add_file_name): Make 'name' const.
2659         (dwarf_decode_line_header): Constify.
2660         (psymtab_include_file_name): Make return type const.
2661         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2662         (dwarf2_start_subfile): Make 'filename' const.
2663         (dwarf2_const_value_attr): Make 'bytes' const.
2664         (read_signatured_type_reader): Make 'info_ptr' const.
2665         (decode_locdesc): Constify.
2666         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2667         const.
2668         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2669         'mac_end', and return type const.
2670         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2671         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2672         type const.
2673         (per_cu_header_read_in): Constify.
2674         * symfile.h (dwarf2_get_section_info): Update.
2675
2676 2013-04-12  Tom Tromey  <tromey@redhat.com>
2677
2678         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2679
2680 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
2681
2682         * NEWS: Mention "show configuration", --configuration.
2683         * top.c (print_gdb_configuration): New function, displays the
2684         details about GDB configure-time parameters.
2685         (print_gdb_version): Mention "show configuration".
2686         * cli/cli-cmds.c (show_configuration): New function.
2687         (_initialize_cli_cmds): Add the "show configuration" command.
2688         * main.c (captured_main) <print_configuration>: New static var.
2689         <long_options>: Use it.
2690         If --configuration was given, call print_gdb_configuration.
2691
2692 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2693             Pedro Alves  <palves@redhat.com>
2694
2695         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2696         (generated_files): Add gcore.
2697         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2698         HAVE_NATIVE_GCORE_HOST.
2699         (gcore): New.
2700         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2701         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2702         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2703         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2704         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2705         Add HAVE_NATIVE_GCORE_HOST.
2706         * configure: Regenerate.
2707         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2708         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
2709         AC_CONFIG_FILES for gcore.
2710         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
2711         gdb_have_gcore.
2712         * gdb_gcore.sh: Rename to ...
2713         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
2714         and GCORE_TRANSFORM_NAME substitutions.
2715
2716         Fix parsing tabs in ${gdb_target_obs}.
2717         * configure.tgt (gdb_have_gcore): Replace case with for and if.
2718
2719 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2720
2721         * remote.c (unpush_and_perror): Add output message final dot.
2722
2723 2013-04-11  Yao Qi  <yao@codesourcery.com>
2724
2725         * tracepoint.c (tfile_interp_line): Fit parameters line and
2726         utpp in one line.
2727
2728 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
2729
2730         * solib.c (solib_map_sections): Remove code overwriting
2731         SO->SO_NAME with the bfd's filename.
2732
2733 2013-04-10  Pedro Alves  <palves@redhat.com>
2734
2735         * cli/cli-decode.c (integer_unlimited_completer): New function.
2736         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
2737         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
2738         completer.
2739         * cli/cli-setshow.c: Include "cli/cli-utils.h".
2740         (is_unlimited_literal): New function.
2741         (do_set_command): Handle literal "unlimited" arguments.
2742         * frame.c (_initialize_frame) <set backtrace limit>: Document
2743         "unlimited".
2744         * printcmd.c (_initialize_printcmd) <set print
2745         max-symbolic-offset>: Add help text.
2746         * record-full.c (_initialize_record_full) <set record full
2747         insn-number-max>: Likewise.
2748         * record.c (_initialize_record) <set record
2749         instruction-history-size, set record function-call-history-size>:
2750         Add help text.
2751         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
2752         help text.
2753         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
2754         Likewise.
2755         * source.c (_initialize_source) <set listsize>: Add help text.
2756         * utils.c (initialize_utils) <set height, set width>: Likewise.
2757         <set pagination>: Mention "set height unlimited".
2758         * valprint.c (_initialize_valprint) <set print elements, set print
2759         repeats>: Document "unlimited".
2760
2761 2013-04-10  Pedro Alves  <palves@redhat.com>
2762
2763         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
2764         instead of disconnect_tracing.
2765         * infcmd.c (detach_command, disconnect_command): Call
2766         query_if_trace_running.  Adjust.
2767         * top.c: Include "tracepoint.h".
2768         (quit_target): Delete.  Contents moved ...
2769         (quit_force): ... here.  Wrap each stage of teardown in
2770         TRY_CATCH.  Call disconnect_tracing before detaching.
2771
2772 2013-04-10  Hui Zhu  <hui@codesourcery.com>
2773             Yao Qi  <yao@codesourcery.com>
2774
2775         * configure.ac: Check libbabeltrace is installed.
2776         * config.in: Regenerate.
2777         * configure: Regenerate.
2778         * Makefile.in (LIBBABELTRACE): New.
2779         (CLIBS): Add LIBBABELTRACE.
2780         * ctf.c: Include "exec.h".
2781         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
2782         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
2783         (ctf_save_metadata_header): Define new type aliases in
2784         metadata.
2785         (ctf_write_header): Define event type "tsv_def" and "tp_def"
2786         in metadata.  Start a new faked packet for trace status.
2787         (ctf_write_status): Write trace status to CTF.
2788         (ctf_write_uploaded_tsv): Write TSV to CTF.
2789         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
2790         (ctf_write_definition_end): End the faked packet.
2791
2792         (ctx, ctf_iter, trace_dirname): New.
2793         (start_pos): New variable.
2794         (ctf_destroy, ctf_open_dir, ctf_open): New.
2795         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
2796         macros.
2797         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
2798         (ctf_fetch_registers, ctf_xfer_partial): New.
2799         (ctf_get_trace_state_variable_value): New.
2800         (ctf_get_tpnum_from_frame_event): New.
2801         (ctf_get_traceframe_address): New.
2802         (ctf_trace_find, ctf_has_stack): New.
2803         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
2804         (ctf_get_trace_status, ctf_read_status): New.
2805         (_initialize_ctf): New.
2806         * tracepoint.c (get_tracepoint_number): New
2807         (get_uploaded_tsv): Remove 'static'.
2808         (struct traceframe_info, trace_regblock_size): Move it to ...
2809         * tracepoint.h: ... here.
2810         (get_tracepoint_number): Declare it.
2811         (get_uploaded_tsv): Declare it.
2812
2813         * NEWS: Mention new configure option.
2814
2815 2013-04-10  Pedro Alves  <palves@redhat.com>
2816             Hui Zhu  <hui@codesourcery.com>
2817
2818         * breakpoint.c (dprintf_re_set): New.
2819         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
2820         to dprintf_re_set.
2821
2822 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
2823
2824         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
2825         Remove solib-svr4.o from the list.
2826
2827 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
2828
2829         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
2830         Use gdb_assert_not_reached instead of invalid boolean expression.
2831
2832 2013-04-09  Pedro Alves  <palves@redhat.com>
2833
2834         * remote.c (unpush_and_perror): New function.
2835         (readchar, remote_serial_write): Use it.
2836
2837 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
2838
2839         * NEWS: Mention new btrace RSP packets.
2840
2841 2013-04-08  Tom Tromey  <tromey@redhat.com>
2842
2843         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
2844         long.
2845
2846 2013-04-08  Tom Tromey  <tromey@redhat.com>
2847
2848         * maint.c (print_bfd_section_info): Print the section index.
2849         * symmisc.c (dump_msymbols): Print the section index.
2850
2851 2013-04-08  Tom Tromey  <tromey@redhat.com>
2852
2853         PR symtab/8424:
2854         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
2855         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
2856         * breakpoint.c (resolve_sal_pc): Update.
2857         * elfread.c (elf_gnu_ifunc_record_cache): Update.
2858         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
2859         (minsym_lookup_iterator_cb): Use it.
2860         (default_read_var_value): Update.
2861         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
2862         Update.
2863         * infcmd.c (jump_command): Update.
2864         * linespec.c (minsym_found): Update.
2865         * maint.c (maintenance_translate_address): Update.
2866         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
2867         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
2868         * parse.c (write_exp_msymbol): Update.
2869         * printcmd.c (address_info): Update.
2870         * psymtab.c (find_pc_sect_psymbol): Update.
2871         (fixup_psymbol_section): Check SYMBOL_SECTION, not
2872         SYMBOL_OBJ_SECTION.
2873         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
2874         Don't initialize SYMBOL_OBJ_SECTION.
2875         * spu-tdep.c (spu_catch_start): Update.
2876         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
2877         * symmisc.c (dump_msymbols, print_symbol): Update.
2878         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
2879         how fallback section is computed.
2880         (fixup_symbol_section): Update.
2881         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
2882         Update.
2883         (allocate_symbol, initialize_symbol, allocate_template_symbol):
2884         Initialize SYMBOL_SECTION.
2885         * symtab.h (struct general_symbol_info) <section>: Update comment.
2886         <obj_section>: Remove.
2887         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
2888         (SYMBOL_OBJFILE): New macro.
2889
2890 2013-04-08  Tom Tromey  <tromey@redhat.com>
2891
2892         * coffread.c (record_minimal_symbol): Update.
2893         * dbxread.c (record_minimal_symbol): Update.
2894         * elfread.c (record_minimal_symbol): Update.
2895         * machoread.c (macho_symtab_add_minsym): Update.
2896         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
2897         Update.
2898         * minsyms.c (prim_record_minimal_symbol): Update.
2899         (prim_record_minimal_symbol_full): Remove 'bfd_section'
2900         argument.
2901         (prim_record_minimal_symbol_and_info): Likewise.
2902         * minsyms.h (prim_record_minimal_symbol_full)
2903         (prim_record_minimal_symbol_and_info): Update.
2904         * symtab.c (allocate_symbol, initialize_symbol)
2905         (allocate_template_symbol): Initialize SYMBOL_SECTION.
2906         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
2907         Update.
2908
2909 2013-04-08  Tom Tromey  <tromey@redhat.com>
2910
2911         PR symtab/8423:
2912         * solib-som.c (som_solib_section_offsets): Use BFD section
2913         indices.  Set offsets for all sections.
2914         * somread.c (som_symtab_read): Compute BFD section for
2915         symbol.  Use prim_record_minimal_symbol_and_info.
2916         (som_symfile_read): Fix comment.
2917         (struct find_section_offset_arg): New.
2918         (find_section_offset, set_section_index): New functions.
2919         (som_symfile_offsets): Use set_section_index to compute
2920         section indices.
2921
2922 2013-04-08  Tom Tromey  <tromey@redhat.com>
2923
2924         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
2925         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
2926         gdb_bfd_section_index.
2927         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
2928         New functions.
2929         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
2930         Declare.
2931         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
2932         Update.
2933         * objfiles.c (add_to_objfile_sections_full): New function.
2934         (add_to_objfile_sections): Use it.
2935         (build_section_table): Rewrite.
2936         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
2937         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
2938         (struct objfile) <sections>: Update comment.
2939         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
2940         is NULL.
2941         (ALL_OBJSECTIONS): Use it.
2942         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2943         * solib-frv.c (frv_relocate_main_executable): Update.
2944         * solib-target.c (solib_target_relocate_section_addresses):
2945         Use gdb_bfd_section_index.
2946         * symfile.c (build_section_addr_info_from_section_table):
2947         Use gdb_bfd_section_index.
2948         (build_section_addr_info_from_bfd, place_section): Likewise.
2949         * symtab.c (fixup_section): Update.
2950         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
2951
2952 2013-04-08  Tom Tromey  <tromey@redhat.com>
2953
2954         * minsyms.h (struct bound_minimal_symbol): New.
2955         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2956         Remove objfile argument.
2957         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2958         Return bound_minimal_symbol.
2959         * minsyms.c (lookup_minimal_symbol_by_pc_1)
2960         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2961         Return bound_minimal_symbol.
2962         (in_gnu_ifunc_stub): Update.
2963         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2964         Remove 'objfile_p' argument.
2965         (lookup_solib_trampoline_symbol_by_pc): Update.
2966         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2967         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2968         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2969         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2970         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2971         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2972         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2973         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2974         stack.c, symtab.c, tui/tui-disasm.c: Update.
2975
2976 2013-04-08  Tom Tromey  <tromey@redhat.com>
2977
2978         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2979         Use symbol's obstack, not an objfile.
2980         * coffread.c (process_coff_symbol): Update.
2981         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2982         * jv-lang.c (add_class_symbol): Update.
2983         * mdebugread.c (new_symbol): Update.
2984         * minsyms.c (prim_record_minimal_symbol_full)
2985         (terminate_minimal_symbol_table): Update.
2986         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
2987         * stabsread.c (define_symbol, read_enum_type): Update.
2988         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2989         Handle Ada specially.
2990         (symbol_set_language): Add 'obstack' argument.
2991         (symbol_set_names): Update.
2992         (symbol_natural_name, symbol_demangled_name): Always use
2993         ada_decode_symbol.
2994         * symtab.h (struct general_symbol_info)
2995         <language_specific::obstack>: New field.
2996         <ada_mangled>: New field.
2997         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2998         (symbol_set_language): Update.
2999
3000 2013-04-08  Tom Tromey  <tromey@redhat.com>
3001
3002         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
3003         Take an obstack, not an objfile.
3004         (symbol_set_names): Update.
3005         * symtab.h (symbol_set_demangled_name): Update.
3006
3007 2013-04-08  Tom Tromey  <tromey@redhat.com>
3008
3009         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
3010         allocate_symbol.
3011         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
3012         (read_func_scope): Call allocate_template_symbol.
3013         (new_symbol_full): Call allocate_symbol.
3014         * jit.c (finalize_symtab): Call allocate_symbol.
3015         * jv-lang.c (add_class_symbol): Call allocate_symbol.
3016         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
3017         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3018         (common_block_end): Call allocate_symbol.
3019         * symtab.c (allocate_symbol, initialize_symbol)
3020         (allocate_template_symbol): New functions.
3021         * symtab.c (allocate_symbol, initialize_symbol)
3022         (allocate_template_symbol): Declare.
3023         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
3024
3025 2013-04-08  Pedro Alves  <palves@redhat.com>
3026             Keith Seitz  <keiths@redhat.com>
3027
3028         * breakpoint.c (create_breakpoint): Rename
3029         "parse_condition_and_thread" parameter to "parse_arg".  Update
3030         describing comment.  If !PARSE_ARG, then error out if ARG is not
3031         the empty string after extracting the location.
3032         * breakpoint.h (create_breakpoint): Rename
3033         "parse_condition_and_thread" parameter to "parse_arg".
3034
3035 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
3036
3037         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
3038
3039 2013-04-07  Yao Qi  <yao@codesourcery.com>
3040
3041         * remote.c (remote_trace_find): Change type of parameters 'addr1'
3042         and 'addr2' to CORE_ADDR.
3043         * target.c (update_current_target): Update.
3044         * target.h (struct target_ops) <to_trace_find>: Change parameter
3045         type to CORE_ADDR.
3046         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3047         'addr2' to CORE_ADDR.
3048         (tfile_trace_find): Likewise.
3049         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3050         Change local variable 'addr' to type CORE_ADDR.
3051         * tracepoint.h (tfind_1): Update declaration.
3052
3053 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
3054
3055         * windows-nat.c (windows_get_absolute_argv0): Move from here...
3056         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3057         Include main.h.
3058
3059         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3060         here...
3061         * main.h (windows_get_absolute_argv0): ...to here.
3062
3063 2013-04-05  Doug Evans  <dje@google.com>
3064
3065         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3066         (read_cutu_die_from_dwo): Add comments.
3067         (read_structure_type): Update comment.
3068         (read_enumeration_type, read_namespace_type): Update comment.
3069         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3070
3071 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3072
3073         Convert man pages to texinfo, new gdbinit.5 texinfo page.
3074         * Makefile.in (gdb.z): Remove.
3075         (install-only): Remove $(man1dir) and gdb.1 installation.
3076         * gdb.1: Remove.
3077
3078 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3079
3080         Fix compatibility with Linux kernel 3.8.3.
3081         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3082         to more inner block.  Remove parsing of NUMBER from outer block.
3083         Parse NUMBER only if KEYWORD has been identified.
3084
3085 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3086
3087         Fix variable name shadowing.
3088         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3089         filename to mapsfilename and update its uses.
3090
3091 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
3092
3093         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3094         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3095         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3096         details of the problem.
3097
3098 2013-04-04  Pedro Alves  <palves@redhat.com>
3099             Hui Zhu  <hui@codesourcery.com>
3100
3101         * breakpoint.c (validate_commands_for_breakpoint): If validating a
3102         tracepoint, reset its STEP_COUNT and call validate_actionline.
3103
3104 2013-04-03  Doug Evans  <dje@google.com>
3105
3106         * dwarf2read.c (read_die_and_siblings_1): Renamed from
3107         read_die_and_siblings.
3108         (read_die_and_siblings): New function.
3109         (read_cutu_die_from_dwo): Dump die if requested.
3110         (read_die_and_children): Call read_full_die_1 and
3111         read_die_and_siblings_1.
3112         (read_full_die): Dump die if requested.
3113
3114         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3115
3116         * dwarf2read.c (struct dwo_file): New member comp_dir.
3117         Rename member name to dwo_name.  All uses updated.
3118         (hash_dwo_file): Include comp_dir in computation.
3119         (eq_dwo_file): Ditto.
3120         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
3121         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3122
3123         * psymtab.c (read_psymtabs_with_fullname): Don't call
3124         psymtab_to_fullname if the basenames are different.
3125
3126 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3127
3128         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3129         New entry about "fullname" presence.
3130
3131 2013-04-03  Pedro Alves  <palves@redhat.com>
3132
3133         * NEWS: Mention x86_64/Cygwin as new native configuration.
3134
3135 2013-04-02  Doug Evans  <dje@google.com>
3136
3137         * dwarf2read.c (read_structure_type): Fix typo in comment.
3138
3139 2013-04-02  Pedro Alves  <palves@redhat.com>
3140
3141         * NEWS: Mention "set/show debug aarch64", "set/show debug
3142         coff-pe-read" and "set/show debug mach-o".
3143
3144 2013-04-02  Pedro Alves  <palves@redhat.com>
3145
3146         * NEWS: Mention "set/show remote trace-buffer-size-packet".
3147
3148 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
3149
3150         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3151         gdb_string.h is now in common/.
3152
3153 2013-04-02  Pedro Alves  <palves@redhat.com>
3154
3155         * NEWS: Move "set debug notification" and "set trace-buffer-size"
3156         under "New options".
3157
3158 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3159
3160         Revert this patch:
3161         PR gdb/15275
3162         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3163
3164 2013-04-02  Pedro Alves  <palves@redhat.com>
3165
3166         PR gdb/15275
3167
3168         * remote.c (send_interrupt_sequence): Use remote_serial_write.
3169         (remote_serial_write): New function.
3170         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3171
3172 2013-04-01  Jiong Wang  <jiwang@tilera.com>
3173
3174         * NEWS: Mention TILE-Gx in "New native configurations" and
3175         "New targets" sections. 
3176
3177 2013-04-01  Doug Evans  <dje@google.com>
3178
3179         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3180         (process_enumeration_scope): Simplify.
3181
3182         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3183         type_unit_group ...
3184         (struct signatured_type): ... to here.
3185         (sig_type_ptr): New typedef.
3186         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
3187         out of union 't'.  All uses updated.
3188         (dw2_get_file_names_reader): Assert not called for a type unit.
3189         (dw2_get_file_names): Assert not called for a type unit or type
3190         unit group.
3191         (build_type_psymtabs_reader): Assert called for a type unit.
3192         (build_type_psymtab_dependencies): Assert called for a type unit group.
3193
3194         * dwarf2read.c (free_dwo_file): Add comment.
3195         (dwarf2_per_objfile_free): Unref dwp bfd.
3196
3197 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
3198
3199         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3200         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3201         (read_pe_exported_syms): Remove unused 'exportix'.
3202         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3203         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3204         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3205
3206 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
3207
3208         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3209         (print_it_watchpoint): Remove unused 'bl'.
3210         (say_where): Remove unused 'uiout'.
3211         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3212         (bkpt_breakpoint_hit): Remove unused 'b'.
3213         (internal_bkpt_print_it): Remove unused 'uiout'.
3214         * buildsym.c (augment_type_symtab): Remove unused 'i'.
3215
3216 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3217
3218         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3219         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3220
3221 2013-03-29  Doug Evans  <dje@google.com>
3222
3223         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3224         Delete arg is_dwp.  All callers updated.
3225         (open_dwp_file): New function.
3226         (open_and_init_dwp_file): Call it.
3227         (get_dwp_file): New function.
3228         (lookup_dwo_cutu): Call it.
3229
3230         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3231         unnecessary, cleanup.
3232
3233         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3234
3235         * dwarf2read.c (read_cutu_die_from_dwo): New function.
3236         (lookup_dwo_unit): New function.
3237         (init_cutu_and_read_dies): Move DWO handling to new functions.
3238
3239         * dwarf2read.c (struct signatured_type): Tweak comment.
3240         (struct dwo_unit): Tweak comment.
3241         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
3242         (create_dwo_debug_info_hash_table): Tweak comment.
3243         (dwarf2_per_cu_offset_and_type): Tweak comment.
3244
3245         * dwarf2read.c (lookup_signatured_type): Remove complaint about
3246         missing .debug_types section.
3247
3248 2013-03-29  Yao Qi  <yao@codesourcery.com>
3249
3250         * corelow.c: Include "completer.h".
3251         (_initialize_corelow): Call add_target_with_completer with
3252         argument 'filename_completer'.
3253         * tracepoint.c: Likewise.
3254         * exec.c (_initialize_exec): Likewise.
3255         * target.c (add_target): Rename to ...
3256         (add_target_with_completer): ... this.  Call set_cmd_completer
3257         if parameter completer is not NULL.
3258         (add_target): New.
3259         * target.h: Include "command.h".
3260         (add_target_with_completer): Declare it.
3261
3262 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
3263
3264         * coffread.c (is_import_fixup_symbol): New function.
3265         (record_minimal_symbol): Use is_import_fixup_symbol to
3266         detect import fixup symbols, and discard them.
3267
3268 2013-03-28  Doug Evans  <dje@google.com>
3269
3270         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3271         types hash table until we know we need it.
3272
3273         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3274         index numbers.
3275
3276         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3277         All callers updated.
3278         (dw2_print_stats): Print #read CUs too.
3279         (dump_die_shallow): Print signatured types better.
3280
3281         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3282         info_or_types_section to section.  All uses updated.
3283         (struct dwo_unit): Ditto.
3284
3285 2013-03-28  Pedro Alves  <palves@redhat.com>
3286
3287         * NEWS (New options): New section.
3288         (New options): Mention set/show remote trace-status-packet.
3289         * remote.c (PACKET_qTStatus): New enumeration value.
3290         (remote_get_trace_status): Skip sending qTStatus if the packet is
3291         disabled.  Use packet_ok.
3292         (_initialize_remote): Register a configuration command for
3293         qTStatus packet.
3294
3295 2013-03-28  Doug Evans  <dje@google.com>
3296
3297         * symfile.c (find_separate_debug_file): Add comment.
3298         (terminate_after_last_dir_separator): Tweak comment.
3299
3300         * dwarf2read.c (create_partial_symtab): Add forward decl.
3301         (create_partial_symtab): Move to be closer to other psymtab functions.
3302         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3303
3304         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3305         (compute_symtab_includes): Remove unnecessary forward declaration.
3306         (die_needs_namespace): Add comment marking group of functions for
3307         dwarf2 name computation.
3308
3309         * typeprint.c (_initialize_typeprint): Improve type help text.
3310
3311         * python/python.c (finish_python_initialization): Provide suggestion
3312         for how to tell gdb to find its python files.
3313
3314 2013-03-28  Pedro Alves  <palves@redhat.com>
3315
3316         PR gdb/15294
3317
3318         * source.c (_initialize_source): Change back "set listsize" to an
3319         integer command.
3320
3321 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
3322
3323         PR gdb/15275
3324         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3325
3326 2013-03-27  Pedro Alves  <palves@redhat.com>
3327
3328         * top.c (history_size): Rename to ...
3329         (history_size_setshow_var): ... this.  Add comment.
3330         (show_commands): Use readline's 'history_length' instead of
3331         computing the history length by calling history_get in a loop.
3332         (set_history_size_command): Error out for sizes over INT_MAX.
3333         Restore previous history size on invalid size.
3334         (init_history): If HISTSIZE is negative, leave the history size as
3335         zero.  Add comments.
3336         (init_main): Adjust.
3337
3338 2013-03-27  Pedro Alves  <palves@redhat.com>
3339
3340         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3341         coff_pe_read" command to "set debug coff-pe-read".
3342
3343 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
3344
3345         * record.c (command_size_to_target_size): Fix size comparison.
3346         Change parameter type from pointer to integer to integer.
3347         Update all users.
3348
3349 2013-03-27  Pierre Muller  <muller@sourceware.org>
3350
3351         * windows-nat.c (handle_output_debug_string): Avoid typecast
3352         from integer of different size warning.
3353
3354 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
3355
3356         * windows-nat.c (handle_output_debug_string): Add empty line
3357         after local block variable definition.
3358
3359 2013-03-26  Pedro Alves  <palves@redhat.com>
3360
3361         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3362         (net_open): Make 'polls' local unsigned.
3363
3364 2013-03-26  Pedro Alves  <palves@redhat.com>
3365
3366         * remote.c (_initialize_remote): Make "set remoteaddresssize"
3367         a zuinteger command instead of uinteger.
3368
3369 2013-03-26  Pedro Alves  <palves@redhat.com>
3370
3371         * record-full.c (record_full_insn_num): Make it unsigned.
3372         (record_full_check_insn_num, record_full_message)
3373         (record_full_registers_change, record_full_xfer_partial): Remove
3374         record_full_insn_max_num check (it's always != 0).
3375         (record_full_info, record_full_restore): Use %u as format string.
3376         (): Use %u as format string.
3377         (set_record_full_insn_max_num): Remove record_full_insn_max_num
3378         check (it's always != 0).
3379
3380 2013-03-26  Pedro Alves  <palves@redhat.com>
3381
3382         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3383         and "set dcache size" commands zuinteger instead of uinteger.
3384
3385 2013-03-26  Pedro Alves  <palves@redhat.com>
3386
3387         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3388         command zuinteger instead of uinteger.
3389
3390 2013-03-26  Pedro Alves  <palves@redhat.com>
3391
3392         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3393         zuinteger instead of uinteger.
3394
3395 2013-03-26  Pedro Alves  <palves@redhat.com>
3396
3397         * record.c (record_insn_history_size_setshow_var)
3398         (record_call_history_size_setshow_var): New globals.
3399         (command_size_to_target_size): New function.
3400         (cmd_record_insn_history, cmd_record_call_history): Use
3401         command_size_to_target_size instead of cast.
3402         (validate_history_size, set_record_insn_history_size)
3403         (set_record_call_history_size): New functions.
3404         (_initialize_record): Install set_record_insn_history_size and
3405         set_record_call_history_size as "set" hooks of "set record
3406         instruction-history-size" and "set record
3407         function-call-history-size".
3408
3409 2013-03-26  Pedro Alves  <palves@redhat.com>
3410
3411         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3412         use with history_max_entries use.  Remove FIXME note.
3413
3414 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
3415
3416         * record-btrace.c (record_btrace_close): Call
3417         record_btrace_auto_disable.
3418
3419 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
3420
3421         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3422
3423 2013-03-25  Doug Evans  <dje@google.com>
3424
3425         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3426
3427 2013-03-25  Tom Tromey  <tromey@redhat.com>
3428
3429         PR symtab/11462:
3430         * c-exp.y (exp): Add new productions for destructors after '.' and
3431         '->'.
3432         (write_destructor_name): New function.
3433
3434 2013-03-25  Tom Tromey  <tromey@redhat.com>
3435
3436         PR c++/9197:
3437         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3438         value_struct_elt, not lookup_struct_elt_type.
3439         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3440         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
3441         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
3442
3443 2013-03-25  Yao Qi  <yao@codesourcery.com>
3444
3445         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
3446         instead of '_mkdir'.
3447
3448 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
3449
3450         * windows-nat.c (windows_get_absolute_argv0): New function.
3451         * windows-nat.h: Add its prototype.
3452
3453         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
3454         Use IS_DIR_SEPARATOR instead of looking for a character inside
3455         SLASH_STRING.  Include filenames.h.
3456         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
3457         relocate_gdb_directory works when passed gdb_program_name.
3458         Include windows-nat.h.
3459
3460 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3461
3462         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
3463         * remote.c (trace_error): Remove the special handling of '2'.
3464         (readchar) <SERIAL_EOF>
3465         (readchar) <SERIAL_ERROR>
3466         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
3467         (remote_get_trace_status): Call throw_exception if EX is
3468         TARGET_CLOSE_ERROR.
3469         * utils.c (perror_with_name): Rename to ...
3470         (throw_perror_with_name): ... here.  New parameter errcode, describe it
3471         in the function comment.
3472         (perror_with_name): New function wrapper.
3473         * utils.h (enum errors): New stub declaration.
3474         (throw_perror_with_name): New declaration.
3475
3476 2013-03-22  Pedro Alves  <palves@redhat.com>
3477             Yao Qi  <yao@codesourcery.com>
3478             Mark Kettenis  <kettenis@gnu.org>
3479
3480         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
3481         Don't let the user set the value to UINT_MAX directly.
3482         <var_integer>: Don't let the user set the value to INT_MAX
3483         directly.
3484
3485 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3486
3487         * remote.c (remote_unpush_target): New function.
3488         (remote_open_1): Remove two pop_target calls, update one comment, add
3489         comment to target_preopen call.  Replace pop_target call by
3490         remote_unpush_target call.
3491         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
3492         pop_target calls by remote_unpush_target calls.
3493
3494 2013-03-22  Pedro Alves  <palves@redhat.com>
3495
3496         * linux-nat.c (linux_child_follow_fork): Don't call
3497         linux_enable_event_reporting.
3498         (linux_handle_extended_wait): Don't call
3499         linux_enable_event_reporting.
3500
3501 2013-03-22  Pedro Alves  <palves@redhat.com>
3502
3503         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
3504         use it to rewrite the trampoline buffers with type gdb_byte[], and
3505         undefine the macro.  Remove char* cast.
3506
3507 2013-03-21  Doug Evans  <dje@google.com>
3508
3509         New commands "mt set per-command {space,time,symtab} {on,off}".
3510         * NEWS: Add entry.
3511         * event-top.c: #include "maint.h".
3512         * main.c: #include "maint.h".
3513         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3514         timeval-utils.h, maint.h, cli/cli-setshow.h.
3515         (per_command_time, per_command_space): New static globals.
3516         (per_command_symtab): New static global.
3517         (per_command_setlist, per_command_showlist): New static globals.
3518         (struct cmd_stats): Move here from utils.c.
3519         (set_per_command_time): Renamed from set_display_time in utils.c
3520         and moved here.  All callers updated.
3521         (set_per_command_space): Renamed from set_display_space in utils.c
3522         and moved here.  All callers updated.
3523         (count_symtabs_and_blocks): New function.
3524         (report_command_stats): Moved here from utils.c.  Add support for
3525         printing symtab stats.  Only print data if enabled before command
3526         executed.
3527         (make_command_stats_cleanup): Ditto.
3528         (sert_per_command_cmd, show_per_command_cmd): New functions.
3529         (_initialize_maint_cmds): Add new commands
3530         mt set per-command {space,time,symtab} {on,off}.
3531         * maint.h: New file.
3532         * top.c: #include "maint.h".
3533         * utils.c (reset_prompt_for_continue_wait_time): New function.
3534         (get_prompt_for_continue_wait_time): New function.
3535         * utils.h (reset_prompt_for_continue_wait_time): Declare
3536         (get_prompt_for_continue_wait_time): Declare.
3537         (make_command_stats_cleanup): Moved to maint.h.
3538         (set_display_time, set_display_space): Moved to maint.h and renamed
3539         to set_per_command_time, set_per_command_space.
3540         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3541         parse_binary_operation and made non-static.  Don't call error,
3542         just return an error marker.  All callers updated.
3543         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3544
3545 2013-03-21  Tom Tromey  <tromey@redhat.com>
3546
3547         * symfile.c (alloc_section_addr_info): Update header.  Don't set
3548         'num_sections' field.
3549         (build_section_addr_info_from_section_table): Set 'num_sections'.
3550         (build_section_addr_info_from_bfd): Likewise.
3551         (build_section_addr_info_from_objfile): Remove dead loop
3552         condition.
3553         (free_section_addr_info): Unconditionally call xfree.
3554         (relative_addr_info_to_section_offsets, addrs_section_sort)
3555         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3556         condition.
3557         (syms_from_objfile_1): Remove dead 'if' condition.  Check
3558         'num_sections'.
3559         (add_symbol_file_command): Set 'num_sections'.
3560         * symfile-mem.c (symbol_file_add_from_memory): Set
3561         'num_sections'.
3562         * somread.c (som_symfile_offsets): Remove dead loop condition.
3563         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3564         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3565
3566 2013-03-21  Tom Tromey  <tromey@redhat.com>
3567
3568         * tracepoint.h (decode_agent_options): Add 'trace_string'
3569         argument.
3570         * tracepoint.c (decode_agent_options): Add 'trace_string'
3571         argument.
3572         (validate_actionline): Update.
3573         (collect_symbol): Add 'trace_string' argument.
3574         (struct add_local_symbols_data) <trace_string>: New field.
3575         (do_collect_symbol): Update.
3576         (add_local_symbols): Add 'trace_string' argument.
3577         (encode_actions_1): Update.
3578         (trace_dump_actions): Update.
3579         * dwarf2loc.c (access_memory): Update.
3580         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3581         * ax-general.c (new_agent_expr): Update.
3582         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3583         (gen_trace_for_return_address): Add argument.
3584         (trace_kludge, trace_string_kludge): Remove.
3585         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3586         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3587         (gen_trace_for_var): Add 'trace_string' argument.
3588         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3589         (gen_printf, agent_eval_command_one): Update.
3590
3591 2013-03-21  Tom Tromey  <tromey@redhat.com>
3592
3593         PR exp/15109:
3594         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3595         Handle FILENAME token.
3596
3597 2013-03-21  Tom Tromey  <tromey@redhat.com>
3598
3599         * c-exp.y (YYPRINT): Define.
3600         (c_print_token): New function.
3601
3602 2013-03-21  Tom Tromey  <tromey@redhat.com>
3603
3604         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3605
3606 2013-03-21  Yao Qi  <yao@codesourcery.com>
3607
3608         * ctf.c: Include "gdb_stat.h".
3609         [USE_WIN32API]: New macro 'mkdir'.
3610         (ctf_start): Use permission bits macros if they are defined.
3611
3612 2013-03-20  Keith Seitz  <keiths@redhat.com>
3613
3614         * breakpoint.h (struct breakpoint): Add comment to
3615         extra_string indicating that this member is mallod'd.
3616         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3617
3618 2013-03-20  Pedro Alves  <palves@redhat.com>
3619
3620         PR gdb/15289
3621
3622         * cli/cli-setshow.c (do_set_command)
3623         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3624         the result of parsing the command argument.  Throw error if the
3625         value is greater than UINT_MAX.  Print the invalid value with
3626         plongest.
3627         <var_integer, var_zinteger>: Use LONGEST for variable holding the
3628         result of parsing the command argument.  Throw error if the value
3629         is greater than INT_MAX, not greater or equal.  Also throw error
3630         if the value is less than INT_MIN.  Print the invalid value with
3631         plongest.
3632         <var_zuinteger_unlimited>: Throw error if the value is greater
3633         than INT_MAX, not greater or equal.
3634         (do_show_command) <var_integer, var_zinteger,
3635         var_zuinteger_unlimited>: Use %d for printing int, not %u.
3636
3637 2013-03-20  Tom Tromey  <tromey@redhat.com>
3638
3639         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3640         if possible.
3641         * dwarf2read.c (read_func_scope): Remove old FIXME.
3642         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3643         not LOC_COMPUTED.
3644         * findvar.c (symbol_read_needs_frame, default_read_var_value):
3645         Unconditionally call via computed ops, if possible.
3646         * printcmd.c (address_info): Unconditionally call via computed ops,
3647         if possible.
3648         * stack.c (read_frame_arg): Unconditionally call via computed ops,
3649         if possible.
3650         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3651         * tracepoint.c (scope_info): Unconditionally call via computed ops,
3652         if possible.
3653
3654 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3655             Tom Tromey  <tromey@redhat.com>
3656
3657         PR symtab/8421:
3658         * coffread.c (coff_register_index): New global.
3659         (process_coff_symbol, coff_read_enum_type): Set
3660         SYMBOL_ACLASS_INDEX.
3661         (_initialize_coffread): Initialize new global.
3662         * dwarf2loc.c (locexpr_find_frame_base_location)
3663         (dwarf2_block_frame_base_locexpr_funcs)
3664         (loclist_find_frame_base_location)
3665         (dwarf2_block_frame_base_loclist_funcs): New.
3666         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3667         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3668         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3669         (dwarf2_block_frame_base_loclist_funcs): New.
3670         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3671         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3672         globals.
3673         (read_func_scope): Update.
3674         (fixup_go_packaging, mark_common_block_symbol_computed)
3675         (var_decode_location, new_symbol_full, dwarf2_const_value):
3676         Set SYMBOL_ACLASS_INDEX.
3677         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
3678         (_initialize_dwarf2_read): Initialize new globals.
3679         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3680         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3681         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3682         globals.
3683         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3684         (_initialize_mdebugread): Initialize new globals.
3685         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3686         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3687         (stab_register_index, stab_regparm_index): New globals.
3688         (define_symbol, read_enum_type, common_block_end): Set
3689         SYMBOL_ACLASS_INDEX.
3690         (_initialize_stabsread): Initialize new globals.
3691         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3692         globals.
3693         (MAX_SYMBOL_IMPLS): New define.
3694         (register_symbol_computed_impl, register_symbol_block_impl)
3695         (register_symbol_register_impl)
3696         (initialize_ordinary_address_classes): New functions.
3697         (_initialize_symtab): Call initialize_ordinary_address_classes.
3698         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3699         (struct symbol_impl): New.
3700         (SYMBOL_ACLASS_BITS): New define.
3701         (struct symbol) <aclass, ops>: Remove fields.
3702         <aclass_index>: New field.
3703         (symbol_impls): Declare.
3704         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3705         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3706         (register_symbol_computed_impl, register_symbol_block_impl)
3707         (register_symbol_register_impl): Declare.
3708         (struct symbol_computed_ops): Add location_has_loclist.
3709         (struct symbol_block_ops): New.
3710         (SYMBOL_BLOCK_OPS): New.
3711         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3712
3713 2013-03-20  Tom Tromey  <tromey@redhat.com>
3714
3715         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3716         (print_partial_symbols, recursively_search_psymtabs): Use
3717         PSYMBOL_CLASS.
3718
3719 2013-03-20  Pierre Muller  <muller@sourceware.org>
3720
3721         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3722         addtion, subtraction, multiplication and division binary operator.
3723
3724 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3725
3726         Code cleanup.
3727         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3728         * bsd-kvm.c (bsd_kvm_close): Likewise.
3729         * bsd-uthread.c (bsd_uthread_close): Likewise.
3730         * corelow.c (core_close): Likewise.
3731         (core_close_cleanup): Remove parameter quitting from a caller.
3732         * event-top.c (async_disconnect): Likewise.
3733         * exec.c (exec_close_1): Remove parameter quitting.
3734         * go32-nat.c (go32_close): Likewise.
3735         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
3736         parameter quitting from a caller.
3737         * mips-linux-nat.c (super_close): Remove parameter quitting from the
3738         variable.
3739         (mips_linux_close): Remove parameter quitting.  Remove parameter
3740         quitting from a caller.
3741         * monitor.c (monitor_close): Remove parameter quitting.
3742         * monitor.h (monitor_close): Likewise.
3743         * record-btrace.c (record_btrace_close): Likewise.
3744         * record-full.c (record_full_close): Likewise.
3745         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
3746         it also from fprintf_unfiltered.
3747         * remote-mips.c (mips_close): Remove parameter quitting.
3748         (mips_detach): Remove parameter quitting from a caller.
3749         * remote-sim.c (gdbsim_close): Remove parameter quitting.
3750         (gdbsim_close): Remove duplicate function comment.  Remove parameter
3751         quitting and remove it also from printf_filtered.
3752         * remote.c (remote_close): Remove parameter quitting.
3753         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
3754         * target.c (update_current_target): Remove parameter int from to_close
3755         de_fault.
3756         (push_target, unpush_target, pop_target): Remove parameter quitting from
3757         a caller.
3758         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
3759         Remove parameter quitting from a caller.
3760         (target_preopen): Remove parameter quitting from a caller.
3761         (target_close): Remove parameter quitting.  Remove parameter quitting
3762         from a caller two times.  Remove parameter quitting also from
3763         fprintf_unfiltered.
3764         * target.h (struct target_ops): Remove parameter quitting and as int
3765         from fields to_xclose and to_close.
3766         (extern struct target_ops current_target):
3767         (target_close, pop_all_targets): Remove parameter quitting.  Update the
3768         comment.
3769         (pop_all_targets_above): Remove parameter quitting.
3770         * top.c (quit_target): Remove parameter quitting from a caller.
3771         * tracepoint.c (tfile_close): Remove parameter quitting.
3772         * windows-nat.c (windows_close): Remove parameter quitting.
3773
3774 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
3775
3776         * windows-nat.c (handle_output_debug_string): Replace call
3777         to string_to_core_addr with call to strtoull.
3778
3779 2013-03-20  Yao Qi  <yao@codesourcery.com>
3780
3781         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
3782         and write it to CTF metadata.
3783
3784 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
3785
3786         * windows-nat.c (handle_output_debug_string): Change type of n to
3787         SIZE_T to avoid crash on 64 bit systems.
3788
3789 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
3790
3791         * python/python-internal.h (HAVE_SNPRINTF)
3792         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
3793         about redefinition of snprintf by pyerrors.h.
3794
3795 2013-03-15  Steve Ellcey  <sellcey@mips.com>
3796
3797         * remote-sim.c (sim_command_completer): Make char arguments const.
3798
3799 2013-03-15  Tom Tromey  <tromey@redhat.com>
3800
3801         PR c++/15116:
3802         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
3803
3804 2013-03-14  Tom Tromey  <tromey@redhat.com>
3805
3806         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
3807         New fields.
3808         (get_file_crc): Move from symfile.c.
3809         (gdb_bfd_crc): New function.
3810         * gdb_bfd.h (gdb_bfd_crc): Declare.
3811         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
3812         * symfile.c (get_file_crc): Move to gdb_bfd.c.
3813         (separate_debug_file_exists): Use gdb_bfd_crc.
3814
3815 2013-03-14  Tom Tromey  <tromey@redhat.com>
3816
3817         * symfile.c (get_debug_link_info): Remove.
3818         (find_separate_debug_file_by_debuglink): Use
3819         bfd_get_debug_link_info.
3820
3821 2013-03-14  Tom Tromey  <tromey@redhat.com>
3822
3823         * symtab.c (error_in_psymtab_expansion): New function.
3824         (lookup_symbol_aux_quick)
3825         (basic_lookup_transparent_type_quick): Remove "last resort"
3826         code.  Use error_in_psymtab_expansion.
3827
3828 2013-03-14  Doug Evans  <dje@google.com>
3829             Jan Kratochvil  <jan.kratochvil@redhat.com>
3830
3831         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
3832         any successful compare_filenames_for_search or FILENAME_CMP.
3833         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3834         * symtab.c (iterate_over_some_symtabs): Likewise.
3835
3836 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3837
3838         * source.c (print_source_lines_base): Make a local copy of
3839         symtab_to_fullname.
3840
3841 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
3842             Jan Kratochvil  <jan.kratochvil@redhat.com>
3843
3844         * source.c (print_source_lines_base): Suppress "file" for TUI.
3845
3846 2013-03-14  Keith Seitz  <keiths@redhat.com>
3847             Alan Matsuoka  <alanm@redhat.com>
3848
3849         PR c++/15203
3850         PR c++/15210
3851         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
3852         TYPE_CODE_METHOD.
3853         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
3854         symbols.
3855
3856 2013-03-14  Yao Qi  <yao@codesourcery.com>
3857
3858         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
3859         status to tfile if trace is stopped by command 'tstop'.
3860
3861 2013-03-14  Yao Qi  <yao@codesourcery.com>
3862
3863         * tracepoint.c (tfile_write_status): Write trace notes and user
3864         name into tfile if they are not NULL.
3865
3866 2013-03-14  Hui Zhu  <hui@codesourcery.com>
3867             Yao Qi  <yao@codesourcery.com>
3868
3869         * Makefile.in (REMOTE_OBS): Add ctf.o.
3870         (SFILES): Add ctf.c.
3871         (HFILES_NO_SRCDIR): Add ctf.h.
3872         * ctf.c, ctf.h: New files.
3873         * tracepoint.c: Include 'ctf.h'.
3874         (collect_pseudocommand): Remove static.
3875         (trace_save_command): Parse option "-ctf".
3876         Produce different trace file writers per option.
3877         Adjust output message.
3878         (trace_save_tfile, trace_save_ctf): New.
3879         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
3880         * mi/mi-main.c: Include 'ctf.h'.
3881         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
3882         trace_save_tfile or trace_save_ctf.
3883         * NEWS: Mention these changes.
3884
3885 2013-03-14  Yao Qi  <yao@codesourcery.com>
3886
3887         * tracepoint.c (trace_file_writer_xfree): New.
3888         (struct tfile_writer_data): New.
3889         (tfile_dtor, tfile_can_target_save, tfile_start): New.
3890         (tfile_write_header, tfile_write_regblock_type): New.
3891         (tfile_write_status, tfile_write_uploaded_tsv): New.
3892         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
3893         (tfile_write_raw_data, (tfile_end): New.
3894         (tfile_write_ops): New global variable.
3895         (TRACE_WRITE_R_BLOCK): New macro.
3896         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
3897         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
3898         (TRACE_WRITE_V_BLOCK): New macro.
3899         (trace_save): Add extra one parameter WRITER.  Make it static.
3900         Use WRITER to writer trace.
3901         (tfile_trace_file_writer_new): New.
3902         (trace_save_command): Caller update.
3903         (trace_save_tfile): Write trace data in TFILE format.
3904         * tracepoint.h (struct trace_frame_write_ops): New.
3905         (struct trace_file_write_ops): New.
3906         (struct trace_file_writer): New.
3907         (trace_save): Remove its declaration.
3908         (trace_save_tfile): Declare it.
3909         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
3910         instead of trace_save.
3911
3912 2013-03-13  Pedro Alves  <palves@redhat.com>
3913
3914         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
3915
3916 2013-03-13  Pedro Alves  <palves@redhat.com>
3917
3918         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
3919         commented out code.
3920         * demangle.c (current_demangling_style_string): Make it const.
3921         (set_demangling_command): Assert the demangling style is known.
3922         Remove all handling of unknown styles.  Set
3923         'current_demangling_style_string' to an element of the
3924         demangling_style_names array.
3925         (set_demangling_style): Delete.
3926         (_initialize_demangler): Set current_demangling_style_string to the
3927         element of the demangling_style_names array that corresponds to
3928         the default demangling style.  Remove FIXME note.  Don't call
3929         set_demangling_style.
3930         * gdb-demangle.h (set_demangling_style): Remove declaration.
3931
3932 2013-03-13  Pedro Alves  <palves@redhat.com>
3933
3934         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
3935         fields const.
3936         (ada_make_symbol_completion_list): Make "text0" parameter const.
3937         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
3938         * breakpoint.c (condition_completer): Make "text" and "word"
3939         parameters const.  Adjust.
3940         (check_tracepoint_command): Adjust to validate_actionline
3941         prototype change.
3942         (catch_syscall_completer): Make "text" and "word" parameters
3943         const.
3944         * cli/cli-cmds.c (show_user): Make "comname" local const.
3945         (valid_command_p): Make "command" parameter const.
3946         (alias_command): Make "alias_prefix" and "command_prefix" locals
3947         const.
3948         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
3949         (add_alias_cmd): Make "name" and "oldname" parameters const.
3950         Adjust.  No longer make copy of OLDNAME.
3951         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
3952         (add_setshow_cmd_full, add_setshow_enum_cmd)
3953         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3954         (add_setshow_filename_cmd, add_setshow_string_cmd)
3955         (add_setshow_string_noescape_cmd)
3956         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3957         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3958         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
3959         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
3960         Make "name" parameter const.
3961         (help_cmd): Rename "command" parameter to "arg".  New const local
3962         "command".
3963         (find_cmd): Make "command" parameter const.
3964         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
3965         deprecated_cmd_warning prototype change.
3966         (undef_cmd_error): Make "cmdtype" parameter const.
3967         (lookup_cmd): Make "line" parameter const.
3968         (deprecated_cmd_warning): Change type of "text" parameter to
3969         pointer to const char, from pointer to pointer to char.  Adjust.
3970         (lookup_cmd_composition): Make "text" parameter const.
3971         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3972         parameters const.
3973         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3974         const.
3975         * cli/cli-script.c (validate_comname): Make "tem" local const.
3976         (define_command): New const local "tem_c".  Use it in calls to
3977         lookup_cmd.
3978         (document_command): Make "tem" and "comfull" locals const.
3979         (show_user_1): Make "prefix" and "name" parameters const.
3980         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3981         const.
3982         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3983         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3984         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3985         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3986         (complete_on_enum, add_setshow_enum_cmd)
3987         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3988         (add_setshow_filename_cmd, add_setshow_string_cmd)
3989         (add_setshow_string_noescape_cmd)
3990         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3991         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3992         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3993         Change prototypes, constifying strings.
3994         * completer.c (noop_completer, filename_completer): Make "text"
3995         and "prefix" parameters const.
3996         (location_completer, expression_completer)
3997         (complete_line_internal): Make "text" and "prefix" parameters
3998         const and adjust.
3999         (command_completer, signal_completer): Make "text" and "prefix"
4000         parameters const.
4001         * completer.h (noop_completer, filename_completer)
4002         (expression_completer, location_completer, command_completer)
4003         (signal_completer): Change prototypes.
4004         * corefile.c (complete_set_gnutarget): Make "text" and "word"
4005         parameters const.
4006         * cp-abi.c (cp_abi_completer): Likewise.
4007         * expression.h (parse_expression_for_completion): Change
4008         prototype.
4009         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
4010         parameters const.
4011         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
4012         * infrun.c (handle_completer): Make "text" and "word" parameters
4013         const.
4014         * interps.c (interpreter_completer): Make "text" and "word"
4015         parameters const.
4016         * language.h (struct language_defn)
4017         <la_make_symbol_completion_list>: Make "text" and "word"
4018         parameters const.
4019         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
4020         (parse_exp_in_context): Rename to ...
4021         (parse_exp_in_context_1): ... this.
4022         (parse_exp_in_context): Reimplement, with const hack from
4023         parse_exp_1.
4024         (parse_expression_for_completion): Make "string" parameter const.
4025         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
4026         to pointer to const char.  Adjust.
4027         (print_command_1): Make "exp" parameter const.
4028         (output_command): Rename to ...
4029         (output_command_const): ... this.  Make "exp" parameter const.
4030         (output_command): Reimplement.
4031         (x_command): Adjust.
4032         (display_command): Rename "exp" parameter to "arg".  New "exp"
4033         local, const version of "arg".
4034         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
4035         "cmd_name" local const.
4036         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
4037         call.
4038         (cmdpy_completer): Make "text" and "word" parameters const.
4039         (gdbpy_parse_command_name): Make "prefix_text2" local const.
4040         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4041         const.
4042         * remote.c (_initialize_remote): Make "cmd_name" local const.
4043         * symtab.c (language_search_unquoted_string): Make "text" and "p"
4044         parameters const.  Adjust.
4045         (completion_list_add_fields): Make "sym_text", "text" and "word"
4046         parameters const.
4047         (struct add_name_data) <sym_text, text, word>: Make fields const.
4048         (default_make_symbol_completion_list_break_on): Make "text" and
4049         "word" parameters const.  Adjust locals.
4050         (default_make_symbol_completion_list)
4051         (make_symbol_completion_list, make_symbol_completion_type)
4052         (make_symbol_completion_list_fn): Make "text" and "word"
4053         parameters const.
4054         (make_file_symbol_completion_list): Make "text", "word" and
4055         "srcfile" parameters const.  Adjust locals.
4056         (add_filename_to_list): Make "text" and "word" parameters const.
4057         (struct add_partial_filename_data) <text, word>: Make fields
4058         const.
4059         (make_source_files_completion_list): Make "text" and "word"
4060         parameters const.
4061         * symtab.h (default_make_symbol_completion_list_break_on)
4062         (default_make_symbol_completion_list, make_symbol_completion_list)
4063         (make_symbol_completion_type enum type_code)
4064         (make_symbol_completion_list_fn make_file_symbol_completion_list)
4065         (make_source_files_completion_list): Change prototype.
4066         * top.c (execute_command): Adjust to pass pointer to pointer to
4067         const char to lookup_cmd, and to deprecated_cmd_warning prototype
4068         change.
4069         (set_verbose): Make "cmdname" local const.
4070         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4071         and adjust.
4072         (validate_actionline): Make "line" parameter a pointer to const
4073         char, and adjust.
4074         (encode_actions_1): Make "action_exp" local const, and adjust.
4075         (encode_actions): Adjust.
4076         (replace_comma): Delete.
4077         (trace_dump_actions): Make "action_exp" and "next_comma" locals
4078         const, and adjust.  Don't frob the action string while splitting
4079         it at commas.  Instead, make a copy of each split substring in
4080         turn.
4081         (trace_dump_command): Adjust to validate_actionline prototype
4082         change.
4083         * tracepoint.h (decode_agent_options, decode_agent_options)
4084         (encode_actions, validate_actionline): Change prototypes.
4085         * valprint.h (output_command): Delete declaration.
4086         (output_command_const): Declare.
4087         * value.c (function_destroyer): Cast const away in xfree call.
4088
4089 2013-03-13  Pedro Alves  <palves@redhat.com>
4090
4091         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4092         rather than casting 'const char * const *' to 'const char **'.
4093         * ada-lex.l (processInt): Make "trailer" local const.  Remove
4094         'const char **' cast.
4095         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4096         locals, and use those as strtol output pointer, instead than doing
4097         invalid casts to from 'const char **' to 'char **'.
4098         (_initialize_demangle): Remove cast.
4099         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4100         locals, and use those as strtol output pointer, instead than doing
4101         invalid casts to from 'const char **' to 'char **'.
4102         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4103         casts.
4104         * stap-probe.c (stap_parse_register_operand)
4105         (stap_parse_single_operand): Likewise.
4106
4107 2013-03-13  Yao Qi  <yao@codesourcery.com>
4108
4109         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4110         the last matched 'V' blcok in trace frame.
4111
4112 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
4113
4114         * NEWS: Create a new section for the next release branch.
4115         Rename the section of the current branch, now that it has
4116         been cut.
4117
4118 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
4119
4120         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4121         * version.in: Bump version to 7.6.50.20130312-cvs.
4122
4123 2013-03-12  Keith Seitz  <keiths@redhat.com>
4124
4125         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4126         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4127         Remove temporary copy of input string.
4128         (mi_execute_command_wrapper): Make "cmd" const.
4129         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4130         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4131         Use const strings.
4132         (mi_parse): Make "cmd" const.
4133         Use const strings.
4134         * mi/mi-parse.h (mi_parse): Make "cmd" const.
4135
4136 2013-03-12  Keith Seitz  <keiths@redhat.com>
4137
4138         * ada-lang.c (ada_read_renaming_var_value): Pass const
4139         pointer to expression string to parse_exp_1.
4140         (create_excep_cond_exprs): Likewise.
4141         * ax-gdb.c (agent_eval_command_one): Likewise.
4142         (maint_agent_printf_command): Likewise.
4143         Constify much of the string handling/parsing.
4144         * breakpoint.c (set_breakpoint_condition): Pass const
4145         pointer to expression string to parse_exp_1.
4146         (update_watchpoint): Likewise.
4147         (parse_cmd_to_aexpr): Constify string handling.
4148         Pass const pointer to parse_exp_1.
4149         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4150         (find_condition_and_thread): Likewise.
4151         Make TOK const.
4152         (watch_command_1): Make "arg" const.
4153         Constify string handling.
4154         Copy the expression string instead of changing the input
4155         string.
4156         (update_breakpoint_location): Pass const pointer to
4157         parse_exp_1.
4158         * eval.c (parse_and_eval_address): Make "exp" const.
4159         (parse_to_comma_and_eval): Make "expp" const.
4160         (parse_and_eval): Make "exp" const.
4161         * expression.h (parse_expression): Make argument const.
4162         (parse_exp_1): Make first argument const.
4163         * findcmd.c (parse_find_args): Treat "args" as const.
4164         * linespec.c (parse_linespec): Pass const pointer to
4165         linespec_expression_to_pc.
4166         (linespec_expression_to_pc): Make "exp_ptr" const.
4167         * parse.c (parse_exp_1): Make "stringptr" const.
4168         Make a copy of the expression to pass to parse_exp_in_context until
4169         this whole interface can be constified.
4170         (parse_expression): Make "string" const.
4171         * printcmd.c (ui_printf): Treat "arg" as const.
4172         Handle const strings.
4173         * tracepoint.c (validate_actionline): Pass const pointer to
4174         all calls to parse_exp_1.
4175         (encode_actions_1): Likewise.
4176         * value.h (parse_to_comma_and_eval): Make argument const.
4177         (parse_and_eval_address): Likewise.
4178         (parse_and_eval): Likewise.
4179         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4180         (varobj_set_value): Likewise.
4181         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4182         constify string handling.
4183         Pass const pointers to parse_and_eval_address and
4184         parse_to_comman_and_eval.
4185         * cli/cli-utils.c (skip_to_space): Rename to ...
4186         (skip_to_space_const): ... this. Handle const strings.
4187         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4188         skip_to_space_const.
4189         (skip_to_space_const): Declare.
4190         * common/format.c (parse_format_string): Make "arg" const.
4191         Handle const strings.
4192         * common/format.h (parse_format_string): Make "arg" const.
4193         * gdbserver/ax.c (ax_printf): Make "format" const.
4194         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4195         of the expression string.
4196
4197 2013-03-12  Hui Zhu  <hui@codesourcery.com>
4198
4199         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4200
4201 2013-03-12  Yao Qi  <yao@codesourcery.com>
4202             Hui Zhu  <hui@codesourcery.com>
4203
4204         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4205         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4206         DW_OP_deref_size.
4207
4208 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
4209
4210         * ada-lex.l (rules): Only recognize 'thread' as a
4211         delimiter when followed by numerals, as for c-exp.y.
4212         Use new rewind_to_char function to rewind the input for
4213         expression-delimiting tokens.
4214         (rewind_to_char): New function.
4215
4216 2013-03-11  Pedro Alves  <palves@redhat.com>
4217             Jan Kratochvil  <jan.kratochvil@redhat.com>
4218
4219         * configure: Regenerate.
4220         * configure.ac (check dynamic export flag): Link python test with
4221         $PYTHON_LIBS.
4222
4223 2013-03-11  Doug Evans  <dje@google.com>
4224             Keith Seitz  <keiths@redhat.com>
4225
4226         * linespec.c (find_linespec_symbols): Call find_function_symbols
4227         first, and then call lookup_prefix_sym/find_method.
4228
4229 2013-03-11  Pedro Alves  <palves@redhat.com>
4230
4231         * charset.c (convert_between_encodings): Don't cast between
4232         different pointer to pointer types.  Instead, make the 'inp' local
4233         be of the type iconv expects.
4234         (wchar_iterate): Don't cast between different pointer to pointer
4235         types.  Instead, use new pointer local of the type iconv expects.
4236         * target.c (target_read_stralloc, target_fileio_read_stralloc):
4237         Add new local of type char pointer, and use it to get a
4238         char/string view of the byte buffer, instead of casting between
4239         pointer to pointer types.
4240
4241 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4242
4243         * remote.c (remote_set_trace_buffer_size): Move != operator
4244         to the start of next line to fix an ARI warning.
4245
4246 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4247
4248         * NEWS: Add record changes.
4249
4250 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4251
4252         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4253         the instruction history disassembly.
4254         * disasm.c (dump_insns): Omit the pc prefix, if requested.
4255         * disasm.h (DISASSEMBLY_OMIT_PC): New.
4256
4257 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4258
4259         * Makefile.in (SFILES): Add record-btrace.c
4260         (COMMON_OBS): Add record-btrace.o
4261         * record-btrace.c: New.
4262         * objfiles.c: Include btrace.h.
4263         (free_objfile): call btrace_free_objfile.
4264
4265 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4266
4267         * target.c (target_call_history, target_call_history_from,
4268         target_call_history_range): New.
4269         * target.h (target_ops) <to_call_history, to_call_history_from,
4270         to_call_history_range>: New fields.
4271         (target_call_history, target_call_history_from,
4272         target_call_history_range): New declaration.
4273         * record.c (get_call_history_modifiers, cmd_record_call_history,
4274         record_call_history_size): New.
4275         (_initialize_record): Add the "record function-call-history" command.
4276         Add "set/show record function-call-history-size" commands.
4277         * record.h (record_print_flag): New.
4278
4279 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4280
4281         * target.h (target_ops) <to_insn_history, to_insn_history_from,
4282         to_insn_history_range>: New fields.
4283         (target_insn_history): New.
4284         (target_insn_history_from): New.
4285         (target_insn_history_range): New.
4286         * target.c (target_insn_history): New.
4287         (target_insn_history_from): New.
4288         (target_insn_history_range): New.
4289         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4290         (record_insn_history_size): New.
4291         (get_insn_number): New.
4292         (get_context_size): New.
4293         (no_chunk): New.
4294         (get_insn_history_modifiers): New.
4295         (cmd_record_insn_history): New.
4296         (_initialize_record): Add "set/show record instruction-history-size"
4297         command. Add "record instruction-history" command.
4298
4299 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4300
4301         * record.h (record_disconnect): New.
4302         (record_detach): New.
4303         (record_mourn_inferior): New.
4304         (record_kill): New.
4305         * record-full.c (record_disconnect, record_detach,
4306         record_mourn_inferior, record_kill): Move to...
4307         * record.c: ...here.
4308         (DEBUG): New.
4309         (record_stop): New.
4310         (record_unpush): New.
4311         (cmd_record_stop): Call record_stop. Replace unpush_target
4312         call with record_unpush call.
4313         (record_disconnect, record_detach): Assert that the target
4314         is of record stratum. Call record_unpush, record_stop, and
4315         DEBUG.
4316         (record_mourn_inferior, record_kill): Assert that the target
4317         is of record stratum. Call record_unpush and DEBUG.
4318
4319 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4320
4321         * record-full.h, record-full.c (record_memory_query): Rename
4322         to ...
4323         (record_full_memory_query): ...this. Update all users.
4324         (record_arch_list_add_reg): Rename to ...
4325         (record_full_arch_list_add_reg): ...this. Update all users.
4326         (record_arch_list_add_mem): Rename to ...
4327         (record_full_arch_list_add_mem): ...this. Update all users.
4328         (record_arch_list_add_end): Rename to ...
4329         (record_full_arch_list_add_end): ...this. Update all users.
4330         (record_gdb_operation_disable_set): Rename to ...
4331         (record_full_gdb_operation_disable_set): ...this.
4332         Update all users.
4333
4334 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4335
4336         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4337         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4338         (RECORD_IS_REPLAY): Renamed to ...
4339         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4340         (RECORD_FILE_MAGIC): Renamed to ...
4341         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4342         (record_mem_entry): Renamed to ...
4343         (record_full_mem_entry): ... this. Updated all users.
4344         (record_reg_entry): Renamed to ...
4345         (record_full_reg_entry): ... this. Updated all users.
4346         (record_end_entry): Renamed to ...
4347         (record_full_end_entry): ... this. Updated all users.
4348         (record_type) <record_end, record_reg, record_mem>: Renamed
4349         to ...
4350         (record_full_type) <record_full_end, record_full_reg,
4351         record_full_mem>: ... this. Updated all users.
4352         (record_entry): Renamed to ...
4353         (record_full_entry): ... this. Updated all users.
4354         (record_core_buf_entry): Renamed to ...
4355         (record_full_core_buf_entry): ... this. Updated all users.
4356         (record_core_regbuf): Renamed to ...
4357         (record_full_core_regbuf): ... this. Updated all users.
4358         (record_core_start): Renamed to ...
4359         (record_full_core_start): ... this. Updated all users.
4360         (record_core_end): Renamed to ...
4361         (record_full_core_end): ... this. Updated all users.
4362         (record_core_buf_list): Renamed to ...
4363         (record_full_core_buf_list): ... this. Updated all users.
4364         (record_first): Renamed to ...
4365         (record_full_first): ... this. Updated all users.
4366         (record_list): Renamed to ...
4367         (record_full_list): ... this. Updated all users.
4368         (record_arch_list_head): Renamed to ...
4369         (record_full_arch_list_head): ... this. Updated all users.
4370         (record_arch_list_tail): Renamed to ...
4371         (record_full_arch_list_tail): ... this. Updated all users.
4372         (record_stop_at_limit): Renamed to ...
4373         (record_full_stop_at_limit): ... this. Updated all users.
4374         (record_insn_max_num): Renamed to ...
4375         (record_full_insn_max_num): ... this. Updated all users.
4376         (record_insn_num): Renamed to ...
4377         (record_full_insn_num): ... this. Updated all users.
4378         (record_insn_count): Renamed to ...
4379         (record_full_insn_count): ... this. Updated all users.
4380         (record_ops): Renamed to ...
4381         (record_full_ops): ... this. Updated all users.
4382         (record_core_ops): Renamed to ...
4383         (record_full_core_ops): ... this. Updated all users.
4384         (set_record_cmdlist): Renamed to ...
4385         (set_record_full_cmdlist): ... this. Updated all users.
4386         (show_record_cmdlist): Renamed to ...
4387         (show_record_full_cmdlist): ... this. Updated all users.
4388         (record_cmdlist): Renamed to ...
4389         (record_full_cmdlist): ... this. Updated all users.
4390         (record_beneath_to_resume_ops): Renamed to ...
4391         (record_full_beneath_to_resume_ops): ... this. Updated all users.
4392         (record_beneath_to_resume): Renamed to ...
4393         (record_full_beneath_to_resume): ... this. Updated all users.
4394         (record_beneath_to_wait_ops): Renamed to ...
4395         (record_full_beneath_to_wait_ops): ... this. Updated all users.
4396         (record_beneath_to_wait): Renamed to ...
4397         (record_full_beneath_to_wait): ... this. Updated all users.
4398         (record_beneath_to_store_registers_ops): Renamed to ...
4399         (record_full_beneath_to_store_registers_ops): ... this.
4400         Updated all users.
4401         (record_beneath_to_store_registers): Renamed to ...
4402         (record_full_beneath_to_store_registers): ... this.
4403         Updated all users.
4404         (record_beneath_to_xfer_partial_ops): Renamed to ...
4405         (record_full_beneath_to_xfer_partial_ops): ... this.
4406         Updated all users.
4407         (record_beneath_to_xfer_partial): Renamed to ...
4408         (record_full_beneath_to_xfer_partial): ... this.
4409         Updated all users.
4410         (record_beneath_to_insert_breakpoint): Renamed to ...
4411         (record_full_beneath_to_insert_breakpoint): ... this.
4412         Updated all users.
4413         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4414         (record_full_beneath_to_stopped_by_watchpoint): ... this.
4415         Updated all users.
4416         (record_beneath_to_stopped_data_address): Renamed to ...
4417         (record_full_beneath_to_stopped_data_address): ... this.
4418         Updated all users.
4419         (record_beneath_to_async): Renamed to ...
4420         (record_full_beneath_to_async): ... this. Updated all users.
4421         (record_goto_insn): Renamed to ...
4422         (record_full_goto_insn): ... this. Updated all users.
4423         (record_save): Renamed to ...
4424         (record_full_save): ... this. Updated all users.
4425         (record_reg_alloc): Renamed to ...
4426         (record_full_reg_alloc): ... this. Updated all users.
4427         (record_reg_release): Renamed to ...
4428         (record_full_reg_release): ... this. Updated all users.
4429         (record_mem_alloc): Renamed to ...
4430         (record_full_mem_alloc): ... this. Updated all users.
4431         (record_mem_release): Renamed to ...
4432         (record_full_mem_release): ... this. Updated all users.
4433         (record_end_alloc): Renamed to ...
4434         (record_full_end_alloc): ... this. Updated all users.
4435         (record_end_release): Renamed to ...
4436         (record_full_end_release): ... this. Updated all users.
4437         (record_entry_release): Renamed to ...
4438         (record_full_entry_release): ... this. Updated all users.
4439         (record_list_release): Renamed to ...
4440         (record_full_list_release): ... this. Updated all users.
4441         (record_list_release_following): Renamed to ...
4442         (record_full_list_release_following): ... this.
4443         Updated all users.
4444         (record_list_release_first): Renamed to ...
4445         (record_full_list_release_first): ... this. Updated all users.
4446         (record_arch_list_add): Renamed to ...
4447         (record_full_arch_list_add): ... this. Updated all users.
4448         (record_get_loc): Renamed to ...
4449         (record_full_get_loc): ... this. Updated all users.
4450         (record_check_insn_num): Renamed to ...
4451         (record_full_check_insn_num): ... this. Updated all users.
4452         (record_arch_list_cleanups): Renamed to ...
4453         (record_full_arch_list_cleanups): ... this. Updated all users.
4454         (record_message): Renamed to ...
4455         (record_full_message): ... this. Updated all users.
4456         (record_message_wrapper): Renamed to ...
4457         (record_full_message_wrapper): ... this. Updated all users.
4458         (record_message_wrapper_safe): Renamed to ...
4459         (record_full_message_wrapper_safe): ... this. Updated all users.
4460         (record_gdb_operation_disable): Renamed to ...
4461         (record_full_gdb_operation_disable): ... this. Updated all users.
4462         (record_hw_watchpoint): Renamed to ...
4463         (record_full_hw_watchpoint): ... this. Updated all users.
4464         (record_exec_insn): Renamed to ...
4465         (record_full_exec_insn): ... this. Updated all users.
4466         (record_restore): Renamed to ...
4467         (record_full_restore): ... this. Updated all users.
4468         (record_async_inferior_event_token): Renamed to ...
4469         (record_full_async_inferior_event_token): ... this.
4470         Updated all users.
4471         (record_async_inferior_event_handler): Renamed to ...
4472         (record_full_async_inferior_event_handler): ... this.
4473         Updated all users.
4474         (record_core_open_1): Renamed to ...
4475         (record_full_core_open_1): ... this. Updated all users.
4476         (record_open_1): Renamed to ...
4477         (record_full_open_1): ... this. Updated all users.
4478         (record_open): Renamed to ...
4479         (record_full_open): ... this. Updated all users.
4480         (record_close): Renamed to ...
4481         (record_full_close): ... this. Updated all users.
4482         (record_resume_step): Renamed to ...
4483         (record_full_resume_step): ... this. Updated all users.
4484         (record_resumed): Renamed to ...
4485         (record_full_resumed): ... this. Updated all users.
4486         (record_execution_dir): Renamed to ...
4487         (record_full_execution_dir): ... this. Updated all users.
4488         (record_resume): Renamed to ...
4489         (record_full_resume): ... this. Updated all users.
4490         (record_get_sig): Renamed to ...
4491         (record_full_get_sig): ... this. Updated all users.
4492         (record_sig_handler): Renamed to ...
4493         (record_full_sig_handler): ... this. Updated all users.
4494         (record_wait_cleanups): Renamed to ...
4495         (record_full_wait_cleanups): ... this. Updated all users.
4496         (record_wait_1): Renamed to ...
4497         (record_full_wait_1): ... this. Updated all users.
4498         (record_wait): Renamed to ...
4499         (record_full_wait): ... this. Updated all users.
4500         (record_stopped_by_watchpoint): Renamed to ...
4501         (record_full_stopped_by_watchpoint): ... this. Updated all users.
4502         (record_disconnect): Renamed to ...
4503         (record_full_disconnect): ... this. Updated all users.
4504         (record_detach): Renamed to ...
4505         (record_full_detach): ... this. Updated all users.
4506         (record_mourn_inferior): Renamed to ...
4507         (record_full_mourn_inferior): ... this. Updated all users.
4508         (record_kill): Renamed to ...
4509         (record_full_kill): ... this. Updated all users.
4510         (record_stopped_data_address): Renamed to ...
4511         (record_full_stopped_data_address): ... this. Updated all users.
4512         (record_registers_change): Renamed to ...
4513         (record_full_registers_change): ... this. Updated all users.
4514         (record_store_registers): Renamed to ...
4515         (record_full_store_registers): ... this. Updated all users.
4516         (record_xfer_partial): Renamed to ...
4517         (record_full_xfer_partial): ... this. Updated all users.
4518         (record_breakpoint): Renamed to ...
4519         (record_full_breakpoint): ... this. Updated all users.
4520         (record_breakpoint_p): Renamed to ...
4521         (record_full_breakpoint_p): ... this. Updated all users.
4522         (record_breakpoints): Renamed to ...
4523         (record_full_breakpoints): ... this. Updated all users.
4524         (record_sync_record_breakpoints): Renamed to ...
4525         (record_full_sync_record_breakpoints): ... this.
4526         Updated all users.
4527         (record_init_record_breakpoints): Renamed to ...
4528         (record_full_init_record_breakpoints): ... this.
4529         Updated all users.
4530         (record_insert_breakpoint): Renamed to ...
4531         (record_full_insert_breakpoint): ... this. Updated all users.
4532         (record_remove_breakpoint): Renamed to ...
4533         (record_full_remove_breakpoint): ... this. Updated all users.
4534         (record_can_execute_reverse): Renamed to ...
4535         (record_full_can_execute_reverse): ... this. Updated all users.
4536         (record_get_bookmark): Renamed to ...
4537         (record_full_get_bookmark): ... this. Updated all users.
4538         (record_goto_bookmark): Renamed to ...
4539         (record_full_goto_bookmark): ... this. Updated all users.
4540         (record_async): Renamed to ...
4541         (record_full_async): ... this. Updated all users.
4542         (record_can_async_p): Renamed to ...
4543         (record_full_can_async_p): ... this. Updated all users.
4544         (record_is_async_p): Renamed to ...
4545         (record_full_is_async_p): ... this. Updated all users.
4546         (record_execution_direction): Renamed to ...
4547         (record_full_execution_direction): ... this. Updated all users.
4548         (record_info): Renamed to ...
4549         (record_full_info): ... this. Updated all users.
4550         (record_delete): Renamed to ...
4551         (record_full_delete): ... this. Updated all users.
4552         (record_is_replaying): Renamed to ...
4553         (record_full_is_replaying): ... this. Updated all users.
4554         (record_goto_entry): Renamed to ...
4555         (record_full_goto_entry): ... this. Updated all users.
4556         (record_goto_begin): Renamed to ...
4557         (record_full_goto_begin): ... this. Updated all users.
4558         (record_goto_end): Renamed to ...
4559         (record_full_goto_end): ... this. Updated all users.
4560         (record_goto): Renamed to ...
4561         (record_full_goto): ... this. Updated all users.
4562         (init_record_ops): Renamed to ...
4563         (init_record_full_ops): ... this. Updated all users.
4564         (record_core_resume): Renamed to ...
4565         (record_full_core_resume): ... this. Updated all users.
4566         (record_core_kill): Renamed to ...
4567         (record_full_core_kill): ... this. Updated all users.
4568         (record_core_fetch_registers): Renamed to ...
4569         (record_full_core_fetch_registers): ... this. Updated all users.
4570         (record_core_prepare_to_store): Renamed to ...
4571         (record_full_core_prepare_to_store): ... this. Updated all users.
4572         (record_core_store_registers): Renamed to ...
4573         (record_full_core_store_registers): ... this. Updated all users.
4574         (record_core_xfer_partial): Renamed to ...
4575         (record_full_core_xfer_partial): ... this. Updated all users.
4576         (record_core_insert_breakpoint): Renamed to ...
4577         (record_full_core_insert_breakpoint): ... this. Updated all users.
4578         (record_core_remove_breakpoint): Renamed to ...
4579         (record_full_core_remove_breakpoint): ... this. Updated all users.
4580         (record_core_has_execution): Renamed to ...
4581         (record_full_core_has_execution): ... this. Updated all users.
4582         (init_record_core_ops): Renamed to ...
4583         (init_record_full_core_ops): ... this. Updated all users.
4584         (cmd_record_restore): Renamed to ...
4585         (cmd_record_full_restore): ... this. Updated all users.
4586         (record_save_cleanups): Renamed to ...
4587         (record_full_save_cleanups): ... this. Updated all users.
4588         (cmd_record_start): Renamed to ...
4589         (cmd_record_full_start): ... this. Updated all users.
4590         (set_record_insn_max_num): Renamed to ...
4591         (set_record_full_insn_max_num): ... this. Updated all users.
4592         (set_record_command): Renamed to ...
4593         (set_record_full_command): ... this. Updated all users.
4594         (show_record_command): Renamed to ...
4595         (show_record_full_command): ... this. Updated all users.
4596         (_initialize_record): Renamed to ...
4597         (_initialize_record_full): ... this. Updated all users.
4598
4599 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4600
4601         * record.h: Split into this and ...
4602         * record-full.h: ... this.
4603         * record.c: Split into this and ...
4604         * record-full.c: ... this.
4605         * target.h (target_ops): Add new fields to_info_record,
4606         to_save_record, to_delete_record, to_record_is_replaying,
4607         to_goto_record_begin, to_goto_record_end, to_goto_record.
4608         (target_info_record): New.
4609         (target_save_record): New.
4610         (target_supports_delete_record): New.
4611         (target_delete_record): New.
4612         (target_record_is_replaying): New.
4613         (target_goto_record_begin): New.
4614         (target_goto_record_end): New.
4615         (target_goto_record): New.
4616         * target.c (target_info_record): New.
4617         (target_save_record): New.
4618         (target_supports_delete_record): New.
4619         (target_delete_record): New.
4620         (target_record_is_replaying): New.
4621         (target_goto_record_begin): New.
4622         (target_goto_record_end): New.
4623         (target_goto_record): New.
4624         * record.h: Declare struct cmd_list_element.
4625         (record_cmdlist): New declaration.
4626         (set_record_cmdlist): New declaration.
4627         (show_record_cmdlist): New declaration.
4628         (info_record_cmdlist): New declaration.
4629         (cmd_record_goto): New declaration.
4630         * record.c: Remove unnecessary includes.
4631         Include inferior.h.
4632         (cmd_record_goto): Remove declaration.
4633         (record_cmdlist): Now extern. Initialize.
4634         (set_record_cmdlist): Now extern. Initialize.
4635         (show_record_cmdlist): Now extern. Initialize.
4636         (info_record_cmdlist): Now extern. Initialize.
4637         (find_record_target): New.
4638         (require_record_target): New.
4639         (cmd_record_start): Update.
4640         (cmd_record_delete): Remove target-specific code.
4641         Call target_delete_record.
4642         (cmd_record_stop): Unpush any record target.
4643         (set_record_insn_max_num): Move to record-full.c
4644         (set_record_command): Add comment.
4645         (show_record_command): Add comment.
4646         (info_record_command): Update comment.
4647         Remove target-specific code.
4648         Call the record target's to_info_record.
4649         (cmd_record_start): New.
4650         (cmd_record_goto): Now extern.
4651         Remove target-specific code.
4652         Call target_goto_begin,  target_goto_end, or target_goto.
4653         (_initialize_record): Move record target ops initialization to
4654         record-full.c.
4655         Change "record" command help text.
4656         Move "record restore", "record set", and "record show" commands to
4657         record-full.c.
4658         * Makefile.in (SFILES): Add record-full.c.
4659         (HFILES_NO_SRCDIR): Add record-full.h.
4660         (COMMON_OBS): Add record-full.o.
4661         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4662         * arm-tdep.c: Include record-full.h.
4663         * i386-linux-tdep.c: Include record-full.h instead of record.h.
4664         * i386-tdep.c: Include record-full.h.
4665         * infrun.c: Include record-full.h.
4666         * linux-record.c: Include record-full.h.
4667         * moxie-tdep.c: Include record-full.h.
4668         * record-full.c: Include record-full.h.
4669         Change module comment.
4670         (set_record_full_cmdlist): New.
4671         (show_record_full_cmdlist): New.
4672         (record_full_cmdlist): New.
4673         (record_goto_insn): New declaration.
4674         (record_save): New declaration.
4675         (record_check_insn_num): Change query string.
4676         (record_info): New.
4677         (record_delete): New.
4678         (record_is_replaying): New.
4679         (record_goto_entry): New.
4680         (record_goto_begin): New.
4681         (record_goto_end): New.
4682         (record_goto): New.
4683         (init_record_ops): Update.
4684         (init_record_core_ops): Update.
4685         (cmd_record_save): Rename to record_save. Remove target and arg checks.
4686         (cmd_record_start): New.
4687         (set_record_insn_max_num): Moved from record.c
4688         (set_record_full_command): New.
4689         (show_record_full_command): New.
4690         (_initialize_record_full): New.
4691
4692 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4693
4694         * target.h (add_deprecated_target_alias): New.
4695         * target.c (add_deprecated_target_alias): New.
4696
4697 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4698
4699         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4700         and signal.h.
4701         (linux_supports_btrace): Add kernel and
4702         cpuid check.
4703         (kernel_supports_btrace): New function.
4704         (cpu_supports_btrace): New function.
4705         (intel_supports_btrace): New function.
4706
4707 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4708
4709         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4710         * remote.c: Include btrace.h.
4711         (struct btrace_target_info): New struct.
4712         (remote_supports_btrace): New function.
4713         (send_Qbtrace): New function.
4714         (remote_enable_btrace): New function.
4715         (remote_disable_btrace): New function.
4716         (remote_teardown_btrace): New function.
4717         (remote_read_btrace): New function.
4718         (init_remote_ops): Add btrace ops.
4719         (enum <unnamed>): Add btrace packets.
4720         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4721         (_initialize_remote): Add packet configuration for branch tracing.
4722
4723 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4724
4725         * features/btrace.dtd: New file.
4726         * Makefile.in (XMLFILES): Add btrace.dtd.
4727         * btrace.h (parse_xml_btrace): New declaration.
4728         * btrace.c: Include xml-support.h.
4729         (parse_xml_btrace): New function.
4730         (parse_xml_btrace_block): New function.
4731         (block_attributes): New struct.
4732         (btrace_attributes): New struct.
4733         (btrace_children): New struct.
4734         (btrace_elements): New struct.
4735
4736 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4737
4738         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
4739         (amd64_linux_enable_btrace): New.
4740         (amd64_linux_disable_btrace): New.
4741         (amd64_linux_teardown_btrace): New.
4742         (_initialize_amd64_linux_nat): Initialize btrace ops.
4743         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
4744         (i386_linux_enable_btrace): New.
4745         (i386_linux_disable_btrace): New.
4746         (i386_linux_teardown_btrace): New.
4747         (_initialize_i386_linux_nat): Initialize btrace ops.
4748         * config/i386/linux.mh: Add linux-btrace.o.
4749         * config/i386/linux64.mh: Add linux-btrace.o.
4750
4751 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4752
4753         * common/linux_btrace.h: New file.
4754         * common/linux_btrace.c: New file.
4755         * Makefile.in (SFILES): Add btrace.c.
4756         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
4757         (COMMON_OBS): Add btrace.o.
4758         (linux-btrace.o): New rule.
4759
4760 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4761
4762         * target.h: Include btrace.h.
4763         (struct target_ops) <to_supports_btrace, to_enable_btrace,
4764         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
4765         * target.c (target_supports_btrace): New function.
4766         (target_enable_btrace): New function.
4767         (target_disable_btrace): New function.
4768         (target_teardown_btrace): New function.
4769         (target_read_btrace): New function.
4770         * btrace.h: New file.
4771         * btrace.c: New file.
4772         * Makefile.in: Add btrace.c.
4773         * gdbthread.h: Include btrace.h.
4774         (struct thread_info): Add btrace field.
4775         * thread.c: Include btrace.h.
4776         (clear_thread_inferior_resources): Call target_teardown_btrace.
4777         * common/btrace-common.h: New file.
4778
4779 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4780
4781         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
4782         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
4783         kill_status to outer block.
4784
4785 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4786
4787         Fix entry-values if the callee called a noreturn function.
4788         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4789         get_frame_address_in_block.  Add new comment.
4790
4791 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4792
4793         Fix entry-values in C++ across CUs.
4794         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
4795         lookup_minimal_symbol.  Add a comment.
4796         * dwarf2read.c
4797         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
4798         DW_AT_linkage_name.
4799
4800 2013-03-08  Yao Qi  <yao@codesourcery.com>
4801
4802         * tracepoint.c (_initialize_tracepoint): Indent the code.
4803
4804 2013-03-08  Pedro Alves  <palves@redhat.com>
4805
4806         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
4807         (parse_find_args, find_command): Change type of pattern buffer
4808         locals to 'gdb_byte *'.
4809
4810 2013-03-08  Stan Shebs  <stan@codesourcery.com>
4811             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4812
4813         * NEWS: Mention set and show trace-buffer-size commands.
4814         Mention new packet.
4815         * target.h (struct target_ops): New method
4816         to_set_trace_buffer_size.
4817         (target_set_trace_buffer_size): New macro.
4818         * target.c (update_current_target): Set up new method.
4819         * tracepoint.c (trace_buffer_size): New global.
4820         (start_tracing): Send it to the target.
4821         (set_trace_buffer_size): New function.
4822         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
4823         * remote.c (remote_set_trace_buffer_size): New function.
4824         (_initialize_remote): Use it.
4825         (QTBuffer:size) New remote command.
4826         (PACKET_QTBuffer_size): New enum.
4827         (remote_protocol_features): Add an entry for
4828         PACKET_QTBuffer_size.
4829
4830 2013-03-08  Tom Tromey  <tromey@redhat.com>
4831
4832         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4833         variable.
4834
4835 2013-03-07  Pedro Alves  <palves@redhat.com>
4836
4837         * target.c (target_read_stralloc, target_fileio_read_alloc):
4838         *Cast pointer to 'gdb_byte *' in target call.
4839
4840 2013-03-07  Pedro Alves  <palves@redhat.com>
4841
4842         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
4843         call.
4844
4845 2013-03-07  Keith Seitz  <keiths@redhat.com>
4846
4847         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
4848         (trace_pass_command): Likewise.
4849         * cli/cli-cmds.c: Include cli/cli-utils.h.
4850         (source_command): Use skip-spaces.
4851         (disassemble_command): Likewise.
4852         * findcmd.c: Include cli/cli-utils.h.
4853         (parse_find_args): Use skip_spaces.
4854         * go32-nat.c: Include cli/cli-utils.h.
4855         (go32_sldt): Use skip_spaces.
4856         (go32_sgdt): Likewise.
4857         (go32_sidt): Likewise.
4858         (go32_pde): Likewise.
4859         (go32_pte): Likewise.
4860         (go32_pte_for_address): Likewise.
4861         * infcmd.c: Include cli/cli-utils.h.
4862         (registers_info): Use skip_spaces.
4863         * linux-tdep.c (read_mapping): Use skip_spaces_const.
4864         (linux_info_proc): Likewise.
4865         * linux-thread-db.c: Include cli/cli-utils.h.
4866         (info_auto_load_libthread_db): Use skip_spaces_const.
4867         * m32r-rom.c: Include cli/cli-utils.h.
4868         (m32r_upload_command): Use skip_spaces.
4869         * maint.c: Include cli/cli-utils.h.
4870         (maintenance_translate_address): Use skip_spaces.
4871         * mi/mi-parse.c: Include cli/cli-utils.h.
4872         (mi_parse_argv): Use skip_spaces.
4873         (mi_parse): Likewise.
4874         * minsyms.c: Include cli/cli-utils.h.
4875         (msymbol_hash_iw): Use skip_spaces_const.
4876         * objc-lang.c: Include cli/cli-utils.h.
4877         (parse_selector): Use skip_spaces.
4878         (parse_method): Likewise.
4879         * python/python.c: Include cli/cli-utils.h.
4880         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
4881         (python_command)[HAVE_PYTHON]: Likewise.
4882         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
4883         * remote-m32r-sdi.c: Include cli/cli-utils.h.
4884         (m32r_load): Use skip_spaces.
4885         * serial.c: Include cli/cli-utils.h.
4886         (serial_open): Use skip_spaces_const.
4887         * stack.c: Include cli/cli-utils.h.
4888         (parse_frame_specification_1): Use skip_spaces_const.
4889         * symfile.c: Include cli/cli-utils.h.
4890         (set_ext_lang_command): Use skip_spaces.
4891         * symtab.c: Include cli/cli-utils.h.
4892         (rbreak_command): Use skip_spaces.
4893         * thread.c (thread_name_command): Use skip_spaces.
4894         * tracepoint.c (validate_actionline): Use skip_spaces.
4895         (encode_actions_1): Likewise.
4896         (trace_find_range_command): Likewise.
4897         (trace_find_outside_command): Likewise.
4898         (trace_dump_actions): Likewise.
4899
4900 2013-03-07  Pedro Alves  <palves@redhat.com>
4901
4902         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
4903         * expprint.c (print_subexp_standard): Likewise.
4904         * utils.c (host_char_to_target): Likewise.
4905         * valprint.c (generic_emit_char, generic_printstr): Likewise.
4906         * varobj.c (value_get_print_value): Change type of local to char*.
4907         Cast it gdb_byte * in call to language printer.
4908
4909 2013-03-07  Pedro Alves  <palves@redhat.com>
4910
4911         * charset.c (struct wchar_iterator) <input>: Change type to 'const
4912         gdb_byte *'.
4913         (make_wchar_iterator): Remove cast to char*.
4914         (wchar_iterate): Change type of local.
4915
4916 2013-03-07  Pedro Alves  <palves@redhat.com>
4917
4918         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
4919         for 'regcache->register_status'.
4920
4921 2013-03-07  Pedro Alves  <palves@redhat.com>
4922
4923         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
4924         int.
4925
4926 2013-03-07  Pedro Alves  <palves@redhat.com>
4927
4928         * stap-probe.c (handle_stap_probe): Add cast to char*.
4929
4930 2013-03-07  Pedro Alves  <palves@redhat.com>
4931
4932         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
4933         RECORD_MSGRCV>: Pass a signed variable to
4934         regcache_raw_read_signed, instead of an unsigned one.
4935
4936 2013-03-07  Pedro Alves  <palves@redhat.com>
4937
4938         * remote-notif.c (notif_debug): Change type to int.
4939         * remote-notif.h (notif_debug): Likewise.
4940
4941 2013-03-07  Pedro Alves  <palves@redhat.com>
4942
4943         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4944
4945 2013-03-07  Pedro Alves  <palves@redhat.com>
4946
4947         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
4948         * remote.h (hex2bin, bin2hex): ... here.
4949         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
4950
4951 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
4952
4953         * utils.c (initialize_utils): Improve doc strings of "set/show
4954         width", "set/show height", and "set/show pagination".
4955
4956 2013-03-06  Keith Seitz  <keiths@redhat.com>
4957
4958         * ax-gdb.c (gen_printf): Make FORMAT const.
4959         * ax-gdb.h (gen_printf): Likewise.
4960         * ax-general.c (ax_string): Make STR const.
4961         * ax.h (ax_string): Likewise.
4962
4963 2013-03-06  Doug Evans  <dje@google.com>
4964
4965         * elfread.c (elf_symfile_read): Move debugging printf to more
4966         logical location.
4967
4968 2013-03-06  Pedro Alves  <palves@redhat.com>
4969
4970         * python/py-utils.c (target_string_to_unicode): Delete function.
4971         * python/python-internal.h (target_string_to_unicode): Delete
4972         declaration.
4973
4974 2013-03-06  Pierre Muller  <muller@sourceware.org>
4975
4976         * linespec.c (get_current_search_block): ARI fix, use (void)
4977         for empty parameter list.
4978
4979 2013-03-05  Doug Evans  <dje@google.com>
4980
4981         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4982         of old ada_lookup_symbol_list.  In !full_search case, don't
4983         search superblocks.
4984         (ada_lookup_symbol_list): Delete arg full_search, all callers
4985         updated.  Call ada_lookup_symbol_list_worker.
4986         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4987         * ada-lang.h (ada_lookup_symbol_list): Update.
4988         * language.h (language_defn): Update comment for
4989         la_iterate_over_symbols.
4990         * linespec.c (iterate_over_file_blocks): New function.
4991         (iterate_over_all_matching_symtabs): Call it.
4992         (lookup_prefix_sym): Ditto.
4993         (get_current_search_block): New function.
4994         (get_search_block): Delete.
4995         (find_label_symbols): Call get_current_search_block.
4996         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4997         * symtab.c (iterate_over_symbols): Don't search superblocks.
4998
4999 2013-03-05  Yao Qi  <yao@codesourcery.com>
5000
5001         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
5002         parameter VAR's type from "unsigned int" to "int".
5003         * command.h (var_zuinteger_unlimited): Update its comments.
5004         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
5005
5006 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
5007
5008         * NEWS: Mention new target x86_64-*-cygwin*.
5009
5010 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
5011
5012         * configure.host: Add x86_64-*-cygwin* as host.
5013         * configure.tgt: Add x86_64-*-cygwin* as target.
5014         * config/i386/cygwin64.mh: New file.
5015
5016 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5017
5018         * linespec.c (decode_line_2): Fix duplicate request off by two message.
5019
5020 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5021
5022         * linespec.c (struct linespec_canonical_name): New.
5023         (struct linespec_state): Change canonical_names type to it.
5024         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
5025         xrealloc element size.  Initialize the different CANONICAL fields.
5026         (canonical_to_fullform): New.
5027         (filter_results): Use it.  Add variables canonical, fullform and
5028         cleanup.
5029         (struct decode_line_2_item, decode_line_2_compare_items): New.
5030         (decode_line_2): Remove variables iter and item_names, add variables
5031         items and items_count.  Modify the code for these new variables.
5032
5033 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
5034
5035         * coff-pe-read.c (read_pe_exported_syms): Don't return without
5036         calling do_cleanup.
5037
5038 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
5039
5040         * tracepoint.c (build_traceframe_info): Add code for byte order.
5041
5042 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
5043
5044         * v850-tdep.c: (v850e2_register_name): Revise system register
5045         names to match current V850E2M architecture specifications.
5046         Update register number enum comments too.
5047         
5048 2013-03-01  Jiong Wang  <jiwang@tilera.com>
5049             Pedro Alves  <palves@redhat.com>
5050
5051         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5052         to END_ADDR.
5053         (tilegx_skip_prologue): Limit prologue analysis to section end.
5054
5055 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5056
5057         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5058         use it.
5059
5060 2013-03-01  Pedro Alves  <palves@redhat.com>
5061
5062         Use gdb_byte for bytes from the program being debugged.
5063
5064         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5065         Change type of local 'buf' to gdb_byte.
5066         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5067         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5068         * cris-tdep.c (cris_sigcontext_addr)
5069         (cris_sigtramp_frame_unwind_cache): Likewise.
5070         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5071         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5072         Likewise.
5073         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5074         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5075         (hppa32_hpux_search_dummy_call_sequence)
5076         (hppa_hpux_supply_save_state): Likewise.
5077         * hppa-linux-tdep.c (insns_match_pattern)
5078         (hppa_linux_find_global_pointer): Likewise.
5079         * hppa-tdep.c (hppa_in_function_epilogue_p)
5080         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5081         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5082         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5083         (i386fbsd_collect_uthread): Likewise.
5084         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5085         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5086         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5087         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5088         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5089         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5090         (ia64_libunwind_frame_prev_register)
5091         (ia64_libunwind_sigtramp_frame_this_id)
5092         (ia64_find_global_pointer_from_dynamic_section)
5093         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5094         (ia64_unwind_pc): Likewise.
5095         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5096         * m68hc11-tdep.c (m68hc11_push_dummy_call)
5097         (m68hc11_extract_return_value): Likewise.
5098         * m68klinux-nat.c (fetch_register, store_register): Likewise.
5099         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5100         (mep_get_insn, mep_push_dummy_call): Likewise.
5101         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5102         (mips_linux_in_dynsym_stub): Likewise.
5103         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5104         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5105         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5106         to gdb_byte.
5107         * remote-mips.c (mips_set_register): Likewise.
5108         * remote-sim.c (gdbsim_fetch_register): Likewise.
5109         * score-tdep.c (score7_fetch_inst): Change type of parameter
5110         'memblock' and local 'buf' to gdb_byte.
5111         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5112         Change type of local 'buf' to gdb_byte.  Adjust.
5113         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5114         to gdb_byte**.
5115         (score7_analyze_prologue): Change type of 'memblock' and
5116         'memblock_ptr' locals to gdb_byte*.
5117         * sh64-tdep.c (sh64_extract_return_value)
5118         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5119         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5120         * solib-pa64.c (pa64_solib_create_inferior_hook)
5121         (pa64_open_symbol_file_object): Remove local 'buf'.
5122         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5123         (som_open_symbol_file_object): Likewise.
5124         * solib-spu.c (spu_current_sos): Likewise.
5125         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5126         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5127         (spu_store_registers): Likewise.
5128         * target.c (debug_print_register): Likewise.
5129         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5130         * xstormy16-tdep.c (xstormy16_store_return_value)
5131         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5132         (xstormy16_find_jmp_table_entry): Likewise.
5133
5134 2013-03-01  Jiong Wang  <jiwang@tilera.com>
5135
5136         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5137         (tilegx_gdbarch_init): Install it.
5138
5139 2013-02-28  Tom Tromey  <tromey@redhat.com>
5140
5141         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5142         PyLong_Check.
5143
5144 2013-02-28  Doug Evans  <dje@google.com>
5145
5146         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5147         * python/python.c (gdbpy_find_pc_line): Ditto.
5148
5149 2013-02-28  Tom Tromey  <tromey@redhat.com>
5150
5151         * contrib/excheck.py: New file.
5152         * contrib/exsummary.py: New file.
5153         * contrib/gcc-with-excheck: New file.
5154
5155 2013-02-28  Tom Tromey  <tromey@redhat.com>
5156
5157         * python/python.c (gdbpy_print_stack): Call begin_line and
5158         fprintf_filtered inside TRY_CATCH.
5159
5160 2013-02-28  Tom Tromey  <tromey@redhat.com>
5161
5162         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5163         inside TRY_CATCH.
5164
5165 2013-02-28  Tom Tromey  <tromey@redhat.com>
5166
5167         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5168         frame_object_to_frame_info inside TRY_CATCH.
5169
5170 2013-02-28  Tom Tromey  <tromey@redhat.com>
5171
5172         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5173         TRY_CATCH.
5174
5175 2013-02-28  Tom Tromey  <tromey@redhat.com>
5176
5177         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5178
5179 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
5180
5181         * windows-nat.c: Throughout, fix format strings and casts of
5182         printf-like functions to avoid type related warnings on all
5183         platforms.
5184         (handle_output_debug_string): Fetch context information address
5185         from debug string using string_to_core_addr.
5186
5187 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5188
5189         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5190         * regformats/reg-tilegx32.dat: New.
5191
5192 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5193
5194         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5195
5196 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5197
5198         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5199
5200 2013-02-27  Yao Qi  <yao@codesourcery.com>
5201             Pedro Alves  <palves@redhat.com>
5202
5203         * tracepoint.c (tfile_trace_find): For tfind
5204         pc/tp/range/outside, look for the next trace frame instead of
5205         always starting from frame 0.
5206
5207 2013-02-26  Anthony Green  <green@moxielogic.com>
5208
5209         * configure.tgt: Add support for moxie-*-rtems* target.
5210
5211 2013-02-25  Pedro Alves  <palves@redhat.com>
5212
5213         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5214         warning text.
5215
5216 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5217
5218         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5219         if $fp is used as the virtual frame pointer.
5220
5221 2013-02-23  Alan Modra  <amodra@gmail.com>
5222
5223         * elfread.c (elf_symtab_read): Do not use udata.p here to find
5224         symbol size.
5225         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5226         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5227         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5228         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5229
5230 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5231
5232         Code cleanup.
5233         * elfread.c (build_id_bfd_get): Make the return type const.
5234         (build_id_verify): Make the check parameter const.
5235         (build_id_to_debug_filename): Make the build_id parameter and variable
5236         data const.
5237         (find_separate_debug_file_by_buildid): Make the variable build_id const.
5238
5239 2013-02-21  Alan Modra  <amodra@gmail.com>
5240
5241         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5242
5243 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
5244
5245         Add a new method 'disassemble' to gdb.Architecture class.
5246         * python/py-arch.c (archpy_disassmble): Implementation of the
5247         new method gdb.Architecture.disassemble.
5248         (arch_object_methods): Add entry for the new method.
5249
5250 2013-02-20  Jiong Wang  <jiwang@tilera.com>
5251
5252         * MAINTAINERS (Write After Approval): Add myself to the list.
5253
5254 2013-02-19  Pedro Alves  <palves@redhat.com>
5255
5256         Garbage collect 'struct monitor_ops'::load_routine.
5257
5258         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5259         * monitor.c (monitor_load): No longer call
5260         current_monitor->load_routine.
5261         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5262         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5263         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5264
5265 2013-02-19  Pedro Alves  <palves@redhat.com>
5266
5267         PR gdb/15161
5268
5269         Harmonize with generic_load.
5270
5271         * monitor.c: Include "readline/readline.h".
5272         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
5273         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
5274         long/strtol for the 'load_offset' local.  Error out if no argument
5275         is given or if too many arguments are given.  Tilde expand the
5276         passed in file name.
5277
5278 2013-02-19  Kai Tietz  <ktietz@redhat.com>
5279
5280         PR gdb/15161
5281         * symfile.c (load_section_data): Change type of load_offset
5282         to CORE_ADDR.
5283         (generic_load): User strtoulst instead of strtoul for conversion
5284         of load_offset.
5285
5286 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5287
5288         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5289          for return address, "lr" register, saved on stack.
5290         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5291         after we invoke tilegx_analyze_prologue.
5292
5293 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5294
5295         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5296
5297 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5298
5299         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
5300
5301 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5302
5303         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
5304         (tilegx_write_pc): New function.
5305         (tilegx_cannot_reference_register): Return zero if REGNO
5306         is TILEGX_FAULTNUM_REGNUM.
5307         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5308         (tilegx_register_name): Add handling of "faultnum" register.
5309         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5310         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5311         handling of TILEGX_FAULTNUM_REGNUM.
5312         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5313
5314 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5315
5316         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
5317         should be aligned to 64bit.
5318
5319 2013-02-19  Kai Tietz  <ktietz@redhat.com>
5320
5321         * windows-nat.c (windows_xfer_memory): Fix debug-output
5322         for LLP64.
5323
5324 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
5325
5326         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5327         Don't check DSP register number if HAVE_DSP is not set.
5328
5329 2013-02-19  Alan Modra  <amodra@gmail.com>
5330
5331         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
5332         throughout file instead.
5333         (build_id_bfd_get): Update to use new elf_tdata build_id field.
5334         Don't xmalloc return value.
5335         (build_id_verify): Similarly.  Don't xfree.
5336         (build_id_to_debug_filename): Update.
5337         (find_separate_debug_file_by_buildid): Update, don't xfree.
5338
5339 2013-02-18  Tom Tromey  <tromey@redhat.com>
5340
5341         PR gdb/15102:
5342         * dwarf2read.c (read_subrange_type): Use result of
5343         'check_typedef'.
5344
5345 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
5346
5347         * frame.c: Remove one extra white space after #include
5348         directive.
5349
5350 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5351
5352         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5353
5354 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5355
5356         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5357         and dir commands into an if block.
5358
5359 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
5360
5361         * python/py-breakpoint (struct pybp_code):  Use int instead of
5362         enum type_code.
5363
5364 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
5365             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5366
5367         * NEWS: Mention new field "trace-file".
5368         * tracepoint.c (trace_status_mi): Output "trace-file" field.
5369         (tfile_open): Record the trace file's filename in the trace
5370         status.
5371         (tfile_files_info): Mention the name of the trace file.
5372         Check the "filename" field explicitely.
5373         (trace_status_command): Explicitely check "filename" field.
5374         (trace_find_command): Ditto.
5375         (trace_find_pc_command): Ditto.
5376         (trace_find_tracepoint_command): Ditto.
5377         (trace_find_line_command): Ditto.
5378         (trace_find_range_command): Ditto.
5379         (trace_find_outside_command): Ditto.
5380         * tracepoint.h (struct trace_status) <from_file>: Rename it
5381         to "filename" and make it hold the trace file's filename
5382         instead of a boolean.
5383         * remote.c (remote_get_trace_status): Initialize "filename"
5384         field with NULL instead of 0.
5385
5386 2013-02-15  Yao Qi  <yao@codesourcery.com>
5387
5388         * remote.c: Fix a typo.
5389
5390 2013-02-14  Pierre Muller  <muller@sourceware.org>
5391
5392         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5393
5394 2013-02-14  Pedro Alves  <palves@redhat.com>
5395
5396         * utils.c (savestring): Don't #undef it.  Move function to
5397         common/common-utils.c.
5398         * common/common-utils.c: Include gdb_string.h.
5399         (savestring): Move here from utils.c.
5400         * common/common-utils.h (savestring): Declare.
5401
5402 2013-02-14  Pedro Alves  <palves@redhat.com>
5403
5404         * utils.c (savestring): Rename parameter 'size' to 'len'.
5405
5406 2013-02-14  Pedro Alves  <palves@redhat.com>
5407             Yufeng Zhang  <yufeng.zhang@arm.com>
5408
5409         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5410         (aarch64_inferior_data, struct aarch64_inferior_data):
5411         Delete.
5412         (struct aarch64_process_info): New.
5413         (aarch64_process_list): New global.
5414         (aarch64_find_process_pid, aarch64_add_process)
5415         (aarch64_process_info_get): New functions.
5416         (aarch64_inferior_data_get): Delete.
5417         (aarch64_process_info_get): New function.
5418         (aarch64_forget_process): New function.
5419         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
5420         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5421         aarch64_get_debug_reg_state.
5422         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5423         instead of linux_nat_iterate_watchpoint_lwps.
5424         (aarch64_linux_new_fork): New function.
5425         (aarch64_linux_child_post_startup_inferior): Use
5426         aarch64_forget_process instead of aarch64_init_debug_reg_state.
5427         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5428         (aarch64_linux_remove_hw_breakpoint)
5429         (aarch64_handle_aligned_watchpoint)
5430         (aarch64_handle_unaligned_watchpoint)
5431         (aarch64_linux_insert_watchpoint)
5432         (aarch64_linux_remove_watchpoint)
5433         (aarch64_linux_stopped_data_address): Adjust to pass the current
5434         process id to aarch64_debug_reg_state.
5435         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5436         linux_nat_new_fork hook, and aarch64_forget_process as
5437         linux_nat_forget_process hook; remove the call to
5438         register_inferior_data_with_cleanup.
5439
5440 2013-02-14  Pedro Alves  <palves@redhat.com>
5441
5442         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
5443         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5444         lval_memory.
5445
5446 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
5447             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5448
5449         * tracepoint.h (validate_trace_state_variable_name): Declare.
5450         * tracepoint.c (validate_trace_state_variable_name): New.
5451         (trace_variable_command): Parse the trace state variable's name
5452         without using parse_expression.  Do several validations.
5453         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
5454         trace state variable's name with parse_expression.  Validate it.
5455
5456 2013-02-14  Yao Qi  <yao@codesourcery.com>
5457
5458         * infcmd.c (breakpoint_proceeded): Remove it.
5459
5460 2013-02-14  Yao Qi  <yao@codesourcery.com>
5461
5462         * tracepoint.c (end_actions_pseudocommand): Make it static.
5463         (while_stepping_pseudocommand): Likewise.
5464         * tracepoint.h (end_actions_pseudocommand): Remove the
5465         declaration.
5466         (while_stepping_pseudocommand): Likewise.
5467
5468 2013-02-14  Yao Qi  <yao@codesourcery.com>
5469
5470         * cli/cli-decode.c (help_cmd): Remove the declaration of
5471         "cmdlist".
5472         (help_all): Likewise.
5473
5474 2013-02-13  Pedro Alves  <palves@redhat.com>
5475
5476         * amd64-linux-nat.c (update_debug_registers_callback):
5477         Update comment.
5478         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5479         iterate_over_lwps.
5480         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
5481         i386_debug_reg_state.
5482         (amd64_linux_new_fork): New function.
5483         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
5484         linux_nat_new_fork hook, and i386_forget_process as
5485         linux_nat_forget_process hook.
5486         * i386-linux-nat.c (update_debug_registers_callback):
5487         Update comment.
5488         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5489         iterate_over_lwps.
5490         (i386_linux_prepare_to_resume): Pass the lwp's pid to
5491         i386_debug_reg_state.
5492         (i386_linux_new_fork): New function.
5493         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
5494         linux_nat_new_fork hook, and i386_forget_process as
5495         linux_nat_forget_process hook.
5496         * i386-nat.c (i386_init_dregs): Delete.
5497         (i386_inferior_data, struct i386_inferior_data):
5498         Delete.
5499         (struct i386_process_info): New.
5500         (i386_process_list): New global.
5501         (i386_find_process_pid, i386_add_process, i386_process_info_get):
5502         New functions.
5503         (i386_inferior_data_get): Delete.
5504         (i386_process_info_get): New function.
5505         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
5506         (i386_forget_process): New function.
5507         (i386_cleanup_dregs): Rewrite.
5508         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
5509         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5510         (i386_stopped_data_address, i386_insert_hw_breakpoint)
5511         (i386_remove_hw_breakpoint): Adjust to pass the current process id
5512         to i386_debug_reg_state.
5513         (i386_use_watchpoints): Don't register inferior data.
5514         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5515         adjust comment.
5516         (i386_forget_process): Declare.
5517         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5518         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5519         New static globals.
5520         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5521         (add_initial_lwp): New, factored out from ...
5522         (add_lwp): ... this.  Don't check the number of lwps before
5523         calling linux_nat_new_thread.
5524         (linux_nat_iterate_watchpoint_lwps): Delete.
5525         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5526         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5527         forks and vforks.
5528         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5529         initial lwp.
5530         (linux_nat_kill, linux_nat_mourn_inferior): Call
5531         linux_nat_forget_process.
5532         (linux_nat_set_new_fork, linux_nat_set_forget_process)
5533         (linux_nat_forget_process): New functions.
5534         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5535         type.
5536         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5537         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5538         types.
5539         (linux_nat_set_new_fork, linux_nat_set_forget_process)
5540         (linux_nat_forget_process): New declarations.
5541
5542         * amd64fbsd-nat.c (super_mourn_inferior): New global.
5543         (amd64fbsd_mourn_inferior): New function.
5544         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5545         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5546
5547 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5548
5549         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5550         Adding _().
5551
5552 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5553
5554         * aarch64-linux-nat.c (debug_reg_change_callback)
5555         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5556         %s and phex().
5557
5558 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5559
5560         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5561         with LONGEST.
5562
5563 2013-02-13  Pedro Alves  <palves@redhat.com>
5564             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5565
5566         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5567
5568 2013-02-12  Tom Tromey  <tromey@redhat.com>
5569
5570         PR symtab/11464:
5571         * c-exp.y (lex_one_token): Initialize other fields of yylval on
5572         NAME return.
5573         (classify_inner_name): Remove 'first_name' argument, add
5574         'context'.  Remove unused variable.
5575         (yylex): Explicitly maintain the context type.  Exit loop earlier
5576         if NAME result is seen.
5577
5578 2013-02-12  Pedro Alves  <palves@redhat.com>
5579
5580         * amd64-darwin-tdep.c: Add (C) after Copyright.
5581         * cli/cli-cmds.h: Ditto.
5582         * cli/cli-decode.c: Ditto.
5583         * cli/cli-decode.h: Ditto.
5584         * cli/cli-dump.c: Ditto.
5585         * cli/cli-dump.h: Ditto.
5586         * cli/cli-interp.c: Ditto.
5587         * cli/cli-logging.c: Ditto.
5588         * cli/cli-script.c: Ditto.
5589         * cli/cli-script.h: Ditto.
5590         * cli/cli-setshow.c: Ditto.
5591         * cli/cli-setshow.h: Ditto.
5592         * cli/cli-utils.c: Ditto.
5593         * cli/cli-utils.h: Ditto.
5594         * config/alpha/nm-osf3.h: Ditto.
5595         * config/djgpp/djconfig.sh: Ditto.
5596         * config/i386/nm-fbsd.h: Ditto.
5597         * config/i386/nm-i386gnu.h: Ditto.
5598         * config/nm-linux.h: Ditto.
5599         * config/nm-nto.h: Ditto.
5600         * config/rs6000/nm-rs6000.h: Ditto.
5601         * config/sparc/nm-sol2.h: Ditto.
5602         * darwin-nat-info.c: Ditto.
5603         * dfp.c: Ditto.
5604         * dfp.h: Ditto.
5605         * gdb-demangle.h: Ditto.
5606         * i386-darwin-nat.c: Ditto.
5607         * i386-darwin-tdep.c: Ditto.
5608         * linux-fork.h: Ditto.
5609         * m32c-tdep.c: Ditto.
5610         * microblaze-linux-tdep.c: Ditto.
5611         * microblaze-rom.c: Ditto.
5612         * microblaze-tdep.c: Ditto.
5613         * microblaze-tdep.h: Ditto.
5614         * mips-linux-tdep.h: Ditto.
5615         * ppc-ravenscar-thread.c: Ditto.
5616         * ppc-ravenscar-thread.h: Ditto.
5617         * prologue-value.c: Ditto.
5618         * prologue-value.h: Ditto.
5619         * ravenscar-thread.c: Ditto.
5620         * ravenscar-thread.h: Ditto.
5621         * sparc-ravenscar-thread.c: Ditto.
5622         * sparc-ravenscar-thread.h: Ditto.
5623         * tilegx-linux-tdep.c: Ditto.
5624         * unwind_stop_reasons.def: Ditto.
5625         * windows-nat.h: Ditto.
5626         * xtensa-linux-tdep.c: Ditto.
5627         * xtensa-xtregs.c: Ditto.
5628         * regformats/regdat.sh: Ditto.
5629         * regformats/regdef.h: Ditto.
5630
5631 2013-02-12  Pedro Alves  <palves@redhat.com>
5632
5633         * break-catch-sig.c: Update copyright years.
5634
5635 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
5636
5637         Add support for a destructor for ui_out data and use it to
5638         provide a ui_out destructor.
5639         * ui-out.h: Declare the new ui_out destructor.
5640         (ui_out_impl): Add a field for data destructor in ui_out_impl.
5641         * ui-out.c (default_data_destroy): Add a default data destructor
5642         which does nothing.
5643         (default_ui_out_impl): Set the new data_destroy field to
5644         default_data_destroy
5645         (uo_data_destroy): Local function which invokes the data
5646         destructor if present.
5647         (clear_table): Local function which clears the table data of a
5648         ui_out object.
5649         (ui_out_destroy): Public function which frees a ui_out object.
5650         (ui_out_table_end): Use the new clear_table function.
5651         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5652         NULL.
5653         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5654         to NULL.
5655
5656 2013-02-11  Doug Evans  <dje@google.com>
5657
5658         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5659         (printf_decfloat): New function.  Broken out from ui_printf.
5660         Remove unnecessary code to shift the entire format string down.
5661         (printf_pointer): New function.
5662         (ui_printf): Code to print C strings, wide C strings, decfloats,
5663         and pointers moved to separate functions.
5664
5665 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5666
5667         * valops.c (value_assign): Handling bitfield offset in
5668         `lval_internalvar_component' case.
5669
5670 2013-02-08  Doug Evans  <dje@google.com>
5671
5672         * common/format.c (parse_format_string): Fix whitespace.
5673
5674 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
5675
5676         * stack.c (return_command): Work around uninitialized variable
5677         warning.
5678
5679 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
5680
5681         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5682         number of the registers from 36 to 34.
5683
5684 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5685
5686         * NEWS: Mention new AArch64 native and target support.
5687
5688 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5689
5690         * MAINTAINERS (Write After Approval): Add myself.
5691
5692 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
5693             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5694             Nigel Stephens  <nigel.stephens@arm.com>
5695             Yufeng Zhang  <yufeng.zhang@arm.com>
5696
5697         * aarch64-linux-nat.c: New file.
5698         * config/aarch64/linux.mh: New file.
5699         * configure.host: Add AArch64.
5700         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5701
5702 2013-02-07  Doug Evans  <dje@google.com>
5703
5704         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5705         disassemble command.
5706
5707 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5708
5709         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5710         set_gdbarch_fetch_tls_load_module_address.
5711
5712 2013-02-06  David S. Miller  <davem@davemloft.net>
5713
5714         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5715         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5716         * value.c (struct_return_convention): New function.
5717         (using_struct_return): Implement in terms of struct_return_convention.
5718         * value.h (struct_return_convention): Declare.
5719         * stack.c (return_command): Allow successful overriding of the return
5720         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5721
5722 2013-02-06  Tom Tromey  <tromey@redhat.com>
5723
5724         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5725         outside of TRY_CATCH.
5726
5727 2013-02-06  Yao Qi  <yao@codesourcery.com>
5728
5729         * mi/mi-interp.c: Include "tracepoint.h".
5730         (mi_tsv_modified): Declare.
5731         (mi_tsv_created, mi_tsv_deleted): Update declaration.
5732         (mi_interpreter_init): Call observer_attach_tsv_modified.
5733         (mi_tsv_modified): New.
5734         (mi_tsv_created, mi_tsv_deleted): Update.
5735         * tracepoint.c (trace_variable_command): Call
5736         observer_notify_tsv_modified if the initial value of tsv is
5737         changed.
5738         (delete_trace_state_variable): Call
5739         observer_notify_tsv_deleted earlier.
5740         (trace_variable_command): Caller update.
5741         (create_tsv_from_upload): Likewise.
5742         * observer.sh: Declare "struct trace_state_variable".
5743
5744         * NEWS: Mention the new MI notification "=tsv-modified".
5745
5746 2013-02-05  Doug Evans  <dje@google.com>
5747
5748         * completer.c (location_completer): Fix typo in comment.
5749
5750 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5751
5752         * breakpoint.c (add_location_to_breakpoint): Insert the location with
5753         ADDRESS sorted.
5754
5755 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5756
5757         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
5758         Refactor if statement to avoid trailing || operator.
5759
5760 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
5761
5762         * NEWS: Add PowerPC FreeBSD as a new native configuration.
5763
5764 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
5765
5766         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
5767         * configure.host: Add powerpc*-*-freebsd* target.
5768         * configure.tgt: Add target info for powerpc*-*-freebsd*.
5769         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
5770         * config/powerpc/fbsd.mh: New file.
5771
5772 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
5773             Denys Vlasenko  <dvlasenk@redhat.com>
5774             Pedro Alves  <palves@redhat.com>
5775
5776         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
5777         (struct elf_internal_linux_prpsinfo): Forward declare.
5778         * gdbarch.h, gdbarch.c: Regenerate.
5779         * linux-tdep.c: Include `cli/cli-utils.h'.
5780         (linux_fill_prpsinfo): New function.
5781         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
5782         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
5783         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
5784         depending on gdbarch pointer bitness.
5785         * ppc-linux-tdep.c: Include elf-bfd.h.
5786         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
5787         on 32-bit.
5788
5789 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
5790             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5791             Nigel Stephens  <nigel.stephens@arm.com>
5792             Yufeng Zhang  <yufeng.zhang@arm.com>
5793
5794         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
5795
5796 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
5797             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5798             Nigel Stephens  <nigel.stephens@arm.com>
5799             Yufeng Zhang  <yufeng.zhang@arm.com>
5800
5801         * aarch64-newlib-tdep.c: New file.
5802         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
5803         aarch64*-*-elf.
5804         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
5805         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
5806         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
5807         * osabi.c (gdb_osabi_names): Add "Newlib".
5808
5809 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
5810             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5811             Nigel Stephens  <nigel.stephens@arm.com>
5812             Yufeng Zhang  <yufeng.zhang@arm.com>
5813
5814         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
5815         (ALLDEPFILES): Add aarch64-linux-tdep.c.
5816         * aarch64-linux-tdep.c: New file.
5817         * aarch64-linux-tdep.h: New file.
5818         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
5819         * configure.tgt: Add aarch64-none-linux-gnu.
5820
5821 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
5822             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5823             Nigel Stephens  <nigel.stephens@arm.com>
5824             Yufeng Zhang  <yufeng.zhang@arm.com>
5825
5826         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
5827         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
5828         (ALLDEPFILES): Add aarch64-tdep.c.
5829         * aarch64-tdep.c: New file.
5830         * aarch64-tdep.h: New file.
5831         * configure.tgt: Add AArch64.
5832         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
5833         (aarch64-expedite): New definition.
5834         * features/aarch64-core.xml: New file.
5835         * features/aarch64-fpu.xml: New file.
5836         * features/aarch64-without-fpu.c: New file (generated).
5837         * features/aarch64-without-fpu.xml: New file.
5838         * features/aarch64.c: New file (generated).
5839         * features/aarch64.xml: New file.
5840         * regformats/aarch64-without-fpu.dat: New file (generated).
5841         * regformats/aarch64.dat: New file (generated).
5842
5843 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5844
5845         * contrib/expect-read1.c: New file.
5846         * contrib/expect-read1.sh: New file.
5847
5848 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5849
5850         * dwarf2read.c (file_file_name): New function with code from
5851         file_full_name.
5852         (file_full_name): Move most of the code to file_file_name.
5853         (macro_start_file): Rename variable full_name to file_name and use
5854         file_file_name for it.  Add comp_dir parameter to new_macro_table.
5855         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
5856         macro_source_file->filename access by macro_source_fullname call.
5857         * macroscope.c (_initialize_macroscope): Update the new_macro_table
5858         caller.
5859         * macrotab.c (struct macro_table): New field comp_dir.
5860         (macro_include): New variables link_fullname and source_fullname.
5861         Replace any macro_source_file->filename access by macro_source_fullname
5862         call.
5863         (macro_lookup_inclusion): Remove the partial filenames checking code.
5864         (check_for_redefinition): New variables source_fullname and
5865         found_key_fullname.  Replace any macro_source_file->filename access by
5866         macro_source_fullname call.
5867         (macro_undef): New variables source_fullname and key_fullname.  Replace
5868         any macro_source_file->filename access by macro_source_fullname call.
5869         (macro_lookup_definition): New variables retval and source_fullname.
5870         Replace any macro_source_file->filename access by macro_source_fullname
5871         call.
5872         (foreach_macro): New variable key_fullname.  Replace any
5873         macro_source_file->filename access by macro_source_fullname call.
5874         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
5875         macro_source_file->filename access by macro_source_fullname call.
5876         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
5877         (macro_source_fullname): New function.
5878         * macrotab.h (struct macro_source_file): Extent the filename field
5879         comment.
5880         (new_macro_table): New parameter comp_dir, add a comment for it.
5881         (macro_source_fullname): new declaration.
5882
5883 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5884
5885         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
5886         this_real_name to outer block.  Use it also for
5887         compare_filenames_for_search.
5888         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
5889         with dw2_get_real_path for file_matcher, considering also
5890         BASENAMES_MAY_DIFFER.
5891         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
5892
5893 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5894
5895         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
5896         to the file_matcher parameter.  Pass 0 to it.
5897         (dwarf2_create_include_psymtab): Copy also DIRNAME.
5898         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
5899         NULL psymtab_to_fullname result.
5900         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
5901         an expected filename instead.
5902         (expand_symtabs_matching_via_partial): Add basenames parameter to the
5903         file_matcher parameter.  Call also psymtab_to_fullname, after newly
5904         considering BASENAMES_MAY_DIFFER.
5905         * source.c (rewrite_source_path): Remove static.
5906         * source.h (rewrite_source_path): New declaration.
5907         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
5908         the expand_symtabs_matching field.  Comment it.
5909         * symtab.c (file_matches): New function comment.  Add parameter
5910         basenames, implement it.
5911         (search_symbols_file_matches): Add basenames parameter.  Update the
5912         file_matches caller.
5913         (search_symbols): Match FILES also against symtab_to_fullname.
5914         Optimize it for BASENAMES_MAY_DIFFER.
5915
5916 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5917
5918         * source.c (print_source_lines_base): Print for TUI also "fullname".
5919         * tui/tui-data.c (init_content_element): Change tui_locator_element
5920         field to full_name.
5921         * tui/tui-data.h (struct tui_locator_element): Likewise.
5922         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
5923         tui_update_locator_filename calls to tui_update_locator_fullname.
5924         Replace symtab->filename refererence by symtab_to_fullname call.
5925         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
5926         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
5927         field to full_name.  Replace symtab->filename refererence by
5928         symtab_to_fullname call.
5929         (tui_show_symtab_source): Rename parameter to fullname.  Change
5930         tui_locator_element field to full_name.
5931         * tui/tui-stack.c: Include source.h.
5932         (tui_set_locator_filename): Rename the declaration to ...
5933         (tui_set_locator_fullname): ... here.  Rename its parameter to
5934         fullname, updates its comment.
5935         (tui_set_locator_info): Rename its parameter to fullname.
5936         (tui_set_locator_filename): Rename the definition to ...
5937         (tui_set_locator_fullname): ... here.  Rename its parameter to
5938         fullname, updates its comment.  Change tui_locator_element field to
5939         full_name.
5940         (tui_set_locator_info): Rename its parameter to fullname.
5941         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
5942         (tui_update_locator_filename): Rename to ...
5943         (tui_update_locator_fullname): ... here. Rename callee to
5944         tui_set_locator_fullname.
5945         (tui_show_frame_info): Replace symtab->filename refererence by
5946         symtab_to_fullname call.
5947         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
5948         (tui_update_locator_fullname): ... here.
5949         * tui/tui-winsource.c (tui_display_main): Rename the callee to
5950         tui_update_locator_fullname.  Replace symtab->filename refererence by
5951         symtab_to_fullname call.
5952         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
5953         Rename the callee to tui_update_locator_fullname.
5954         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
5955
5956 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5957
5958         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
5959         by symtab_to_filename_for_display calls.
5960         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
5961         (clear_command): New variable sal_fullname, initialize it.  Replace
5962         compare_filenames_for_search by filename_cmp with sal_fullname.
5963         (say_where, update_static_tracepoint): Replace symtab->filename
5964         refererences by symtab_to_filename_for_display calls.
5965         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5966         Likewise.
5967         * dwarf2read.c: Include source.h.
5968         (fixup_go_packaging): Replace symtab->filename refererences by
5969         symtab_to_filename_for_display calls.
5970         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5971         Replace symtab->filename refererences by symtab_to_filename_for_display
5972         calls.
5973         (create_sals_line_offset, convert_linespec_to_sals): New variable
5974         fullname, initialize it, replace symtab->filename reference by the
5975         variable.
5976         * linux-fork.c: Include source.h.
5977         (info_checkpoints_command): Replace symtab->filename refererences by
5978         symtab_to_filename_for_display calls.
5979         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5980         by symtab_to_filename_for_display calls.
5981         * mdebugread.c: Include source.h.
5982         (psymtab_to_symtab_1): Replace symtab->filename refererences by
5983         symtab_to_filename_for_display calls.
5984         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5985         (mi_cmd_file_list_exec_source_files): Likewise.
5986         * printcmd.c: Include source.h.
5987         (build_address_symbolic): Replace symtab->filename refererences by
5988         symtab_to_filename_for_display calls.
5989         * psymtab.c (partial_map_symtabs_matching_filename)
5990         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5991         with psymtab_to_fullname.
5992         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5993         by symtab_to_filename_for_display calls.
5994         (stpy_get_filename): New variable filename, initialize it, use instead
5995         of symtab->filename refererences.
5996         (salpy_str): Make variable filename const char *.  Replace
5997         symtab->filename refererences by symtab_to_filename_for_display calls.
5998         * skip.c: Include source.h and filenames.h.
5999         (skip_file_command): Remove const from the symtab variable.  Replace
6000         symtab->filename refererences by symtab_to_fullname call.
6001         (function_name_is_marked_for_skip): New variables searched_for_fullname
6002         and fullname.  Use them to search also with symtab's fullname.
6003         * source.c (find_source_lines): Replace symtab->filename refererences
6004         by symtab_to_filename_for_display calls.
6005         (print_source_lines_base): New variable filename, use it instead of
6006         symtab->filename.  Replace symtab->filename refererences by
6007         symtab_to_filename_for_display calls.
6008         (line_info, forward_search_command): Replace symtab->filename
6009         refererences by symtab_to_filename_for_display calls.
6010         (reverse_search_command): Replace symtab->filename refererences by
6011         symtab_to_filename_for_display calls.  New variable filename for it.
6012         * stack.c (frame_info): Likewise.
6013         * symmisc.c: Include source.h.
6014         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
6015         (maintenance_info_symtabs): Replace symtab->filename refererences by
6016         symtab_to_filename_for_display calls.
6017         * symtab.c (iterate_over_some_symtabs): Call
6018         compare_filenames_for_search also with symtab_to_fullname.
6019         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
6020         symtab->filename refererences by symtab_to_filename_for_display calls.
6021         (find_line_symtab): Replace symtab->filename refererences by
6022         symtab_to_filename_for_display calls.
6023         (file_matches): Replace filename_cmp by compare_filenames_for_search.
6024         (print_symbol_info): Make the last parameter const char *.  New
6025         variable s_filename.  Use it in the function.
6026         (symtab_symbol_info): Make the last_filename variable const char *.
6027         Replace symtab->filename refererences by symtab_to_filename_for_display
6028         calls.
6029         (rbreak_command): New variable fullname.  Use it.  Replace
6030         symtab->filename refererence by symtab_to_filename_for_display call.
6031         * tracepoint.c (set_traceframe_context, trace_find_line_command)
6032         (print_one_static_tracepoint_marker): Replace symtab->filename
6033         refererences by symtab_to_filename_for_display calls.
6034         * tui/tui-source.c (tui_set_source_content): New variables filename and
6035         s_filename.  Replace symtab->filename refererences by this variable.
6036         Replace other symtab->filename refererences by
6037         symtab_to_filename_for_display calls.
6038
6039 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
6040             Jan Kratochvil  <jan.kratochvil@redhat.com>
6041
6042         Add a new variable that controls a way in which filenames are
6043         displayed.
6044         * NEWS (set filename-display): New entry.
6045         * source.c (filename_display_basename, filename_display_relative)
6046         (filename_display_absolute, filename_display_kind_names)
6047         (filename_display_string, show_filename_display_string)
6048         (symtab_to_filename_for_display): New.
6049         (_initialize_source): Added initialization of 'filename-display'
6050         variable.
6051         * source.h (symtab_to_filename_for_display): Added declaration.
6052         * stack.c (print_frame): Added new variable and calling of a new
6053         function and condition with this variable. Changed third argument of
6054         calling of a function.
6055
6056 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6057
6058         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6059         Rename field reference filename to fullname.
6060         * tui/tui-data.h (struct tui_source_info): Rename field filename to
6061         fullname.  New comment for it.
6062         * tui/tui-source.c (tui_set_source_content): Rename field reference
6063         filename to fullname.  Initialize field by symtab_to_fullname now.
6064         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6065         reference filename to fullname.  Use symtab_to_fullname during
6066         comparison.
6067
6068 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6069
6070         Code cleanup.
6071         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6072         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
6073         filename to fullname.  Rename variable this_name to this_fullname.
6074         Lowercase FILENAME_CMP call.
6075         (dw2_find_symbol_file): New comment for the returned string.
6076         (dwarf2_gdb_index_functions): Rename the function to
6077         dw2_expand_symtabs_with_fullname.
6078         * psymtab.c (read_psymtabs_with_filename): Rename to ...
6079         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
6080         fullname.
6081         (psym_functions): Rename the function to read_psymtabs_with_fullname.
6082         * symfile.h (struct quick_symbol_functions): Rename field
6083         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6084         parameter filename to fullname.  Document returned string meaning for
6085         find_symbol_file.
6086         * symtab.c (find_line_symtab): Rename the called function to
6087         expand_symtabs_with_fullname.
6088
6089 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6090
6091         Code cleanup.
6092         * breakpoint.c (clear_command): Remove variable is_abs, unify the
6093         call of filename_cmp with compare_filenames_for_search.
6094         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6095         is_abs, unify the call of FILENAME_CMP with
6096         compare_filenames_for_search.  New gdb_asserts for real_path and name.
6097         Unify the call of compare_filenames_for_search with FILENAME_CMP.
6098         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6099         * symfile.h (struct quick_symbol_functions): Extend the comment for
6100         map_symtabs_matching_filename.
6101         * symtab.c (compare_filenames_for_search): Remove the function comment
6102         relative path requirement.  Handle absolute filenames, with a comment.
6103         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6104         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
6105         real_path and name.  Unify the call of compare_filenames_for_search
6106         with FILENAME_CMP.
6107         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6108
6109 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6110
6111         Code cleanup.
6112         * breakpoint.c (print_breakpoint_location): Replace bp_location field
6113         source_file references by symtab field references.  Remove variables
6114         sal and fullname.
6115         (momentary_breakpoint_from_master, add_location_to_breakpoint):
6116         (clear_command, say_where): Replace bp_location field source_file
6117         references by symtab field references.
6118         (bp_location_dtor): Remove the source_file reference.
6119         (update_static_tracepoint): Replace bp_location field source_file
6120         references by symtab field references.
6121         (breakpoint_free_objfile): New function.
6122         * breakpoint.h (struct bp_location): Extend the comment for line_number.
6123         Replace the field source_file by field symtab, extend its comment.
6124         (breakpoint_free_objfile): New declaration.
6125         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6126         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6127         field source_file references by symtab field references.
6128
6129 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6130
6131         Replace xfullpath calls by gdb_realpath calls.
6132         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6133         function comment.
6134         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6135         Remove it from the iterate_over_some_symtabs call.
6136         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6137         Remove it from the dw2_map_expand_apply calls, remove a block handling
6138         it.
6139         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6140         Remove it from the iterate_over_some_symtabs call.
6141         (partial_map_symtabs_matching_filename): Remove parameter full_path.
6142         Remove it from the partial_map_expand_apply calls, remove a block
6143         handling it.  Drop gdb_realpath call and cleanups from the real_path
6144         handling.
6145         * source.c (openp): Drop the comment part about xfullpath.  Replace
6146         xfullpath calls by gdb_realpath calls.
6147         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6148         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6149         from method map_symtabs_matching_filename and its comment.
6150         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6151         gdb_realpath call.
6152         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6153         remove it also from the function comment, remove a block handling it.
6154         Drop gdb_realpath call and cleanups from the real_path handling.
6155         (iterate_over_symtabs): Drop variable full_path and its use.
6156         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6157         * utils.c (xfullpath): Remove.
6158         * utils.h (xfullpath): Remove.
6159
6160 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
6161
6162         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6163         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6164         (ALLDEPFILES): Add ppc64-tdep.c.
6165         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6166         ppc64-tdep.o to gdb_target_obs.
6167         * ppc64-tdep.h: New file.
6168         * ppc64-tdep.c: New file.
6169         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6170         ppc-linux-tdep.c to here.
6171         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6172         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6173         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6174         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6175         from ppc-linux-tdep.c to here.
6176         (ppc64_convert_from_func_ptr_addr): Rename from
6177         ppc64_linux_convert_from_func_ptr_addr to
6178         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6179         here.
6180         * rs6000-tdep.c:
6181         (read_insn): Move from ppc-linux-tdep.c to here.
6182         (insns_match_pattern, insn_d_field, insn_ds_field): Move
6183         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6184         * ppc-linux-tdep.c: Include ppc64-tdep.h.
6185         Removed above functions.
6186         (ppc_linux_init_abi): Adjust.
6187
6188 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
6189
6190         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6191
6192 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
6193
6194         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6195
6196 2013-02-01  Pedro Alves  <palves@redhat.com>
6197
6198         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6199         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6200
6201 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6202
6203         * elfread.c (elf_symfile_read): Limit separate debug info additions to
6204         files with no separate debug info.
6205         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6206         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6207         only for files with no separate debug info.
6208
6209 2013-01-31  Tom Tromey  <tromey@redhat.com>
6210
6211         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6212         change type.
6213         (struct jit_program_space_data): Rename from jit_inferior_data.
6214         Update comments.
6215         (get_jit_program_space_data): Rename from get_jit_inferior_data.
6216         Change return type.  Attach data to program space.
6217         (jit_program_space_data_cleanup): Rename from
6218         jit_inferior_data_cleanup; change argument type.
6219         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6220         change type.
6221         (jit_register_code): Update.
6222         (jit_update_inferior_cache): Remove.
6223         (jit_breakpoint_deleted): Get jit data from the location's program
6224         space.
6225         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6226         'ps_data', change type.
6227         (jit_inferior_init, jit_breakpoint_re_set_internal)
6228         (jit_event_handler): Update.
6229         (free_objfile_data): Get data from objfile's program space.
6230         (_initialize_jit): Update.
6231
6232 2013-01-31  Tom Tromey  <tromey@redhat.com>
6233
6234         PR gdb/13987:
6235         * jit.c (struct jit_inferior_data) <cached_code_address,
6236         jit_breakpoint>: New fields.
6237         (jit_breakpoint_re_set_internal): Fix logging.  Only create
6238         breakpoint if cached address has changed.
6239         (jit_update_inferior_cache, jit_breakpoint_deleted): New
6240         functions.
6241         (_initialize_jit): Register breakpoint deleted observer.
6242
6243 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6244
6245         * infrun.c (handle_syscall_event): Remove unused gdbarch.
6246         (save_infcall_suspend_state): Ifdef out unused inf.
6247         (restore_infcall_suspend_state): Ifdef out unused inf.
6248         * jit.c (jit_register_code): Remove unused i, b, inf_data.
6249         (jit_frame_sniffer): Remove unused inf_data.
6250
6251 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6252
6253         * c-exp.y (classify_inner_name): Remove unused type.
6254         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6255         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6256         need_escape.
6257         (c_get_string): Remove unused kind.
6258         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6259
6260 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6261
6262         * charset.c (intermediate_encoding): Remove unused i.
6263         * completer.c (signal_completer): Remove unused i.
6264         * continuations.c (discard_my_continuations_1): Remove unused
6265         continuation_ptr.
6266         * corelow.c (core_close): Remove unuseD name.
6267         (get_core_siginfo): Remove unused pid.
6268         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6269         i, cps.
6270         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6271         (loclist_describe_location): Remove unused first.
6272         * event-top.c (command_line_handler): Remove unused got_eof.
6273         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6274         (resize_section_table): Remove unused old_value.
6275         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6276         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6277         * i386-tdep.c (i386_process_record): Remove unused rex.
6278         * infcmd.c (get_return_value): Remove unused uiout.
6279         * jv-lang.c (type_from_class): Remove unused is_array.
6280         * jv-valprint.c (java_val_print): Remove unused i.
6281         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6282         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6283         * m2-typeprint.c (m2_print_type): Remove unused code.
6284         * macroexp.c (get_character_constant): Remove unused body_start.
6285         (macro_stringify): Remove unused result.
6286         * objc-lang.c (find_methods): Remove unused gdbarch.
6287         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6288         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6289         * stack.c (print_frame_args): Remove unused summary.
6290         * thread.c (thread_apply_command): Remove unused p.
6291         * valarith.c (value_x_unop): Remove unused mangle_ptr.
6292         * valops.c (search_struct_method): Remove unused skip.
6293         * valprint.c (generic_val_print): Remove unused byte_order.
6294         * varobj.c (varobj_update): Remove unused changed.
6295         * cli/cli-cmds.c (complete_command): Remove unused next_item.
6296         (alias_command): Remove unused c.
6297         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6298         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6299         format.
6300         (mi_cmd_data_write_memory): Remove unused word_format.
6301         (mi_cmd_data_write_memory_bytes): Remove unused r.
6302         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6303         p_start, p_end.
6304         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6305         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6306         line_width.
6307
6308 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6309
6310         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6311         * symtab.c (iterate_over_symtabs): Remove unused s.
6312         (find_pc_sect_symtab): Remove unused pspAce.
6313         (find_pc_sect_line): Remove unused alt_symtab.
6314         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6315         (completion_list_add_name): Remove unused newsize.
6316
6317 2013-01-31  Tom Tromey  <tromey@redhat.com>
6318
6319         PR c++/14998:
6320         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6321         TYPE_CODE_FUNC.
6322
6323 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6324
6325         * target.c (target_read_string): Remove unused origlen.
6326
6327 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6328
6329         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6330         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6331         * ax-general.c (ax_print): Remove unused is_float.
6332         * blockframe.c (block_innermost_frame): Remove unused start, end.
6333         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6334
6335 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6336
6337         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6338         (svr4_read_so_list): Remove unused lmo.
6339         * solib-target.c (solib_target_relocate_section_addresses): Remove
6340         unused flags.
6341
6342 2013-01-30  Tom Tromey  <tromey@redhat.com>
6343
6344         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6345
6346 2013-01-30  Tom Tromey  <tromey@redhat.com>
6347
6348         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6349         * utils.c (gnu_debuglink_crc32): Remove.
6350         * utils.h (gnu_debuglink_crc32): Don't declare.
6351
6352 2013-01-30  Tom Tromey  <tromey@redhat.com>
6353
6354         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6355         (read_structure_type, read_enumeration_type): Remove cast.
6356
6357 2013-01-30  Tom Tromey  <tromey@redhat.com>
6358
6359         * dwarf2read.c (read_namespace_type): Remove cast.
6360         (read_typedef): Likewise.
6361
6362 2013-01-29  Tom Tromey  <tromey@redhat.com>
6363
6364         * dwarf2read.c (free_dwo_file): Remove assert.
6365
6366 2013-01-29  Tom Tromey  <tromey@redhat.com>
6367
6368         * value.c (deprecated_set_value_modifiable): Remove.
6369         * value.h (deprecated_set_value_modifiable): Remove.
6370
6371 2013-01-28  Doug Evans  <dje@google.com>
6372
6373         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6374         to addresses from dwo files.
6375
6376 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
6377
6378         * valops.c (find_overload_match): Remove unused argument 'lax'.
6379         * value.h: Remove unused argument 'lax' from the declaration of
6380         find_overload_match.
6381         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6382         to find_overload_match.
6383         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6384         argument to find_overload_match.
6385
6386 2013-01-25  Tom Tromey  <tromey@redhat.com>
6387
6388         * dwarf2read.c (processing_has_namespace_info): Remove.
6389         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6390         (process_die, read_func_scope, dwarf2_start_symtab)
6391         (new_symbol_full): Update.
6392
6393 2013-01-25  Tom Tromey  <tromey@redhat.com>
6394
6395         * cp-namespace.c (cp_set_block_scope): Remove.
6396         * cp-support.h (cp_set_block_scope): Remove.
6397         * dbxread.c: Include block.h.
6398         (cp_set_block_scope): New function.
6399         (process_one_symbol): Update.
6400         * dwarf2read.c (read_func_scope): Use block_set_scope.
6401
6402 2013-01-25  Pedro Alves  <palves@redhat.com>
6403
6404         * remote.c (add_current_inferior_and_thread): Tweak comment.
6405
6406 2013-01-25  Tom Tromey  <tromey@redhat.com>
6407
6408         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6409         (cp_add_using_directive): Add 'copy_names' argument.
6410         * cp-support.h (cp_add_using_directive): Update.
6411         (struct using_direct) <import_src, import_dest, alias,
6412         declaration>: Now const.
6413         * dwarf2read.c (read_import_statement): Use obconcat.
6414         Don't copy names passed to cp_add_using_directive.
6415
6416 2013-01-25  Tom Tromey  <tromey@redhat.com>
6417
6418         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6419
6420 2013-01-25  Pedro Alves  <palves@redhat.com>
6421
6422         * remote.c (stop_reply_extract_thread): New.
6423         (add_current_inferior_and_thread): New parameter 'wait_status'.
6424         Handle it.
6425         (remote_start_remote): Pass wait status to
6426         add_current_inferior_and_thread.
6427         (extended_remote_run): Update comment.
6428         (extended_remote_create_inferior_1): Pass wait status to
6429         add_current_inferior_and_thread.
6430
6431 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
6432             Ulrich Weigand  <uweigand@de.ibm.com>
6433
6434         * valarith.c (value_vector_widen): New function for replicating a
6435         scalar into a vector.
6436         (value_binop): Use value_vector_widen to widen scalar to vector
6437         rather than casting, this better matches gcc C behaviour.
6438         * valops.c (value_casst): Update logic for casting between vector
6439         types, and for casting from scalar to vector, try to match gcc C
6440         behaviour.
6441         * value.h (value_vector_widen): Declare.
6442         * opencl-lang.c (opencl_value_cast): New opencl specific casting
6443         function, handle special case for casting scalar to vector.
6444         (opencl_relop): Use opencl_value_cast.
6445         (evaluate_subexp_opencl): Use opencl_value_cast instead of
6446         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
6447         in order to use opencl_value_cast.
6448
6449 2013-01-25  Yao Qi  <yao@codesourcery.com>
6450
6451         * event-loop.c: Include "queue.h".
6452         (gdb_event_p): New typedef.
6453         (DECLARE_QUEUE_P): Use.
6454         (DEFINE_QUEUE_P): Use.
6455         (async_queue_event): Remove.
6456         (gdb_event_xfree): New.
6457         (initialize_event_loop): New.
6458         (process_event): Use QUEUE macros.
6459         (event_queue): Remove.
6460         (gdb_wait_for_event): Caller update.
6461         (check_async_event_handlers): Likewise.
6462         (poll_timers): Likewise.
6463         * event-loop.h (initialize_event_loop): Declare.
6464         * event-loop.c (gdb_event_xfree): New.
6465         * top.c (gdb_init): Call initialize_event_loop.
6466
6467 2013-01-25  Yao Qi  <yao@codesourcery.com>
6468
6469         * event-loop.c (async_queue_event): Remove one parameter
6470         'position'.  Remove code handling 'position' == TAIL.
6471         (gdb_wait_for_event): Caller update.
6472         (check_async_event_handlers): Caller update.
6473         (poll_timers): Caller update.
6474         * event-loop.h (enum queue_position): Remove.
6475
6476 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
6477
6478         * MAINTAINERS: Update my email.
6479
6480 2013-01-25  Yao Qi  <yao@codesourcery.com>
6481
6482         * main.c (print_gdb_help): Remove "--epoch" from the help
6483         message.
6484
6485 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
6486
6487         * symtab.c (skip_prologue_using_sal): Consider a file
6488         change the same as an increased line number
6489
6490 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6491
6492         * MAINTAINERS (Write After Approval): Add myself to the list.
6493
6494 2013-01-24  Tom Tromey  <tromey@redhat.com>
6495
6496         * ada-lang.h (ada_decode_symbol): Make return type const.
6497         * ada-lang.c (ada_decode_symbol): Likewise.
6498
6499 2013-01-23  Doug Evans  <dje@google.com>
6500
6501         * linespec.c (find_linespec_symbols): Make static.
6502
6503 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6504
6505         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
6506         type on float conversion for complex type.
6507
6508 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
6509
6510         Add a new class gdb.Architecture which exposes GDB's
6511         internal representation of architecture via GDB Python API.
6512         * Makefile.in: Add entries corresponding to the new file
6513         python/py-arch.c.
6514         * NEWS (Python Scripting): Add entries for the new class
6515         gdb.Architecture and the new method gdb.Frame.architecture.
6516         * python/py-arch.c: Implement gdb.Architecture class.
6517         * python/py-frame.c (frapy_arch): Implement the method
6518         gdb.Frame.architecture().
6519         (frame_object_methods): Add 'architecture' to the method table.
6520         * python/python-internal.h: Add declarations of new utility
6521         functions.
6522         * python/python.c (_initialize_python): Initialize
6523         gdb.Architecture class.
6524
6525 2013-01-23  Doug Evans  <dje@google.com>
6526
6527         Work around binutils/15021.
6528         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6529         type_unit_group out of union s.  All uses updated.
6530         (read_index_from_section): Watch for index version 8.
6531         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6532         an imported symtab.
6533         (write_psymtabs_to_index): Increment version number to 8.
6534
6535 2013-01-22  Pedro Alves  <palves@redhat.com>
6536
6537         * annotate.c (breakpoint_changed): Skip if breakpoint is not
6538         user-visible.
6539
6540 2013-01-22  Pedro Alves  <palves@redhat.com>
6541
6542         * annotate.c (annotate_breakpoints_changed): Rename to ...
6543         (annotate_breakpoints_invalid): ... this.  Make static.
6544         (breakpoint_changed): Adjust.
6545         (_initialize_annotate): Always install the observers.  Install a
6546         "breakpoint_created" observer.
6547         * annotate.h (annotate_breakpoints_changed): Delete declaration.
6548         * breakpoint.c (set_breakpoint_condition)
6549         (breakpoint_set_commands, do_map_commands_command)
6550         (init_raw_breakpoint, clear_command, set_ignore_count)
6551         (enable_breakpoint_disp): No longer call
6552         annotate_breakpoints_changed.
6553
6554 2013-01-22  Pedro Alves  <palves@redhat.com>
6555
6556         * annotate.c: Include "inferior.h".
6557         (frames_invalid_emitted)
6558         (breakpoints_invalid_emitted): New globals.
6559         (async_background_execution_p): New function.
6560         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6561         emitting the annotation if it has already been emitted.
6562         (annotate_display_prompt): New function.
6563         * annotate.h (annotate_display_prompt): New declaration.
6564         * event-top.c: Include annotate.h.
6565         (display_gdb_prompt): Call annotate_display_prompt.
6566
6567 2013-01-22  Pedro Alves  <palves@redhat.com>
6568
6569         * annotate.c (ignore_count_changed): Delete.
6570         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6571         (annotate_ignore_count_change): Delete.
6572         (annotate_stopped): Don't emit a delayed breakpoints-changed
6573         annotation.
6574         * annotate.h (annotate_ignore_count_change): Delete.
6575         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6576         annotate_ignore_count_change.
6577
6578 2013-01-22  Tom Tromey  <tromey@redhat.com>
6579
6580         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6581         require_rvalue for a register location.
6582
6583 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
6584
6585         * breakpoint.c (print_one_breakpoint_location): Add MI
6586         field 'thread-groups' when printing a breakpoint.
6587         (output_thread_groups): New function.
6588
6589 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
6590
6591         * python/lib/gdb/commands/explore.py
6592         (CompoundExplorer.explore_expr): Correct the name of a method
6593         being invoked.
6594         (ExploreTypeCommand.invoke): Add a missing 'return'.
6595
6596 2013-01-21  Tom Tromey  <tromey@redhat.com>
6597
6598         * gdb_obstack.h (obconcat): Move declaration here, from...
6599         * symfile.h (obconcat): ... here.
6600         * gdb_obstack.c: New file.
6601         (obconcat): Move from...
6602         * symfile.c (obconcat): ... here.
6603         * Makefile.in (SFILES): Add gdb_obstack.c.
6604         (COMMON_OBS): Add gdb_obstack.o.
6605
6606 2013-01-21  Tom Tromey  <tromey@redhat.com>
6607
6608         * symfile.h (obsavestring): Don't declare.
6609         * symfile.c (obsavestring): Remove.
6610         * ada-exp.y: Use obstack_copy0, not obsavestring.
6611         * ada-lang.c: Use obstack_copy0, not obsavestring.
6612         * coffread.c: Use obstack_copy0, not obsavestring.
6613         * cp-namespace.c: Use obstack_copy0, not obsavestring.
6614         * dbxread.c: Use obstack_copy0, not obsavestring.
6615         * dwarf2read.c: Use obstack_copy0, not obsavestring.
6616         * jit.c: Use obstack_copy0, not obsavestring.
6617         * mdebugread.c: Use obstack_copy0, not obsavestring.
6618         * psymtab.c: Use obstack_copy0, not obsavestring.
6619         * stabsread.c: Use obstack_copy0, not obsavestring.
6620         * xcoffread.c: Use obstack_copy0, not obsavestring.
6621
6622 2013-01-21  Tom Tromey  <tromey@redhat.com>
6623
6624         * dwarf2read.c (fixup_go_packaging): Save package name
6625         on objfile obstack.
6626         * gdbtypes.c (init_type): Don't copy name.
6627
6628 2013-01-21  Tom Tromey  <tromey@redhat.com>
6629
6630         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6631         const.
6632         (struct attribute) <u.str>: Now const.
6633         (struct fnfieldlist) <name>: Now const.
6634         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6635         (partial_die_parent_scope): Make return type const.
6636         (partial_die_full_name, add_partial_symbol): Update.
6637         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6638         'name' const.
6639         (find_file_and_directory): Make 'name' and 'comp_dir' const.
6640         (read_file_scope, read_func_scope, dwarf2_add_field)
6641         (dwarf2_add_member_fn, read_structure_type)
6642         (process_enumeration_scope, read_array_type, read_module_type)
6643         (read_base_type, read_subrange_type): Update.
6644         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6645         (new_symbol_full, guess_full_die_structure_name): Update.
6646         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
6647         (dwarf2_name): Return const type.
6648         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6649         const.
6650
6651 2013-01-21  Tom Tromey  <tromey@redhat.com>
6652
6653         * gdbtypes.c (init_type): Make 'name' const.
6654         * gdbtypes.h (init_type): Update.
6655
6656 2013-01-21  Tom Tromey  <tromey@redhat.com>
6657
6658         * buildsym.c (patch_subfile_names): Use set_last_source_file.
6659         (start_symtab): Make 'name' and 'dirname' const.  Use
6660         set_last_source_file.
6661         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6662         (last_source_file): Define.  Now static.
6663         (set_last_source_file, get_last_source_file): New functions.
6664         * buildsym.h (last_source_file): Don't declare.
6665         (start_symtab): Update.
6666         (set_last_source_file, get_last_source_file): Declare.
6667         * coffread.c (complete_symtab): Use set_last_source_file.
6668         (coff_end_symtab): Likewise.
6669         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6670         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6671         set_last_source_file.
6672         (process_one_symbol): Use get_last_source_file.
6673         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6674         (psymtab_to_symtab_1): Use get_last_source_file.
6675         * xcoffread.c (process_linenos): Use get_last_source_file.
6676         (complete_symtab): Use set_last_source_file.
6677         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6678         (scan_xcoff_symtab): Use set_last_source_file.
6679
6680 2013-01-21  Tom Tromey  <tromey@redhat.com>
6681
6682         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6683         (symbol_set_names): Remove casts.  Handle field const-ness.
6684
6685 2013-01-21  Tom Tromey  <tromey@redhat.com>
6686
6687         * dwarf2read.c (new_symbol_full): Remove cast.
6688         * symtab.c (symbol_set_demangled_name): Make 'name' const.
6689         * symtab.h (symbol_set_demangled_name): Update.
6690
6691 2013-01-21  Tom Tromey  <tromey@redhat.com>
6692
6693         * main.c (captured_main): Call bfd_init.
6694
6695 2013-01-21  Tom Tromey  <tromey@redhat.com>
6696
6697         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6698         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6699         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6700         * NEWS: Update.
6701
6702 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6703
6704         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6705
6706 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6707
6708         Fix gdb.fortran/common-block.exp crash in PIE mode.
6709         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6710         LOC_COMMON_BLOCK.
6711         * f-valprint.c (info_common_command_for_block): Expect
6712         LOC_COMMON_BLOCK in gdb_assert.
6713         * symtab.h (struct general_symbol_info): Update comment for the
6714         common_block member.
6715         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6716         (enum address_class): New member LOC_COMMON_BLOCK.
6717
6718 2013-01-18  David Blaikie  <dblaikie@gmail.com>
6719
6720         * MAINTAINERS (Write After Approval): Add "David Blaikie".
6721
6722 2013-01-18  Tom Tromey  <tromey@redhat.com>
6723
6724         PR c++/14999:
6725         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6726         Call require_rvalue.
6727
6728 2013-01-18  Yao Qi  <yao@codesourcery.com>
6729
6730         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6731         (dbx_read_symtab): New declaration.
6732         (dbx_psymtab_to_symtab): Delete.
6733         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
6734         Rename parameter PST to SELF.  Exchanged two parameters.
6735         (start_psymtab): Caller update.
6736         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
6737         (dwarf2_read_symtab): New declaration.
6738         (dwarf2_psymtab_to_symtab): Delete.
6739         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
6740         Rename parameter PST to SELF.  Exchanged two parameters.
6741         (create_partial_symtab): Caller update.
6742         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
6743         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
6744         Rename parameter PST to SELF.  Exchanged two parameters.
6745         (parse_partial_symbols, new_psymtab): Caller update.
6746         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
6747         two parameters.
6748         * psymtab.c (psymtab_to_symtab): Caller update.
6749         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
6750         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
6751         Rename parameter PST to SELF.  Exchanged two parameters.
6752         (xcoff_start_psymtab): Caller update.
6753
6754 2013-01-18  Yao Qi  <yao@codesourcery.com>
6755
6756         * infrun.c (proceed): Rename local variable 'oneproc' to
6757         'force_step'.
6758
6759 2013-01-17  Doug Evans  <dje@google.com>
6760
6761         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
6762         (dw2_build_type_unit_groups): Delete.  All uses updated.
6763
6764         * symtab.h (struct symbol_search): Add comment.
6765
6766 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6767
6768         * symtab.c (compare_filenames_for_search): New comment for
6769         HAS_DRIVE_SPEC.
6770
6771 2013-01-17  Tom Tromey  <tromey@redhat.com>
6772
6773         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
6774
6775 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6776
6777         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
6778         initialize it by existing make_cleanup.  Call new do_cleanups.
6779
6780 2013-01-17  Tom Tromey  <tromey@redhat.com>
6781
6782         * cp-abi.c (cp_abi_completer): New function.
6783         (_initialize_cp_abi): Set completer for "set cp-abi".
6784
6785 2013-01-17  Tom Tromey  <tromey@redhat.com>
6786
6787         * mem-break.c: Remove obsolete comment.
6788         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
6789
6790 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
6791
6792         * jit.c (jit_reader_load_command): Interpret the jit reader name
6793         as an absolute path if it begins with a forward slash.
6794
6795 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
6796
6797         PR gdb/14550
6798
6799         * jit.c (finalize_symtab): Ensure that only the global block has a
6800         NULL superblock.
6801
6802 2013-01-17  Pedro Alves  <palves@redhat.com>
6803
6804         * acinclude.m4: Include ../config/plugins.m4,
6805         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
6806         * Makefile.in (aclocal_m4_deps): Update.
6807         * aclocal.m4: Renegerate.
6808
6809 2013-01-16  Doug Evans  <dje@google.com>
6810
6811         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
6812
6813 2013-01-16  Pedro Alves  <palves@redhat.com>
6814             Tom Tromey  <tromey@redhat.com>
6815
6816         PR cli/7221:
6817         * NEWS: Add "catch signal".
6818         * breakpoint.c (base_breakpoint_ops): No longer static.
6819         (bpstat_explains_signal): New function.
6820         (init_catchpoint): No longer static.
6821         (base_breakpoint_explains_signal): New function.
6822         (base_breakpoint_ops): Initialize new field.
6823         * breakpoint.h (enum bpstat_signal_value): New.
6824         (struct breakpoint_ops) <explains_signal>: New field.
6825         (bpstat_explains_signal): Remove macro, declare as function.
6826         (base_breakpoint_ops, init_catchpoint): Declare.
6827         * break-catch-sig.c: New file.
6828         * inferior.h (signal_catch_update): Declare.
6829         * infrun.c (signal_catch): New global.
6830         (handle_syscall_event): Update for change to
6831         bpstat_explains_signal.
6832         (handle_inferior_event): Likewise.  Always handle random signals
6833         via bpstats.
6834         (signal_cache_update): Check signal_catch.
6835         (signal_catch_update): New function.
6836         (_initialize_infrun): Initialize signal_catch.
6837         * Makefile.in (SFILES): Add break-catch-sig.c.
6838         (COMMON_OBS): Add break-catch-sig.o.
6839
6840 2013-01-16  Tom Tromey  <tromey@redhat.com>
6841
6842         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
6843         (print_one_catch_solib, print_one_catch_syscall)
6844         (print_one_catch_exec, print_one_exception_catchpoint): Emit
6845         "catch-type".
6846
6847 2013-01-16  Yao Qi  <yao@codesourcery.com>
6848
6849         * printcmd.c (current_display_number): Make it static.
6850
6851 2013-01-16  Yao Qi  <yao@codesourcery.com>
6852
6853         * infcmd.c (step_once): Don't check '!single_inst' as it was
6854         checked before.
6855
6856 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6857
6858         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
6859
6860 2013-01-14  Tom Tromey  <tromey@redhat.com>
6861
6862         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
6863         set command.
6864         * command.h (add_setshow_string_noescape_cmd): Update.
6865         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
6866         (complete_set_gnutarget): New function.
6867         (_initialize_core): Set the "set gnutarget" completer.
6868
6869 2013-01-14  Tom Tromey  <tromey@redhat.com>
6870
6871         PR symtab/14442:
6872         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
6873         (c_type_print_modifier): Likewise.
6874         * dwarf2read.c (read_tag_restrict_type): New function.
6875         (read_type_die_1): Handle DW_TAG_restrict_type.
6876         * gdbtypes.c (make_restrict_type): New function.
6877         (recursive_dump_type): Handle TYPE_RESTRICT.
6878         * gdbtypes.h (enum type_flag_values): Renumber.
6879         (enum type_instance_flag_value): Add
6880         TYPE_INSTANCE_FLAG_RESTRICT.
6881         (TYPE_RESTRICT): New macro.
6882         (make_restrict_type): Declare.
6883
6884 2013-01-14  Tom Tromey  <tromey@redhat.com>
6885
6886         PR symtab/14931:
6887         * psymtab.c (struct psymtab_state): New.
6888         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
6889         functions.
6890         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
6891         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
6892
6893 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
6894             Pedro Alves  <palves@redhat.com>
6895
6896         PR remote/14786
6897
6898         * remote.c (remote_threads_info): Make a copy of the reply from
6899         qfThreadInfo and use that instead of rs->buf.
6900
6901 2013-01-14  Yao Qi  <yao@codesourcery.com>
6902
6903         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
6904         (dbx_psymtab_to_symtab): Likewise.
6905         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
6906         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
6907         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
6908
6909 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6910
6911         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
6912         make_cleanup_restore_current_language.  Call set_language.  Move
6913         OLD_CHAIN and INNER_CHAIN cleanups.
6914         * utils.c (do_restore_current_language)
6915         (make_cleanup_restore_current_language): New functions.
6916         * utils.h (make_cleanup_restore_current_language): New declaration.
6917
6918 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6919
6920         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
6921         non-existing files.
6922
6923         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
6924         non-existing files if FILENAME is already absolute.
6925
6926 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6927
6928         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
6929         fputs_filtered.  Append trailing newline.
6930
6931 2013-01-11  Yao Qi  <yao@codesourcery.com>
6932             Stan Shebs  <stan@codesourcery.com>
6933
6934         * psymtab.c (init_psymbol_list): Clarify the comment.
6935
6936 2013-01-11  Yao Qi  <yao@codesourcery.com>
6937
6938         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
6939         (update_dprintf_command_list): Assert that 'printf_line' is
6940         non-null.  Remove condition check.
6941
6942 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6943
6944         Code cleanup.
6945         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
6946         type const char *.
6947         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
6948         const char *.
6949         * tui/tui-source.h (tui_source_is_displayed): Likewise.
6950
6951 2013-01-09  Anthony Green  <green@moxielogic.com>
6952
6953         * cp-abi.c (cplus_print_vtable): Don't return value from void
6954         function.
6955         * ada-lang.c (re_set_catch_assert): Ditto.
6956
6957 2013-01-09  Doug Evans  <dje@google.com>
6958
6959         * symfile.h (quick_symbol_functions): Delete member
6960         pre_expand_symtabs_matching.  All uses removed.
6961         * dwarf2read.c (dw2_lookup_symbol): Implement.
6962         (dw2_do_expand_symtabs_matching): Delete.
6963         (dw2_pre_expand_symtabs_matching): Delete.
6964         (struct dw2_symtab_iterator): New type.
6965         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6966         (dw2_expand_symtabs_for_function): Rewrite.
6967         (dwarf2_gdb_index_functions): Update.
6968         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6969         (psym_functions): Update.
6970
6971 2013-01-09  Tom Tromey  <tromey@redhat.com>
6972
6973         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6974         * configure: Rebuild.
6975         * configure.ac: Add somread.o to the build if BFD has SOM
6976         support.
6977         * somread.c: Include som/aout.h, not syms.h.
6978         (som_symtab_read): Use som_external_symbol_dictionary_record.
6979         Unpack records manually.
6980         (_initialize_somread): Declare.
6981
6982 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
6983
6984         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6985         Cast return_address to 64bits.
6986
6987 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
6988
6989         * printcmd.c: Remove define of function output_command.
6990         * tracepoint.c: Remove extern of function output_command.
6991         * valprint.h: (output_command): New extern.
6992
6993 2013-01-07  Tom Tromey  <tromey@redhat.com>
6994
6995         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6996         Remove.
6997         (objc_language_defn): Use c_printchar, c_printstr,
6998         c_emit_char.
6999
7000 2013-01-07  Tom Tromey  <tromey@redhat.com>
7001
7002         PR cli/7719:
7003         * NEWS: Update.
7004         * ada-valprint.c (printstr, print_field_values): Remove
7005         "inspect_it" code.
7006         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
7007         code.
7008         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
7009         code.
7010         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
7011         * main.c (captured_main): Remove "epoch" argument.
7012         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
7013         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
7014         * p-valprint.c (pascal_object_print_value_fields): Remove
7015         "inspect_it" code.
7016         * printcmd.c (print_command_1): Remove 'inspect' argument.
7017         (print_command, call_command): Update.
7018         (inspect_command): Remove.
7019         (_initialize_printcmd): Make "inspect" an alias for "print".
7020         * top.c (epoch_interface): Remove.
7021         * top.h (epoch_interface): Remove.
7022         * valprint.c (user_print_options): Update.
7023         (print_converted_chars_to_obstack): Remove "inspect_it" code.
7024         * valprint.h (struct value_print_options) <inspect_it>: Remove
7025         field.
7026
7027 2013-01-04  Tom Tromey  <tromey@redhat.com>
7028
7029         * valprint.h (read_string): Add 'extern'.
7030
7031 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
7032
7033         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
7034         used to decide whether to define darwin_read_dyld_info or not.
7035
7036 2013-01-03  Pierre Muller  <muller@sourceware.org>
7037
7038         * main.c (relocate_gdb_directory): Avoid calling stat function
7039         if DIR is empty.
7040
7041 2013-01-03  Yao Qi  <yao@codesourcery.com>
7042
7043         * psymtab.c (fixup_psymbol_section): Update declaration.
7044         (fixup_psymbol_section): Remove code returning value.
7045
7046 2013-01-03  Yao Qi  <yao@codesourcery.com>
7047
7048         * symtab.h: Remove some out of date comments.
7049          (enum exception_event_kind): Move it ...
7050         * breakpoint.c: ... here.
7051
7052 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
7053
7054         PR gdb/14405
7055         * darwin-nat.c (darwin_read_dyld_info): Only build if
7056         TASK_DYLD_INFO_COUNT is defined.
7057         (darwin_xfer_partial): Call darwin_read_dyld_info only if
7058         TASK_DYLD_INFO_COUNT is defined.
7059
7060 2013-01-02  Tom Tromey  <tromey@redhat.com>
7061
7062         * symfile.h (struct ecoff_debug_hack): Remove.
7063         * objfiles.c: Don't include mdebugread.h.
7064
7065 2013-01-02  Tom Tromey  <tromey@redhat.com>
7066
7067         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7068         * configure.ac: Check for Mach-O support in BFD.  Update
7069         CONFIG_OBS.
7070         * configure: Rebuild.
7071
7072 2013-01-02  Tom Tromey  <tromey@redhat.com>
7073
7074         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7075         * configure.ac: Use GDB_AC_CHECK_BFD.
7076         * configure: Rebuild.
7077
7078 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
7079
7080         * MAINTAINERS: Update my email.
7081
7082 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7083
7084         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7085
7086 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7087
7088         * rs6000-nat.c (bss_data_overlap): New function.
7089         (vmap_symtab): Use it to adjust the .bss section's offset.
7090
7091 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7092
7093         Update year range in copyright notice of all files.
7094
7095 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
7096
7097         * top.c (print_gdb_version): Update copyright year.
7098
7099 For older changes see ChangeLog-2012.
7100 \f
7101 Local Variables:
7102 mode: change-log
7103 left-margin: 8
7104 fill-column: 74
7105 version-control: never
7106 coding: utf-8
7107 End: