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