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