1 2011-11-20 Sanjoy Das <sdas@igalia.com>
3 * jit.c: Include regcache.h.
4 (jit_gdbarch_data, jit_frame_unwind): New static variables.
5 (jit_unwind_reg_set_impl, free_reg_value_impl)
6 (jit_unwind_reg_get_impl, jit_frame_sniffer)
7 (jit_frame_unwind_stop_reason, jit_frame_this_id)
8 (jit_frame_prev_register, jit_dealloc_cache)
9 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
10 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
12 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
14 2011-11-20 Sanjoy Das <sdas@igalia.com>
16 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
17 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
18 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
19 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
20 (finalize_symtab, jit_object_close_impl)
21 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
22 (free_objfile_data): New functions.
23 (_initialize_jit): Register jit_objfile_data with a proper cleanup
26 2011-11-20 Sanjoy Das <sdas@igalia.com>
28 * jit.c: Include gdb-dlfcn.h.
29 (loaded_jit_reader, reader_init_fn_sym): New static variables.
30 (jit_reader_load, jit_reader_load_command)
31 (jit_reader_unload_command): New functions.
32 (_initialize_jit): Add commands "jit-reader-load" and
35 2011-11-20 Sanjoy Das <sdas@igalia.com>
37 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
38 * config.in: Add new #define HAVE_LIBDL.
39 * configure.ac: Add check for -ldl.
40 * configure: Re-generated by autoconf.
41 * gdb-dlfcn.c: New file.
42 * gdb-dlfcn.h: New file.
44 2011-11-20 Sanjoy Das <sdas@igalia.com>
46 * config.in: Add new #defines: JIT_READER_DIR and
47 JIT_READER_DIR_RELOCATABLE.
48 * configure.ac: New GDB directory entry for jit-reader-dir.
49 * configure: Re-generated by autoconf.
50 * jit.c: New static variable: const char *jit_reader_dir.
51 (_initialize_jit): Relocate jit_reader_dir.
53 2011-11-20 Sanjoy Das <sdas@igalia.com>
55 * Makefile.in: Add jit-reader.h as a header. Have it installed in
57 * configure.ac: Generate a correct value for TARGET_PTR for
58 jit-reader.h. Tell configure to generate jit-reader.h from
60 * configure: Re-generated by autoconf.
61 * jit-reader.in: New file.
62 * jit.c: Include jit-reader.h.
64 2011-11-20 Sanjoy Das <sdas@igalia.com>
66 * MAINTAINERS (Write After Approval): Add myself to the list.
68 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
70 * findvar.c (read_frame_register_value): Respect value_offset
71 of the register value. Remove big-endian special case.
73 2011-11-18 Tom Tromey <tromey@redhat.com>
76 * remote.c (putpkt_for_catch_errors): New function.
77 (remote_kill): Use it.
79 2011-11-18 Yao Qi <yao@codesourcery.com>
81 * breakpoint.c (create_breakpoint): Produce query message according to
83 Allocate tracepoint per correct type.
84 Don't check SALs for pending fast tracepoints.
85 * tracepoint.c (process_tracepoint_on_disconnect): New.
86 (disconnect_tracing): Call process_tracepoint_on_disconnect.
88 2011-11-18 Yao Qi <yao@codesourcery.com>
90 * breakpoint.c (install_breakpoint): Add one more parameter so that
91 update_global_location_list is called conditionally.
92 (create_fork_vfork_event_catchpoint): Update.
93 (create_syscall_event_catchpoint): Update.
94 (create_breakpoint_sal): Update.
95 (create_breakpoint_sal): Update. Call do_cleanups before
97 * ada-lang.c (create_ada_exception_catchpoint): Update.
98 * breakpoint.h (install_breakpoint): Update declaration.
100 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
102 * spu-tdep.c (spu_return_value): Fix handling of
103 TYPE_CALLING_CONVENTION annotation.
105 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
107 * skip.c (skip_function_command): Work around uninitialized
110 2011-11-16 David S. Miller <davem@davemloft.net>
112 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
113 'tv_usec' to long for printf since these fields have a type which
116 2011-11-15 Doug Evans <dje@google.com>
118 * buildsym.c (add_symbol_to_list): Delete outdated comment.
120 2011-11-15 Paul Koning <paul_koning@dell.com>
122 * python/py-type.c (typy_get_composite): New function.
123 (typy_nonzero): New function.
124 (typy_values): Rename from typy_fields.
125 (typy_fields): New function.
126 (typy_length): Raise exception if not struct, union, or enum type.
127 (typy_getitem): Ditto.
128 (typy_has_key): Ditto.
129 (typy_make_iter): Ditto.
131 2011-11-15 Doug Evans <dje@google.com>
133 * NEWS: Mention new parameter basenames-may-differ.
134 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
135 ! basenames_may_differ.
136 * psymtab.c (lookup_partial_symtab): Ditto.
137 * symtab.c (lookup_symtab): Ditto.
138 (basenames_may_differ): New global.
139 (_initialize_symtab): New parameter basenames-may-differ.
140 * symtab.h (basenames_may_differ): Declare.
142 2011-11-15 Pedro Alves <pedro@codesourcery.com>
143 Luis Machado <lgustavo@codesourcery.com>
145 * auxv.c: Include observer.h.
146 (auxv_inferior_data_cleanup): New.
147 (invalidate_auxv_cache_inf): New.
148 (invalidate_auxv_cache): New.
149 (get_auxv_inferior_data): New.
150 (auxv_inferior_data): New static global.
151 (auxv_info): New structure.
152 (target_auxv_search): Use get_auxv_inferior_data instead of
153 target_read_alloc and don't free cached buffers.
154 (fprint_target_auxv): Likewise
155 (_initialize_auxv): Register per-inferior auxv cache and register
156 observers to invalidate auxv cache when needed.
158 2011-11-14 Doug Evans <dje@google.com>
160 Make "!" an alias for "shell".
162 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
163 adding "!" command, always add it.
164 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
165 command of length one.
167 2011-11-14 Stan Shebs <stan@codesourcery.com>
168 Kwok Cheung Yeung <kcy@codesourcery.com>
170 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
171 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
172 the minimum instruction size for fast tracepoints.
173 * target.h (struct target_ops): Add new method
174 to_get_min_fast_tracepoint_insn_len.
175 (target_get_min_fast_tracepoint_insn_len): New.
176 * target.c (update_current_target): Set up new target operation.
177 * remote.c (remote_write_bytes_aux): Fix typo.
178 (remote_get_min_fast_tracepoint_insn_len): New.
179 (init_remote_ops): Initialize new field.
181 2011-11-14 Tom Tromey <tromey@redhat.com>
183 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
184 (encode_actions): Likewise.
186 2011-11-14 Yao Qi <yao@codesourcery.com>
188 * remote.c (struct remote_state): <install_in_trace> new field.
189 (PACKET_InstallInTrace): New enum value.
190 (remote_install_in_trace_feature): Support InstallInTrace.
191 (remote_supports_install_in_trace): Likewise.
192 (remote_protocol_features): Likewise.
193 (_initialize_remote): Likewise.
194 (remote_can_download_tracepoint): New.
195 * target.h (struct target): New field
196 `to_can_download_tracepoint'.
197 (target_can_download_tracepoint): New macro.
198 * target.c (update_current_target): Update.
199 * breakpoint.h (struct bp_location): Add comment on field
201 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
203 (remove_breakpoints): Don't remove tracepoints.
204 (tracepoint_locations_match ): New.
205 (breakpoint_locations_match): Call it.
206 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
207 (download_tracepoint_locations): New.
208 (update_global_location_list): Call it.
209 * tracepoint.c (find_matching_tracepoint): Delete.
210 (find_matching_tracepoint_location): Renamed from
211 find_matching_tracepoint. Return bp_location rather than
213 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
216 2011-11-14 Yao Qi <yao@codesourcery.com>
218 * target.h (struct target): <to_download_tracepoint> Change type
219 of parameter from tracepoint to bp_location.
220 * target.c (update_current_target): Update.
221 * tracepoint.c (start_tracing): Update.
222 * remote.c (remote_download_tracepoint): Remove loop for each location
225 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
227 * i386-nat.c (i386_insert_hw_breakpoint): Call
228 i386_update_inferior_debug_regs.
229 (i386_remove_hw_breakpoint): Likewise.
231 2011-11-14 Yao Qi <yao@codesourcery.com>
233 * breakpoint.c (init_raw_breakpoint): Call
234 add_location_to_breakpoint to replace duplicated code.
235 (add_location_to_breakpoint): Adjust the breakpoint's
236 address prior to allocating a location.
238 2011-11-12 Matt Rice <ratmice@gmail.com>
240 * macrocmd.c (macro_no_macro_info): New function.
241 (macro_expand_command): Use macro_no_macro_info.
242 (macro_expand_once_command): Ditto.
243 (info_macro_command): Add argument processing,
244 move info_definitions_command here.
245 (_initialize_macrocmd): Remove info definitions command.
246 Add arguments to info macro help text.
247 * NEWS: Replace info definitions command with new info macro options.
249 2011-11-11 Keith Seitz <keiths@redhat.com>
252 * linespec.c (locate_first_half): Keep ':' if it looks
253 like it could be part of a Windows path starting with
256 2011-11-10 Pedro Alves <pedro@codesourcery.com>
258 * linux-nat.c (linux_nat_wait): Don't force waking up the event
259 loop when returning a TARGET_WAITKIND_NO_RESUMED.
261 2011-11-10 Pedro Alves <pedro@codesourcery.com>
263 * target.c (target_waitstatus_to_string): Handle
264 TARGET_WAITKIND_NO_RESUMED.
266 2011-11-10 Doug Evans <dje@google.com>
268 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
270 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
271 (map_partial_symbol_filenames): Ditto. All callers updated.
272 * psymtab.h (map_partial_symbol_filenames): Update prototype.
273 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
274 parameter need_fullname.
276 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
277 * source.c (symtab_to_fullname): Ditto.
279 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
280 * gdb-demangle.h: ... here. New file.
281 * demangle.c: #include "gdb-demangle.h".
282 (_initialize_demangler): Use initialize_file_ftype for prototype.
283 Move "set demangle" and "set asm-demangle" parameters here from utils.c
284 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
286 * utils.c: Update. #include "gdb-demangle.h".
287 * symtab.h (asm_demangle): Delete.
288 (demangle): Move declaration next to use.
289 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
290 * dwarf2read.c: #include "gdb-demangle.h".
291 * gnu-v2-abi.c: Ditto.
292 * jv-typeprint.c: Ditto.
293 * mdebugread.c: Ditto.
294 * p-typeprint.c: Ditto.
295 * stabsread.c: Ditto.
297 (asm_demangle): Delete declaration.
298 * tui/tui-stack.c: #include "gdb-demangle.h".
300 * python/py-type.c (typy_fields_items): Call check_typedef.
302 2011-11-10 Joel Brobecker <brobecker@adacore.com>
304 * findvar.c (read_frame_register_value): Read the correct bytes
305 from registers on big-endian architectures.
307 2011-11-10 Tom Tromey <tromey@redhat.com>
309 * procfs.c (load_syscalls): Make a cleanup.
310 (open_procinfo_files): fd==0 is ok.
312 2011-11-10 Joel Brobecker <brobecker@adacore.com>
314 * procfs.c (iterate_over_mappings): Call do_cleanups before
317 2011-11-09 Doug Evans <dje@google.com>
319 * gdbtypes.c (check_typedef): Document that this function can
322 2011-11-09 Tom Tromey <tromey@redhat.com>
325 * valops.c (value_full_object): Return early if real type is
326 smaller than the enclosing type.
328 2011-11-08 Yao Qi <yao@codesourcery.com>
330 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
332 2011-11-08 Meador Inge <meadori@codesourcery.com>
334 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
335 register when the frame can't be determined.
336 * arm-tdep.c (arm_analyze_prologue): Ditto.
338 2011-11-07 Stan Shebs <stan@codesourcery.com>
340 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
342 2011-11-07 Joel Brobecker <brobecker@adacore.com>
344 * infrun.c (handle_inferior_event): Minor reformatting.
346 2011-11-05 Doug Evans <dje@google.com>
348 * source.c (forget_cached_source_info_for_objfile): Move call to
349 objfile->sf->qf->forget_cached_source_info outside of
350 ALL_OBJFILE_SYMTABS loop.
351 (forget_cached_source_info): Delete unused variable `s'.
353 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
355 * i386-nat.c (dr_ref_count): Remove unused variable.
357 2011-11-05 Doug Evans <dje@google.com>
359 * main.c (captured_main): Set lim_at_start before calling
360 make_command_stats_cleanup.
362 2011-11-04 Doug Evans <dje@google.com>
364 * utils.c: #include "timeval-utils.h".
365 (cmd_stats): Rename start_time to start_cpu_time.
366 New member start_wall_time.
367 (report_command_stats): Report wall time.
368 (make_command_stats_cleanup): Record start wall time.
370 2011-11-04 Tom Tromey <tromey@redhat.com>
372 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
374 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376 * coff-pe-read.c: Include defs.h before bfd.h.
378 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
382 * python/python.c (python_run_simple_file): Expand tilde in path.
384 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
388 * python/py-type.c (typy_lookup_type): Do not return a type in
389 an exception handler.
391 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
392 Eli Zaretskii <eliz@gnu.org>
394 * linux-nat.c (_initialize_linux_nat): Improve help
395 for `info proc stat', `info proc status', `info proc cwd',
396 `info proc cmdline' and `info proc exe'.
398 2011-11-02 Stan Shebs <stan@codesourcery.com>
400 String collection for tracepoints.
401 * NEWS: Mention string collection.
402 * common/ax.def (tracenz): New bytecode.
403 * ax-gdb.h (trace_string_kludge): Declare.
404 * ax-gdb.c: Include valprint.h and c-lang.h.
405 (trace_string_kludge): New global.
406 (gen_traced_pop): Add string case.
407 (agent_command): Add string case.
408 * tracepoint.h (decode_agent_options): Declare.
409 * tracepoint.c: Include cli-utils.h.
410 (decode_agent_options): New function.
411 (validate_actionline): Call it.
412 (encode_actions_1): Ditto.
413 * target.h (struct target_ops): New method to_supports_string_tracing.
414 (target_supports_string_tracing): New macro.
415 * target.c (update_current_target): Add to_supports_string_tracing.
416 * remote.c (struct remote_state): New field string_tracing.
417 (remote_string_tracing_feature): New function.
418 (remote_protocol_features): New feature tracenz.
419 (remote_supports_string_tracing): New function.
420 (init_remote_ops): Set to_supports_string_tracing.
422 2011-11-02 Pedro Alves <pedro@codesourcery.com>
423 Jan Kratochvil <jan.kratochvil@redhat.com>
425 * linux-nat.c: Include cli/cli-utils.h.
426 (enum info_proc_what): New.
427 (linux_nat_info_proc_cmd): Rename to ...
428 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
429 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
430 status_f and stat_f from WHAT. Throw error on extra parameters.
431 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
432 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
433 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
434 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
435 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
436 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
437 `info proc cmdline', `info proc exe' and `info proc all' as real
438 subcommands of `info proc'.
440 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
442 * Makefile.in: (SFILES): Add skip.c.
443 (HFILES_NO_SRCDIR): Add skip.h.
444 (COMMON_OBS): Add skip.o.
445 * skip.h, skip.c: New.
446 * breakpoint.h (set_default_breakpoint): Remove.
447 (get_sal_arch): Declare.
448 * breakpoint.c: Remove default_breakpoint_valid,
449 default_breakpoint_address, default_breakpoint_symtab,
450 default_breakpoint_line, default_breakpoint_pspace variables.
451 (get_sal_arch): Make public.
452 (set_default_breakpoint): Remove.
453 (parse_breakpoint_sals, create_breakpoint, clear_command,
454 decode_line_spec_1): Remove uses of default_breakpoint variables;
455 replaced with function calls into stack.c.
456 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
457 * cli/cli-cmds.c: Add skiplist.
458 (init_cmd_lists): Initialize skiplist.
459 (init_cli_cmds): Fix comment (classes of commands appear in
461 * infrun.c (handle_inferior_event): Add check that we don't step into
462 a function whose pc is marked for skip.
463 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
464 last_displayed_addr, last_displayed_symtab, last_displayed_line
466 (set_last_displayed_sal): New static function.
467 (print_frame_info): Switch call to set_default_breakpoint to call to
468 set_last_displayed_sal.
469 (clear_last_displayed_sal, last_displayed_sal_is_valid,
470 get_last_displayed_pspace, get_last_displayed_addr,
471 get_last_displayed_symtab, get_last_displayed_line,
472 get_last_displayed_sal): New public functions.
473 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
474 get_last_displayed_pspace, get_last_displayed_addr,
475 get_last_displayed_symtab, get_last_displayed_line,
476 get_last_displayed_sal): Declare.
478 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
480 * MAINTAINERS (Write After Approval): Add myself to the list.
482 2011-10-29 Yao Qi <yao@codesourcery.com>
484 * infcmd.c (disconnect_command): Call disconnect_tracing.
486 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
489 * symtab.c (skip_prologue_sal): Code reformatting.
491 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
494 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
495 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
498 2011-10-28 Pedro Alves <pedro@codesourcery.com>
500 * linux-nat.c (linux_nat_filter_event): Remove `options'
501 parameter, and dead code that used it. If we're handling a
502 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
503 in our lwp list, re-add it.
504 (check_zombie_leaders): New.
505 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
506 wait for children with WNOHANG, and always wait for all children.
507 Don't check for no resumed children upfront. Simplify wait loop.
508 Check for zombie thread group leaders after handling all wait
509 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
510 unwaited-for children left.
511 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
512 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
513 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
514 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
516 2011-10-28 Sterling Augustine <saugustine@google.com>
518 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
519 * symtab.c (free_completion_list): New function.
520 (do_free_completion_list): Likewise.
521 (default_make_symbol_completion_list_break_on): New variable
522 back_to. Call make_cleanup and discard_cleanups.
523 (make_source_files_completion_list): Likewise.
525 2011-10-28 Paul Koning <paul_koning@dell.com>
527 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
528 * NEWS: Mention deep_items.
530 2011-10-28 Alen Skondro <askondro@gmail.com>
532 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
535 2011-10-27 Meador Inge <meadori@codesourcery.com>
537 * MAINTAINERS (Write After Approval): Add myself to the list.
539 2011-10-27 Joel Brobecker <brobecker@adacore.com>
541 * value.h (read_frame_register_value): Add declaration.
542 * findvar.c (read_frame_register_value): New function.
543 (value_from_register): Use read_frame_register_value
544 instead of get_frame_register_value + value_contents_copy
545 to get value contents.
547 2011-10-27 Doug Evans <dje@google.com>
549 * cli/cli-cmds.c (source_script_with_search): Pass full path to
550 source_script_from_stream if it may have been found on the search path.
551 * python/py-auto-load.c (source_section_scripts): Pass full path to
552 source_python_script_for_objfile.
553 * python/python.c (source_python_script): Delete stream parameter.
555 (source_python_script_for_objfile): Ditto.
556 * python/python-internal.h (source_python_script_for_objfile): Update.
557 * python/python.h (source_python_script): Update.
559 2011-10-27 Tom Tromey <tromey@redhat.com>
561 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
562 (ada_sals_for_line): Remove declarations.
564 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
566 Move unwind reasons to an external .def file
567 * frame.c (frame_stop_reason_string): Rewrite using
568 unwind_stop_reasons.def.
569 * frame.h (enum unwind_stop_reason): Likewise.
570 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
571 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
572 constants for bound-checking.
573 * unwind_stop_reasons.def: New file.
574 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
575 instead of a distinct value.
577 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
581 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
582 (convert_values_to_python): Return on Python tuple allocation
583 failure. Return NULL on value conversion error.
585 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
587 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
588 (bppy_set_task): Ditto.
589 (bppy_delete_breakpoint): Ditto.
590 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
591 (gdbpy_lookup_global_symbol): Ditto.
592 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
593 * python/py-frame.c (frapy_is_valid): Ditto.
594 (frame_info_to_frame_object): Ditto.
595 * python/py-type.c (typy_lookup_type): Ditto.
596 (typy_getitem): Ditto.
597 (typy_has_key): Ditto.
598 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
600 2011-10-26 Joel Brobecker <brobecker@adacore.com>
602 * gdbarch.h: Regenerate.
604 2011-10-26 Meador Inge <meadori@codesourcery.com>
606 * gdbarch.sh (function_list): Use 'pstring' when printing
608 * gdbarch.c: Regenerate.
610 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
612 * regcache.c (registers_changed_ptid): Invalidate thread architecture
613 and frame caches if PTID refers to all threads of a process.
615 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
617 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
618 to create_breakpoint.
620 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
622 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
623 (ppc_sysv_abi_push_dummy_call): Use it.
624 (do_ppc_sysv_return_value): Likewise.
625 (ppc64_sysv_abi_push_dummy_call): Likewise.
626 (ppc64_sysv_abi_return_value): Likewise.
628 2011-10-26 Paul Koning <paul_koning@dell.com>
630 * python/lib/gdb/types.py (deepitems): New function.
632 2011-10-25 Paul Koning <paul_koning@dell.com>
636 * python/py-value.c (value_to_value_object): Remove fetching of
637 the value if it was lazy.
638 (valpy_get_is_lazy): New function.
639 (valpy_fetch_lazy): New function.
641 2011-10-24 Joel Brobecker <brobecker@adacore.com>
643 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
644 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
646 2011-10-24 Pedro Alves <pedro@codesourcery.com>
648 * linux-nat.c (linux_handle_extended_wait): When handling a clone
649 event, in non-stop, if not stopping, make sure the new lwp has
650 last_resume_kind set to resume_continue. Assert that when we're
651 resuming the new lwp, its last_resume_kind is resume_continue.
653 2011-10-24 Pedro Alves <pedro@codesourcery.com>
655 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
656 already set when marking the event thread as not executing in
659 2011-10-24 Pedro Alves <pedro@codesourcery.com>
661 * infrun.c (handle_inferior_event): Add debug output for
662 TARGET_WAITKIND_NO_HISTORY.
664 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
666 * NEWS: Move set/show extended-prompt to "New Options". Expand
667 description. Fix typos.
669 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
673 * python/py-param.c (call_doc_function): Correctly deference on
676 2011-10-21 Joel Brobecker <brobecker@adacore.com>
678 * ada-tasks.c (print_ada_task_info): Fix computation of
679 number of tasks displayed in command output.
681 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
682 Ulrich Weigand <uweigand@de.ibm.com>
684 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
685 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
686 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
687 gdbarch_pc_regnum and frame_unwind_register_unsigned by
690 2011-10-20 Cary Coutant <ccoutant@google.com>
692 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
694 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
695 flag. Adjust all callers.
696 (process_psymtab_comp_unit): Remove adjustment for type section.
698 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
700 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
701 arguments by adding OBJFILE. Instead of getting objfile from
702 symbol's symtab, use new argument OBJFILE.
703 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
704 arguments by adding OBJFILE.
705 * gdb/dwarf2read.c (new_symbol_full): Change call to
706 cp_scan_for_anonymous_namespaces to match new signature.
707 * gdb/stabsread.c (define_symbol): Change call to
708 cp_scan_for_anonymous_namespaces to match new signature.
710 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
715 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
717 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
718 leak. Delete unused variables.
720 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
724 * python/py-frame.c (frapy_read_var): Use const struct *block.
725 * python/py-type.c (typy_lookup_typename): Likewise.
726 (typy_lookup_type): Likewise.
727 (typy_legacy_template_argument): Likewise.
728 (typy_template_argument): Likewise.
729 (gdbpy_lookup_type): Likewise.
730 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
731 * python/py-block.c (blpy_block_object): Likewise.
732 (blpy_iter): Likewise.
733 (blpy_get_start): Likewise.
734 (blpy_get_end): Likewise.
735 (blpy_get_function): Likewise.
736 (blpy_get_superblock): Likewise.
737 (set_block): Likewise.
738 (block_to_block_object): Likewise.
739 (block_object_to_block): Likewise.
740 (blpy_is_valid): Likewise.
741 (blpy_get_global_block): New function.
742 (blpy_get_static_block): New function.
743 (blpy_is_global): New function.
744 (blpy_is_static): New function.
745 * blockframe.c (block_innermost_frame): Likewise.
746 * valops.c (value_of_variable): Likewise.
747 * frame.h: Update prototypes.
748 * python/python-internal.h: Likewise.
751 2011-10-19 Cary Coutant <ccoutant@google.com>
753 * dwarf2read.c (create_debug_types_hash_table): Fix size of
756 2011-10-19 Cary Coutant <ccoutant@google.com>
758 * dwarf2read.c (peek_abbrev_code): New function.
759 (dw2_get_file_names): Check for dummy compilation units.
760 (create_debug_types_hash_table): Likewise.
761 (process_psymtab_comp_unit): Likewise.
762 (load_partial_comp_unit): Likewise.
763 (load_full_comp_unit): Likewise.
765 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
767 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
768 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
769 pt_phdr if PT_PHDR was found.
771 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
773 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
774 type or "<unnamed type"> when there is no name assigned.
775 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
776 avoid a sigint when no name is assigned.
778 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
781 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
782 * dwarf2expr.c (ctx_no_read_reg): New function.
783 * dwarf2expr.h (ctx_no_read_reg): New declaration.
784 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
785 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
786 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
788 2011-10-16 Doug Evans <dje@google.com>
790 * NEWS: Document python gdb.printing.register_pretty_printer's new
793 2011-10-14 Keith Seitz <keiths@redhat.com>
796 * eval.c (evaluate_subexp_standard): Do not construct
797 an array of types; pass the value array directly to
799 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
800 (rank_function): Take an array of values instead of types.
801 (rank_one_type): Add struct value * parameter.
802 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
803 (rank_function): For each argument, pass the argument's
804 value to rank_one_type.
805 (rank_one_type): Add VALUE parameter.
806 If the parameter type is a pointer and the argument type
807 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
809 Update all calls to rank_one_type, passing NULL for new
811 * valarith.c (value_user_defined_cpp_op): Do not construct
812 an array of types; pass the value array directly to
814 * valops.c (find_overload_method_list): Take an array of
815 values instead of types.
816 Save the type of OBJP for later use.
817 Update calls to find_oload_champ, and find_oload_champ_namespace.
818 (find_oload_champ_namespace): Take an array of values instead
820 (find_oload_champ_namespace_loop): Likewise.
821 (find_oload_champ): Likewise.
822 (classify_oload_match): Inspect all arguments
823 until INCOMPATIBLE is found. Return the worst badness found
825 (compare_parameters): Update call to rank_one_type.
826 * value.h (find_overload_match): Take an array of values instead
829 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
831 Drop lazy lm_info reading.
832 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
833 l_addr_inferior, l_ld, l_next, l_prev and l_name.
834 (lm_info_read): New function.
835 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
836 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
837 lm_dynamic_from_link_map.
838 (lm_next, lm_prev, lm_name): Remove.
839 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
840 initialization incl. read_memory. No longer use lm_name.
841 (svr4_free_so): Drop lm_info->lm freeing.
842 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
843 explicit lm_addr and lm initialization.
844 (svr4_read_so_list): Use lm_info_read, drop the initailization of
845 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
848 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
849 Paul Pluzhnikov <ppluzhnikov@google.com>
851 * defs.h (struct so_list): New forward declaration.
852 (make_cleanup_free_so): New declaration.
853 * solib-svr4.c (ignore_first_link_map_entry): Remove.
854 (svr4_free_so): Move the function here from downwards. Handle NULL
856 (svr4_free_library_list): New.
857 (svr4_read_so_list): New, moved here code from svr4_current_sos.
858 Use more cleanups. Use new parameter ignore_first instead of
859 ignore_first_link_map_entry.
860 (svr4_current_sos): New variable ignore_first, initialize it. New
861 variable back_to, use it for svr4_free_library_list protection.
862 (svr4_free_so): Remove - move upwards.
863 * utils.c: Include solist.h.
864 (do_free_so, make_cleanup_free_so): New functions.
866 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
868 Fix internal error regression.
869 * value.c (value_primitive_field): Handle value_optimized_out. Move
870 packed bitfields comment.
872 2011-10-13 Tom Tromey <tromey@redhat.com>
874 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
877 2011-10-13 Tom Tromey <tromey@redhat.com>
879 * python/py-type.c (typy_has_key): Make 'field' const.
881 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
883 * remote.c (remote_save_trace_data): Invert comparison.
885 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
887 * tracepoint.c (trace_save_command): Use filename instead of
890 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
892 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
895 2011-10-13 Yao Qi <yao@codesourcery.com>
898 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
899 whether insn is a 32-bit Thumb-2 instruction.
900 (thumb_in_function_epilogue_p): Likewise.
901 (thumb_get_next_pc_raw): Likewise.
902 (arm_breakpoint_from_pc): Likewise.
904 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
906 Fix empty DWARF expressions DATA vs. SIZE conditionals.
907 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
908 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
909 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
910 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
912 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
914 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
915 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
916 clear DATA on zero SIZE.
918 2011-10-12 Doug Evans <dje@google.com>
920 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
921 header->first_die_offset here. All callers updated.
923 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
925 Fix compatibility with texinfo versions older than 4.12.
926 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
927 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
928 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
929 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
930 * configure: Regenerate.
931 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
932 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
933 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
935 2011-10-12 Gary Benson <gbenson@redhat.com>
937 * breakpoint.h (pc_at_non_inline_function): Declare.
938 * breakpoint.c (is_non_inline_function,
939 pc_at_non_inline_function): New functions.
940 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
941 if the stop is at a location where functions cannot be inlined.
943 2011-10-12 Pedro Alves <pedro@codesourcery.com>
945 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
946 the core wanted them stopped, or if they now have a pending event
948 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
949 down to stop_and_resume_callback.
950 (linux_nat_wait_1): Always clear `options' when retrying. Handle
951 having new pending events after calling linux_nat_filter_event.
953 2011-10-11 Sterling Augustine <saugustine@google.com>
955 * dwarf2read.c: Undo inadvertent changes in previous commit.
957 2011-10-11 Sterling Augustine <saugustine@google.com>
959 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
962 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
964 * symfile.c (separate_debug_file_exists): Fix condition.
966 2011-10-11 David S. Miller <davem@davemloft.net>
968 * regcache.c (regcache_restore): Do not write unavailable regs, mark
970 * regcache.h (regcache_restore): Remove declaration.
972 * gdbarch.sh: New field 'long_long_align_bit'.
973 * gdbarch.c, gdbarch.h: Regenerate.
974 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
975 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
977 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
980 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
981 Support @entry in input expressions.
982 * c-exp.y (ENTRY, unknown_cpp_name): New.
983 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
984 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
985 (variable: name_not_typename '@' ENTRY, name: ENTRY)
986 (name_not_typename: ENTRY): New.
987 (yylex): Recognize ENTRY.
989 Reimplement @entry in input expressions.
990 * c-exp.y (ENTRY): New.
991 (variable: name_not_typename ENTRY): New.
992 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
994 2011-10-11 Pedro Alves <pedro@codesourcery.com>
996 * linux-nat.c (linux_handle_extended_wait): Always dump both the
997 parent and child's pids as soon as we detect a clone event.
998 Adjust another debug message.
1000 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1002 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1003 not zombie instead of reading the whole file.
1005 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1007 Fix separate debuginfo warning with "remote:" access.
1008 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1009 * symfile.c (get_file_crc): New function with the code moved from ...
1010 (separate_debug_file_exists): ... this function, specifically variables
1011 buffer and count. New variable verified_as_different, set it. Remove
1012 file_crc initialization. Verify also if both files are not the same
1013 manually, if needed.
1015 2011-10-11 Yao Qi <yao@codesourcery.com>
1017 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1020 2011-10-10 Doug Evans <dje@google.com>
1022 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1023 libthread_db when we load libpthread or the main symbol file.
1024 (thread_db_inferior_created): New function.
1025 (_initialize_thread_db): Attach inferior_created observer.
1026 * linux-nat.c (linux_child_post_attach): Remove call to
1027 check_for_thread_db.
1028 (linux_child_post_startup_inferior): Ditto.
1029 * objfiles.h (OBJF_MAINLINE): Define.
1030 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1031 allocate_objfile when appropriate.
1033 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1036 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1037 Remove unused variables.
1038 (get_linux_version): Remove function.
1039 (_initialize_arm_linux_nat): Do not call it.
1041 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1043 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1044 new clone lwp if the core asked it to stop. Don't pass on
1045 unexpected signals to the new clone; leave them pending instead.
1047 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1049 * linux-nat.c (resume_lwp): Remove redundant debug output.
1051 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1053 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1054 last_resume_kind before clearing it, and use the copy instead to
1055 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1056 resume_clear_callback in the non-stop path too.
1058 2011-10-09 Yao Qi <yao@codesourcery.com>
1060 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1061 Honor OPTIONS and VAL's type.
1062 (common_val_print, value_print): Update to pass one more parameter.
1064 2011-10-09 Doug Evans <dje@google.com>
1066 Add new "alias" command.
1067 * NEWS: Mention new command.
1068 * command.h (valid_user_defined_cmd_name_p): Declare.
1069 * defs.h (make_cleanup_dyn_string_delete): Declare.
1070 * utils.c: #include "dyn-string.h".
1071 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1072 * cli/cli-cmds.c: #include "dyn-string.h".
1073 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1074 (init_cli_cmds): Add new command.
1075 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1077 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 Fix compatibility with older GCCs.
1080 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1081 * stack.c (read_frame_arg): Initialize val_deref.
1083 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1085 Entry values NEWS entries, DWARF disassembly support.
1086 * NEWS: New entry values entry.
1087 (set print entry-values, show print entry-values)
1088 (set debug entry-values, show debug entry-values): New entries.
1089 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1090 indent. Remove variable start. Move header printing out. Respect
1091 INDENT. Support DW_OP_GNU_entry_value.
1092 (locexpr_describe_location_1): Move the header printing here, extend
1093 the disassemble_dwarf_expression passed parameters.
1095 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 Display @entry parameter values even for references.
1098 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1099 coerce_ref_if_computed.
1100 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1101 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1102 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1103 existing push_dwarf_reg_entry_value call. Add new detection calling
1104 dwarf_block_to_dwarf_reg_deref. Update the error message.
1105 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1107 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1108 parameter deref_size, describe it in the comment.
1109 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1110 (dwarf_block_to_dwarf_reg_deref): New declaration.
1111 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1112 deref_size, describe it in the function comment. New variables
1113 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1114 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1115 describe it in the function comment. Fetch the alternative block
1116 accoring to DEREF_SIZE.
1117 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1118 (entry_data_value_free_closure, entry_data_value_funcs): New.
1119 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1120 outer_val, target_val, val and addr. Try to fetch and create also
1121 referenced value content.
1122 (pieced_value_funcs): NULL value for coerce_ref.
1123 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1124 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1125 coerce_ref_if_computed.
1126 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1127 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1128 * stack.c (read_frame_arg): Compare also dereferenced values.
1129 * value.c (value_computed_funcs): Make the parameter v const, use
1130 value_lval_const for it.
1131 (value_lval_const, coerce_ref_if_computed): New function.
1132 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1133 * value.h (struct lval_funcs): New field coerce_ref.
1134 (value_computed_funcs): Make the parameter v const.
1135 (value_lval_const, coerce_ref_if_computed): New declarations.
1137 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1139 Support @entry in input expressions.
1140 * c-exp.y (ENTRY, unknown_cpp_name): New.
1141 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1142 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1143 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1144 (name_not_typename: ENTRY): New.
1145 (yylex): Recognize ENTRY.
1146 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1147 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1149 * parse.c (operator_length_standard): Likewise.
1150 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1152 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1154 Display referenced values in backtraces.
1155 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1156 * stack.c (print_frame_arg): Likewise.
1158 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1160 Make some lval_funcs methods to default on NULL.
1161 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1163 (value_assign): Check if lval_computed write method is NULL.
1164 * value.h (struct lval_funcs): Comment NULL values for read and write
1167 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 Display @entry parameter values (without references).
1170 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1172 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1174 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1176 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1177 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1179 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1180 (loclist_read_variable_at_entry): New function.
1181 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1182 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1183 DW_AT_location, call dwarf_block_to_sp_offset for it.
1184 * frame.h (print_entry_values_no, print_entry_values_only)
1185 (print_entry_values_preferred, print_entry_values_if_needed)
1186 (print_entry_values_both, print_entry_values_compact)
1187 (print_entry_values_default, print_entry_values): New declarations.
1188 (struct frame_arg): New field entry_kind.
1189 (read_frame_arg): New parameter entryargp.
1190 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1191 arg->entry_kind. Optionally print the `@entry' suffix.
1192 (list_args_or_locals): New variable entryarg, initialize it.
1193 Initialize also entry_kind of arg and entryarg. Conditionalize
1194 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1195 xfree for entryarg.error.
1196 * stack.c (print_entry_values_no, print_entry_values_only)
1197 (print_entry_values_preferred, print_entry_values_if_needed)
1198 (print_entry_values_both, print_entry_values_compact)
1199 (print_entry_values_default, print_entry_values_choices)
1200 (print_entry_values): New variables.
1201 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1202 print the `@entry' suffix, possibly in combination for
1203 print_entry_values_compact.
1204 (read_frame_arg): New parameter entryargp, new variables entryval,
1205 entryval_error and val_equal. Read in also entryargp, respect
1206 print_entry_values, compare the values using val_equal, fill in also
1207 argp->entry_kind (together with entryargp->entry_kind).
1208 (print_frame_args): New variable entryarg, initialize it.
1209 Conditionalize print_frame_arg for arg, add print_frame_arg for
1210 entryarg. Call xfree for entryarg.error.
1211 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1212 * symtab.h (struct symbol_computed_ops): New field
1213 read_variable_at_entry.
1215 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1218 * frame.h (struct frame_arg): New definition.
1219 (read_frame_arg): New declaration.
1220 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1221 (list_args_or_locals): ... the code here. New variable arg, call
1222 read_frame_arg and list_arg_or_local with it. Unify the
1223 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1225 * stack.c (print_frame_arg): New functiom from the code of
1227 (read_frame_arg): New function.
1228 (print_frame_args): Remove variable val. New variable arg, call
1229 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1231 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 Protect entry values against self tail calls.
1234 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1235 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1237 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1239 Recognize virtual tail call frames.
1240 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1241 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1242 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1243 * dwarf2-frame-tailcall.c: New file.
1244 * dwarf2-frame-tailcall.h: New file.
1245 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1246 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1247 REGS.PREV only after CIE execution.
1248 (struct dwarf2_frame_cache): New field tailcall_cache.
1249 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1250 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1251 parts, try to find entry_cfa_sp_offset. Call
1252 dwarf2_tailcall_sniffer_first.
1253 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1255 (dwarf2_frame_dealloc_cache): New function.
1256 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1257 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1258 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1259 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1260 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1261 * dwarf2loc.c (func_addr_to_tail_call_list)
1262 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1263 (call_site_find_chain_1, call_site_find_chain): New.
1264 * dwarf2loc.h (struct call_site_chain): New.
1265 (call_site_find_chain): New declaration.
1266 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1267 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1268 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1269 * stack.c (frame_info): Support also TAILCALL_FRAME.
1271 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1273 Tail call sites reader implementation.
1274 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1275 fill in TYPE_TAIL_CALL_LIST.
1276 * gdbtypes.h (struct func_type): New field tail_call_list.
1277 (struct call_site): New field tail_call_next.
1278 (TYPE_TAIL_CALL_LIST): New definition.
1280 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1282 Implement basic support for DW_TAG_GNU_call_site.
1283 * block.c: Include gdbtypes.h and exceptions.h.
1284 (call_site_for_pc): New function.
1285 * block.h (call_site_for_pc): New declaration.
1286 * defs.h: Include hashtab.h.
1287 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1289 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1290 ctx_no_push_dwarf_reg_entry_value.
1291 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1292 (dwarf_block_to_dwarf_reg): New function.
1293 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1294 (ctx_no_push_dwarf_reg_entry_value): New function.
1295 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1296 push_dwarf_reg_entry_value.
1297 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1299 * dwarf2loc.c: Include gdbcmd.h.
1300 (dwarf_expr_ctx_funcs): New forward declaration.
1301 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1302 (dwarf_expr_reg_to_entry_parameter)
1303 (dwarf_expr_push_dwarf_reg_entry_value): New.
1304 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1305 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1306 (needs_dwarf_reg_entry_value): New function.
1307 (needs_frame_ctx_funcs): Install it.
1308 (_initialize_dwarf2loc): New function.
1309 * dwarf2loc.h (entry_values_debug): New declaration.
1310 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1311 (read_call_site_scope): New forward declaration.
1312 (process_full_comp_unit): Copy call_site_htab.
1313 (process_die): Support DW_TAG_GNU_call_site.
1314 (read_call_site_scope): New function.
1315 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1316 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1317 (cleanup_htab): Delete.
1318 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1319 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1320 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1321 FIELD_LOC_KIND_DWARF_BLOCK.
1322 * gdbtypes.h (enum field_loc_kind): New entry
1323 FIELD_LOC_KIND_DWARF_BLOCK.
1324 (struct main_type): New loc entry dwarf_block.
1325 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1326 (TYPE_FIELD_DWARF_BLOCK): New.
1327 * python/py-type.c: Include dwarf2loc.h.
1328 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1329 internal_error call on unknown FIELD_LOC_KIND.
1330 * symtab.h (struct symtab): New field call_site_htab.
1331 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1332 (core_addr_hash, core_addr_eq): New functions.
1334 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1337 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1338 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1339 calling_convention under func_stuff there.
1340 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1341 (init_type) <TYPE_CODE_FUNC>: Likewise.
1342 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1343 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1344 * gdbtypes.h (enum type_specific_kind): Change
1345 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1346 (struct main_type) <type_specific>: Change calling_convention to
1347 func_stuff. Move calling_convention to ...
1348 (struct func_type): ... this new struct.
1349 (INIT_FUNC_SPECIFIC): New #define.
1350 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1352 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1354 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1355 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1356 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1357 ctx->ref_addr_size. Handle its invalid value.
1358 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1359 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1360 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1361 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1362 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1363 (dwarf2_per_cu_ref_addr_size): New function.
1365 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1368 * dwarf2read.c (per_cu_header_read_in): New function.
1369 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1370 variables cu_header_local and cu_headerp.
1372 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1374 Fix initial language detection with -readnow.
1375 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1376 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1377 searches only for global symbols.
1379 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1381 Fix printed anonymous struct name.
1382 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1383 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1384 (anonymous_struct_prefix): New function.
1385 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1386 (dwarf2_name): Strip for anonymous structs any prefixes.
1388 2011-10-07 Doug Evans <dje@google.com>
1390 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1393 * python/lib/gdb/printing.py: Whitespace cleanup.
1395 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1398 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1400 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1401 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1402 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1403 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1404 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1405 (arm_linux_remove_watchpoint): Adjust.
1406 * i386-linux-nat.c (i386_linux_dr_set_control)
1407 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1408 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1409 (ia64_linux_remove_watchpoint): Adjust.
1410 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1411 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1412 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1413 (ppc_linux_insert_mask_watchpoint)
1414 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1415 (ppc_linux_remove_watchpoint): Adjust.
1416 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1419 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1421 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1422 (clear_win32_environment): New function for Cygwin to clear out
1424 (windows_create_inferior): Prepare new environment from in_env
1427 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1430 * python/py-value.c (valpy_call): Check that arguments are
1432 (is_intlike): Remove call to CHECK_TYPEDEF.
1433 (valpy_nonzero): Catch GDB exceptions.
1434 (valpy_absolute): Ditto.
1435 (valpy_lazy_string): Ditto.
1436 (valpy_call): Ditto.
1437 (valpy_get_is_optimized_out): Ditto.
1438 (valpy_long): Ditto.
1439 (valpy_float): Ditto.
1440 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1441 (valpy_richcompare): Ditto.
1443 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1445 * inferior.h (disable_randomization): Declare.
1446 * infrun.c (disable_randomization): New global variable.
1447 (show_disable_randomization): New function.
1448 (set_disable_randomization): Likewise.
1449 (_initialize_infrun): Install set/show disable-randomization
1451 * linux-nat.c (disable_randomization): Remove.
1452 (show_disable_randomization): Likewise.
1453 (set_disable_randomization): Likewise.
1454 (_initialize_linux_nat): No longer install set/show
1455 disable-randomization commands here.
1456 (linux_nat_supports_disable_randomization): New function.
1457 (linux_nat_add_target): Install it.
1458 * remote.c (PACKET_QDisableRandomization): New enum value.
1459 (remote_protocol_packets): Support QDisableRandomization.
1460 (_initialize_remote): Likewise.
1461 (remote_supports_disable_randomization): New function.
1462 (init_remote_ops): Install it.
1463 (extended_remote_supports_disable_randomization): New function.
1464 (init_extended_remote_ops): Install it.
1465 (extended_remote_disable_randomization): New function.
1466 (extended_remote_create_inferior_1): Call it.
1467 * target.h (struct target_ops): Add to_supports_disable_randomization.
1468 (target_supports_disable_randomization): Add prototype.
1469 * target.c (target_supports_disable_randomization): New function.
1470 (find_default_supports_disable_randomization): Likewise.
1471 (init_dummy_target): Install it.
1473 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1475 Allow Python notification of new object-file loadings.
1476 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1477 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1478 Add build rule for this file.
1479 * python/py-event.h (emit_new_objfile_event): New prototype.
1480 (newobjfile): New Python event emitter.
1481 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1482 Python event registry.
1483 * python/py-inferior.c: Include objfiles.h
1484 (python_new_objfile): New function.
1485 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1487 * python/py-newobjfileevent.c: New file.
1488 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1490 * python/python.c (_initialize_python): Add
1491 gdbpy_initialize_new_objfile_event call.
1492 * NEWS: Add item for new Python event "gdb.newobjfile"
1494 2011-10-05 Tristan Gingold <gingold@adacore.com>
1496 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1497 Extract the ravenscar task name from the symbol for the atcb.
1499 2011-10-04 Paul Koning <paul_koning@dell.com>
1501 * python/py-type.c (typy_make_iter): Add forward declaration.
1502 (typy_fields_items): Use the gdb.Type iterator.
1504 2011-10-04 Paul Koning <paul_koning@dell.com>
1506 * NEWS: Add entry for Python gdb.Type mapping methods.
1508 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1510 PR python/12691: Add the inferior to Python exited event
1511 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1513 * python/py-event.h (emit_exited_event): Likewise
1514 * python/-inferior.c (python_inferior_exit): Likewise
1516 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1518 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1519 in output of -ada-task-info GDB/MI command.
1521 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1523 * ada-lang.h (struct inferior): Declare.
1524 (print_ada_task_info): Add declaration.
1525 * ada-tasks.c (print_ada_task_info): Make non-static.
1526 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1527 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1528 * mi/mi-main.c: #include "ada-lang.h".
1529 (mi_cmd_list_features): Add "ada-task-info" to the list
1530 of supported features.
1531 (mi_cmd_ada_task_info): New function.
1533 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1535 * python/python.c (python_run_simple_file): New function.
1536 (source_python_script, source_python_script_for_objfile):
1537 Replace call to PyRun_SimpleFile by call to
1538 python_run_simple_file.
1540 2011-10-03 Paul Koning <paul_koning@dell.com>
1542 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1543 (value_to_value_object): Fetch value if it was lazy.
1545 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1548 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1549 Rearrange the code for it.
1551 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1553 * breakpoint.c (bkpt_print_recreate): Add call to
1554 print_recreate_thread.
1556 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1558 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1559 PTRACE_GETFDPIC_INTERP): Define.
1561 2011-09-28 Yao Qi <yao@codesourcery.com>
1563 * symfile.c (add_symbol_file_command): Update message on usage.
1565 2011-09-28 Paul Koning <paul_koning@dell.com>
1567 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1568 (typy_length, typy_get, typy_has_key, typy_make_iter)
1569 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1570 (typy_iterator_iter, typy_iterator_iternext)
1571 (typy_iterator_dealloc): New functions to implement standard
1572 Python mapping methods on gdb.Type object.
1573 (gdb.TypeIterator): New Python type.
1574 * python/python-internal.h (gdbpy_iter_kind): New enum.
1576 2011-09-28 David S. Miller <davem@davemloft.net>
1578 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1579 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1580 * sparc-tdep.c (sparc_complex_floating_p): New function.
1581 (sparc32_store_arguments): Handle complex floats.
1582 (sparc32_extract_return_value): Likewise.
1583 (sparc32_store_return_value): Likewise.
1584 (sparc32_stabs_argument_has_addr): Likewise.
1585 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1586 (sparc64_store_floating_fields): Handle complex floats.
1587 (sparc64_store_arguments): Likewise.
1588 (sparc64_store_return_value): Likewise.
1590 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1592 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1593 before the change on 2006-12-09.
1594 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1595 generates the environment block for CreateProcessA, modulo the
1596 Cygwin-specific parts that are not needed here.
1598 2011-09-27 Tristan Gingold <gingold@adacore.com>
1600 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1601 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1602 (darwin_solib_get_all_image_info_addr_at_init): New function.
1603 (darwin_solib_read_all_image_info_addr): Likewise.
1604 (darwin_solib_create_inferior_hook): Use the above two functions.
1605 * darwin-nat.c (darwin_execvp): Renames retval to res.
1606 (darwin_read_write_inferior): Update comment.
1607 (darwin_read_dyld_info): New function.
1608 (darwin_xfer_partial): Handle DYLD_INFO.
1610 2011-09-27 Stan Shebs <stan@codesourcery.com>
1612 Add return address collection for tracepoints.
1613 * tracepoint.c (encode_actions_1): Add case for $_ret.
1614 (validate_actionline): Check for $_ret.
1615 (trace_dump_actions): Ditto.
1616 * ax-gdb.h (gen_trace_for_return_address): Declare.
1617 * ax-gdb.c: Include arch-utils.h.
1618 (gen_trace_for_return_address): New function.
1619 (agent_command): Add return address special case.
1620 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1621 (amd64_gen_return_address): New function.
1622 (amd64_init_abi): Call it.
1623 * i386-tdep.c: Include ax.h and ax-gdb.h.
1624 (i386_gen_return_address): New function.
1625 (i386_init_abi): Call it.
1626 * arch-utils.h (default_gen_return_address): Declare.
1627 * arch-utils.c (default_gen_return_address): New function.
1628 * gdbarch.sh (gen_return_address): New method.
1629 * gdbarch.h, gdbarch.c: Regenerate.
1631 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1634 * i386-tdep.c (i386_frame_align): New.
1635 (i386_gdbarch_init): Use i386_frame_align.
1637 2011-09-23 Yao Qi <yao@codesourcery.com>
1639 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1642 2011-09-22 Tristan Gingold <gingold@adacore.com>
1644 * fork-child.c (fork_inferior): Add exec_fun parameter.
1645 Call exec_fun or execvp.
1646 * inferior.h: Adjust prototype.
1647 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1648 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1649 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1650 * procfs.c (procfs_create_inferior): Ditto.
1651 * darwin-nat.c (darwin_execvp): New function.
1652 (darwin_create_inferior): Use it.
1654 2011-09-22 Yao Qi <yao@codesourcery.com>
1656 * infrun.c (context_switch): Print debug message when switching to
1659 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1661 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1662 complex and vector types.
1663 (s390_return_value_convention): Likewise.
1665 (s390_value_from_register): Call check_typedef.
1666 (extend_simple_arg): Likewise.
1667 (alignment_of): Likewise.
1668 (s390_push_dummy_call): Likewise.
1669 (s390_return_value): Likewise.
1671 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1673 * event-top.c (async_disconnect): If an exception is thrown from
1674 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1676 * top.c (quit_cover): Return void and take no arguments.
1677 * top.h (quit_cover): Update prototype.
1679 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1681 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1682 current_uiout, not uiout.
1684 2011-09-19 Doug Evans <dje@google.com>
1686 * python/py-auto-load.c (source_section_scripts): Fix file
1688 * python/python.c (source_python_script_for_objfile): Tweak comments.
1690 2011-09-18 Yao Qi <yao@codesourcery.com>
1691 Ulrich Weigand <ulrich.weigand@linaro.org>
1693 Support displaced stepping for Thumb 16-bit insns.
1694 * arm-tdep.c (THUMB_NOP) Define.
1695 (thumb_copy_unmodified_16bit): New.
1696 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1697 (thumb_copy_alu_reg): New.
1698 (arm_copy_svc): Move some common code to ...
1699 (install_svc): ... here. New.
1700 (thumb_copy_svc): New.
1701 (install_pc_relative): New.
1702 (thumb_copy_pc_relative_16bit): New.
1703 (thumb_decode_pc_relative_16bit): New.
1704 (thumb_copy_16bit_ldr_literal): New.
1705 (thumb_copy_cbnz_cbz): New.
1706 (cleanup_pop_pc_16bit_all): New.
1707 (thumb_copy_pop_pc_16bit): New.
1708 (thumb_process_displaced_16bit_insn): New.
1709 (thumb_process_displaced_32bit_insn): New.
1710 (thumb_process_displaced_insn): process thumb instruction.
1712 Support displaced stepping for Thumb 32-bit insns.
1713 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1714 (thumb2_copy_preload): New.
1715 (thumb2_copy_copro_load_store): New.
1716 (thumb2_copy_b_bl_blx): New.
1717 (thumb2_copy_alu_imm): New.
1718 (thumb2_copy_load_reg_imm): New.
1719 (thumb2_copy_load_literal): New
1720 (thumb2_copy_block_xfer): New.
1721 (thumb_32bit_copy_undef): New.
1722 (thumb_32bit_copy_unpred): New.
1723 (thumb2_decode_ext_reg_ld_st): New.
1724 (thumb2_decode_svc_copro): New.
1725 (decode_thumb_32bit_store_single_data_item): New.
1726 (thumb_copy_pc_relative_32bit): New.
1727 (thumb_decode_pc_relative_32bit): New.
1728 (decode_thumb_32bit_ld_mem_hints): New.
1729 (thumb2_copy_table_branch): New
1730 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1733 2011-09-18 Yao Qi <yao@codesourcery.com>
1735 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1736 (install_b_bl_blx): Likewise.
1738 2011-09-17 Yao Qi <yao@codesourcery.com>
1740 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1741 (install_load_store): ... this. New.
1742 Change parameter BYTE to SIZE.
1743 (arm_copy_ldr_str_ldrb_strb): Update caller.
1744 (arm_decode_ld_st_word_ubyte): Update caller.
1746 2011-09-17 Yao Qi <yao@codesourcery.com>
1748 * infrun.c (displaced_step_fixup): Move some code ...
1749 (displaced_step_restore): ... here. New function.
1750 (handle_inferior_event): Cleanup displaced stepping state for both
1751 child and parent when get forked or vforked event.
1752 * regcache.c (get_thread_arch_aspace_regcache): New function.
1753 get_thread_arch_regcache (): Call it.
1755 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1757 * ada-tasks.c (print_ada_task_info): New function, merging
1758 short_task_info and info_tasks together. Reimplement using
1759 ui-out instead of printing to stdout directly. Move the code
1760 building and checking the task list here, instead of leaving it
1761 in info_tasks_command.
1762 (info_task): Move the code building and checking the task
1763 list here, instead of leaving it in info_tasks_command.
1764 (info_tasks_command): Delete code building and checking
1765 the task list - moved elsewhere. Update calls to info_tasks
1768 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1770 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1772 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1774 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1776 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1778 * ada-lang.h (ada_build_task_list): Remove parameter
1780 * ada-tasks.c (ada_build_task_list): Remove parameter
1781 `warn_if_null'. Adjust implementation and documentation.
1782 (valid_task_id, ada_get_environment_task)
1783 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1784 (info_tasks_command): Adjust implementation.
1785 (task_command): Likewise.
1786 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1787 to ada_build_task_list.
1789 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1791 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1792 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1793 (ada_tasks_inferior_data_handle): New static global.
1794 (get_ada_tasks_inferior_data): New function.
1795 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1796 (ada_get_environment_task, iterate_over_live_ada_tasks)
1797 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1799 (ada_set_current_inferior_known_tasks_addr): New function.
1800 (read_known_tasks, ada_build_task_list, short_task_info)
1801 (info_tasks, info_task, info_tasks_command, task_command_1)
1802 (task_command, ada_task_list_changed): Adjust.
1803 (ada_tasks_invalidate_inferior_data): New function.
1804 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1805 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1806 * ada-lang.h (struct inferior): Add declaration.
1807 (ada_task_list_changed): Update profile.
1808 * remote-wtx-pd.c: #include "inferior.h".
1809 (switch_to_pd_internal): Update call to ada_task_list_changed.
1811 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1813 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1814 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1815 (atcb_fieldno): Delete these static globals.
1816 (struct ada_tasks_pspace_data): New struct.
1817 (ada_tasks_pspace_data_handle): New static global.
1818 (get_ada_tasks_pspace_data): New function.
1819 (ada_tasks_invalidate_pspace_data): New function.
1820 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1821 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1822 (_initialize_tasks): Create this module's per-progspace
1825 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1827 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1829 2011-09-16 Tristan Gingold <gingold@adacore.com>
1831 * fork-child.c (fork_inferior): Update comment. Use alloca
1832 instead of xmalloc for argv. Move len and shell_command
1833 declarations in the block where they are used.
1834 Only call execvp. Factorize failure code.
1836 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1839 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1840 `exp_element' instead of an element of the same and make the function
1842 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1843 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1844 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1845 Change argument of `write_exp_elt' function call.
1846 Remove extra spaces from comments.
1847 * parser-defs.h (write_exp_elt): Remove prototype.
1849 2011-09-15 Paul Koning <paul_koning@dell.com>
1851 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1852 count of item appended to list.
1853 * python/py-type.c (typy_fields): Likewise.
1855 2011-09-15 Paul Koning <paul_koning@dell.com>
1857 * MAINTAINERS (Write After Approval): Add myself to the list.
1859 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1862 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1863 processes with multiple threads.
1864 (inf_has_multiple_thread_cb): New function.
1865 (inf_has_multiple_threads): New function.
1867 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1869 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1870 * python/py-inferior.c (GdbMethods): New Python method definition.
1872 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1874 Handle multiple breakpoint hits in Python interface:
1875 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1876 variable to breakpoints.
1877 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1878 bps instead of single breakpoint. Fix some space typos.
1879 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1880 variable to breakpoints.
1882 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1884 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1885 note if the breakpoint is internal.
1887 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1889 * MAINTAINERS (Write After Approval): Add myself to the list
1891 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1893 * infrun.c (prepare_for_detach, wait_for_inferior)
1894 (fetch_inferior_event): Don't flush the register cache.
1895 * remote.c (struct stop_reply) <regcache>: Add comment.
1897 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1899 Remove excessive DWARF expressions memory duplication.
1900 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1902 (indirect_pieced_value): Remove variable result. Remove variable
1903 back_to and its use for baton.data.
1904 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1906 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1907 Update the function comment.
1909 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1911 * inferior.h (ALL_INFERIORS): New.
1912 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1913 for a stopped thread.
1914 (thread_db_find_new_threads): Look for threads in all inferiors.
1916 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1918 * breakpoint.c (update_watchpoint): Handle the case of the
1919 watchpoint to update not being in the breakpoint list yet.
1920 (hw_watchpoint_use_count): New, factored out from
1921 hw_watchpoint_used_count.
1922 (hw_watchpoint_used_count): Rename to ...
1923 (hw_watchpoint_used_count_others): ... this. Add `except'
1924 parameter. Don't count resources of `except'. Use
1925 hw_watchpoint_use_count.
1927 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1929 * gdbthread.h (enum thread_state): Moved here.
1930 (struct thread_info): Rename `executing_' field to `executing' and
1931 `state_' to `state'.
1932 * thread.c (enum thread_state): Moved to gdbthread.h.
1933 (new_thread, add_thread_silent, delete_thread_1)
1934 (any_live_thread_of_process, thread_alive, set_running)
1935 (set_running, is_thread_state, any_running, is_executing)
1936 (set_executing, finish_thread_state, print_thread_info)
1937 (do_captured_thread_select): Adjust.
1939 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1941 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1942 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1944 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1945 Matt Rice <ratmice@gmail.com>
1949 * interps.c (struct interp) <interpreter_out>: Delete field.
1950 (interp_new): Remove the data and uiout parameters and adjust.
1951 (interp_set): Only set the current_uiout from the interpreter's
1952 uiout after initializing the interpreter. Adjust call to
1954 (interp_ui_out): Adjust to call procs->ui_out_proc.
1955 (interp_data, interp_name): New.
1956 * interps.h (interp_init_ftype): Add `self' parameter.
1957 (interp_ui_out_ftype): New typedef.
1958 (struct interp_procs) <ui_out_proc>: New method pointer.
1959 (interp_new): Remove the data and uiout parameters.
1960 (interp_data, interp_name): Declare.
1961 * tui/tui-interp.c (tui_init): Adjust prototype.
1963 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1964 tui_out here. Adjust call to interp_new.
1965 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1966 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1968 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1969 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1970 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1971 Initialize mi->uiout depending on the mi_version as extracted from
1972 the interpreter's name.
1974 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1975 interp_new. Don't allocate the ui_out's of the interpreters here.
1977 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1979 * solib.c (solib_used): New function.
1980 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1981 by another so_list object before freeing it.
1983 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1989 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1993 (amd64_skip_xmm_prologue): ... this new function. Describe its
1994 parameters. No longer use amd64_prologue_line_bug.
1995 * defs.h (producer_is_gcc_ge_4): New declaration.
1996 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1997 (process_full_comp_unit): Update its caller. Remove
1998 amd64_prologue_line_bug initialization.
1999 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2000 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2002 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2004 * linux-nat.h (enum resume_kind): New.
2005 (struct lwp_info) <last_resume_kind>: New field.
2006 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2007 resume_stop on the new lwp.
2008 (add_lwp): Set last_resume_kind as resume_continue by default.
2009 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2010 (resume_lwp): New, factored out from resume_callback. Also check
2011 for pending status in lp->waitstatus.
2012 (resume_callback): Reimplement.
2013 (resume_clear_callback): Set last_resume_kind as resume_stop.
2014 (resume_set_callback): Set last_resume_kind as resume_continue.
2015 (linux_nat_resume, linux_handle_extended_wait): Set
2017 (running_callback): Also check lp->waitstatus for pending events.
2018 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2020 (stop_and_resume_callback): Don't re-resume if the core wanted the
2021 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2022 using an invalidated pointer.
2023 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2024 SIGSTOPs if the core wanted the LWP to stop.
2025 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2026 wanted the lwp to stop. If the core wanted the lwp to stop, and
2027 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2028 of TARGET_SIGNAL_STOP.
2029 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2030 here. Instead, signal the lwp, and set the last_resume_kind to
2033 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2035 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2036 -1 (error), if the lwp exits right after attaching.
2038 2011-09-08 Doug Evans <dje@google.com>
2040 * py-cmd.c: Some minor formatting fixes.
2041 (gdbpy_parse_command_name): Rename text arg to name, make const.
2042 All callers updated.
2043 * python-internal.h (gdbpy_parse_command_name): Update.
2045 * cli/cli-decode.c (add_cmd): Add comment.
2047 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2049 PR breakpoints/12435
2050 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2051 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2052 * dwarf2read.c (process_full_comp_unit): Initialize
2053 amd64_prologue_line_bug.
2054 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2056 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2058 Fix TUI screen corruption.
2059 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2062 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2064 * findvar.c (read_var_value): Never return NULL, throw an error
2065 instead. Update the function comment. State symbol name in the error
2067 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2069 * stack.c (print_frame_args): Likewise.
2070 * valops.c (value_of_variable): Likewise.
2072 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2074 * stack.c (print_frame_args): New variable except. Wrap
2075 read_var_value and common_val_print into TRY_CATCH.
2077 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2079 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2080 caller to value_of_this.
2081 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2083 * valops.c (value_of_this): Remove parameter complain and variable ret.
2084 Update function comment. Never return NULL by this code.
2085 (value_of_this_silent): New function.
2086 * value.h (value_of_this): Remove parameter complain.
2087 (value_of_this_silent): New declaration.
2089 2011-09-07 Yao Qi <yao@codesourcery.com>
2091 * gdbthread.h (struct thread_info): Remove fields
2092 `stepping_through_solib_after_catch' and
2093 `stepping_through_solib_catchpoints'.
2094 * infrun.c (init_thread_stepping_state): Update.
2095 (process_event_stop_test, currently_stepping): Update.
2096 (currently_stepping_or_nexting_callback): Update.
2098 2011-09-07 Yao Qi <yao@codesourcery.com>
2100 * gdbthread.h (struct thread_info): Comment on field
2101 `step_after_step_resume_breakpoint'.
2103 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2105 * remote.c (remote_console_output): Reindent.
2107 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2109 * frame.c (has_stack_frames): Check for currently selected
2112 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2114 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2115 (set_async_annotation_level, set_async_prompt, pop_prompt)
2116 (push_prompt, new_async_prompt): Delete declarations.
2117 * top.h (get_prompt, set_prompt): Change prototype.
2118 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2120 * top.c (command_loop):
2121 (top_prompt): New global.
2122 (get_prefix, set_prefix, get_suffix, ): Delete.
2123 (get_prompt, set_prompt): Rewrite.
2124 (show_new_async_prompt): Rename to ...
2125 (show_prompt): ... this.
2126 (init_main): Adjust. Don't handle --annotate=2 here.
2127 * event-top.c (new_async_prompt): Delete.
2128 (the_prompts): Delete.
2129 (more_to_come): Make static.
2130 (display_gdb_prompt): Use top_level_prompt() to compute the top
2131 level prompt, and don't notify the before_prompt observers
2132 directly here. Always trick readline into not trying to display
2133 the prompt if sync_execution and displaying the primary prompt.
2134 If displaying a local/secondary prompt, always show it, even if
2135 sync_execution is set.
2136 (change_annotation_level): Delete.
2137 (top_level_prompt): New, based on change_annotation_level.
2138 (push_prompt, pop_prompt): Delete.
2139 (async_disable_stdin): No longer pushes prompt.
2140 (command_line_handler): No longer pushes or pops prompt. If more
2141 input is expected, call display_gdb_prompt with an explicit empty
2143 (async_stop_sig): Adjust.
2144 (set_async_annotation_level, set_async_prompt): Delete.
2145 * python/python.c (before_prompt_hook): Adjust.
2147 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2151 * infrun.c (fetch_inferior_event): Check if there's a selected
2152 thread before checking if the selected thread is executing.
2154 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2156 * inf-loop.c (execute_command): Don't check if the current thread
2157 if running before synchronously waiting for command completion.
2158 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2160 (normal_stop): Call async_enable_stdin here.
2161 * inf-loop.c (inferior_event_handler): Don't call
2162 async_enable_stdin, nor handle "set exec-done-display" here.
2164 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2168 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2170 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2172 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2174 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2176 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2178 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2180 2011-09-02 Matt Rice <ratmice@gmail.com>
2183 * event-top.c (cli_command_loop): Replace readline setup with
2184 direct call to display_gdb_prompt.
2185 (display_gdb_prompt): Do not call observer mechanism during
2186 synchronous execution.
2188 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2190 * linux-nat.c (in_pid_list_p): New.
2191 (linux_record_stopped_pid): Delete.
2192 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2193 already attached to the LWP. Return an indication if so.
2194 (linux_nat_filter_event): Adjust.
2195 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2196 returning an indication to ignore this thread.
2198 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2200 * top.c: Include interps.h.
2201 (execute_command): If the target can async, but the interpreter is
2202 in sync mode, synchronously wait for the command to finish before
2204 (execute_command_to_string): Force the interpreter to sync mode.
2205 * infrun.c: Include interps.h.
2206 (fetch_inferior_event): Don't restore the prompt yet if the
2207 interpreter is in sync mode.
2208 * interps.c (interpreter_async): New global.
2209 * interps.h (interpreter_async): Declare.
2210 * inf-loop.c: Include interps.h.
2211 (inferior_event_handler): Don't print the language change or run
2212 breakpoint commands yet if the interpreter in is sync mode.
2213 * main.c (captured_command_loop): Flip the interpreter to async
2215 * cli/cli-script.c: Include interps.h.
2216 (execute_user_command, while_command, if_command): Force the
2217 interpreter to sync mode.
2218 * python/python.c: Include interps.h.
2219 (python_command, execute_gdb_command): Force the interpreter to
2222 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2224 * value.c (show_convenience): Catch errors thrown while printing
2225 each internal variable.
2226 * infrun.c (validate_siginfo_access): New function.
2227 (siginfo_value_read, siginfo_value_write): Call it.
2229 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2232 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2233 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2236 2011-08-29 Yao Qi <yao@codesourcery.com>
2238 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2240 (enable_break2): Update caller.
2241 * solib-frv.c (bfd_lookup_symbol): Removed.
2243 (enable_break2): Update caller.
2244 * solib-pa64.c (bfd_lookup_symbol): Removed.
2246 * solib-svr4.c (bfd_lookup_symbol): Removed.
2247 (cmp_name_and_sec_flags): New.
2248 (enable_break): Update caller.
2249 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2250 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2251 (gdb_bfd_lookup_symbol): New.
2252 * solib.h: Functions declarations.
2254 2011-08-29 Yao Qi <yao@codesourcery.com>
2256 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2259 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2261 Fix TUI stepi on code without symbols.
2262 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2265 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2269 and the static keyword.
2270 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2271 Make prefix an array.
2272 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2273 * mi/mi-main.c (get_register): Remove stb initialization and the static
2276 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2278 Code cleanup - make mi_opt const.
2279 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2281 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2282 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2283 (mi_cmd_env_dir): Likewise.
2284 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2285 (mi_cmd_target_file_put): Likewise.
2286 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2287 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2288 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2289 (mi_valid_noargs): Make opts const.
2290 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2291 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2292 (mi_cmd_data_read_memory): Likewise.
2293 (mi_cmd_data_read_memory_bytes): Likewise.
2294 (mi_cmd_data_write_memory): Likewise.
2296 2011-08-26 Matt Rice <ratmice@gmail.com>
2298 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2299 bcache_xmalloc, replace bcache_xmalloc with call to
2300 psymbol_bcache_init for psymbol_cache.
2301 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2303 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2305 * inf-loop.c (inferior_event_handler): Add exception_print in
2308 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2310 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2311 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2312 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2313 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2314 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2315 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2316 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2317 * infrun.c (fetch_inferior_event): Call
2318 make_bpstat_clear_actions_cleanup.
2319 * top.c (execute_command): New variable cleanup_if_error, call
2320 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2321 * utils.c (do_bpstat_clear_actions_cleanup)
2322 (make_bpstat_clear_actions_cleanup): New functions.
2324 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2326 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2327 either the parent or the child forks. Rename a couple locals.
2329 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2331 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2332 library call. Avoid reading the `status' local if all waitpid
2335 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2337 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2338 opening /proc/PID/task always succeeds.
2340 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2342 * linespec.c (symtab_from_filename): Check for the end of string.
2344 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2347 * varobj.c (cplus_describe_child): Add the keyword
2348 'class' to the output of the method when dealing
2349 with a cast to a base class.
2351 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2353 No functionality change.
2354 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2355 function comment a reference, new variables tp and bs, move here code
2356 from throw_exception.
2357 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2358 describe it in the comment.
2359 * exceptions.c (throw_exception): Remove variable tp, move the code for
2360 bpstat_clear_actions to bpstat_clear_actions.
2362 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2364 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2365 * linux-nat.c: Include linux-procfs.h.
2366 (linux_proc_get_tgid): Move to ...
2367 * common/linux-procfs.c: ... here. New file.
2368 * common/linux-procfs.h: New file.
2369 * linux-thread-db.c: Include linux-procfs.h.
2370 * Makefile.in: Update dependencies.
2371 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2372 * config/arm/linux.mh: Likewise.
2373 * config/i386/linux.mh: Likewise.
2374 * config/i386/linux64.mh: Likewise.
2375 * config/ia64/linux.mh: Likewise.
2376 * config/m32r/linux.mh: Likewise.
2377 * config/m68k/linux.mh: Likewise.
2378 * config/mips/linux.mh: Likewise.
2379 * config/pa/linux.mh: Likewise.
2380 * config/pa/linux.mh: Likewise.
2381 * config/powerpc/linux.mh: Likewise.
2382 * config/powerpc/ppc64-linux.mh: Likewise.
2383 * config/powerpc/spu-linux.mh: Likewise.
2384 * config/sparc/linux.mh: Likewise.
2385 * config/sparc/linux64.mh: Likewise.
2386 * config/xtensa/linux.mh: Likewise.
2388 2011-08-24 Hui Zhu <teawater@gmail.com>
2390 * tracepoint.c (cond_string_is_same): New function.
2391 (find_matching_tracepoint): Add condition check
2392 by cond_string_is_same.
2394 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2396 Fix build error in Darwin port.
2397 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2399 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2403 (command_line_is_silent): New function.
2404 (bpstat_do_actions_1): No longer use commands_left, use
2405 command_line_is_silent for commands.
2406 (bpstat_alloc): Remove clearing of commands_left.
2407 (bpstat_stop_status): Remove initialization of commands_left, use
2408 command_line_is_silent.
2409 * breakpoint.h (struct bpstats): Remove commands_left.
2411 2011-08-18 Keith Seitz <keiths@redhat.com>
2414 * cp-name-parser.y (struct demangle_info): Remove unused
2417 (allocate_info): Change return type to struct demangle_info *.
2418 Always allocate a new demangle_info.
2419 Remove unused PREV pointer.
2420 (cp_new_demangle_parse_info): New function.
2421 (cp_demangled_name_parse_free): New function.
2422 (do_demangled_name_parse_free_cleanup): New function.
2423 (make_cleanup_cp_demangled_name_parse_free): New function.
2424 (cp_demangled_name_to_comp): Change return type to
2425 struct demangle_parse_info *.
2426 Allocate a new storage for each call.
2427 (main): Update usage for cp_demangled_name_to_comp
2429 * cp-support.h (struct demangle_parse_info): New structure.
2430 (cp_demangled_name_to_comp): Update API change for
2432 (cp_new_demangle_parse_info): Declare.
2433 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2434 (cp_demangled_name_parse_free): Declare.
2435 * cp-support.c (cp_canonicalize_string): Update API
2436 change for cp_demangled_name_to_comp.
2437 (mangled_name_to_comp): Likewise.
2438 Return struct demangle_parse_info, too.
2439 (cp_class_name_from_physname): Update mangled_name_to_comp
2441 (method_name_from_physname): Likewise.
2442 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2443 (cp_remove_params): Likewise.
2444 * python/py-type.c (typy_legacy_template_argument): Likewise.
2446 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2447 (cp_merge_demangle_parse_infos): Declare.
2448 * cp-support.c (ignore_typedefs): New file global.
2449 (copy_string_to_obstack): New function.
2450 (inspect_type): New function.
2451 (replace_typedefs): New function.
2452 (replace_typedefs_qualified_name): New function.
2453 (cp_canonicalize_string_no_typedefs): New function.
2454 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2455 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2456 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2457 instead of cp_canonicalize_string.
2458 (find_method): Likewise.
2459 (decode_compound): Before looking up the name, call
2460 cp_canonicalize_string_no_typedefs.
2461 (decode_variable): Likewise.
2463 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2464 Tom Tromey <tromey@redhat.com>
2465 Matt Rice <ratmice@gmail.com>
2467 * python/lib/gdb/prompt.py: New file.
2468 * python/lib/gdb/command/prompt.py: New file.
2469 * NEWS: Document set extended-prompt and gdb.prompt library
2471 2011-08-16 Yao Qi <yao@codesourcery.com>
2473 * tic6x-linux-tdep.c: Move const arrays definition from here...
2474 * tic6x-tdep.c: to here ...
2476 2011-08-14 Yao Qi <yao@codesourcery.com>
2478 * NEWS: New port to Texas Instruments TMS320C6x.
2480 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2481 Bernd Schmidt <bernds@codesourcery.com>
2482 Yao Qi <yao@codesourcery.com>
2484 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2485 * solib-dsbt.c: New file. Support DSBT shared object.
2486 * tic6x-linux-tdep.c: New file.
2487 * tic6x-tdep.c: New file.
2488 * tic6x-tdep.h: New file.
2490 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2491 Yao Qi <yao@codesourcery.com>
2493 * remote.c (PACKET_qXfer_fdpic): New enum value.
2494 (remote_protocol_features): Add qXfer:fdpic:read packet.
2495 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2496 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2497 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2499 2011-08-14 Yao Qi <yao@codesourcery.com>
2501 Target description for tic6x.
2502 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2503 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2504 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2505 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2506 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2507 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2508 * features/tic6x-c64xp-linux.xml: New.
2509 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2510 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2511 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2512 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2513 * regformats/tic6x-c64xp.dat,
2514 regformats/tic6x-c62x-linux.dat: Generated.
2515 * regformats/tic6x-c64x-linux.dat,
2516 regformats/tic6x-c64xp-linux.dat: Generated.
2517 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2518 features/tic6x-*.c files.
2519 Add regformats/tic6x-*.dat files.
2521 2011-08-12 Doug Evans <dje@google.com>
2523 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2524 * python/py-symbol.c (sympy_get_type): New function.
2525 (symbol_object_getset): Add "type".
2527 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2531 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2533 (tui_show_register_group): Don't store a byte buffer in the data
2535 (tui_register_format): Skip registers with an empty name.
2536 (tui_get_register): Store a struct value in the data element's
2537 value field instead of a byte buffer holding the raw register
2538 contents. Account for optimized-out and unavailable registers
2539 when comparing register contents.
2541 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2543 * printcmd.c (current_display_number): Update comment.
2544 (disable_current_display_cleanup): Delete.
2545 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2546 catch errors thrown while evaluating and printing the display.
2548 2011-08-09 Tom Tromey <tromey@redhat.com>
2550 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2552 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2554 * elfread.c (elf_symtab_read): Rework comments.
2555 * maint.c (maintenance_command): Ditto.
2556 * somread.c (som_symtab_read): Ditto.
2557 * solib.c (solib_find, solib_map_sections, update_solib_list)
2558 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2559 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2560 (sharedlibrary_command, no_shared_libraries): Ditto.
2561 * solib-irix.c (locate_base, disable_break, enable_break)
2562 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2563 (irix_current_sos, irix_open_symbol_file_object)
2564 (irix_special_symbol_handling): Ditto.
2565 * solib-sunos.c (locate_base, first_link_map_member)
2566 (sunos_current_sos, disable_break, enable_break)
2567 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2569 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2570 (open_symbol_file_object, svr4_current_sos, enable_break)
2571 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2573 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2574 (frv_current_sos, enable_break, frv_special_symbol_handling)
2575 (frv_solib_create_inferior_hook): Ditto.
2576 * solist.h (struct target_so_ops): Extend the comments of the
2577 special_symbol_handling, current_sos and open_symbol_file_object
2580 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2582 * python/lib/gdb/__init__.py: Auto-load files in command and
2583 function directories.
2584 * python/python.c (finish_python_initialization): Use
2586 * python/lib/gdb/command/pretty_printers.py: Self register
2588 * NEWS: Document auto-loading.
2590 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2592 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2593 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2594 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2596 2011-08-08 Tom Tromey <tromey@redhat.com>
2598 * breakpoint.c (clean_up_filters): Remove.
2599 (catch_syscall_split_args): Use VEC_cleanup.
2601 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2603 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2604 (main): Uncomment "Demangling error\n".
2606 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2608 * solib-target.c (segment_attributes): Make them static.
2609 (section_attributes, library_children, library_attributes): Likewise.
2610 (library_list_children, library_list_attributes): Likesise.
2611 (library_list_elements): Likewise.
2613 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2615 * exceptions.c (throw_exception): Don't disable the current
2617 * printcmd.c (disable_current_display_cleanup): New function.
2618 (do_one_display): Install a cleanup to disable the current display
2619 if doing the display throws.
2621 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2623 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2624 initialization of the tp_new member to the corresponding
2625 gdbpy_initialize_* function.
2626 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2627 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2628 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2629 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2630 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2632 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2634 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2635 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2636 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2637 references to current_uiout.
2639 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2641 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2642 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2643 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2644 * top.c (gdb_readline_wrapper): Adjust.
2645 * tui/tui-interp.c (tui_command_loop):
2646 (_initialize_tui_interp): Don't install it.
2648 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2650 * ui-out.h (uiout): Rename to ...
2651 (current_uiout): ... this.
2652 * ui-out.c (uiout): Rename to ...
2653 (current_uiout): ... this.
2654 * ada-lang.c (print_it_exception, print_one_exception)
2655 (print_mention_exception): Adjust.
2656 * breakpoint.c (watchpoint_check): Adjust.
2657 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2658 (default_collect_info, watchpoints_info, print_one_catch_fork)
2659 (print_one_catch_vfork, print_one_catch_syscall)
2660 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2661 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2662 (print_it_watchpoint, print_mention_watchpoint)
2663 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2664 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2665 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2666 (bkpt_print_mention, momentary_bkpt_print_it)
2667 (tracepoint_print_mention, update_static_tracepoint)
2668 (tracepoints_info, save_breakpoints): Adjust.
2669 * cli-out.c (field_separator): Adjust.
2670 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2671 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2672 * frame.c (get_current_frame): Adjust.
2673 * infcmd.c (run_command_1, print_return_value): Adjust.
2674 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2675 * infrun.c (print_end_stepping_range_reason): Adjust.
2676 (print_signal_exited_reason, print_exited_reason): Adjust.
2677 (print_signal_received_reason, print_no_history_reason): Adjust.
2678 * interps.c (interp_set): Adjust.
2679 * osdata.c (info_osdata_command): Adjust.
2680 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2681 * remote-fileio.c (remote_fileio_request): Adjust.
2682 * remote.c (show_remote_cmd): Adjust.
2683 * solib.c (info_sharedlibrary_command): Adjust.
2684 * source.c (print_source_lines_base): Adjust.
2685 * stack.c (print_stack_frame): Adjust.
2686 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2687 * symfile-mem.c (add_vsyscall_page): Adjust.
2688 * symfile.c (load_progress, generic_load)
2689 (print_transfer_performance): Adjust.
2690 * thread.c (info_threads_command, restore_selected_frame)
2691 (thread_command): Adjust.
2692 * top.c (make_cleanup_restore_ui_file): Adjust.
2693 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2694 (print_one_static_tracepoint_marker): Adjust.
2695 * cli/cli-cmds.c (print_disassembly): Adjust.
2696 * cli/cli-decode.c (print_doc_line): Adjust.
2697 * cli/cli-interp.c (safe_execute_command): Adjust.
2698 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2699 (handle_redirections): Adjust.
2700 * cli/cli-script.c (show_user_1): Adjust.
2701 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2702 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2703 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2704 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2705 (mi_cmd_env_dir): Adjust.
2706 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2707 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2708 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2709 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2710 (list_args_or_locals): Adjust.
2711 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2712 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2713 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2714 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2715 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2716 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2717 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2718 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2719 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2720 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2721 (list_available_thread_groups, mi_cmd_list_thread_groups)
2722 (mi_cmd_data_list_register_names)
2723 (mi_cmd_data_list_changed_registers)
2724 (mi_cmd_data_list_register_values, get_register)
2725 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2726 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2727 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2728 (mi_execute_command, mi_load_progress): Adjust.
2729 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2730 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2732 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2733 * tui/tui-interp.c (tui_command_loop): Adjust.
2734 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2736 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2738 * exceptions.c (struct catcher): Remove saved_uiout field.
2739 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2740 no longer save/resvore the global ui_out builder.
2741 (catch_exceptions_with_msg): Save/override/restore the global
2742 ui_out builder manually instead of relying on TRY_CATCH to do it.
2743 (catch_errors): Save/restore the global ui_out builder manually
2744 instead of relying on TRY_CATCH to do it.
2745 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2747 (TRY_CATCH): Adjust.
2748 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2749 the global ui_out builder manually instead of relying on TRY_CATCH
2752 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2754 * breakpoint.c (update_global_location_list): Ensure
2755 invariant 'first loc marked not duplicated and inserted,
2756 following locs marked duplicated/not inserted' is respected
2757 for multiple locations at the same address.
2758 (unduplicated_should_be_inserted) New function.
2759 (swap_insertion) New function.
2761 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2763 * stack.c (print_frame_arguments_choices): Comment typo fix.
2765 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2768 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2769 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2770 argument. Update callers.
2772 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2775 * doublest.c (convert_doublest_to_floatformat): Pass correct
2776 mantissa length to put_field.
2778 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2780 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2781 exception_print code path.
2782 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2783 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2784 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2786 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2789 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2790 Remove, merge them into ...
2791 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2792 variable args and its initialization.
2793 (struct print_args_args, print_args_stub): Remove, merge them into
2795 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2797 (do_gdb_disassembly): ... here. Remove variable args and its
2799 (print_frame): Remove variable args and its initialization, new
2800 variable gdbarch and numargs (from print_args_stub), inline here
2801 print_args_stub with a TRY_CATCH.
2802 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2804 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2805 New variable e, remove variable btargs and its initialization.
2807 2011-08-01 Tristan Gingold <gingold@adacore.com>
2809 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2811 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2813 * breakpoint.c (insert_bp_location): Document return value.
2814 (insert_breakpoint_locations): Fix documentation.
2815 (remove_breakpoints): Add documentation.
2817 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2819 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2820 argument. Update callers.
2822 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2824 * stack.c (print_frame_info): Comment typo fix.
2826 2011-07-29 Sterling Augustine <saugustine@google.com>
2828 * MAINTAINERS (Write After Approval): Add myself to the list.
2830 2011-07-29 Tom Tromey <tromey@redhat.com>
2832 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2833 (library_list_start_segment): Update.
2834 (library_list_start_section): Update.
2836 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2838 * varobj.c (value_get_print_value): Move hint check later into the
2839 function. Comment function. Free thevalue before reusing it.
2841 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2842 Pedro Alves <pedro@codesourcery.com>
2844 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2846 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2847 Assert the result kind.
2848 * value.h (value_one): Remove parameter lv.
2850 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2852 Fix crash on lval_computed values.
2853 * valops.c (value_zero): Use not_lval for lval_computed.
2855 2011-07-27 Tom Tromey <tromey@redhat.com>
2857 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2858 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2860 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2863 "ptype" by their typedefs difference.
2865 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2867 * dwarf2expr.c (ctx_no_read_reg): New function.
2868 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2869 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2870 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2871 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2873 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2875 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2876 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2878 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2879 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2880 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2881 (ctx_no_get_base_type): Move the functions here.
2882 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2883 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2884 (ctx_no_get_base_type): New declarations.
2886 2011-07-27 Tom Tromey <tromey@redhat.com>
2888 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2890 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2891 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2893 2011-07-26 Sterling Augustine <saugustine@google.com>
2895 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2897 (dump_bfd_file): Likewise.
2899 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2901 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2902 (remote_hw_watchpoint_length_limit): New variable.
2903 (_initialize_remote) add set,show cmds for this new variable.
2904 * gdb.texinfo: document these new commands.
2905 * NEWS: Mention these new commands.
2907 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2909 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2910 true for software watchpoints.
2912 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2916 2011-07-26 Tom Tromey <tromey@redhat.com>
2918 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2919 * dwarf2read.c (read_indirect_string_at_offset): New function.
2920 (read_indirect_string): Use it.
2921 (dwarf_decode_macro_bytes): New function, taken from
2922 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2923 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2924 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2926 (struct dwarf2_per_objfile) <macro>: New field.
2927 (dwarf2_elf_names): Add .debug_macro.
2928 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2929 (dwarf2_locate_sections): Handle new section.
2930 (read_file_scope): Handle DW_AT_GNU_macros.
2931 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2933 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2935 * NEWS: Mention dcache configuration.
2936 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2937 (dcache_size, dcache_line_size): New variables.
2938 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2939 (struct dcache_block): Make it expandable.
2940 (struct dcache_struct): New field.
2941 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2942 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2943 (dcache_poke_byte, dcache_print_line): Adjust.
2944 (set_dcache_size, set_dcache_line_size): New functions.
2945 (set_dcache_command, show_dcache_command): New functions.
2946 (_initialize_dcache): Add new commands.
2948 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2950 * progspace.h (struct program_space): Add solib_add_generation.
2951 * infcmd.c (post_create_inferior): Only call solib_add if not
2953 * solib.c (solib_add): Increment solib_add_generation.
2955 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2957 Fix implicit pointer offsets.
2958 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2961 2011-07-25 Tom Tromey <tromey@redhat.com>
2963 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2965 (ada_exception_sal): Make 'ops' const.
2966 (ada_decode_exception_location): Likewise.
2967 (ada_decode_assert_location): Likewise.
2968 (catch_assert_command): Update.
2969 (catch_ada_exception_command): Update.
2970 (create_ada_exception_catchpoint): Make 'ops' const.
2971 * breakpoint.c (set_raw_breakpoint_without_location)
2972 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2974 (create_internal_breakpoint): Update.
2975 (init_raw_breakpoint_without_location): Make 'ops' const.
2976 (init_raw_breakpoint, init_catchpoint)
2977 (create_fork_vfork_event_catchpoint)
2978 (create_syscall_event_catchpoint, init_breakpoint_sal)
2979 (create_breakpoint_sal, create_breakpoints_sal)
2980 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2981 * breakpoint.h (struct breakpoint) <ops>: Now const.
2982 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2985 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2987 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2989 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2991 * breakpoint.h (print_recreate_thread): Declare.
2992 (struct breakpoint): Move step_count, pass_count,
2993 number_on_target, static_trace_marker_id,
2994 static_trace_marker_id_idx ...
2995 (struct tracepoint): ... to this new struct.
2996 (get_tracepoint, get_tracepoint_by_number_on_target)
2997 (get_tracepoint_by_number): Change return type to struct
2999 * breakpoint.c (is_tracepoint_type): New, factored out from
3001 (is_tracepoint): Adjust.
3002 (print_one_breakpoint_location): Cast to struct tracepoint as
3003 necessary, and adjust.
3004 (print_recreate_catch_fork, print_recreate_catch_vfork)
3005 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3006 print_recreate_thread.
3007 (init_breakpoint_sal): New, factored out from
3008 create_breakpoint_sal.
3009 (create_breakpoint_sal): Reimplement.
3010 (create_breakpoint): Allocate a struct tracecepoint if the caller
3011 wanted a tracepoint. Use init_breakpoint_sal and
3013 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3014 (print_recreate_masked_watchpoint)
3015 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3016 (tracepoint_print_one_detail): Adjust.
3017 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3018 Dump the pass count here.
3019 (update_static_tracepoint): Adjust.
3020 (addr_string_to_sals): Adjust.
3021 (create_tracepoint_from_upload): Adjust. Change return type to
3022 struct tracepoint pointer.
3023 (trace_pass_set_count): Change parameter type to struct tracepoint
3024 pointer, and adjust.
3025 (trace_pass_command): Adjust.
3026 (get_tracepoint, get_tracepoint_by_number_on_target)
3027 (get_tracepoint_by_number): Change return type to struct
3028 tracepoint pointer, and adjust.
3029 (print_recreate_thread): New, factored out from save_breakpoints.
3030 (save_breakpoints): Don't print thread and task and passcount
3032 * remote.c (remote_download_tracepoint): Adjust.
3033 * tracepoint.c (trace_actions_command, validate_actionline)
3034 (start_tracing, tfind_1, trace_find_tracepoint_command)
3035 (trace_dump_command): Adjust.
3036 (find_matching_tracepoint): Change return type to struct
3037 tracepoint pointer, and adjust.
3038 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3039 (tfile_trace_find, tfile_fetch_registers): Adjust.
3040 * tracepoint.h (create_tracepoint_from_upload): Change return type
3041 to struct tracepoint pointer.
3042 * ada-lang.c (print_recreate_exception): Call
3043 print_recreate_thread.
3044 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3046 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3048 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3049 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3050 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3051 watchpoint_thread, watchpoint_triggered ...
3052 (struct watchpoint): ... to this new struct.
3053 (is_watchpoint): Declare.
3054 (install_breakpoint): Add new `internal' parameter.
3055 * breakpoint.c (is_watchpoint): Delete declaration.
3056 (set_breakpoint_condition): Handle watchpoints.
3057 (is_watchpoint): Make public.
3058 (watchpoint_in_thread_scope): Change parameter type to struct
3060 (watchpoint_del_at_next_stop): Change parameter type to struct
3061 watchpoint. Remove assertion. Adjust.
3062 (update_watchpoint): Ditto.
3063 (insert_breakpoints, breakpoint_init_inferior)
3064 (watchpoints_triggered, watchpoint_check)
3065 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3066 (bpstat_stop_status, print_one_breakpoint_location)
3067 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3068 to struct watchpoint as necessary, and adjust.
3069 (install_breakpoint): Add `internal' argument. If true, don't
3070 mention the new breakpoint. Use set_breakpoint_number.
3071 (create_fork_vfork_event_catchpoint)
3072 (create_syscall_event_catchpoint): Adjust.
3073 (dtor_watchpoint): New.
3074 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3075 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3076 (print_it_watchpoint, print_mention_watchpoint)
3077 (print_recreate_watchpoint, insert_masked_watchpoint)
3078 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3079 (print_one_detail_masked_watchpoint)
3080 (print_mention_masked_watchpoint)
3081 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3082 necessary, and adjust.
3083 (watch_command_1): Allocate and initialize a struct watchpoint
3084 instead of a struct breakpoint. Use install_breakpoint.
3085 (catch_exec_command_1): Adjust.
3086 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3088 (delete_breakpoint, enable_breakpoint_disp)
3089 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3090 as necessary, and adjust.
3091 (initialize_breakpoint_ops): Install dtor_watchpoint as
3092 watchpoints' dtor method.
3093 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3094 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3095 to struct watchpoint as necessary, and adjust.
3097 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3099 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3100 the the base class ops table.
3101 (catch_exception_breakpoint_ops)
3102 (catch_exception_unhandled_breakpoint_ops)
3103 (catch_assert_breakpoint_ops): Don't statically initialize.
3104 (initialize_ada_catchpoint_ops): New.
3105 (_initialize_ada_language): Call it.
3106 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3107 (bkpt_breakpoint_ops): Forward declare.
3108 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3109 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3110 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3111 (masked_watchpoint_breakpoint_ops)
3112 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3113 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3114 base class ops table.
3115 (null_re_set, null_check_status, null_works_in_software_mode)
3116 (null_resources_needed, null_print_one_detail): Delete.
3117 (bkpt_dtor): Rename to ...
3118 (base_breakpoint_dtor): ... this. Make static.
3119 (bkpt_allocate_location): Rename to ...
3120 (base_breakpoint_allocate_location): ... this. Make static.
3121 (base_breakpoint_re_set): New.
3122 (internal_error_pure_virtual_called): New.
3123 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3124 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3125 (base_breakpoint_works_in_software_mode)
3126 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3127 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3128 (base_breakpoint_print_recreate): New functions.
3129 (base_breakpoint_ops): New global.
3130 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3131 (bkpt_breakpoint_hit): Make static.
3132 (bkpt_check_status): Delete.
3133 (bkpt_resources_needed): Make static.
3134 (bkpt_works_in_software_mode): Delete.
3135 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3137 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3138 (momentary_breakpoint_ops): Don't statically initialize.
3139 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3141 (tracepoint_insert_location, tracepoint_remove_location)
3142 (tracepoint_check_status, tracepoint_works_in_software_mode)
3143 (tracepoint_print_it): Delete.
3144 (tracepoint_breakpoint_ops): Don't statically initialize.
3145 (initialize_breakpoint_ops): New.
3146 (_initialize_breakpoint): Call it.
3147 * breakpoint.h (null_re_set, null_works_in_software_mode)
3148 (null_resources_needed, null_check_status, null_print_one_detail):
3149 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3150 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3151 (bkpt_check_status, bkpt_resources_needed)
3152 (bkpt_works_in_software_mode, bkpt_print_it)
3153 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3154 Delete declarations.
3155 (initialize_breakpoint_ops): Declare.
3157 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3159 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3160 (momentary_bkpt_print_it): Simplify.
3162 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3164 Split internal, momentary and user breakpoints breakpoint_ops
3167 * breakpoint.c (internal_breakpoint_ops)
3168 (momentary_breakpoint_ops): Forward declare.
3169 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3170 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3171 (create_overlay_event_breakpoint)
3172 (create_std_terminate_master_breakpoint)
3173 (create_exception_master_breakpoint): Create breakpoints with
3174 internal_breakpoint_ops vtable.
3175 (set_longjmp_breakpoint): Create momentary breakpoints with
3176 momentary_breakpoint_ops vtable, using
3177 momentary_breakpoint_from_master.
3178 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3179 (create_solib_event_breakpoint): Create breakpoints with
3180 internal_breakpoint_ops vtable.
3181 (set_momentary_breakpoint): Create breakpoints with
3182 momentary_breakpoint_ops vtable.
3183 (momentary_breakpoint_from_master): New, factored out from
3184 clone_momentary_breakpoint.
3185 (clone_momentary_breakpoint): Adjust.
3186 (watch_command_1): Create scope breakpoints with
3187 momentary_breakpoint_ops vtable.
3188 (bkpt_re_set): Remove handling of internal and momentary
3190 (bkpt_print_mention, bkpt_print_recreate): New.
3191 (bkpt_breakpoint_ops): Adjust.
3192 (internal_bkpt_re_set, internal_bkpt_check_status)
3193 (internal_bkpt_print_it, internal_bkpt_print_mention)
3194 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3195 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3196 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3197 (momentary_bkpt_print_recreate): New.
3198 (momentary_breakpoint_ops): New.
3200 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3202 Implement most breakpoint_ops methods for all breakpoint types,
3203 and move the default handlings to the proper callbacks.
3205 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3206 works_in_software_mode method.
3207 (insert_bp_location): Go through breakpoint_ops->insert_location
3208 for software and hardware watchpoints.
3209 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3211 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3212 for software and hardware watchpoints.
3213 (print_it_typical): Delete.
3214 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3216 (watchpoint_check): Adjust comment.
3217 (bpstat_check_location): Simply always call the breakpoint's
3218 breakpoint_hit method.
3219 (bpstat_stop_status): Always call the breakpoint's check_status
3220 method. Remove special cases for watchpoints and internal event
3221 breakpoints from here (moved to the check_status implementations).
3222 (print_one_breakpoint_location): Assume b->ops is never NULL.
3223 Remove static tracepoint marker id printing from here (moved to
3224 the print_one_detail callback implementation of tracepoints).
3225 (init_bp_location): Assert OPS is never NULL.
3226 (allocate_bp_location): Always call the breakpoint's
3227 allocate_location method, and remove the default code from here.
3228 (free_bp_location): Always call the location's dtor method, and
3229 remove the default code from here.
3230 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3231 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3232 parameter. Pass it down.
3233 (set_raw_breakpoint): Ditto.
3234 (print_it_catch_fork): Adjust to take a bpstat as argument.
3235 (catch_fork_breakpoint_ops): Install methods.
3236 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3237 (catch_vfork_breakpoint_ops): Install methods.
3238 (dtor_catch_syscall): Call the base dtor.
3239 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3240 (catch_syscall_breakpoint_ops): Install methods.
3241 (dtor_catch_exec): Call the base dtor.
3242 (print_it_catch_exec): Adjust to take a bpstat as argument.
3243 (catch_exec_breakpoint_ops): Install methods.
3244 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3245 the breakpoint's resources_needed method, and remove the default
3247 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3249 (clone_momentary_breakpoint): Clone the original's ops.
3250 (mention): Always call the breakpoint's print_mention method, and
3251 remove the default code from here.
3252 (create_breakpoint_sal): Adjust to pass the ops to
3253 set_raw_breakpoint rather than setting it manually.
3254 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3255 ops to set_raw_breakpoint_without_location rather than setting it
3257 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3258 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3259 (ranged_breakpoint_ops): Install methods.
3260 (break_range_command): Adjust to pass the ops to
3261 set_raw_breakpoint rather than setting it manually.
3262 (re_set_watchpoint, breakpoint_hit_watchpoint)
3263 (check_status_watchpoint, resources_needed_watchpoint)
3264 (works_in_software_mode_watchpoint, print_it_watchpoint)
3265 (print_mention_watchpoint, print_recreate_watchpoint): New
3267 (watchpoint_breakpoint_ops): Install new methods.
3268 (print_it_masked_watchpoint): New function.
3269 (masked_watchpoint_breakpoint_ops): Install new methods.
3270 (watch_command_1): Adjust to pass the right breakpoint_ops to
3271 set_raw_breakpoint_without_location rather than setting it
3272 manually later. Record the current pspace.
3273 (print_it_exception_catchpoint): Adjust to take a bpstat as
3275 (gnu_v3_exception_catchpoint_ops): Install new methods.
3276 (say_where): New function.
3277 (null_re_set, null_check_status, null_works_in_software_mode)
3278 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3280 (bp_location_ops): New global.
3281 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3282 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3283 (bkpt_check_status, bkpt_resources_needed)
3284 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3285 (bkpt_print_recreate): New functions.
3286 (bkpt_breakpoint_ops): New global.
3287 (tracepoint_re_set, tracepoint_insert_location)
3288 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3289 (tracepoint_check_status, tracepoint_works_in_software_mode)
3290 (tracepoint_print_it, tracepoint_print_one_detail)
3291 (tracepoint_print_mention, tracepoint_print_recreate): New
3293 (tracepoint_breakpoint_ops): New global.
3294 (delete_breakpoint): Always call the breakpoint's dtor method, and
3295 remove the default handling from here.
3296 (breakpoint_re_set_default): Make static.
3297 (breakpoint_re_set_one): Always call the breakpoints re_set
3298 method, and remove the default handling from here.
3299 (trace_command, ftrace_command, strace_command)
3300 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3301 to create_breakpoint.
3302 (save_breakpoints): Always call the breakpoint's print_recreate
3303 method, and remove the default handling from here.
3305 * ada-lang.c (dtor_exception): Call the base dtor.
3306 (re_set_exception): Call the base method.
3307 (print_it_exception, print_it_catch_exception): Adjust to take a
3309 (catch_exception_breakpoint_ops): Install methods.
3310 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3312 (catch_exception_unhandled_breakpoint_ops): Install methods.
3313 (print_it_catch_assert): Adjust to take a bpstat as argument.
3314 (catch_assert_breakpoint_ops): Install methods.
3316 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3317 to take a bpstat as argument.
3318 (enum print_stop_action): Add describing comments to each enum
3320 (breakpoint_re_set_default): Delete declaration.
3321 (null_re_set, null_works_in_software_mode, null_resources_needed)
3322 (null_check_status, null_print_one_detail): Declare.
3323 (bkpt_breakpoint_ops): Declare.
3324 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3325 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3326 (bkpt_check_status, bkpt_resources_needed)
3327 (bkpt_works_in_software_mode, bkpt_print_it)
3328 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3331 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3332 bkpt_breakpoint_ops.
3333 * python/py-breakpoint.c (bppy_init): Ditto.
3335 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3337 * MAINTAINERS (Write After Approval): Add myself to the list.
3339 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3341 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3343 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3345 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3346 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3347 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3349 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3350 (struct i386_debug_reg_state): New.
3351 (i386_init_dregs): New.
3353 (i386_cleanup_dregs): Use i386_init_dregs.
3354 (i386_show_dr): Add state parameter and adjust.
3355 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3357 (i386_remove_aligned_watchpoint): Likewise.
3358 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3359 (i386_update_inferior_debug_regs): New.
3360 (i386_insert_watchpoint): Work on a local mirror of the debug
3361 registers, and only update the inferior on success.
3362 (i386_remove_watchpoint): Ditto.
3363 (i386_region_ok_for_watchpoint): Adjust.
3364 (i386_stopped_data_address): Adjust.
3365 (i386_insert_hw_breakpoint): Adjust.
3366 (i386_remove_hw_breakpoint): Adjust.
3368 2011-07-22 Tom Tromey <tromey@redhat.com>
3370 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3371 from amd64_pseudo_register_read. Change arguments. Call
3372 mark_value_bytes_unavailable when needed.
3373 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3374 set_gdbarch_pseudo_register_read.
3375 * sentinel-frame.c (sentinel_frame_prev_register): Use
3376 regcache_cooked_read_value.
3377 * regcache.h (regcache_cooked_read_value): Declare.
3378 * regcache.c (regcache_cooked_read_value): New function.
3379 (regcache_cooked_read): Call
3380 gdbarch_pseudo_register_read_value if available.
3381 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3382 (i386_pseudo_register_read): Remove.
3383 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3384 i386_pseudo_register_read. Change arguments. Call
3385 mark_value_bytes_unavailable when needed.
3386 (i386_pseudo_register_read_value): New function.
3387 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3388 not set_gdbarch_pseudo_register_read.
3389 * gdbarch.sh (pseudo_register_read_value): New method.
3390 * gdbarch.c, gdbarch.h: Rebuild.
3391 * findvar.c (value_from_register): Call get_frame_register_value.
3393 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3395 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3397 (display_gdb_prompt): Likewise.
3398 (change_annotation_level): Likewise.
3399 (push_prompt): Likewise.
3400 (pop_prompt): Likewise.
3401 (handle_stop_sig): Use get_prompt with a level.
3402 * top.c (command_loop): Use get_prompt with a level.
3403 (set_async_annotation_level): Use set_prompt with a level.
3404 (get_prefix): New function.
3405 (set_prefix): Ditto.
3406 (set_suffix): Ditto.
3407 (get_suffix): Ditto.
3408 (get_prompt): Accept a level argument.
3409 (set_prompt): Accept a level argument. Free old prompts. Set
3410 new_async_prompt if level is 0.
3411 (init_main): Use set_prompt with a level. Do not set
3413 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3414 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3415 Modify set_prompt, get_prompt to account for levels.
3416 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3418 * python/python.c (before_prompt_hook): Use set_prompt.
3420 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3422 * defs.h: Add guard against inclusion in gdbserver.
3423 (struct ptid, ptid_t): Move to common/ptid.h.
3424 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3425 xsnprintf, internal_error): Move to common/common-utils.h.
3427 * gdb_assert.h: Move into common/ sub-directory.
3428 * gdb_locale.h: Ditto.
3429 * gdb_dirent.h: Ditto.
3430 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3431 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3432 Move into common/ptid.h.
3433 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3434 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3435 Change nomem to malloc_failure.
3436 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3437 * utils.c (nomem): Rename to malloc_failure.
3438 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3439 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3440 (gdb_buildargv): Change nomem to malloc_failure.
3441 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3442 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3443 ptid_is_pid): Move into common/ptid.c.
3444 (initialize_infrun): Delete initialization of null_ptid and
3446 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3447 linux_common_xfer_osdata.
3448 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3449 common/ptid.c and common/buffer.c.
3450 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3451 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3452 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3453 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3455 * common/gdb_assert.h: New.
3456 * common/gdb_dirent.h: New.
3457 * common/gdb_locale.h: New.
3458 * common/buffer.c: New.
3459 * common/buffer.h: New.
3460 * common/ptid.c: New.
3461 * common/ptid.h: New.
3462 * common/xml-utils.c: New.
3463 * common/xml-utils.h: New.
3464 * common/common-utils.c: New.
3465 * common/common-utils.h: New.
3466 * common/linux-osdata.c: New.
3467 * common/linux-osdata.h: New.
3468 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3469 * config/arm/linux.mh (NATDEPFILES): Ditto.
3470 * config/i386/linux.mh (NATDEPFILES): Ditto.
3471 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3472 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3473 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3474 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3475 * config/mips/linux.mh (NATDEPFILES): Ditto.
3476 * config/pa/linux.mh (NATDEPFILES): Ditto.
3477 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3478 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3479 * config/s390/s390.mh (NATDEPFILES): Ditto.
3480 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3481 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3482 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3484 2011-07-21 Matt Rice <ratmice@gmail.com>
3486 * NEWS: Add info macros and info definitions commands.
3488 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3490 * NEWS: Document Python prompt substitution hook.
3492 2011-07-18 Matt Rice <ratmice@gmail.com>
3495 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3496 * macrotab.c (foreach_macro): Ditto.
3497 (foreach_macro_in_scope): Ditto.
3498 * macrocmd.c (print_macro_callback): New function.
3499 (info_macro_command): Move some code to print_macro_definition.
3500 (print_macro_definition): New function.
3501 (print_one_macro): Add new arguments to callback.
3502 (info_definitions_command): New function.
3503 (info_macros_command): Ditto.
3504 (_initialize_macrocmd): Add info macros and info definitions commands.
3505 * symtab.c (add_macro_name): Add new arguments to callback.
3507 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3508 Tom Tromey <tromey@redhat.com>
3510 * top.c (set_prompt): Rewrite to free previous prompt, free
3511 asynch_new_prompt and set both on new prompts.
3512 * event-top.c (display_gdb_prompt): Add prompt substitution
3514 * python/python.c (before_prompt_hook): New function.
3516 2011-07-20 Matt Rice <ratmice@gmail.com>
3518 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3519 arguments to store_unsigned_integer.
3521 2011-07-20 Tom Tromey <tromey@redhat.com>
3523 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3524 in some declaration-only cases.
3526 2011-07-18 Tom Tromey <tromey@redhat.com>
3529 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3530 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3531 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3532 <debug_type_section>: New field.
3533 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3534 (load_cu): Use appropriate section.
3535 (create_signatured_type_table_from_index): Add 'section'
3537 (dwarf2_read_index): Only allow a single .debug_types section.
3538 (dw2_get_file_names): Use appropriate section.
3539 (read_type_comp_unit_head): Add 'section' argument.
3540 (create_debug_types_hash_table): Loop over all .debug_types
3542 (init_cu_die_reader): Use appropriate section.
3543 (process_psymtab_comp_unit, load_partial_comp_unit)
3544 (load_full_comp_unit, read_die_and_children, find_partial_die)
3545 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3546 (lookup_signatured_type_at_offset): Add 'section' argument.
3547 (read_signatured_type_at_offset): Add 'sect' argument.
3548 (read_signatured_type): Use appropriate section.
3549 (set_die_type, get_die_type_at_offset): Update.
3550 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3552 (write_psymtabs_to_index): Don't allow index with more than one
3553 .debug_types section.
3555 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3557 Fix crash if referenced CU is aged out.
3558 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3559 xfree of block.data.
3560 (indirect_pieced_value): New variable back_to, use to for xfree of
3562 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3564 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3565 (load_cu): New function from ...
3566 (dw2_do_instantiate_symtab): ... the code here ...
3567 (process_full_comp_unit): ... and here.
3568 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3571 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3573 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3576 2011-07-19 Gary Benson <gbenson@redhat.com>
3578 * infrun.c (struct execution_control_state): New member
3579 stop_func_filled_in.
3580 (clear_stop_func, fill_in_stop_func): New functions.
3581 (handle_inferior_event): Call clear_stop_func rather than
3582 manipulating the execution control state directly.
3583 Call fill_in_stop_func lazily as required rather than
3584 directly calling find_pc_partial_function in all cases.
3586 2011-07-18 Tom Tromey <tromey@redhat.com>
3588 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3589 checking for variable-sized array.
3591 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3593 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3594 of supported languages.
3595 * varobj.c: Add top definitions and basic implementation of the
3596 following callbacks: ada_number_of_children, ada_name_of_variable,
3597 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3598 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3599 (languages): Register Ada-specific callbacks.
3600 (variable_language): Add the Ada case in the language setter switch.
3602 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3604 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3606 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3609 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3610 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3611 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3612 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3613 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3614 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3615 (struct dwarf_expr_context_funcs): New, move here methods from ...
3616 (struct dwarf_expr_context): ... here. New fields funcs.
3617 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3618 (dwarf_expr_ctx_funcs): New.
3619 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3620 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3621 (needs_frame_ctx_funcs): New.
3622 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3624 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3626 * MAINTAINERS (Write After Approval): Add myself to the list.
3628 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3630 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3631 that CIE pointer of an FDE really points to a CIE .
3633 2011-07-15 Hui Zhu <teawater@gmail.com>
3635 * remote.c (remote_get_trace_status): Add comments.
3637 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3639 Code cleanup - constify struct lval_funcs.
3640 * dwarf2loc.c (pieced_value_funcs): Make it const.
3641 * infrun.c (siginfo_value_funcs): Likewise.
3642 * opencl-lang.c (opencl_value_funcs): Likewise.
3643 * valops.c (value_assign, value_ind): Make the funcs variable const.
3644 * value.c (struct value): Make location.computed.funcs target const.
3645 Rearrange the comments.
3646 (allocate_computed_value): Make the funcs parameter target const.
3647 (value_computed_funcs): Return the funcs target const.
3648 (value_free, value_copy, set_value_component_location): Make the funcs
3650 * value.h (allocate_computed_value): Make the funcs parameter target
3652 (value_computed_funcs): Return the funcs target const.
3653 * windows-tdep.c (tlb_value_funcs): Make it const.
3655 2011-07-14 Hui Zhu <teawater@gmail.com>
3657 * remote.c (remote_get_trace_status): Initialize p.
3659 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3662 * remote.c (remote_get_trace_status): New variable ex. Put
3663 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3665 2011-07-13 Tom Tromey <tromey@redhat.com>
3667 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3668 value_from_contents for final conversion.
3670 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3673 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3674 Indent prototypes so they do not get into tags.
3676 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3678 Code cleanup making also optimized out values lazy.
3679 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3680 allocate_optimized_out_value. Twice.
3681 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3682 * findvar.c (read_var_value): Likewise.
3683 * value.c (allocate_optimized_out_value): New function.
3684 * value.h (allocate_optimized_out_value): New declaration.
3686 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3688 Fix occasional crash of CTRL-C during DWARF read in.
3689 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3691 2011-07-11 Tom Tromey <tromey@redhat.com>
3693 * regcache.c (struct regcache_descr): Fix typo.
3694 * i387-tdep.c (i387_supply_xsave): Fix typo.
3696 2011-07-11 Tom Tromey <tromey@redhat.com>
3698 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3699 (read_file_scope, read_type_unit_scope): Use it.
3701 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3706 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3709 * python/python.c: Set gdbpy_should_print_stack default to off.
3710 (set_python): Deprecate maint set python print-stack to
3712 (_initialize_python): Deprecate maint set/show python print-stack.
3713 Add new prefix command, python. Add new setting, print-backtrace.
3714 * NEWS: Document set python print-stack. Document default change.
3716 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3718 * python/py-inferior.c (infpy_dealloc): New function.
3719 (inferior_to_inferior_object): Return a new object, or a
3720 new reference to the existing object.
3721 (find_thread_object): Cleanup references to inferior.
3722 (delete_thread_object): Ditto.
3723 * python/py-infthread.c (create_thread_object): Do not increment
3724 inferior reference count.
3726 2011-07-08 Tom Tromey <tromey@redhat.com>
3728 * dwarf2loc.c (locexpr_regname): New function.
3729 (locexpr_describe_location_piece): Use it.
3730 (disassemble_dwarf_expression): Add per_cu argument. Use
3732 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3733 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3735 (locexpr_describe_location_1): Add per_cu argument.
3736 (locexpr_describe_location): Update.
3737 (loclist_describe_location): Update.
3739 2011-07-08 Tom Tromey <tromey@redhat.com>
3741 * dwarf2expr.c (execute_stack_op): Add QUIT.
3743 2011-07-07 Hui Zhu <teawater@gmail.com>
3746 2011-07-06 Hui Zhu <teawater@gmail.com>
3747 * remote.c (remote_start_remote): Add TRY_CATCH for
3748 remote_get_trace_status.
3749 * tracepoint.c (disconnect_tracing): Ditto.
3751 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3753 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3754 variables as signed, not unsigned.
3756 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3758 * jit.c (jit_inferior_init): Reformat forward declaration.
3760 2011-07-06 Matt Rice <ratmice@gmail.com>
3762 * MAINTAINERS (Write After Approval): Add myself to the list.
3764 2011-07-06 Hui Zhu <teawater@gmail.com>
3766 * remote.c (remote_start_remote): Add TRY_CATCH for
3767 remote_get_trace_status.
3768 * tracepoint.c (disconnect_tracing): Ditto.
3770 2011-07-05 Tom Tromey <tromey@redhat.com>
3772 * symtab.c (operator_chars): Now static.
3773 * linespec.c (operator_chars): Don't declare.
3775 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3777 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3779 2011-07-05 Tom Tromey <tromey@redhat.com>
3781 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3782 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3783 (TYPE_CPLUS_REALLY_JAVA): New macro.
3784 * dwarf2read.c (process_structure_scope): Set
3785 TYPE_CPLUS_REALLY_JAVA.
3787 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3789 * ada-lang.c: Fix typos.
3790 * amd64-tdep.c: Likewise.
3791 * breakpoint.c: Likewise.
3792 * cli/cli-decode.c: Likewise.
3793 * findcmd.c: Likewise.
3794 * inline-frame.c: Likewise.
3795 * mi/mi-main.c: Likewise.
3796 * minsyms.c: Likewise.
3797 * monitor.c: Likewise.
3798 * monitor.h: Likewise.
3799 * prologue-value.c: Likewise.
3800 * reverse.c: Likewise.
3801 * s390-tdep.c: Likewise.
3803 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3805 * jit.c (jit_inferior_init): Forward declare.
3806 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3808 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3810 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3812 2011-07-04 Tristan Gingold <gingold@adacore.com>
3814 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3815 (tcb_fieldno): Add activation_link field.
3816 (get_known_tasks_addr): Moved and rewritten.
3817 (get_tcb_types_info): Set activation_link field.
3818 (read_known_tasks_array): Add parameter. Rewritten.
3819 (read_known_tasks_list): New function.
3820 (read_known_tasks): New function.
3821 (ada_build_task_list): Call read_known_tasks instead of
3822 read_known_tasks_array.
3823 * ravenscar-thread.c: Add first_task_name constant.
3824 (has_ravenscar_runtime): Check for task list too.
3826 2011-07-04 Tristan Gingold <gingold@adacore.com>
3828 * ada-tasks.c: Renames fieldno to actb_fieldno.
3829 (ada_get_task_number): Indentation.
3830 (get_tcb_types_info): Remove all parameters. Write directly
3832 (ptid_from_atcb_common): Adjust.
3833 (read_atcb): Adjust.
3835 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3837 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3839 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3841 * ui-out.c (ui_out_field_core_addr): Mention that the function
3842 description is in the header file.
3843 * ui-out.h (ui_out_field_core_addr): Document function.
3845 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3847 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3848 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3850 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3852 * symtab.c (expand_line_sal): Remove empty line.
3854 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3856 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3857 same way as ELFOSABI_NONE.
3858 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3860 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3862 * breakpoint.c: Fix typos in comments.
3863 * linespec.c: Likewise.
3864 * symtab.c: Likewise.
3866 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3868 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3869 section in separate object files.
3871 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3873 Fix false GCC warning.
3874 * linespec.c (decode_line_1): Initialize values.
3876 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3878 * linespec.c (find_method): Accept the function type automatically only
3879 if it was specified with parameter types.
3881 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3883 Stop on first linespec terminator instead of eating what we can.
3884 * linespec.c (is_linespec_boundary): New function.
3885 (name_end): Remove function.
3886 (keep_name_info): New parameter on_boundary, replace the body.
3887 (decode_line_1): Provide the parameter to keep_name_info.
3888 (decode_compound): Likewise. Drop the trailing java return type
3891 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3893 Fall back linespec to minimal symbols.
3894 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3895 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3896 (find_method, symbol_found): Change error to cplusplus_error.
3898 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3902 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3903 Tom Tromey <tromey@redhat.com>
3905 * dwarf2read.c (check_physname): New variable.
3906 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3907 (show_check_physname): New function.
3908 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3910 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3912 * machoread.c (macho_symfile_read): Delete OBE comment.
3914 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3916 * machoread.c (struct macho_oso_data): Delete.
3917 (current_oso): Delete.
3918 (macho_relocate_common_syms): New function, mostly extracted
3920 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3921 Remove code that sets and unset current_oso.
3922 (macho_symfile_relocate): Delete handling of common symbols,
3923 now moved to macho_relocate_common_syms.
3925 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3927 * darwin-nat.c (darwin_ptrace): Add documentation.
3928 Set errno to zero before calling ptrace. If ptrace returns
3929 -1 and errno is zero, then change then return zero.
3930 (darwin_kill_inferior): Issue a warning instead of triggering
3931 a failed assertion when the PT_KILL ptrace operations returned
3934 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3936 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3937 only when inf->private->no_ptrace.
3939 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3941 * ada-lang.c (print_it_exception): Print temporary catchpoints
3942 as "Temporary catchpoint".
3943 (print_mention_exception): Likewise.
3945 2011-07-01 Tom Tromey <tromey@redhat.com>
3947 * jv-lang.c (java_language_defn): Use java_printchar,
3949 (java_get_encoding): New function.
3950 (java_emit_char): Use generic_emit_char.
3951 (java_printchar): New function.
3952 (java_printstr): Likewise.
3954 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3956 * ada-typeprint.c (print_record_type): If unable to decode
3957 the name of the parent type, use the encoded name.
3959 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3961 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3962 pointer to constrained packed array type output.
3963 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3964 packed array output.
3966 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3968 * ada-typeprint.c (print_array_type): removed if condition on show
3969 being negative for bounds printing.
3971 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3973 * ada-lang.c (ada_identical_enum_types_p): New function.
3974 (symbols_are_identical_enums): New function.
3975 (remove_extra_symbols): Do nothing if NSYMS < 2.
3976 Use symbols_are_identical_enums.
3978 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3980 * ada-valprint.c (ada_value_print): Handle typedefs.
3982 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3984 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3986 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3988 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3989 (decode_constrained_packed_array): Likewise.
3990 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3992 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3994 * ada-exp.y (convert_char_literal): Handle typedef types.
3996 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3998 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4000 2011-06-30 Tom Tromey <tromey@redhat.com>
4002 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4003 * valops.c (find_overload_match): Call do_cleanups on early exit
4005 * solib.c (solib_find): Call do_cleanups on early exit path.
4007 2011-06-30 Tom Tromey <tromey@redhat.com>
4009 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4010 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4011 return paths. Defer final do_cleanups until last return.
4012 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4015 2011-06-30 Tom Tromey <tromey@redhat.com>
4017 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4019 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4021 * MAINTAINERS (Write After Approval): Add myself to the list.
4023 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4025 Disable epilogue unwinders on recent GCCs.
4026 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4027 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4028 * dwarf2read.c (process_full_comp_unit): Initialize
4029 EPILOGUE_UNWIND_VALID.
4030 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4031 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4032 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4034 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4036 Code cleanup - reformatting.
4037 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4038 (producer_is_gcc_ge_4): ... here, change the return value.
4039 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4042 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4044 Fix non-only rename list for Fortran modules import.
4045 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4046 cp_add_using_directive caller.
4047 (cp_add_using_directive): New parameter excludes, describe it. New
4048 variables ix and param. Compare if also excludes match. Allocate NEW
4049 with variable size, initialize EXCLUDES there.
4050 (cp_lookup_symbol_imports): New variable excludep, test
4051 current->EXCLUDES with it.
4052 * cp-support.h: Include vec.h.
4053 (struct using_direct): New field excludes, describe it.
4054 (DEF_VEC_P (const_char_ptr)): New.
4055 (cp_add_using_directive): New parameter excludes.
4056 * defs.h (const_char_ptr): New typedef.
4057 * dwarf2read.c (read_import_statement): New variables child_die,
4058 excludes and cleanups, read in excludes.
4059 (read_namespace): Adjust the cp_add_using_directive caller.
4061 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4064 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4065 negative comparisons.
4067 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4069 * mi/mi-main.c (mi_cmd_list_features): Emit
4070 breakpoint-notifications.
4072 2011-06-29 Tom Tromey <tromey@redhat.com>
4075 * valprint.h (generic_emit_char, generic_printstr): Declare.
4076 * valprint.c (wchar_printable, append_string_as_wide)
4077 (print_wchar): Move from c-lang.c.
4078 (generic_emit_char): New function; mostly taken from c_emit_char.
4079 (generic_printstr): New function; mostly taken from c_printstr.
4080 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4081 represented as arrays.
4082 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4084 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4085 identically to TYPE_CODE_INT.
4086 * f-lang.c (f_get_encoding): New function.
4087 (f_emit_char): Use generic_emit_char.
4088 (f_printchar): Replace comment.
4089 (f_printstr): Use generic_printstr.
4090 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4091 "character" types specially.
4092 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4094 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4096 (c_emit_char): Call generic_emit_char.
4097 (c_printstr): Call generic_printstr.
4099 2011-06-29 Gary Benson <gbenson@redhat.com>
4101 * breakpoint.c (bpstat_what): Removed duplicated case.
4103 2011-06-28 Tom Tromey <tromey@redhat.com>
4105 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4107 2011-06-27 Tom Tromey <tromey@redhat.com>
4109 * valops.c (find_overload_match): Call do_cleanups before early
4111 * top.c (execute_command): Call do_cleanups before early return.
4112 (command_loop): Likewise.
4113 * stack.c (backtrace_command): Make a null cleanup early. Don't
4114 conditionally call do_cleanups.
4115 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4117 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4118 so cleanups are always run.
4119 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4120 * findcmd.c (parse_find_args): Call do_cleanups on early return
4122 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4123 Don't conditionally call do_cleanups.
4124 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4127 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4129 * MAINTAINERS (Write After Approval): Use default email address.
4131 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4133 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4135 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4137 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4138 saved_regs_mask and copied_regs_mask fields.
4139 (sparc_record_save_insn): New prototype.
4140 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4141 (sparc_record_save_insn): New function.
4142 (sparc_analyze_prologue): Add head comment. Recognize store insns
4143 of call-saved registers. Use OFFSET consistently. Recognize flat
4144 frames and cache their settings.
4145 (sparc32_skip_prologue): Handle flat frames.
4146 (sparc_frame_cache): Add frame_offset to the base address.
4147 (sparc32_frame_cache): Adjust to new frame description.
4148 (sparc32_frame_prev_register): Likewise.
4149 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4150 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4151 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4152 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4153 frame by calling sparc_record_save_insn.
4154 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4155 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4156 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4158 2011-06-27 Tristan Gingold <gingold@adacore.com>
4160 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4161 field by map_addr and map_len.
4162 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4163 (munmap_section_buffer): Likewise.
4165 2011-06-24 Tom Tromey <tromey@redhat.com>
4167 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4168 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4169 * python/python.c (gdbpy_parameter): Make 'arg' const.
4170 (execute_gdb_command): Likewise.
4171 (gdbpy_decode_line): Likewise. Copy it.
4172 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4173 (gdbpy_write): Make 'arg' const.
4174 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4176 (gdbpy_lookup_type): Likewise.
4177 * python/py-prettyprint.c (print_children): Make 'name' const.
4178 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4179 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4181 * python/py-function.c (fnpy_init): Make 'name' const.
4182 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4183 (gdbpy_string_to_argv): Make 'input' const.
4184 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4186 * gdbtypes.h (lookup_typename): Update.
4187 * gdbtypes.c (lookup_typename): Make 'name' const.
4188 (lookup_struct): Likewise.
4189 (lookup_union): Likewise.
4190 (lookup_enum): Likewise.
4192 2011-06-24 Tom Tromey <tromey@redhat.com>
4194 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4195 gdb_thread_db.h. Move all common/ entries to be together.
4196 (TAGS): Don't depend on DEPFILES.
4198 2011-06-23 Yao Qi <yao@codesourcery.com>
4200 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4201 * remote.c (remote_start_remote): ... here.
4202 * monitor.c (monitor_open): ... here.
4204 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4206 * gdbtypes.c (append_composite_type_field_aligned): Fix
4207 calculation of bit position based on alignment.
4209 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4211 * breakpoint.c (bpstat_stop_status): Call the check_status
4212 breakpoint_ops method.
4213 (print_one_breakpoint_location): Also print the condition for Ada
4214 exception catchpoints.
4215 (allocate_bp_location): New, factored out from
4216 allocate_bp_location.
4217 (allocate_bp_location): Adjust. Call the owner breakpoint's
4218 allocate_location method, if there is one.
4219 (free_bp_location): Call the locations's dtor method, if there is
4221 (init_raw_breakpoint_without_location): New breakpoint_ops
4223 (set_raw_breakpoint_without_location): Adjust.
4224 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4225 (set_raw_breakpoint): Adjust.
4226 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4227 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4228 re_set and check_status methods.
4229 (init_catchpoint): Don't memset, initialize thread, addr_string
4230 and enable_state. Pass the ops down to init_raw_breakpoint.
4231 (install_catchpoint): Rename to ...
4232 (install_breakpoint): ... this, and make extern.
4233 (create_fork_vfork_event_catchpoint): Adjust.
4234 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4235 re_set and check_status methods.
4236 (create_syscall_event_catchpoint): Adjust.
4237 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4238 (masked_watchpoint_breakpoint_ops): Install NULL
4239 allocate_location, re_set and check_status methods.
4240 (catch_exec_command_1): Adjust.
4241 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4242 re_set and check_status methods.
4243 (create_ada_exception_breakpoint): Rename to ...
4244 (init_ada_exception_breakpoint): ... this. Add a struct
4245 breakpoint parameter, and delete the exp_string, cond_string and
4246 cond parameters. Use init_raw_breakpoint, and don't install or
4247 mention the breakpoint yet. Don't clear breakpoint fields that
4248 init_raw_breakpoint already clears.
4249 (re_set_breakpoint): Delete, split into ...
4250 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4252 (breakpoint_re_set_one): Call the breakpoint's
4253 breakpoint_ops->re_set implementation, if there's one. Adjust.
4254 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4255 (struct bp_location_ops): New type.
4256 (struct bp_location): New field `ops'.
4257 (struct breakpoint_ops): New `allocate_location', `re_set' and
4258 `check_status' fields. Make `breakpoint_hit''s description match
4260 (init_bp_location): Declare.
4261 (breakpoint_re_set_default): Declare.
4262 (create_ada_exception_breakpoint): Rename to ...
4263 (init_ada_exception_breakpoint): ... this. Add a struct
4264 breakpoint parameter, and delete the exp_string, cond_string and
4266 (install_breakpoint): Declare.
4267 * ada-lang.c: Include exceptions.h.
4268 <Ada exceptions description>: Update.
4269 (struct ada_catchpoint_location): New type.
4270 (ada_catchpoint_location_dtor): New function.
4271 (ada_catchpoint_location_ops): New global.
4272 (ada_catchpoint): New type.
4273 (create_excep_cond_exprs): New function.
4274 (dtor_exception, allocate_location_exception, re_set_exception)
4275 (should_stop_exception, check_status_exception): New functions.
4276 (print_one_exception, print_mention_exception)
4277 (print_recreate_exception): Adjust.
4278 (dtor_catch_exception, allocate_location_catch_exception)
4279 (re_set_catch_exception, check_status_catch_exception): New
4281 (catch_exception_breakpoint_ops): Install them.
4282 (dtor_catch_exception_unhandled)
4283 (allocate_location_catch_exception_unhandled)
4284 (re_set_catch_exception_unhandled)
4285 (check_status_catch_exception_unhandled): New functions.
4286 (catch_exception_unhandled_breakpoint_ops): Install them.
4287 (dtor_catch_assert, allocate_location_catch_assert)
4288 (re_set_catch_assert, check_status_catch_assert): New functions.
4289 (catch_assert_breakpoint_ops): Install them.
4290 (ada_exception_catchpoint_p): Delete.
4291 (catch_ada_exception_command_split)
4292 (ada_exception_catchpoint_cond_string): Rename exp_string
4293 parameter to excep_string. Adjust.
4294 (ada_parse_catchpoint_condition): Delete.
4295 (ada_exception_sal): Rename the exp_string parameter to
4296 excep_string. Delete the cond_string and cond parameters.
4298 (ada_decode_exception_location): Rename the exp_string parameter
4299 to excep_string. Delete the cond_string and cond parameters.
4301 (create_ada_exception_catchpoint): New function.
4302 (catch_ada_exception_command, ada_decode_assert_location)
4303 (catch_assert_command): Adjust.
4304 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4306 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4308 * ada-lang.c: Include arch-utils.h.
4309 (ada_decode_exception_location): Make static.
4310 (catch_ada_exception_command): Moved here from breakpoint.c.
4311 (ada_decode_assert_location): Make static.
4312 (catch_assert_command): Moved here from breakpoint.c.
4313 (_initialize_ada_lang): Install the exception and assert
4314 catchpoint commands here.
4315 * ada-lang.h (ada_decode_exception_location)
4316 (ada_decode_assert_location): Delete declarations.
4317 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4319 (create_ada_exception_breakpoint): Make extern.
4320 (catch_ada_exception_command, catch_assert_command): Moved to
4322 (add_catch_command): Make extern.
4323 (_initilize_breakpoint): Don't install the exception and assert
4324 catchpoint commands here.
4325 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4327 (add_catch_command, create_ada_exception_breakpoint): Declare.
4329 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4331 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4332 the breakpoint to the breakpoint chain here.
4333 (set_raw_breakpoint_without_location): Add the breakpoint to the
4334 breakpoint chain here.
4335 (init_raw_breakpoint): Adjust comments.
4336 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4338 (init_catchpoint): Don't set the catchpoint's breakpoint number
4340 (install_catchpoint): New function.
4341 (create_fork_vfork_event_catchpoint)
4342 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4343 use install_catchpoint.
4345 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4347 * breakpoint.c (create_catchpoint_without_mention)
4348 (create_catchpoint): Delete.
4350 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4352 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4353 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4354 reference to exec_pathname.
4355 (struct exec_catchpoint): New type.
4356 (dtor_catch_exec): New function.
4357 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4358 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4359 (catch_exec_command_1): Adjust to use init_catchpoint.
4360 (delete_breakpoint): Remove reference to exec_pathname.
4362 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4364 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4365 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4366 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4367 reference to syscalls_to_be_caught.
4368 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4370 (struct syscall_catchpoint): New type.
4371 (dtor_catch_syscall): New function.
4372 (insert_catch_syscall, remove_catch_syscall)
4373 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4374 (print_recreate_catch_syscall): Adjust.
4375 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4376 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4377 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4378 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4379 (masked_watchpoint_breakpoint_ops)
4380 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4381 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4382 there is one. Remove references to syscalls_to_be_caught.
4383 (catching_syscall_number): Adjust.
4384 * ada-lang.c (catch_exception_breakpoint_ops)
4385 (catch_exception_unhandled_breakpoint_ops)
4386 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4388 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4390 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4392 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4393 reference to forked_inferior_pid.
4394 (struct fork_catchpoint): New type.
4395 (breakpoint_hit_catch_fork, print_it_catch_fork)
4396 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4397 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4398 (create_fork_vfork_event_catchpoint): Adjust to use
4401 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4403 * breakpoint.c (add_to_breakpoint_chain)
4404 (init_raw_breakpoint_without_location): New functions, factored
4406 (set_raw_breakpoint_without_location): ... this one.
4407 (init_raw_breakpoint): New function, factored out from
4408 set_raw_breakpoint and adjusted to use
4409 init_raw_breakpoint_without_location.
4410 (set_raw_breakpoint): Adjust.
4411 (init_catchpoint): New function, factored out from
4412 create_catchpoint_without_mention and adjusted to use
4413 init_raw_breakpoint.
4414 (create_catchpoint_without_mention): Adjust.
4416 2011-06-22 Tom Tromey <tromey@redhat.com>
4418 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4419 argument of 0 specially.
4421 2011-06-22 Yao Qi <yao@codesourcery.com>
4423 * infrun.c (handle_inferior_event): Remove write-only local variable
4424 `sw_single_step_trap_p'.
4426 2011-06-20 Tom Tromey <tromey@redhat.com>
4428 * symtab.c (lookup_language_this): End loop if block is NULL.
4430 2011-06-17 Tom Tromey <tromey@redhat.com>
4432 * valops.c (value_of_this): Use lookup_language_this.
4433 * symtab.h (lookup_language_this): Declare.
4434 * symtab.c (lookup_language_this): New function.
4435 (lookup_symbol_aux): Use lookup_language_this.
4436 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4438 2011-06-17 Tom Tromey <tromey@redhat.com>
4440 * value.h (value_of_this): Update.
4441 (value_of_local): Remove.
4442 * valops.c (value_of_this): Rename from value_of_local. Change
4444 * p-exp.y (exp): Update.
4445 (variable): Likewise.
4446 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4448 2011-06-17 Tom Tromey <tromey@redhat.com>
4450 * valops.c (value_of_local): Complain if NAME is NULL.
4451 * std-operator.def (OP_OBJC_SELF): Remove.
4452 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4453 * objc-exp.y (name_not_typename): Use OP_THIS.
4454 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4456 <OP_OBJC_SELF>: Remove.
4457 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4459 2011-06-16 Tristan Gingold <gingold@adacore.com>
4461 * python/py-events.h (gdb_py_events): Make it extern.
4462 * python/py-evtregistry.c (gdb_py_events): Declare.
4464 2011-06-16 Hui Zhu <teawater@gmail.com>
4466 * remote.c (remote_trace_set_readonly_regions): Add check for
4467 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4470 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4472 * arm-linux-tdep.c: Include "auxv.h".
4474 (ARM_LINUX_SIZEOF_VFP): Define.
4475 (arm_linux_supply_vfp): New function.
4476 (arm_linux_collect_vfp): Likewise.
4477 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4478 (arm_linux_fpa_regset_sections): New variable.
4479 (arm_linux_vfp_regset_sections): Likewise.
4480 (arm_linux_core_read_description): New function.
4481 (arm_linux_init_abi): Install arm_linux_core_read_description and
4482 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4483 appropriate for the architecture.
4484 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4485 (tdesc_arm_with_m): Declare.
4486 (tdesc_arm_with_iwmmxt): Likewise.
4487 (tdesc_arm_with_vfpv2): Likewise.
4488 (tdesc_arm_with_vfpv3): Likewise.
4489 (tdesc_arm_with_neon): Likewise.
4490 * arm-linux-nat.c: Move features/*.c includes ...
4491 * arm-tdep.c: ... here.
4492 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4493 target description data structures ...
4494 * arm-tdep.c (_initialize_arm_tdep): ... here.
4495 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4496 HWCAP_VFPv3D16): Move definitions ...
4497 * arm-linux-tdep.h: ... here.
4499 2011-06-15 Hui Zhu <teawater@gmail.com>
4501 * remote.c (remote_trace_set_readonly_regions): Add a check for
4504 2011-06-14 Tom Tromey <tromey@redhat.com>
4506 * coffread.c (coffread_objfile): Rename from current_objfile.
4507 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4508 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4510 2011-06-14 Tom Tromey <tromey@redhat.com>
4512 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4513 (class_symtab): Remove.
4514 (jv_dynamics_progspace_key): New global.
4515 (jv_per_objfile_free): Reset program space data. Update assert.
4516 Don't clear globals.
4517 (get_dynamics_objfile): Use and set program space data.
4518 (get_java_class_symtab): Use get_dynamics_objfile.
4519 (add_class_symbol): Likewise.
4520 (java_link_class_type): Likewise.
4521 (java_object_type, jv_clear_object_type, set_java_object_type):
4523 (get_java_object_type): Update. Don't cache result.
4524 (is_object_type): Don't call set_java_object_type.
4525 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4526 initialize jv_dynamics_progspace_key.
4528 2011-06-14 Tom Tromey <tromey@redhat.com>
4530 * symtab.h (current_objfile): Don't declare.
4531 * objfiles.h (current_objfile): Don't declare.
4532 * objfiles.c (current_objfile): Remove.
4533 * mdebugread.c (current_objfile): New file-scope global.
4534 * dbxread.c (current_objfile): New file-scope global.
4535 * coffread.c (current_objfile): New file-scope global.
4537 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4539 * top.h (line): Rename to ...
4540 (saved_command_line): ... this.
4541 (linesize): Rename to ...
4542 (saved_command_line_size): ... this.
4543 * top.c (line): Rename to ...
4544 (saved_command_line): ... this.
4545 (linesize): Rename to ...
4546 (saved_command_line_size): ... this.
4547 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4548 * event-top.c (command_line_handler): Adjust.
4549 * main.c (captured_main): Adjust.
4551 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4553 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4554 get_frame_func instead of get_frame_pc to determine the code
4555 address used to construct the frame ID.
4556 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4557 (i386_epilogue_frame_this_id): Likewise.
4558 (i386_epilogue_frame_prev_register): New function.
4559 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4560 (i386_stack_tramp_frame_sniffer): Fix coding style.
4561 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4562 (i386_gdbarch_init): Fix comments.
4564 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4566 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4567 instruction when walking back through the instruction stream.
4569 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4571 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4572 fullname parameters order.
4574 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4577 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4579 * psymtab.c (map_symbol_filenames_psymtab)
4580 (map_partial_symbol_filenames): Likewise.
4581 * psymtab.h: Include symfile.h.
4582 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4583 * symfile.h (symbol_filename_ftype): New.
4584 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4585 map_symbol_filenames, clarify more the naming in comment.
4587 2011-06-07 Doug Evans <dje@google.com>
4589 * cc-with-index.sh: Fix typos in comment.
4590 Look for ../../gdb, for fullname.exp.
4592 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4593 Pedro Alves <pedro@codesourcery.com>
4595 * cli/cli-cmds.c (shell_escape): Use waitpid.
4596 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4598 2011-06-07 Tristan Gingold <gingold@adacore.com>
4600 * xcoffread.c (dwarf2_xcoff_names): New variable.
4601 (aix_process_linenos): Add a guard.
4602 (xcoff_symfile_finish): Free dwarf2.
4603 (xcoff_initial_scan): Add dwarf2 support.
4605 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4607 * infcall.c (run_inferior_call): Don't mask async. Instead force
4608 a synchronous wait, if the target can async.
4610 * target.h (struct target_ops): Delete to_async_mask.
4611 (target_async_mask): Delete.
4612 * target.c (update_current_target): Delete references to to_async_mask.
4613 * linux-nat.c (linux_nat_async_mask_value): Delete.
4614 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4615 to linux_nat_async_mask_value.
4616 (linux_nat_async_mask): Delete.
4617 (linux_nat_async, linux_nat_close): Remove references to
4618 linux_nat_async_mask_value.
4619 * record.c (record_async_mask_value): Delete.
4620 (record_async): Remove references to record_async_mask_value.
4621 (record_async_mask): Delete.
4622 (record_can_async_p, record_is_async_p): Remove references to
4623 record_async_mask_value.
4624 (init_record_ops, init_record_core_ops): Remove references to
4626 * remote.c (remote_async_mask_value): Delete.
4627 (init_remote_ops): Remove reference to remote_async_mask.
4628 (remote_can_async_p, remote_is_async_p): Remove references to
4629 remote_async_mask_value.
4630 (remote_async): Remove references to remote_async_mask_value.
4631 (remote_async_mask): Delete.
4633 * infrun.c (fetch_inferior_event): Don't claim registers changed
4634 if the current thread is already not executing.
4636 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4638 From Stephen Kitt <steve@sk2.org>
4639 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4640 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4642 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4644 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4645 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4647 2011-06-03 Tom Tromey <tromey@redhat.com>
4649 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4651 * python/py-exitedevent.c (create_exited_event_object): Change
4652 type of 'exit_code'. Optionally add exit_code attribute.
4653 (emit_exited_event): Change type of 'exit_code'.
4654 * python/py-event.h (emit_exited_event): Update.
4655 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4656 * infrun.c (handle_inferior_event): Set exit code fields on
4658 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4660 * inferior.c (exit_inferior_1): Initialize new fields.
4662 2011-06-03 Tom Tromey <tromey@redhat.com>
4664 * dwarf2expr.c (get_signed_type): New function.
4665 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4667 2011-06-02 Keith Seitz <keiths@redhat.com>
4669 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4671 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4673 * top.h (simplified_command_loop): Delete declaration.
4675 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4677 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4678 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4680 2011-06-01 Yao Qi <yao@codesourcery.com>
4682 * objfiles.h (obj_section_addr): Update reference to objfile from
4684 (obj_section_endaddr): Likewise.
4686 2011-06-01 Daniel Jacobowitz <drow@false.org>
4688 * MAINTAINERS: Update my email address and affiliation. Also
4689 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4691 2010-05-31 Keith Seitz <keiths@redhat.com>
4694 * linespec.c (get_search_block): New function.
4695 (find_methods): Add FILE_SYMTATB parameter and use it and
4696 get_search_block to pass an appropriate block to
4697 lookup_symbol_in_namespace.
4698 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4699 Check if *ARGPTR starts with a filename first.
4700 If it does, call locate_first_half again to locate the next
4701 "first half" of the linespec.
4702 Pass FILE_SYMTATB to decode_objc and decode_compound.
4703 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4704 (locate_first_half): Stop on the first colon seen.
4705 (decode_compound): Add FILE_SYMTAB parameter.
4706 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4707 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4708 get_search_block with lookup_symbol.
4709 (find_method): Add FILE_SYMTAB parameter and pass it to
4711 (decode_objc): Use get_search_block.
4713 2010-05-31 Keith Seitz <keiths@redhat.com>
4716 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4717 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4718 and CP_ANONYMOUS_NAMESPACE_LEN.
4719 (cp_is_anonymous): Likewise.
4720 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4721 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4722 * dwarf2read.c (namespace_name): Likewise.
4723 (fixup_partial_die): Likewise.
4724 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4725 seen in the input, keep it.
4727 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4729 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4730 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4731 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4732 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4733 * remote.c (_initialize_remote): Register
4734 async_remote_interrupt_twice directly as
4735 sigint_remote_twice_token event.
4737 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4739 * target.h (enum inferior_event_type): Delete INF_ERROR.
4740 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4742 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4744 * interps.c (interp_set): Don't cancel continuations.
4746 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4750 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4752 * continuations.h (continuation_ftype): Add `err' parameter.
4753 Document parameters.
4754 (do_all_continuations, do_all_continuations_thread)
4755 (do_all_intermediate_continuations)
4756 (do_all_intermediate_continuations_thread)
4757 (do_all_inferior_continuations): Add `err' parameter.
4758 * continuations.c (do_my_continuations_1, do_my_continuations)
4759 (do_all_inferior_continuations, do_all_continuations_ptid)
4760 (do_all_continuations_thread_callback)
4761 (do_all_continuations_thread, do_all_continuations)
4762 (do_all_intermediate_continuations_thread_callback)
4763 (do_all_intermediate_continuations_thread)
4764 (do_all_intermediate_continuations): Add `err' parameter, and pass
4765 it down all the way to the continuations proper.
4766 * inf-loop.c (inferior_event_handler): If fetching an inferior
4767 event throws an error, don't pop the target, and still call the
4768 continuations, but with `err' set. Adjust all other continuation
4770 * breakpoint.c (until_break_command_continuation): Add `err'
4772 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4773 issue another step if `err' is set.
4774 (struct until_next_continuation_args): New.
4775 (until_next_continuation): Add `err' parameter. Adjust.
4776 (until_next_command): Adjust.
4777 (struct finish_command_continuation_args): Add `thread' field.
4778 (finish_command_continuation): Add `err' parameter. Handle it.
4779 (finish_forward): Adjust.
4780 (attach_command_continuation): Add `err' parameter. Handle it.
4781 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4782 cancel the continuations.
4783 * interps.c (interp_set): Adjust to cancel the continuations.
4784 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4785 continuations rather than discarding.
4786 (free_thread): Don't clear thread inferior resources here.
4787 (delete_thread_1): Do it here instead. And do it before removing
4788 the thread from the threads list. Tag the thread as exited before
4789 clearing thread inferior resources.
4791 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4793 * infcall.c (call_function_by_hand): Rephrase error message.
4795 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4797 * defs.h (struct thread_info, struct inferior): Delete forward
4799 * breakpoint.h (struct thread_info): New forward declaration.
4800 * observer.sh (struct inferior): New forward declaration.
4801 * python/python-internal.h (struct inferior): New forward
4804 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4806 * defs.h (struct continuation, continuation_ftype)
4807 (continuation_free_arg_ftype, add_continuation)
4808 (do_all_continuations, do_all_continuations_thread)
4809 (discard_all_continuations, discard_all_continuations_thread)
4810 (add_intermediate_continuation, do_all_intermediate_continuations)
4811 (do_all_intermediate_continuations_thread)
4812 (discard_all_intermediate_continuations)
4813 (discard_all_intermediate_continuations_thread)
4814 (add_inferior_continuation, do_all_inferior_continuations)
4815 (discard_all_inferior_continuations): Move to ...
4816 * continuations.h: ... this new file.
4817 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4818 infcmd.c, inferior.c, infrun.c, interps.c: Include
4821 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4822 Doug Evans <dje@google.com>
4824 Fix PR 10970, PR 12702.
4825 * linux-nat.c (linux_lwp_is_zombie): New function.
4826 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4827 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4829 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4831 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4833 (add_continuation, add_intermediate_continuation)
4834 (add_inferior_continuation): Use them.
4835 * continuations.c (struct continuation): Use them.
4836 (make_continuation_ftype): Delete.
4837 (make_continuation, add_inferior_continuation, add_continuation)
4838 (add_intermediate_continuation): Use continuation_ftype and
4839 continuation_free_arg_ftype. Rename parameters to shorter names.
4841 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4843 * continuations.c (make_continuation): Make it return void.
4844 (do_my_continuations): Rename to ...
4845 (do_my_continuations_1): ... this. Remove old_chain parameter and
4847 (do_my_continuations): New.
4848 (discard_my_continuations): Rename to ...
4849 (discard_my_continuations_1): ... this. Remove old_chain
4850 parameter and adjust.
4851 (discard_my_continuations): New.
4852 (add_inferior_continuation): Simplify.
4853 (do_all_inferior_continuations): Reimplement on top
4854 do_my_continuations.
4855 (discard_all_inferior_continuations): Simplify.
4856 (add_continuation): Simplify.
4857 (do_all_continuations_ptid): Simplify.
4858 (discard_all_continuations_thread_callback): Simplify.
4859 (add_intermediate_continuation): Simplify.
4860 (discard_all_intermediate_continuations_thread_callback):
4863 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4865 * utils.c (struct continuation, add_continuation)
4866 (add_inferior_continuation)
4867 (do_all_inferior_continuations, discard_all_inferior_continuations)
4868 (restore_thread_cleanup, do_all_continuations_ptid)
4869 (do_all_continuations_thread_callback)
4870 (do_all_continuations_thread, do_all_continuations)
4871 (discard_all_continuations_thread_callback)
4872 (discard_all_continuations_thread, discard_all_continuations)
4873 (add_intermediate_continuation)
4874 (do_all_intermediate_continuations_thread_callback)
4875 (do_all_intermediate_continuations_thread)
4876 (do_all_intermediate_continuations)
4877 (discard_all_intermediate_continuations_thread_callback)
4878 (discard_all_intermediate_continuations_thread)
4879 (discard_all_intermediate_continuations): Move to ...
4880 * continuations.c: ... this new file, and adjust to no longer
4881 implement continuations on top of cleanups.
4882 * Makefile.in (SFILES): Add continuations.c.
4883 (COMMON_OBS): Add continuations.o.
4885 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4887 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4888 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4889 Internal error on invalid values.
4890 * reverse.c: Don't handle EXEC_ERROR.
4891 * mi/mi-main.c: Don't handle EXEC_ERROR.
4893 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4895 * record.c: Include event-loop.h, inf-loop.h.
4896 (record_beneath_to_async): New global.
4897 (tmp_to_async): New global.
4898 (record_async_inferior_event_token): New global.
4899 (record_open_1): Don't error out if async is enabled.
4900 (record_open): Handle to_async. Create an async event source in
4902 (record_close): Delete the async event source.
4903 (record_resumed): New global.
4904 (record_execution_dir): New global.
4905 (record_resume, record_core_resume): Set them. Register the
4906 target on the event loop.
4907 (record_wait): Rename to ...
4908 (record_wait_1): ... this. Add more debug output. Handle
4909 TARGET_WNOHANG, and the target beneath returning
4910 TARGET_WAITKIND_IGNORE.
4911 (record_wait): Reimplement on top of record_wait_1.
4912 (record_async_mask_value): New global.
4913 (record_async, record_async_mask, record_can_async_p)
4914 (record_is_async_p, record_execution_direction): New functions.
4915 (init_record_ops, init_record_core_ops): Install new methods.
4916 * infrun.c (fetch_inferior_event): Temporarily switch the global
4917 execution direction to the direction the target was going.
4918 (execution_direction): Change type to int.
4919 * target.c (default_execution_direction): New function.
4920 (update_current_target): Inherit and de_fault
4921 to_execution_direction.
4922 * target.h (struct target_ops) <to_execution_direction>: New
4924 (target_execution_direction): New macro.
4925 * inferior.h (execution_direction): Change type to int.
4927 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4929 * infcall.c (call_function_by_hand): Don't allow calling functions
4930 in reverse execution mode.
4932 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4934 * infcmd.c (finish_command): Allow async finish in reverse.
4936 2011-05-26 Yao Qi <yao@codesourcery.com>
4938 * gdb_thread_db.h: Delete. Move to ...
4939 * common/gdb_thread_db.h: ... here.
4941 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4943 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4944 function's entry point instead of a manually managed momentary
4945 breakpoint, and only ever issue one proceed call.
4946 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4947 doing a reverse-finish, switch to stepi mode, to do another step.
4948 (insert_step_resume_breakpoint_at_sal): Make public.
4949 (normal_stop): No need to save function value return registers if
4951 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4953 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4955 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4956 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4957 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4959 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4960 step-resume breakpoints.
4961 (print_it_typical): Handle bp_hp_step_resume.
4962 (bpstat_what): Ditto.
4963 (bptype_string): Ditto.
4964 (print_one_breakpoint_location): Ditto.
4965 (allocate_bp_location): Ditto.
4967 (breakpoint_re_set_one): Ditto.
4968 * infrun.c (handle_inferior_event): Adjust. Split
4969 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4970 BPSTAT_WHAT_HP_STEP_RESUME.
4971 (insert_step_resume_breakpoint_at_sal): Rename to ...
4972 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4973 parameter. Handle it.
4974 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4975 insert_step_resume_breakpoint_at_sal_1.
4976 (insert_step_resume_breakpoint_at_frame): Rename to ...
4977 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4978 set a high-priority step-resume breakpoint.
4979 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4980 (insert_step_resume_breakpoint_at_caller): Ditto.
4982 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4984 * breakpoint.c (iterate_over_related_breakpoints): New.
4985 (do_map_delete_breakpoint): New.
4986 (delete_command): Pass do_map_delete_breakpoint to
4987 map_breakpoint_numbers.
4988 (do_disable_breakpoint): New.
4989 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4991 (do_enable_breakpoint): Rename to ...
4992 (enable_breakpoint_disp): ... this.
4993 (enable_breakpoint): Adjust.
4994 (do_enable_breakpoint): New.
4995 (enable_once_breakpoint): Delete.
4996 (do_map_enable_breakpoint): New.
4997 (do_map_enable_once_breakpoint): New.
4998 (enable_once_command, enable_delete_command)
4999 (delete_trace_command): Iterate over the breakpoint's related
5002 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5004 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5005 for ALPHA_ZERO_REGNUM.
5006 (alpha_supply_int_regs): Explicitly supply zero as the value for
5007 ALPHA_ZERO_REGNUM in the register cache.
5008 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5010 2011-05-26 Yao Qi <yao@codesourcery.com>
5012 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5014 2011-05-26 Tristan Gingold <gingold@adacore.com>
5016 * symfile.h (struct dwarf2_section_names): New type.
5017 (struct dwarf2_debug_sections): New type.
5018 (dwarf2_has_info): Add parameter.
5019 * dwarf2read.c (dwarf2_elf_names): New variable.
5020 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5021 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5022 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5023 (dwarf2_has_info): Add names parameter. Pass names
5024 to dwarf2_locate_sections.
5025 (section_is_p): Rewrite using the names parameter.
5026 (dwarf2_locate_sections): Use section names from the names parameter.
5027 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5028 * elfread.c (read_psyms): Ditto.
5029 * machoread.c (macho_symfile_read): Ditto.
5031 2011-05-25 Andreas Schwab <schwab@redhat.com>
5034 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5036 2011-05-24 Keith Seitz <keiths@redhat.com>
5039 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5040 (decode_compound): Unconditionally call keep_name_info.
5042 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5044 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5045 scope, clear its command list.
5046 (map_breakpoint_numbers): Don't walk the related breakpoints list
5049 2011-05-24 Tom Tromey <tromey@redhat.com>
5051 * MAINTAINERS: Move Jim Blandy to past maintainers.
5053 2011-05-24 Tristan Gingold <gingold@adacore.com>
5055 * symfile.h (enum dwarf2_section_enum): New type.
5056 (dwarf2_get_section_info): New prototype.
5057 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5058 section_name by sect. Use a switch to select the info.
5059 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5060 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5062 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5064 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5065 shared library event breakpoint if there's no execution.
5067 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5069 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5070 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5072 2011-05-23 Tom Tromey <tromey@redhat.com>
5074 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5077 2011-05-23 Doug Evans <dje@google.com>
5079 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5080 entry for RuntimeError to doc string.
5082 2011-05-23 Jerome Guitton <guitton@adacore.com>
5084 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5085 sequence for probing loops.
5087 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5089 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5092 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5094 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5095 zero as the value for %g0 in the register cache.
5096 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5097 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5099 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5101 * infrun.c (proceed): Set previous_inferior_ptid here.
5102 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5103 inferior_ptid, not null_ptid.
5104 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5105 (fetch_inferior_event): Nor here.
5107 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5109 * inf-loop.c (inferior_event_handler): Only output a message if
5112 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5114 * MAINTAINERS: Update my e-mail address.
5116 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5118 * infrun.c (proceed): Switch the inferior event loop to
5119 INF_EXEC_COMPLETE if the target refused to resume from a
5122 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5124 * infcmd.c: Include "inf-loop.h".
5125 (step_once): When stepping into an inline subroutine, pretend the
5126 target has run. If the target can async, switch the inferior
5127 event loop to INF_EXEC_COMPLETE.
5128 * inferior.h (user_visible_resume_ptid): Declare.
5129 * infrun.c (user_visible_resume_ptid): New function, factored out
5132 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5133 that the current thread is running. Merge async and sync
5136 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5138 * infcmd.c (step_1): Simplify synchronous case.
5140 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5142 * tracepoint.c: Include exceptions.h.
5143 (TFILE_PID): Move higher in file.
5144 (tfile_open): Delay pushing the tfile target until we're assured
5145 the tfile header is present in the file. Wrap reading the initial
5146 newline-terminated lines in TRY_CATCH. Pop the target if the
5147 initial setup failed. Add the tfile's thread immediately
5148 aftwards, before any non-essential setup. Don't skip
5149 post_create_inferior if there are no traceframes present in the
5151 (tfile_close): Remove redundant check for null before xfree call.
5152 (tfile_thread_alive): New function.
5153 (init_tfile_ops): Register it as to_thread_alive callback.
5155 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5157 * tracepoint.c (tfile_open): Delete #if 0'd code.
5159 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5161 Fix -readnow for -gdwarf-4 unused type units.
5162 * dwarf2read.c (struct signatured_type): Remove the field offset.
5163 (create_signatured_type_table_from_index): Remove its initialization.
5164 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5165 instead. Add a complaint call.
5166 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5167 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5168 (lookup_signatured_type_at_offset, read_signatured_type)
5169 (write_one_signatured_type): Update the field for per_cu.
5171 2011-05-19 Tom Tromey <tromey@redhat.com>
5173 * python/py-inferior.c (python_inferior_exit): Use
5175 (python_on_resume): Likewise.
5177 2011-05-19 Matt Rice <ratmice@gmail.com>
5179 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5181 2011-05-19 Hui Zhu <teawater@gmail.com>
5183 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5185 2011-05-19 Hui Zhu <teawater@gmail.com>
5187 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5189 2011-05-18 Tom Tromey <tromey@redhat.com>
5191 * dwarf2read.c (dwarf2_add_field): Constify.
5192 * value.c (value_static_field): Constify.
5193 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5195 * ax-gdb.c (gen_static_field): Constify
5197 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5199 * linux-nat.c (kill_callback): Use SIGKILL first.
5201 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5203 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5205 2011-05-18 Tom Tromey <tromey@redhat.com>
5207 * value.c (value_fn_field): Constify.
5208 * symtab.c (gdb_mangle_name): Constify.
5209 * stabsread.c (update_method_name_from_physname): Make 'physname'
5211 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5212 const. Use explicit fputc_filtered loop.
5213 (pascal_type_print_base): Constify.
5214 * p-lang.h (pascal_type_print_method_args): Update.
5215 * linespec.c (add_matching_methods): Constify.
5216 (add_constructors): Likewise.
5217 * jv-typeprint.c (java_type_print_base): Constify.
5218 * gdbtypes.h (struct cplus_struct_type)
5219 <fn_fieldlist.fn_field.physname>: Now const.
5220 * dwarf2read.c (compute_delayed_physnames): Constify.
5221 (dwarf2_add_member_fn): Likewise.
5222 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5224 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5226 * infrun.c (resume): Mention which is the current thread, and its
5227 current PC in debug output.
5228 (prepare_to_proceed): Mention the thread switching in debug
5231 2011-05-18 Tom Tromey <tromey@redhat.com>
5233 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5234 path check. Use xmalloc and cleanups.
5235 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5237 2011-05-17 Tom Tromey <tromey@redhat.com>
5239 * cp-valprint.c (cp_print_value_fields): Catch errors from
5242 2011-05-17 Tom Tromey <tromey@redhat.com>
5244 * dwarf2read.c (dwarf2_get_die_type): Call
5245 get_die_type_at_offset.
5246 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5247 get_base_type function.
5249 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5251 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5254 2011-05-16 Doug Evans <dje@google.com>
5256 * python/py-auto-load.c (source_section_scripts): Mention objfile
5259 2011-05-15 Doug Evans <dje@google.com>
5261 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5262 (try_thread_db_load_from_pdir): Call it. If unable to find
5263 libthread_db in directory of libpthread, see if we're looking at
5264 the separate-debug-info copy.
5266 * python/py-autoload.c (print_script): Print "Missing" instead of
5267 "No" for missing scripts.
5268 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5270 2011-05-13 Doug Evans <dje@google.com>
5272 * ui-file.c (stdio_file_write_async_safe): Add comment.
5274 2011-05-14 Hui Zhu <teawater@gmail.com>
5276 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5278 2011-05-13 Doug Evans <dje@google.com>
5280 Support $pdir and $sdir in libthread-db-search-path.
5281 * NEWS: Mention $sdir,$pdir.
5282 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5283 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5284 (try_thread_db_load_from_sdir): New function.
5285 (try_thread_db_load_from_dir): New function.
5286 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5287 system directories if search of libthread-db-search-path fails,
5288 that is now done via $sdir.
5289 (has_libpthread): New function.
5290 (thread_db_load): Remove search for libthread_db in directory of
5291 libpthread, that is now done via $pdir.
5293 * NEWS: Mention "info auto-load-scripts".
5294 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5295 script_not_found_warning_printed.
5296 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5297 all callers updated. Initialize script_not_found_warning_printed.
5298 (get_auto_load_pspace_data_for_loading): New function.
5299 (maybe_add_script): New function.
5300 (source_section_scripts): Simplify. Only print one warning regardless
5301 of the number of auto-load scripts not found.
5302 (clear_section_scripts): Clear script_not_found_warning_printed.
5303 (auto_load_objfile_script): Record script in hash table.
5304 (count_matching_scripts): New function.
5305 (maybe_print_script): Renamed from maybe_print_section_script, all
5306 callers updated. Rewrite to use ui_out_*.
5307 (info_auto_load_scripts): Renamed from
5308 maintenance_print_section_scripts, all callers updated.
5309 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5310 renamed as "info auto-load-scripts".
5312 2011-05-13 Tom Tromey <tromey@redhat.com>
5314 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5315 (read_sleb128): Likewise.
5317 2011-05-13 Tom Tromey <tromey@redhat.com>
5319 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5322 2011-05-13 Doug Evans <dje@google.com>
5324 * linux-nat.c (debug_linux_nat_async): Delete.
5325 Replace all references to use debug_linux_nat instead.
5326 (show_debug_linux_nat_async): Delete.
5327 (sigchld_handler): Call ui_file_write_async_safe instead of
5329 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5330 * ui-file.c (struct ui_file): New member to_write_async_safe.
5331 (null_file_write_async_safe): New function.
5332 (ui_file_write_async_safe): New function.
5333 (set_ui_file_write_async_safe): New function.
5334 (ui_file_new): Initialize to_write_async_safe.
5335 (stdio_file_write_async_safe): New function.
5336 (struct stdio_file): New member fd.
5337 (stdio_file_new): Initialize to_write_async_safe, fd.
5338 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5340 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5341 (set_ui_file_write_async_safe): Declare.
5342 (ui_file_write_async_safe): Declare.
5344 2011-05-13 Tom Tromey <tromey@redhat.com>
5346 * utils.c (do_value_free): New function.
5347 (make_cleanup_value_free): Likewise.
5348 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5350 (dwarf2_loc_desc_needs_frame): Call
5351 make_cleanup_value_free_to_mark.
5352 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5353 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5355 (new_dwarf_expr_context): Don't call value_mark.
5356 * dwarf2-frame.c (execute_stack_op): Call
5357 make_cleanup_value_free_to_mark.
5358 * defs.h (make_cleanup_value_free): Declare.
5360 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5362 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5363 prepare_execute_command.
5364 * top.c (prepare_execute_command): Return cleanup.
5365 (execute_command): Use cleanup from prepare_execute_command.
5366 * top.h (prepare_execute_command): Change prototype to return
5368 * defs.h (struct value): Add opaque declaration.
5369 (make_cleanup_value_free_to_mark): Add prototype.
5370 * utils.c (do_value_free_to_mark): New function.
5371 (make_cleanup_value_free_to_mark): Likewise.
5373 2011-05-12 Tom Tromey <tromey@redhat.com>
5375 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5376 cast left-hand-side to unsigned.
5378 2011-05-12 Tom Tromey <tromey@redhat.com>
5381 * value.h (value_from_contents): Declare.
5382 * value.c (value_from_contents): New function.
5383 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5384 (dwarf2_get_die_type): New function.
5385 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5386 (allocate_piece_closure): Acquire reference to values.
5387 (read_pieced_value): Update for value-based expressions.
5388 (write_pieced_value): Likewise.
5389 (free_pieced_value_closure): Call value_free as needed.
5390 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5391 Update for value-based expressions.
5392 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5393 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5394 <get_base_type>: New field.
5395 (struct dwarf_expr_piece) <v.value>: Change type.
5396 <v.regno>: New field.
5397 (struct dwarf_expr_context) <mark>: New field.
5398 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5399 (dwarf_expr_pop, dwarf_expr_push): Remove.
5400 (dwarf_expr_push_address): Declare.
5401 * dwarf2expr.c (dwarf_arch_cookie): New global.
5402 (struct dwarf_gdbarch_types): New.
5403 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5405 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5407 (dwarf_expr_push_address): New function.
5408 (dwarf_expr_pop): Now static.
5409 (dwarf_expr_fetch): Change return type.
5410 (dwarf_require_integral): New function.
5411 (dwarf_expr_fetch): Simplify.
5412 (add_piece): Update.
5413 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5415 (execute_stack_op) <sign_ext>: Remove.
5416 Use values for DWARF stack.
5417 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5418 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5420 (_initialize_dwarf2expr): New function.
5421 (add_piece): Update.
5422 (new_dwarf_expr_context): Set new field.
5423 (free_dwarf_expr_context): Call value_free_to_mark.
5424 * dwarf2-frame.c (no_base_type): New function.
5425 (execute_stack_op): Set get_base_type field. Update.
5427 2011-05-12 Tom Tromey <tromey@redhat.com>
5429 * dwarf2read.c (read_common_block): Fix formatting.
5431 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5433 * breakpoint.c (disable_breakpoint): Disable all locations
5434 associated with a tracepoint on target if a trace experiment is
5436 (disable_command): Disable a specific tracepoint location on target if
5437 a trace experiment is running.
5438 (do_enable_breakpoint): Enable all locations associated with a
5439 tracepoint on target if a trace experiment is running.
5440 (enable_command) Enable a specific tracepoint location on target if a
5441 trace experiment is running.
5442 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5443 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5444 to_disable_tracepoint.
5445 * target.h: Add declaration of struct bp_location.
5446 (struct target_ops): Add new functions
5447 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5448 to_disable_tracepoint to target operations.
5449 (target_supports_enable_disable_tracepoint): New macro.
5450 (target_enable_tracepoint): New macro.
5451 (target_disable_tracepoint): New macro.
5452 * remote.c (struct remote_state): Add new field.
5453 (remote_enable_disable_tracepoint_feature): New.
5454 (remote_protocol_features): Add new entry.
5455 (remote_supports_enable_disable_tracepoint): New.
5456 (remote_enable_tracepoint): New.
5457 (remote_disable_tracepoint): New.
5458 (init_remote_ops): Add remote_enable_tracepoint,
5459 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5460 to remote operations.
5461 * tracepoint.c (start_tracing): Allow tracing to start without any
5462 tracepoints enabled with just a warning if they can be re-enabled
5464 * NEWS: Add news item for the new behaviour of the enable and disable
5465 GDB commands when applied to tracepoints.
5466 Add news items for the new remote packets QTEnable and QTDisable.
5468 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5470 * config.in: Regenerate.
5471 * configure: Regenerate.
5472 * configure.ac <--with-system-readline> (for readline_echoing_p):
5474 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5475 (tui_old_rl_echoing_p): ... here.
5476 (tui_setup_io): Rename extern declaration readline_echoing_p to
5477 _rl_echoing_p. Adjust assignments for the both renames.
5479 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5481 * symtab.c (lookup_symtab): Run cleanup before returning.
5483 2011-05-11 Tom Tromey <tromey@redhat.com>
5485 * dwarf2read.c (handle_data_member_location): New function.
5486 (dwarf2_add_field): Use it.
5487 (read_common_block): Likewise.
5489 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5491 Make addrs->SECTINDEX always defined.
5492 * symfile.c (relative_addr_info_to_section_offsets): Check for
5493 SECTINDEX -1, not for zero ADDR.
5494 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5495 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5496 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5499 2011-05-10 Doug Evans <dje@google.com>
5501 * linux-thread-db.c: Whitespace cleanup.
5502 (try_thread_db_load_1): Fix comment.
5504 * linux-thread-db.c (set_libthread_db_search_path): New function.
5505 (_initialize_thread_db): Add setter for libthread-db-search-path.
5507 2011-05-09 Doug Evans <dje@google.com>
5509 * NEWS: Mention --with-iconv-bin.
5510 * configure.ac: New option --with-iconv-bin.
5511 * configure: Regenerate.
5512 * config.in: Regenerate.
5513 * defs.h (relocate_gdb_directory): Declare.
5514 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5515 removed progname parameter, and exported. All callers updated.
5516 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5518 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5519 adding missing call to restore_child_signals_mask.
5521 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5523 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5525 * infrun.c (proceed, start_remote): Adjust.
5526 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5527 and adjust to not handle it.
5528 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5529 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5530 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5531 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5532 * windows-nat.c (do_initial_windows_stuff): Adjust.
5533 * infcmd.c (attach_command): Adjust.
5534 (notice_new_inferior): Adjust.
5536 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5538 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5539 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5540 * spu-tdep.c (op_selb): Use correct value.
5542 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5544 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5545 "parent" parameter to symbol_file_add_from_bfd call.
5547 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5548 Thiago Jung Bauermann <bauerman@br.ibm.com>
5550 Implement support for PowerPC BookE masked watchpoints.
5551 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5553 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5554 method. Initialize to NULL in all existing breakpoint_ops instances.
5555 (struct breakpoint) <hw_wp_mask>: New field.
5556 * breakpoint.c (is_masked_watchpoint): Add prototype.
5557 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5558 breakpoint's breakpoint_ops.works_in_software_mode if available.
5559 (watchpoints_triggered): Handle the case of a hardware masked
5561 (watchpoint_check): Likewise.
5562 (works_in_software_mode_watchpoint): New function.
5563 (insert_masked_watchpoint, remove_masked_watchpoint)
5564 (resources_needed_masked_watchpoint)
5565 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5566 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5567 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5569 (masked_watchpoint_breakpoint_ops): New structure.
5570 (watch_command_1): Check for the existence of the `mask' parameter.
5571 Set b->ops according to the type of hardware watchpoint being created.
5572 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5573 (ppc_linux_remove_mask_watchpoint)
5574 (ppc_linux_masked_watch_num_registers): New functions.
5575 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5576 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5577 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5578 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5579 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5580 (target_masked_watch_num_registers): New functions.
5581 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5582 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5584 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5585 (target_masked_watch_num_registers): Add prototypes.
5587 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5591 (producer_is_gcc_ge_4_0): New function.
5592 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5593 symtab->language code.
5594 (var_decode_location): Set cu->has_loclist.
5595 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5596 skip. Intialize force_skip from locations_valid. Move the prologue
5597 skipping code into two passes.
5598 * symtab.h (struct symtab): Make the primary field a bitfield. New
5599 field locations_valid.
5601 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5603 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5604 (classify_inner_name): Call cp_lookup_nested_type with
5606 * cp-namespace.c (cp_lookup_nested_type): New variable
5607 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5608 type_name_no_tag_or_error with saved_parent_type.
5609 * dwarf2read.c (load_partial_dies): Read in any children of
5610 DW_TAG_typedef with complaint in such case.
5611 * gdbtypes.c (type_name_no_tag_or_error): New function.
5612 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5613 * valops.c (destructor_name_p): New comment for parameter type. Remove
5614 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5615 * value.h (destructor_name_p): Remove type const.
5617 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5619 * symtab.c (compare_symbol_name): New function.
5620 (completion_list_add_name, expand_partial_symbol_name): Call it,
5621 remove the variable ncmp.
5622 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5625 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5627 Demote to sw watchpoint only in update_watchpoint.
5628 * breakpoint.c (update_watchpoint): Change between software and
5629 hardware watchpoint for all kinds of watchpoints, not just
5630 read/write ones. Determine b->exact value here instead of
5631 in watch_command_1. Error out if there are not enough resources
5632 for a read or access hardware watchpoint.
5633 (watch_command_1): Remove logic of checking whether there are
5634 enough resources available, since update_watchpoint will do that
5635 work now. Don't set b->exact here. Catch exceptions thrown by
5636 update_watchpoint and delete the watchpoint.
5637 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5638 Use target_exact_watchpoints instead.
5639 (delete_breakpoint): Notify observers only if deleted watchpoint
5640 has a breakpoint number assigned to it.
5642 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5644 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5646 2011-05-05 Jerome Guitton <guitton@adacore.com>
5648 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5650 (i386_stack_tramp_frame_unwind): New static global.
5651 (i386_match_pattern): New function, extracted from i386_match_insn.
5652 (i386_match_insn): Use i386_match_pattern.
5653 (i386_match_insn_block): New function.
5654 (i386_tramp_chain_in_reg_insns)
5655 (i386_tramp_chain_on_stack_insns): New static variables.
5656 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5659 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5661 * configure.host (xscale*): Don't handle target.
5662 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5665 2011-05-04 Yao Qi <yao@codesourcery.com>
5667 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5669 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5672 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5673 | * elfread.c (elf_symtab_read): Stop memory leak.
5675 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5677 * nto-tdep.c (nto_target): Replace deprecated call to
5678 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5680 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 Fix false GCC warning.
5683 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5685 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5687 * breakpoint.c (update_watchpoint): Move code to change
5688 the enable state of breakpoint from here ...
5689 (do_enable_breakpoint): ... to here.
5691 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5693 * valprint.c (val_print_array_elements): Fixed poor performance
5694 of printing very large arrays with repeat_count_threshold set
5695 to unlimited. New comment.
5697 2011-04-29 Tom Tromey <tromey@redhat.com>
5699 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5700 (mi_parse): Likewise.
5701 * breakpoint.c (break_range_command): Use sizeof char*, not
5703 (create_breakpoint): Likewise.
5704 (parse_breakpoint_sals): Likewise.
5706 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5708 * linux-nat.c (linux_child_remove_fork_catchpoint)
5709 (linux_child_remove_vfork_catchpoint)
5710 (linux_child_remove_exec_catchpoint): New functions.
5711 (linux_target_install_ops): Install them.
5713 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5717 * varobj.c (install_default_visualizer): Do not install a
5718 visualizer if the varobj is CPLUS_FAKE_CHILD.
5719 (construct_visualizer): Likewise.
5721 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5723 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5724 case insensitive comparison.
5726 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5728 * infrun.c (proceed): Revert previous change.
5729 (resume): Instead, handle the case of signal delivery while stepping
5730 off a breakpoint location here, and only if software single-stepping
5731 is used. Handle nested signals.
5733 2011-04-28 Yao Qi <yao@codesourcery.com>
5735 * arm-tdep.c (copy_unmodified): Rename to ...
5736 (arm_copy_unmodified): .. this. New.
5737 (copy_preload): Move common part to ...
5738 (install_preload): .. this. New.
5739 (arm_copy_preload): New.
5740 (copy_preload_reg): Move common part to ...
5741 (install_preload_reg): ... this. New.
5742 (arm_copy_preload_reg): New.
5743 (copy_b_bl_blx): Move common part to ...
5744 (install_b_bl_blx): .. this. New.
5745 (arm_copy_b_bl_blx): New.
5746 (copy_bx_blx_reg): Move common part to ...
5747 (install_bx_blx_reg): ... this. New.
5748 (arm_copy_bx_blx_reg): New.
5749 (copy_alu_reg): Move common part to ...
5750 (install_alu_reg): ... this. New.
5751 (arm_copy_alu_reg): New.
5752 (copy_alu_shifted_reg): Move common part to ...
5753 (install_alu_shifted_reg): ... this. New.
5754 (copy_ldr_str_ldrb_strb): Move common part to ...
5755 (install_ldr_str_ldrb_strb): ... this. New.
5756 (arm_copy_ldr_str_ldrb_strb): New.
5757 (copy_copro_load_store): Move some common part to ...
5758 (install_copy_copro_load_store): ... this. New.
5759 (arm_copy_copro_load_store): New.
5761 (arm_copy_svc): Renamed from copy_svc.
5762 (copy_undef): Delete.
5763 (arm_copy_undef): Renamed from copy_undef.
5764 (decode_ext_reg_ld_st): Delete.
5765 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5766 (decode_svc_copro): Delete.
5767 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5768 (copy_copro_load_store, copy_alu_imm): update callers.
5769 (copy_extra_ld_st, copy_block_xfer): Likewise.
5770 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5771 (decode_miscellaneous, decode_dp_misc): Likewise.
5772 (decode_ld_st_word_ubyte, decode_media): Likewise.
5773 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5774 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5775 (decode_unconditional, decode_miscellaneous): Likewise.
5776 (decode_media, decode_b_bl_ldmstm): Likewise.
5777 (arm_process_displaced_insn): Likewise..
5778 (decode_misc_memhint_neon): Delete.
5779 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5780 (decode_miscellaneous): Delete.
5781 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5782 (decode_dp_misc): Delete.
5783 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5784 (decode_ld_st_word_ubyte): Delete.
5785 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5786 (decode_media): Delete.
5787 (arm_decode_media): Renamed from decode_media.
5788 (decode_b_bl_ldmstm): Delete.
5789 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5790 (decode_ext_reg_ld_st): Delete.
5791 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5792 (decode_unconditional): Delete.
5793 (arm_decode_unconditional): Renamed from decode_unconditional.
5795 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5797 Case insensitive lookups implementation.
5798 * dwarf2read.c: Include ctype.h.
5799 (struct mapped_index): New field version.
5800 (mapped_index_string_hash): New parameter index_version. New comment
5801 for it. Call tolower appropriately.
5802 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5803 Choose the right index version for mapped_index_string_hash.
5804 (dwarf2_read_index): Support also the index version 5. Initialize the
5805 new struct mapped_index field version.
5806 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5807 (find_slot): Explain the version needs. Pass INT_MAX for the new
5809 (write_psymtabs_to_index): Produce version 5.
5810 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5811 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5812 * psymtab.c (lookup_partial_symbol): Find the
5813 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5815 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5817 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5818 (completion_list_add_name): New variable ncmp, initialize it, use it.
5819 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5820 * utils.c (strcmp_iw): Support case_sensitive_off.
5821 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5822 New function comment part. New variables saved_string1,
5823 saved_string2 and case_pass. Add a proper second pass.
5825 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5827 Replace re_comp/re_exec by regcomp/regexec.
5828 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5829 (search_symbols_name_matches): Use them, use regexec.
5830 (search_symbols): New variable retval_chain, adjust the use of
5831 old_chain against it. Replace re_comp by regcomp. Use the new struct
5832 search_symbols_data fields, use regexec instead of re_exec.
5834 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5836 Format the code for the next patch.
5837 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5838 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5839 New variables c1 and c2.
5841 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5843 * infrun.c (proceed): Do not single-step into signal delivery
5844 when stepping off a breakpoint location.
5845 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5846 (insert_step_resume_breakpoint_at_caller): Likewise.
5847 (insert_step_resume_breakpoint_at_sal): Likewise.
5848 (insert_longjmp_resume_breakpoint): Likewise.
5850 2011-04-27 Yao Qi <yao@codesourcery.com>
5852 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5854 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5856 * procfs.c (procfs_pass_signals): Fix advance declaration.
5858 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5860 * target.h (struct target_ops): Remove to_notice_signals;
5861 add to_pass_signals.
5862 (target_notice_signals): Remove.
5863 (target_pass_signals): Add prototype.
5864 * target.c (update_current_target): Remove to_notice_signals;
5865 mention to_pass_signals.
5866 (target_pass_signals): New function.
5867 (debug_to_notice_signals): Remove.
5868 (setup_target_debug): Do not install debug_to_notice_signals.
5870 * infrun.c (signal_pass): New global.
5871 (resume): Call target_pass_signals.
5872 (handle_inferior_event): Report all signals while stepping over
5873 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5874 are re-inserted when stepping over a signal handler.
5875 (signal_cache_update): New function.
5876 (signal_stop_update): Call it.
5877 (signal_print_update): Likewise.
5878 (signal_pass_update): Likewise.
5879 (handle_command): Call signal_cache_update and target_pass_signals
5880 instead of target_notice_signals.
5881 (_initialize_infrun): Initialize signal_pass.
5883 * linux-nat.c (pass_mask): New global.
5884 (linux_nat_pass_signals): New function.
5885 (linux_nat_create_inferior): Report all signals initially.
5886 (linux_nat_attach): Likewise.
5887 (linux_nat_resume): Use pass_mask to decide whether to directly
5888 handle an inferior signal.
5889 (linux_nat_wait_1): Likewise.
5890 (linux_nat_add_target): Install to_pass_signals callback.
5892 * nto-procfs.c (notice_signals): Remove.
5893 (procfs_resume): Do not call notice_signals.
5894 (procfs_notice_signals): Remove.
5895 (procfs_pass_signals): New function.
5896 (init_procfs_ops): Install to_pass_signals callback instead of
5897 to_notice_signals callback.
5898 (_initialize_procfs): Report all signals initially.
5900 * procfs.c (procfs_notice_signals): Remove.
5901 (procfs_pass_signals): New function.
5902 (procfs_target): Install to_pass_signals callback instead of
5903 to_notice_signals callback.
5904 (register_gdb_signals): Remove.
5905 (procfs_debug_inferior): Report all signals initially.
5906 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5908 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5909 parameters; use them instead of calling signal_..._state routines.
5910 (remote_notice_signals): Remove.
5911 (remote_start_remote): Report all signals initially.
5912 (remote_resume): Do not call remote_pass_signals.
5913 (_initialize_remote): Install to_pass_signals callback instead of
5914 to_notice_signals callback.
5916 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5918 * breakpoint.c (user_settable_breakpoint): Delete.
5919 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5920 (delete_command): Check user_breakpoint_p instead of looking at
5921 the breakpoint's type.
5922 (disable_command): Ditto.
5923 (enable_command): Ditto.
5924 (delete_trace_command): Use user_breakpoint_p instead of looking
5925 at the breakpoint number directly. When checking if there are
5926 user visible tracepoints, in order to know whether to ask the user
5927 for confirmation, check whether the breakpoint is actually a
5930 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5932 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5935 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5937 MI breakpoint notifications.
5939 * annotate.c (breakpoint_changed): Adjust parameter type.
5940 * breakpoint.c (set_breakpoint_condition): Adjust to change
5941 in breakpoint_modified type.
5942 (breakpoint_set_commands): Likewise.
5943 (do_map_commands_command): Likewise.
5944 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5945 changed after bumping hit count.
5946 (bpstat_stop_status): Likewise.
5947 (print_one_breakpoint_location): Don't wrap in tuple here.
5948 (print_one_breakpoint): Always print individual locations.
5949 For locations, use unnamed tuple.
5950 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5952 (create_catchpoint, create_syscall_event_catchpoint): Call
5953 breakpoint_created obsever.
5954 (mention): Don't call breakpoint_created observer.
5955 (create_breakpoint_sal): Call breakpoint_created observer.
5956 (create_breakpoint, watch_command_1): Likewise.
5957 (create_ada_exception_breakpoint): Likewise.
5958 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5959 (locations_are_equal): New.
5960 (update_breakpoint_locations): If locations were changed, notify.
5961 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5962 Call breakpoint_modified observer.
5964 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5965 (mi_cmd_break_insert): Don't set observers for modify and delete.
5966 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5967 (mi_breakpoint_created, mi_breakpoint_deleted)
5968 (mi_breakpoint_modified): New.
5969 (mi_interpreter_init): Hook the above.
5970 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5971 while -break-* commands are executing.
5972 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5973 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5975 (mi_ui_out_impl): Hook in mi_redirect.
5976 (mi_field_skip): True to the name, skip the field, don't output
5977 a field with an empty value.
5979 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5980 (gdbpy_breakpoint_deleted): Adjust.
5981 * tui/tui-hooks.c (tui_event_create_breakpoint)
5982 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5984 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5986 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5987 (procfs_remove_hw_watchpoint): Likewise.
5989 2011-04-26 Michael Walle <michael@walle.cc>
5991 * remote.c (remote_start_remote): Ack packet after sending the
5994 2011-04-26 Yao Qi <yao@codesourcery.com>
5996 * linux-nat.c: Move common macros to ...
5997 Include linux-ptrace.h.
5998 * common/linux-ptrace.h: ... here. New.
6000 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6002 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6003 !objfile_has_partial_symbols. New comment.
6004 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6005 SYM_READ_PSYMBOLS is not present. Extend the comment.
6006 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6008 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6010 * defs.h (ENUM_BITFIELD): Remove.
6012 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6013 Eli Zaretskii <eliz@gnu.org>
6015 * NEWS: Document the new gdbserver --once option.
6017 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6019 * MAINTAINERS: Update my email address.
6021 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6023 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6024 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6025 function call if __STDC_ISO_10646__ macro is defined.
6026 (intermediate_encoding): New prototype.
6027 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6028 to generate compile time error for unsupported gdb_wchar_t size.
6029 (ENDIAN_SUFFIX): New macro.
6030 (intermediate_encoding): New function.
6032 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6034 * ada-lang.c (struct add_partial_datum): Update the comment for
6035 expand_partial_symbol_name.
6036 (ada_add_partial_symbol_completions): Rename to ...
6037 (ada_expand_partial_symbol_name): ... here, change return type, update
6038 function comment, call symbol_completion_match instead of
6039 symbol_completion_add.
6040 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6041 and ada_expand_partial_symbol_name.
6042 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6044 (dw2_map_symbol_names): Remove.
6045 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6046 * psymtab.c (map_symbol_names_psymtab): Remove.
6047 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6048 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6050 (psym_functions): Unlist map_symbol_names_psymtab.
6051 (map_partial_symbol_names): Rename to ...
6052 (expand_partial_symbol_names): ... here, change the FUN type, call
6053 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6054 * psymtab.h (map_partial_symbol_names): Rename to ...
6055 (expand_partial_symbol_names): ... here, change the FUN type.
6056 * symfile.h (struct quick_symbol_functions): Update the description of
6057 expand_symtabs_matching. Remove map_symbol_names.
6058 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6059 (struct add_name_data): Update the comment for
6060 expand_partial_symbol_name.
6061 (add_partial_symbol_name): Rename to ...
6062 (expand_partial_symbol_name): ... here. Replace
6063 completion_list_add_name call by strncmp.
6064 (default_make_symbol_completion_list_break_on): Use now
6065 expand_partial_symbol_names and expand_partial_symbol_name.
6066 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6068 2011-04-20 Tom Tromey <tromey@redhat.com>
6070 * dwarf2read.c (save_gdb_index_command): Replace format
6071 documentation with a pointer to the manual.
6073 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6075 * regcache.c: Include remote.h.
6076 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6077 (regcache_dump): Handle regcache_dump_remote.
6078 (maintenance_print_remote_registers): New function.
6079 (_initialize_regcache): Install "maint print remote-registers"
6081 * remote.c (map_regcache_remote_table): New function, factored out
6083 (init_remote_state): ... here.
6084 (remote_register_number_and_offset): New.
6085 * remote.h (remote_register_number_and_offset): Declare.
6087 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6089 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6090 null_ptid, assume and allow a NULL address space, instead of
6091 asking the target for the ptid's address space.
6092 * infrun.c (ptid_is_pid): Remove assertion.
6094 2011-04-19 Tom Tromey <tromey@redhat.com>
6096 * windows-tdep.c (windows_xfer_shared_library):
6097 * windows-nat.c (get_module_name, windows_make_so):
6098 * v850-tdep.c (v850_handle_pushm):
6099 * utils.c (null_cleanup, gdb_realpath):
6100 * ui-out.c (get_next_header):
6101 * tracepoint.c (clear_traceframe_info):
6102 * symtab.c (lookup_symtab):
6103 * serial.h (struct serial_ops):
6104 * mipsread.c (read_alphacoff_dynamic_symtab):
6105 * infcmd.c (print_return_value):
6106 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6107 * f-exp.y (parse_number):
6108 * exceptions.c (catch_exceptions):
6109 * dummy-frame.c (dummy_frame_this_id):
6110 * defs.h (struct cleanup):
6111 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6112 * arm-tdep.c (arm_push_dummy_call):
6113 * amd64-tdep.h (amd64_collect_xsave):
6114 * amd64-tdep.c (amd64_collect_xsave):
6115 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6116 * README (typing): Remove duplicate words.
6117 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6118 * infrun.c (siginfo_value_read): Fix typo.
6119 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6120 * top.c (source_line_number): Add comma.
6122 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6124 * thread.c (any_live_thread_of_process): Prioritize threads
6125 that are not executing.
6126 * gdbthread.h (any_live_thread_of_process): Update comment
6127 as per above change.
6129 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6131 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6132 (scan_xcoff_symtab): Likewise.
6134 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6136 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6139 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6140 Pedro Alves <pedro@codesourcery.com>
6142 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6143 variables to simplify code and avoid == operator at end of
6144 line as this is against GNU coding standards.
6146 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6148 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6149 lm_name to name_lm to avoid conflict with lm_name function.
6151 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6153 ARI fixes: Use only lowercase function name for static functions.
6154 * nto-tdep.c (LM_ADDR): Rename to...
6155 (lm_addr): New function name.
6156 (nto_relocate_section_addresses): Adapt to change above.
6157 * solib-sunos.c (LM_ADDR): Rename to...
6158 (lm_addr): New function name.
6159 (LM_NEXT): Rename to...
6160 (lm_next): New function name.
6161 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6162 function name changes above.
6163 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6164 (lm_addr_from_link_map): New function name.
6165 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6166 (has_lm_dynamic_from_link_map): New function name.
6167 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6168 (lm_dynamic_from_link_map): New function name.
6169 (LM_ADDR_CHECK): Rename to...
6170 (lm_addr_check): New function name.
6171 (LM_NEXT): Rename to...
6172 (lm_next): New function name.
6173 (LM_PREV): Rename to...
6174 (lm_prev): New function name.
6175 (LM_NAME): Rename to...
6176 (lm_name): New function name.
6177 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6178 (ignore_first_link_map_entry): New function name.
6179 (svr4_keep_data_in_core): Adapt to function name changes above.
6180 (svr4_current_sos): Likewise.
6181 (enable_break): Likewise.
6182 (svr4_relocate_section_addresses): Likewise.
6184 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6187 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6188 sprintf. Simplify code and avoid loosing memory.
6189 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6190 (call0_frame_cache): Remove && operator from end of line.
6192 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6194 Fix libraries displacement if they change whether they were prelinked.
6195 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6196 does not match. Comment why.
6198 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6200 * corelow.c: Include wrapper.h.
6201 (core_open): Call now gdb_target_find_new_threads.
6202 * wrapper.c: Include target.h.
6203 (gdb_target_find_new_threads): New.
6204 * wrapper.h (gdb_target_find_new_threads): New declaration.
6206 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6208 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6209 even if !TARGET_HAS_EXECUTION.
6211 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6213 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6214 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6215 bfd_get_synthetic_symtab.
6216 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6217 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6218 parameter parent, remove the call to add_separate_debug_objfile.
6219 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6220 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6221 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6222 parent, new comment for it, call add_separate_debug_objfile for it.
6223 (symbol_file_add_separate): Pass objfile as the parameter parent,
6224 remove the call to add_separate_debug_objfile.
6225 (symbol_file_add_from_bfd): New parameter parent, pass it.
6226 (symbol_file_add): Pass NULL to the new parameter parent.
6227 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6229 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6231 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6234 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6236 Fix Python access to inlined frames.
6237 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6238 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6240 2011-04-15 Tom Tromey <tromey@redhat.com>
6242 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6244 2011-04-15 Gary Benson <gbenson@redhat.com>
6246 * MAINTAINERS: Add myself to write-after-approval section.
6248 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6250 * remote-sim.c (sim_command_completer): New function.
6251 (_initialize_remote_sim): Set completer to sim_command_completer.
6253 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6255 * breakpoint.c (print_exception_catchpoint): Rename to ...
6256 (print_it_exception_catchpoint): ... this.
6257 (gnu_v3_exception_catchpoint_ops): Update with new name
6258 for print_it_exception_catchpoint.
6260 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6262 * MAINTAINERS: Add myself for write after approval privileges.
6264 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6266 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6268 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6270 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6272 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6274 * breakpoint.c (save_breakpoints): Verify whether
6275 breakpoint_ops.print_recreate is defined before calling it.
6277 2011-04-11 Gary Benson <gbenson@redhat.com>
6279 Fix failure with --enable-maintainer-mode.
6280 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6282 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6285 * symtab.c (search_symbols): Reorder the KIND description in the
6286 function comment. Remove the unused 4th element of types, types2,
6287 types3 and types4. New gdb_assert on KIND.
6288 (symtab_symbol_info): Remove the unused 4th element of classnames.
6289 New gdb_assert on KIND.
6290 * symtab.h (enum search_domain): New warning in the enum comment.
6291 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6294 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6296 Fix crash of gdb save-index on a STABS file.
6297 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6300 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6302 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6303 * dwarf2read.c: Include ctype.h.
6304 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6306 (dwarf2_add_field): Fix new_field->accessibility by calling
6307 dwarf2_default_access_attribute. Restructure setting accessibility
6309 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6310 is_private and is_protected by calling
6311 dwarf2_default_access_attribute.
6313 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6315 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6316 to the initialization.
6318 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6320 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6323 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6325 Remove support for old Cygwin 1.5 versions.
6326 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6327 function on old Cygwin version.
6328 * windows-nat.c: Remove cygwin version check and always define
6329 __USEWIDE for Cygwin compilation.
6331 2011-04-07 Yao Qi <yao@codesourcery.com>
6333 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6335 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6336 (arm_copy_svc): Remove parameters INSN and TO.
6337 (decode_svc_copro): Update caller.
6338 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6339 from function pointer `copy_svc_os'.
6341 2011-04-07 Yao Qi <yao@codesourcery.com>
6343 * arm-tdep.c (cleanup_branch): Set a correct return address in
6344 LR for ARM and Thumb.
6346 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6349 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6350 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6351 in the function comment, a new note on values compatibility.
6352 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6353 * symtab.h (SYMBOL_HASH_NEXT): New.
6355 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6357 * ppc-linux-nat.c (check_condition): Add len output parameter.
6358 Set it based on the memory region referenced in the condition
6359 expression. Update all callers.
6361 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6363 Fix crash regression on systems featuring .gdb_index.
6364 * objfiles.c (free_objfile): Move the
6365 forget_cached_source_info_for_objfile call earlier. Comment it.
6366 Extend the comment for objfile_free_data.
6368 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6370 Fix regression of displaying the debug format.
6371 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6374 2011-04-04 Tom Tromey <tromey@redhat.com>
6376 * cli/cli-interp.c (struct captured_execute_command_args):
6378 (do_captured_execute_command): Remove.
6379 (safe_execute_command): Use TRY_CATCH.
6380 * cli/cli-script.c (struct wrapped_read_command_file_args):
6382 (wrapped_read_command_file): Remove.
6383 (script_from_file): Use TRY_CATCH.
6384 * exceptions.c (catch_exception): Remove.
6385 * exceptions.h (catch_exception): Remove.
6386 (deprecated_throw_reason): Update comment.
6387 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6388 argument to 'context'.
6389 (mi_execute_command): Use TRY_CATCH.
6390 * remote.c (struct start_remote_args): Remove.
6391 (remote_start_remote): Update; change arguments.
6392 (remote_open_1): Use TRY_CATCH.
6394 2011-04-04 Tom Tromey <tromey@redhat.com>
6396 * tracepoint.c (scope_info): Update.
6397 * symtab.c (decode_line_spec): Update.
6398 * python/python.c (gdbpy_decode_line): Update.
6399 * linespec.h (decode_line_1): Update.
6400 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6401 (decode_compound, find_method, symtab_from_filename)
6402 (decode_variable): Likewise.
6403 * cli/cli-cmds.c (edit_command): Update.
6404 (list_command): Update.
6405 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6407 (create_breakpoint): Update.
6408 (until_break_command): Update.
6409 (addr_string_to_sals): Update.
6410 (decode_line_spec_1): Update.
6412 2011-04-04 Tom Tromey <tromey@redhat.com>
6414 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6415 (do_captured_parse_breakpoint): Remove.
6416 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6417 Use TRY_CATCH directly.
6419 2011-04-04 Tom Tromey <tromey@redhat.com>
6421 * symtab.h (free_symtab): Remove.
6422 (forget_cached_source_info_for_objfile): Declare.
6423 * symmisc.c (free_symtab): Remove.
6424 * source.c (forget_cached_source_info_for_objfile): New function.
6425 (forget_cached_source_info): Use it.
6426 * objfiles.c (free_objfile): Simplify check before calling
6427 clear_current_source_symtab_and_line. Call
6428 forget_cached_source_info_for_objfile.
6430 2011-04-04 Tom Tromey <tromey@redhat.com>
6432 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6433 (new_symtab): Don't set `free_code' on symtab.
6434 (new_linetable): Properly handle size==0.
6435 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6436 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6438 * jv-lang.c (struct jv_per_objfile_data): New.
6439 (jv_per_objfile_free): Free the data.
6440 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6441 (get_java_class_symtab): Set the `dict' field on the
6442 jv_per_objfile_data.
6443 (free_class_block): Remove.
6444 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6447 2011-04-04 Tom Tromey <tromey@redhat.com>
6449 * symfile.c (reread_symbols): Update.
6450 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6452 * objfiles.c (allocate_objfile): Update.
6453 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6455 * cp-namespace.c (lookup_symbol_file): Don't call
6456 lookup_possible_namespace_symbol.
6457 (initialize_namespace_symtab, get_possible_namespace_block)
6458 (free_namespace_block, cp_check_possible_namespace_symbols)
6459 (check_possible_namespace_symbols_loop)
6460 (check_one_possible_namespace_symbol)
6461 (lookup_possible_namespace_symbol): Remove.
6462 (maintenance_cplus_namespace): Replace with notice.
6463 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6465 2011-04-04 Tom Tromey <tromey@redhat.com>
6467 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6468 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6469 * symmisc.c (free_symtab): Don't free debugformat.
6470 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6471 (record_debugformat, record_producer): Document.
6472 * buildsym.c (end_symtab): Don't save debugformat and producer
6474 (end_symtab): Don't free debugformat and producer fields.
6475 (record_debugformat): Don't call xstrdup.
6476 (record_producer): Likewise.
6478 2011-04-04 Tom Tromey <tromey@redhat.com>
6480 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6481 (source_line_charpos, source_charpos_line): Remove.
6483 2011-04-04 Tom Tromey <tromey@redhat.com>
6485 * symtab.h (domain_enum): Split in two...
6486 (enum search_domain): New.
6487 (search_symbols): Update.
6488 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6489 redundant declarations.
6490 (search_symbols): Change 'kind' argument to search_domain.
6492 (print_symbol_info): Likewise.
6493 (symtab_symbol_info): Likewise.
6494 * symfile.h (struct quick_symbol_functions)
6495 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6496 <expand_symtabs_matching>: Likewise.
6497 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6498 (expand_symtabs_matching_via_partial): Update.
6499 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6500 (dw2_expand_symtabs_for_function): Update.
6501 * block.h: Moved anonymous enum...
6502 * defs.h (enum block_enum): ... here. Now named.
6504 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6506 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6507 * version.in: Bump version to 7.3.50.20110403-cvs.
6509 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6511 * NEWS: Create a new section for the next release branch.
6512 Rename the section of the current branch, now that it has
6515 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6517 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6518 for "fpscr" in target description.
6520 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6522 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6523 initialize it. Delay HASH initialization. Strip the part after open
6524 parenthesis for languages with qualifiers. Call do_cleanups.
6526 2011-04-01 Tom Tromey <tromey@redhat.com>
6528 * utils.c (report_command_stats): Don't print `-' for negative
6531 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6533 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6534 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6537 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6539 * breakpoint.h (bpdisp_text): Add declaration.
6540 * breakpoint.c (bpdisp_text): Make non-static.
6541 * ada-lang.c: #include "mi/mi-common.h".
6542 (print_it_exception): Rewrite to improve GDB/MI output.
6544 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6546 * arm-tdep.h (struct address_space): Add forward declaration.
6548 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6550 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6551 * arm-tdep.c (arm_override_mode): New global.
6552 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6553 execution mode heuristics.
6554 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6555 second single-step breakpoint if needed, using
6556 arm_insert_single_step_breakpoint.
6557 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6558 ARM execution mode, do not call thumb_get_next_pc_raw.
6559 (arm_get_next_pc): Encode execution mode in return value. Call
6560 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6561 (arm_insert_single_step_breakpoint): New function.
6562 (arm_software_single_step): Call it.
6563 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6564 argument to return execution mode of sigreturn target.
6565 (arm_linux_syscall_next_pc): Use it.
6566 (arm_linux_copy_svc): Update call.
6567 (arm_linux_software_single_step): Call
6568 arm_insert_single_step_breakpoint.
6570 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6572 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6575 2011-03-31 Tom Tromey <tromey@redhat.com>
6577 * varobj.c (update_dynamic_varobj_children): Properly handle
6578 errors from iterator.
6580 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6582 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6583 struct linkage name twice.
6585 2011-03-31 Tom Tromey <tromey@redhat.com>
6587 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6588 missing ">" to message.
6590 2011-03-31 Tom Tromey <tromey@redhat.com>
6592 * varobj.c (instantiate_pretty_printer): Remove duplicate
6595 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6597 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6598 if neither saved value nor register available (e.g. signal frame).
6600 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6602 * macroexp.c (expand): Avoid uninitialized variable
6605 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6607 * breakpoint.c (break_range_command): Fix typo in comment.
6609 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6610 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6612 Implement support for PowerPC BookE ranged breakpoints.
6613 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6614 * breakpoint.h (struct bp_target_info) <length>: New member
6616 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6617 instead of struct breakpoint as argument, and also add ASPACE
6618 and BP_ADDR arguments. Update all callers.
6619 (struct breakpoint_ops) <print_one_detail>: New method.
6620 (struct breakpoint) <addr_string_range_end>: New member variable.
6621 * breakpoint.c (breakpoint_location_address_match): Add function
6623 (insert_bp_location): Set bl->target_info.length.
6624 (breakpoint_here_p): Call breakpoint_location_address_match.
6625 (moribund_breakpoint_here_p): Likewise.
6626 (regular_breakpoint_inserted_here_p): Likewise.
6627 (breakpoint_thread_match): Likewise.
6628 (bpstat_stop_status): Likewise.
6629 (bpstat_check_location): Move call to
6630 breakpoint_ops.breakpoint_hit to the top.
6631 (print_one_breakpoint_location): Call
6632 breakpoint_ops.print_one_detail if available.
6633 (breakpoint_address_match_range): New function.
6634 (breakpoint_location_address_match): Likewise.
6635 (breakpoint_locations_match): Compare the length field of the
6637 (hw_breakpoint_used_count): Count resources used by all locations
6638 in a breakpoint, and use breakpoint_ops.resources_needed if
6640 (breakpoint_hit_ranged_breakpoint): New function.
6641 (resources_needed_ranged_breakpoint): Likewise.
6642 (print_it_ranged_breakpoint): Likewise.
6643 (print_one_ranged_breakpoint): Likewise.
6644 (print_one_detail_ranged_breakpoint): Likewise.
6645 (print_mention_ranged_breakpoint): Likewise.
6646 (print_recreate_ranged_breakpoint): Likewise.
6647 (ranged_breakpoint_ops): New structure.
6648 (find_breakpoint_range_end): New function.
6649 (break_range_command): Likewise.
6650 (delete_breakpoint): Free addr_string_range_end.
6651 (update_breakpoint_locations): Add SALS_END argument. Update
6652 all callers. Calculate breakpoint length if a non-zero SALS_END
6653 is given. Call breakpoint_locations_match instead of
6654 breakpoint_address_match.
6655 (reset_breakpoint): Find SaL of the end of the range if B is a
6657 (_initialize_breakpoint): Register break-range command.
6658 * defs.h (print_core_address): Add function prototype.
6659 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6661 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6662 (ppc_linux_remove_hw_breakpoint): Likewise.
6663 (_initialize_ppc_linux_nat): Initialize
6664 to_ranged_break_num_registers.
6665 * target.c (update_current_target): Add comment about
6666 to_ranged_break_num_registers.
6667 (target_ranged_break_num_registers): New function.
6668 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6670 (target_ranged_break_num_registers): Add function prototype.
6671 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6672 * utils.c (print_core_address): ... here.
6674 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6676 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6677 variable compiler warning.
6679 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6681 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6683 (re_set_breakpoint): ... to here ...
6684 (addr_string_to_sals): ... and here.
6686 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6688 * Makefile.in (SFILES): Add missing C sources.
6689 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6690 Add missing headers.
6692 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6694 * .gitignore: New file.
6696 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6698 * NEWS: Mention new cfi device simulation.
6700 2011-03-29 Tom Tromey <tromey@redhat.com>
6702 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6703 otherwise anonymous types.
6704 (dwarf2_name): Likewise.
6705 * valops.c (value_struct_elt_for_reference): Refine artificial
6706 type logic. Call error if j==-1.
6708 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6710 Fix false GCC warning.
6711 * infcall.c (find_function_addr): Initialize funaddr.
6713 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6715 Fix mingw compilation with --enable-targets=all.
6716 * remote-mips.c (gdb_usleep.h): Include header.
6717 (mips_enter_debug): Use gdb_usleep instead of sleep.
6719 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6721 Support resolution of STT_GNU_IFUNC via breakpoints.
6722 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6723 bp_gnu_ifunc_resolver_return.
6724 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6725 the loop. Support bp_gnu_ifunc_resolver and
6726 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6727 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6729 (bptype_string, print_one_breakpoint_location): Support
6730 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6731 (user_settable_breakpoint): Return true also for
6732 bp_gnu_ifunc_resolver.
6733 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6734 bp_gnu_ifunc_resolver_return.
6735 (set_breakpoint_location_function): New parameter explicit_loc,
6736 describe it. Call find_pc_partial_function_gnu_ifunc with new
6737 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6738 EXPLICIT_LOC is not set.
6739 (set_raw_breakpoint): Set EXPLICIT_LOC for
6740 set_breakpoint_location_function.
6741 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6742 set_breakpoint_location_function.
6743 (mention): Support bp_gnu_ifunc_resolver and
6744 bp_gnu_ifunc_resolver_return.
6745 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6746 set_breakpoint_location_function.
6747 (update_breakpoint_locations): Remove static.
6748 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6749 bp_gnu_ifunc_resolver_return.
6750 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6751 bp_gnu_ifunc_resolver_return.
6752 (update_breakpoint_locations): New declaration.
6753 * elfread.c: Include gdbthread.h and regcache.h.
6754 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6756 (elf_gnu_ifunc_fns): Install them.
6757 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6758 (stub_gnu_ifunc_resolver_return_stop): New functions.
6759 (stub_gnu_ifunc_fns): Install them.
6760 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6761 and gnu_ifunc_resolver_return_stop.
6762 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6764 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6766 STT_GNU_IFUNC reader implementation.
6767 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6768 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6769 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6770 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6771 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6772 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6773 (elf_gnu_ifunc_resolve_addr): New.
6774 (elf_symfile_read): Call elf_rel_plt_read.
6775 (elf_gnu_ifunc_fns): New.
6776 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6777 Install elf_gnu_ifunc_fns.
6778 * infcall.c (find_function_return_type): New function.
6779 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6780 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6781 (stub_gnu_ifunc_resolve_name): New functions.
6782 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6783 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6784 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6786 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6788 Code cleanup for later STT_GNU_IFUNC support.
6789 * infcall.c (find_function_addr): Remove variable code, use explicit
6790 dereferences for it. Move VALUE_TYPE initialization later.
6792 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6794 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6795 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6796 (clear_pc_function_cache): Clear it.
6797 (find_pc_partial_function): Rename to ...
6798 (find_pc_partial_function_gnu_ifunc): ... this function. New
6799 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6800 (find_pc_partial_function): New wrapper for this function.
6801 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6803 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6805 GDB internal type support for STT_GNU_IFUNC.
6806 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6807 (elf_symtab_read): Set mst_text_gnu_ifunc for
6808 BSF_GNU_INDIRECT_FUNCTION.
6809 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6810 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6811 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6812 nodebug_got_plt_symbol.
6813 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6814 (TYPE_GNU_IFUNC): New.
6815 (struct main_type): New field flag_gnu_ifunc.
6816 (struct builtin_type): New field builtin_func_func.
6817 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6818 nodebug_got_plt_symbol.
6819 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6820 (in_gnu_ifunc_stub): New.
6821 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6823 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6824 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6825 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6827 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6828 * symtab.c (search_symbols): Likewise.
6829 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6830 and mst_slot_got_plt.
6831 (in_gnu_ifunc_stub): New declaration.
6833 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6835 Support a ring of related breakpoints.
6836 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6837 other functions, add gdb_assert.
6838 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6839 watchpoint_del_at_next_stop.
6840 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6841 (bpstat_stop_status): Handle ring in related_breakpoint.
6842 (set_raw_breakpoint_without_location): Initialize ring in
6844 (delete_breakpoint): Handle ring in related_breakpoint, use
6845 watchpoint_del_at_next_stop.
6846 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6848 2011-03-28 Tom Tromey <tromey@redhat.com>
6851 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6852 with `language_minimal'.
6854 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6856 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6857 instead of checking for STT_ARM_TFUNC symbol type.
6859 2011-03-25 Tom Tromey <tromey@redhat.com>
6861 * linespec.c (symbol_found): Restore line-based result for
6862 non-LOC_LABEL symbols.
6864 2011-03-25 Kai Tietz <ktietz@redhat.com>
6866 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6867 instead of strcmp for comparison.
6868 (tui_source_is_displayed): Likewise.
6869 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6871 2011-03-24 Mark Wielaard <mjw@redhat.com>
6873 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6875 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6876 (find_partial_die_in_comp_unit): Likewise in comment.
6877 (read_attribute_value): Likewise.
6878 (lookup_die_type): Likewise.
6879 (dwarf_form_name): Likewise.
6880 (dump_die_shallow): Likewise.
6881 (follow_die_ref_or_sig): Likewise.
6883 2011-03-24 Tom Tromey <tromey@redhat.com>
6885 PR breakpoints/11816:
6886 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6887 (decode_compound): Update.
6888 (find_function_symbol): New function.
6889 (decode_dollar): Update.
6890 (decode_label): Add 'function_symbol' parameter. Handle
6891 function-relative labels.
6892 (decode_variable): Update.
6893 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6894 not its line. Set `special_display' and canonical name for
6897 2011-03-24 Tom Tromey <tromey@redhat.com>
6899 * linespec.h (struct linespec_result) <special_display>: New
6901 * breakpoint.h (struct breakpoint) <display_canonical>: New
6903 * breakpoint.c (print_breakpoint_location): Respect
6905 (create_breakpoint_sal): Add 'display_canonical' parameter.
6906 (create_breakpoints_sal): Update.
6907 (create_breakpoint): Update.
6909 2011-03-24 Tom Tromey <tromey@redhat.com>
6911 * symtab.c (decode_line_spec): Update.
6912 * linespec.c (build_canonical_line_spec): Change type of
6914 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6915 (find_method, decode_all_digits, decode_dollar, decode_label)
6916 (symbol_found): Likewise.
6917 (init_linespec_result): New function.
6918 * breakpoint.c (struct captured_parse_breakpoint_args)
6919 <canonical_p>: New field, replaces addr_string_p.
6920 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6922 (parse_breakpoint_sals): Likewise.
6923 (do_captured_parse_breakpoint): Update.
6924 (create_breakpoint): Use struct linespec_result.
6925 (until_break_command): Update.
6926 (breakpoint_re_set_one): Update.
6927 (decode_line_spec_1): Update.
6928 * linespec.h (struct linespec_result): New.
6929 (init_linespec_result): Declare.
6931 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6933 * regcache.c (regcache_raw_read): If the target didn't supply a
6934 given raw register, mark it as unavailable.
6936 2011-03-23 Kai Tietz <ktietz@redhat.com>
6938 * breakpoint.c (clear_command): Use filename_cmp
6939 instead of strcmp for comparison.
6940 * buildsym.c (watch_main_source_file_lossage): Likewise.
6941 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6942 checking just for slash.
6943 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6944 strrchr and filename_cmp instead of strcmp for filenames.
6945 (add_old_header_file): Use filename_cmp
6946 instead of strcmp for comparison.
6947 * exec.c (exec_set_section_address): Likewise.
6948 * macrotab.c (macro_lookup_inclusion): Likewise.
6949 (macro_lookup_inclusion): Likewise.
6950 * elfread.c (_initialize_elfread): Likewise.
6951 (elfstab_offset_sections): Likewise.
6952 (elfstab_offset_sections): Use lbasename instead of
6954 * mdebugread.c (parse_partial_symbols): Likewise.
6955 (arse_partial_symbols): Use filename_(n)cmp instead of
6956 str(n)cmp for comparison.
6957 * minsyms.c (lookup_minimal_symbol): Likewise.
6958 * psymtab.c (read_psymtabs_with_filename): Likewise.
6959 * solib.c (solib_read_symbols): Likewise.
6960 (reload_shared_libraries_1): Likewise.
6961 * symmisc.c (maintenance_print_symbols): Likewise.
6962 * symfile.c (separate_debug_file_exists): Likewise.
6963 (reread_symbols): Likewise.
6964 (find_separate_debug_file_by_debuglink): Likewise.
6965 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6966 * source.c (add_path): Likewise.
6967 * symtab.c (filename_seen): Likewise.
6968 (file_matches): Likewise.
6969 (print_symbol_info): Likewise.
6970 (maybe_add_partial_symtab_filename): Likewise.
6971 (make_source_files_completion_list): Likewise.
6972 * xml-syscall.c (init_sysinfo): Likewise.
6973 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6974 IS_DIR_SEPARATOR for checking for trailing path separator.
6976 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6978 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6979 label abort_expression.
6980 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6981 DWARF_VALUE_OPTIMIZED_OUT.
6983 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6986 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6987 to linkage_name. Invert its value. Update the function comment.
6988 (c_type_print_varspec_suffix): Invert it at the caller.
6989 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6991 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6993 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6994 errors when reading the `stop_pc'.
6995 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6998 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7000 * NEWS: Document gdb.Write stream keyword.
7002 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7005 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7006 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7007 (dwarf2_add_field): Fix new_field->accessibility for
7008 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7010 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7014 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7015 other error classes. Do not print stack trace.
7017 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7019 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7020 (dwarf2_add_field): Fix new_field->accessibility for
7021 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7023 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7025 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7026 encountering a load via a non-SP register.
7028 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7030 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7031 field in returned unwinder.
7033 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7035 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7037 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7039 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7042 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7044 * frame.c (frame_unwind_register): Throw an error if unwinding the
7046 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7047 an unwind stop reason.
7048 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7049 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7050 UNWIND_UNAVAILABLE>: New.
7051 * inline-frame.c (inline_frame_unwind): Install
7052 default_frame_unwind_stop_reason.
7053 * frame-unwind.c: Include "exceptions.h".
7054 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7055 (default_frame_unwind_stop_reason): New.
7056 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7057 (default_frame_unwind_stop_reason): Declare.
7058 (struct frame_unwind) <stop_reason>: New function pointer.
7060 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7061 * dwarf2-frame.c: Include exceptions.h.
7062 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7063 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7064 computing the CFA. If such an error was thrown, set
7065 unavailable_retaddr.
7066 (dwarf2_frame_unwind_stop_reason): New.
7067 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7069 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7070 (dwarf2_signal_frame_unwind): Ditto.
7072 * amd64-tdep.c: Include "exceptions.h".
7073 (struct amd64_frame_cache): New field "base_p".
7074 (amd64_init_frame_cache): Clear it.
7075 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7076 Avoid reading registers with functions that throw if the register
7077 is not necessary to compute the frame base.
7078 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7079 swallowing NOT_AVAILABLE_ERROR.
7080 (amd64_frame_unwind_stop_reason): New.
7081 (amd64_frame_this_id): Don't build a frame id if the frame base
7083 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7084 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7085 base_p if the frame base was computable.
7086 (amd64_sigtramp_frame_unwind_stop_reason): New.
7087 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7088 frame base was unavailable.
7089 (amd64_sigtramp_frame_unwind): Install
7090 amd64_sigtramp_frame_unwind_stop_reason.
7091 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7092 base_p if the frame base was computable.
7093 (amd64_epilogue_frame_unwind_stop_reason): New.
7094 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7095 frame base was unavailable.
7096 (amd64_epilogue_frame_unwind): Install
7097 amd64_epilogue_frame_unwind_stop_reason.
7098 * i386-tdep.c: Include "exceptions.h".
7099 (struct i386_frame_cache): New field "base_p".
7100 (i386_init_frame_cache): Clear it.
7101 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7102 Avoid reading registers with functions that throw if the register
7103 is not necessary to compute the frame base.
7104 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7105 swallowing NOT_AVAILABLE_ERROR.
7106 (i386_frame_unwind_stop_reason): New.
7107 (i386_frame_this_id): Don't build a frame id if the frame base was
7109 (i386_frame_prev_register): Handle unavailable SP.
7110 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7111 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7112 base_p if the frame base was computable.
7113 (i386_epilogue_frame_unwind_stop_reason): New.
7114 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7115 base was unavailable.
7116 (i386_epilogue_frame_unwind): Install
7117 i386_epilogue_frame_unwind_stop_reason.
7118 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7119 base_p if the frame base was computable.
7120 (i386_sigtramp_frame_unwind_stop_reason): New.
7121 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7122 base was unavailable.
7123 (i386_sigtramp_frame_unwind): Install
7124 i386_sigtramp_frame_unwind_stop_reason.
7125 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7126 type's size, not the register's.
7127 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7129 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7130 default_frame_unwind_stop_reason.
7131 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7132 (alpha_heuristic_frame_unwind): Ditto.
7133 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7134 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7135 * avr-tdep.c (avr_frame_unwind): Ditto.
7136 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7138 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7139 * frv-tdep.c (frv_frame_unwind): Ditto.
7140 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7141 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7142 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7143 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7144 (hppa_stub_frame_unwind): Ditto.
7145 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7146 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7147 (ia64_libunwind_frame_unwind)
7148 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7149 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7150 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7151 * m32c-tdep.c (m32c_unwind): Ditto.
7152 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7153 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7154 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7155 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7156 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7157 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7158 * mep-tdep.c (mep_frame_unwind): Ditto.
7159 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7160 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7161 (mips_stub_frame_unwind): Ditto.
7162 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7163 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7164 * mt-tdep.c (mt_frame_unwind): Ditto.
7165 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7166 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7167 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7168 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7169 (s390_sigtramp_frame_unwind): Ditto.
7170 * score-tdep.c (score_prologue_unwind): Ditto.
7171 * sh-tdep.c (sh_frame_unwind): Ditto.
7172 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7173 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7174 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7175 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7176 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7177 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7178 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7179 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7180 (sparc64obsd_trapframe_unwind): Ditto.
7181 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7182 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7183 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7184 * v850-tdep.c (v850_frame_unwind): Ditto.
7185 * vax-tdep.c (vax_frame_unwind): Ditto.
7186 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7187 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7188 * xtensa-tdep.c (xtensa_unwind): Ditto.
7190 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7192 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7193 there's always a frame. Use get_frame_pc_if_available instead of
7194 get_frame_pc, and if there's no PC available, don't look up a
7197 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7199 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7202 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7204 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7207 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7209 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7210 * frame.c (frame_unwind_caller_pc_if_available): New.
7211 * stack.c (frame_info): Handle unavailable PC.
7213 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7215 * frame.c (frame_unwind_pc): Rename to ...
7216 (frame_unwind_pc_if_available): ... this. New `pc' output
7217 parameter. Change return type to int. Gracefully handle
7218 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7219 happened, or 1 otherwise.
7220 (frame_unwind_pc): Reimplement on top of
7221 frame_unwind_pc_if_available.
7222 (get_frame_func): Rename to ...
7223 (get_frame_func_if_available): New `pc' output parameter. Change
7224 return type to int. Gracefully handle the PC not being available.
7225 (get_frame_func): Reimplement on top of
7226 get_frame_func_if_available.
7227 (select_frame): Handle the PC being unavailable.
7228 (get_prev_frame): Handle the PC being unavailable.
7229 (get_frame_pc_if_available): New.
7230 (get_frame_address_in_block_if_available): New.
7231 (find_frame_sal): Handle the frame PC not being available.
7232 * frame.h (get_frame_pc_if_available): Declare.
7233 (get_frame_address_in_block_if_available): Declare.
7234 (get_frame_func_if_available): Declare.
7235 * stack.c (print_frame_info): Handle the PC being unavailable.
7236 (find_frame_funname): Ditto.
7237 (print_frame): Handle the PC being unavailable.
7238 (get_frame_language): Ditto.
7239 * blockframe.c (get_frame_block): Ditto.
7240 * macroscope.c (default_macro_scope): Ditto.
7241 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7243 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7245 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7246 NOT_AVAILABLE_ERROR when evaluating the location expression.
7248 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7250 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7251 returning that the register piece is unavailable/optimized out.
7252 (write_pieced_value): Handle get_frame_register_bytes returning
7253 that the register piece is unavailable/optimized out when doing a
7254 read-modify write of a bitfield.
7255 * findvar.c (value_from_register): Handle get_frame_register_bytes
7256 returning that the register piece is unavailable/optimized out.
7257 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7258 and `unavailablep'. Throw error on bad debug info. Use
7259 frame_register instead of frame_register_read, to fill in the new
7261 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7263 * valops.c: (value_assign): Adjust, and handle
7264 get_frame_register_bytes failing.
7265 * spu-tdep.c: Include exceptions.h.
7266 (spu_software_single_step): Adjust, and handle
7267 get_frame_register_bytes failing.
7268 (spu_get_longjmp_target): Ditto.
7269 * gdbarch.sh (register_to_value): Change to return int. New
7270 parameters `optimizedp' and `unavailablep'.
7271 * gdbarch.h, gdbarch.c: Regenerate.
7272 * i386-tdep.c (i386_register_to_value): Adjust to new
7273 gdbarch_register_to_value interface.
7274 * i387-tdep.c (i387_register_to_value): Ditto.
7275 * i387-tdep.h (i387_register_to_value): Ditto.
7276 * alpha-tdep.c (alpha_register_to_value): Ditto.
7277 * ia64-tdep.c (ia64_register_to_value): Ditto.
7278 * m68k-tdep.c (m68k_register_to_value): Ditto.
7279 * mips-tdep.c (mips_register_to_value): Ditto.
7280 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7282 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7284 * findvar.c (value_of_register): Mark the value as unavailable, if
7285 the register is unavailable.
7286 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7287 (frame_register): New `unavailablep' parameter.
7288 (frame_register_read): Update comment.
7289 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7290 Set it if the register is unavailable. If the register is
7291 unavailable, clear the output buffer.
7292 (frame_register): New `unavailablep' parameter. Pass it down.
7293 (frame_unwind_register): Adjust.
7294 (put_frame_register): Adjust.
7295 (frame_register_read): Adjust. Also return false if the register
7297 (frame_register_unwind_location): Adjust.
7298 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7299 is unavailable, mark the value accordingly.
7300 * stack.c (frame_info): Handle unavailable registers.
7302 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7304 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7305 simplify, using regcache_cooked_read.
7307 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7309 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7310 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7311 (regcache_raw_read_unsigned, regcache_raw_read_part)
7312 (regcache_cooked_read, regcache_cooked_read_signed)
7313 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7314 (regcache_cooked_read_ftype): Change return to enum
7316 * regcache.c: Include exceptions.h
7317 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7318 (do_cooked_read): Change return to enum register_status. Always
7319 forward to regcache_cooked_read.
7320 (regcache_raw_read): Change return to enum register_status. If
7321 the register is not REG_VALID, memset the buffer. Return the
7323 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7324 return the register's status.
7325 (regcache_raw_read_unsigned): Ditto.
7326 (regcache_cooked_read): Change return to enum register_status.
7327 Assert that with read-only regcaches, the register's status must
7328 be known. If the regcache is read-only, and the register is not
7329 REG_VALID, memset the buffer. Return the register's status.
7330 (regcache_cooked_read_signed): Change return to enum
7331 register_status. Handle non-REG_VALID registers and return the
7333 (regcache_cooked_read_unsigned): Change return to enum
7334 register_status. Handle non-REG_VALID registers and return the
7336 (regcache_xfer_part, regcache_raw_read_part)
7337 (regcache_cooked_read_part): Change return to enum
7338 register_status. Return the register's status.
7339 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7341 (regcache_dump): Handle unavailable cooked registers.
7342 * frame.c (do_frame_register_read): Adjust interface to match
7343 regcache_cooked_read_ftype.
7344 * gdbarch.sh (pseudo_register_read): Change return to enum
7346 * gdbarch.h, gdbarch.c: Regenerate.
7348 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7350 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7351 register_status. If reading a raw register indicates the raw
7352 register is not valid, return the raw register's status,
7353 otherwise, return REG_VALID.
7354 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7355 register_status. Handle non-REG_VALID raw registers and return
7356 the register's status.
7357 * arm-tdep.c (arm_neon_quad_read)
7358 (arm_pseudo_read): Change return to enum register_status. Handle
7359 non-REG_VALID raw registers and return the register's status.
7360 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7361 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7362 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7363 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7364 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7366 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7367 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7368 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7369 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7370 (m32c_pseudo_register_read): Change return to enum
7371 register_status. Adjust.
7372 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7373 enum register_status. Return the register's status.
7374 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7375 register_status. Return the register's status.
7376 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7377 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7378 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7379 * rs6000-tdep.c (move_ev_register_func): New typedef.
7380 (e500_move_ev_register): Use it. Change return to enum
7381 register_status. Return the register's status.
7382 (do_regcache_raw_read): New function.
7383 (do_regcache_raw_write): New function.
7384 (e500_pseudo_register_read): Change return to enum
7385 register_status. Return the register's status. Use
7386 do_regcache_raw_read.
7387 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7388 (dfp_pseudo_register_read): Change return to enum register_status.
7389 Return the register's status.
7390 (vsx_pseudo_register_read): Ditto.
7391 (efpr_pseudo_register_read): Ditto.
7392 (rs6000_pseudo_register_read): Ditto.
7393 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7394 register_status. Return the register's status.
7395 * sh64-tdep.c (pseudo_register_read_portions): New function.
7396 (sh64_pseudo_register_read): Change return to enum
7397 register_status. Use pseudo_register_read_portions. Return the
7399 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7400 register_status. Return the register's status.
7401 * sh-tdep.c (pseudo_register_read_portions): New function.
7402 (sh_pseudo_register_read): Change return to enum register_status.
7403 Use pseudo_register_read_portions. Return the register's status.
7404 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7405 enum register_status. Return the register's status.
7406 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7407 * spu-tdep.c (spu_pseudo_register_read_spu)
7408 (spu_pseudo_register_read): Ditto.
7409 * xtensa-tdep.c (xtensa_register_read_masked)
7410 (xtensa_pseudo_register_read): Ditto.
7411 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7413 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7415 * python/py-value.c (valpy_getitem): Fix formatting of error function
7418 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7420 ARI fixes: Add missing internationalization markups throughout
7422 * darwin-nat-info.c: Ditto.
7425 * mi/mi-main.c: Ditto.
7427 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7429 ARI fixes: Add missing internationalization markups throughout
7432 * cp-name-parser.y: Ditto.
7435 * objc-exp.y: Ditto.
7438 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7440 ARI fixes: Messages should have no trailing new lines.
7441 * darwin-nat.c (mach_check_error): Remove trailing new line from
7442 warning function call message.
7443 * record.c (bfdcore_read): Idem for error call.
7445 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7447 * common/signals.c (target_signal_from_host): Add _ markup to error
7448 function call message.
7449 (target_signal_to_host): Add _ markup and remove trailing new line
7450 from warning call message.
7451 (target_signal_from_command): Add _ markup to error function call
7454 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7458 * python/python.c (gdbpy_write): Accept a stream argument and
7459 operate to the appropriate stream.
7460 (gdbpy_flush): Likewise.
7461 (_initialize_python): Add stream constants.
7462 (finish_python_initialization): Add GdbOutputErrorFile class.
7464 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7466 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7468 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7470 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7471 to store_signed_integer. Add debug message when relocating CALL
7472 instructions. Fix formatting of debug message.
7473 * i386-tdep.c (i386_relocate_instruction): Ditto.
7475 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7477 * target.h (struct target_ops): Remove to_lookup_symbol field.
7478 (target_lookup_symbol): Delete macro.
7479 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7480 (update_current_target, setup_target_debug): Remove handling
7481 of to_lookup_symbol target_ops field.
7482 * ada-tasks.c (get_known_tasks_addr): Remove use of
7483 target_lookup_symbol.
7484 * coffread.c (coff_symtab_read): Likewise.
7485 * dbxread.c (read_dbx_symtab): Ditto.
7487 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7490 * configure.ac: Add getthrds declaration check.
7491 * configure, config.in: Regenerate.
7492 * aix-thread.c (getthrds): Declare only if not already declared
7493 in procinfo.h. More declaration out of get_signaled_thread to
7496 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7498 * python/py-symtab.c: Populate symtab_object_methods,
7500 (stpy_is_valid): New function.
7501 (salpy_is_valid): Ditto.
7502 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7503 (sympy_is_valid): New function.
7504 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7505 (objfpy_is_valid): New function.
7506 * python/py-inferior.c: Populate inferior_object_methods.
7507 (infpy_is_valid): New function.
7508 * python/py-infthread.c: Populate thread_object_methods.
7509 (thpy_is_valid): New function.
7510 * python/py-block.c: Declare block_object_methods. Populate. Declare
7511 block_iterator_object_methods. Populate.
7512 (blpy_is_valid): New function.
7513 (blpy_iter_is_valid): Ditto.
7515 2011-03-16 Keith Seitz <keiths@redhat.com>
7517 * linespec.c (find_methods): Canonicalize NAME before looking
7519 (name_end): New function.
7520 (keep_name_info): New function.
7521 (decode_line_1): Use keep_name_info.
7522 (decode_compound): Likewise.
7523 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7524 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7527 * linespec.c (locate_first_half): Keep overload information, too.
7528 (decode_compound): Use a string to represent break characters
7530 If P points to a break character, do not increment it.
7531 For C++ and Java, keep overload information and relevant keywords.
7532 If we cannot find a symbol, search the minimal symbols.
7535 * linespec.c (decode_compound): Rename SAVED_ARG to
7537 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7539 Pass a valid block to lookup_symbol.
7540 (lookup_prefix_sym): Likewise.
7541 (find_method): Construct search name based on SYM_CLASS instead
7543 * psymtab.c (lookup_partial_symbol): Add language parameter.
7544 (lookup_symbol_aux_psymtabs): Likewise.
7545 Don't assume that the psymtab we found was the right one. Search
7546 for the desired symbol in the symtab to be certain.
7547 (psymtab_search_name): New function.
7548 (lookup_partial_symbol): Use psymtab_search_name.
7549 Add language parameter.
7550 (read_symtabs_for_function): Add language parameter and pass to
7551 lookup_partial_symbol.
7552 (find_symbol_file_from_partial): Likewise.
7554 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7557 * dwarf2read.c (noop_record_line): New function.
7558 (dwarf_decode_lines): Ignore line tables for GCd functions.
7560 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7562 Fix ARI warnings about new lines at the end of messages, which
7563 are unneeded as there is a new line added at the end of the message
7565 * darwin-nat.c (darwin_stop_inferior): Ditto.
7566 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7567 * dfp.c (decimal_to_number): Ditto.
7568 * exec.c (print_section_info): Ditto.
7569 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7570 * osdata.c (get_osdata): Ditto.
7571 * record.c (bfdcore_write): Ditto.
7572 * remote-mips.c (mips_readchar): Ditto.
7573 * remote.c (read_ptid): Ditto.
7574 * ser-mingw.c (ser_windows_raw): Ditto.
7575 * tracepoint.c (add_local_symbols): Ditto.
7576 * windows-nat.c (fake_create_process): Ditto.
7578 2011-03-16 Tom Tromey <tromey@redhat.com>
7580 * tracepoint.c (stop_tracing): Don't declare.
7581 * event-top.c (after_char_processing_hook): Add `(void)'.
7583 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7585 * NEWS: Add Parameter sub-classing description.
7587 2011-03-16 Kai Tietz <ktietz@redhat.com>
7589 * MAINTAINERS: Update my e-mail address.
7591 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7593 * MAINTAINERS: Add myself for write after approval privileges.
7595 2011-03-15 Michael Snyder <msnyder@vmware.com>
7597 * frame.c (find_frame_sal): Assert sym is not null.
7599 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7601 * objc-lang.c (selectors_info): Check strchr for null result.
7603 * stabsread.c (define_symbol): Guard against bad stabstring input.
7605 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7607 Remove trailing spaces and tabulations from pascal language
7612 p-valprint.c: Ditto.
7614 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7616 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7617 than LOW. Comment it.
7618 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7619 HIGHPC not strictly higher than LOWPC.
7621 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7623 Fix formatting of function declarations returning a pointer in
7625 * varobj.c (varobj_add_child): Ditto.
7626 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7627 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7629 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7631 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7632 for the "generic" vector ABI used with GCC 4.3 and later.
7633 (ppc64_sysv_abi_return_value): Likewise.
7635 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7637 * infcall.c (call_function_by_hand): Function return value is
7638 always a non_lval, even when using struct_return.
7640 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7642 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7643 (map_display_numbers): New.
7644 (do_delete_display): New.
7645 (undisplay_command): Use map_display_numbers.
7646 (do_enable_disable_display): New.
7647 (enable_disable_display_command): New function.
7648 (enable_display): Delete.
7649 (enable_display_command): New.
7650 (disable_display_command): Reimplement.
7651 (_initialize_printcmd): Adjust "enable display" command to use
7652 `enable_display_command' as callback.
7654 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7656 * NEWS: Add Python breakpoint 'stop' operation.
7658 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7660 * NEWS: Delete duplicate entry. Fix typo.
7662 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7664 Fix ARI warning about function names in first column.
7665 Put prototype declaration on same line as return type.
7666 * objc-exp.y: Ditto.
7668 * python/py-stopevent.h: Ditto.
7669 For long function names, split parameters to
7670 allow function name on same line as return type.
7671 * solib-pa64.c: Ditto.
7674 For long function declaration, use single line.
7675 * hppa-tdep.h: Ditto.
7676 * inferior.h: Ditto.
7678 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7680 * python/python.h: Declare gdbpy_should_stop and
7681 gdbpy_breakpoint_has_py_cond.
7682 * python/python.c: Add python.h to includes. Remove python.h from
7683 HAVE_PYTHON definition
7684 (gdbpy_should_stop): New dummy function.
7685 (gdbpy_breakpoint_has_py_cond): New dummy function.
7686 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7687 sub-classing capabilities.
7688 (gdbpy_should_stop): New function.
7689 (gdbpy_breakpoint_has_py_cond): New function.
7690 (local_setattro): New function.
7691 * breakpoint.c (condition_command): Add check for Python 'stop'
7693 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7694 operation function as part of stop/continue tests.
7696 2011-03-14 Tom Tromey <tromey@redhat.com>
7699 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7700 (needs_frame_dwarf_call): Likewise.
7702 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7704 Fix ARI warning about functions without parameters that do not
7706 * breakpoint.c (all_tracepoints): Replace () by (void).
7707 * f-exp.y (match_string_literal): Ditto.
7709 * m2-exp.y (yylex): Ditto.
7710 * mep-tdep.c (current_me_module): Ditto.
7711 (current_options): Ditto.
7712 (current_cop_data_bus_width): Ditto.
7713 (current_cr_names): Ditto.
7714 (current_cr_is_float): Ditto.
7715 (current_ccr_names): Ditto.
7716 * objc-exp.y (yylex): Ditto.
7717 * p-exp.y (yylex): Ditto.
7718 * remote.c (send_interrupt_sequence): Ditto.
7719 * tracepoint.c (current_trace_status): Ditto.
7720 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7721 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7723 2011-03-11 Michael Snyder <msnyder@vmware.com>
7725 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7726 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7727 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7728 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7729 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7731 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7732 (delete_async_event_handler): Ditto.
7734 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7736 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7738 * top.c (set_verbose): Assert showcmd was found.
7740 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7742 * xtensa-tdep.c (warning_once): Correct style issues.
7744 2011-03-11 Yao Qi <yao@codesourcery.com>
7746 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7748 2011-03-11 Andreas Schwab <schwab@redhat.com>
7750 * common/aclocal.m4: Remove.
7752 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7754 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7755 (xtensa_write_register, xtensa_read_register): Likewise.
7756 (xtensa_hextochar): Removed.
7757 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7759 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7761 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7762 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7763 (xtensa_alloc_frame_cache): Add initialization for new fields.
7764 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7765 (warning_once): New function.
7766 (xtensa_insn_kind): New item c0opc_and.
7767 (call0_classify_opcode): Add the case for AND instruction.
7768 (call0_track_op): Change arguments. New local variable litbase.
7769 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7770 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7772 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7773 (call0_analyze_prologue): Update the comments. Change arguments.
7774 Add the variety of updates to handle extended prologues, which now can
7775 conduct dynamic stack adjustments.
7776 (call0_frame_cache): Likewise.
7777 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7778 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7780 2011-03-10 Michael Snyder <msnyder@vmware.com>
7782 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7783 (cmd_qtframe): Ditto.
7784 (cmd_qtbuffer): Ditto.
7785 (cmd_bigqtbuffer): Ditto.
7787 2011-03-10 Tom Tromey <tromey@redhat.com>
7789 * tracepoint.c (trace_actions_command): Update.
7790 * thread.c (thread_apply_command): Update.
7791 * reverse.c (delete_bookmark_command): Update.
7792 (bookmarks_info): Update.
7793 * printcmd.c (undisplay_command): Update.
7794 * memattr.c (mem_enable_command): Update.
7795 (mem_disable_command): Update.
7796 (mem_delete_command): Update.
7797 * inferior.c (detach_inferior_command): Update.
7798 (kill_inferior_command): Update.
7799 (remove_inferior_command): Update.
7800 * cli/cli-utils.h (struct get_number_or_range_state): New.
7801 (init_number_or_range): Declare.
7802 (get_number_or_range): Update.
7803 * cli/cli-utils.c (init_number_or_range): New function.
7804 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7806 (number_is_in_list): Update.
7807 * breakpoint.h (get_tracepoint_by_number): Update.
7808 * breakpoint.c (map_breakpoint_numbers): Update for change to
7809 get_number_or_range.
7810 (find_location_by_number): Use get_number, not
7811 get_number_or_range.
7812 (trace_pass_set_count): New function.
7813 (trace_pass_command): Update for change to get_number_or_range.
7815 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7818 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7820 * python/py-param.c (add_setshow_generic): Add set/show callback
7821 parameters. Register Python object context.
7822 (get_show_value): New function.
7823 (get_set_value): New function.
7824 (call_doc_function): New function.
7825 (get_doc_string): Move behind get_show_value/get_set_value.
7827 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7829 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7831 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7833 * xtensa-tdep.c (xtensa_read_register): Add comment.
7834 (xtensa_write_register): Likewise.
7835 (xtensa_hextochar): Add comment and update to match coding conventions.
7836 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7837 (execute_l32e, execute_s32e, execute_code): Update comments.
7838 (xtensa_exception_handler_t): Update to match coding conventions.
7839 (xtensa_insn_kind): Likewise.
7841 2011-03-09 Michael Snyder <msnyder@vmware.com>
7843 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7845 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7847 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7849 2011-03-09 Tom Tromey <tromey@redhat.com>
7851 * thread.c (restore_selected_frame): Handle frame_level == -1.
7852 (make_cleanup_restore_current_thread): Use
7853 get_selected_frame_if_set.
7854 * frame.h (get_selected_frame_if_set): Declare.
7855 * frame.c (get_selected_frame_if_set): New function.
7857 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7859 * cli/cli-cmds.c (shell_escape): Use lbasename.
7860 * coffread.c (coff_start_symtab): Constify parameter.
7861 (complete_symtab): Constify `name' parameter.
7862 (coff_symtab_read): Constify `filestring' local.
7863 (coff_getfilename): Constify return and `result' local.
7865 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7866 * linux-fork.c (info_checkpoints_command): Use lbasename.
7867 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7868 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7869 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7870 * procfs.c (procfs_make_note_section): Use lbasename.
7871 * tui/tui-io.c (printable_part): Constity return and parameter.
7873 (print_filename): Constify parameters, and local `s'.
7874 (tui_rl_display_match_list): Constify local `temp'.
7876 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7879 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7880 Fix DWARF-3+ DW_AT_accessibility default assumption.
7881 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7882 cu->header.version >= 3.
7884 2011-03-09 Yao Qi <yao@codesourcery.com>
7886 * common/Makefile.in: Remove.
7887 * common/configure: Remove.
7888 * common/configure.ac: Remove.
7890 2011-03-09 Yao Qi <yao@codesourcery.com>
7893 2011-02-11 Yao Qi <yao@codesourcery.com>
7895 * common/Makefile.in: Add copyright header.
7897 2011-02-11 Yao Qi <yao@codesourcery.com>
7899 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7901 * configure.ac: Add common to sub dir.
7902 * configure: Regenerate.
7904 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7906 * xtensa-tdep.c (call0_ret): New function.
7907 (xtensa_skip_prologue): Speed up analysis.
7909 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7911 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7912 while executing MI command -data-list-changed-registers.
7914 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7916 * xtensa-tdep.c (xtensa_read_register): New function.
7917 (xtensa_write_register): New function.
7918 (xtensa_find_register_by_name): New function.
7919 (xtensa_windowed_frame_cache): Update comments in type description.
7920 (xtensa_frame_cache): Likewise.
7921 (xtensa_window_interrupt_insn): New function.
7922 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7923 (xtensa_insn_kind): Add new instructions.
7924 (rwx_special_register): New function.
7925 (call0_classify_opcode): Add new instructions to the analysis.
7926 (a0_saved, a7_saved, a11_saved): New variables.
7927 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7928 (execute_l32e): New function.
7929 (execute_s32e): New function.
7930 (xtensa_exception_handler_t): New type.
7931 (execute_code): New function.
7932 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7933 analysis for Xtensa Window Exception handlers.
7935 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7937 * xtensa-tdep.c (TX_PS): New.
7938 (windowing_enabled): Update to count for Call0 ABI.
7939 (xtensa_hextochar): New.
7940 (xtensa_init_reggroups): Make algorithm generic.
7941 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7943 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7945 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7947 2011-03-08 Michael Snyder <msnyder@vmware.com>
7949 * i386-tdep.c (i386_follow_jump): Check return value of
7951 (i386_analyze_struct_return): Ditto.
7952 (i386_skip_probe): Ditto.
7953 (i386_match_insn): Ditto.
7954 (i386_skip_noop): Ditto.
7955 (i386_analyze_frame_setup): Ditto.
7956 (i386_analyze_register_saves): Ditto.
7957 (i386_skip_prologue): Ditto.
7958 (i386_skip_main_prologue): Ditto.
7960 * target.c (read_whatever_is_readable): Fix memory leak.
7962 * i386-tdep.c (i386_process_record): Document fall through.
7964 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7966 Fix DWARF-3+ DW_AT_accessibility default assumption.
7967 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7968 cu->header.version >= 3.
7970 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7972 * remote.c (remote_check_symbols): Skip if the target has no
7975 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7977 * target.c (read_whatever_is_readable): Reformat comment,
7978 with a minor typo fix. Minor reformatting of the code.
7980 2011-03-08 Yao Qi <yao@codesourcery.com>
7982 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7983 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7984 Use cached result instead of calling displaced_in_arm_mode again.
7985 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7986 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7987 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7988 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7989 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7990 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7991 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7992 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7993 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7994 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7995 (arm_catch_kernel_helper_return): Likewise.
7996 * gdb/arm-tdep.h : Update function declarations.
7998 2011-03-07 Michael Snyder <msnyder@vmware.com>
8000 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8002 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8004 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8006 * elfread.c (elf_symtab_read): Stop memory leak.
8008 * main.c (captured_main): Fix memory leak.
8010 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8012 * ada-lang.c (compare_names): Call is_name_suffix with string1
8015 2011-03-07 Tom Tromey <tromey@redhat.com>
8017 * xcoffread.c (xcoff_sym_fns): Update.
8018 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8019 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8020 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8021 (symbol_file_add_with_addrs_or_offsets): Likewise.
8022 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8023 * somread.c (som_sym_fns): Update.
8024 * psymtab.h (require_partial_symbols): Declare.
8025 * psymtab.c (require_partial_symbols): New function.
8026 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8027 (ALL_OBJFILE_PSYMTABS): Undef.
8028 (ALL_PSYMTABS): Move from psympriv.h.
8029 (lookup_partial_symtab, find_pc_sect_psymtab)
8030 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8031 (find_last_source_symtab_from_partial)
8032 (forget_cached_source_info_partial)
8033 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8034 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8035 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8036 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8037 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8038 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8039 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8040 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8041 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8043 * mipsread.c (ecoff_sym_fns): Update.
8044 * machoread.c (macho_sym_fns): Update.
8045 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8046 (read_psyms): New function.
8047 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8048 (elf_sym_fns_lazy_psyms): New global.
8049 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8050 dwarf2_build_psymtabs.
8051 * dbxread.c (aout_sym_fns): Update.
8052 * coffread.c (coff_sym_fns): Update.
8054 2011-03-07 Tom Tromey <tromey@redhat.com>
8056 * infrun.c (print_exited_reason): Include inferior id and pid in
8059 2011-03-07 Tom Tromey <tromey@redhat.com>
8061 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8063 (target_has_execution_1): Update.
8064 (target_has_execution_current): Declare.
8065 (target_has_execution): Call target_has_execution_current.
8066 (default_child_has_execution): Update.
8067 * target.c (default_child_has_execution): Add 'the_ptid'
8069 (target_has_execution_1): Likewise.
8070 (target_has_execution_current): New function.
8071 (add_target): Update.
8072 (init_dummy_target): Update.
8073 * remote-m32r-sdi.c (m32r_has_execution): New function.
8074 (init_m32r_ops): Use it.
8075 * record.c (record_core_has_execution): Now static. Add
8076 'the_ptid' parameter.
8077 * inferior.c (have_live_inferiors): Don't save current thread.
8078 Use target_has_execution_1.
8080 2011-03-07 Yao Qi <yao@codesourcery.com>
8082 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8084 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8086 * elfread.c (elf_symtab_read): Minor reformatting.
8088 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8090 * objc-lang.c (selectors_info): Minor reformatting.
8092 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8094 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8096 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8097 Michael Snyder <msnyder@vmware.com>
8099 * ada-valprint.c (ada_val_print_array): Move the declaration of
8100 "byte_order" and "elttype" inside the block where these variables
8101 are actually used. Remove some special handling for the case
8102 where "elttype" and "eltlen" are null. Replace by a comment
8103 and a couple of assertion checks.
8105 2011-03-05 Michael Snyder <msnyder@vmware.com>
8107 * source.c (add_path): Replace semicolon at end of block.
8108 * dwarf2expr.c (execute_stack_op): Ditto.
8110 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8112 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8113 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8114 (bfin-*-*): Likewise.
8116 2011-03-05 Michael Snyder <msnyder@vmware.com>
8118 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8119 * mdebugread.c (parse_symbol): Ditto.
8120 * parse.c (parse_exp_in_context): Ditto.
8121 * source.c (add_path): Ditto.
8122 * utils.c (gnu_debuglink_crc32): Ditto.
8123 * varobj.c (variable_language): Ditto.
8125 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8127 2011-03-04 Michael Snyder <msnyder@vmware.com>
8129 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8131 * symfile.c (simple_overlay_update): Check for null return value
8132 from lookup_minimal_symbol.
8134 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8136 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8138 * eval.c (parse_and_eval_address_1): Remove function.
8139 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8140 instead of parse_and_eval_address_1.
8141 * value.h (parse_and_eval_address_1): Remove prototype.
8143 2011-03-04 Michael Snyder <msnyder@vmware.com>
8145 * remote.c (putpkt_binary): Document that case stmt falls through.
8147 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8149 * breakpointc (print_it_typical): Move NULL check from here...
8150 (print_bp_stop_message): ... to here.
8152 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8154 * breakpoint.c (enable_command): Use break instead of continue,
8155 and fill in a missing break.
8156 (disable_command): Ditto.
8158 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8160 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8161 (terminal_save_ours): Remove misleading comment.
8162 (inflow_inferior_data_cleanup): Free ttystate.
8163 (inflow_inferior_exit): Likewise.
8164 (copy_terminal_info): Copy ttystate.
8166 * serial.c (serial_copy_tty_state): New function.
8167 * serial.h (serial_copy_tty_state): Add prototype.
8168 (struct serial_ops): Add copy_tty_state callback.
8169 * ser-base.c (ser_base_copy_tty_state): New function.
8170 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8171 * ser-go32.c (dos_copy_tty_state): New function.
8172 (dos_ops): Install copy_tty_state callback.
8173 * ser-mingw.c (_initialize_ser_windows): Likewise.
8174 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8175 * ser-unix.c (hardwire_copy_tty_state): New function.
8176 (_initialize_ser_hardwire): Install it.
8178 2011-03-04 Michael Snyder <msnyder@vmware.com>
8180 * breakpoint.c (create_breakpoint): Add missing break statement.
8182 Reverting this patch:
8183 * infcall.c (call_function_by_hand): Add break statements for lint.
8185 Reverting this patch:
8186 * cli/cli-script.c (script_from_file): Add break for lint.
8188 2011-03-04 Michael Snyder <msnyder@vmware.com>
8190 * solib.c (reload_shared_libraries_1): Close memory leak.
8192 2011-03-03 Tom Tromey <tromey@redhat.com>
8195 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8198 2011-03-03 Michael Snyder <msnyder@vmware.com>
8200 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8201 fields of struct 'st' to zero.
8203 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8204 sal.pspace before calling set_current_source_symtab_and_line.
8206 2011-03-03 Yao Qi <yao@codesourcery.com>
8208 * Makefile.in (configure-common): Remove. Let Makefile
8209 in dir common to rebuild itself.
8210 (common/Makefile): Likewise.
8212 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8214 * utils.c (parse_escape): Add i18n markup in error message.
8216 2011-03-03 Yao Qi <yao@codesourcery.com>
8218 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8220 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8221 (displaced_write_reg, displaced_read_reg): Likewise.
8222 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8223 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8224 (cleanup_branch): Replace magic number 14 and 15 with
8225 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8227 2011-03-02 Michael Snyder <msnyder@vmware.com>
8229 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8231 * cli/cli-script.c (script_from_file): Add break for lint.
8233 * mdebugread.c (parse_partial_symbols): Fix indent.
8235 * target-descriptions.c (tdesc_gdb_type): No need to call
8236 xstrdup, callee saves a copy.
8238 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8240 * infcall.c (call_function_by_hand): Add break statements for lint.
8242 * utils.c (parse_escape): Escape the escape char.
8244 * python/py-inferior.c (build_inferior_list): Error out if
8245 PyList_Append fails.
8246 (gdbpy_inferiors): Error out if build_inferior_list fails.
8248 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8251 * record.c (record_restore): Move printf to before error return.
8253 2011-03-02 Yao Qi <yao@codesourcery.com>
8255 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8256 is_thumb and insn_size.
8257 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8258 on both ARM and Thumb mode.
8259 (arm_process_displaced_insn): Set is_thumb and insn_size.
8260 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8261 (arm_displaced_step_fixup): Likewise.
8263 2011-03-01 Michael Snyder <msnyder@vmware.com>
8265 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8267 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8269 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8271 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8273 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8276 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8277 which shadows function parameter.
8279 * tracepoint.c (create_tsv_from_upload): Superfluous call
8280 to xstrdup. Callee already calls xstrdup.
8282 * linespec.c (decode_line_1): Remove unnecessary null check.
8284 * tracepoint.c (scope_info): Fix mem leak, remove underused
8287 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8288 superfluous null check.
8290 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8291 (value_of_builtin_frame_fp_reg): Ditto.
8293 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8295 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8298 * linespec.c (decode_line_1): Check for null before dereference.
8300 * reverse.c (record_restore): Move null-check to before pointer
8303 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8305 * objc-lang.c (selectors_info): Add explanitory comment.
8306 (classes_info): Ditto.
8308 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8310 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8311 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8312 versions of the trampoline. Handle Thumb vs. ARM addresses.
8313 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8314 (arm_linux_init_abi): Install it.
8315 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8316 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8318 2011-02-28 Michael Snyder <msnyder@vmware.com>
8320 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8321 a little bigger, to avoid possibility of an overflow.
8323 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8324 buffers a little bigger, to avoid possibility of an overflow.
8326 * coffread.c (coff_getfilename): Add check to avoid overflow.
8328 * objc-lang.c (selectors_info): Add a small safety margin to
8330 (classes_info): Error out on too long REGEXP.
8332 * infrun.c (handle_inferior_event): Remove unused function call.
8334 * fork-child.c (fork_inferior): Remove ifdef'd code and
8337 * linux-thread-db.c (attach_thread): Discard unused value.
8339 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8341 * remote.c (remote_get_noisy_reply): Discard unused value.
8342 (remote_vcont_resume): Ditto.
8343 (remote_stop_ns): Ditto.
8345 * linespec.c (decode_objc): Delete unused variable.
8347 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8349 * dwarf2read.c (add_partial_symbol): Discard unused values.
8350 (read_base_type): Delete unused variable.
8352 * dbxread.c (read_dbx_symtab): Discard unused value.
8354 * eval.c (evaluate_subexp_standard): Delete unused variable,
8355 and discard unused values.
8357 * infcmd.c (_initialize_infcmd): Discard unused values.
8359 * stabsread.c (rs6000_builtin_type): Missing break statement.
8361 * dbxread.c (process_one_symbol): Discard unused value.
8363 * coffread.c (coff_end_symtab): Delete unused variable.
8365 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8366 (dwarf2_add_typedef): Delete unused variable.
8367 (read_namespace): Ditto.
8368 (dwarf_decode_macros): Ditto.
8370 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8372 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8374 * p-valprint.c (pascal_val_print): Discard unused value.
8376 * utils.c (nquery): Call va_end before return;
8380 * proc-service.c (ps_plog): Call va_end before return.
8382 2011-02-28 Tom Tromey <tromey@redhat.com>
8384 * python/python.c (gdbpy_value_cst): New global.
8385 (_initialize_python): Initialize it.
8386 * python/python-internal.h (gdbpy_value_cst): Declare.
8387 * python/py-value.c (convert_value_from_python): Use
8390 2011-02-28 Michael Snyder <msnyder@vmware.com>
8392 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8394 * breakpoint.c (catch_syscall_completer): Free malloced list.
8396 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8398 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8399 (lval_func_check_synthetic_pointer): Ditto.
8400 (lval_func_free_closure): Fix use-after-free.
8402 2011-02-28 Tom Tromey <tromey@redhat.com>
8404 * psymtab.c (expand_partial_symbol_tables): Use
8405 ALL_OBJFILE_PSYMTABS.
8407 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8409 * objc-lang.c (selectors_info): Error on too long REGEXP.
8411 2011-02-28 Michael Snyder <msnyder@vmware.com>
8413 * python/py-param.c (set_parameter_value): Add missing
8416 * linux-record.c (record_linux_system_call): Add missing
8419 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8421 * breakpoint.c (print_one_breakpoint_location): Remove unused
8422 argument PRINT_ADDRESS_BITS. Update callers.
8423 (print_one_breakpoint): Likewise.
8425 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8427 * breakpoint.c (wrap_indent_at_field): New function.
8428 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8429 Allocate ui_stream locally instead of using STB argument.
8430 (print_one_breakpoint_location): Update call.
8431 * ui-out.c (ui_out_query_field): New function.
8432 * ui-out.h (ui_out_query_field): Add prototype.
8434 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8436 From Michael Snyder <msnyder@vmware.com>
8437 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8439 2011-02-27 Michael Snyder <msnyder@vmware.com>
8441 * objc-lang.c (selectors_info): Prevent string overrun.
8443 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8446 * symtab.c (rbreak_command): Move variable 'file_name' to
8449 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8450 param with a local variable of the same name.
8452 2011-02-27 Michael Snyder <msnyder@vmware.com>
8454 * value.c (value_from_history_ref): New function.
8455 * value.h (value_from_history_ref): Export.
8456 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8457 to parse value history references.
8458 * cli/cli-utils.h (get_number_trailer): Update comment.
8460 2011-02-27 Michael Snyder <msnyder@vmware.com>
8462 * inferior.c (detach_inferior_command): Use get_number_or_range.
8463 (kill_inferior_command): Ditto.
8464 (remove_inferior_command): Ditto.
8465 (initialize_inferiors): Make command names plural.
8466 Update help strings.
8468 2011-02-27 Michael Snyder <msnyder@vmware.com>
8470 * darwin-nat-info.c: Fix comment typo.
8471 * dwarf2expr.h: Ditto.
8472 * fbsd-nat.c: Ditto.
8473 * fbsd-nat.h: Ditto.
8474 * frame-unwind.h: Ditto.
8476 * hppa-hpux-tdep.c: Ditto.
8477 * i386-linux-nat.c: Ditto.
8478 * linux-nat.c: Ditto.
8479 * nbsd-nat.c: Ditto.
8480 * nbsd-nat.h: Ditto.
8481 * ppc-linux-tdep.c: Ditto.
8484 * tui/tui-winsource.c: Ditto.
8486 2011-02-26 Michael Snyder <msnyder@vmware.com>
8488 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8490 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8492 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8493 with a local variable of the same name.
8495 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8496 param with a local variable of the same name.
8497 (i387_supply_xsave): Ditto.
8499 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8500 that it does not shadow a function parameter.
8502 * i386-nat.c (i386_length_and_rw_bits): Document that case
8503 statement is meant to fall through.
8505 * expprint.c (dump_subexp_body_standard): Document that case
8506 statement is meant to fall through.
8508 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8509 dead if statement. Condition can't be false.
8511 2011-02-25 Michael Snyder <msnyder@vmware.com>
8513 * arm-tdep.c: Fix typos in comments.
8514 * bsd-uthread.c: Ditto.
8515 * completer.c: Ditto.
8517 * cp-namespace.c: Ditto.
8518 * cp-support.c: Ditto.
8519 * cris-tdep.c: Ditto.
8521 * dwarf2read.c: Ditto.
8523 * gdbtypes.h: Ditto.
8524 * inferior.h: Ditto.
8525 * mdebugread.c: Ditto.
8526 * mips-tdep.c: Ditto.
8527 * ppc-linux-nat.c: Ditto.
8528 * ppc-linux-tdep.c: Ditto.
8529 * printcmd.c: Ditto.
8530 * sol-thread.c: Ditto.
8531 * solib-frv.c: Ditto.
8533 * sparc64-tdep.c: Ditto.
8534 * spu-tdep.c: Ditto.
8535 * stabsread.c: Ditto.
8540 * python/py-block.c: Ditto.
8541 * python/py-symbol.c: Ditto.
8542 * python/py-symtab.c: Ditto.
8543 * python/py-value.c: Ditto.
8544 * tui/tui-win.c: Ditto.
8546 2011-02-25 Michael Snyder <msnyder@vmware.com>
8548 * inferior.c (print_inferior): Accept a string instead of an int
8549 for requested_inferiors, and use get_number_or_range to parse it.
8550 (info_inferiors_command): Pass args string to print_inferior.
8551 (initialize_inferiors): Change help string for info inferiors.
8552 * inferior.h (print_inferior): Export prototype change.
8554 2011-02-25 Tom Tromey <tromey@redhat.com>
8556 * common/ax.def (invalid2): Set to 0x31.
8558 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8560 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8562 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8564 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8566 2011-02-24 Michael Snyder <msnyder@vmware.com>
8568 * Makefile.in (clean): Make clean should remove generated files
8569 observer.h and observer.inc.
8571 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8573 Revert the following patch (not approved yet):
8574 2011-02-21 Hui Zhu <teawater@gmail.com>
8575 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8576 * ax-gdb.c (gen_printf_expr_callback): New function.
8577 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8578 * ax-general.c (ax_memcpy): New function.
8579 (ax_print): Handle "printf".
8581 * ax.h (ax_memcpy): Forward declare.
8582 * common/ax.def (invalid2): Removed.
8583 (printf): New entry.
8584 * printcmd.c (printcmd.h): New include.
8585 (string_printf): New function.
8586 (ui_printf): Removed.
8587 (printf_command): Remove static. Call string_printf.
8588 (eval_command): Call string_printf.
8589 * printcmd.h: New file.
8590 * tracepoint.c (validate_actionline,
8591 encode_actions_1): handle printf_command.
8593 2011-02-23 Tom Tromey <tromey@redhat.com>
8595 * ax-general.c (ax_pick): Add missing newline.
8597 2011-02-23 Michael Snyder <msnyder@vmware.com>
8599 * breakpoint.c (breakpoint_1): Change first argument from an int
8600 to a char pointer, so that the function now accepts a list of
8601 breakpoints rather than just one. Use new function
8602 'number_is_in_list' to implement.
8603 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8604 (watchpoints_info): Ditto.
8605 (tracepoints_info): Ditto.
8606 (maintenance_info_breakpoints): Ditto.
8607 (_initialize_breakpoint): Update help strings to reflect the fact
8608 that these functions can now take more than one argument.
8609 * cli/cli-utils.c (number_is_in_list): New function.
8610 * cli/cli-utils.h (number_is_in_list): Export.
8612 2011-02-23 Michael Snyder <msnyder@vmware.com>
8614 * memattr.c (mem_enable_command): Use get_number_or_range.
8615 (mem_disable_command): Ditto.
8616 (mem_delete_command): Ditto.
8617 (_initialize_mem): Tweak usage message to reflect multiple
8620 2011-02-22 Doug Evans <dje@google.com>
8622 Add gdb.lookup_global_symbol python function.
8624 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8625 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8626 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8628 2011-02-22 Tom Tromey <tromey@redhat.com>
8630 * language.c (language_class_name_from_physname): Rename
8631 'curr_language' argument to 'lang'; use in body.
8633 2011-02-22 Michael Snyder <msnyder@vmware.com>
8635 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8637 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8639 * frame-unwind.h: Fix comment to mention the this frame, not the
8642 2011-02-22 Tom Tromey <tromey@redhat.com>
8644 * symfile.c (auto_solib_limit): Remove.
8645 * symfile.h (auto_solib_limit): Remove.
8647 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8649 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8651 2011-02-21 Michael Snyder <msnyder@vmware.com>
8653 * gdbthread.h (print_thread_info): Change prototype.
8654 * thread.c (print_thread_info): Accept char* instead of int for
8655 requested_threads argument. Use new function number_is_in_list
8656 to determine which threads to list.
8657 (info_threads_command): Pass char* to print_thread_info.
8658 * cli/cli-utils.c (number_is_in_list): New function.
8659 * cli/cli-utils.h (number_is_in_list): Export.
8660 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8662 (print_one_inferior): Ditto.
8663 (mi_cmd_list_thread_groups): Ditto.
8665 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8667 * common/Makefile.in (CFLAGS): New.
8668 (COMPILE): Add $(CFLAGS).
8670 2011-02-21 Tom Tromey <tromey@redhat.com>
8672 * breakpoint.c (catch_syscall_command_1): Fix typo.
8674 2011-02-21 Tom Tromey <tromey@redhat.com>
8676 * reverse.c: Include cli-utils.h.
8677 * printcmd.c: Include cli-utils.h.
8678 (string_printf): Use skip_spaces.
8679 * cli/cli-utils.h: New file.
8680 * cli/cli-utils.c: New file.
8681 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8682 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8683 * breakpoint.h (get_number, get_number_or_range): Move to
8685 * breakpoint.c: Include cli-utils.h.
8686 (get_number_trailer, get_number, get_number_or_range)
8687 (ep_skip_leading_whitespace): Move to cli-utils.c.
8688 (create_breakpoint_sal, find_condition_and_thread)
8689 (decode_static_tracepoint_spec, watch_command_1)
8690 (watch_maybe_just_location, ep_parse_optional_if_clause)
8691 (catch_fork_command_1, catch_exec_command_1)
8692 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8693 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8694 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8695 (HFILES_NO_SRCDIR): Add cli-utils.h.
8696 (cli-utils.o): New target.
8698 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8700 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8701 before calling discard_all_inferiors.
8703 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8705 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8706 (struct builtin_opencl_type): Remove.
8707 (builtin_opencl_type): Change return type to "struct type **".
8708 (lookup_opencl_vector_type): Update caller.
8709 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8710 (build_opencl_types): Install plain array of "struct type *"
8711 instead of "struct builtin_opencl_type".
8713 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8714 Ulrich Weigand <uweigand@de.ibm.com>
8716 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8717 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8718 (struct arm_linux_hwbp_cap): New type.
8719 (arm_linux_get_hwbp_cap): New function.
8720 (arm_linux_get_hw_breakpoint_count): Likewise.
8721 (arm_linux_get_hw_watchpoint_count): Likewise.
8722 (arm_linux_can_use_hw_breakpoint): Likewise.
8723 (arm_hwbp_type): New type.
8724 (arm_hwbp_control_t): Likewise.
8725 (struct arm_linux_hw_breakpoint): Likewise.
8726 (struct arm_linux_thread_points): Likewise.
8727 (arm_threads): New global variable.
8728 (arm_linux_find_breakpoints_by_tid): New function.
8729 (arm_hwbp_control_initialize): Likewise.
8730 (arm_hwbp_control_is_enabled): Likewise.
8731 (arm_hwbp_control_disable): Likewise.
8732 (arm_linux_hw_breakpoint_initialize): Likewise.
8733 (arm_linux_get_hwbp_type): Likewise.
8734 (arm_linux_hw_watchpoint_initialize): Likewise.
8735 (arm_linux_hw_breakpoint_equal): Likewise.
8736 (arm_linux_insert_hw_breakpoint1): Likewise.
8737 (arm_linux_remove_hw_breakpoint1): Likewise.
8738 (arm_linux_insert_hw_breakpoint): Likewise.
8739 (arm_linux_remove_hw_breakpoint): Likewise.
8740 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8741 (arm_linux_insert_watchpoint): Likewise.
8742 (arm_linux_remove_watchpoint): Likewise.
8743 (arm_linux_stopped_data_address): Likewise.
8744 (arm_linux_stopped_by_watchpoint): Likewise.
8745 (arm_linux_watchpoint_addr_within_range): Likewise.
8746 (arm_linux_new_thread): Likewise.
8747 (arm_linux_thread_exit): Likewise.
8748 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8749 related target callbacks. Register arm_linux_new_thread and
8750 arm_linux_thread_exit.
8751 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8752 * arm-tdep.c (arm_pc_is_thumb): Make global.
8753 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8755 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8757 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8758 per-frame locations while within a function epilogue.
8760 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8762 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8763 to GNU coding standards.
8765 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8767 Allow use of mingw native on Windows 95 OS.
8768 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8769 (ser_windows_close): Only call CancelIo if function exists.
8770 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8771 to check for existence of CancelIo function in kernel32 DLL.
8773 2011-02-21 Hui Zhu <teawater@gmail.com>
8775 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8776 * ax-gdb.c (gen_printf_expr_callback): New function.
8777 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8778 * ax-general.c (ax_memcpy): New function.
8779 (ax_print): Handle "printf".
8781 * ax.h (ax_memcpy): Forward declare.
8782 * common/ax.def (invalid2): Removed.
8783 (printf): New entry.
8784 * printcmd.c (printcmd.h): New include.
8785 (string_printf): New function.
8786 (ui_printf): Removed.
8787 (printf_command): Remove static. Call string_printf.
8788 (eval_command): Call string_printf.
8789 * printcmd.h: New file.
8790 * tracepoint.c (validate_actionline,
8791 encode_actions_1): handle printf_command.
8793 2011-02-19 Michael Snyder <msnyder@vmware.com>
8795 * reverse.c (delete_one_bookmark): Argument is now bookmark
8796 id rather than pointer to bookmark struct.
8797 (delete_bookmark_command): Use get_number_or_range.
8798 (goto_bookmark_command): Parse with get_number instead of strtoul.
8799 (bookmark_1): New function. Print info for one bookmark.
8800 (bookmarks_info): Use get_number_or_range and bookmark_1.
8802 2011-02-18 Michael Snyder <msnyder@vmware.com>
8804 * thread.c (info_threads_command): Re-implement using
8805 get_number_or_range.
8806 (thread_apply_command): Ditto.
8808 2011-02-18 Tom Tromey <tromey@redhat.com>
8810 * common/ax.def: New file.
8811 * ax.h (enum agent_op): Use ax.def.
8812 * ax-general.c (aop_map): Use ax.def.
8814 2011-02-18 Tom Tromey <tromey@redhat.com>
8816 * ax-general.c (aop_map): Add pick and rot.
8817 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8818 <DW_OP_rot>: Implement.
8819 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8821 * ax-general.c (ax_pick): New function.
8823 2011-02-18 Tom Tromey <tromey@redhat.com>
8825 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8827 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8828 Tom Tromey <tromey@redhat.com>
8830 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8831 make_symbol_overload_list_block with NULL BLOCK.
8832 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8834 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8836 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8837 * breakpoint.h (get_number_or_range): Declare.
8838 * printcmd.c (ALL_DISPLAYS): Declare.
8839 (delete_display): Reimplement taking a display pointer.
8840 (undisplay_command): Accept a range of displays to delete, using
8841 get_number_or_range.
8843 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8845 * c-valprint.c (c_val_print): Add embedded_offset to address
8846 for arrays of unspecified length.
8847 * p-valprint.c (pascal_val_print): Likewise.
8849 2011-02-18 Yao Qi <yao@codesourcery.com>
8851 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8852 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8853 (thumb_process_displaced_insn): New.
8854 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8855 call to arm_process_displaced_insn.
8856 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8858 2011-02-17 Tom Tromey <tromey@redhat.com>
8860 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8861 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8862 compile_dwarf_to_ax. No longer static. Call
8863 dwarf2_compile_cfa_to_ax.
8864 (locexpr_tracepoint_var_ref): Update.
8865 (loclist_tracepoint_var_ref): Update.
8866 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8867 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8868 argument; add 'gdbarch' and 'pc'.
8869 (dwarf2_compile_cfa_to_ax): New function.
8870 (dwarf2_frame_cache): Update.
8872 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8874 * ada-lang.c (ada_type_of_array): Fix the size of the array
8875 in the case of an unconstrained packed array.
8877 2011-02-17 Yao Qi <yao@codesourcery.com>
8879 * common/Makefile.in: Add more targets for make.
8881 2011-02-16 Tom Tromey <tromey@redhat.com>
8883 * dwarf2loc.c (unimplemented): Fix typo.
8885 2011-02-16 Tom Tromey <tromey@redhat.com>
8887 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8888 (compile_dwarf_to_ax) <default>: Use unimplemented.
8889 <DW_OP_deref>: Update.
8890 (disassemble_dwarf_expression): Update.
8891 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8892 (decode_locdesc): Update.
8893 * dwarf2expr.h (dwarf_stack_op_name): Update.
8895 2011-02-16 Tom Tromey <tromey@redhat.com>
8897 * ax.h (struct aop_map) <name>: Now const.
8899 2011-02-16 Tom Tromey <tromey@redhat.com>
8901 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8904 2011-02-16 Yao Qi <yao@codesourcery.com>
8906 * infrun.c (get_displaced_step_closure_by_addr): New.
8907 * inferior.h: Declare it.
8908 * arm-tdep.c: (arm_pc_is_thumb): Call
8909 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8912 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8913 Jan Kratochvil <jan.kratochvil@redhat.com>
8916 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8918 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8919 Jan Kratochvil <jan.kratochvil@redhat.com>
8921 * value.c (value_contents_copy_raw): Extend describing comment.
8922 Assert that the destination contents we're overwriting are wholly
8924 (value_contents_copy): Extend describing comment.
8926 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8927 Jan Kratochvil <jan.kratochvil@redhat.com>
8929 * value.c (value_available_contents_eq): Remove redundant local
8930 variables. Fix available contents comparision.
8931 * value.h (value_available_contents_eq): Extend describing
8934 2011-02-16 Yao Qi <yao@codesourcery.com>
8936 * thread.c (info_threads_command): Add missing i18n markup and remove
8939 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8941 * breakpoint.c (longjmp_names): New variable.
8942 (struct breakpoint_objfile_data): New type.
8943 (breakpoint_objfile_key): New variable.
8944 (msym_not_found): New variable.
8945 (msym_not_found_p): New predicate.
8946 (get_breakpoint_objfile_data): New function.
8947 (create_overlay_event_breakpoint): Check per-objfile cache for
8949 (create_longjmp_master_breakpoint): Likewise.
8950 (create_std_terminate_master_breakpoint): Likewise.
8951 (create_exception_master_breakpoint): Likewise.
8952 (_initialize_breakpoint): Register per-objfile data key.
8954 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8956 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8958 (create_longjmp_master_breakpoint): Loop over longjmp names.
8959 (create_std_terminate_master_breakpoint): Const-propagate parameter
8961 (update_breakpoints_after_exec): Adjust.
8962 (breakpoint_re_set): Adjust.
8964 2011-02-15 Michael Snyder <msnyder@vmware.com>
8966 * thread.c (info_threads_command): Process arg as thread id,
8967 or list of thread ids.
8968 (thread_find_command): New command.
8969 (_initialize_thread): Document argument for info threads.
8970 Document 'thread find' command.
8971 * NEWS: Document new command "thread find".
8973 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8975 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8976 * aclocal.m4: Regenerated with aclocal-1.11.1.
8977 * common/configure: Regenerate with autoconf-2.64.
8979 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8981 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8982 bool data type to a size of one byte.
8984 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8985 Jan Kratochvil <jan.kratochvil@redhat.com>
8987 * target.c (memory_xfer_live_readonly_partial): Document where to
8988 look for interface description.
8990 2011-02-15 Yao Qi <yao@codesourcery.com>
8993 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8994 order to store PC value on stack instead of text section.
8996 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8998 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8999 the EFP register set size.
9000 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9001 data from the VMX register.
9002 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9003 and write data from/to the VMX register.
9005 2011-02-14 Michael Snyder <msnyder@vmware.com>
9007 * command.h (enum command_class): New class 'no_set_class', for
9008 "show" commands without a corresponding "set" command.
9009 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9010 * copying.c (_initialize_copying): Ditto for "show copying" and
9012 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9014 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9015 which there is no corresponding "set" command (eg. "show copying").
9017 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9018 Jan Kratochvil <jan.kratochvil@redhat.com>
9020 * exec.c (section_table_available_memory): Change `len' parameter
9022 * exec.h (section_table_available_memory): Ditto.
9023 * value.h (read_value_memory): Rename the `offset' parameter to
9026 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9027 Jan Kratochvil <jan.kratochvil@redhat.com>
9029 * memrange.c (compare_mem_ranges): Mention sort order in
9031 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9032 * tracepoint.c (traceframe_available_memory): Extend comment to
9033 mention what happens to RESULT when the target does not support
9036 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9037 Jan Kratochvil <jan.kratochvil@redhat.com>
9039 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9042 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9044 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9045 No longer handle NULL values.
9047 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9049 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9050 * value.c: Include "exceptions.h".
9051 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9053 * cp-abi.c: Include gdb_assert.h.
9054 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9055 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9057 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9058 parameters. No longer returns -1 on error.
9059 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9061 * cp-valprint.c: Include exceptions.h.
9062 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9063 the baseclass_offset. Handle unavailable base classes. Use
9064 val_print_invalid_address.
9065 * p-valprint.c: Include exceptions.h.
9066 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9067 when fetching the baseclass_offset. No longer expect
9068 baseclass_offset returning -1. Handle unavailable base classes.
9069 Use val_print_invalid_address.
9070 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9071 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9072 `embedded_offset' and `val' parameters. Adjust.
9073 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9074 parameter, and change its type to gdb_byte pointer. Add
9075 `embedded_offset' and `val' parameters. Adjust. No longer expect
9076 baseclass_offset returning -1.
9077 (value_dynamic_cast): Use value_contents_for_printing rather than
9078 value_contents. Adjust.
9079 (search_struct_field): No longer expect baseclass_offset returning
9081 (search_struct_method): If reading memory from the target is
9082 necessary, wrap it in a new value to pass to baseclass_offset. No
9083 longer expect baseclass_offset returning -1.
9084 (find_method_list): No longer expect baseclass_offset returning
9085 -1. Use value_contents_for_printing rather than value_contents.
9086 * valprint.c (val_print_invalid_address): New function.
9087 * valprint.h (val_print_invalid_address): Declare.
9088 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9089 and `val' parameters. No longer expect baseclass_offset returning
9091 * gnu-v2-abi.c: Include "exceptions.h".
9092 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9093 parameters. Handle unavailable memory. Recurse through
9094 gnuv2_baseclass_offset directly, rather than through
9095 baseclass_offset. No longer returns -1 on not found, instead
9097 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9098 `val' parameters. Adjust.
9100 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9102 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9103 almost but not quite adjacent.
9105 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9107 * value.h (value_entirely_available): Declare.
9108 * value.c (value_entirely_available): New function.
9109 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9110 real type if the pointer is unavailable.
9112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9114 * valops.c (value_repeat): Use read_value_memory instead of
9117 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9119 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9120 * value.c (value_contents_copy_raw, value_contents_copy): New
9122 (value_primitive_field): Use value_contents_copy_raw instead of
9124 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9126 (value_array, value_slice): Ditto.
9127 * valarith.c (value_subscripted_rvalue): Use
9128 value_contents_copy_raw instead of memcpy.
9130 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9132 <unavailable> references.
9134 * valops.c (get_value_at): Use value_from_contents_and_address,
9135 avoiding read_memory.
9137 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9139 * c-valprint.c (c_val_print): Print a string with unavailable
9140 contents as an array.
9142 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9144 * value.h (unpack_bits_as_long): Delete declaration.
9145 (unpack_value_bits_as_long): Declare.
9146 (unpack_value_field_as_long): Declare.
9147 (value_field_bitfield): Declare.
9148 * value.c (unpack_bits_as_long): Rename to...
9149 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9150 value parameters. Return the extracted result in a new output
9151 parameter. If the value contents are unavailable, return false,
9152 otherwise return true.
9153 (unpack_value_bits_as_long): New.
9154 (unpack_field_as_long): Rename to...
9155 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9156 Add embedded_offset and value parameters. Return the extracted
9157 result in a new output parameter. If the value contents are
9158 unavailable, return false, otherwise return true.
9159 (unpack_value_field_as_long): New.
9160 (unpack_field_as_long_1): New.
9161 (unpack_field_as_long): Reimplement as wrapper around
9162 unpack_value_field_as_long_1.
9163 (value_field_bitfield): New function.
9164 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9165 unpack_value_bits_as_long. Mark the value as unavailable, if it
9167 * jv-valprint.c (java_print_value_fields): Use
9168 value_field_bitfield.
9169 * p-valprint.c (pascal_object_print_value_fields): Use
9170 value_field_bitfield.
9171 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9173 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9175 * value.c (get_internalvar_integer): Also return the int value of
9176 TYPE_CODE_INT INTERNALVAR_VALUE values.
9177 (set_internalvar): Don't special case TYPE_CODE_INT.
9179 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9181 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9182 INTERNALVAR_POINTER.
9184 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9185 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9186 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9190 * value.h (value_available_contents_eq): Declare.
9191 * value.c (find_first_range_overlap): New function.
9192 (value_available_contents_eq): New function.
9193 * valprint.c (val_print_array_elements): Use
9194 value_available_contents_eq.
9195 * ada-valprint.c (val_print_packed_array_elements): Use
9196 value_available_contents_eq.
9197 * jv-valprint.c (java_value_print): Use
9198 value_available_contents_eq.
9200 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9202 * target.c (target_read_live_memory): New function.
9203 (memory_xfer_live_readonly_partial): New.
9204 (memory_xfer_partial): If reading from a traceframe, fallback to
9205 reading unavailable read-only memory from read-only regions of
9207 * tracepoint.c (disconnect_tracing): Adjust.
9208 (set_current_traceframe): New, factored out from
9209 set_traceframe_number.
9210 (set_traceframe_number): Reimplement to only change the traceframe
9211 number on the GDB side.
9212 (do_restore_current_traceframe_cleanup): Adjust.
9213 (make_cleanup_restore_traceframe_number): New.
9214 (cur_traceframe_number): New global.
9215 (tfile_open): Set cur_traceframe_number to no traceframe.
9216 (set_tfile_traceframe): New function.
9217 (tfile_trace_find): If looking up a traceframe using any method
9218 other than by number, make sure the current tfile traceframe
9219 matches gdb's current traceframe. Update the current tfile
9220 traceframe if the lookup succeeded.
9221 (tfile_fetch_registers, tfile_xfer_partial)
9222 (tfile_get_trace_state_variable_value): Make sure the remote
9223 traceframe matches gdb's current traceframe.
9224 * remote.c (remote_traceframe_number): New global.
9225 (remote_open_1): Set it to -1.
9226 (set_remote_traceframe): New function.
9227 (remote_fetch_registers, remote_store_registers)
9228 (remote_xfer_memory, remote_xfer_partial)
9229 (remote_get_trace_state_variable_value): Make sure the remote
9230 traceframe matches gdb's current traceframe.
9231 (remote_trace_find): If looking up a traceframe using any method
9232 other than by number, make sure the current remote traceframe
9233 matches gdb's current traceframe. Update the current remote
9234 traceframe if the lookup succeeded.
9235 * infrun.c (fetch_inferior_event): Adjust.
9236 * tracepoint.h (set_current_traceframe): Declare.
9237 (get_traceframe_number, set_traceframe_number): Add describing
9240 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9242 Mark pieces of values as unavailable if the corresponding memory
9245 * valops.c: Include tracepoint.h.
9246 (value_fetch_lazy): Use read_value_memory.
9247 (read_value_memory): New.
9248 * value.h (read_value_memory): Declare.
9249 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9250 * exec.c (section_table_available_memory): New function.
9251 * exec.h (section_table_available_memory): Declare.
9253 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9255 * Makefile.in (SFILES): Add memrange.c.
9256 (HFILES_NO_SRCDIR): Add memrange.h.
9257 (COMMON_OBS): Add memrange.o.
9258 * memrange.c: New file.
9259 * memrange.h: New file.
9260 * tracepoint.c: Include memrange.h.
9261 (struct mem_range): Delete.
9262 (mem_range_s): Delete.
9263 (traceframe_available_memory): New function.
9264 * tracepoint.h (traceframe_available_memory): Declare.
9266 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9268 * target.h (struct traceframe_info): Forward declare.
9269 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9270 (struct target_ops) <to_traceframe_info>: New field.
9271 (target_traceframe_info): New.
9272 * target.c (update_current_target): Inherit and default
9274 * remote.c (PACKET_qXfer_traceframe_info): New.
9275 (remote_protocol_features): Register qXfer:traceframe-info:read.
9276 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9277 (remote_traceframe_info): New.
9278 (init_remote_ops): Install it.
9279 (_initialize_remote): Install "set/show remote traceframe-info"
9281 * tracepoint.h (parse_traceframe_info): Declare.
9282 * tracepoint.c (struct mem_range): New.
9283 (mem_range_s): New typedef.
9284 (struct traceframe_info): New.
9285 (traceframe_info): New global.
9286 (free_traceframe_info): New function.
9287 (clear_traceframe_info): New function.
9288 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9290 (build_traceframe_info): New function.
9291 (tfile_traceframe_info): New function.
9292 (init_tfile_ops): Install tfile_traceframe_info.
9293 (traceframe_info_start_memory, free_result): New functions.
9294 (memory_attributes, traceframe_info_elements): New globals.
9295 (parse_traceframe_info, get_traceframe_info): New functions.
9296 * features/traceframe-info.dtd: New file.
9297 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9299 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9301 Base support for <unavailable> value contents.
9303 * value.h (value_bytes_available): Declare.
9304 (mark_value_bytes_unavailable): Declare.
9305 * value.c (struct range): New struct.
9306 (range_s): New typedef.
9307 (ranges_overlap): New function.
9308 (range_lessthan): New function.
9309 (ranges_contain_p): New function.
9310 (struct value) <unavailable>: New field.
9311 (value_bytes_available): New function.
9312 (mark_value_bytes_unavailable): New function.
9313 (require_not_optimized_out): Constify parameter.
9314 (require_available): New function.
9315 (value_contents_all, value_contents): Require all bytes be
9317 (value_free): Free `unavailable'.
9318 (value_copy): Copy `unavailable'.
9319 * valprint.h (val_print_unavailable): Declare.
9320 * valprint.c (valprint_check_validity): Rename `offset' parameter
9321 to `embedded_offset'. If printing a scalar, check whether the
9322 value chunk is available.
9323 (val_print_unavailable): New.
9324 (val_print_scalar_formatted): Check whether the value is
9326 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9327 pretty-printing unavailable values.
9329 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9331 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9332 * c-typeprint.c (c_type_print_args): Update the function comment. New
9333 variable param_type, initialize it. Remove const/volatile qualifiers
9334 for language_cplus and !show_artificial. Use param_type.
9336 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9338 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9339 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9340 * symtab.h (struct symtab) <next>: Comment extension.
9342 2011-02-12 Yao Qi <yao@codesourcery.com>
9344 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9346 2011-02-11 Yao Qi <yao@codesourcery.com>
9348 * common/Makefile.in: Add copyright header.
9350 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9352 * infrun.c (proceed): Move switching out and in of tfind mode from
9354 (fetch_inferior_event): ... to here.
9356 2011-02-11 Yao Qi <yao@codesourcery.com>
9358 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9360 * configure.ac: Add common to sub dir.
9361 * configure: Regenerate.
9363 2011-02-11 Yao Qi <yao@codesourcery.com>
9367 * common/Makefile.in: New.
9368 * common/configure.ac: New.
9369 * common/aclocal.m4: New.
9370 * common/configure: Generate.
9372 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9374 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9375 side of the parenthesis.
9378 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9379 * vec.h (VEC_block_remove): Fix comment.
9381 2011-02-08 Michael Snyder <msnyder@vmware.com>
9383 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9385 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9387 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9388 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9391 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9394 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9396 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9397 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9399 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9401 * dwarf2read.c (read_subroutine_type): Set special calling
9402 convention flag for functions compiled by IBM XL C for OpenCL.
9403 * ppc-sysv-tdep.c: Include "dwarf2.h"
9404 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9406 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9407 IBM OpenCL vector types calling convention.
9408 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9409 (ppc_sysv_abi_broken_return_value): Likewise.
9410 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9411 types calling convention.
9412 (ppc64_sysv_abi_return_value): Likewise.
9413 * spu-tdep.c: Include "dwarf2.h"
9414 (spu_return_value): Implement IBM OpenCL vector types calling
9417 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9419 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9420 correct ABI for AltiVec vector arguments.
9422 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9424 * valprint.c (val_print): Extend comment.
9425 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9426 interface explanation to val_print.
9427 (ada_val_print_array): Adjust comment to current interface.
9428 (print_field_values): Adjust comment to current interface.
9429 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9430 explanation to val_print.
9431 * f-valprint.c (f_val_print): Ditto.
9432 * jv-valprint.c (java_val_print): Ditto.
9433 * m2-valprint.c (m2_val_print): Ditto.
9434 * p-valprint.c (pascal_val_print): Ditto.
9436 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9438 * breakpoint.c (parse_breakpoint_sals): Fix description.
9440 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9441 Oguz Kayral <oguzkayral@gmail.com>
9443 * python/py-inferior.c (python_on_normal_stop): New function.
9444 (python_on_resume): New function.
9445 (python_inferior_exit): New function.
9446 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9447 inferior_exit observers.
9448 * python/py-evtregistry.c: New file.
9449 * python/py-threadevent.c : New file.
9450 * python/py-event.c: New file.
9451 * python/py-evts.c: New file.
9452 * python/py-continueevent.c: New file.
9453 * python/py-bpevent.c: New file.
9454 * python/py-signalevent.c: New file.
9455 * python/py-exetiedevent.c: New file.
9456 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9457 Move struct breakpoint_object from here...
9458 * python/python-internal.h: ... to here.
9459 * python/py-event.h: New file.
9460 * python/py-events.h: New file.
9461 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9462 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9463 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9464 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9465 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9466 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9467 Add build rules for all the above.
9469 2011-02-04 Tom Tromey <tromey@redhat.com>
9471 * dwarf2read.c (dwarf2_section_empty_p): New function.
9472 (dwarf2_read_section): Use dwarf2_section_empty_p.
9473 (dwarf2_section_size): New function.
9474 (dwarf2_get_section_info): Unconditionally read section.
9475 (dwarf2_read_index): Use dwarf2_section_empty_p.
9476 (partial_read_comp_unit_head): Use dwarf2_section_size.
9477 (dwarf2_symbol_mark_computed): Likewise.
9479 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9481 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9483 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9485 * mips-linux-tdep.c: Include xml-syscall.h.
9486 (mips_linux_get_syscall_number): New function.
9487 (mips_linux_init_abi): Add calls to
9488 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9489 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9490 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9491 * syscalls/mips-n32-linux.xml: New file.
9492 * syscalls/mips-n64-linux.xml: New file.
9493 * syscalls/mips-o32-linux.xml: New file.
9495 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9497 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9498 Complain about inverted range entries.
9499 (dwarf2_record_block_ranges): Likewise.
9501 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9504 * breakpoint.c (update_watchpoint): Fix name of the
9505 update_global_location_list function.
9506 (print_one_breakpoint): Fix typo.
9507 (_initialize_breakpoint): Remove extra space in hbreak help
9509 * breakpoint.h (struct bp_location) <length>: Fix field
9512 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9514 * regcache.c (registers_changed_ptid): Don't explictly always
9515 clear `current_regcache'. Only clear current_thread_ptid and
9516 current_thread_arch when PTID matches. Only reinit the frame
9517 cache if PTID matches the current inferior_ptid. Move alloca(0)
9519 (registers_changed): ... here.
9521 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9523 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9524 starts with __stack_chk_guard as stack guard symbol.
9526 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9528 * disasm.c (compare_lines): Handle the end of sequence markers
9529 within the line table to better support disassembling over
9530 compilation unit boundaries.
9532 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9534 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9535 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9536 implementation even if no symbols are available.
9537 (thumb_analyze_prologue): Update call to skip_prologue_function.
9538 (arm_analyze_prologue): Likewise.
9540 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9542 * arm-tdep.c: Include "observer.h".
9543 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9544 (arm_exidx_data_key): New static variable.
9545 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9546 (struct arm_exidx_data): Likewise.
9547 (arm_exidx_data_free): New function.
9548 (arm_compare_exidx_entries): Likewise.
9549 (arm_obj_section_from_vma): Likewise.
9550 (arm_exidx_new_objfile): Likewise.
9551 (arm_find_exidx_entry): Likewise.
9552 (arm_exidx_fill_cache): Likewise.
9553 (arm_exidx_unwind_sniffer): Likewise.
9554 (arm_exidx_unwind): New global variable.
9555 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9556 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9557 observer. Register arm_exidx_data_key as objfile data.
9559 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9561 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9562 due to accessing uninitialized variable. Fix indentation.
9564 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9566 * c-valprint.c (c_value_print): When doing virtual base pointer
9567 adjustment, create a new value with adjusted contents rather than
9568 changing the contents of the value being printed (and getting it
9571 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9573 * xml-support.c (xml_find_attribute): New.
9574 (xinclude_start_include): Use it.
9575 * xml-support.h (xml_find_attribute): Declare.
9576 * memory-map.c (memory_map_start_memory)
9577 (memory_map_start_property): Use xml_find_attribute.
9578 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9580 * remote.c (start_thread): Use xml_find_attribute.
9581 * solib-target.c (library_list_start_segment)
9582 (library_list_start_section, library_list_start_library)
9583 (library_list_start_list): Use xml_find_attribute.
9584 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9585 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9586 (tdesc_start_field): Use xml_find_attribute.
9588 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9590 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9591 (BUILD_OCL_VTYPES): Update.
9593 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9595 * configure.ac: Work around non-GNU sed limitation when computing
9596 python version number.
9597 * configure: Regenerate.
9599 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9601 Fix debug printing of TYPE_INSTANCE.
9602 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9603 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9605 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9607 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9608 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9609 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9610 * ada-operator.inc: Rename the file to ...
9611 * ada-operator.def: ... here, wrap all the entries by macro OP.
9612 * expprint.c (op_name_standard): Remove all the entries. Include
9613 "std-operator.def" instead.
9614 * expression.h (enum exp_opcode): Include "std-operator.def" and
9615 "ada-operator.def". Move all the entries ...
9616 * std-operator.def: ... here, wrap all the entries by macro OP.
9618 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9620 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9621 * breakpoint.c (remove_jit_event_breakpoints): New function.
9622 * jit.c (jit_descriptor_addr): Delete.
9623 (registering_code): Delete.
9624 (clear_int): Delete.
9625 (jit_inferior_data): New variable.
9626 (struct jit_inferior_data): New type.
9627 (get_jit_inferior_data): New function.
9628 (jit_inferior_data_cleanup): New function.
9629 (jit_read_descriptor): Adjust.
9630 (jit_register_code): Adjust.
9631 (jit_breakpoint_re_set_internal): New function; move code here ...
9632 (jit_inferior_init): ... from here.
9633 (jit_breakpoint_re_set): Adjust.
9634 (jit_reset_inferior_data_and_breakpoints): New function.
9635 (jit_inferior_created_observer): Adjust.
9636 (jit_inferior_exit_hook): Adjust.
9637 (jit_executable_changed_observer): New function.
9638 (jit_event_handler): Adjust.
9639 (_initialize_jit): Adjust.
9641 2011-01-31 Michael Snyder <msnyder@vmware.com>
9643 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9646 2011-01-31 Tom Tromey <tromey@redhat.com>
9649 * python/python.c (execute_gdb_command): Call
9650 prevent_dont_repeat.
9651 * top.c (suppress_dont_repeat): New global.
9652 (dont_repeat): Use it.
9653 (prevent_dont_repeat): New function.
9654 * command.h (prevent_dont_repeat): Declare.
9656 2011-01-31 Tom Tromey <tromey@redhat.com>
9658 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9659 * python/py-breakpoint.c (bppy_set_silent): Use
9660 breakpoint_set_silent.
9661 (bppy_set_thread): Use breakpoint_set_thread.
9662 (bppy_set_task): Use breakpoint_set_task.
9663 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9664 (breakpoint_set_task): Declare.
9665 (make_breakpoint_silent): Remove.
9666 * breakpoint.c (breakpoint_set_silent): New function.
9667 (breakpoint_set_thread): Likewise.
9668 (breakpoint_set_task): Likewise.
9669 (make_breakpoint_silent): Remove.
9671 2011-01-31 Tom Tromey <tromey@redhat.com>
9673 * breakpoint.h (user_breakpoint_p): Declare.
9674 * breakpoint.c (user_breakpoint_p): New function.
9675 (breakpoint_1): Use it.
9676 (save_breakpoints): Likewise.
9678 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9680 * configure.ac: Add handling of Python distribution on Windows.
9681 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9682 sysconfig variables are not defined, then do not use them.
9683 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9684 instead. On Windows, return all paths using forward-slashes
9685 rather than backslashes.
9687 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9689 * configure.ac: Remove fallback behavior for building
9690 against Python. Remove tweaking of Python include path.
9691 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9692 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9693 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9694 Always restore CPPFLAGS and LIBS after linking test.
9695 * configure: Regenerated.
9696 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9697 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9698 * python/python-internal.h: Adjust includes of Python .h files.
9700 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9702 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9705 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9707 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9710 2011-01-31 Yao Qi <yao@codesourcery.com>
9712 * arm-linux-nat.c: Update calls to regcache_register_status
9713 instead of regcache_valid_p.
9714 * aix-thread.c: Likewise.
9715 * i386gnu-nat.c: Likewise.
9717 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9720 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9721 touching TYPE_FIELD_ARTIFICIAL.
9723 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9725 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9728 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9730 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9731 selected, don't try iterating over the traceframe's blocks.
9732 (tfile_has_stack): If there's no traceframe selected, then there's
9734 (tfile_has_registers): If there's no traceframe selected, then
9735 there's no registers.
9737 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9739 * target.c (memory_xfer_partial): No need to restore shadows if we
9740 haven't read anything.
9742 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9744 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9745 and val_print_scalar_formatted.
9747 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9749 * tracepoint.c (tfile_read): New.
9750 (tfile_open): Use it.
9751 (tfile_get_traceframe_address): Use it.
9752 (tfile_trace_find): Use it.
9753 (walk_blocks_callback_func): New typedef.
9754 (match_blocktype): New function.
9755 (traceframe_walk_blocks): New function.
9756 (traceframe_find_block_type): New function.
9757 (tfile_fetch_registers, tfile_xfer_partial)
9758 (tfile_get_trace_state_variable_value): Use
9759 traceframe_find_block_type and tfile_read.
9761 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9763 * remote-mips.c: Add internationalization mark ups. Remove
9764 trailing \n from already marked up strings.
9766 2011-01-26 Tom Tromey <tromey@redhat.com>
9768 * python/py-prettyprint.c (print_string_repr): Clear
9769 'addressprint' option when calling val_print_string.
9770 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9771 option when calling val_print_string.
9773 2011-01-26 Tom Tromey <tromey@redhat.com>
9775 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9777 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9779 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9780 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9781 (gdb_py_long_as_ulongest): New defines.
9782 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9783 (gdb_py_int_as_long): Declare.
9784 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9785 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9786 (valpy_long): Add comment.
9787 * python/py-utils.c (get_addr_from_python): Use
9788 gdb_py_long_as_ulongest. Handle overflow properly.
9789 (gdb_py_object_from_longest): New function.
9790 (gdb_py_object_from_ulongest): Likewise.
9791 (gdb_py_int_as_long): Likewise.
9792 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9793 * python/py-symtab.c (salpy_get_pc): Use
9794 gdb_py_long_from_ulongest.
9795 (salpy_get_line): Use PyInt_FromLong.
9796 * python/py-param.c (set_parameter_value): Use
9798 * python/py-lazy-string.c (stpy_get_address): Use
9799 gdb_py_long_from_ulongest.
9800 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9801 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9802 * python/py-breakpoint.c (bppy_set_thread): Use
9804 (bppy_set_task): Likewise.
9805 (bppy_set_ignore_count): Likewise.
9806 (bppy_set_hit_count): Likewise.
9807 * python/py-block.c (blpy_get_start): Use
9808 gdb_py_object_from_ulongest.
9809 (blpy_get_end): Likewise.
9810 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9812 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9815 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9816 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9817 equality test for objfile, initialize addr_low if needed.
9819 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9821 * tui/tui-regs.c (tui_register_format): Remove dead code.
9823 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9825 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9826 instead of print_scalar_formatted.
9827 (print_scalar_formatted): Don't handle 's' format strings here,
9828 and add an assertion that we never see such format here.
9829 * valprint.h (val_print_scalar_formatted): Declare.
9830 * valprint.c (val_print_scalar_formatted): New.
9831 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9832 instead of print_scalar_formatted.
9833 * jv-valprint.c (java_val_print): Ditto.
9834 * p-valprint.c (pascal_val_print): Ditto.
9835 * ada-valprint.c (ada_val_print_1): Ditto.
9836 * f-valprint.c (f_val_print): Ditto.
9837 * infcmd.c (registers_info): Ditto.
9838 * m2-valprint.c (m2_val_print): Ditto.
9840 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9842 * m2-valprint.c (print_unbounded_array): Pass
9843 value_contents_for_printing rather than value_contents, to
9844 m2_print_array_contents. Also pass in the value.
9846 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9848 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9849 (save_gdb_index_command): Switch to .gdb_index version 4.
9851 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9853 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9854 than frame_register, and always pass a valid value to val_print.
9856 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9858 Centralize printing "<optimized out>".
9860 * valprint.h (val_print_optimized_out): Declare.
9861 * cp-valprint.c (cp_print_value_fields): Use
9862 val_print_optimized_out.
9863 * jv-valprint.c (java_print_value_fields): Ditto.
9864 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9865 * printcmd.c (print_formatted): Ditto.
9866 * valprint.c (valprint_check_validity): Ditto.
9867 (value_check_printable): Ditto.
9868 (val_print_optimized_out): New.
9870 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9872 * infcmd.c (default_print_registers_info): Allocate values so to
9873 never pass a NULL value to val_print.
9875 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9877 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9878 boolean. Make sure to always pass a value that matches the
9879 contents buffer to callees. Preserve `address' for following
9881 * value.c (value_contents_for_printing_const): New.
9882 (value_address): Constify value argument.
9883 * value.h (value_contents_for_printing_const): Declare.
9884 (value_address): Constify value argument.
9886 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9888 * regcache.c (struct regcache_descr): Rename
9889 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9890 and sizeof_cooked_register_valid_p to
9891 sizeof_cooked_register_status.
9892 (init_regcache_descr): Adjust.
9893 (struct regcache): Rename register_valid_p field to
9895 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9896 (do_cooked_read): Adjust.
9897 (regcache_valid_p): Rename to ...
9898 (regcache_register_status): ... this. Adjust.
9899 (regcache_invalidate): Adjust.
9900 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9902 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9903 as unavailable, not valid.
9904 (regcache_dump): Adjust.
9905 * regcache.h (enum register_status): New.
9906 (regcache_register_status): Declare.
9907 (regcache_invalidate): Delete declaration.
9908 * corelow.c (get_core_registers): Adjust.
9909 * tracepoint.c (tfile_fetch_registers): Adjust.
9910 * trad-frame.c (REG_VALUE): Rename to ...
9911 (TF_REG_VALUE): ... this.
9912 (REG_UNKNOWN): Rename to ...
9913 (TF_REG_UNKNOWN): ... this.
9914 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9915 * mi/mi-main.c (register_changed_p): Adjust.
9917 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9919 * regcache.c (struct regcache_descr): Remove outdated comment.
9920 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9922 (regcache_xmalloc): Rename to ...
9923 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9924 Allocate the regcache type accordingly.
9925 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9926 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9927 cooked registers, not raw.
9928 (regcache_dup_no_passthrough): Delete.
9929 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9930 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9931 mention obsolete write_register_bytes.
9932 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9934 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9936 Stop remote_read_bytes from handling partial reads itself.
9938 * remote-fileio.c: Include target.h.
9939 (remote_fileio_write_bytes): Delete.
9940 (remote_fileio_func_open, remote_fileio_func_write)
9941 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9943 (remote_fileio_func_stat): Use target_read_memory and
9944 target_write_memory.
9945 (remote_fileio_func_gettimeofday): Use target_write_memory.
9946 (remote_fileio_func_system): Use target_read_memory.
9947 * remote.c (remote_write_bytes): Make it static.
9948 (remote_read_bytes): Don't handle partial reads here.
9949 * remote.h (remote_read_bytes): Delete declaration.
9951 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9953 Simplify XML parsing a bit.
9955 * xml-support.h (gdb_xml_parse_quick): Declare.
9956 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9957 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9959 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9960 gdb_xml_create_parser_and_cleanup_1.
9961 (gdb_xml_parse_quick): New.
9962 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9963 * osdata.c (osdata_parse): Ditto.
9964 * remote.c (remote_threads_info): Ditto.
9965 * solib-target.c (solib_target_parse_libraries): Ditto.
9966 * xml-syscall.c (syscall_parse_xml): Ditto.
9967 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9969 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9971 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9972 with remote-mips.o added to gdb_target_obs.
9973 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9975 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9977 * ada-valprint.c (val_print_packed_array_elements): Pass the
9978 correct struct value to val_print.
9979 (ada_val_print_1): Ditto.
9981 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9983 Don't lose embedded_offset in printing routines throughout.
9985 * valprint.h (val_print_array_elements): Change prototype.
9986 * valprint.c (val_print_array_elements): Add `embedded_offset'
9987 parameter, and adjust to pass it down to val_print, while passing
9988 `valaddr' or `address' unmodified. Take embedded_offset into
9989 account when checking repetitions.
9990 * c-valprint.c (c_val_print): Pass embedded_offset to
9991 val_print_array_elements instead of adjusting `valaddr' and
9993 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9994 embedded_offset to val_print_array_elements instead of adjusting
9996 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9997 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9998 val_print_array_elements and pascal_object_print_value_fields
9999 instead of adjusting `valaddr'.
10000 (pascal_object_print_value_fields): Add `offset' parameter, and
10002 (pascal_object_print_value): Add `offset' parameter, and adjust to
10004 (pascal_object_print_static_field): Use
10005 value_contents_for_printing/value_embedded_offset, rather than
10007 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10008 parameter, and adjust to use it. Use
10009 value_contents_for_printing/value_embedded_offset, rather than
10011 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10012 (ada_val_print_array): Add `offset' parameter, and adjust to use
10014 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10015 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10016 Instead work with offsets. Use
10017 value_contents_for_printing/value_embedded_offset, rather than
10018 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10019 and use value_from_pointer to extract a target pointer, rather
10020 than value_from_longest.
10021 (print_variant_part): Add `offset' parameter. Replace
10022 `outer_valaddr' parameter by a new `outer_offset' parameter.
10023 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10024 (ada_value_print): Use
10025 value_contents_for_printing/value_embedded_offset, rather than
10027 (print_record): Add `offset' parameter, and adjust to pass it
10029 (print_field_values): Add `offset' parameter. Replace
10030 `outer_valaddr' parameter by a new `outer_offset' parameter.
10031 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10032 Use value_contents_for_printing/value_embedded_offset, rather than
10034 * d-valprint.c (dynamic_array_type): Use
10035 value_contents_for_printing/value_embedded_offset, rather than
10037 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10038 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10039 (java_print_value_fields): Take `offset' into account. Don't
10040 re-adjust `valaddr'. Instead pass down adjusted offsets.
10041 (java_val_print): Take `embedded_offset' into account. Pass it to
10042 java_print_value_fields.
10043 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10044 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10045 down adjusted offsets.
10046 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10047 (f_val_print): Take `embedded_offset' into account.
10049 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10051 * inflow.c: Include "gdbcmd.h".
10052 (interactive_mode): New static global, moved here from top.c.
10053 (show_interactive_mode): New function, moved here from top.c.
10054 use gdb_has_a_terminal instead of input_from_terminal_p to
10055 determine the current mode.
10056 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10058 (_initialize_inflow): Add the "set/show interactive-mode"
10059 commands. Moved here from top.c, after having adjusted slightly
10061 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10063 (input_from_terminal_p): Remove handling of "interactive-mode"
10064 setting, moved to infow.c.
10065 (init_main): Remove creation of the "set/show interactive-mode"
10066 commands, moved to inflow.c.
10068 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10070 * NEWS: Add entry for native ia64-hpux support.
10072 2011-01-19 Tom Tromey <tromey@redhat.com>
10075 * thread.c (free_thread): Free 'name'.
10076 (print_thread_info): Emit thread name. Change CLI output.
10077 (thread_name_command): New function.
10078 (do_captured_thread_select): Emit newline.
10079 (_initialize_thread): Register 'thread name' command.
10080 * target.h (struct target_ops) <to_thread_name>: New field.
10081 (target_thread_name): New macro.
10082 * target.c (update_current_target): Handle to_thread_name.
10083 * python/py-infthread.c (thpy_get_name): New function.
10084 (thpy_set_name): Likewise.
10085 (thread_object_getset): Add "name".
10086 * linux-nat.c (linux_nat_thread_name): New function.
10087 (linux_nat_add_target): Set to_thread_name.
10088 * gdbthread.h (struct thread_info) <name>: New field.
10090 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10092 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10093 (ada_val_print_1): Likewise.
10095 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10097 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10098 upper limit address is not greater than the function end address
10099 when the upper limit could not be computed using the debugging
10102 2011-01-17 Tom Tromey <tromey@redhat.com>
10104 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10106 * utils.c: Include gdb_regex.h.
10107 (do_regfree_cleanup): New function.
10108 (make_regfree_cleanup): Likewise.
10109 (get_regcomp_error): Likewise.
10110 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10112 2011-01-17 Tom Tromey <tromey@redhat.com>
10114 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10115 re_compile_fastmap.
10117 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10119 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10120 for internal variables.
10121 (last_was_structop): New static variable.
10122 (COMPLETE): New token.
10123 (field_exp): New rule to group all '.' suffix handling.
10124 Add mark_struct_expression calls when approriate to be able
10125 to correctly find fields for completion.
10126 (yylex): Adapt to handle field completion and set INTVAR when
10129 2011-01-14 Yao Qi <yao@codesourcery.com>
10131 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10132 save_reggroup, restore_reggroup and all_reggroup.
10134 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10136 * ada-valprint. (ada_printchar): Use the correct type length
10137 in call to ada_emit_char.
10138 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10140 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10142 * solib-som.h (hpux_major_release): Declare variable here.
10143 * solib-som.c: Remove <sys/utsname.h> header.
10144 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10145 (hpux_major_release): Make global, change default value to
10146 DEFAULT_HPUX_MAJOR_RELEASE.
10147 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10148 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10149 Add "solib-som.h" header.
10150 (set_hpux_major_release): New function.
10151 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10153 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10155 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10157 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10159 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10160 new-line at end of warning message.
10161 (ia64_hpux_store_register): Remove trailing new-line at end of
10163 * ia64-hpux-tdep.c: Rephrase comment.
10164 * solib-ia64-hpux.c (struct dld_info): Change type of field
10165 dld_flags from "long long" to ULONGEST.
10167 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10169 * target.h (deprecated_child_ops): Delete declaration.
10170 * target.c (deprecated_child_ops): Delete definition.
10172 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10174 * Makefile.in (hpux-thread.o): Delete rule.
10175 * configure.ac: Don't check for HPUX DCE threads support.
10176 * configure, config.in: Regenerate.
10177 * hppa-hpux-nat.c (child_suppress_run): Delete.
10178 (hppa_hpux_child_can_run): Delete.
10179 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10180 * hpux-thread.c: Delete.
10182 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10184 * hpux-thread.c (hpux_pid_to_str): Delete.
10186 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10188 * ada-valprint.c (ada_emit_char): Remove strange code.
10189 Check that c is <= UCHAR_MAX before passing it to isascii.
10190 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10192 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10194 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10195 to the case where instream is stdin.
10197 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10199 * ia64-tdep.h (struct regcache): Forward declare.
10200 (struct ia64_infcall_ops): New struct type.
10201 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10203 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10204 Renames ia64_find_global_pointer.
10205 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10206 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10207 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10209 (ia64_infcall_ops): New static global constant.
10210 (ia64_gdbarch_init): Set tdep->infcall_ops.
10211 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10212 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10213 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10214 (ia64_hpux_dummy_code): New static global constant.
10215 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10216 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10217 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10219 (ia64_hpux_infcall_ops): New static global constant.
10220 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10221 for inferior function calls to work properly on ia64-hpux.
10223 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10225 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10226 * ia64-tdep.h (struct frame_info): forward declaration.
10227 (struct gdbarch_tdep): Add field size_of_register_frame.
10228 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10229 to determine the size of the register frame.
10230 (ia64_size_of_register_frame): New function.
10231 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10232 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10233 (IA64_HPUX_UREG_REASON): New macro.
10234 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10236 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10237 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10238 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10241 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10243 Add support for ia64-hpux.
10244 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10245 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10247 * configure.host: Add handling for ia64-hpux hosts. Add associated
10249 * configure.tgt: Add handling for ia64-hpux targets.
10250 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10251 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10252 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10254 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10256 [ttrace] Compute thread list immediately after attach.
10257 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10259 (inf_ttrace_attach): Use it.
10261 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10263 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10264 if we could not determine the frame's function address. Instead,
10265 use the frame's PC, and then continue.
10267 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10269 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10270 not already defined.
10272 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10274 * ia64-tdep.c (ia64_struct_type_p): New function.
10275 (ia64_extract_return_value): Handle integral values that are
10276 less than 8 bytes long.
10277 (ia64_push_dummy_call): Likewise.
10279 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10281 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10282 floatformat_ia64_ext.
10283 (floatformat_ia64_ext_big): New static const.
10284 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10286 2011-01-12 Tom Tromey <tromey@redhat.com>
10288 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10290 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10291 (mi_cmd_thread_list_ids): Likewise.
10292 (mi_cmd_data_list_changed_registers): Likewise.
10293 (mi_cmd_data_list_register_values): Likewise.
10294 (mi_cmd_data_write_register_values): Likewise.
10295 (mi_cmd_data_evaluate_expression): Likewise.
10296 (mi_cmd_data_read_memory): Likewise.
10297 (mi_cmd_data_read_memory_bytes): Likewise.
10298 (mi_cmd_data_write_memory): Likewise.
10299 (mi_cmd_enable_timings): Likewise.
10300 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10301 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10302 (mi_cmd_var_delete): Likewise.
10303 (mi_cmd_var_set_format): Likewise.
10304 (mi_cmd_var_show_format): Likewise.
10305 (mi_cmd_var_info_num_children): Likewise.
10306 (mi_cmd_var_list_children): Likewise.
10307 (mi_cmd_var_info_type): Likewise.
10308 (mi_cmd_var_info_expression): Likewise.
10309 (mi_cmd_var_show_attributes): Likewise.
10310 (mi_cmd_var_assign): Likewise.
10311 (mi_cmd_var_update): Likewise.
10312 (mi_cmd_enable_pretty_printing): Likewise.
10313 (mi_cmd_var_set_update_range): Likewise.
10314 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10316 (mi_cmd_target_file_put): Likewise.
10317 (mi_cmd_target_file_delete): Likewise.
10318 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10320 (mi_cmd_stack_info_depth): Likewise.
10321 (mi_cmd_stack_list_locals): Likewise.
10322 (mi_cmd_stack_list_args): Likewise.
10323 (mi_cmd_stack_select_frame): Likewise.
10324 (mi_cmd_stack_select_frame): Likewise.
10325 (mi_cmd_stack_info_frame): Likewise.
10326 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10328 (mi_cmd_file_list_exec_source_files): Likewise.
10329 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10330 (mi_cmd_env_cd): Likewise.
10331 (mi_cmd_env_path): Likewise.
10332 (mi_cmd_env_dir): Likewise.
10333 (mi_cmd_inferior_tty_show): Likewise.
10334 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10335 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10336 (mi_cmd_break_watch): Likewise.
10338 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10340 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10341 (ppc_linux_insert_hw_breakpoint): Likewise.
10342 (ppc_linux_remove_hw_breakpoint): Likewise.
10343 (ppc_linux_insert_watchpoint): Likewise.
10345 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10346 Jan Kratochvil <jan.kratochvil@redhat.com>
10348 PR fortran/11104 and DWARF unbound arrays detection.
10349 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10350 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10351 unspecified upper bound.
10352 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10353 variables array_size_array, tmp_type and offset_item. New variable
10354 array. Remove call to f77_get_upperbound. New variables array_type
10355 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10356 the final call to deprecated_set_value_type.
10358 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10360 Make value allocations more lazy.
10361 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10362 instead of allocate_value and set_value_lazy when possible.
10363 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10364 instead of allocate_value and set_value_lazy.
10365 * findvar.c (value_of_register_lazy): Likewise.
10366 (read_var_value): Remove V preallocation, call just check_typedef in
10367 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10368 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10369 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10370 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10371 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10372 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10373 the end, remove set_value_lazy there.
10374 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10375 instead of allocate_value and set_value_lazy when possible.
10376 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10377 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10378 of allocate_value and set_value_lazy.
10379 (value_from_contents_and_address): Use allocate_value_lazy instead of
10380 allocate_value and set_value_lazy when possible.
10382 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10384 * disasm.c (dump_insns): Support dumping opcodes for MI.
10385 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10386 dumping of instruction opcodes.
10388 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10390 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10393 2011-01-11 Tom Tromey <tromey@redhat.com>
10395 * thread.c (do_captured_thread_select): Emit newline before
10398 2011-01-11 Michael Snyder <msnyder@vmware.com>
10400 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10401 * score-tdep.c: Ditto.
10402 * score-tdep.h: Ditto.
10403 * ser-base.c: Ditto.
10404 * ser-go32.c: Ditto.
10407 * ser-mingw.c: Ditto.
10408 * ser-pipe.c: Ditto.
10409 * ser-tcp.c: Ditto.
10410 * ser-unix.c: Ditto.
10411 * sh64-tdep.c: Ditto.
10412 * shnbsd-nat.c: Ditto.
10413 * sh-tdep.c: Ditto.
10414 * sh-tdep.h: Ditto.
10416 * solib-darwin.c: Ditto.
10417 * solib-frv.c: Ditto.
10419 * solib-irix.c: Ditto.
10420 * solib-osf.c: Ditto.
10421 * solib-pa64.c: Ditto.
10422 * solib-som.c: Ditto.
10423 * solib-spu.c: Ditto.
10424 * solib-sunos.c: Ditto.
10425 * solib-svr4.c: Ditto.
10427 * sol-thread.c: Ditto.
10428 * somread.c: Ditto.
10431 * sparc64-linux-tdep.c: Ditto.
10432 * sparc64-tdep.c: Ditto.
10433 * sparc-linux-nat.c: Ditto.
10434 * sparc-linux-tdep.c: Ditto.
10435 * sparc-sol2-nat.c: Ditto.
10436 * sparc-sol2-tdep.c: Ditto.
10437 * sparc-tdep.c: Ditto.
10438 * sparc-tdep.h: Ditto.
10439 * spu-tdep.c: Ditto.
10440 * stabsread.c: Ditto.
10441 * stabsread.h: Ditto.
10443 * symfile.c: Ditto.
10444 * symfile.h: Ditto.
10445 * symmisc.c: Ditto.
10449 * target-descriptions.c: Ditto.
10450 * target-descriptions.h: Ditto.
10452 * target-memory.c: Ditto.
10453 * terminal.h: Ditto.
10456 * tracepoint.c: Ditto.
10457 * tracepoint.h: Ditto.
10458 * trad-frame.h: Ditto.
10459 * typeprint.c: Ditto.
10461 2011-01-11 Michael Snyder <msnyder@vmware.com>
10463 * ui-file.c: Comment cleanup, mostly periods and spaces.
10464 * ui-file.h: Ditto.
10468 * v850-tdep.c: Ditto.
10469 * valarith.c: Ditto.
10471 * valprint.c: Ditto.
10472 * valprint.h: Ditto.
10477 * vax-tdep.c: Ditto.
10480 * version.h: Ditto.
10481 * windows-nat.c: Ditto.
10482 * windows-tdep.c: Ditto.
10483 * xcoffread.c: Ditto.
10484 * xcoffsolib.c: Ditto.
10485 * xml-support.c: Ditto.
10486 * xstormy16-tdep.c: Ditto.
10487 * xtensa-tdep.c: Ditto.
10488 * xtensa-tdep.h: Ditto.
10490 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10492 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10493 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10495 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10496 Thiago Jung Bauermann <bauerman@br.ibm.com>
10498 Implement support for PowerPC BookE ranged watchpoints.
10500 (struct breakpoint_ops) <resources_needed>: New method.
10501 Initialize to NULL in all existing breakpoint_ops instances.
10502 (struct breakpoint) <exact>: New field.
10503 (target_exact_watchpoints): Declare external global.
10504 * breakpoint.c (target_exact_watchpoints): New global flag.
10505 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10506 b->enable_state to bp_enabled before calling
10507 hw_watchpoint_used_count.
10508 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10509 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10511 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10512 if the watchpoint is exact.
10513 (resources_needed_watchpoint): New function.
10514 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10515 (watch_command_1): Set b->exact if the user asked for an exact
10516 watchpoint and one can be set.
10517 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10518 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10519 the user asks for an exact watchpoint and one can be set. Return
10520 number of needed debug registers to watch the expression.
10521 * gdbtypes.c (is_scalar_type): New function, based on
10522 valprint.c:scalar_type_p.
10523 (is_scalar_type_recursive): New function.
10524 * gdbtypes.h (is_scalar_type_recursive): Declare.
10525 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10526 handle regions when ranged watchpoints are available.
10527 (create_watchpoint_request): New function.
10528 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10529 create_watchpoint_request.
10530 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10531 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10532 `set powerpc' and `show powerpc' commands.
10533 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10534 Mention documentation comment in the target macro.
10535 (target_region_ok_for_hw_watchpoint): Document return value.
10537 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10539 * breakpoint.c (update_watchpoint): Decide on using a software or
10540 hardware watchpoint after the bp_locations are created.
10542 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10544 Convert hardware watchpoints to use breakpoint_ops.
10545 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10546 <insert_location>: ... this. Return int instead of void.
10547 Accept pointer to struct bp_location instead of pointer to
10548 struct breakpoint. Adapt all implementations.
10549 (breakpoint_ops) <remove>: Rename to...
10550 <remove_location>: ... this. Accept pointer to struct bp_location
10551 instead of pointer to struct breakpoint. Adapt all implementations.
10552 * breakpoint.c (insert_catchpoint): Delete function.
10553 (insert_bp_location): Call the watchpoint or catchpoint's
10554 breakpoint_ops.insert method.
10555 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10556 breakpoint_ops.remove method.
10557 (insert_watchpoint, remove_watchpoint): New functions.
10558 (watchpoint_breakpoint_ops): New structure.
10559 (watch_command_1): Initialize the OPS field.
10560 * inf-child.c (inf_child_insert_fork_catchpoint)
10561 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10562 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10563 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10565 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10566 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10567 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10568 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10569 * target.c (update_current_target): Change default implementation of
10570 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10571 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10572 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10573 to_set_syscall_catchpoint to return_one.
10574 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10575 (debug_to_insert_exec_catchpoint): Report return value.
10576 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10577 (to_insert_exec_catchpoint): Change declaration to return int instead
10580 2011-01-11 Michael Snyder <msnyder@vmware.com>
10582 * arm-tdep.c: Internationalization.
10584 * charset.c: Ditto.
10585 * fork-child.c: Ditto.
10586 * nto-procfs.c: Ditto.
10587 * ppc-sysv-tdep.c: Ditto.
10589 * remote-mips.c: Ditto.
10591 * rs6000-nat.c: Ditto.
10592 * rs6000-tdep.c: Ditto.
10596 * xml-support.c: Ditto.
10597 * mi/mi-cmd-break.c: Ditto.
10598 * mi/mi-cmd-var.c: Ditto.
10599 * mi/mi-interp.c: Ditto.
10600 * mi/mi-main.c: Ditto.
10602 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10604 * remote-sim.c (gdbsim_store_register): Update API to
10605 sim_store_register to check more error conditions.
10607 2011-01-10 Michael Snyder <msnyder@vmware.com>
10609 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10610 * nto-tdep.c: Ditto.
10611 * nto-tdep.h: Ditto.
10612 * objc-exp.y: Ditto.
10613 * objc-lang.c: Ditto.
10614 * objfiles.c: Ditto.
10615 * objfiles.h: Ditto.
10616 * observer.c: Ditto.
10617 * opencl-lang.c: Ditto.
10620 * parser-defs.h: Ditto.
10623 * posix-hdep.c: Ditto.
10624 * ppcbug-rom.c: Ditto.
10625 * ppc-linux-nat.c: Ditto.
10626 * ppc-linux-tdep.c: Ditto.
10627 * ppc-linux-tdep.h: Ditto.
10628 * ppcnbsd-tdep.c: Ditto.
10629 * ppcobsd-tdep.c: Ditto.
10630 * ppcobsd-tdep.h: Ditto.
10631 * ppc-sysv-tdep.c: Ditto.
10632 * ppc-tdep.h: Ditto.
10633 * printcmd.c: Ditto.
10634 * proc-abi.c: Ditto.
10635 * proc-flags.c: Ditto.
10637 * proc-utils.h: Ditto.
10638 * progspace.h: Ditto.
10639 * prologue-value.c: Ditto.
10640 * prologue-value.h: Ditto.
10641 * psympriv.h: Ditto.
10642 * psymtab.c: Ditto.
10643 * p-typeprint.c: Ditto.
10644 * p-valprint.c: Ditto.
10645 * ravenscar-sparc-thread.c: Ditto.
10646 * ravenscar-thread.c: Ditto.
10647 * ravenscar-thread.h: Ditto.
10649 * regcache.c: Ditto.
10650 * regcache.h: Ditto.
10652 * remote-fileio.c: Ditto.
10653 * remote-fileio.h: Ditto.
10655 * remote-m32r-sdi.c: Ditto.
10656 * remote-mips.c: Ditto.
10657 * remote-sim.c: Ditto.
10658 * rs6000-aix-tdep.c: Ditto.
10659 * rs6000-nat.c: Ditto.
10660 * rs6000-tdep.c: Ditto.
10662 2011-01-10 Michael Snyder <msnyder@vmware.com>
10664 * charset.c (validate): Internationalization.
10665 * coffread.c (read_one_sym): Ditto.
10666 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10667 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10668 * inflow.c (new_tty): Ditto.
10669 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10670 * m32c-tdep.c (m32c_return_value): Ditto.
10671 * mep-tdep.c (mep_store_return_value): Ditto.
10672 * score-tdep.c (score7_fetch_insn): Ditto.
10673 * ser-mingw.c (pipe_windows_open): Ditto.
10674 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10675 * spu-tdep.c (spu_register_type): Ditto.
10676 * tracepoint.c (trace_find_command): Ditto.
10677 * valarith.c (value_pos): Ditto.
10679 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10681 * ada-valprint.c (printstr): Minor comment reformatting.
10683 2011-01-08 Michael Snyder <msnyder@vmware.com>
10685 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10688 2011-01-08 Michael Snyder <msnyder@vmware.com>
10690 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10691 * hppa-hpux-tdep.c: Ditto.
10692 * hppa-linux-nat.c: Ditto.
10693 * hppa-linux-tdep.c: Ditto.
10694 * hppanbsd-tdep.c: Ditto.
10695 * hppa-tdep.c: Ditto.
10696 * hppa-tdep.h: Ditto.
10697 * hpux-thread.c: Ditto.
10698 * i386-cygwin-tdep.c: Ditto.
10699 * i386-darwin-nat.c: Ditto.
10700 * i386gnu-nat.c: Ditto.
10701 * i386-linux-nat.c: Ditto.
10702 * i386-linux-tdep.c: Ditto.
10703 * i386-nat.c: Ditto.
10704 * i386-nat.h: Ditto.
10705 * i386nbsd-tdep.c: Ditto.
10706 * i386-sol2-nat.c: Ditto.
10707 * i386-stub.c: Ditto.
10708 * i386-tdep.c: Ditto.
10709 * i386-tdep.h: Ditto.
10710 * i387-tdep.c: Ditto.
10711 * ia64-linux-nat.c: Ditto.
10712 * ia64-linux-tdep.c: Ditto.
10713 * ia64-tdep.c: Ditto.
10714 * infcall.c: Ditto.
10715 * infcall.h: Ditto.
10717 * inferior.c: Ditto.
10718 * inferior.h: Ditto.
10719 * infloop.c: Ditto.
10722 * interps.c: Ditto.
10723 * interps.h: Ditto.
10724 * iq2000-tdep.c: Ditto.
10725 * irix5-nat.c: Ditto.
10729 * jv-lang.c: Ditto.
10730 * jv-lang.h: Ditto.
10731 * jv-typeprint.c: Ditto.
10732 * jv-valprint.c: Ditto.
10733 * language.c: Ditto.
10734 * language.h: Ditto.
10735 * linespec.c: Ditto.
10736 * linux-fork.c: Ditto.
10737 * linux-nat.c: Ditto.
10738 * linux-thread-db.c: Ditto.
10739 * lm32-tdep.c: Ditto.
10741 2011-01-08 Michael Snyder <msnyder@vmware.com>
10743 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10744 * m2-lang.c: Ditto.
10745 * m2-typeprint.c: Ditto.
10746 * m2-valprint.c: Ditto.
10747 * m32c-tdep.c: Ditto.
10748 * m32r-linux-nat.c: Ditto.
10749 * m32r-rom.c: Ditto.
10750 * m32r-tdep.c: Ditto.
10751 * m32r-tdep.h: Ditto.
10752 * m68hc11-tdep.c: Ditto.
10753 * m58klinux-nat.c: Ditto.
10754 * m68k-tdep.c: Ditto.
10755 * m88k-tdep.c: Ditto.
10756 * m88k-tdep.h: Ditto.
10757 * machoread.c: Ditto.
10758 * macrocmd.c: Ditto.
10759 * macroexp.c: Ditto.
10760 * macrotab.c: Ditto.
10763 * mdebugread.c: Ditto.
10764 * mdebugread.h: Ditto.
10765 * memattr.c: Ditto.
10766 * memattr.h: Ditto.
10767 * memory-map.h: Ditto.
10768 * mep-tdep.c: Ditto.
10769 * microblaze-rom.c: Ditto.
10770 * microblaze-tdep.c: Ditto.
10771 * minsyms.c: Ditto.
10772 * mips-irix-tdep.c: Ditto.
10773 * mips-linux-nat.c: Ditto.
10774 * mips-linux-tdep.c: Ditto.
10775 * mips-linux-tdep.h: Ditto.
10776 * mipsnbsd-nat.c: Ditto.
10777 * mipsnbsd-tdep.c: Ditto.
10778 * mipsread.c: Ditto.
10779 * mips-tdep.c: Ditto.
10780 * mips-tdep.h: Ditto.
10781 * mn10300-linux-tdep.c: Ditto.
10782 * mn10300-tdep.c: Ditto.
10783 * mn10300-tdep.h: Ditto.
10784 * monitor.c: Ditto.
10785 * monitor.h: Ditto.
10786 * moxie-tdep.c: Ditto.
10787 * moxie-tdep.h: Ditto.
10788 * mt-tdep.c: Ditto.
10790 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10792 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10794 2011-01-08 Robert Millan <rmh@gnu.org>
10796 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10798 2011-01-07 Michael Snyder <msnyder@vmware.com>
10800 * charset.c (_initialize_charset): Fix typo in string.
10802 2011-01-07 Michael Snyder <msnyder@vmware.com>
10804 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10806 * tui/tui-layout.c (tui_set_layout_for_display_command):
10807 Split line so that operator goes to beginning of line.
10808 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10809 assignment out of if statement.
10811 2011-01-07 Michael Snyder <msnyder@vmware.com>
10813 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10814 * ada-lang.h: Ditto.
10815 * ada-tasks.c: Ditto.
10816 * ada-valprint.c: Ditto.
10817 * aix-threads.c: Ditto.
10818 * alpha-linux-nat.c: Ditto.
10819 * alpha-linux-tdep.c: Ditto.
10820 * alpha-mdebug-tdep.c: Ditto.
10821 * alpha-nat.c: Ditto.
10822 * alpha-osf1-tdep.c: Ditto.
10823 * alpha-tdep.c: Ditto.
10824 * alphabsd-nat.c: Ditto.
10825 * alphabsd-tdep.c: Ditto.
10826 * amd64-darwin-tdep.c: Ditto.
10827 * amd64-linux-nat.c: Ditto.
10828 * amd64-linux-tdep.c: Ditto.
10829 * amd64-sol2-tdep.c: Ditto.
10830 * amd64-tdep.c: Ditto.
10831 * amd64-fbsd-tdep.c: Ditto.
10832 * amd64-nbsd-tdep.c: Ditto.
10833 * amd64-obsd-tdep.c: Ditto.
10834 * amd64-linux-nat.c: Ditto.
10835 * amd64-linux-tdep.c: Ditto.
10836 * arm-tdep.c: Ditto.
10837 * arm-tdep.h: Ditto.
10838 * armnbsd-nat.c: Ditto.
10839 * avr-tdep.c: Ditto.
10840 * bfin-tdep.c: Ditto.
10841 * bsd-kvm.c: Ditto.
10842 * c-typeprintc: Ditto.
10843 * c-valprint.c: Ditto.
10844 * coff-pe-read.h: Ditto.
10845 * coffreead.c: Ditto.
10846 * cris-tdep.c: Ditto.
10848 * darwin-nat-info.c: Ditto.
10849 * darwin-nat.c: Ditto.
10850 * dbug-rom.c: Ditto.
10851 * dbxread.c: Ditto.
10854 * dec-thread.c: Ditto.
10856 * demangle.c: Ditto.
10857 * dicos-tdep.c: Ditto.
10858 * dictionary.c: Ditto.
10859 * dictionary.h: Ditto.
10860 * dink32-rom.c: Ditto.
10862 * doublest.c: Ditto.
10864 * dummy-frame.c: Ditto.
10865 * dwarf2-frame.c: Ditto.
10866 * dwarf2expr.c: Ditto.
10867 * dwarf2loc.c: Ditto.
10868 * dwarf2read.c: Ditto.
10869 * elfread.c: Ditto.
10870 * environ.c: Ditto.
10872 * event-top.h: Ditto.
10873 * exceptions.c: Ditto.
10874 * exceptions.h: Ditto.
10876 * expprint.c: Ditto.
10877 * expression.h: Ditto.
10881 * f-typeprint.c: Ditto.
10882 * f-valprint.c: Ditto.
10883 * fbsd-nat.c: Ditto.
10884 * findvar.c: Ditto.
10885 * fork-child.c: Ditto.
10888 * frv-linux-tdep.c: Ditto.
10889 * frv-tdep.c: Ditto.
10891 * gdb-stabs.h: Ditto.
10892 * gdb_assert.h: Ditto.
10893 * gdb_string.h: Ditto.
10894 * gdb_thread_db.h: Ditto.
10895 * gdb_wait.h: Ditto.
10896 * gdbarch.sh: Ditto.
10897 * gdbcore.h: Ditto.
10898 * gdbthread.h: Ditto.
10899 * gdbtypes.c: Ditto.
10900 * gdbtypes.h: Ditto.
10901 * gnu-nat.c: Ditto.
10902 * gnu-nat.h: Ditto.
10903 * gnu-v2-abi.c: Ditto.
10904 * gnu-v3-abi.c: Ditto.
10905 * go32-nat.c: Ditto.
10906 * gdbarch.c: Regenerate.
10907 * gdbarch.h: Regenerate.
10909 2011-01-07 Michael Snyder <msnyder@vmware.com>
10911 * ax-gdb.c: Adjust some long output strings.
10912 * breakpoint.c: Ditto.
10913 * charset.c: Ditto.
10915 * infcall.c: Ditto.
10917 * linux-nat.c: Ditto.
10918 * solib-pa64.c: Ditto.
10919 * solib-som.c: Ditto.
10921 2011-01-06 Tom Tromey <tromey@redhat.com>
10925 * python/python.c (GdbMethods): Add "newest_frame" method.
10926 * python/python-internal.h (gdbpy_newest_frame): Declare.
10927 * python/py-frame.c (gdbpy_newest_frame): New function.
10929 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10931 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10932 * jit.c (jit_debug): New variable.
10933 (show_jit_debug): New function.
10934 (struct target_buffer): Use ULONGEST.
10935 (bfd_open_from_target_memory): Likewise.
10936 (jit_register_code, jit_inferior_init): Add debug output.
10937 (_initialize_jit): Register "debug jit" command.
10939 2011-01-06 Tom Tromey <tromey@redhat.com>
10941 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10942 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10945 2011-01-06 Tom Tromey <tromey@redhat.com>
10947 * python/py-frame.c (frapy_block): Use get_frame_block.
10949 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10951 Do not stop on SIGPRIO signals by default
10952 * infrun.c (_initialize_infrun): Unset signal_stop and
10953 signal_print for TARGET_SIGNAL_PRIO.
10955 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10957 * ada-tasks.c: Fix style violation in comment.
10959 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10961 * linespec.c (decode_compound, find_method): Remove trailing \n
10962 at end of error string.
10963 * solib-irix.c (irix_current_sos): Likewise.
10964 * varobj.c (uninstall_variable): Likewise.
10966 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10968 * copyright.py: New script.
10969 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10970 Launch emacs without exec'ing. Call copyright.py afterwards.
10972 2011-01-05 Michael Snyder <msnyder@vmware.com>
10974 * addrmap.c: Shorten lines of >= 80 columns.
10975 * arch-utils.c: Ditto.
10976 * arch-utils.h: Ditto.
10978 * ax-general.c: Ditto.
10980 * blockframe.c: Ditto.
10981 * breakpoint.c: Ditto.
10982 * buildsym.c: Ditto.
10984 * c-typeprint.c: Ditto.
10985 * charset.c: Ditto.
10986 * coffread.c: Ditto.
10987 * command.h: Ditto.
10988 * corelow.c: Ditto.
10990 * cp-namespace.c: Ditto.
10991 * cp-support.c: Ditto.
10992 * dbug-rom.c: Ditto.
10993 * dbxread.c: Ditto.
10997 * dictionary.c: Ditto.
10999 * doublest.c: Ditto.
11000 * dwarf2-frame.c: Ditto.
11001 * dwarf2expr.c: Ditto.
11002 * dwarf2loc.c: Ditto.
11003 * dwarf2read.c: Ditto.
11004 * elfread.c: Ditto.
11006 * event-loop.c: Ditto.
11007 * event-loop.h: Ditto.
11008 * exceptions.h: Ditto.
11010 * expprint.c: Ditto.
11011 * expression.h: Ditto.
11013 * f-valprint.c: Ditto.
11014 * findcmd.c: Ditto.
11015 * frame-base.c: Ditto.
11016 * frame-unwind.c: Ditto.
11017 * frame-unwind.h: Ditto.
11021 * gdb-stabs.h: Ditto.
11022 * gdb_assert.h: Ditto.
11023 * gdb_dirent.h: Ditto.
11024 * gdb_obstack.h: Ditto.
11025 * gdbcore.h: Ditto.
11026 * gdbtypes.c: Ditto.
11027 * gdbtypes.h: Ditto.
11028 * inf-ttrace.c: Ditto.
11029 * infcall.c: Ditto.
11033 * inline-frame.h: Ditto.
11034 * language.c: Ditto.
11035 * language.h: Ditto.
11036 * libunwind-frame.c: Ditto.
11037 * libunwind-frame.h: Ditto.
11038 * linespec.c: Ditto.
11039 * linux-nat.c: Ditto.
11040 * linux-nat.h: Ditto.
11041 * linux-thread-db.c: Ditto.
11042 * machoread.c: Ditto.
11043 * macroexp.c: Ditto.
11044 * macrotab.c: Ditto.
11047 * mdebugread.c: Ditto.
11048 * memattr.c: Ditto.
11049 * minsyms.c: Ditto.
11050 * monitor.c: Ditto.
11051 * monitor.h: Ditto.
11052 * objfiles.c: Ditto.
11053 * objfiles.h: Ditto.
11055 * p-typeprint.c: Ditto.
11056 * p-valprint.c: Ditto.
11058 * printcmd.c: Ditto.
11059 * proc-events.c: Ditto.
11061 * progspace.c: Ditto.
11062 * progspace.h: Ditto.
11063 * psympriv.h: Ditto.
11064 * psymtab.c: Ditto.
11066 * regcache.c: Ditto.
11067 * regcache.h: Ditto.
11068 * remote-fileio.c: Ditto.
11070 * ser-mingw.c: Ditto.
11071 * ser-tcp.c: Ditto.
11072 * ser-unix.c: Ditto.
11075 * solib-frv.c: Ditto.
11076 * solib-irix.c: Ditto.
11077 * solib-osf.c: Ditto.
11078 * solib-pa64.c: Ditto.
11079 * solib-som.c: Ditto.
11080 * solib-sunos.c: Ditto.
11081 * solib-svr4.c: Ditto.
11082 * solib-target.c: Ditto.
11084 * somread.c: Ditto.
11086 * stabsread.c: Ditto.
11087 * stabsread.c: Ditto.
11090 * symfile-mem.c: Ditto.
11091 * symfile.c: Ditto.
11092 * symfile.h: Ditto.
11093 * symmisc.c: Ditto.
11096 * target-descriptions.c: Ditto.
11097 * target-memory.c: Ditto.
11100 * terminal.h: Ditto.
11103 * tracepoint.c: Ditto.
11104 * tracepoint.h: Ditto.
11105 * ui-file.c: Ditto.
11106 * ui-file.h: Ditto.
11108 * user-regs.c: Ditto.
11109 * user-regs.h: Ditto.
11111 * valarith.c: Ditto.
11113 * valprint.c: Ditto.
11114 * valprint.h: Ditto.
11119 * xcoffread.c: Ditto.
11120 * xcoffsolib.c: Ditto.
11121 * xcoffsolib.h: Ditto.
11122 * xml-syscall.c: Ditto.
11123 * xml-tdesc.c: Ditto.
11125 2011-01-05 Michael Snyder <msnyder@vmware.com>
11127 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11128 * cli/cli-decode.c: Ditto.
11129 * cli/cli-dump.c: Ditto.
11130 * cli/cli-logging.c: Ditto.
11131 * cli/cli-script.c: Ditto.
11132 * cli/cli-setshow.c: Ditto.
11133 * common/signals.c: Ditto.
11134 * mi/mi-cmd-break.c: Ditto.
11135 * mi/mi-cmd-disas.c: Ditto.
11136 * mi/mi-cmd-stack.c: Ditto.
11137 * mi/mi-cmd-var.c: Ditto.
11138 * mi/mi-cmds.c: Ditto.
11139 * mi/mi-common.h: Ditto.
11140 * mi/mi-console.c: Ditto.
11141 * mi/mi-interp.c: Ditto.
11142 * mi/mi-main.c: Ditto.
11143 * osf-share/cma_attr.c: Ditto.
11144 * osf-share/cma_deb_core.h: Ditto.
11145 * osf-share/cma_debug_client.h: Ditto.
11146 * osf-share/cma_handle.h: Ditto.
11147 * osf-share/cma_mutex.h: Ditto.
11148 * osf-share/cma_stack_int.h: Ditto.
11149 * osf-share/cma_tcb_defs.h: Ditto.
11150 * python/py-auto-load.c: Ditto.
11151 * python/py-breakpoint.c: Ditto.
11152 * python/py-cmd.c: Ditto.
11153 * python/py-frame.c: Ditto.
11154 * python/py-objfile.c: Ditto.
11155 * python/py-param.c: Ditto.
11156 * python/py-progspace.c: Ditto.
11157 * python/py-symbol.c: Ditto.
11158 * python/py-value.c: Ditto.
11159 * python/python-internal.h: Ditto.
11160 * python/python.c: Ditto.
11161 * tui/tui-data.c: Ditto.
11162 * tui/tui-disasm.c: Ditto.
11163 * tui/tui-hooks.c: Ditto.
11164 * tui/tui-io.c: Ditto.
11165 * tui/tui-layout.c: Ditto.
11166 * tui/tui-regs.c: Ditto.
11167 * tui/tui-source.c: Ditto.
11168 * tui/tui-stack.c: Ditto.
11169 * tui/tui-win.c: Ditto.
11170 * tui/tui-windata.c: Ditto.
11171 * tui/tui-winsource.c: Ditto.
11173 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11175 * configure.ac, gdb.1: Copyright year update.
11177 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11179 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11180 this_pc_in_block, morestack_msym and morestack_name. Check for
11181 "__morestack" minimal symbol there.
11183 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11185 * symfile.c (find_sym_fns): Add call to dont_repeat.
11187 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11189 Copyright year update in most files (performed by copyright.sh).
11191 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11193 * top.c (print_gdb_version): Update copyright year in version output.
11195 For older changes see ChangeLog-2010.
11201 version-control: never