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