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