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