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