1 2011-11-14 Stan Shebs <stan@codesourcery.com>
2 Kwok Cheung Yeung <kcy@codesourcery.com>
4 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
5 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
6 the minimum instruction size for fast tracepoints.
7 * target.h (struct target_ops): Add new method
8 to_get_min_fast_tracepoint_insn_len.
9 (target_get_min_fast_tracepoint_insn_len): New.
10 * target.c (update_current_target): Set up new target operation.
11 * remote.c (remote_write_bytes_aux): Fix typo.
12 (remote_get_min_fast_tracepoint_insn_len): New.
13 (init_remote_ops): Initialize new field.
15 2011-11-14 Tom Tromey <tromey@redhat.com>
17 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
18 (encode_actions): Likewise.
20 2011-11-14 Yao Qi <yao@codesourcery.com>
22 * remote.c (struct remote_state): <install_in_trace> new field.
23 (PACKET_InstallInTrace): New enum value.
24 (remote_install_in_trace_feature): Support InstallInTrace.
25 (remote_supports_install_in_trace): Likewise.
26 (remote_protocol_features): Likewise.
27 (_initialize_remote): Likewise.
28 (remote_can_download_tracepoint): New.
29 * target.h (struct target): New field
30 `to_can_download_tracepoint'.
31 (target_can_download_tracepoint): New macro.
32 * target.c (update_current_target): Update.
33 * breakpoint.h (struct bp_location): Add comment on field
35 (should_be_inserted): Don't differentiate breakpoint and tracepoint.
36 (remove_breakpoints): Don't remove tracepoints.
37 (tracepoint_locations_match ): New.
38 (breakpoint_locations_match): Call it.
39 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
40 (download_tracepoint_locations): New.
41 (update_global_location_list): Call it.
42 * tracepoint.c (find_matching_tracepoint): Delete.
43 (find_matching_tracepoint_location): Renamed from
44 find_matching_tracepoint. Return bp_location rather than
46 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
49 2011-11-14 Yao Qi <yao@codesourcery.com>
51 * target.h (struct target): <to_download_tracepoint> Change type
52 of parameter from tracepoint to bp_location.
53 * target.c (update_current_target): Update.
54 * tracepoint.c (start_tracing): Update.
55 * remote.c (remote_download_tracepoint): Remove loop for each location
58 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
60 * i386-nat.c (i386_insert_hw_breakpoint): Call
61 i386_update_inferior_debug_regs.
62 (i386_remove_hw_breakpoint): Likewise.
64 2011-11-14 Yao Qi <yao@codesourcery.com>
66 * breakpoint.c (init_raw_breakpoint): Call
67 add_location_to_breakpoint to replace duplicated code.
68 (add_location_to_breakpoint): Adjust the breakpoint's
69 address prior to allocating a location.
71 2011-11-12 Matt Rice <ratmice@gmail.com>
73 * macrocmd.c (macro_no_macro_info): New function.
74 (macro_expand_command): Use macro_no_macro_info.
75 (macro_expand_once_command): Ditto.
76 (info_macro_command): Add argument processing,
77 move info_definitions_command here.
78 (_initialize_macrocmd): Remove info definitions command.
79 Add arguments to info macro help text.
80 * NEWS: Replace info definitions command with new info macro options.
82 2011-11-11 Keith Seitz <keiths@redhat.com>
85 * linespec.c (locate_first_half): Keep ':' if it looks
86 like it could be part of a Windows path starting with
89 2011-11-10 Pedro Alves <pedro@codesourcery.com>
91 * linux-nat.c (linux_nat_wait): Don't force waking up the event
92 loop when returning a TARGET_WAITKIND_NO_RESUMED.
94 2011-11-10 Pedro Alves <pedro@codesourcery.com>
96 * target.c (target_waitstatus_to_string): Handle
97 TARGET_WAITKIND_NO_RESUMED.
99 2011-11-10 Doug Evans <dje@google.com>
101 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
103 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
104 (map_partial_symbol_filenames): Ditto. All callers updated.
105 * psymtab.h (map_partial_symbol_filenames): Update prototype.
106 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
107 parameter need_fullname.
109 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
110 * source.c (symtab_to_fullname): Ditto.
112 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
113 * gdb-demangle.h: ... here. New file.
114 * demangle.c: #include "gdb-demangle.h".
115 (_initialize_demangler): Use initialize_file_ftype for prototype.
116 Move "set demangle" and "set asm-demangle" parameters here from utils.c
117 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
119 * utils.c: Update. #include "gdb-demangle.h".
120 * symtab.h (asm_demangle): Delete.
121 (demangle): Move declaration next to use.
122 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
123 * dwarf2read.c: #include "gdb-demangle.h".
124 * gnu-v2-abi.c: Ditto.
125 * jv-typeprint.c: Ditto.
126 * mdebugread.c: Ditto.
127 * p-typeprint.c: Ditto.
128 * stabsread.c: Ditto.
130 (asm_demangle): Delete declaration.
131 * tui/tui-stack.c: #include "gdb-demangle.h".
133 * python/py-type.c (typy_fields_items): Call check_typedef.
135 2011-11-10 Joel Brobecker <brobecker@adacore.com>
137 * findvar.c (read_frame_register_value): Read the correct bytes
138 from registers on big-endian architectures.
140 2011-11-10 Tom Tromey <tromey@redhat.com>
142 * procfs.c (load_syscalls): Make a cleanup.
143 (open_procinfo_files): fd==0 is ok.
145 2011-11-10 Joel Brobecker <brobecker@adacore.com>
147 * procfs.c (iterate_over_mappings): Call do_cleanups before
150 2011-11-09 Doug Evans <dje@google.com>
152 * gdbtypes.c (check_typedef): Document that this function can
155 2011-11-09 Tom Tromey <tromey@redhat.com>
158 * valops.c (value_full_object): Return early if real type is
159 smaller than the enclosing type.
161 2011-11-08 Yao Qi <yao@codesourcery.com>
163 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
165 2011-11-08 Meador Inge <meadori@codesourcery.com>
167 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
168 register when the frame can't be determined.
169 * arm-tdep.c (arm_analyze_prologue): Ditto.
171 2011-11-07 Stan Shebs <stan@codesourcery.com>
173 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
175 2011-11-07 Joel Brobecker <brobecker@adacore.com>
177 * infrun.c (handle_inferior_event): Minor reformatting.
179 2011-11-05 Doug Evans <dje@google.com>
181 * source.c (forget_cached_source_info_for_objfile): Move call to
182 objfile->sf->qf->forget_cached_source_info outside of
183 ALL_OBJFILE_SYMTABS loop.
184 (forget_cached_source_info): Delete unused variable `s'.
186 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
188 * i386-nat.c (dr_ref_count): Remove unused variable.
190 2011-11-05 Doug Evans <dje@google.com>
192 * main.c (captured_main): Set lim_at_start before calling
193 make_command_stats_cleanup.
195 2011-11-04 Doug Evans <dje@google.com>
197 * utils.c: #include "timeval-utils.h".
198 (cmd_stats): Rename start_time to start_cpu_time.
199 New member start_wall_time.
200 (report_command_stats): Report wall time.
201 (make_command_stats_cleanup): Record start wall time.
203 2011-11-04 Tom Tromey <tromey@redhat.com>
205 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
207 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
209 * coff-pe-read.c: Include defs.h before bfd.h.
211 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
215 * python/python.c (python_run_simple_file): Expand tilde in path.
217 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
221 * python/py-type.c (typy_lookup_type): Do not return a type in
222 an exception handler.
224 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
225 Eli Zaretskii <eliz@gnu.org>
227 * linux-nat.c (_initialize_linux_nat): Improve help
228 for `info proc stat', `info proc status', `info proc cwd',
229 `info proc cmdline' and `info proc exe'.
231 2011-11-02 Stan Shebs <stan@codesourcery.com>
233 String collection for tracepoints.
234 * NEWS: Mention string collection.
235 * common/ax.def (tracenz): New bytecode.
236 * ax-gdb.h (trace_string_kludge): Declare.
237 * ax-gdb.c: Include valprint.h and c-lang.h.
238 (trace_string_kludge): New global.
239 (gen_traced_pop): Add string case.
240 (agent_command): Add string case.
241 * tracepoint.h (decode_agent_options): Declare.
242 * tracepoint.c: Include cli-utils.h.
243 (decode_agent_options): New function.
244 (validate_actionline): Call it.
245 (encode_actions_1): Ditto.
246 * target.h (struct target_ops): New method to_supports_string_tracing.
247 (target_supports_string_tracing): New macro.
248 * target.c (update_current_target): Add to_supports_string_tracing.
249 * remote.c (struct remote_state): New field string_tracing.
250 (remote_string_tracing_feature): New function.
251 (remote_protocol_features): New feature tracenz.
252 (remote_supports_string_tracing): New function.
253 (init_remote_ops): Set to_supports_string_tracing.
255 2011-11-02 Pedro Alves <pedro@codesourcery.com>
256 Jan Kratochvil <jan.kratochvil@redhat.com>
258 * linux-nat.c: Include cli/cli-utils.h.
259 (enum info_proc_what): New.
260 (linux_nat_info_proc_cmd): Rename to ...
261 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
262 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
263 status_f and stat_f from WHAT. Throw error on extra parameters.
264 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
265 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
266 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
267 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
268 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
269 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
270 `info proc cmdline', `info proc exe' and `info proc all' as real
271 subcommands of `info proc'.
273 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
275 * Makefile.in: (SFILES): Add skip.c.
276 (HFILES_NO_SRCDIR): Add skip.h.
277 (COMMON_OBS): Add skip.o.
278 * skip.h, skip.c: New.
279 * breakpoint.h (set_default_breakpoint): Remove.
280 (get_sal_arch): Declare.
281 * breakpoint.c: Remove default_breakpoint_valid,
282 default_breakpoint_address, default_breakpoint_symtab,
283 default_breakpoint_line, default_breakpoint_pspace variables.
284 (get_sal_arch): Make public.
285 (set_default_breakpoint): Remove.
286 (parse_breakpoint_sals, create_breakpoint, clear_command,
287 decode_line_spec_1): Remove uses of default_breakpoint variables;
288 replaced with function calls into stack.c.
289 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
290 * cli/cli-cmds.c: Add skiplist.
291 (init_cmd_lists): Initialize skiplist.
292 (init_cli_cmds): Fix comment (classes of commands appear in
294 * infrun.c (handle_inferior_event): Add check that we don't step into
295 a function whose pc is marked for skip.
296 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
297 last_displayed_addr, last_displayed_symtab, last_displayed_line
299 (set_last_displayed_sal): New static function.
300 (print_frame_info): Switch call to set_default_breakpoint to call to
301 set_last_displayed_sal.
302 (clear_last_displayed_sal, last_displayed_sal_is_valid,
303 get_last_displayed_pspace, get_last_displayed_addr,
304 get_last_displayed_symtab, get_last_displayed_line,
305 get_last_displayed_sal): New public functions.
306 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
307 get_last_displayed_pspace, get_last_displayed_addr,
308 get_last_displayed_symtab, get_last_displayed_line,
309 get_last_displayed_sal): Declare.
311 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
313 * MAINTAINERS (Write After Approval): Add myself to the list.
315 2011-10-29 Yao Qi <yao@codesourcery.com>
317 * infcmd.c (disconnect_command): Call disconnect_tracing.
319 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
322 * symtab.c (skip_prologue_sal): Code reformatting.
324 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
327 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
328 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
331 2011-10-28 Pedro Alves <pedro@codesourcery.com>
333 * linux-nat.c (linux_nat_filter_event): Remove `options'
334 parameter, and dead code that used it. If we're handling a
335 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
336 in our lwp list, re-add it.
337 (check_zombie_leaders): New.
338 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
339 wait for children with WNOHANG, and always wait for all children.
340 Don't check for no resumed children upfront. Simplify wait loop.
341 Check for zombie thread group leaders after handling all wait
342 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
343 unwaited-for children left.
344 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
345 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
346 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
347 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
349 2011-10-28 Sterling Augustine <saugustine@google.com>
351 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
352 * symtab.c (free_completion_list): New function.
353 (do_free_completion_list): Likewise.
354 (default_make_symbol_completion_list_break_on): New variable
355 back_to. Call make_cleanup and discard_cleanups.
356 (make_source_files_completion_list): Likewise.
358 2011-10-28 Paul Koning <paul_koning@dell.com>
360 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
361 * NEWS: Mention deep_items.
363 2011-10-28 Alen Skondro <askondro@gmail.com>
365 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
368 2011-10-27 Meador Inge <meadori@codesourcery.com>
370 * MAINTAINERS (Write After Approval): Add myself to the list.
372 2011-10-27 Joel Brobecker <brobecker@adacore.com>
374 * value.h (read_frame_register_value): Add declaration.
375 * findvar.c (read_frame_register_value): New function.
376 (value_from_register): Use read_frame_register_value
377 instead of get_frame_register_value + value_contents_copy
378 to get value contents.
380 2011-10-27 Doug Evans <dje@google.com>
382 * cli/cli-cmds.c (source_script_with_search): Pass full path to
383 source_script_from_stream if it may have been found on the search path.
384 * python/py-auto-load.c (source_section_scripts): Pass full path to
385 source_python_script_for_objfile.
386 * python/python.c (source_python_script): Delete stream parameter.
388 (source_python_script_for_objfile): Ditto.
389 * python/python-internal.h (source_python_script_for_objfile): Update.
390 * python/python.h (source_python_script): Update.
392 2011-10-27 Tom Tromey <tromey@redhat.com>
394 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
395 (ada_sals_for_line): Remove declarations.
397 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
399 Move unwind reasons to an external .def file
400 * frame.c (frame_stop_reason_string): Rewrite using
401 unwind_stop_reasons.def.
402 * frame.h (enum unwind_stop_reason): Likewise.
403 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
404 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
405 constants for bound-checking.
406 * unwind_stop_reasons.def: New file.
407 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
408 instead of a distinct value.
410 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
414 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
415 (convert_values_to_python): Return on Python tuple allocation
416 failure. Return NULL on value conversion error.
418 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
420 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
421 (bppy_set_task): Ditto.
422 (bppy_delete_breakpoint): Ditto.
423 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
424 (gdbpy_lookup_global_symbol): Ditto.
425 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
426 * python/py-frame.c (frapy_is_valid): Ditto.
427 (frame_info_to_frame_object): Ditto.
428 * python/py-type.c (typy_lookup_type): Ditto.
429 (typy_getitem): Ditto.
430 (typy_has_key): Ditto.
431 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
433 2011-10-26 Joel Brobecker <brobecker@adacore.com>
435 * gdbarch.h: Regenerate.
437 2011-10-26 Meador Inge <meadori@codesourcery.com>
439 * gdbarch.sh (function_list): Use 'pstring' when printing
441 * gdbarch.c: Regenerate.
443 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
445 * regcache.c (registers_changed_ptid): Invalidate thread architecture
446 and frame caches if PTID refers to all threads of a process.
448 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
450 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
451 to create_breakpoint.
453 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
455 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
456 (ppc_sysv_abi_push_dummy_call): Use it.
457 (do_ppc_sysv_return_value): Likewise.
458 (ppc64_sysv_abi_push_dummy_call): Likewise.
459 (ppc64_sysv_abi_return_value): Likewise.
461 2011-10-26 Paul Koning <paul_koning@dell.com>
463 * python/lib/gdb/types.py (deepitems): New function.
465 2011-10-25 Paul Koning <paul_koning@dell.com>
469 * python/py-value.c (value_to_value_object): Remove fetching of
470 the value if it was lazy.
471 (valpy_get_is_lazy): New function.
472 (valpy_fetch_lazy): New function.
474 2011-10-24 Joel Brobecker <brobecker@adacore.com>
476 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
477 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
479 2011-10-24 Pedro Alves <pedro@codesourcery.com>
481 * linux-nat.c (linux_handle_extended_wait): When handling a clone
482 event, in non-stop, if not stopping, make sure the new lwp has
483 last_resume_kind set to resume_continue. Assert that when we're
484 resuming the new lwp, its last_resume_kind is resume_continue.
486 2011-10-24 Pedro Alves <pedro@codesourcery.com>
488 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
489 already set when marking the event thread as not executing in
492 2011-10-24 Pedro Alves <pedro@codesourcery.com>
494 * infrun.c (handle_inferior_event): Add debug output for
495 TARGET_WAITKIND_NO_HISTORY.
497 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
499 * NEWS: Move set/show extended-prompt to "New Options". Expand
500 description. Fix typos.
502 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
506 * python/py-param.c (call_doc_function): Correctly deference on
509 2011-10-21 Joel Brobecker <brobecker@adacore.com>
511 * ada-tasks.c (print_ada_task_info): Fix computation of
512 number of tasks displayed in command output.
514 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
515 Ulrich Weigand <uweigand@de.ibm.com>
517 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
518 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
519 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
520 gdbarch_pc_regnum and frame_unwind_register_unsigned by
523 2011-10-20 Cary Coutant <ccoutant@google.com>
525 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
527 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
528 flag. Adjust all callers.
529 (process_psymtab_comp_unit): Remove adjustment for type section.
531 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
533 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
534 arguments by adding OBJFILE. Instead of getting objfile from
535 symbol's symtab, use new argument OBJFILE.
536 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
537 arguments by adding OBJFILE.
538 * gdb/dwarf2read.c (new_symbol_full): Change call to
539 cp_scan_for_anonymous_namespaces to match new signature.
540 * gdb/stabsread.c (define_symbol): Change call to
541 cp_scan_for_anonymous_namespaces to match new signature.
543 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
548 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
550 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
551 leak. Delete unused variables.
553 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
557 * python/py-frame.c (frapy_read_var): Use const struct *block.
558 * python/py-type.c (typy_lookup_typename): Likewise.
559 (typy_lookup_type): Likewise.
560 (typy_legacy_template_argument): Likewise.
561 (typy_template_argument): Likewise.
562 (gdbpy_lookup_type): Likewise.
563 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
564 * python/py-block.c (blpy_block_object): Likewise.
565 (blpy_iter): Likewise.
566 (blpy_get_start): Likewise.
567 (blpy_get_end): Likewise.
568 (blpy_get_function): Likewise.
569 (blpy_get_superblock): Likewise.
570 (set_block): Likewise.
571 (block_to_block_object): Likewise.
572 (block_object_to_block): Likewise.
573 (blpy_is_valid): Likewise.
574 (blpy_get_global_block): New function.
575 (blpy_get_static_block): New function.
576 (blpy_is_global): New function.
577 (blpy_is_static): New function.
578 * blockframe.c (block_innermost_frame): Likewise.
579 * valops.c (value_of_variable): Likewise.
580 * frame.h: Update prototypes.
581 * python/python-internal.h: Likewise.
584 2011-10-19 Cary Coutant <ccoutant@google.com>
586 * dwarf2read.c (create_debug_types_hash_table): Fix size of
589 2011-10-19 Cary Coutant <ccoutant@google.com>
591 * dwarf2read.c (peek_abbrev_code): New function.
592 (dw2_get_file_names): Check for dummy compilation units.
593 (create_debug_types_hash_table): Likewise.
594 (process_psymtab_comp_unit): Likewise.
595 (load_partial_comp_unit): Likewise.
596 (load_full_comp_unit): Likewise.
598 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
600 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
601 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
602 pt_phdr if PT_PHDR was found.
604 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
606 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
607 type or "<unnamed type"> when there is no name assigned.
608 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
609 avoid a sigint when no name is assigned.
611 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
614 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
615 * dwarf2expr.c (ctx_no_read_reg): New function.
616 * dwarf2expr.h (ctx_no_read_reg): New declaration.
617 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
618 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
619 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
621 2011-10-16 Doug Evans <dje@google.com>
623 * NEWS: Document python gdb.printing.register_pretty_printer's new
626 2011-10-14 Keith Seitz <keiths@redhat.com>
629 * eval.c (evaluate_subexp_standard): Do not construct
630 an array of types; pass the value array directly to
632 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
633 (rank_function): Take an array of values instead of types.
634 (rank_one_type): Add struct value * parameter.
635 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
636 (rank_function): For each argument, pass the argument's
637 value to rank_one_type.
638 (rank_one_type): Add VALUE parameter.
639 If the parameter type is a pointer and the argument type
640 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
642 Update all calls to rank_one_type, passing NULL for new
644 * valarith.c (value_user_defined_cpp_op): Do not construct
645 an array of types; pass the value array directly to
647 * valops.c (find_overload_method_list): Take an array of
648 values instead of types.
649 Save the type of OBJP for later use.
650 Update calls to find_oload_champ, and find_oload_champ_namespace.
651 (find_oload_champ_namespace): Take an array of values instead
653 (find_oload_champ_namespace_loop): Likewise.
654 (find_oload_champ): Likewise.
655 (classify_oload_match): Inspect all arguments
656 until INCOMPATIBLE is found. Return the worst badness found
658 (compare_parameters): Update call to rank_one_type.
659 * value.h (find_overload_match): Take an array of values instead
662 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
664 Drop lazy lm_info reading.
665 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
666 l_addr_inferior, l_ld, l_next, l_prev and l_name.
667 (lm_info_read): New function.
668 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
669 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
670 lm_dynamic_from_link_map.
671 (lm_next, lm_prev, lm_name): Remove.
672 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
673 initialization incl. read_memory. No longer use lm_name.
674 (svr4_free_so): Drop lm_info->lm freeing.
675 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
676 explicit lm_addr and lm initialization.
677 (svr4_read_so_list): Use lm_info_read, drop the initailization of
678 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
681 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
682 Paul Pluzhnikov <ppluzhnikov@google.com>
684 * defs.h (struct so_list): New forward declaration.
685 (make_cleanup_free_so): New declaration.
686 * solib-svr4.c (ignore_first_link_map_entry): Remove.
687 (svr4_free_so): Move the function here from downwards. Handle NULL
689 (svr4_free_library_list): New.
690 (svr4_read_so_list): New, moved here code from svr4_current_sos.
691 Use more cleanups. Use new parameter ignore_first instead of
692 ignore_first_link_map_entry.
693 (svr4_current_sos): New variable ignore_first, initialize it. New
694 variable back_to, use it for svr4_free_library_list protection.
695 (svr4_free_so): Remove - move upwards.
696 * utils.c: Include solist.h.
697 (do_free_so, make_cleanup_free_so): New functions.
699 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
701 Fix internal error regression.
702 * value.c (value_primitive_field): Handle value_optimized_out. Move
703 packed bitfields comment.
705 2011-10-13 Tom Tromey <tromey@redhat.com>
707 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
710 2011-10-13 Tom Tromey <tromey@redhat.com>
712 * python/py-type.c (typy_has_key): Make 'field' const.
714 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
716 * remote.c (remote_save_trace_data): Invert comparison.
718 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
720 * tracepoint.c (trace_save_command): Use filename instead of
723 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
725 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
728 2011-10-13 Yao Qi <yao@codesourcery.com>
731 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
732 whether insn is a 32-bit Thumb-2 instruction.
733 (thumb_in_function_epilogue_p): Likewise.
734 (thumb_get_next_pc_raw): Likewise.
735 (arm_breakpoint_from_pc): Likewise.
737 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
739 Fix empty DWARF expressions DATA vs. SIZE conditionals.
740 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
741 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
742 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
743 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
745 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
747 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
748 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
749 clear DATA on zero SIZE.
751 2011-10-12 Doug Evans <dje@google.com>
753 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
754 header->first_die_offset here. All callers updated.
756 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
758 Fix compatibility with texinfo versions older than 4.12.
759 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
760 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
761 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
762 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
763 * configure: Regenerate.
764 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
765 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
766 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
768 2011-10-12 Gary Benson <gbenson@redhat.com>
770 * breakpoint.h (pc_at_non_inline_function): Declare.
771 * breakpoint.c (is_non_inline_function,
772 pc_at_non_inline_function): New functions.
773 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
774 if the stop is at a location where functions cannot be inlined.
776 2011-10-12 Pedro Alves <pedro@codesourcery.com>
778 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
779 the core wanted them stopped, or if they now have a pending event
781 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
782 down to stop_and_resume_callback.
783 (linux_nat_wait_1): Always clear `options' when retrying. Handle
784 having new pending events after calling linux_nat_filter_event.
786 2011-10-11 Sterling Augustine <saugustine@google.com>
788 * dwarf2read.c: Undo inadvertent changes in previous commit.
790 2011-10-11 Sterling Augustine <saugustine@google.com>
792 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
795 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
797 * symfile.c (separate_debug_file_exists): Fix condition.
799 2011-10-11 David S. Miller <davem@davemloft.net>
801 * regcache.c (regcache_restore): Do not write unavailable regs, mark
803 * regcache.h (regcache_restore): Remove declaration.
805 * gdbarch.sh: New field 'long_long_align_bit'.
806 * gdbarch.c, gdbarch.h: Regenerate.
807 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
808 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
810 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
813 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
814 Support @entry in input expressions.
815 * c-exp.y (ENTRY, unknown_cpp_name): New.
816 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
817 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
818 (variable: name_not_typename '@' ENTRY, name: ENTRY)
819 (name_not_typename: ENTRY): New.
820 (yylex): Recognize ENTRY.
822 Reimplement @entry in input expressions.
823 * c-exp.y (ENTRY): New.
824 (variable: name_not_typename ENTRY): New.
825 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
827 2011-10-11 Pedro Alves <pedro@codesourcery.com>
829 * linux-nat.c (linux_handle_extended_wait): Always dump both the
830 parent and child's pids as soon as we detect a clone event.
831 Adjust another debug message.
833 2011-10-11 Pedro Alves <pedro@codesourcery.com>
835 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
836 not zombie instead of reading the whole file.
838 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
840 Fix separate debuginfo warning with "remote:" access.
841 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
842 * symfile.c (get_file_crc): New function with the code moved from ...
843 (separate_debug_file_exists): ... this function, specifically variables
844 buffer and count. New variable verified_as_different, set it. Remove
845 file_crc initialization. Verify also if both files are not the same
848 2011-10-11 Yao Qi <yao@codesourcery.com>
850 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
853 2011-10-10 Doug Evans <dje@google.com>
855 * linux-thread-db.c (thread_db_new_objfile): Only try to load
856 libthread_db when we load libpthread or the main symbol file.
857 (thread_db_inferior_created): New function.
858 (_initialize_thread_db): Attach inferior_created observer.
859 * linux-nat.c (linux_child_post_attach): Remove call to
861 (linux_child_post_startup_inferior): Ditto.
862 * objfiles.h (OBJF_MAINLINE): Define.
863 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
864 allocate_objfile when appropriate.
866 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
869 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
870 Remove unused variables.
871 (get_linux_version): Remove function.
872 (_initialize_arm_linux_nat): Do not call it.
874 2011-10-10 Pedro Alves <pedro@codesourcery.com>
876 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
877 new clone lwp if the core asked it to stop. Don't pass on
878 unexpected signals to the new clone; leave them pending instead.
880 2011-10-10 Pedro Alves <pedro@codesourcery.com>
882 * linux-nat.c (resume_lwp): Remove redundant debug output.
884 2011-10-10 Pedro Alves <pedro@codesourcery.com>
886 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
887 last_resume_kind before clearing it, and use the copy instead to
888 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
889 resume_clear_callback in the non-stop path too.
891 2011-10-09 Yao Qi <yao@codesourcery.com>
893 * valprint.c (value_check_printable): Add one parameter OPTIONS.
894 Honor OPTIONS and VAL's type.
895 (common_val_print, value_print): Update to pass one more parameter.
897 2011-10-09 Doug Evans <dje@google.com>
899 Add new "alias" command.
900 * NEWS: Mention new command.
901 * command.h (valid_user_defined_cmd_name_p): Declare.
902 * defs.h (make_cleanup_dyn_string_delete): Declare.
903 * utils.c: #include "dyn-string.h".
904 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
905 * cli/cli-cmds.c: #include "dyn-string.h".
906 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
907 (init_cli_cmds): Add new command.
908 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
910 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
912 Fix compatibility with older GCCs.
913 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
914 * stack.c (read_frame_arg): Initialize val_deref.
916 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
918 Entry values NEWS entries, DWARF disassembly support.
919 * NEWS: New entry values entry.
920 (set print entry-values, show print entry-values)
921 (set debug entry-values, show debug entry-values): New entries.
922 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
923 indent. Remove variable start. Move header printing out. Respect
924 INDENT. Support DW_OP_GNU_entry_value.
925 (locexpr_describe_location_1): Move the header printing here, extend
926 the disassemble_dwarf_expression passed parameters.
928 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
930 Display @entry parameter values even for references.
931 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
932 coerce_ref_if_computed.
933 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
934 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
935 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
936 existing push_dwarf_reg_entry_value call. Add new detection calling
937 dwarf_block_to_dwarf_reg_deref. Update the error message.
938 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
940 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
941 parameter deref_size, describe it in the comment.
942 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
943 (dwarf_block_to_dwarf_reg_deref): New declaration.
944 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
945 deref_size, describe it in the function comment. New variables
946 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
947 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
948 describe it in the function comment. Fetch the alternative block
949 accoring to DEREF_SIZE.
950 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
951 (entry_data_value_free_closure, entry_data_value_funcs): New.
952 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
953 outer_val, target_val, val and addr. Try to fetch and create also
954 referenced value content.
955 (pieced_value_funcs): NULL value for coerce_ref.
956 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
957 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
958 coerce_ref_if_computed.
959 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
960 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
961 * stack.c (read_frame_arg): Compare also dereferenced values.
962 * value.c (value_computed_funcs): Make the parameter v const, use
963 value_lval_const for it.
964 (value_lval_const, coerce_ref_if_computed): New function.
965 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
966 * value.h (struct lval_funcs): New field coerce_ref.
967 (value_computed_funcs): Make the parameter v const.
968 (value_lval_const, coerce_ref_if_computed): New declarations.
970 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
972 Support @entry in input expressions.
973 * c-exp.y (ENTRY, unknown_cpp_name): New.
974 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
975 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
976 (variable: name_not_typename '@' ENTRY, name: ENTRY)
977 (name_not_typename: ENTRY): New.
978 (yylex): Recognize ENTRY.
979 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
980 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
982 * parse.c (operator_length_standard): Likewise.
983 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
985 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
987 Display referenced values in backtraces.
988 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
989 * stack.c (print_frame_arg): Likewise.
991 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
993 Make some lval_funcs methods to default on NULL.
994 * valops.c (value_fetch_lazy): Check if lval_computed read method is
996 (value_assign): Check if lval_computed write method is NULL.
997 * value.h (struct lval_funcs): Comment NULL values for read and write
1000 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1002 Display @entry parameter values (without references).
1003 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1005 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1007 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1009 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1010 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1012 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1013 (loclist_read_variable_at_entry): New function.
1014 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1015 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1016 DW_AT_location, call dwarf_block_to_sp_offset for it.
1017 * frame.h (print_entry_values_no, print_entry_values_only)
1018 (print_entry_values_preferred, print_entry_values_if_needed)
1019 (print_entry_values_both, print_entry_values_compact)
1020 (print_entry_values_default, print_entry_values): New declarations.
1021 (struct frame_arg): New field entry_kind.
1022 (read_frame_arg): New parameter entryargp.
1023 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1024 arg->entry_kind. Optionally print the `@entry' suffix.
1025 (list_args_or_locals): New variable entryarg, initialize it.
1026 Initialize also entry_kind of arg and entryarg. Conditionalize
1027 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1028 xfree for entryarg.error.
1029 * stack.c (print_entry_values_no, print_entry_values_only)
1030 (print_entry_values_preferred, print_entry_values_if_needed)
1031 (print_entry_values_both, print_entry_values_compact)
1032 (print_entry_values_default, print_entry_values_choices)
1033 (print_entry_values): New variables.
1034 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1035 print the `@entry' suffix, possibly in combination for
1036 print_entry_values_compact.
1037 (read_frame_arg): New parameter entryargp, new variables entryval,
1038 entryval_error and val_equal. Read in also entryargp, respect
1039 print_entry_values, compare the values using val_equal, fill in also
1040 argp->entry_kind (together with entryargp->entry_kind).
1041 (print_frame_args): New variable entryarg, initialize it.
1042 Conditionalize print_frame_arg for arg, add print_frame_arg for
1043 entryarg. Call xfree for entryarg.error.
1044 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1045 * symtab.h (struct symbol_computed_ops): New field
1046 read_variable_at_entry.
1048 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1051 * frame.h (struct frame_arg): New definition.
1052 (read_frame_arg): New declaration.
1053 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1054 (list_args_or_locals): ... the code here. New variable arg, call
1055 read_frame_arg and list_arg_or_local with it. Unify the
1056 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1058 * stack.c (print_frame_arg): New functiom from the code of
1060 (read_frame_arg): New function.
1061 (print_frame_args): Remove variable val. New variable arg, call
1062 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1064 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1066 Protect entry values against self tail calls.
1067 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1068 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1070 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1072 Recognize virtual tail call frames.
1073 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1074 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1075 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1076 * dwarf2-frame-tailcall.c: New file.
1077 * dwarf2-frame-tailcall.h: New file.
1078 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1079 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1080 REGS.PREV only after CIE execution.
1081 (struct dwarf2_frame_cache): New field tailcall_cache.
1082 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1083 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1084 parts, try to find entry_cfa_sp_offset. Call
1085 dwarf2_tailcall_sniffer_first.
1086 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1088 (dwarf2_frame_dealloc_cache): New function.
1089 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1090 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1091 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1092 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1093 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1094 * dwarf2loc.c (func_addr_to_tail_call_list)
1095 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1096 (call_site_find_chain_1, call_site_find_chain): New.
1097 * dwarf2loc.h (struct call_site_chain): New.
1098 (call_site_find_chain): New declaration.
1099 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1100 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1101 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1102 * stack.c (frame_info): Support also TAILCALL_FRAME.
1104 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1106 Tail call sites reader implementation.
1107 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1108 fill in TYPE_TAIL_CALL_LIST.
1109 * gdbtypes.h (struct func_type): New field tail_call_list.
1110 (struct call_site): New field tail_call_next.
1111 (TYPE_TAIL_CALL_LIST): New definition.
1113 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1115 Implement basic support for DW_TAG_GNU_call_site.
1116 * block.c: Include gdbtypes.h and exceptions.h.
1117 (call_site_for_pc): New function.
1118 * block.h (call_site_for_pc): New declaration.
1119 * defs.h: Include hashtab.h.
1120 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1122 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1123 ctx_no_push_dwarf_reg_entry_value.
1124 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1125 (dwarf_block_to_dwarf_reg): New function.
1126 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1127 (ctx_no_push_dwarf_reg_entry_value): New function.
1128 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1129 push_dwarf_reg_entry_value.
1130 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1132 * dwarf2loc.c: Include gdbcmd.h.
1133 (dwarf_expr_ctx_funcs): New forward declaration.
1134 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1135 (dwarf_expr_reg_to_entry_parameter)
1136 (dwarf_expr_push_dwarf_reg_entry_value): New.
1137 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1138 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1139 (needs_dwarf_reg_entry_value): New function.
1140 (needs_frame_ctx_funcs): Install it.
1141 (_initialize_dwarf2loc): New function.
1142 * dwarf2loc.h (entry_values_debug): New declaration.
1143 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1144 (read_call_site_scope): New forward declaration.
1145 (process_full_comp_unit): Copy call_site_htab.
1146 (process_die): Support DW_TAG_GNU_call_site.
1147 (read_call_site_scope): New function.
1148 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1149 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1150 (cleanup_htab): Delete.
1151 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1152 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1153 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1154 FIELD_LOC_KIND_DWARF_BLOCK.
1155 * gdbtypes.h (enum field_loc_kind): New entry
1156 FIELD_LOC_KIND_DWARF_BLOCK.
1157 (struct main_type): New loc entry dwarf_block.
1158 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1159 (TYPE_FIELD_DWARF_BLOCK): New.
1160 * python/py-type.c: Include dwarf2loc.h.
1161 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1162 internal_error call on unknown FIELD_LOC_KIND.
1163 * symtab.h (struct symtab): New field call_site_htab.
1164 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1165 (core_addr_hash, core_addr_eq): New functions.
1167 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1170 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1171 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1172 calling_convention under func_stuff there.
1173 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1174 (init_type) <TYPE_CODE_FUNC>: Likewise.
1175 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1176 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1177 * gdbtypes.h (enum type_specific_kind): Change
1178 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1179 (struct main_type) <type_specific>: Change calling_convention to
1180 func_stuff. Move calling_convention to ...
1181 (struct func_type): ... this new struct.
1182 (INIT_FUNC_SPECIFIC): New #define.
1183 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1185 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1187 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1188 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1189 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1190 ctx->ref_addr_size. Handle its invalid value.
1191 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1192 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1193 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1194 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1195 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1196 (dwarf2_per_cu_ref_addr_size): New function.
1198 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1201 * dwarf2read.c (per_cu_header_read_in): New function.
1202 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1203 variables cu_header_local and cu_headerp.
1205 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1207 Fix initial language detection with -readnow.
1208 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1209 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1210 searches only for global symbols.
1212 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1214 Fix printed anonymous struct name.
1215 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1216 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1217 (anonymous_struct_prefix): New function.
1218 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1219 (dwarf2_name): Strip for anonymous structs any prefixes.
1221 2011-10-07 Doug Evans <dje@google.com>
1223 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1226 * python/lib/gdb/printing.py: Whitespace cleanup.
1228 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1231 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1233 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1234 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1235 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1236 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1237 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1238 (arm_linux_remove_watchpoint): Adjust.
1239 * i386-linux-nat.c (i386_linux_dr_set_control)
1240 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1241 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1242 (ia64_linux_remove_watchpoint): Adjust.
1243 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1244 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1245 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1246 (ppc_linux_insert_mask_watchpoint)
1247 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1248 (ppc_linux_remove_watchpoint): Adjust.
1249 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1252 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1254 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1255 (clear_win32_environment): New function for Cygwin to clear out
1257 (windows_create_inferior): Prepare new environment from in_env
1260 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1263 * python/py-value.c (valpy_call): Check that arguments are
1265 (is_intlike): Remove call to CHECK_TYPEDEF.
1266 (valpy_nonzero): Catch GDB exceptions.
1267 (valpy_absolute): Ditto.
1268 (valpy_lazy_string): Ditto.
1269 (valpy_call): Ditto.
1270 (valpy_get_is_optimized_out): Ditto.
1271 (valpy_long): Ditto.
1272 (valpy_float): Ditto.
1273 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1274 (valpy_richcompare): Ditto.
1276 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1278 * inferior.h (disable_randomization): Declare.
1279 * infrun.c (disable_randomization): New global variable.
1280 (show_disable_randomization): New function.
1281 (set_disable_randomization): Likewise.
1282 (_initialize_infrun): Install set/show disable-randomization
1284 * linux-nat.c (disable_randomization): Remove.
1285 (show_disable_randomization): Likewise.
1286 (set_disable_randomization): Likewise.
1287 (_initialize_linux_nat): No longer install set/show
1288 disable-randomization commands here.
1289 (linux_nat_supports_disable_randomization): New function.
1290 (linux_nat_add_target): Install it.
1291 * remote.c (PACKET_QDisableRandomization): New enum value.
1292 (remote_protocol_packets): Support QDisableRandomization.
1293 (_initialize_remote): Likewise.
1294 (remote_supports_disable_randomization): New function.
1295 (init_remote_ops): Install it.
1296 (extended_remote_supports_disable_randomization): New function.
1297 (init_extended_remote_ops): Install it.
1298 (extended_remote_disable_randomization): New function.
1299 (extended_remote_create_inferior_1): Call it.
1300 * target.h (struct target_ops): Add to_supports_disable_randomization.
1301 (target_supports_disable_randomization): Add prototype.
1302 * target.c (target_supports_disable_randomization): New function.
1303 (find_default_supports_disable_randomization): Likewise.
1304 (init_dummy_target): Install it.
1306 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1308 Allow Python notification of new object-file loadings.
1309 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1310 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1311 Add build rule for this file.
1312 * python/py-event.h (emit_new_objfile_event): New prototype.
1313 (newobjfile): New Python event emitter.
1314 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1315 Python event registry.
1316 * python/py-inferior.c: Include objfiles.h
1317 (python_new_objfile): New function.
1318 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1320 * python/py-newobjfileevent.c: New file.
1321 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1323 * python/python.c (_initialize_python): Add
1324 gdbpy_initialize_new_objfile_event call.
1325 * NEWS: Add item for new Python event "gdb.newobjfile"
1327 2011-10-05 Tristan Gingold <gingold@adacore.com>
1329 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1330 Extract the ravenscar task name from the symbol for the atcb.
1332 2011-10-04 Paul Koning <paul_koning@dell.com>
1334 * python/py-type.c (typy_make_iter): Add forward declaration.
1335 (typy_fields_items): Use the gdb.Type iterator.
1337 2011-10-04 Paul Koning <paul_koning@dell.com>
1339 * NEWS: Add entry for Python gdb.Type mapping methods.
1341 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1343 PR python/12691: Add the inferior to Python exited event
1344 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1346 * python/py-event.h (emit_exited_event): Likewise
1347 * python/-inferior.c (python_inferior_exit): Likewise
1349 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1351 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1352 in output of -ada-task-info GDB/MI command.
1354 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1356 * ada-lang.h (struct inferior): Declare.
1357 (print_ada_task_info): Add declaration.
1358 * ada-tasks.c (print_ada_task_info): Make non-static.
1359 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1360 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1361 * mi/mi-main.c: #include "ada-lang.h".
1362 (mi_cmd_list_features): Add "ada-task-info" to the list
1363 of supported features.
1364 (mi_cmd_ada_task_info): New function.
1366 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1368 * python/python.c (python_run_simple_file): New function.
1369 (source_python_script, source_python_script_for_objfile):
1370 Replace call to PyRun_SimpleFile by call to
1371 python_run_simple_file.
1373 2011-10-03 Paul Koning <paul_koning@dell.com>
1375 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1376 (value_to_value_object): Fetch value if it was lazy.
1378 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1381 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1382 Rearrange the code for it.
1384 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1386 * breakpoint.c (bkpt_print_recreate): Add call to
1387 print_recreate_thread.
1389 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1391 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1392 PTRACE_GETFDPIC_INTERP): Define.
1394 2011-09-28 Yao Qi <yao@codesourcery.com>
1396 * symfile.c (add_symbol_file_command): Update message on usage.
1398 2011-09-28 Paul Koning <paul_koning@dell.com>
1400 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1401 (typy_length, typy_get, typy_has_key, typy_make_iter)
1402 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1403 (typy_iterator_iter, typy_iterator_iternext)
1404 (typy_iterator_dealloc): New functions to implement standard
1405 Python mapping methods on gdb.Type object.
1406 (gdb.TypeIterator): New Python type.
1407 * python/python-internal.h (gdbpy_iter_kind): New enum.
1409 2011-09-28 David S. Miller <davem@davemloft.net>
1411 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1412 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1413 * sparc-tdep.c (sparc_complex_floating_p): New function.
1414 (sparc32_store_arguments): Handle complex floats.
1415 (sparc32_extract_return_value): Likewise.
1416 (sparc32_store_return_value): Likewise.
1417 (sparc32_stabs_argument_has_addr): Likewise.
1418 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1419 (sparc64_store_floating_fields): Handle complex floats.
1420 (sparc64_store_arguments): Likewise.
1421 (sparc64_store_return_value): Likewise.
1423 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1425 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1426 before the change on 2006-12-09.
1427 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1428 generates the environment block for CreateProcessA, modulo the
1429 Cygwin-specific parts that are not needed here.
1431 2011-09-27 Tristan Gingold <gingold@adacore.com>
1433 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1434 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1435 (darwin_solib_get_all_image_info_addr_at_init): New function.
1436 (darwin_solib_read_all_image_info_addr): Likewise.
1437 (darwin_solib_create_inferior_hook): Use the above two functions.
1438 * darwin-nat.c (darwin_execvp): Renames retval to res.
1439 (darwin_read_write_inferior): Update comment.
1440 (darwin_read_dyld_info): New function.
1441 (darwin_xfer_partial): Handle DYLD_INFO.
1443 2011-09-27 Stan Shebs <stan@codesourcery.com>
1445 Add return address collection for tracepoints.
1446 * tracepoint.c (encode_actions_1): Add case for $_ret.
1447 (validate_actionline): Check for $_ret.
1448 (trace_dump_actions): Ditto.
1449 * ax-gdb.h (gen_trace_for_return_address): Declare.
1450 * ax-gdb.c: Include arch-utils.h.
1451 (gen_trace_for_return_address): New function.
1452 (agent_command): Add return address special case.
1453 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1454 (amd64_gen_return_address): New function.
1455 (amd64_init_abi): Call it.
1456 * i386-tdep.c: Include ax.h and ax-gdb.h.
1457 (i386_gen_return_address): New function.
1458 (i386_init_abi): Call it.
1459 * arch-utils.h (default_gen_return_address): Declare.
1460 * arch-utils.c (default_gen_return_address): New function.
1461 * gdbarch.sh (gen_return_address): New method.
1462 * gdbarch.h, gdbarch.c: Regenerate.
1464 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1467 * i386-tdep.c (i386_frame_align): New.
1468 (i386_gdbarch_init): Use i386_frame_align.
1470 2011-09-23 Yao Qi <yao@codesourcery.com>
1472 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1475 2011-09-22 Tristan Gingold <gingold@adacore.com>
1477 * fork-child.c (fork_inferior): Add exec_fun parameter.
1478 Call exec_fun or execvp.
1479 * inferior.h: Adjust prototype.
1480 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1481 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1482 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1483 * procfs.c (procfs_create_inferior): Ditto.
1484 * darwin-nat.c (darwin_execvp): New function.
1485 (darwin_create_inferior): Use it.
1487 2011-09-22 Yao Qi <yao@codesourcery.com>
1489 * infrun.c (context_switch): Print debug message when switching to
1492 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1494 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1495 complex and vector types.
1496 (s390_return_value_convention): Likewise.
1498 (s390_value_from_register): Call check_typedef.
1499 (extend_simple_arg): Likewise.
1500 (alignment_of): Likewise.
1501 (s390_push_dummy_call): Likewise.
1502 (s390_return_value): Likewise.
1504 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1506 * event-top.c (async_disconnect): If an exception is thrown from
1507 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1509 * top.c (quit_cover): Return void and take no arguments.
1510 * top.h (quit_cover): Update prototype.
1512 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1514 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1515 current_uiout, not uiout.
1517 2011-09-19 Doug Evans <dje@google.com>
1519 * python/py-auto-load.c (source_section_scripts): Fix file
1521 * python/python.c (source_python_script_for_objfile): Tweak comments.
1523 2011-09-18 Yao Qi <yao@codesourcery.com>
1524 Ulrich Weigand <ulrich.weigand@linaro.org>
1526 Support displaced stepping for Thumb 16-bit insns.
1527 * arm-tdep.c (THUMB_NOP) Define.
1528 (thumb_copy_unmodified_16bit): New.
1529 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1530 (thumb_copy_alu_reg): New.
1531 (arm_copy_svc): Move some common code to ...
1532 (install_svc): ... here. New.
1533 (thumb_copy_svc): New.
1534 (install_pc_relative): New.
1535 (thumb_copy_pc_relative_16bit): New.
1536 (thumb_decode_pc_relative_16bit): New.
1537 (thumb_copy_16bit_ldr_literal): New.
1538 (thumb_copy_cbnz_cbz): New.
1539 (cleanup_pop_pc_16bit_all): New.
1540 (thumb_copy_pop_pc_16bit): New.
1541 (thumb_process_displaced_16bit_insn): New.
1542 (thumb_process_displaced_32bit_insn): New.
1543 (thumb_process_displaced_insn): process thumb instruction.
1545 Support displaced stepping for Thumb 32-bit insns.
1546 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1547 (thumb2_copy_preload): New.
1548 (thumb2_copy_copro_load_store): New.
1549 (thumb2_copy_b_bl_blx): New.
1550 (thumb2_copy_alu_imm): New.
1551 (thumb2_copy_load_reg_imm): New.
1552 (thumb2_copy_load_literal): New
1553 (thumb2_copy_block_xfer): New.
1554 (thumb_32bit_copy_undef): New.
1555 (thumb_32bit_copy_unpred): New.
1556 (thumb2_decode_ext_reg_ld_st): New.
1557 (thumb2_decode_svc_copro): New.
1558 (decode_thumb_32bit_store_single_data_item): New.
1559 (thumb_copy_pc_relative_32bit): New.
1560 (thumb_decode_pc_relative_32bit): New.
1561 (decode_thumb_32bit_ld_mem_hints): New.
1562 (thumb2_copy_table_branch): New
1563 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1566 2011-09-18 Yao Qi <yao@codesourcery.com>
1568 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1569 (install_b_bl_blx): Likewise.
1571 2011-09-17 Yao Qi <yao@codesourcery.com>
1573 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1574 (install_load_store): ... this. New.
1575 Change parameter BYTE to SIZE.
1576 (arm_copy_ldr_str_ldrb_strb): Update caller.
1577 (arm_decode_ld_st_word_ubyte): Update caller.
1579 2011-09-17 Yao Qi <yao@codesourcery.com>
1581 * infrun.c (displaced_step_fixup): Move some code ...
1582 (displaced_step_restore): ... here. New function.
1583 (handle_inferior_event): Cleanup displaced stepping state for both
1584 child and parent when get forked or vforked event.
1585 * regcache.c (get_thread_arch_aspace_regcache): New function.
1586 get_thread_arch_regcache (): Call it.
1588 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1590 * ada-tasks.c (print_ada_task_info): New function, merging
1591 short_task_info and info_tasks together. Reimplement using
1592 ui-out instead of printing to stdout directly. Move the code
1593 building and checking the task list here, instead of leaving it
1594 in info_tasks_command.
1595 (info_task): Move the code building and checking the task
1596 list here, instead of leaving it in info_tasks_command.
1597 (info_tasks_command): Delete code building and checking
1598 the task list - moved elsewhere. Update calls to info_tasks
1601 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1603 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1605 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1607 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1609 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1611 * ada-lang.h (ada_build_task_list): Remove parameter
1613 * ada-tasks.c (ada_build_task_list): Remove parameter
1614 `warn_if_null'. Adjust implementation and documentation.
1615 (valid_task_id, ada_get_environment_task)
1616 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1617 (info_tasks_command): Adjust implementation.
1618 (task_command): Likewise.
1619 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1620 to ada_build_task_list.
1622 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1624 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1625 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1626 (ada_tasks_inferior_data_handle): New static global.
1627 (get_ada_tasks_inferior_data): New function.
1628 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1629 (ada_get_environment_task, iterate_over_live_ada_tasks)
1630 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1632 (ada_set_current_inferior_known_tasks_addr): New function.
1633 (read_known_tasks, ada_build_task_list, short_task_info)
1634 (info_tasks, info_task, info_tasks_command, task_command_1)
1635 (task_command, ada_task_list_changed): Adjust.
1636 (ada_tasks_invalidate_inferior_data): New function.
1637 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1638 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1639 * ada-lang.h (struct inferior): Add declaration.
1640 (ada_task_list_changed): Update profile.
1641 * remote-wtx-pd.c: #include "inferior.h".
1642 (switch_to_pd_internal): Update call to ada_task_list_changed.
1644 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1646 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1647 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1648 (atcb_fieldno): Delete these static globals.
1649 (struct ada_tasks_pspace_data): New struct.
1650 (ada_tasks_pspace_data_handle): New static global.
1651 (get_ada_tasks_pspace_data): New function.
1652 (ada_tasks_invalidate_pspace_data): New function.
1653 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1654 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1655 (_initialize_tasks): Create this module's per-progspace
1658 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1660 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1662 2011-09-16 Tristan Gingold <gingold@adacore.com>
1664 * fork-child.c (fork_inferior): Update comment. Use alloca
1665 instead of xmalloc for argv. Move len and shell_command
1666 declarations in the block where they are used.
1667 Only call execvp. Factorize failure code.
1669 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1672 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1673 `exp_element' instead of an element of the same and make the function
1675 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1676 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1677 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1678 Change argument of `write_exp_elt' function call.
1679 Remove extra spaces from comments.
1680 * parser-defs.h (write_exp_elt): Remove prototype.
1682 2011-09-15 Paul Koning <paul_koning@dell.com>
1684 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1685 count of item appended to list.
1686 * python/py-type.c (typy_fields): Likewise.
1688 2011-09-15 Paul Koning <paul_koning@dell.com>
1690 * MAINTAINERS (Write After Approval): Add myself to the list.
1692 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1695 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1696 processes with multiple threads.
1697 (inf_has_multiple_thread_cb): New function.
1698 (inf_has_multiple_threads): New function.
1700 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1702 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1703 * python/py-inferior.c (GdbMethods): New Python method definition.
1705 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1707 Handle multiple breakpoint hits in Python interface:
1708 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1709 variable to breakpoints.
1710 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1711 bps instead of single breakpoint. Fix some space typos.
1712 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1713 variable to breakpoints.
1715 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1717 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1718 note if the breakpoint is internal.
1720 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1722 * MAINTAINERS (Write After Approval): Add myself to the list
1724 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1726 * infrun.c (prepare_for_detach, wait_for_inferior)
1727 (fetch_inferior_event): Don't flush the register cache.
1728 * remote.c (struct stop_reply) <regcache>: Add comment.
1730 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1732 Remove excessive DWARF expressions memory duplication.
1733 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1735 (indirect_pieced_value): Remove variable result. Remove variable
1736 back_to and its use for baton.data.
1737 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1739 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1740 Update the function comment.
1742 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1744 * inferior.h (ALL_INFERIORS): New.
1745 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1746 for a stopped thread.
1747 (thread_db_find_new_threads): Look for threads in all inferiors.
1749 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1751 * breakpoint.c (update_watchpoint): Handle the case of the
1752 watchpoint to update not being in the breakpoint list yet.
1753 (hw_watchpoint_use_count): New, factored out from
1754 hw_watchpoint_used_count.
1755 (hw_watchpoint_used_count): Rename to ...
1756 (hw_watchpoint_used_count_others): ... this. Add `except'
1757 parameter. Don't count resources of `except'. Use
1758 hw_watchpoint_use_count.
1760 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1762 * gdbthread.h (enum thread_state): Moved here.
1763 (struct thread_info): Rename `executing_' field to `executing' and
1764 `state_' to `state'.
1765 * thread.c (enum thread_state): Moved to gdbthread.h.
1766 (new_thread, add_thread_silent, delete_thread_1)
1767 (any_live_thread_of_process, thread_alive, set_running)
1768 (set_running, is_thread_state, any_running, is_executing)
1769 (set_executing, finish_thread_state, print_thread_info)
1770 (do_captured_thread_select): Adjust.
1772 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1774 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1775 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1777 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1778 Matt Rice <ratmice@gmail.com>
1782 * interps.c (struct interp) <interpreter_out>: Delete field.
1783 (interp_new): Remove the data and uiout parameters and adjust.
1784 (interp_set): Only set the current_uiout from the interpreter's
1785 uiout after initializing the interpreter. Adjust call to
1787 (interp_ui_out): Adjust to call procs->ui_out_proc.
1788 (interp_data, interp_name): New.
1789 * interps.h (interp_init_ftype): Add `self' parameter.
1790 (interp_ui_out_ftype): New typedef.
1791 (struct interp_procs) <ui_out_proc>: New method pointer.
1792 (interp_new): Remove the data and uiout parameters.
1793 (interp_data, interp_name): Declare.
1794 * tui/tui-interp.c (tui_init): Adjust prototype.
1796 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1797 tui_out here. Adjust call to interp_new.
1798 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1799 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1801 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1802 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1803 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1804 Initialize mi->uiout depending on the mi_version as extracted from
1805 the interpreter's name.
1807 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1808 interp_new. Don't allocate the ui_out's of the interpreters here.
1810 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1812 * solib.c (solib_used): New function.
1813 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1814 by another so_list object before freeing it.
1816 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1819 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1822 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1825 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1826 (amd64_skip_xmm_prologue): ... this new function. Describe its
1827 parameters. No longer use amd64_prologue_line_bug.
1828 * defs.h (producer_is_gcc_ge_4): New declaration.
1829 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1830 (process_full_comp_unit): Update its caller. Remove
1831 amd64_prologue_line_bug initialization.
1832 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1833 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1835 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1837 * linux-nat.h (enum resume_kind): New.
1838 (struct lwp_info) <last_resume_kind>: New field.
1839 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1840 resume_stop on the new lwp.
1841 (add_lwp): Set last_resume_kind as resume_continue by default.
1842 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1843 (resume_lwp): New, factored out from resume_callback. Also check
1844 for pending status in lp->waitstatus.
1845 (resume_callback): Reimplement.
1846 (resume_clear_callback): Set last_resume_kind as resume_stop.
1847 (resume_set_callback): Set last_resume_kind as resume_continue.
1848 (linux_nat_resume, linux_handle_extended_wait): Set
1850 (running_callback): Also check lp->waitstatus for pending events.
1851 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1853 (stop_and_resume_callback): Don't re-resume if the core wanted the
1854 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1855 using an invalidated pointer.
1856 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1857 SIGSTOPs if the core wanted the LWP to stop.
1858 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1859 wanted the lwp to stop. If the core wanted the lwp to stop, and
1860 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1861 of TARGET_SIGNAL_STOP.
1862 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1863 here. Instead, signal the lwp, and set the last_resume_kind to
1866 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1868 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1869 -1 (error), if the lwp exits right after attaching.
1871 2011-09-08 Doug Evans <dje@google.com>
1873 * py-cmd.c: Some minor formatting fixes.
1874 (gdbpy_parse_command_name): Rename text arg to name, make const.
1875 All callers updated.
1876 * python-internal.h (gdbpy_parse_command_name): Update.
1878 * cli/cli-decode.c (add_cmd): Add comment.
1880 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1882 PR breakpoints/12435
1883 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1884 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1885 * dwarf2read.c (process_full_comp_unit): Initialize
1886 amd64_prologue_line_bug.
1887 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1889 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 Fix TUI screen corruption.
1892 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1895 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1897 * findvar.c (read_var_value): Never return NULL, throw an error
1898 instead. Update the function comment. State symbol name in the error
1900 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1902 * stack.c (print_frame_args): Likewise.
1903 * valops.c (value_of_variable): Likewise.
1905 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1907 * stack.c (print_frame_args): New variable except. Wrap
1908 read_var_value and common_val_print into TRY_CATCH.
1910 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1913 caller to value_of_this.
1914 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1916 * valops.c (value_of_this): Remove parameter complain and variable ret.
1917 Update function comment. Never return NULL by this code.
1918 (value_of_this_silent): New function.
1919 * value.h (value_of_this): Remove parameter complain.
1920 (value_of_this_silent): New declaration.
1922 2011-09-07 Yao Qi <yao@codesourcery.com>
1924 * gdbthread.h (struct thread_info): Remove fields
1925 `stepping_through_solib_after_catch' and
1926 `stepping_through_solib_catchpoints'.
1927 * infrun.c (init_thread_stepping_state): Update.
1928 (process_event_stop_test, currently_stepping): Update.
1929 (currently_stepping_or_nexting_callback): Update.
1931 2011-09-07 Yao Qi <yao@codesourcery.com>
1933 * gdbthread.h (struct thread_info): Comment on field
1934 `step_after_step_resume_breakpoint'.
1936 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1938 * remote.c (remote_console_output): Reindent.
1940 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1942 * frame.c (has_stack_frames): Check for currently selected
1945 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1947 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1948 (set_async_annotation_level, set_async_prompt, pop_prompt)
1949 (push_prompt, new_async_prompt): Delete declarations.
1950 * top.h (get_prompt, set_prompt): Change prototype.
1951 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1953 * top.c (command_loop):
1954 (top_prompt): New global.
1955 (get_prefix, set_prefix, get_suffix, ): Delete.
1956 (get_prompt, set_prompt): Rewrite.
1957 (show_new_async_prompt): Rename to ...
1958 (show_prompt): ... this.
1959 (init_main): Adjust. Don't handle --annotate=2 here.
1960 * event-top.c (new_async_prompt): Delete.
1961 (the_prompts): Delete.
1962 (more_to_come): Make static.
1963 (display_gdb_prompt): Use top_level_prompt() to compute the top
1964 level prompt, and don't notify the before_prompt observers
1965 directly here. Always trick readline into not trying to display
1966 the prompt if sync_execution and displaying the primary prompt.
1967 If displaying a local/secondary prompt, always show it, even if
1968 sync_execution is set.
1969 (change_annotation_level): Delete.
1970 (top_level_prompt): New, based on change_annotation_level.
1971 (push_prompt, pop_prompt): Delete.
1972 (async_disable_stdin): No longer pushes prompt.
1973 (command_line_handler): No longer pushes or pops prompt. If more
1974 input is expected, call display_gdb_prompt with an explicit empty
1976 (async_stop_sig): Adjust.
1977 (set_async_annotation_level, set_async_prompt): Delete.
1978 * python/python.c (before_prompt_hook): Adjust.
1980 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1984 * infrun.c (fetch_inferior_event): Check if there's a selected
1985 thread before checking if the selected thread is executing.
1987 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1989 * inf-loop.c (execute_command): Don't check if the current thread
1990 if running before synchronously waiting for command completion.
1991 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1993 (normal_stop): Call async_enable_stdin here.
1994 * inf-loop.c (inferior_event_handler): Don't call
1995 async_enable_stdin, nor handle "set exec-done-display" here.
1997 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2001 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2003 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2005 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2007 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2009 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2011 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2013 2011-09-02 Matt Rice <ratmice@gmail.com>
2016 * event-top.c (cli_command_loop): Replace readline setup with
2017 direct call to display_gdb_prompt.
2018 (display_gdb_prompt): Do not call observer mechanism during
2019 synchronous execution.
2021 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2023 * linux-nat.c (in_pid_list_p): New.
2024 (linux_record_stopped_pid): Delete.
2025 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2026 already attached to the LWP. Return an indication if so.
2027 (linux_nat_filter_event): Adjust.
2028 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2029 returning an indication to ignore this thread.
2031 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2033 * top.c: Include interps.h.
2034 (execute_command): If the target can async, but the interpreter is
2035 in sync mode, synchronously wait for the command to finish before
2037 (execute_command_to_string): Force the interpreter to sync mode.
2038 * infrun.c: Include interps.h.
2039 (fetch_inferior_event): Don't restore the prompt yet if the
2040 interpreter is in sync mode.
2041 * interps.c (interpreter_async): New global.
2042 * interps.h (interpreter_async): Declare.
2043 * inf-loop.c: Include interps.h.
2044 (inferior_event_handler): Don't print the language change or run
2045 breakpoint commands yet if the interpreter in is sync mode.
2046 * main.c (captured_command_loop): Flip the interpreter to async
2048 * cli/cli-script.c: Include interps.h.
2049 (execute_user_command, while_command, if_command): Force the
2050 interpreter to sync mode.
2051 * python/python.c: Include interps.h.
2052 (python_command, execute_gdb_command): Force the interpreter to
2055 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2057 * value.c (show_convenience): Catch errors thrown while printing
2058 each internal variable.
2059 * infrun.c (validate_siginfo_access): New function.
2060 (siginfo_value_read, siginfo_value_write): Call it.
2062 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2065 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2066 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2069 2011-08-29 Yao Qi <yao@codesourcery.com>
2071 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2073 (enable_break2): Update caller.
2074 * solib-frv.c (bfd_lookup_symbol): Removed.
2076 (enable_break2): Update caller.
2077 * solib-pa64.c (bfd_lookup_symbol): Removed.
2079 * solib-svr4.c (bfd_lookup_symbol): Removed.
2080 (cmp_name_and_sec_flags): New.
2081 (enable_break): Update caller.
2082 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2083 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2084 (gdb_bfd_lookup_symbol): New.
2085 * solib.h: Functions declarations.
2087 2011-08-29 Yao Qi <yao@codesourcery.com>
2089 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2092 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Fix TUI stepi on code without symbols.
2095 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2098 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2102 and the static keyword.
2103 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2104 Make prefix an array.
2105 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2106 * mi/mi-main.c (get_register): Remove stb initialization and the static
2109 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 Code cleanup - make mi_opt const.
2112 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2114 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2115 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2116 (mi_cmd_env_dir): Likewise.
2117 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2118 (mi_cmd_target_file_put): Likewise.
2119 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2120 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2121 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2122 (mi_valid_noargs): Make opts const.
2123 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2124 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2125 (mi_cmd_data_read_memory): Likewise.
2126 (mi_cmd_data_read_memory_bytes): Likewise.
2127 (mi_cmd_data_write_memory): Likewise.
2129 2011-08-26 Matt Rice <ratmice@gmail.com>
2131 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2132 bcache_xmalloc, replace bcache_xmalloc with call to
2133 psymbol_bcache_init for psymbol_cache.
2134 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2136 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2138 * inf-loop.c (inferior_event_handler): Add exception_print in
2141 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2144 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2145 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2146 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2147 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2148 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2149 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2150 * infrun.c (fetch_inferior_event): Call
2151 make_bpstat_clear_actions_cleanup.
2152 * top.c (execute_command): New variable cleanup_if_error, call
2153 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2154 * utils.c (do_bpstat_clear_actions_cleanup)
2155 (make_bpstat_clear_actions_cleanup): New functions.
2157 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2159 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2160 either the parent or the child forks. Rename a couple locals.
2162 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2164 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2165 library call. Avoid reading the `status' local if all waitpid
2168 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2170 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2171 opening /proc/PID/task always succeeds.
2173 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2175 * linespec.c (symtab_from_filename): Check for the end of string.
2177 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2180 * varobj.c (cplus_describe_child): Add the keyword
2181 'class' to the output of the method when dealing
2182 with a cast to a base class.
2184 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2186 No functionality change.
2187 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2188 function comment a reference, new variables tp and bs, move here code
2189 from throw_exception.
2190 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2191 describe it in the comment.
2192 * exceptions.c (throw_exception): Remove variable tp, move the code for
2193 bpstat_clear_actions to bpstat_clear_actions.
2195 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2197 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2198 * linux-nat.c: Include linux-procfs.h.
2199 (linux_proc_get_tgid): Move to ...
2200 * common/linux-procfs.c: ... here. New file.
2201 * common/linux-procfs.h: New file.
2202 * linux-thread-db.c: Include linux-procfs.h.
2203 * Makefile.in: Update dependencies.
2204 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2205 * config/arm/linux.mh: Likewise.
2206 * config/i386/linux.mh: Likewise.
2207 * config/i386/linux64.mh: Likewise.
2208 * config/ia64/linux.mh: Likewise.
2209 * config/m32r/linux.mh: Likewise.
2210 * config/m68k/linux.mh: Likewise.
2211 * config/mips/linux.mh: Likewise.
2212 * config/pa/linux.mh: Likewise.
2213 * config/pa/linux.mh: Likewise.
2214 * config/powerpc/linux.mh: Likewise.
2215 * config/powerpc/ppc64-linux.mh: Likewise.
2216 * config/powerpc/spu-linux.mh: Likewise.
2217 * config/sparc/linux.mh: Likewise.
2218 * config/sparc/linux64.mh: Likewise.
2219 * config/xtensa/linux.mh: Likewise.
2221 2011-08-24 Hui Zhu <teawater@gmail.com>
2223 * tracepoint.c (cond_string_is_same): New function.
2224 (find_matching_tracepoint): Add condition check
2225 by cond_string_is_same.
2227 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2229 Fix build error in Darwin port.
2230 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2232 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2235 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2236 (command_line_is_silent): New function.
2237 (bpstat_do_actions_1): No longer use commands_left, use
2238 command_line_is_silent for commands.
2239 (bpstat_alloc): Remove clearing of commands_left.
2240 (bpstat_stop_status): Remove initialization of commands_left, use
2241 command_line_is_silent.
2242 * breakpoint.h (struct bpstats): Remove commands_left.
2244 2011-08-18 Keith Seitz <keiths@redhat.com>
2247 * cp-name-parser.y (struct demangle_info): Remove unused
2250 (allocate_info): Change return type to struct demangle_info *.
2251 Always allocate a new demangle_info.
2252 Remove unused PREV pointer.
2253 (cp_new_demangle_parse_info): New function.
2254 (cp_demangled_name_parse_free): New function.
2255 (do_demangled_name_parse_free_cleanup): New function.
2256 (make_cleanup_cp_demangled_name_parse_free): New function.
2257 (cp_demangled_name_to_comp): Change return type to
2258 struct demangle_parse_info *.
2259 Allocate a new storage for each call.
2260 (main): Update usage for cp_demangled_name_to_comp
2262 * cp-support.h (struct demangle_parse_info): New structure.
2263 (cp_demangled_name_to_comp): Update API change for
2265 (cp_new_demangle_parse_info): Declare.
2266 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2267 (cp_demangled_name_parse_free): Declare.
2268 * cp-support.c (cp_canonicalize_string): Update API
2269 change for cp_demangled_name_to_comp.
2270 (mangled_name_to_comp): Likewise.
2271 Return struct demangle_parse_info, too.
2272 (cp_class_name_from_physname): Update mangled_name_to_comp
2274 (method_name_from_physname): Likewise.
2275 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2276 (cp_remove_params): Likewise.
2277 * python/py-type.c (typy_legacy_template_argument): Likewise.
2279 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2280 (cp_merge_demangle_parse_infos): Declare.
2281 * cp-support.c (ignore_typedefs): New file global.
2282 (copy_string_to_obstack): New function.
2283 (inspect_type): New function.
2284 (replace_typedefs): New function.
2285 (replace_typedefs_qualified_name): New function.
2286 (cp_canonicalize_string_no_typedefs): New function.
2287 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2288 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2289 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2290 instead of cp_canonicalize_string.
2291 (find_method): Likewise.
2292 (decode_compound): Before looking up the name, call
2293 cp_canonicalize_string_no_typedefs.
2294 (decode_variable): Likewise.
2296 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2297 Tom Tromey <tromey@redhat.com>
2298 Matt Rice <ratmice@gmail.com>
2300 * python/lib/gdb/prompt.py: New file.
2301 * python/lib/gdb/command/prompt.py: New file.
2302 * NEWS: Document set extended-prompt and gdb.prompt library
2304 2011-08-16 Yao Qi <yao@codesourcery.com>
2306 * tic6x-linux-tdep.c: Move const arrays definition from here...
2307 * tic6x-tdep.c: to here ...
2309 2011-08-14 Yao Qi <yao@codesourcery.com>
2311 * NEWS: New port to Texas Instruments TMS320C6x.
2313 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2314 Bernd Schmidt <bernds@codesourcery.com>
2315 Yao Qi <yao@codesourcery.com>
2317 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2318 * solib-dsbt.c: New file. Support DSBT shared object.
2319 * tic6x-linux-tdep.c: New file.
2320 * tic6x-tdep.c: New file.
2321 * tic6x-tdep.h: New file.
2323 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2324 Yao Qi <yao@codesourcery.com>
2326 * remote.c (PACKET_qXfer_fdpic): New enum value.
2327 (remote_protocol_features): Add qXfer:fdpic:read packet.
2328 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2329 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2330 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2332 2011-08-14 Yao Qi <yao@codesourcery.com>
2334 Target description for tic6x.
2335 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2336 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2337 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2338 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2339 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2340 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2341 * features/tic6x-c64xp-linux.xml: New.
2342 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2343 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2344 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2345 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2346 * regformats/tic6x-c64xp.dat,
2347 regformats/tic6x-c62x-linux.dat: Generated.
2348 * regformats/tic6x-c64x-linux.dat,
2349 regformats/tic6x-c64xp-linux.dat: Generated.
2350 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2351 features/tic6x-*.c files.
2352 Add regformats/tic6x-*.dat files.
2354 2011-08-12 Doug Evans <dje@google.com>
2356 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2357 * python/py-symbol.c (sympy_get_type): New function.
2358 (symbol_object_getset): Add "type".
2360 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2364 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2366 (tui_show_register_group): Don't store a byte buffer in the data
2368 (tui_register_format): Skip registers with an empty name.
2369 (tui_get_register): Store a struct value in the data element's
2370 value field instead of a byte buffer holding the raw register
2371 contents. Account for optimized-out and unavailable registers
2372 when comparing register contents.
2374 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2376 * printcmd.c (current_display_number): Update comment.
2377 (disable_current_display_cleanup): Delete.
2378 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2379 catch errors thrown while evaluating and printing the display.
2381 2011-08-09 Tom Tromey <tromey@redhat.com>
2383 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2385 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2387 * elfread.c (elf_symtab_read): Rework comments.
2388 * maint.c (maintenance_command): Ditto.
2389 * somread.c (som_symtab_read): Ditto.
2390 * solib.c (solib_find, solib_map_sections, update_solib_list)
2391 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2392 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2393 (sharedlibrary_command, no_shared_libraries): Ditto.
2394 * solib-irix.c (locate_base, disable_break, enable_break)
2395 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2396 (irix_current_sos, irix_open_symbol_file_object)
2397 (irix_special_symbol_handling): Ditto.
2398 * solib-sunos.c (locate_base, first_link_map_member)
2399 (sunos_current_sos, disable_break, enable_break)
2400 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2402 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2403 (open_symbol_file_object, svr4_current_sos, enable_break)
2404 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2406 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2407 (frv_current_sos, enable_break, frv_special_symbol_handling)
2408 (frv_solib_create_inferior_hook): Ditto.
2409 * solist.h (struct target_so_ops): Extend the comments of the
2410 special_symbol_handling, current_sos and open_symbol_file_object
2413 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2415 * python/lib/gdb/__init__.py: Auto-load files in command and
2416 function directories.
2417 * python/python.c (finish_python_initialization): Use
2419 * python/lib/gdb/command/pretty_printers.py: Self register
2421 * NEWS: Document auto-loading.
2423 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2425 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2426 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2427 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2429 2011-08-08 Tom Tromey <tromey@redhat.com>
2431 * breakpoint.c (clean_up_filters): Remove.
2432 (catch_syscall_split_args): Use VEC_cleanup.
2434 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2436 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2437 (main): Uncomment "Demangling error\n".
2439 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2441 * solib-target.c (segment_attributes): Make them static.
2442 (section_attributes, library_children, library_attributes): Likewise.
2443 (library_list_children, library_list_attributes): Likesise.
2444 (library_list_elements): Likewise.
2446 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2448 * exceptions.c (throw_exception): Don't disable the current
2450 * printcmd.c (disable_current_display_cleanup): New function.
2451 (do_one_display): Install a cleanup to disable the current display
2452 if doing the display throws.
2454 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2456 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2457 initialization of the tp_new member to the corresponding
2458 gdbpy_initialize_* function.
2459 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2460 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2461 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2462 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2463 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2465 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2467 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2468 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2469 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2470 references to current_uiout.
2472 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2474 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2475 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2476 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2477 * top.c (gdb_readline_wrapper): Adjust.
2478 * tui/tui-interp.c (tui_command_loop):
2479 (_initialize_tui_interp): Don't install it.
2481 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2483 * ui-out.h (uiout): Rename to ...
2484 (current_uiout): ... this.
2485 * ui-out.c (uiout): Rename to ...
2486 (current_uiout): ... this.
2487 * ada-lang.c (print_it_exception, print_one_exception)
2488 (print_mention_exception): Adjust.
2489 * breakpoint.c (watchpoint_check): Adjust.
2490 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2491 (default_collect_info, watchpoints_info, print_one_catch_fork)
2492 (print_one_catch_vfork, print_one_catch_syscall)
2493 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2494 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2495 (print_it_watchpoint, print_mention_watchpoint)
2496 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2497 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2498 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2499 (bkpt_print_mention, momentary_bkpt_print_it)
2500 (tracepoint_print_mention, update_static_tracepoint)
2501 (tracepoints_info, save_breakpoints): Adjust.
2502 * cli-out.c (field_separator): Adjust.
2503 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2504 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2505 * frame.c (get_current_frame): Adjust.
2506 * infcmd.c (run_command_1, print_return_value): Adjust.
2507 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2508 * infrun.c (print_end_stepping_range_reason): Adjust.
2509 (print_signal_exited_reason, print_exited_reason): Adjust.
2510 (print_signal_received_reason, print_no_history_reason): Adjust.
2511 * interps.c (interp_set): Adjust.
2512 * osdata.c (info_osdata_command): Adjust.
2513 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2514 * remote-fileio.c (remote_fileio_request): Adjust.
2515 * remote.c (show_remote_cmd): Adjust.
2516 * solib.c (info_sharedlibrary_command): Adjust.
2517 * source.c (print_source_lines_base): Adjust.
2518 * stack.c (print_stack_frame): Adjust.
2519 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2520 * symfile-mem.c (add_vsyscall_page): Adjust.
2521 * symfile.c (load_progress, generic_load)
2522 (print_transfer_performance): Adjust.
2523 * thread.c (info_threads_command, restore_selected_frame)
2524 (thread_command): Adjust.
2525 * top.c (make_cleanup_restore_ui_file): Adjust.
2526 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2527 (print_one_static_tracepoint_marker): Adjust.
2528 * cli/cli-cmds.c (print_disassembly): Adjust.
2529 * cli/cli-decode.c (print_doc_line): Adjust.
2530 * cli/cli-interp.c (safe_execute_command): Adjust.
2531 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2532 (handle_redirections): Adjust.
2533 * cli/cli-script.c (show_user_1): Adjust.
2534 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2535 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2536 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2537 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2538 (mi_cmd_env_dir): Adjust.
2539 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2540 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2541 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2542 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2543 (list_args_or_locals): Adjust.
2544 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2545 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2546 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2547 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2548 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2549 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2550 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2551 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2552 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2553 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2554 (list_available_thread_groups, mi_cmd_list_thread_groups)
2555 (mi_cmd_data_list_register_names)
2556 (mi_cmd_data_list_changed_registers)
2557 (mi_cmd_data_list_register_values, get_register)
2558 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2559 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2560 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2561 (mi_execute_command, mi_load_progress): Adjust.
2562 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2563 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2565 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2566 * tui/tui-interp.c (tui_command_loop): Adjust.
2567 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2569 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2571 * exceptions.c (struct catcher): Remove saved_uiout field.
2572 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2573 no longer save/resvore the global ui_out builder.
2574 (catch_exceptions_with_msg): Save/override/restore the global
2575 ui_out builder manually instead of relying on TRY_CATCH to do it.
2576 (catch_errors): Save/restore the global ui_out builder manually
2577 instead of relying on TRY_CATCH to do it.
2578 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2580 (TRY_CATCH): Adjust.
2581 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2582 the global ui_out builder manually instead of relying on TRY_CATCH
2585 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2587 * breakpoint.c (update_global_location_list): Ensure
2588 invariant 'first loc marked not duplicated and inserted,
2589 following locs marked duplicated/not inserted' is respected
2590 for multiple locations at the same address.
2591 (unduplicated_should_be_inserted) New function.
2592 (swap_insertion) New function.
2594 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 * stack.c (print_frame_arguments_choices): Comment typo fix.
2598 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2601 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2602 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2603 argument. Update callers.
2605 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2608 * doublest.c (convert_doublest_to_floatformat): Pass correct
2609 mantissa length to put_field.
2611 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2613 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2614 exception_print code path.
2615 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2616 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2617 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2619 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2622 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2623 Remove, merge them into ...
2624 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2625 variable args and its initialization.
2626 (struct print_args_args, print_args_stub): Remove, merge them into
2628 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2630 (do_gdb_disassembly): ... here. Remove variable args and its
2632 (print_frame): Remove variable args and its initialization, new
2633 variable gdbarch and numargs (from print_args_stub), inline here
2634 print_args_stub with a TRY_CATCH.
2635 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2637 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2638 New variable e, remove variable btargs and its initialization.
2640 2011-08-01 Tristan Gingold <gingold@adacore.com>
2642 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2644 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2646 * breakpoint.c (insert_bp_location): Document return value.
2647 (insert_breakpoint_locations): Fix documentation.
2648 (remove_breakpoints): Add documentation.
2650 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2652 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2653 argument. Update callers.
2655 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 * stack.c (print_frame_info): Comment typo fix.
2659 2011-07-29 Sterling Augustine <saugustine@google.com>
2661 * MAINTAINERS (Write After Approval): Add myself to the list.
2663 2011-07-29 Tom Tromey <tromey@redhat.com>
2665 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2666 (library_list_start_segment): Update.
2667 (library_list_start_section): Update.
2669 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2671 * varobj.c (value_get_print_value): Move hint check later into the
2672 function. Comment function. Free thevalue before reusing it.
2674 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 Pedro Alves <pedro@codesourcery.com>
2677 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2679 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2680 Assert the result kind.
2681 * value.h (value_one): Remove parameter lv.
2683 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 Fix crash on lval_computed values.
2686 * valops.c (value_zero): Use not_lval for lval_computed.
2688 2011-07-27 Tom Tromey <tromey@redhat.com>
2690 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2691 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2693 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2695 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2696 "ptype" by their typedefs difference.
2698 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2700 * dwarf2expr.c (ctx_no_read_reg): New function.
2701 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2702 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2703 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2704 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2706 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2709 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2711 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2712 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2713 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2714 (ctx_no_get_base_type): Move the functions here.
2715 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2716 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2717 (ctx_no_get_base_type): New declarations.
2719 2011-07-27 Tom Tromey <tromey@redhat.com>
2721 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2723 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2724 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2726 2011-07-26 Sterling Augustine <saugustine@google.com>
2728 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2730 (dump_bfd_file): Likewise.
2732 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2734 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2735 (remote_hw_watchpoint_length_limit): New variable.
2736 (_initialize_remote) add set,show cmds for this new variable.
2737 * gdb.texinfo: document these new commands.
2738 * NEWS: Mention these new commands.
2740 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2742 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2743 true for software watchpoints.
2745 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2749 2011-07-26 Tom Tromey <tromey@redhat.com>
2751 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2752 * dwarf2read.c (read_indirect_string_at_offset): New function.
2753 (read_indirect_string): Use it.
2754 (dwarf_decode_macro_bytes): New function, taken from
2755 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2756 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2757 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2759 (struct dwarf2_per_objfile) <macro>: New field.
2760 (dwarf2_elf_names): Add .debug_macro.
2761 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2762 (dwarf2_locate_sections): Handle new section.
2763 (read_file_scope): Handle DW_AT_GNU_macros.
2764 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2766 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2768 * NEWS: Mention dcache configuration.
2769 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2770 (dcache_size, dcache_line_size): New variables.
2771 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2772 (struct dcache_block): Make it expandable.
2773 (struct dcache_struct): New field.
2774 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2775 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2776 (dcache_poke_byte, dcache_print_line): Adjust.
2777 (set_dcache_size, set_dcache_line_size): New functions.
2778 (set_dcache_command, show_dcache_command): New functions.
2779 (_initialize_dcache): Add new commands.
2781 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2783 * progspace.h (struct program_space): Add solib_add_generation.
2784 * infcmd.c (post_create_inferior): Only call solib_add if not
2786 * solib.c (solib_add): Increment solib_add_generation.
2788 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 Fix implicit pointer offsets.
2791 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2794 2011-07-25 Tom Tromey <tromey@redhat.com>
2796 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2798 (ada_exception_sal): Make 'ops' const.
2799 (ada_decode_exception_location): Likewise.
2800 (ada_decode_assert_location): Likewise.
2801 (catch_assert_command): Update.
2802 (catch_ada_exception_command): Update.
2803 (create_ada_exception_catchpoint): Make 'ops' const.
2804 * breakpoint.c (set_raw_breakpoint_without_location)
2805 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2807 (create_internal_breakpoint): Update.
2808 (init_raw_breakpoint_without_location): Make 'ops' const.
2809 (init_raw_breakpoint, init_catchpoint)
2810 (create_fork_vfork_event_catchpoint)
2811 (create_syscall_event_catchpoint, init_breakpoint_sal)
2812 (create_breakpoint_sal, create_breakpoints_sal)
2813 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2814 * breakpoint.h (struct breakpoint) <ops>: Now const.
2815 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2818 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2820 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2822 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2824 * breakpoint.h (print_recreate_thread): Declare.
2825 (struct breakpoint): Move step_count, pass_count,
2826 number_on_target, static_trace_marker_id,
2827 static_trace_marker_id_idx ...
2828 (struct tracepoint): ... to this new struct.
2829 (get_tracepoint, get_tracepoint_by_number_on_target)
2830 (get_tracepoint_by_number): Change return type to struct
2832 * breakpoint.c (is_tracepoint_type): New, factored out from
2834 (is_tracepoint): Adjust.
2835 (print_one_breakpoint_location): Cast to struct tracepoint as
2836 necessary, and adjust.
2837 (print_recreate_catch_fork, print_recreate_catch_vfork)
2838 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2839 print_recreate_thread.
2840 (init_breakpoint_sal): New, factored out from
2841 create_breakpoint_sal.
2842 (create_breakpoint_sal): Reimplement.
2843 (create_breakpoint): Allocate a struct tracecepoint if the caller
2844 wanted a tracepoint. Use init_breakpoint_sal and
2846 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2847 (print_recreate_masked_watchpoint)
2848 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2849 (tracepoint_print_one_detail): Adjust.
2850 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2851 Dump the pass count here.
2852 (update_static_tracepoint): Adjust.
2853 (addr_string_to_sals): Adjust.
2854 (create_tracepoint_from_upload): Adjust. Change return type to
2855 struct tracepoint pointer.
2856 (trace_pass_set_count): Change parameter type to struct tracepoint
2857 pointer, and adjust.
2858 (trace_pass_command): Adjust.
2859 (get_tracepoint, get_tracepoint_by_number_on_target)
2860 (get_tracepoint_by_number): Change return type to struct
2861 tracepoint pointer, and adjust.
2862 (print_recreate_thread): New, factored out from save_breakpoints.
2863 (save_breakpoints): Don't print thread and task and passcount
2865 * remote.c (remote_download_tracepoint): Adjust.
2866 * tracepoint.c (trace_actions_command, validate_actionline)
2867 (start_tracing, tfind_1, trace_find_tracepoint_command)
2868 (trace_dump_command): Adjust.
2869 (find_matching_tracepoint): Change return type to struct
2870 tracepoint pointer, and adjust.
2871 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2872 (tfile_trace_find, tfile_fetch_registers): Adjust.
2873 * tracepoint.h (create_tracepoint_from_upload): Change return type
2874 to struct tracepoint pointer.
2875 * ada-lang.c (print_recreate_exception): Call
2876 print_recreate_thread.
2877 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2879 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2881 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2882 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2883 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2884 watchpoint_thread, watchpoint_triggered ...
2885 (struct watchpoint): ... to this new struct.
2886 (is_watchpoint): Declare.
2887 (install_breakpoint): Add new `internal' parameter.
2888 * breakpoint.c (is_watchpoint): Delete declaration.
2889 (set_breakpoint_condition): Handle watchpoints.
2890 (is_watchpoint): Make public.
2891 (watchpoint_in_thread_scope): Change parameter type to struct
2893 (watchpoint_del_at_next_stop): Change parameter type to struct
2894 watchpoint. Remove assertion. Adjust.
2895 (update_watchpoint): Ditto.
2896 (insert_breakpoints, breakpoint_init_inferior)
2897 (watchpoints_triggered, watchpoint_check)
2898 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2899 (bpstat_stop_status, print_one_breakpoint_location)
2900 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2901 to struct watchpoint as necessary, and adjust.
2902 (install_breakpoint): Add `internal' argument. If true, don't
2903 mention the new breakpoint. Use set_breakpoint_number.
2904 (create_fork_vfork_event_catchpoint)
2905 (create_syscall_event_catchpoint): Adjust.
2906 (dtor_watchpoint): New.
2907 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2908 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2909 (print_it_watchpoint, print_mention_watchpoint)
2910 (print_recreate_watchpoint, insert_masked_watchpoint)
2911 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2912 (print_one_detail_masked_watchpoint)
2913 (print_mention_masked_watchpoint)
2914 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2915 necessary, and adjust.
2916 (watch_command_1): Allocate and initialize a struct watchpoint
2917 instead of a struct breakpoint. Use install_breakpoint.
2918 (catch_exec_command_1): Adjust.
2919 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2921 (delete_breakpoint, enable_breakpoint_disp)
2922 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2923 as necessary, and adjust.
2924 (initialize_breakpoint_ops): Install dtor_watchpoint as
2925 watchpoints' dtor method.
2926 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2927 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2928 to struct watchpoint as necessary, and adjust.
2930 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2932 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2933 the the base class ops table.
2934 (catch_exception_breakpoint_ops)
2935 (catch_exception_unhandled_breakpoint_ops)
2936 (catch_assert_breakpoint_ops): Don't statically initialize.
2937 (initialize_ada_catchpoint_ops): New.
2938 (_initialize_ada_language): Call it.
2939 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2940 (bkpt_breakpoint_ops): Forward declare.
2941 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2942 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2943 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2944 (masked_watchpoint_breakpoint_ops)
2945 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2946 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2947 base class ops table.
2948 (null_re_set, null_check_status, null_works_in_software_mode)
2949 (null_resources_needed, null_print_one_detail): Delete.
2950 (bkpt_dtor): Rename to ...
2951 (base_breakpoint_dtor): ... this. Make static.
2952 (bkpt_allocate_location): Rename to ...
2953 (base_breakpoint_allocate_location): ... this. Make static.
2954 (base_breakpoint_re_set): New.
2955 (internal_error_pure_virtual_called): New.
2956 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2957 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2958 (base_breakpoint_works_in_software_mode)
2959 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2960 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2961 (base_breakpoint_print_recreate): New functions.
2962 (base_breakpoint_ops): New global.
2963 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2964 (bkpt_breakpoint_hit): Make static.
2965 (bkpt_check_status): Delete.
2966 (bkpt_resources_needed): Make static.
2967 (bkpt_works_in_software_mode): Delete.
2968 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2970 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2971 (momentary_breakpoint_ops): Don't statically initialize.
2972 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2974 (tracepoint_insert_location, tracepoint_remove_location)
2975 (tracepoint_check_status, tracepoint_works_in_software_mode)
2976 (tracepoint_print_it): Delete.
2977 (tracepoint_breakpoint_ops): Don't statically initialize.
2978 (initialize_breakpoint_ops): New.
2979 (_initialize_breakpoint): Call it.
2980 * breakpoint.h (null_re_set, null_works_in_software_mode)
2981 (null_resources_needed, null_check_status, null_print_one_detail):
2982 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2983 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2984 (bkpt_check_status, bkpt_resources_needed)
2985 (bkpt_works_in_software_mode, bkpt_print_it)
2986 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2987 Delete declarations.
2988 (initialize_breakpoint_ops): Declare.
2990 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2992 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2993 (momentary_bkpt_print_it): Simplify.
2995 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2997 Split internal, momentary and user breakpoints breakpoint_ops
3000 * breakpoint.c (internal_breakpoint_ops)
3001 (momentary_breakpoint_ops): Forward declare.
3002 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3003 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3004 (create_overlay_event_breakpoint)
3005 (create_std_terminate_master_breakpoint)
3006 (create_exception_master_breakpoint): Create breakpoints with
3007 internal_breakpoint_ops vtable.
3008 (set_longjmp_breakpoint): Create momentary breakpoints with
3009 momentary_breakpoint_ops vtable, using
3010 momentary_breakpoint_from_master.
3011 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3012 (create_solib_event_breakpoint): Create breakpoints with
3013 internal_breakpoint_ops vtable.
3014 (set_momentary_breakpoint): Create breakpoints with
3015 momentary_breakpoint_ops vtable.
3016 (momentary_breakpoint_from_master): New, factored out from
3017 clone_momentary_breakpoint.
3018 (clone_momentary_breakpoint): Adjust.
3019 (watch_command_1): Create scope breakpoints with
3020 momentary_breakpoint_ops vtable.
3021 (bkpt_re_set): Remove handling of internal and momentary
3023 (bkpt_print_mention, bkpt_print_recreate): New.
3024 (bkpt_breakpoint_ops): Adjust.
3025 (internal_bkpt_re_set, internal_bkpt_check_status)
3026 (internal_bkpt_print_it, internal_bkpt_print_mention)
3027 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3028 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3029 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3030 (momentary_bkpt_print_recreate): New.
3031 (momentary_breakpoint_ops): New.
3033 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3035 Implement most breakpoint_ops methods for all breakpoint types,
3036 and move the default handlings to the proper callbacks.
3038 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3039 works_in_software_mode method.
3040 (insert_bp_location): Go through breakpoint_ops->insert_location
3041 for software and hardware watchpoints.
3042 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3044 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3045 for software and hardware watchpoints.
3046 (print_it_typical): Delete.
3047 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3049 (watchpoint_check): Adjust comment.
3050 (bpstat_check_location): Simply always call the breakpoint's
3051 breakpoint_hit method.
3052 (bpstat_stop_status): Always call the breakpoint's check_status
3053 method. Remove special cases for watchpoints and internal event
3054 breakpoints from here (moved to the check_status implementations).
3055 (print_one_breakpoint_location): Assume b->ops is never NULL.
3056 Remove static tracepoint marker id printing from here (moved to
3057 the print_one_detail callback implementation of tracepoints).
3058 (init_bp_location): Assert OPS is never NULL.
3059 (allocate_bp_location): Always call the breakpoint's
3060 allocate_location method, and remove the default code from here.
3061 (free_bp_location): Always call the location's dtor method, and
3062 remove the default code from here.
3063 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3064 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3065 parameter. Pass it down.
3066 (set_raw_breakpoint): Ditto.
3067 (print_it_catch_fork): Adjust to take a bpstat as argument.
3068 (catch_fork_breakpoint_ops): Install methods.
3069 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3070 (catch_vfork_breakpoint_ops): Install methods.
3071 (dtor_catch_syscall): Call the base dtor.
3072 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3073 (catch_syscall_breakpoint_ops): Install methods.
3074 (dtor_catch_exec): Call the base dtor.
3075 (print_it_catch_exec): Adjust to take a bpstat as argument.
3076 (catch_exec_breakpoint_ops): Install methods.
3077 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3078 the breakpoint's resources_needed method, and remove the default
3080 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3082 (clone_momentary_breakpoint): Clone the original's ops.
3083 (mention): Always call the breakpoint's print_mention method, and
3084 remove the default code from here.
3085 (create_breakpoint_sal): Adjust to pass the ops to
3086 set_raw_breakpoint rather than setting it manually.
3087 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3088 ops to set_raw_breakpoint_without_location rather than setting it
3090 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3091 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3092 (ranged_breakpoint_ops): Install methods.
3093 (break_range_command): Adjust to pass the ops to
3094 set_raw_breakpoint rather than setting it manually.
3095 (re_set_watchpoint, breakpoint_hit_watchpoint)
3096 (check_status_watchpoint, resources_needed_watchpoint)
3097 (works_in_software_mode_watchpoint, print_it_watchpoint)
3098 (print_mention_watchpoint, print_recreate_watchpoint): New
3100 (watchpoint_breakpoint_ops): Install new methods.
3101 (print_it_masked_watchpoint): New function.
3102 (masked_watchpoint_breakpoint_ops): Install new methods.
3103 (watch_command_1): Adjust to pass the right breakpoint_ops to
3104 set_raw_breakpoint_without_location rather than setting it
3105 manually later. Record the current pspace.
3106 (print_it_exception_catchpoint): Adjust to take a bpstat as
3108 (gnu_v3_exception_catchpoint_ops): Install new methods.
3109 (say_where): New function.
3110 (null_re_set, null_check_status, null_works_in_software_mode)
3111 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3113 (bp_location_ops): New global.
3114 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3115 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3116 (bkpt_check_status, bkpt_resources_needed)
3117 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3118 (bkpt_print_recreate): New functions.
3119 (bkpt_breakpoint_ops): New global.
3120 (tracepoint_re_set, tracepoint_insert_location)
3121 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3122 (tracepoint_check_status, tracepoint_works_in_software_mode)
3123 (tracepoint_print_it, tracepoint_print_one_detail)
3124 (tracepoint_print_mention, tracepoint_print_recreate): New
3126 (tracepoint_breakpoint_ops): New global.
3127 (delete_breakpoint): Always call the breakpoint's dtor method, and
3128 remove the default handling from here.
3129 (breakpoint_re_set_default): Make static.
3130 (breakpoint_re_set_one): Always call the breakpoints re_set
3131 method, and remove the default handling from here.
3132 (trace_command, ftrace_command, strace_command)
3133 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3134 to create_breakpoint.
3135 (save_breakpoints): Always call the breakpoint's print_recreate
3136 method, and remove the default handling from here.
3138 * ada-lang.c (dtor_exception): Call the base dtor.
3139 (re_set_exception): Call the base method.
3140 (print_it_exception, print_it_catch_exception): Adjust to take a
3142 (catch_exception_breakpoint_ops): Install methods.
3143 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3145 (catch_exception_unhandled_breakpoint_ops): Install methods.
3146 (print_it_catch_assert): Adjust to take a bpstat as argument.
3147 (catch_assert_breakpoint_ops): Install methods.
3149 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3150 to take a bpstat as argument.
3151 (enum print_stop_action): Add describing comments to each enum
3153 (breakpoint_re_set_default): Delete declaration.
3154 (null_re_set, null_works_in_software_mode, null_resources_needed)
3155 (null_check_status, null_print_one_detail): Declare.
3156 (bkpt_breakpoint_ops): Declare.
3157 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3158 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3159 (bkpt_check_status, bkpt_resources_needed)
3160 (bkpt_works_in_software_mode, bkpt_print_it)
3161 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3164 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3165 bkpt_breakpoint_ops.
3166 * python/py-breakpoint.c (bppy_init): Ditto.
3168 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3170 * MAINTAINERS (Write After Approval): Add myself to the list.
3172 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3174 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3176 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3178 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3179 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3180 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3182 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3183 (struct i386_debug_reg_state): New.
3184 (i386_init_dregs): New.
3186 (i386_cleanup_dregs): Use i386_init_dregs.
3187 (i386_show_dr): Add state parameter and adjust.
3188 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3190 (i386_remove_aligned_watchpoint): Likewise.
3191 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3192 (i386_update_inferior_debug_regs): New.
3193 (i386_insert_watchpoint): Work on a local mirror of the debug
3194 registers, and only update the inferior on success.
3195 (i386_remove_watchpoint): Ditto.
3196 (i386_region_ok_for_watchpoint): Adjust.
3197 (i386_stopped_data_address): Adjust.
3198 (i386_insert_hw_breakpoint): Adjust.
3199 (i386_remove_hw_breakpoint): Adjust.
3201 2011-07-22 Tom Tromey <tromey@redhat.com>
3203 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3204 from amd64_pseudo_register_read. Change arguments. Call
3205 mark_value_bytes_unavailable when needed.
3206 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3207 set_gdbarch_pseudo_register_read.
3208 * sentinel-frame.c (sentinel_frame_prev_register): Use
3209 regcache_cooked_read_value.
3210 * regcache.h (regcache_cooked_read_value): Declare.
3211 * regcache.c (regcache_cooked_read_value): New function.
3212 (regcache_cooked_read): Call
3213 gdbarch_pseudo_register_read_value if available.
3214 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3215 (i386_pseudo_register_read): Remove.
3216 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3217 i386_pseudo_register_read. Change arguments. Call
3218 mark_value_bytes_unavailable when needed.
3219 (i386_pseudo_register_read_value): New function.
3220 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3221 not set_gdbarch_pseudo_register_read.
3222 * gdbarch.sh (pseudo_register_read_value): New method.
3223 * gdbarch.c, gdbarch.h: Rebuild.
3224 * findvar.c (value_from_register): Call get_frame_register_value.
3226 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3228 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3230 (display_gdb_prompt): Likewise.
3231 (change_annotation_level): Likewise.
3232 (push_prompt): Likewise.
3233 (pop_prompt): Likewise.
3234 (handle_stop_sig): Use get_prompt with a level.
3235 * top.c (command_loop): Use get_prompt with a level.
3236 (set_async_annotation_level): Use set_prompt with a level.
3237 (get_prefix): New function.
3238 (set_prefix): Ditto.
3239 (set_suffix): Ditto.
3240 (get_suffix): Ditto.
3241 (get_prompt): Accept a level argument.
3242 (set_prompt): Accept a level argument. Free old prompts. Set
3243 new_async_prompt if level is 0.
3244 (init_main): Use set_prompt with a level. Do not set
3246 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3247 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3248 Modify set_prompt, get_prompt to account for levels.
3249 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3251 * python/python.c (before_prompt_hook): Use set_prompt.
3253 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3255 * defs.h: Add guard against inclusion in gdbserver.
3256 (struct ptid, ptid_t): Move to common/ptid.h.
3257 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3258 xsnprintf, internal_error): Move to common/common-utils.h.
3260 * gdb_assert.h: Move into common/ sub-directory.
3261 * gdb_locale.h: Ditto.
3262 * gdb_dirent.h: Ditto.
3263 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3264 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3265 Move into common/ptid.h.
3266 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3267 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3268 Change nomem to malloc_failure.
3269 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3270 * utils.c (nomem): Rename to malloc_failure.
3271 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3272 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3273 (gdb_buildargv): Change nomem to malloc_failure.
3274 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3275 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3276 ptid_is_pid): Move into common/ptid.c.
3277 (initialize_infrun): Delete initialization of null_ptid and
3279 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3280 linux_common_xfer_osdata.
3281 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3282 common/ptid.c and common/buffer.c.
3283 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3284 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3285 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3286 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3288 * common/gdb_assert.h: New.
3289 * common/gdb_dirent.h: New.
3290 * common/gdb_locale.h: New.
3291 * common/buffer.c: New.
3292 * common/buffer.h: New.
3293 * common/ptid.c: New.
3294 * common/ptid.h: New.
3295 * common/xml-utils.c: New.
3296 * common/xml-utils.h: New.
3297 * common/common-utils.c: New.
3298 * common/common-utils.h: New.
3299 * common/linux-osdata.c: New.
3300 * common/linux-osdata.h: New.
3301 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3302 * config/arm/linux.mh (NATDEPFILES): Ditto.
3303 * config/i386/linux.mh (NATDEPFILES): Ditto.
3304 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3305 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3306 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3307 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3308 * config/mips/linux.mh (NATDEPFILES): Ditto.
3309 * config/pa/linux.mh (NATDEPFILES): Ditto.
3310 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3311 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3312 * config/s390/s390.mh (NATDEPFILES): Ditto.
3313 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3314 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3315 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3317 2011-07-21 Matt Rice <ratmice@gmail.com>
3319 * NEWS: Add info macros and info definitions commands.
3321 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3323 * NEWS: Document Python prompt substitution hook.
3325 2011-07-18 Matt Rice <ratmice@gmail.com>
3328 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3329 * macrotab.c (foreach_macro): Ditto.
3330 (foreach_macro_in_scope): Ditto.
3331 * macrocmd.c (print_macro_callback): New function.
3332 (info_macro_command): Move some code to print_macro_definition.
3333 (print_macro_definition): New function.
3334 (print_one_macro): Add new arguments to callback.
3335 (info_definitions_command): New function.
3336 (info_macros_command): Ditto.
3337 (_initialize_macrocmd): Add info macros and info definitions commands.
3338 * symtab.c (add_macro_name): Add new arguments to callback.
3340 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3341 Tom Tromey <tromey@redhat.com>
3343 * top.c (set_prompt): Rewrite to free previous prompt, free
3344 asynch_new_prompt and set both on new prompts.
3345 * event-top.c (display_gdb_prompt): Add prompt substitution
3347 * python/python.c (before_prompt_hook): New function.
3349 2011-07-20 Matt Rice <ratmice@gmail.com>
3351 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3352 arguments to store_unsigned_integer.
3354 2011-07-20 Tom Tromey <tromey@redhat.com>
3356 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3357 in some declaration-only cases.
3359 2011-07-18 Tom Tromey <tromey@redhat.com>
3362 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3363 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3364 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3365 <debug_type_section>: New field.
3366 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3367 (load_cu): Use appropriate section.
3368 (create_signatured_type_table_from_index): Add 'section'
3370 (dwarf2_read_index): Only allow a single .debug_types section.
3371 (dw2_get_file_names): Use appropriate section.
3372 (read_type_comp_unit_head): Add 'section' argument.
3373 (create_debug_types_hash_table): Loop over all .debug_types
3375 (init_cu_die_reader): Use appropriate section.
3376 (process_psymtab_comp_unit, load_partial_comp_unit)
3377 (load_full_comp_unit, read_die_and_children, find_partial_die)
3378 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3379 (lookup_signatured_type_at_offset): Add 'section' argument.
3380 (read_signatured_type_at_offset): Add 'sect' argument.
3381 (read_signatured_type): Use appropriate section.
3382 (set_die_type, get_die_type_at_offset): Update.
3383 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3385 (write_psymtabs_to_index): Don't allow index with more than one
3386 .debug_types section.
3388 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3390 Fix crash if referenced CU is aged out.
3391 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3392 xfree of block.data.
3393 (indirect_pieced_value): New variable back_to, use to for xfree of
3395 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3397 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3398 (load_cu): New function from ...
3399 (dw2_do_instantiate_symtab): ... the code here ...
3400 (process_full_comp_unit): ... and here.
3401 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3404 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3406 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3409 2011-07-19 Gary Benson <gbenson@redhat.com>
3411 * infrun.c (struct execution_control_state): New member
3412 stop_func_filled_in.
3413 (clear_stop_func, fill_in_stop_func): New functions.
3414 (handle_inferior_event): Call clear_stop_func rather than
3415 manipulating the execution control state directly.
3416 Call fill_in_stop_func lazily as required rather than
3417 directly calling find_pc_partial_function in all cases.
3419 2011-07-18 Tom Tromey <tromey@redhat.com>
3421 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3422 checking for variable-sized array.
3424 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3426 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3427 of supported languages.
3428 * varobj.c: Add top definitions and basic implementation of the
3429 following callbacks: ada_number_of_children, ada_name_of_variable,
3430 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3431 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3432 (languages): Register Ada-specific callbacks.
3433 (variable_language): Add the Ada case in the language setter switch.
3435 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3437 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3439 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3443 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3444 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3445 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3446 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3447 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3448 (struct dwarf_expr_context_funcs): New, move here methods from ...
3449 (struct dwarf_expr_context): ... here. New fields funcs.
3450 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3451 (dwarf_expr_ctx_funcs): New.
3452 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3453 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3454 (needs_frame_ctx_funcs): New.
3455 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3457 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3459 * MAINTAINERS (Write After Approval): Add myself to the list.
3461 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3463 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3464 that CIE pointer of an FDE really points to a CIE .
3466 2011-07-15 Hui Zhu <teawater@gmail.com>
3468 * remote.c (remote_get_trace_status): Add comments.
3470 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3472 Code cleanup - constify struct lval_funcs.
3473 * dwarf2loc.c (pieced_value_funcs): Make it const.
3474 * infrun.c (siginfo_value_funcs): Likewise.
3475 * opencl-lang.c (opencl_value_funcs): Likewise.
3476 * valops.c (value_assign, value_ind): Make the funcs variable const.
3477 * value.c (struct value): Make location.computed.funcs target const.
3478 Rearrange the comments.
3479 (allocate_computed_value): Make the funcs parameter target const.
3480 (value_computed_funcs): Return the funcs target const.
3481 (value_free, value_copy, set_value_component_location): Make the funcs
3483 * value.h (allocate_computed_value): Make the funcs parameter target
3485 (value_computed_funcs): Return the funcs target const.
3486 * windows-tdep.c (tlb_value_funcs): Make it const.
3488 2011-07-14 Hui Zhu <teawater@gmail.com>
3490 * remote.c (remote_get_trace_status): Initialize p.
3492 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 * remote.c (remote_get_trace_status): New variable ex. Put
3496 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3498 2011-07-13 Tom Tromey <tromey@redhat.com>
3500 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3501 value_from_contents for final conversion.
3503 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3506 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3507 Indent prototypes so they do not get into tags.
3509 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3511 Code cleanup making also optimized out values lazy.
3512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3513 allocate_optimized_out_value. Twice.
3514 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3515 * findvar.c (read_var_value): Likewise.
3516 * value.c (allocate_optimized_out_value): New function.
3517 * value.h (allocate_optimized_out_value): New declaration.
3519 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 Fix occasional crash of CTRL-C during DWARF read in.
3522 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3524 2011-07-11 Tom Tromey <tromey@redhat.com>
3526 * regcache.c (struct regcache_descr): Fix typo.
3527 * i387-tdep.c (i387_supply_xsave): Fix typo.
3529 2011-07-11 Tom Tromey <tromey@redhat.com>
3531 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3532 (read_file_scope, read_type_unit_scope): Use it.
3534 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3539 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3542 * python/python.c: Set gdbpy_should_print_stack default to off.
3543 (set_python): Deprecate maint set python print-stack to
3545 (_initialize_python): Deprecate maint set/show python print-stack.
3546 Add new prefix command, python. Add new setting, print-backtrace.
3547 * NEWS: Document set python print-stack. Document default change.
3549 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3551 * python/py-inferior.c (infpy_dealloc): New function.
3552 (inferior_to_inferior_object): Return a new object, or a
3553 new reference to the existing object.
3554 (find_thread_object): Cleanup references to inferior.
3555 (delete_thread_object): Ditto.
3556 * python/py-infthread.c (create_thread_object): Do not increment
3557 inferior reference count.
3559 2011-07-08 Tom Tromey <tromey@redhat.com>
3561 * dwarf2loc.c (locexpr_regname): New function.
3562 (locexpr_describe_location_piece): Use it.
3563 (disassemble_dwarf_expression): Add per_cu argument. Use
3565 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3566 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3568 (locexpr_describe_location_1): Add per_cu argument.
3569 (locexpr_describe_location): Update.
3570 (loclist_describe_location): Update.
3572 2011-07-08 Tom Tromey <tromey@redhat.com>
3574 * dwarf2expr.c (execute_stack_op): Add QUIT.
3576 2011-07-07 Hui Zhu <teawater@gmail.com>
3579 2011-07-06 Hui Zhu <teawater@gmail.com>
3580 * remote.c (remote_start_remote): Add TRY_CATCH for
3581 remote_get_trace_status.
3582 * tracepoint.c (disconnect_tracing): Ditto.
3584 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3586 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3587 variables as signed, not unsigned.
3589 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3591 * jit.c (jit_inferior_init): Reformat forward declaration.
3593 2011-07-06 Matt Rice <ratmice@gmail.com>
3595 * MAINTAINERS (Write After Approval): Add myself to the list.
3597 2011-07-06 Hui Zhu <teawater@gmail.com>
3599 * remote.c (remote_start_remote): Add TRY_CATCH for
3600 remote_get_trace_status.
3601 * tracepoint.c (disconnect_tracing): Ditto.
3603 2011-07-05 Tom Tromey <tromey@redhat.com>
3605 * symtab.c (operator_chars): Now static.
3606 * linespec.c (operator_chars): Don't declare.
3608 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3610 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3612 2011-07-05 Tom Tromey <tromey@redhat.com>
3614 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3615 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3616 (TYPE_CPLUS_REALLY_JAVA): New macro.
3617 * dwarf2read.c (process_structure_scope): Set
3618 TYPE_CPLUS_REALLY_JAVA.
3620 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3622 * ada-lang.c: Fix typos.
3623 * amd64-tdep.c: Likewise.
3624 * breakpoint.c: Likewise.
3625 * cli/cli-decode.c: Likewise.
3626 * findcmd.c: Likewise.
3627 * inline-frame.c: Likewise.
3628 * mi/mi-main.c: Likewise.
3629 * minsyms.c: Likewise.
3630 * monitor.c: Likewise.
3631 * monitor.h: Likewise.
3632 * prologue-value.c: Likewise.
3633 * reverse.c: Likewise.
3634 * s390-tdep.c: Likewise.
3636 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3638 * jit.c (jit_inferior_init): Forward declare.
3639 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3641 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3643 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3645 2011-07-04 Tristan Gingold <gingold@adacore.com>
3647 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3648 (tcb_fieldno): Add activation_link field.
3649 (get_known_tasks_addr): Moved and rewritten.
3650 (get_tcb_types_info): Set activation_link field.
3651 (read_known_tasks_array): Add parameter. Rewritten.
3652 (read_known_tasks_list): New function.
3653 (read_known_tasks): New function.
3654 (ada_build_task_list): Call read_known_tasks instead of
3655 read_known_tasks_array.
3656 * ravenscar-thread.c: Add first_task_name constant.
3657 (has_ravenscar_runtime): Check for task list too.
3659 2011-07-04 Tristan Gingold <gingold@adacore.com>
3661 * ada-tasks.c: Renames fieldno to actb_fieldno.
3662 (ada_get_task_number): Indentation.
3663 (get_tcb_types_info): Remove all parameters. Write directly
3665 (ptid_from_atcb_common): Adjust.
3666 (read_atcb): Adjust.
3668 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3670 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3672 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3674 * ui-out.c (ui_out_field_core_addr): Mention that the function
3675 description is in the header file.
3676 * ui-out.h (ui_out_field_core_addr): Document function.
3678 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3680 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3681 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3683 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3685 * symtab.c (expand_line_sal): Remove empty line.
3687 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3689 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3690 same way as ELFOSABI_NONE.
3691 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3693 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3695 * breakpoint.c: Fix typos in comments.
3696 * linespec.c: Likewise.
3697 * symtab.c: Likewise.
3699 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3701 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3702 section in separate object files.
3704 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3706 Fix false GCC warning.
3707 * linespec.c (decode_line_1): Initialize values.
3709 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 * linespec.c (find_method): Accept the function type automatically only
3712 if it was specified with parameter types.
3714 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3716 Stop on first linespec terminator instead of eating what we can.
3717 * linespec.c (is_linespec_boundary): New function.
3718 (name_end): Remove function.
3719 (keep_name_info): New parameter on_boundary, replace the body.
3720 (decode_line_1): Provide the parameter to keep_name_info.
3721 (decode_compound): Likewise. Drop the trailing java return type
3724 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3726 Fall back linespec to minimal symbols.
3727 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3728 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3729 (find_method, symbol_found): Change error to cplusplus_error.
3731 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3733 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3735 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3736 Tom Tromey <tromey@redhat.com>
3738 * dwarf2read.c (check_physname): New variable.
3739 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3740 (show_check_physname): New function.
3741 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3743 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3745 * machoread.c (macho_symfile_read): Delete OBE comment.
3747 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3749 * machoread.c (struct macho_oso_data): Delete.
3750 (current_oso): Delete.
3751 (macho_relocate_common_syms): New function, mostly extracted
3753 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3754 Remove code that sets and unset current_oso.
3755 (macho_symfile_relocate): Delete handling of common symbols,
3756 now moved to macho_relocate_common_syms.
3758 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3760 * darwin-nat.c (darwin_ptrace): Add documentation.
3761 Set errno to zero before calling ptrace. If ptrace returns
3762 -1 and errno is zero, then change then return zero.
3763 (darwin_kill_inferior): Issue a warning instead of triggering
3764 a failed assertion when the PT_KILL ptrace operations returned
3767 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3769 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3770 only when inf->private->no_ptrace.
3772 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3774 * ada-lang.c (print_it_exception): Print temporary catchpoints
3775 as "Temporary catchpoint".
3776 (print_mention_exception): Likewise.
3778 2011-07-01 Tom Tromey <tromey@redhat.com>
3780 * jv-lang.c (java_language_defn): Use java_printchar,
3782 (java_get_encoding): New function.
3783 (java_emit_char): Use generic_emit_char.
3784 (java_printchar): New function.
3785 (java_printstr): Likewise.
3787 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3789 * ada-typeprint.c (print_record_type): If unable to decode
3790 the name of the parent type, use the encoded name.
3792 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3794 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3795 pointer to constrained packed array type output.
3796 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3797 packed array output.
3799 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3801 * ada-typeprint.c (print_array_type): removed if condition on show
3802 being negative for bounds printing.
3804 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3806 * ada-lang.c (ada_identical_enum_types_p): New function.
3807 (symbols_are_identical_enums): New function.
3808 (remove_extra_symbols): Do nothing if NSYMS < 2.
3809 Use symbols_are_identical_enums.
3811 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3813 * ada-valprint.c (ada_value_print): Handle typedefs.
3815 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3817 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3819 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3821 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3822 (decode_constrained_packed_array): Likewise.
3823 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3825 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3827 * ada-exp.y (convert_char_literal): Handle typedef types.
3829 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3831 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3833 2011-06-30 Tom Tromey <tromey@redhat.com>
3835 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3836 * valops.c (find_overload_match): Call do_cleanups on early exit
3838 * solib.c (solib_find): Call do_cleanups on early exit path.
3840 2011-06-30 Tom Tromey <tromey@redhat.com>
3842 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3843 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3844 return paths. Defer final do_cleanups until last return.
3845 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3848 2011-06-30 Tom Tromey <tromey@redhat.com>
3850 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3852 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3854 * MAINTAINERS (Write After Approval): Add myself to the list.
3856 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 Disable epilogue unwinders on recent GCCs.
3859 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3860 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3861 * dwarf2read.c (process_full_comp_unit): Initialize
3862 EPILOGUE_UNWIND_VALID.
3863 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3864 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3865 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3867 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3869 Code cleanup - reformatting.
3870 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3871 (producer_is_gcc_ge_4): ... here, change the return value.
3872 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3875 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3877 Fix non-only rename list for Fortran modules import.
3878 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3879 cp_add_using_directive caller.
3880 (cp_add_using_directive): New parameter excludes, describe it. New
3881 variables ix and param. Compare if also excludes match. Allocate NEW
3882 with variable size, initialize EXCLUDES there.
3883 (cp_lookup_symbol_imports): New variable excludep, test
3884 current->EXCLUDES with it.
3885 * cp-support.h: Include vec.h.
3886 (struct using_direct): New field excludes, describe it.
3887 (DEF_VEC_P (const_char_ptr)): New.
3888 (cp_add_using_directive): New parameter excludes.
3889 * defs.h (const_char_ptr): New typedef.
3890 * dwarf2read.c (read_import_statement): New variables child_die,
3891 excludes and cleanups, read in excludes.
3892 (read_namespace): Adjust the cp_add_using_directive caller.
3894 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3897 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3898 negative comparisons.
3900 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3902 * mi/mi-main.c (mi_cmd_list_features): Emit
3903 breakpoint-notifications.
3905 2011-06-29 Tom Tromey <tromey@redhat.com>
3908 * valprint.h (generic_emit_char, generic_printstr): Declare.
3909 * valprint.c (wchar_printable, append_string_as_wide)
3910 (print_wchar): Move from c-lang.c.
3911 (generic_emit_char): New function; mostly taken from c_emit_char.
3912 (generic_printstr): New function; mostly taken from c_printstr.
3913 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3914 represented as arrays.
3915 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3917 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3918 identically to TYPE_CODE_INT.
3919 * f-lang.c (f_get_encoding): New function.
3920 (f_emit_char): Use generic_emit_char.
3921 (f_printchar): Replace comment.
3922 (f_printstr): Use generic_printstr.
3923 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3924 "character" types specially.
3925 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3927 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3929 (c_emit_char): Call generic_emit_char.
3930 (c_printstr): Call generic_printstr.
3932 2011-06-29 Gary Benson <gbenson@redhat.com>
3934 * breakpoint.c (bpstat_what): Removed duplicated case.
3936 2011-06-28 Tom Tromey <tromey@redhat.com>
3938 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3940 2011-06-27 Tom Tromey <tromey@redhat.com>
3942 * valops.c (find_overload_match): Call do_cleanups before early
3944 * top.c (execute_command): Call do_cleanups before early return.
3945 (command_loop): Likewise.
3946 * stack.c (backtrace_command): Make a null cleanup early. Don't
3947 conditionally call do_cleanups.
3948 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3950 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3951 so cleanups are always run.
3952 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3953 * findcmd.c (parse_find_args): Call do_cleanups on early return
3955 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3956 Don't conditionally call do_cleanups.
3957 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3960 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3962 * MAINTAINERS (Write After Approval): Use default email address.
3964 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3966 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3968 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3970 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3971 saved_regs_mask and copied_regs_mask fields.
3972 (sparc_record_save_insn): New prototype.
3973 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3974 (sparc_record_save_insn): New function.
3975 (sparc_analyze_prologue): Add head comment. Recognize store insns
3976 of call-saved registers. Use OFFSET consistently. Recognize flat
3977 frames and cache their settings.
3978 (sparc32_skip_prologue): Handle flat frames.
3979 (sparc_frame_cache): Add frame_offset to the base address.
3980 (sparc32_frame_cache): Adjust to new frame description.
3981 (sparc32_frame_prev_register): Likewise.
3982 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3983 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3984 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3985 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3986 frame by calling sparc_record_save_insn.
3987 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3988 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3989 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3991 2011-06-27 Tristan Gingold <gingold@adacore.com>
3993 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3994 field by map_addr and map_len.
3995 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3996 (munmap_section_buffer): Likewise.
3998 2011-06-24 Tom Tromey <tromey@redhat.com>
4000 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4001 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4002 * python/python.c (gdbpy_parameter): Make 'arg' const.
4003 (execute_gdb_command): Likewise.
4004 (gdbpy_decode_line): Likewise. Copy it.
4005 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4006 (gdbpy_write): Make 'arg' const.
4007 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4009 (gdbpy_lookup_type): Likewise.
4010 * python/py-prettyprint.c (print_children): Make 'name' const.
4011 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4012 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4014 * python/py-function.c (fnpy_init): Make 'name' const.
4015 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4016 (gdbpy_string_to_argv): Make 'input' const.
4017 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4019 * gdbtypes.h (lookup_typename): Update.
4020 * gdbtypes.c (lookup_typename): Make 'name' const.
4021 (lookup_struct): Likewise.
4022 (lookup_union): Likewise.
4023 (lookup_enum): Likewise.
4025 2011-06-24 Tom Tromey <tromey@redhat.com>
4027 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4028 gdb_thread_db.h. Move all common/ entries to be together.
4029 (TAGS): Don't depend on DEPFILES.
4031 2011-06-23 Yao Qi <yao@codesourcery.com>
4033 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4034 * remote.c (remote_start_remote): ... here.
4035 * monitor.c (monitor_open): ... here.
4037 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4039 * gdbtypes.c (append_composite_type_field_aligned): Fix
4040 calculation of bit position based on alignment.
4042 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4044 * breakpoint.c (bpstat_stop_status): Call the check_status
4045 breakpoint_ops method.
4046 (print_one_breakpoint_location): Also print the condition for Ada
4047 exception catchpoints.
4048 (allocate_bp_location): New, factored out from
4049 allocate_bp_location.
4050 (allocate_bp_location): Adjust. Call the owner breakpoint's
4051 allocate_location method, if there is one.
4052 (free_bp_location): Call the locations's dtor method, if there is
4054 (init_raw_breakpoint_without_location): New breakpoint_ops
4056 (set_raw_breakpoint_without_location): Adjust.
4057 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4058 (set_raw_breakpoint): Adjust.
4059 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4060 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4061 re_set and check_status methods.
4062 (init_catchpoint): Don't memset, initialize thread, addr_string
4063 and enable_state. Pass the ops down to init_raw_breakpoint.
4064 (install_catchpoint): Rename to ...
4065 (install_breakpoint): ... this, and make extern.
4066 (create_fork_vfork_event_catchpoint): Adjust.
4067 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4068 re_set and check_status methods.
4069 (create_syscall_event_catchpoint): Adjust.
4070 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4071 (masked_watchpoint_breakpoint_ops): Install NULL
4072 allocate_location, re_set and check_status methods.
4073 (catch_exec_command_1): Adjust.
4074 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4075 re_set and check_status methods.
4076 (create_ada_exception_breakpoint): Rename to ...
4077 (init_ada_exception_breakpoint): ... this. Add a struct
4078 breakpoint parameter, and delete the exp_string, cond_string and
4079 cond parameters. Use init_raw_breakpoint, and don't install or
4080 mention the breakpoint yet. Don't clear breakpoint fields that
4081 init_raw_breakpoint already clears.
4082 (re_set_breakpoint): Delete, split into ...
4083 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4085 (breakpoint_re_set_one): Call the breakpoint's
4086 breakpoint_ops->re_set implementation, if there's one. Adjust.
4087 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4088 (struct bp_location_ops): New type.
4089 (struct bp_location): New field `ops'.
4090 (struct breakpoint_ops): New `allocate_location', `re_set' and
4091 `check_status' fields. Make `breakpoint_hit''s description match
4093 (init_bp_location): Declare.
4094 (breakpoint_re_set_default): Declare.
4095 (create_ada_exception_breakpoint): Rename to ...
4096 (init_ada_exception_breakpoint): ... this. Add a struct
4097 breakpoint parameter, and delete the exp_string, cond_string and
4099 (install_breakpoint): Declare.
4100 * ada-lang.c: Include exceptions.h.
4101 <Ada exceptions description>: Update.
4102 (struct ada_catchpoint_location): New type.
4103 (ada_catchpoint_location_dtor): New function.
4104 (ada_catchpoint_location_ops): New global.
4105 (ada_catchpoint): New type.
4106 (create_excep_cond_exprs): New function.
4107 (dtor_exception, allocate_location_exception, re_set_exception)
4108 (should_stop_exception, check_status_exception): New functions.
4109 (print_one_exception, print_mention_exception)
4110 (print_recreate_exception): Adjust.
4111 (dtor_catch_exception, allocate_location_catch_exception)
4112 (re_set_catch_exception, check_status_catch_exception): New
4114 (catch_exception_breakpoint_ops): Install them.
4115 (dtor_catch_exception_unhandled)
4116 (allocate_location_catch_exception_unhandled)
4117 (re_set_catch_exception_unhandled)
4118 (check_status_catch_exception_unhandled): New functions.
4119 (catch_exception_unhandled_breakpoint_ops): Install them.
4120 (dtor_catch_assert, allocate_location_catch_assert)
4121 (re_set_catch_assert, check_status_catch_assert): New functions.
4122 (catch_assert_breakpoint_ops): Install them.
4123 (ada_exception_catchpoint_p): Delete.
4124 (catch_ada_exception_command_split)
4125 (ada_exception_catchpoint_cond_string): Rename exp_string
4126 parameter to excep_string. Adjust.
4127 (ada_parse_catchpoint_condition): Delete.
4128 (ada_exception_sal): Rename the exp_string parameter to
4129 excep_string. Delete the cond_string and cond parameters.
4131 (ada_decode_exception_location): Rename the exp_string parameter
4132 to excep_string. Delete the cond_string and cond parameters.
4134 (create_ada_exception_catchpoint): New function.
4135 (catch_ada_exception_command, ada_decode_assert_location)
4136 (catch_assert_command): Adjust.
4137 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4139 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4141 * ada-lang.c: Include arch-utils.h.
4142 (ada_decode_exception_location): Make static.
4143 (catch_ada_exception_command): Moved here from breakpoint.c.
4144 (ada_decode_assert_location): Make static.
4145 (catch_assert_command): Moved here from breakpoint.c.
4146 (_initialize_ada_lang): Install the exception and assert
4147 catchpoint commands here.
4148 * ada-lang.h (ada_decode_exception_location)
4149 (ada_decode_assert_location): Delete declarations.
4150 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4152 (create_ada_exception_breakpoint): Make extern.
4153 (catch_ada_exception_command, catch_assert_command): Moved to
4155 (add_catch_command): Make extern.
4156 (_initilize_breakpoint): Don't install the exception and assert
4157 catchpoint commands here.
4158 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4160 (add_catch_command, create_ada_exception_breakpoint): Declare.
4162 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4164 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4165 the breakpoint to the breakpoint chain here.
4166 (set_raw_breakpoint_without_location): Add the breakpoint to the
4167 breakpoint chain here.
4168 (init_raw_breakpoint): Adjust comments.
4169 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4171 (init_catchpoint): Don't set the catchpoint's breakpoint number
4173 (install_catchpoint): New function.
4174 (create_fork_vfork_event_catchpoint)
4175 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4176 use install_catchpoint.
4178 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4180 * breakpoint.c (create_catchpoint_without_mention)
4181 (create_catchpoint): Delete.
4183 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4185 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4186 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4187 reference to exec_pathname.
4188 (struct exec_catchpoint): New type.
4189 (dtor_catch_exec): New function.
4190 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4191 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4192 (catch_exec_command_1): Adjust to use init_catchpoint.
4193 (delete_breakpoint): Remove reference to exec_pathname.
4195 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4197 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4198 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4199 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4200 reference to syscalls_to_be_caught.
4201 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4203 (struct syscall_catchpoint): New type.
4204 (dtor_catch_syscall): New function.
4205 (insert_catch_syscall, remove_catch_syscall)
4206 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4207 (print_recreate_catch_syscall): Adjust.
4208 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4209 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4210 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4211 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4212 (masked_watchpoint_breakpoint_ops)
4213 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4214 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4215 there is one. Remove references to syscalls_to_be_caught.
4216 (catching_syscall_number): Adjust.
4217 * ada-lang.c (catch_exception_breakpoint_ops)
4218 (catch_exception_unhandled_breakpoint_ops)
4219 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4221 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4223 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4225 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4226 reference to forked_inferior_pid.
4227 (struct fork_catchpoint): New type.
4228 (breakpoint_hit_catch_fork, print_it_catch_fork)
4229 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4230 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4231 (create_fork_vfork_event_catchpoint): Adjust to use
4234 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4236 * breakpoint.c (add_to_breakpoint_chain)
4237 (init_raw_breakpoint_without_location): New functions, factored
4239 (set_raw_breakpoint_without_location): ... this one.
4240 (init_raw_breakpoint): New function, factored out from
4241 set_raw_breakpoint and adjusted to use
4242 init_raw_breakpoint_without_location.
4243 (set_raw_breakpoint): Adjust.
4244 (init_catchpoint): New function, factored out from
4245 create_catchpoint_without_mention and adjusted to use
4246 init_raw_breakpoint.
4247 (create_catchpoint_without_mention): Adjust.
4249 2011-06-22 Tom Tromey <tromey@redhat.com>
4251 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4252 argument of 0 specially.
4254 2011-06-22 Yao Qi <yao@codesourcery.com>
4256 * infrun.c (handle_inferior_event): Remove write-only local variable
4257 `sw_single_step_trap_p'.
4259 2011-06-20 Tom Tromey <tromey@redhat.com>
4261 * symtab.c (lookup_language_this): End loop if block is NULL.
4263 2011-06-17 Tom Tromey <tromey@redhat.com>
4265 * valops.c (value_of_this): Use lookup_language_this.
4266 * symtab.h (lookup_language_this): Declare.
4267 * symtab.c (lookup_language_this): New function.
4268 (lookup_symbol_aux): Use lookup_language_this.
4269 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4271 2011-06-17 Tom Tromey <tromey@redhat.com>
4273 * value.h (value_of_this): Update.
4274 (value_of_local): Remove.
4275 * valops.c (value_of_this): Rename from value_of_local. Change
4277 * p-exp.y (exp): Update.
4278 (variable): Likewise.
4279 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4281 2011-06-17 Tom Tromey <tromey@redhat.com>
4283 * valops.c (value_of_local): Complain if NAME is NULL.
4284 * std-operator.def (OP_OBJC_SELF): Remove.
4285 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4286 * objc-exp.y (name_not_typename): Use OP_THIS.
4287 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4289 <OP_OBJC_SELF>: Remove.
4290 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4292 2011-06-16 Tristan Gingold <gingold@adacore.com>
4294 * python/py-events.h (gdb_py_events): Make it extern.
4295 * python/py-evtregistry.c (gdb_py_events): Declare.
4297 2011-06-16 Hui Zhu <teawater@gmail.com>
4299 * remote.c (remote_trace_set_readonly_regions): Add check for
4300 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4303 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4305 * arm-linux-tdep.c: Include "auxv.h".
4307 (ARM_LINUX_SIZEOF_VFP): Define.
4308 (arm_linux_supply_vfp): New function.
4309 (arm_linux_collect_vfp): Likewise.
4310 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4311 (arm_linux_fpa_regset_sections): New variable.
4312 (arm_linux_vfp_regset_sections): Likewise.
4313 (arm_linux_core_read_description): New function.
4314 (arm_linux_init_abi): Install arm_linux_core_read_description and
4315 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4316 appropriate for the architecture.
4317 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4318 (tdesc_arm_with_m): Declare.
4319 (tdesc_arm_with_iwmmxt): Likewise.
4320 (tdesc_arm_with_vfpv2): Likewise.
4321 (tdesc_arm_with_vfpv3): Likewise.
4322 (tdesc_arm_with_neon): Likewise.
4323 * arm-linux-nat.c: Move features/*.c includes ...
4324 * arm-tdep.c: ... here.
4325 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4326 target description data structures ...
4327 * arm-tdep.c (_initialize_arm_tdep): ... here.
4328 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4329 HWCAP_VFPv3D16): Move definitions ...
4330 * arm-linux-tdep.h: ... here.
4332 2011-06-15 Hui Zhu <teawater@gmail.com>
4334 * remote.c (remote_trace_set_readonly_regions): Add a check for
4337 2011-06-14 Tom Tromey <tromey@redhat.com>
4339 * coffread.c (coffread_objfile): Rename from current_objfile.
4340 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4341 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4343 2011-06-14 Tom Tromey <tromey@redhat.com>
4345 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4346 (class_symtab): Remove.
4347 (jv_dynamics_progspace_key): New global.
4348 (jv_per_objfile_free): Reset program space data. Update assert.
4349 Don't clear globals.
4350 (get_dynamics_objfile): Use and set program space data.
4351 (get_java_class_symtab): Use get_dynamics_objfile.
4352 (add_class_symbol): Likewise.
4353 (java_link_class_type): Likewise.
4354 (java_object_type, jv_clear_object_type, set_java_object_type):
4356 (get_java_object_type): Update. Don't cache result.
4357 (is_object_type): Don't call set_java_object_type.
4358 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4359 initialize jv_dynamics_progspace_key.
4361 2011-06-14 Tom Tromey <tromey@redhat.com>
4363 * symtab.h (current_objfile): Don't declare.
4364 * objfiles.h (current_objfile): Don't declare.
4365 * objfiles.c (current_objfile): Remove.
4366 * mdebugread.c (current_objfile): New file-scope global.
4367 * dbxread.c (current_objfile): New file-scope global.
4368 * coffread.c (current_objfile): New file-scope global.
4370 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4372 * top.h (line): Rename to ...
4373 (saved_command_line): ... this.
4374 (linesize): Rename to ...
4375 (saved_command_line_size): ... this.
4376 * top.c (line): Rename to ...
4377 (saved_command_line): ... this.
4378 (linesize): Rename to ...
4379 (saved_command_line_size): ... this.
4380 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4381 * event-top.c (command_line_handler): Adjust.
4382 * main.c (captured_main): Adjust.
4384 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4386 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4387 get_frame_func instead of get_frame_pc to determine the code
4388 address used to construct the frame ID.
4389 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4390 (i386_epilogue_frame_this_id): Likewise.
4391 (i386_epilogue_frame_prev_register): New function.
4392 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4393 (i386_stack_tramp_frame_sniffer): Fix coding style.
4394 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4395 (i386_gdbarch_init): Fix comments.
4397 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4399 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4400 instruction when walking back through the instruction stream.
4402 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4404 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4405 fullname parameters order.
4407 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4412 * psymtab.c (map_symbol_filenames_psymtab)
4413 (map_partial_symbol_filenames): Likewise.
4414 * psymtab.h: Include symfile.h.
4415 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4416 * symfile.h (symbol_filename_ftype): New.
4417 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4418 map_symbol_filenames, clarify more the naming in comment.
4420 2011-06-07 Doug Evans <dje@google.com>
4422 * cc-with-index.sh: Fix typos in comment.
4423 Look for ../../gdb, for fullname.exp.
4425 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4426 Pedro Alves <pedro@codesourcery.com>
4428 * cli/cli-cmds.c (shell_escape): Use waitpid.
4429 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4431 2011-06-07 Tristan Gingold <gingold@adacore.com>
4433 * xcoffread.c (dwarf2_xcoff_names): New variable.
4434 (aix_process_linenos): Add a guard.
4435 (xcoff_symfile_finish): Free dwarf2.
4436 (xcoff_initial_scan): Add dwarf2 support.
4438 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4440 * infcall.c (run_inferior_call): Don't mask async. Instead force
4441 a synchronous wait, if the target can async.
4443 * target.h (struct target_ops): Delete to_async_mask.
4444 (target_async_mask): Delete.
4445 * target.c (update_current_target): Delete references to to_async_mask.
4446 * linux-nat.c (linux_nat_async_mask_value): Delete.
4447 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4448 to linux_nat_async_mask_value.
4449 (linux_nat_async_mask): Delete.
4450 (linux_nat_async, linux_nat_close): Remove references to
4451 linux_nat_async_mask_value.
4452 * record.c (record_async_mask_value): Delete.
4453 (record_async): Remove references to record_async_mask_value.
4454 (record_async_mask): Delete.
4455 (record_can_async_p, record_is_async_p): Remove references to
4456 record_async_mask_value.
4457 (init_record_ops, init_record_core_ops): Remove references to
4459 * remote.c (remote_async_mask_value): Delete.
4460 (init_remote_ops): Remove reference to remote_async_mask.
4461 (remote_can_async_p, remote_is_async_p): Remove references to
4462 remote_async_mask_value.
4463 (remote_async): Remove references to remote_async_mask_value.
4464 (remote_async_mask): Delete.
4466 * infrun.c (fetch_inferior_event): Don't claim registers changed
4467 if the current thread is already not executing.
4469 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4471 From Stephen Kitt <steve@sk2.org>
4472 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4473 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4475 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4477 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4478 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4480 2011-06-03 Tom Tromey <tromey@redhat.com>
4482 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4484 * python/py-exitedevent.c (create_exited_event_object): Change
4485 type of 'exit_code'. Optionally add exit_code attribute.
4486 (emit_exited_event): Change type of 'exit_code'.
4487 * python/py-event.h (emit_exited_event): Update.
4488 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4489 * infrun.c (handle_inferior_event): Set exit code fields on
4491 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4493 * inferior.c (exit_inferior_1): Initialize new fields.
4495 2011-06-03 Tom Tromey <tromey@redhat.com>
4497 * dwarf2expr.c (get_signed_type): New function.
4498 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4500 2011-06-02 Keith Seitz <keiths@redhat.com>
4502 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4504 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4506 * top.h (simplified_command_loop): Delete declaration.
4508 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4510 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4511 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4513 2011-06-01 Yao Qi <yao@codesourcery.com>
4515 * objfiles.h (obj_section_addr): Update reference to objfile from
4517 (obj_section_endaddr): Likewise.
4519 2011-06-01 Daniel Jacobowitz <drow@false.org>
4521 * MAINTAINERS: Update my email address and affiliation. Also
4522 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4524 2010-05-31 Keith Seitz <keiths@redhat.com>
4527 * linespec.c (get_search_block): New function.
4528 (find_methods): Add FILE_SYMTATB parameter and use it and
4529 get_search_block to pass an appropriate block to
4530 lookup_symbol_in_namespace.
4531 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4532 Check if *ARGPTR starts with a filename first.
4533 If it does, call locate_first_half again to locate the next
4534 "first half" of the linespec.
4535 Pass FILE_SYMTATB to decode_objc and decode_compound.
4536 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4537 (locate_first_half): Stop on the first colon seen.
4538 (decode_compound): Add FILE_SYMTAB parameter.
4539 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4540 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4541 get_search_block with lookup_symbol.
4542 (find_method): Add FILE_SYMTAB parameter and pass it to
4544 (decode_objc): Use get_search_block.
4546 2010-05-31 Keith Seitz <keiths@redhat.com>
4549 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4550 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4551 and CP_ANONYMOUS_NAMESPACE_LEN.
4552 (cp_is_anonymous): Likewise.
4553 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4554 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4555 * dwarf2read.c (namespace_name): Likewise.
4556 (fixup_partial_die): Likewise.
4557 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4558 seen in the input, keep it.
4560 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4562 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4563 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4564 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4565 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4566 * remote.c (_initialize_remote): Register
4567 async_remote_interrupt_twice directly as
4568 sigint_remote_twice_token event.
4570 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4572 * target.h (enum inferior_event_type): Delete INF_ERROR.
4573 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4575 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4577 * interps.c (interp_set): Don't cancel continuations.
4579 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4581 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4583 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4585 * continuations.h (continuation_ftype): Add `err' parameter.
4586 Document parameters.
4587 (do_all_continuations, do_all_continuations_thread)
4588 (do_all_intermediate_continuations)
4589 (do_all_intermediate_continuations_thread)
4590 (do_all_inferior_continuations): Add `err' parameter.
4591 * continuations.c (do_my_continuations_1, do_my_continuations)
4592 (do_all_inferior_continuations, do_all_continuations_ptid)
4593 (do_all_continuations_thread_callback)
4594 (do_all_continuations_thread, do_all_continuations)
4595 (do_all_intermediate_continuations_thread_callback)
4596 (do_all_intermediate_continuations_thread)
4597 (do_all_intermediate_continuations): Add `err' parameter, and pass
4598 it down all the way to the continuations proper.
4599 * inf-loop.c (inferior_event_handler): If fetching an inferior
4600 event throws an error, don't pop the target, and still call the
4601 continuations, but with `err' set. Adjust all other continuation
4603 * breakpoint.c (until_break_command_continuation): Add `err'
4605 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4606 issue another step if `err' is set.
4607 (struct until_next_continuation_args): New.
4608 (until_next_continuation): Add `err' parameter. Adjust.
4609 (until_next_command): Adjust.
4610 (struct finish_command_continuation_args): Add `thread' field.
4611 (finish_command_continuation): Add `err' parameter. Handle it.
4612 (finish_forward): Adjust.
4613 (attach_command_continuation): Add `err' parameter. Handle it.
4614 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4615 cancel the continuations.
4616 * interps.c (interp_set): Adjust to cancel the continuations.
4617 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4618 continuations rather than discarding.
4619 (free_thread): Don't clear thread inferior resources here.
4620 (delete_thread_1): Do it here instead. And do it before removing
4621 the thread from the threads list. Tag the thread as exited before
4622 clearing thread inferior resources.
4624 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4626 * infcall.c (call_function_by_hand): Rephrase error message.
4628 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4630 * defs.h (struct thread_info, struct inferior): Delete forward
4632 * breakpoint.h (struct thread_info): New forward declaration.
4633 * observer.sh (struct inferior): New forward declaration.
4634 * python/python-internal.h (struct inferior): New forward
4637 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4639 * defs.h (struct continuation, continuation_ftype)
4640 (continuation_free_arg_ftype, add_continuation)
4641 (do_all_continuations, do_all_continuations_thread)
4642 (discard_all_continuations, discard_all_continuations_thread)
4643 (add_intermediate_continuation, do_all_intermediate_continuations)
4644 (do_all_intermediate_continuations_thread)
4645 (discard_all_intermediate_continuations)
4646 (discard_all_intermediate_continuations_thread)
4647 (add_inferior_continuation, do_all_inferior_continuations)
4648 (discard_all_inferior_continuations): Move to ...
4649 * continuations.h: ... this new file.
4650 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4651 infcmd.c, inferior.c, infrun.c, interps.c: Include
4654 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4655 Doug Evans <dje@google.com>
4657 Fix PR 10970, PR 12702.
4658 * linux-nat.c (linux_lwp_is_zombie): New function.
4659 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4660 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4662 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4664 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4666 (add_continuation, add_intermediate_continuation)
4667 (add_inferior_continuation): Use them.
4668 * continuations.c (struct continuation): Use them.
4669 (make_continuation_ftype): Delete.
4670 (make_continuation, add_inferior_continuation, add_continuation)
4671 (add_intermediate_continuation): Use continuation_ftype and
4672 continuation_free_arg_ftype. Rename parameters to shorter names.
4674 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4676 * continuations.c (make_continuation): Make it return void.
4677 (do_my_continuations): Rename to ...
4678 (do_my_continuations_1): ... this. Remove old_chain parameter and
4680 (do_my_continuations): New.
4681 (discard_my_continuations): Rename to ...
4682 (discard_my_continuations_1): ... this. Remove old_chain
4683 parameter and adjust.
4684 (discard_my_continuations): New.
4685 (add_inferior_continuation): Simplify.
4686 (do_all_inferior_continuations): Reimplement on top
4687 do_my_continuations.
4688 (discard_all_inferior_continuations): Simplify.
4689 (add_continuation): Simplify.
4690 (do_all_continuations_ptid): Simplify.
4691 (discard_all_continuations_thread_callback): Simplify.
4692 (add_intermediate_continuation): Simplify.
4693 (discard_all_intermediate_continuations_thread_callback):
4696 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4698 * utils.c (struct continuation, add_continuation)
4699 (add_inferior_continuation)
4700 (do_all_inferior_continuations, discard_all_inferior_continuations)
4701 (restore_thread_cleanup, do_all_continuations_ptid)
4702 (do_all_continuations_thread_callback)
4703 (do_all_continuations_thread, do_all_continuations)
4704 (discard_all_continuations_thread_callback)
4705 (discard_all_continuations_thread, discard_all_continuations)
4706 (add_intermediate_continuation)
4707 (do_all_intermediate_continuations_thread_callback)
4708 (do_all_intermediate_continuations_thread)
4709 (do_all_intermediate_continuations)
4710 (discard_all_intermediate_continuations_thread_callback)
4711 (discard_all_intermediate_continuations_thread)
4712 (discard_all_intermediate_continuations): Move to ...
4713 * continuations.c: ... this new file, and adjust to no longer
4714 implement continuations on top of cleanups.
4715 * Makefile.in (SFILES): Add continuations.c.
4716 (COMMON_OBS): Add continuations.o.
4718 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4720 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4721 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4722 Internal error on invalid values.
4723 * reverse.c: Don't handle EXEC_ERROR.
4724 * mi/mi-main.c: Don't handle EXEC_ERROR.
4726 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4728 * record.c: Include event-loop.h, inf-loop.h.
4729 (record_beneath_to_async): New global.
4730 (tmp_to_async): New global.
4731 (record_async_inferior_event_token): New global.
4732 (record_open_1): Don't error out if async is enabled.
4733 (record_open): Handle to_async. Create an async event source in
4735 (record_close): Delete the async event source.
4736 (record_resumed): New global.
4737 (record_execution_dir): New global.
4738 (record_resume, record_core_resume): Set them. Register the
4739 target on the event loop.
4740 (record_wait): Rename to ...
4741 (record_wait_1): ... this. Add more debug output. Handle
4742 TARGET_WNOHANG, and the target beneath returning
4743 TARGET_WAITKIND_IGNORE.
4744 (record_wait): Reimplement on top of record_wait_1.
4745 (record_async_mask_value): New global.
4746 (record_async, record_async_mask, record_can_async_p)
4747 (record_is_async_p, record_execution_direction): New functions.
4748 (init_record_ops, init_record_core_ops): Install new methods.
4749 * infrun.c (fetch_inferior_event): Temporarily switch the global
4750 execution direction to the direction the target was going.
4751 (execution_direction): Change type to int.
4752 * target.c (default_execution_direction): New function.
4753 (update_current_target): Inherit and de_fault
4754 to_execution_direction.
4755 * target.h (struct target_ops) <to_execution_direction>: New
4757 (target_execution_direction): New macro.
4758 * inferior.h (execution_direction): Change type to int.
4760 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4762 * infcall.c (call_function_by_hand): Don't allow calling functions
4763 in reverse execution mode.
4765 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4767 * infcmd.c (finish_command): Allow async finish in reverse.
4769 2011-05-26 Yao Qi <yao@codesourcery.com>
4771 * gdb_thread_db.h: Delete. Move to ...
4772 * common/gdb_thread_db.h: ... here.
4774 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4776 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4777 function's entry point instead of a manually managed momentary
4778 breakpoint, and only ever issue one proceed call.
4779 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4780 doing a reverse-finish, switch to stepi mode, to do another step.
4781 (insert_step_resume_breakpoint_at_sal): Make public.
4782 (normal_stop): No need to save function value return registers if
4784 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4786 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4788 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4789 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4790 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4792 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4793 step-resume breakpoints.
4794 (print_it_typical): Handle bp_hp_step_resume.
4795 (bpstat_what): Ditto.
4796 (bptype_string): Ditto.
4797 (print_one_breakpoint_location): Ditto.
4798 (allocate_bp_location): Ditto.
4800 (breakpoint_re_set_one): Ditto.
4801 * infrun.c (handle_inferior_event): Adjust. Split
4802 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4803 BPSTAT_WHAT_HP_STEP_RESUME.
4804 (insert_step_resume_breakpoint_at_sal): Rename to ...
4805 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4806 parameter. Handle it.
4807 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4808 insert_step_resume_breakpoint_at_sal_1.
4809 (insert_step_resume_breakpoint_at_frame): Rename to ...
4810 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4811 set a high-priority step-resume breakpoint.
4812 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4813 (insert_step_resume_breakpoint_at_caller): Ditto.
4815 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4817 * breakpoint.c (iterate_over_related_breakpoints): New.
4818 (do_map_delete_breakpoint): New.
4819 (delete_command): Pass do_map_delete_breakpoint to
4820 map_breakpoint_numbers.
4821 (do_disable_breakpoint): New.
4822 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4824 (do_enable_breakpoint): Rename to ...
4825 (enable_breakpoint_disp): ... this.
4826 (enable_breakpoint): Adjust.
4827 (do_enable_breakpoint): New.
4828 (enable_once_breakpoint): Delete.
4829 (do_map_enable_breakpoint): New.
4830 (do_map_enable_once_breakpoint): New.
4831 (enable_once_command, enable_delete_command)
4832 (delete_trace_command): Iterate over the breakpoint's related
4835 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4837 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4838 for ALPHA_ZERO_REGNUM.
4839 (alpha_supply_int_regs): Explicitly supply zero as the value for
4840 ALPHA_ZERO_REGNUM in the register cache.
4841 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4843 2011-05-26 Yao Qi <yao@codesourcery.com>
4845 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4847 2011-05-26 Tristan Gingold <gingold@adacore.com>
4849 * symfile.h (struct dwarf2_section_names): New type.
4850 (struct dwarf2_debug_sections): New type.
4851 (dwarf2_has_info): Add parameter.
4852 * dwarf2read.c (dwarf2_elf_names): New variable.
4853 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4854 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4855 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4856 (dwarf2_has_info): Add names parameter. Pass names
4857 to dwarf2_locate_sections.
4858 (section_is_p): Rewrite using the names parameter.
4859 (dwarf2_locate_sections): Use section names from the names parameter.
4860 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4861 * elfread.c (read_psyms): Ditto.
4862 * machoread.c (macho_symfile_read): Ditto.
4864 2011-05-25 Andreas Schwab <schwab@redhat.com>
4867 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4869 2011-05-24 Keith Seitz <keiths@redhat.com>
4872 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4873 (decode_compound): Unconditionally call keep_name_info.
4875 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4877 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4878 scope, clear its command list.
4879 (map_breakpoint_numbers): Don't walk the related breakpoints list
4882 2011-05-24 Tom Tromey <tromey@redhat.com>
4884 * MAINTAINERS: Move Jim Blandy to past maintainers.
4886 2011-05-24 Tristan Gingold <gingold@adacore.com>
4888 * symfile.h (enum dwarf2_section_enum): New type.
4889 (dwarf2_get_section_info): New prototype.
4890 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4891 section_name by sect. Use a switch to select the info.
4892 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4893 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4895 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4897 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4898 shared library event breakpoint if there's no execution.
4900 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4902 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4903 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4905 2011-05-23 Tom Tromey <tromey@redhat.com>
4907 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4910 2011-05-23 Doug Evans <dje@google.com>
4912 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4913 entry for RuntimeError to doc string.
4915 2011-05-23 Jerome Guitton <guitton@adacore.com>
4917 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4918 sequence for probing loops.
4920 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4922 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4925 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4927 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4928 zero as the value for %g0 in the register cache.
4929 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4930 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4932 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4934 * infrun.c (proceed): Set previous_inferior_ptid here.
4935 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4936 inferior_ptid, not null_ptid.
4937 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4938 (fetch_inferior_event): Nor here.
4940 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4942 * inf-loop.c (inferior_event_handler): Only output a message if
4945 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4947 * MAINTAINERS: Update my e-mail address.
4949 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4951 * infrun.c (proceed): Switch the inferior event loop to
4952 INF_EXEC_COMPLETE if the target refused to resume from a
4955 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4957 * infcmd.c: Include "inf-loop.h".
4958 (step_once): When stepping into an inline subroutine, pretend the
4959 target has run. If the target can async, switch the inferior
4960 event loop to INF_EXEC_COMPLETE.
4961 * inferior.h (user_visible_resume_ptid): Declare.
4962 * infrun.c (user_visible_resume_ptid): New function, factored out
4965 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4966 that the current thread is running. Merge async and sync
4969 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4971 * infcmd.c (step_1): Simplify synchronous case.
4973 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4975 * tracepoint.c: Include exceptions.h.
4976 (TFILE_PID): Move higher in file.
4977 (tfile_open): Delay pushing the tfile target until we're assured
4978 the tfile header is present in the file. Wrap reading the initial
4979 newline-terminated lines in TRY_CATCH. Pop the target if the
4980 initial setup failed. Add the tfile's thread immediately
4981 aftwards, before any non-essential setup. Don't skip
4982 post_create_inferior if there are no traceframes present in the
4984 (tfile_close): Remove redundant check for null before xfree call.
4985 (tfile_thread_alive): New function.
4986 (init_tfile_ops): Register it as to_thread_alive callback.
4988 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4990 * tracepoint.c (tfile_open): Delete #if 0'd code.
4992 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4994 Fix -readnow for -gdwarf-4 unused type units.
4995 * dwarf2read.c (struct signatured_type): Remove the field offset.
4996 (create_signatured_type_table_from_index): Remove its initialization.
4997 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4998 instead. Add a complaint call.
4999 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5000 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5001 (lookup_signatured_type_at_offset, read_signatured_type)
5002 (write_one_signatured_type): Update the field for per_cu.
5004 2011-05-19 Tom Tromey <tromey@redhat.com>
5006 * python/py-inferior.c (python_inferior_exit): Use
5008 (python_on_resume): Likewise.
5010 2011-05-19 Matt Rice <ratmice@gmail.com>
5012 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5014 2011-05-19 Hui Zhu <teawater@gmail.com>
5016 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5018 2011-05-19 Hui Zhu <teawater@gmail.com>
5020 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5022 2011-05-18 Tom Tromey <tromey@redhat.com>
5024 * dwarf2read.c (dwarf2_add_field): Constify.
5025 * value.c (value_static_field): Constify.
5026 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5028 * ax-gdb.c (gen_static_field): Constify
5030 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5032 * linux-nat.c (kill_callback): Use SIGKILL first.
5034 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5036 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5038 2011-05-18 Tom Tromey <tromey@redhat.com>
5040 * value.c (value_fn_field): Constify.
5041 * symtab.c (gdb_mangle_name): Constify.
5042 * stabsread.c (update_method_name_from_physname): Make 'physname'
5044 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5045 const. Use explicit fputc_filtered loop.
5046 (pascal_type_print_base): Constify.
5047 * p-lang.h (pascal_type_print_method_args): Update.
5048 * linespec.c (add_matching_methods): Constify.
5049 (add_constructors): Likewise.
5050 * jv-typeprint.c (java_type_print_base): Constify.
5051 * gdbtypes.h (struct cplus_struct_type)
5052 <fn_fieldlist.fn_field.physname>: Now const.
5053 * dwarf2read.c (compute_delayed_physnames): Constify.
5054 (dwarf2_add_member_fn): Likewise.
5055 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5057 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5059 * infrun.c (resume): Mention which is the current thread, and its
5060 current PC in debug output.
5061 (prepare_to_proceed): Mention the thread switching in debug
5064 2011-05-18 Tom Tromey <tromey@redhat.com>
5066 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5067 path check. Use xmalloc and cleanups.
5068 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5070 2011-05-17 Tom Tromey <tromey@redhat.com>
5072 * cp-valprint.c (cp_print_value_fields): Catch errors from
5075 2011-05-17 Tom Tromey <tromey@redhat.com>
5077 * dwarf2read.c (dwarf2_get_die_type): Call
5078 get_die_type_at_offset.
5079 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5080 get_base_type function.
5082 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5084 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5087 2011-05-16 Doug Evans <dje@google.com>
5089 * python/py-auto-load.c (source_section_scripts): Mention objfile
5092 2011-05-15 Doug Evans <dje@google.com>
5094 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5095 (try_thread_db_load_from_pdir): Call it. If unable to find
5096 libthread_db in directory of libpthread, see if we're looking at
5097 the separate-debug-info copy.
5099 * python/py-autoload.c (print_script): Print "Missing" instead of
5100 "No" for missing scripts.
5101 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5103 2011-05-13 Doug Evans <dje@google.com>
5105 * ui-file.c (stdio_file_write_async_safe): Add comment.
5107 2011-05-14 Hui Zhu <teawater@gmail.com>
5109 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5111 2011-05-13 Doug Evans <dje@google.com>
5113 Support $pdir and $sdir in libthread-db-search-path.
5114 * NEWS: Mention $sdir,$pdir.
5115 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5116 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5117 (try_thread_db_load_from_sdir): New function.
5118 (try_thread_db_load_from_dir): New function.
5119 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5120 system directories if search of libthread-db-search-path fails,
5121 that is now done via $sdir.
5122 (has_libpthread): New function.
5123 (thread_db_load): Remove search for libthread_db in directory of
5124 libpthread, that is now done via $pdir.
5126 * NEWS: Mention "info auto-load-scripts".
5127 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5128 script_not_found_warning_printed.
5129 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5130 all callers updated. Initialize script_not_found_warning_printed.
5131 (get_auto_load_pspace_data_for_loading): New function.
5132 (maybe_add_script): New function.
5133 (source_section_scripts): Simplify. Only print one warning regardless
5134 of the number of auto-load scripts not found.
5135 (clear_section_scripts): Clear script_not_found_warning_printed.
5136 (auto_load_objfile_script): Record script in hash table.
5137 (count_matching_scripts): New function.
5138 (maybe_print_script): Renamed from maybe_print_section_script, all
5139 callers updated. Rewrite to use ui_out_*.
5140 (info_auto_load_scripts): Renamed from
5141 maintenance_print_section_scripts, all callers updated.
5142 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5143 renamed as "info auto-load-scripts".
5145 2011-05-13 Tom Tromey <tromey@redhat.com>
5147 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5148 (read_sleb128): Likewise.
5150 2011-05-13 Tom Tromey <tromey@redhat.com>
5152 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5155 2011-05-13 Doug Evans <dje@google.com>
5157 * linux-nat.c (debug_linux_nat_async): Delete.
5158 Replace all references to use debug_linux_nat instead.
5159 (show_debug_linux_nat_async): Delete.
5160 (sigchld_handler): Call ui_file_write_async_safe instead of
5162 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5163 * ui-file.c (struct ui_file): New member to_write_async_safe.
5164 (null_file_write_async_safe): New function.
5165 (ui_file_write_async_safe): New function.
5166 (set_ui_file_write_async_safe): New function.
5167 (ui_file_new): Initialize to_write_async_safe.
5168 (stdio_file_write_async_safe): New function.
5169 (struct stdio_file): New member fd.
5170 (stdio_file_new): Initialize to_write_async_safe, fd.
5171 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5173 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5174 (set_ui_file_write_async_safe): Declare.
5175 (ui_file_write_async_safe): Declare.
5177 2011-05-13 Tom Tromey <tromey@redhat.com>
5179 * utils.c (do_value_free): New function.
5180 (make_cleanup_value_free): Likewise.
5181 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5183 (dwarf2_loc_desc_needs_frame): Call
5184 make_cleanup_value_free_to_mark.
5185 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5186 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5188 (new_dwarf_expr_context): Don't call value_mark.
5189 * dwarf2-frame.c (execute_stack_op): Call
5190 make_cleanup_value_free_to_mark.
5191 * defs.h (make_cleanup_value_free): Declare.
5193 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5195 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5196 prepare_execute_command.
5197 * top.c (prepare_execute_command): Return cleanup.
5198 (execute_command): Use cleanup from prepare_execute_command.
5199 * top.h (prepare_execute_command): Change prototype to return
5201 * defs.h (struct value): Add opaque declaration.
5202 (make_cleanup_value_free_to_mark): Add prototype.
5203 * utils.c (do_value_free_to_mark): New function.
5204 (make_cleanup_value_free_to_mark): Likewise.
5206 2011-05-12 Tom Tromey <tromey@redhat.com>
5208 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5209 cast left-hand-side to unsigned.
5211 2011-05-12 Tom Tromey <tromey@redhat.com>
5214 * value.h (value_from_contents): Declare.
5215 * value.c (value_from_contents): New function.
5216 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5217 (dwarf2_get_die_type): New function.
5218 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5219 (allocate_piece_closure): Acquire reference to values.
5220 (read_pieced_value): Update for value-based expressions.
5221 (write_pieced_value): Likewise.
5222 (free_pieced_value_closure): Call value_free as needed.
5223 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5224 Update for value-based expressions.
5225 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5226 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5227 <get_base_type>: New field.
5228 (struct dwarf_expr_piece) <v.value>: Change type.
5229 <v.regno>: New field.
5230 (struct dwarf_expr_context) <mark>: New field.
5231 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5232 (dwarf_expr_pop, dwarf_expr_push): Remove.
5233 (dwarf_expr_push_address): Declare.
5234 * dwarf2expr.c (dwarf_arch_cookie): New global.
5235 (struct dwarf_gdbarch_types): New.
5236 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5238 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5240 (dwarf_expr_push_address): New function.
5241 (dwarf_expr_pop): Now static.
5242 (dwarf_expr_fetch): Change return type.
5243 (dwarf_require_integral): New function.
5244 (dwarf_expr_fetch): Simplify.
5245 (add_piece): Update.
5246 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5248 (execute_stack_op) <sign_ext>: Remove.
5249 Use values for DWARF stack.
5250 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5251 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5253 (_initialize_dwarf2expr): New function.
5254 (add_piece): Update.
5255 (new_dwarf_expr_context): Set new field.
5256 (free_dwarf_expr_context): Call value_free_to_mark.
5257 * dwarf2-frame.c (no_base_type): New function.
5258 (execute_stack_op): Set get_base_type field. Update.
5260 2011-05-12 Tom Tromey <tromey@redhat.com>
5262 * dwarf2read.c (read_common_block): Fix formatting.
5264 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5266 * breakpoint.c (disable_breakpoint): Disable all locations
5267 associated with a tracepoint on target if a trace experiment is
5269 (disable_command): Disable a specific tracepoint location on target if
5270 a trace experiment is running.
5271 (do_enable_breakpoint): Enable all locations associated with a
5272 tracepoint on target if a trace experiment is running.
5273 (enable_command) Enable a specific tracepoint location on target if a
5274 trace experiment is running.
5275 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5276 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5277 to_disable_tracepoint.
5278 * target.h: Add declaration of struct bp_location.
5279 (struct target_ops): Add new functions
5280 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5281 to_disable_tracepoint to target operations.
5282 (target_supports_enable_disable_tracepoint): New macro.
5283 (target_enable_tracepoint): New macro.
5284 (target_disable_tracepoint): New macro.
5285 * remote.c (struct remote_state): Add new field.
5286 (remote_enable_disable_tracepoint_feature): New.
5287 (remote_protocol_features): Add new entry.
5288 (remote_supports_enable_disable_tracepoint): New.
5289 (remote_enable_tracepoint): New.
5290 (remote_disable_tracepoint): New.
5291 (init_remote_ops): Add remote_enable_tracepoint,
5292 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5293 to remote operations.
5294 * tracepoint.c (start_tracing): Allow tracing to start without any
5295 tracepoints enabled with just a warning if they can be re-enabled
5297 * NEWS: Add news item for the new behaviour of the enable and disable
5298 GDB commands when applied to tracepoints.
5299 Add news items for the new remote packets QTEnable and QTDisable.
5301 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5303 * config.in: Regenerate.
5304 * configure: Regenerate.
5305 * configure.ac <--with-system-readline> (for readline_echoing_p):
5307 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5308 (tui_old_rl_echoing_p): ... here.
5309 (tui_setup_io): Rename extern declaration readline_echoing_p to
5310 _rl_echoing_p. Adjust assignments for the both renames.
5312 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5314 * symtab.c (lookup_symtab): Run cleanup before returning.
5316 2011-05-11 Tom Tromey <tromey@redhat.com>
5318 * dwarf2read.c (handle_data_member_location): New function.
5319 (dwarf2_add_field): Use it.
5320 (read_common_block): Likewise.
5322 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5324 Make addrs->SECTINDEX always defined.
5325 * symfile.c (relative_addr_info_to_section_offsets): Check for
5326 SECTINDEX -1, not for zero ADDR.
5327 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5328 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5329 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5332 2011-05-10 Doug Evans <dje@google.com>
5334 * linux-thread-db.c: Whitespace cleanup.
5335 (try_thread_db_load_1): Fix comment.
5337 * linux-thread-db.c (set_libthread_db_search_path): New function.
5338 (_initialize_thread_db): Add setter for libthread-db-search-path.
5340 2011-05-09 Doug Evans <dje@google.com>
5342 * NEWS: Mention --with-iconv-bin.
5343 * configure.ac: New option --with-iconv-bin.
5344 * configure: Regenerate.
5345 * config.in: Regenerate.
5346 * defs.h (relocate_gdb_directory): Declare.
5347 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5348 removed progname parameter, and exported. All callers updated.
5349 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5351 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5352 adding missing call to restore_child_signals_mask.
5354 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5356 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5358 * infrun.c (proceed, start_remote): Adjust.
5359 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5360 and adjust to not handle it.
5361 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5362 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5363 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5364 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5365 * windows-nat.c (do_initial_windows_stuff): Adjust.
5366 * infcmd.c (attach_command): Adjust.
5367 (notice_new_inferior): Adjust.
5369 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5371 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5372 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5373 * spu-tdep.c (op_selb): Use correct value.
5375 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5377 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5378 "parent" parameter to symbol_file_add_from_bfd call.
5380 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5381 Thiago Jung Bauermann <bauerman@br.ibm.com>
5383 Implement support for PowerPC BookE masked watchpoints.
5384 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5386 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5387 method. Initialize to NULL in all existing breakpoint_ops instances.
5388 (struct breakpoint) <hw_wp_mask>: New field.
5389 * breakpoint.c (is_masked_watchpoint): Add prototype.
5390 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5391 breakpoint's breakpoint_ops.works_in_software_mode if available.
5392 (watchpoints_triggered): Handle the case of a hardware masked
5394 (watchpoint_check): Likewise.
5395 (works_in_software_mode_watchpoint): New function.
5396 (insert_masked_watchpoint, remove_masked_watchpoint)
5397 (resources_needed_masked_watchpoint)
5398 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5399 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5400 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5402 (masked_watchpoint_breakpoint_ops): New structure.
5403 (watch_command_1): Check for the existence of the `mask' parameter.
5404 Set b->ops according to the type of hardware watchpoint being created.
5405 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5406 (ppc_linux_remove_mask_watchpoint)
5407 (ppc_linux_masked_watch_num_registers): New functions.
5408 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5409 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5410 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5411 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5412 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5413 (target_masked_watch_num_registers): New functions.
5414 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5415 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5417 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5418 (target_masked_watch_num_registers): Add prototypes.
5420 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5423 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5424 (producer_is_gcc_ge_4_0): New function.
5425 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5426 symtab->language code.
5427 (var_decode_location): Set cu->has_loclist.
5428 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5429 skip. Intialize force_skip from locations_valid. Move the prologue
5430 skipping code into two passes.
5431 * symtab.h (struct symtab): Make the primary field a bitfield. New
5432 field locations_valid.
5434 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5436 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5437 (classify_inner_name): Call cp_lookup_nested_type with
5439 * cp-namespace.c (cp_lookup_nested_type): New variable
5440 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5441 type_name_no_tag_or_error with saved_parent_type.
5442 * dwarf2read.c (load_partial_dies): Read in any children of
5443 DW_TAG_typedef with complaint in such case.
5444 * gdbtypes.c (type_name_no_tag_or_error): New function.
5445 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5446 * valops.c (destructor_name_p): New comment for parameter type. Remove
5447 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5448 * value.h (destructor_name_p): Remove type const.
5450 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5452 * symtab.c (compare_symbol_name): New function.
5453 (completion_list_add_name, expand_partial_symbol_name): Call it,
5454 remove the variable ncmp.
5455 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5458 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5460 Demote to sw watchpoint only in update_watchpoint.
5461 * breakpoint.c (update_watchpoint): Change between software and
5462 hardware watchpoint for all kinds of watchpoints, not just
5463 read/write ones. Determine b->exact value here instead of
5464 in watch_command_1. Error out if there are not enough resources
5465 for a read or access hardware watchpoint.
5466 (watch_command_1): Remove logic of checking whether there are
5467 enough resources available, since update_watchpoint will do that
5468 work now. Don't set b->exact here. Catch exceptions thrown by
5469 update_watchpoint and delete the watchpoint.
5470 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5471 Use target_exact_watchpoints instead.
5472 (delete_breakpoint): Notify observers only if deleted watchpoint
5473 has a breakpoint number assigned to it.
5475 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5477 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5479 2011-05-05 Jerome Guitton <guitton@adacore.com>
5481 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5483 (i386_stack_tramp_frame_unwind): New static global.
5484 (i386_match_pattern): New function, extracted from i386_match_insn.
5485 (i386_match_insn): Use i386_match_pattern.
5486 (i386_match_insn_block): New function.
5487 (i386_tramp_chain_in_reg_insns)
5488 (i386_tramp_chain_on_stack_insns): New static variables.
5489 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5492 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5494 * configure.host (xscale*): Don't handle target.
5495 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5498 2011-05-04 Yao Qi <yao@codesourcery.com>
5500 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5502 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5505 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5506 | * elfread.c (elf_symtab_read): Stop memory leak.
5508 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5510 * nto-tdep.c (nto_target): Replace deprecated call to
5511 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5513 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5515 Fix false GCC warning.
5516 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5518 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5520 * breakpoint.c (update_watchpoint): Move code to change
5521 the enable state of breakpoint from here ...
5522 (do_enable_breakpoint): ... to here.
5524 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5526 * valprint.c (val_print_array_elements): Fixed poor performance
5527 of printing very large arrays with repeat_count_threshold set
5528 to unlimited. New comment.
5530 2011-04-29 Tom Tromey <tromey@redhat.com>
5532 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5533 (mi_parse): Likewise.
5534 * breakpoint.c (break_range_command): Use sizeof char*, not
5536 (create_breakpoint): Likewise.
5537 (parse_breakpoint_sals): Likewise.
5539 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5541 * linux-nat.c (linux_child_remove_fork_catchpoint)
5542 (linux_child_remove_vfork_catchpoint)
5543 (linux_child_remove_exec_catchpoint): New functions.
5544 (linux_target_install_ops): Install them.
5546 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5550 * varobj.c (install_default_visualizer): Do not install a
5551 visualizer if the varobj is CPLUS_FAKE_CHILD.
5552 (construct_visualizer): Likewise.
5554 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5557 case insensitive comparison.
5559 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5561 * infrun.c (proceed): Revert previous change.
5562 (resume): Instead, handle the case of signal delivery while stepping
5563 off a breakpoint location here, and only if software single-stepping
5564 is used. Handle nested signals.
5566 2011-04-28 Yao Qi <yao@codesourcery.com>
5568 * arm-tdep.c (copy_unmodified): Rename to ...
5569 (arm_copy_unmodified): .. this. New.
5570 (copy_preload): Move common part to ...
5571 (install_preload): .. this. New.
5572 (arm_copy_preload): New.
5573 (copy_preload_reg): Move common part to ...
5574 (install_preload_reg): ... this. New.
5575 (arm_copy_preload_reg): New.
5576 (copy_b_bl_blx): Move common part to ...
5577 (install_b_bl_blx): .. this. New.
5578 (arm_copy_b_bl_blx): New.
5579 (copy_bx_blx_reg): Move common part to ...
5580 (install_bx_blx_reg): ... this. New.
5581 (arm_copy_bx_blx_reg): New.
5582 (copy_alu_reg): Move common part to ...
5583 (install_alu_reg): ... this. New.
5584 (arm_copy_alu_reg): New.
5585 (copy_alu_shifted_reg): Move common part to ...
5586 (install_alu_shifted_reg): ... this. New.
5587 (copy_ldr_str_ldrb_strb): Move common part to ...
5588 (install_ldr_str_ldrb_strb): ... this. New.
5589 (arm_copy_ldr_str_ldrb_strb): New.
5590 (copy_copro_load_store): Move some common part to ...
5591 (install_copy_copro_load_store): ... this. New.
5592 (arm_copy_copro_load_store): New.
5594 (arm_copy_svc): Renamed from copy_svc.
5595 (copy_undef): Delete.
5596 (arm_copy_undef): Renamed from copy_undef.
5597 (decode_ext_reg_ld_st): Delete.
5598 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5599 (decode_svc_copro): Delete.
5600 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5601 (copy_copro_load_store, copy_alu_imm): update callers.
5602 (copy_extra_ld_st, copy_block_xfer): Likewise.
5603 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5604 (decode_miscellaneous, decode_dp_misc): Likewise.
5605 (decode_ld_st_word_ubyte, decode_media): Likewise.
5606 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5607 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5608 (decode_unconditional, decode_miscellaneous): Likewise.
5609 (decode_media, decode_b_bl_ldmstm): Likewise.
5610 (arm_process_displaced_insn): Likewise..
5611 (decode_misc_memhint_neon): Delete.
5612 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5613 (decode_miscellaneous): Delete.
5614 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5615 (decode_dp_misc): Delete.
5616 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5617 (decode_ld_st_word_ubyte): Delete.
5618 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5619 (decode_media): Delete.
5620 (arm_decode_media): Renamed from decode_media.
5621 (decode_b_bl_ldmstm): Delete.
5622 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5623 (decode_ext_reg_ld_st): Delete.
5624 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5625 (decode_unconditional): Delete.
5626 (arm_decode_unconditional): Renamed from decode_unconditional.
5628 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5630 Case insensitive lookups implementation.
5631 * dwarf2read.c: Include ctype.h.
5632 (struct mapped_index): New field version.
5633 (mapped_index_string_hash): New parameter index_version. New comment
5634 for it. Call tolower appropriately.
5635 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5636 Choose the right index version for mapped_index_string_hash.
5637 (dwarf2_read_index): Support also the index version 5. Initialize the
5638 new struct mapped_index field version.
5639 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5640 (find_slot): Explain the version needs. Pass INT_MAX for the new
5642 (write_psymtabs_to_index): Produce version 5.
5643 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5644 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5645 * psymtab.c (lookup_partial_symbol): Find the
5646 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5648 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5650 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5651 (completion_list_add_name): New variable ncmp, initialize it, use it.
5652 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5653 * utils.c (strcmp_iw): Support case_sensitive_off.
5654 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5655 New function comment part. New variables saved_string1,
5656 saved_string2 and case_pass. Add a proper second pass.
5658 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5660 Replace re_comp/re_exec by regcomp/regexec.
5661 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5662 (search_symbols_name_matches): Use them, use regexec.
5663 (search_symbols): New variable retval_chain, adjust the use of
5664 old_chain against it. Replace re_comp by regcomp. Use the new struct
5665 search_symbols_data fields, use regexec instead of re_exec.
5667 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 Format the code for the next patch.
5670 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5671 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5672 New variables c1 and c2.
5674 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5676 * infrun.c (proceed): Do not single-step into signal delivery
5677 when stepping off a breakpoint location.
5678 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5679 (insert_step_resume_breakpoint_at_caller): Likewise.
5680 (insert_step_resume_breakpoint_at_sal): Likewise.
5681 (insert_longjmp_resume_breakpoint): Likewise.
5683 2011-04-27 Yao Qi <yao@codesourcery.com>
5685 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5687 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5689 * procfs.c (procfs_pass_signals): Fix advance declaration.
5691 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5693 * target.h (struct target_ops): Remove to_notice_signals;
5694 add to_pass_signals.
5695 (target_notice_signals): Remove.
5696 (target_pass_signals): Add prototype.
5697 * target.c (update_current_target): Remove to_notice_signals;
5698 mention to_pass_signals.
5699 (target_pass_signals): New function.
5700 (debug_to_notice_signals): Remove.
5701 (setup_target_debug): Do not install debug_to_notice_signals.
5703 * infrun.c (signal_pass): New global.
5704 (resume): Call target_pass_signals.
5705 (handle_inferior_event): Report all signals while stepping over
5706 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5707 are re-inserted when stepping over a signal handler.
5708 (signal_cache_update): New function.
5709 (signal_stop_update): Call it.
5710 (signal_print_update): Likewise.
5711 (signal_pass_update): Likewise.
5712 (handle_command): Call signal_cache_update and target_pass_signals
5713 instead of target_notice_signals.
5714 (_initialize_infrun): Initialize signal_pass.
5716 * linux-nat.c (pass_mask): New global.
5717 (linux_nat_pass_signals): New function.
5718 (linux_nat_create_inferior): Report all signals initially.
5719 (linux_nat_attach): Likewise.
5720 (linux_nat_resume): Use pass_mask to decide whether to directly
5721 handle an inferior signal.
5722 (linux_nat_wait_1): Likewise.
5723 (linux_nat_add_target): Install to_pass_signals callback.
5725 * nto-procfs.c (notice_signals): Remove.
5726 (procfs_resume): Do not call notice_signals.
5727 (procfs_notice_signals): Remove.
5728 (procfs_pass_signals): New function.
5729 (init_procfs_ops): Install to_pass_signals callback instead of
5730 to_notice_signals callback.
5731 (_initialize_procfs): Report all signals initially.
5733 * procfs.c (procfs_notice_signals): Remove.
5734 (procfs_pass_signals): New function.
5735 (procfs_target): Install to_pass_signals callback instead of
5736 to_notice_signals callback.
5737 (register_gdb_signals): Remove.
5738 (procfs_debug_inferior): Report all signals initially.
5739 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5741 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5742 parameters; use them instead of calling signal_..._state routines.
5743 (remote_notice_signals): Remove.
5744 (remote_start_remote): Report all signals initially.
5745 (remote_resume): Do not call remote_pass_signals.
5746 (_initialize_remote): Install to_pass_signals callback instead of
5747 to_notice_signals callback.
5749 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5751 * breakpoint.c (user_settable_breakpoint): Delete.
5752 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5753 (delete_command): Check user_breakpoint_p instead of looking at
5754 the breakpoint's type.
5755 (disable_command): Ditto.
5756 (enable_command): Ditto.
5757 (delete_trace_command): Use user_breakpoint_p instead of looking
5758 at the breakpoint number directly. When checking if there are
5759 user visible tracepoints, in order to know whether to ask the user
5760 for confirmation, check whether the breakpoint is actually a
5763 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5765 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5768 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5770 MI breakpoint notifications.
5772 * annotate.c (breakpoint_changed): Adjust parameter type.
5773 * breakpoint.c (set_breakpoint_condition): Adjust to change
5774 in breakpoint_modified type.
5775 (breakpoint_set_commands): Likewise.
5776 (do_map_commands_command): Likewise.
5777 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5778 changed after bumping hit count.
5779 (bpstat_stop_status): Likewise.
5780 (print_one_breakpoint_location): Don't wrap in tuple here.
5781 (print_one_breakpoint): Always print individual locations.
5782 For locations, use unnamed tuple.
5783 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5785 (create_catchpoint, create_syscall_event_catchpoint): Call
5786 breakpoint_created obsever.
5787 (mention): Don't call breakpoint_created observer.
5788 (create_breakpoint_sal): Call breakpoint_created observer.
5789 (create_breakpoint, watch_command_1): Likewise.
5790 (create_ada_exception_breakpoint): Likewise.
5791 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5792 (locations_are_equal): New.
5793 (update_breakpoint_locations): If locations were changed, notify.
5794 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5795 Call breakpoint_modified observer.
5797 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5798 (mi_cmd_break_insert): Don't set observers for modify and delete.
5799 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5800 (mi_breakpoint_created, mi_breakpoint_deleted)
5801 (mi_breakpoint_modified): New.
5802 (mi_interpreter_init): Hook the above.
5803 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5804 while -break-* commands are executing.
5805 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5806 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5808 (mi_ui_out_impl): Hook in mi_redirect.
5809 (mi_field_skip): True to the name, skip the field, don't output
5810 a field with an empty value.
5812 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5813 (gdbpy_breakpoint_deleted): Adjust.
5814 * tui/tui-hooks.c (tui_event_create_breakpoint)
5815 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5817 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5819 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5820 (procfs_remove_hw_watchpoint): Likewise.
5822 2011-04-26 Michael Walle <michael@walle.cc>
5824 * remote.c (remote_start_remote): Ack packet after sending the
5827 2011-04-26 Yao Qi <yao@codesourcery.com>
5829 * linux-nat.c: Move common macros to ...
5830 Include linux-ptrace.h.
5831 * common/linux-ptrace.h: ... here. New.
5833 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5835 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5836 !objfile_has_partial_symbols. New comment.
5837 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5838 SYM_READ_PSYMBOLS is not present. Extend the comment.
5839 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5841 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5843 * defs.h (ENUM_BITFIELD): Remove.
5845 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5846 Eli Zaretskii <eliz@gnu.org>
5848 * NEWS: Document the new gdbserver --once option.
5850 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5852 * MAINTAINERS: Update my email address.
5854 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5856 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5857 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5858 function call if __STDC_ISO_10646__ macro is defined.
5859 (intermediate_encoding): New prototype.
5860 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5861 to generate compile time error for unsupported gdb_wchar_t size.
5862 (ENDIAN_SUFFIX): New macro.
5863 (intermediate_encoding): New function.
5865 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5867 * ada-lang.c (struct add_partial_datum): Update the comment for
5868 expand_partial_symbol_name.
5869 (ada_add_partial_symbol_completions): Rename to ...
5870 (ada_expand_partial_symbol_name): ... here, change return type, update
5871 function comment, call symbol_completion_match instead of
5872 symbol_completion_add.
5873 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5874 and ada_expand_partial_symbol_name.
5875 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5877 (dw2_map_symbol_names): Remove.
5878 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5879 * psymtab.c (map_symbol_names_psymtab): Remove.
5880 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5881 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5883 (psym_functions): Unlist map_symbol_names_psymtab.
5884 (map_partial_symbol_names): Rename to ...
5885 (expand_partial_symbol_names): ... here, change the FUN type, call
5886 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5887 * psymtab.h (map_partial_symbol_names): Rename to ...
5888 (expand_partial_symbol_names): ... here, change the FUN type.
5889 * symfile.h (struct quick_symbol_functions): Update the description of
5890 expand_symtabs_matching. Remove map_symbol_names.
5891 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5892 (struct add_name_data): Update the comment for
5893 expand_partial_symbol_name.
5894 (add_partial_symbol_name): Rename to ...
5895 (expand_partial_symbol_name): ... here. Replace
5896 completion_list_add_name call by strncmp.
5897 (default_make_symbol_completion_list_break_on): Use now
5898 expand_partial_symbol_names and expand_partial_symbol_name.
5899 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5901 2011-04-20 Tom Tromey <tromey@redhat.com>
5903 * dwarf2read.c (save_gdb_index_command): Replace format
5904 documentation with a pointer to the manual.
5906 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5908 * regcache.c: Include remote.h.
5909 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5910 (regcache_dump): Handle regcache_dump_remote.
5911 (maintenance_print_remote_registers): New function.
5912 (_initialize_regcache): Install "maint print remote-registers"
5914 * remote.c (map_regcache_remote_table): New function, factored out
5916 (init_remote_state): ... here.
5917 (remote_register_number_and_offset): New.
5918 * remote.h (remote_register_number_and_offset): Declare.
5920 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5922 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5923 null_ptid, assume and allow a NULL address space, instead of
5924 asking the target for the ptid's address space.
5925 * infrun.c (ptid_is_pid): Remove assertion.
5927 2011-04-19 Tom Tromey <tromey@redhat.com>
5929 * windows-tdep.c (windows_xfer_shared_library):
5930 * windows-nat.c (get_module_name, windows_make_so):
5931 * v850-tdep.c (v850_handle_pushm):
5932 * utils.c (null_cleanup, gdb_realpath):
5933 * ui-out.c (get_next_header):
5934 * tracepoint.c (clear_traceframe_info):
5935 * symtab.c (lookup_symtab):
5936 * serial.h (struct serial_ops):
5937 * mipsread.c (read_alphacoff_dynamic_symtab):
5938 * infcmd.c (print_return_value):
5939 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5940 * f-exp.y (parse_number):
5941 * exceptions.c (catch_exceptions):
5942 * dummy-frame.c (dummy_frame_this_id):
5943 * defs.h (struct cleanup):
5944 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5945 * arm-tdep.c (arm_push_dummy_call):
5946 * amd64-tdep.h (amd64_collect_xsave):
5947 * amd64-tdep.c (amd64_collect_xsave):
5948 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5949 * README (typing): Remove duplicate words.
5950 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5951 * infrun.c (siginfo_value_read): Fix typo.
5952 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5953 * top.c (source_line_number): Add comma.
5955 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5957 * thread.c (any_live_thread_of_process): Prioritize threads
5958 that are not executing.
5959 * gdbthread.h (any_live_thread_of_process): Update comment
5960 as per above change.
5962 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5964 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5965 (scan_xcoff_symtab): Likewise.
5967 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5969 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5972 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5973 Pedro Alves <pedro@codesourcery.com>
5975 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5976 variables to simplify code and avoid == operator at end of
5977 line as this is against GNU coding standards.
5979 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5981 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5982 lm_name to name_lm to avoid conflict with lm_name function.
5984 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5986 ARI fixes: Use only lowercase function name for static functions.
5987 * nto-tdep.c (LM_ADDR): Rename to...
5988 (lm_addr): New function name.
5989 (nto_relocate_section_addresses): Adapt to change above.
5990 * solib-sunos.c (LM_ADDR): Rename to...
5991 (lm_addr): New function name.
5992 (LM_NEXT): Rename to...
5993 (lm_next): New function name.
5994 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5995 function name changes above.
5996 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5997 (lm_addr_from_link_map): New function name.
5998 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5999 (has_lm_dynamic_from_link_map): New function name.
6000 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6001 (lm_dynamic_from_link_map): New function name.
6002 (LM_ADDR_CHECK): Rename to...
6003 (lm_addr_check): New function name.
6004 (LM_NEXT): Rename to...
6005 (lm_next): New function name.
6006 (LM_PREV): Rename to...
6007 (lm_prev): New function name.
6008 (LM_NAME): Rename to...
6009 (lm_name): New function name.
6010 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6011 (ignore_first_link_map_entry): New function name.
6012 (svr4_keep_data_in_core): Adapt to function name changes above.
6013 (svr4_current_sos): Likewise.
6014 (enable_break): Likewise.
6015 (svr4_relocate_section_addresses): Likewise.
6017 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6020 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6021 sprintf. Simplify code and avoid loosing memory.
6022 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6023 (call0_frame_cache): Remove && operator from end of line.
6025 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6027 Fix libraries displacement if they change whether they were prelinked.
6028 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6029 does not match. Comment why.
6031 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6033 * corelow.c: Include wrapper.h.
6034 (core_open): Call now gdb_target_find_new_threads.
6035 * wrapper.c: Include target.h.
6036 (gdb_target_find_new_threads): New.
6037 * wrapper.h (gdb_target_find_new_threads): New declaration.
6039 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6041 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6042 even if !TARGET_HAS_EXECUTION.
6044 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6046 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6047 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6048 bfd_get_synthetic_symtab.
6049 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6050 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6051 parameter parent, remove the call to add_separate_debug_objfile.
6052 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6053 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6054 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6055 parent, new comment for it, call add_separate_debug_objfile for it.
6056 (symbol_file_add_separate): Pass objfile as the parameter parent,
6057 remove the call to add_separate_debug_objfile.
6058 (symbol_file_add_from_bfd): New parameter parent, pass it.
6059 (symbol_file_add): Pass NULL to the new parameter parent.
6060 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6062 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6064 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6067 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6069 Fix Python access to inlined frames.
6070 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6071 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6073 2011-04-15 Tom Tromey <tromey@redhat.com>
6075 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6077 2011-04-15 Gary Benson <gbenson@redhat.com>
6079 * MAINTAINERS: Add myself to write-after-approval section.
6081 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6083 * remote-sim.c (sim_command_completer): New function.
6084 (_initialize_remote_sim): Set completer to sim_command_completer.
6086 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6088 * breakpoint.c (print_exception_catchpoint): Rename to ...
6089 (print_it_exception_catchpoint): ... this.
6090 (gnu_v3_exception_catchpoint_ops): Update with new name
6091 for print_it_exception_catchpoint.
6093 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6095 * MAINTAINERS: Add myself for write after approval privileges.
6097 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6099 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6101 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6103 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6105 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6107 * breakpoint.c (save_breakpoints): Verify whether
6108 breakpoint_ops.print_recreate is defined before calling it.
6110 2011-04-11 Gary Benson <gbenson@redhat.com>
6112 Fix failure with --enable-maintainer-mode.
6113 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6115 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6118 * symtab.c (search_symbols): Reorder the KIND description in the
6119 function comment. Remove the unused 4th element of types, types2,
6120 types3 and types4. New gdb_assert on KIND.
6121 (symtab_symbol_info): Remove the unused 4th element of classnames.
6122 New gdb_assert on KIND.
6123 * symtab.h (enum search_domain): New warning in the enum comment.
6124 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6127 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6129 Fix crash of gdb save-index on a STABS file.
6130 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6133 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6135 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6136 * dwarf2read.c: Include ctype.h.
6137 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6139 (dwarf2_add_field): Fix new_field->accessibility by calling
6140 dwarf2_default_access_attribute. Restructure setting accessibility
6142 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6143 is_private and is_protected by calling
6144 dwarf2_default_access_attribute.
6146 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6148 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6149 to the initialization.
6151 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6153 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6156 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6158 Remove support for old Cygwin 1.5 versions.
6159 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6160 function on old Cygwin version.
6161 * windows-nat.c: Remove cygwin version check and always define
6162 __USEWIDE for Cygwin compilation.
6164 2011-04-07 Yao Qi <yao@codesourcery.com>
6166 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6168 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6169 (arm_copy_svc): Remove parameters INSN and TO.
6170 (decode_svc_copro): Update caller.
6171 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6172 from function pointer `copy_svc_os'.
6174 2011-04-07 Yao Qi <yao@codesourcery.com>
6176 * arm-tdep.c (cleanup_branch): Set a correct return address in
6177 LR for ARM and Thumb.
6179 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6182 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6183 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6184 in the function comment, a new note on values compatibility.
6185 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6186 * symtab.h (SYMBOL_HASH_NEXT): New.
6188 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6190 * ppc-linux-nat.c (check_condition): Add len output parameter.
6191 Set it based on the memory region referenced in the condition
6192 expression. Update all callers.
6194 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6196 Fix crash regression on systems featuring .gdb_index.
6197 * objfiles.c (free_objfile): Move the
6198 forget_cached_source_info_for_objfile call earlier. Comment it.
6199 Extend the comment for objfile_free_data.
6201 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6203 Fix regression of displaying the debug format.
6204 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6207 2011-04-04 Tom Tromey <tromey@redhat.com>
6209 * cli/cli-interp.c (struct captured_execute_command_args):
6211 (do_captured_execute_command): Remove.
6212 (safe_execute_command): Use TRY_CATCH.
6213 * cli/cli-script.c (struct wrapped_read_command_file_args):
6215 (wrapped_read_command_file): Remove.
6216 (script_from_file): Use TRY_CATCH.
6217 * exceptions.c (catch_exception): Remove.
6218 * exceptions.h (catch_exception): Remove.
6219 (deprecated_throw_reason): Update comment.
6220 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6221 argument to 'context'.
6222 (mi_execute_command): Use TRY_CATCH.
6223 * remote.c (struct start_remote_args): Remove.
6224 (remote_start_remote): Update; change arguments.
6225 (remote_open_1): Use TRY_CATCH.
6227 2011-04-04 Tom Tromey <tromey@redhat.com>
6229 * tracepoint.c (scope_info): Update.
6230 * symtab.c (decode_line_spec): Update.
6231 * python/python.c (gdbpy_decode_line): Update.
6232 * linespec.h (decode_line_1): Update.
6233 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6234 (decode_compound, find_method, symtab_from_filename)
6235 (decode_variable): Likewise.
6236 * cli/cli-cmds.c (edit_command): Update.
6237 (list_command): Update.
6238 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6240 (create_breakpoint): Update.
6241 (until_break_command): Update.
6242 (addr_string_to_sals): Update.
6243 (decode_line_spec_1): Update.
6245 2011-04-04 Tom Tromey <tromey@redhat.com>
6247 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6248 (do_captured_parse_breakpoint): Remove.
6249 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6250 Use TRY_CATCH directly.
6252 2011-04-04 Tom Tromey <tromey@redhat.com>
6254 * symtab.h (free_symtab): Remove.
6255 (forget_cached_source_info_for_objfile): Declare.
6256 * symmisc.c (free_symtab): Remove.
6257 * source.c (forget_cached_source_info_for_objfile): New function.
6258 (forget_cached_source_info): Use it.
6259 * objfiles.c (free_objfile): Simplify check before calling
6260 clear_current_source_symtab_and_line. Call
6261 forget_cached_source_info_for_objfile.
6263 2011-04-04 Tom Tromey <tromey@redhat.com>
6265 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6266 (new_symtab): Don't set `free_code' on symtab.
6267 (new_linetable): Properly handle size==0.
6268 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6269 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6271 * jv-lang.c (struct jv_per_objfile_data): New.
6272 (jv_per_objfile_free): Free the data.
6273 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6274 (get_java_class_symtab): Set the `dict' field on the
6275 jv_per_objfile_data.
6276 (free_class_block): Remove.
6277 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6280 2011-04-04 Tom Tromey <tromey@redhat.com>
6282 * symfile.c (reread_symbols): Update.
6283 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6285 * objfiles.c (allocate_objfile): Update.
6286 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6288 * cp-namespace.c (lookup_symbol_file): Don't call
6289 lookup_possible_namespace_symbol.
6290 (initialize_namespace_symtab, get_possible_namespace_block)
6291 (free_namespace_block, cp_check_possible_namespace_symbols)
6292 (check_possible_namespace_symbols_loop)
6293 (check_one_possible_namespace_symbol)
6294 (lookup_possible_namespace_symbol): Remove.
6295 (maintenance_cplus_namespace): Replace with notice.
6296 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6298 2011-04-04 Tom Tromey <tromey@redhat.com>
6300 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6301 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6302 * symmisc.c (free_symtab): Don't free debugformat.
6303 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6304 (record_debugformat, record_producer): Document.
6305 * buildsym.c (end_symtab): Don't save debugformat and producer
6307 (end_symtab): Don't free debugformat and producer fields.
6308 (record_debugformat): Don't call xstrdup.
6309 (record_producer): Likewise.
6311 2011-04-04 Tom Tromey <tromey@redhat.com>
6313 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6314 (source_line_charpos, source_charpos_line): Remove.
6316 2011-04-04 Tom Tromey <tromey@redhat.com>
6318 * symtab.h (domain_enum): Split in two...
6319 (enum search_domain): New.
6320 (search_symbols): Update.
6321 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6322 redundant declarations.
6323 (search_symbols): Change 'kind' argument to search_domain.
6325 (print_symbol_info): Likewise.
6326 (symtab_symbol_info): Likewise.
6327 * symfile.h (struct quick_symbol_functions)
6328 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6329 <expand_symtabs_matching>: Likewise.
6330 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6331 (expand_symtabs_matching_via_partial): Update.
6332 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6333 (dw2_expand_symtabs_for_function): Update.
6334 * block.h: Moved anonymous enum...
6335 * defs.h (enum block_enum): ... here. Now named.
6337 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6339 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6340 * version.in: Bump version to 7.3.50.20110403-cvs.
6342 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6344 * NEWS: Create a new section for the next release branch.
6345 Rename the section of the current branch, now that it has
6348 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6350 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6351 for "fpscr" in target description.
6353 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6355 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6356 initialize it. Delay HASH initialization. Strip the part after open
6357 parenthesis for languages with qualifiers. Call do_cleanups.
6359 2011-04-01 Tom Tromey <tromey@redhat.com>
6361 * utils.c (report_command_stats): Don't print `-' for negative
6364 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6366 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6367 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6370 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6372 * breakpoint.h (bpdisp_text): Add declaration.
6373 * breakpoint.c (bpdisp_text): Make non-static.
6374 * ada-lang.c: #include "mi/mi-common.h".
6375 (print_it_exception): Rewrite to improve GDB/MI output.
6377 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6379 * arm-tdep.h (struct address_space): Add forward declaration.
6381 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6383 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6384 * arm-tdep.c (arm_override_mode): New global.
6385 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6386 execution mode heuristics.
6387 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6388 second single-step breakpoint if needed, using
6389 arm_insert_single_step_breakpoint.
6390 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6391 ARM execution mode, do not call thumb_get_next_pc_raw.
6392 (arm_get_next_pc): Encode execution mode in return value. Call
6393 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6394 (arm_insert_single_step_breakpoint): New function.
6395 (arm_software_single_step): Call it.
6396 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6397 argument to return execution mode of sigreturn target.
6398 (arm_linux_syscall_next_pc): Use it.
6399 (arm_linux_copy_svc): Update call.
6400 (arm_linux_software_single_step): Call
6401 arm_insert_single_step_breakpoint.
6403 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6405 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6408 2011-03-31 Tom Tromey <tromey@redhat.com>
6410 * varobj.c (update_dynamic_varobj_children): Properly handle
6411 errors from iterator.
6413 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6415 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6416 struct linkage name twice.
6418 2011-03-31 Tom Tromey <tromey@redhat.com>
6420 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6421 missing ">" to message.
6423 2011-03-31 Tom Tromey <tromey@redhat.com>
6425 * varobj.c (instantiate_pretty_printer): Remove duplicate
6428 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6430 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6431 if neither saved value nor register available (e.g. signal frame).
6433 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6435 * macroexp.c (expand): Avoid uninitialized variable
6438 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6440 * breakpoint.c (break_range_command): Fix typo in comment.
6442 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6443 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6445 Implement support for PowerPC BookE ranged breakpoints.
6446 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6447 * breakpoint.h (struct bp_target_info) <length>: New member
6449 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6450 instead of struct breakpoint as argument, and also add ASPACE
6451 and BP_ADDR arguments. Update all callers.
6452 (struct breakpoint_ops) <print_one_detail>: New method.
6453 (struct breakpoint) <addr_string_range_end>: New member variable.
6454 * breakpoint.c (breakpoint_location_address_match): Add function
6456 (insert_bp_location): Set bl->target_info.length.
6457 (breakpoint_here_p): Call breakpoint_location_address_match.
6458 (moribund_breakpoint_here_p): Likewise.
6459 (regular_breakpoint_inserted_here_p): Likewise.
6460 (breakpoint_thread_match): Likewise.
6461 (bpstat_stop_status): Likewise.
6462 (bpstat_check_location): Move call to
6463 breakpoint_ops.breakpoint_hit to the top.
6464 (print_one_breakpoint_location): Call
6465 breakpoint_ops.print_one_detail if available.
6466 (breakpoint_address_match_range): New function.
6467 (breakpoint_location_address_match): Likewise.
6468 (breakpoint_locations_match): Compare the length field of the
6470 (hw_breakpoint_used_count): Count resources used by all locations
6471 in a breakpoint, and use breakpoint_ops.resources_needed if
6473 (breakpoint_hit_ranged_breakpoint): New function.
6474 (resources_needed_ranged_breakpoint): Likewise.
6475 (print_it_ranged_breakpoint): Likewise.
6476 (print_one_ranged_breakpoint): Likewise.
6477 (print_one_detail_ranged_breakpoint): Likewise.
6478 (print_mention_ranged_breakpoint): Likewise.
6479 (print_recreate_ranged_breakpoint): Likewise.
6480 (ranged_breakpoint_ops): New structure.
6481 (find_breakpoint_range_end): New function.
6482 (break_range_command): Likewise.
6483 (delete_breakpoint): Free addr_string_range_end.
6484 (update_breakpoint_locations): Add SALS_END argument. Update
6485 all callers. Calculate breakpoint length if a non-zero SALS_END
6486 is given. Call breakpoint_locations_match instead of
6487 breakpoint_address_match.
6488 (reset_breakpoint): Find SaL of the end of the range if B is a
6490 (_initialize_breakpoint): Register break-range command.
6491 * defs.h (print_core_address): Add function prototype.
6492 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6494 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6495 (ppc_linux_remove_hw_breakpoint): Likewise.
6496 (_initialize_ppc_linux_nat): Initialize
6497 to_ranged_break_num_registers.
6498 * target.c (update_current_target): Add comment about
6499 to_ranged_break_num_registers.
6500 (target_ranged_break_num_registers): New function.
6501 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6503 (target_ranged_break_num_registers): Add function prototype.
6504 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6505 * utils.c (print_core_address): ... here.
6507 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6509 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6510 variable compiler warning.
6512 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6514 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6516 (re_set_breakpoint): ... to here ...
6517 (addr_string_to_sals): ... and here.
6519 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6521 * Makefile.in (SFILES): Add missing C sources.
6522 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6523 Add missing headers.
6525 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6527 * .gitignore: New file.
6529 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6531 * NEWS: Mention new cfi device simulation.
6533 2011-03-29 Tom Tromey <tromey@redhat.com>
6535 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6536 otherwise anonymous types.
6537 (dwarf2_name): Likewise.
6538 * valops.c (value_struct_elt_for_reference): Refine artificial
6539 type logic. Call error if j==-1.
6541 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6543 Fix false GCC warning.
6544 * infcall.c (find_function_addr): Initialize funaddr.
6546 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6548 Fix mingw compilation with --enable-targets=all.
6549 * remote-mips.c (gdb_usleep.h): Include header.
6550 (mips_enter_debug): Use gdb_usleep instead of sleep.
6552 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6554 Support resolution of STT_GNU_IFUNC via breakpoints.
6555 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6556 bp_gnu_ifunc_resolver_return.
6557 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6558 the loop. Support bp_gnu_ifunc_resolver and
6559 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6560 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6562 (bptype_string, print_one_breakpoint_location): Support
6563 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6564 (user_settable_breakpoint): Return true also for
6565 bp_gnu_ifunc_resolver.
6566 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6567 bp_gnu_ifunc_resolver_return.
6568 (set_breakpoint_location_function): New parameter explicit_loc,
6569 describe it. Call find_pc_partial_function_gnu_ifunc with new
6570 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6571 EXPLICIT_LOC is not set.
6572 (set_raw_breakpoint): Set EXPLICIT_LOC for
6573 set_breakpoint_location_function.
6574 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6575 set_breakpoint_location_function.
6576 (mention): Support bp_gnu_ifunc_resolver and
6577 bp_gnu_ifunc_resolver_return.
6578 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6579 set_breakpoint_location_function.
6580 (update_breakpoint_locations): Remove static.
6581 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6582 bp_gnu_ifunc_resolver_return.
6583 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6584 bp_gnu_ifunc_resolver_return.
6585 (update_breakpoint_locations): New declaration.
6586 * elfread.c: Include gdbthread.h and regcache.h.
6587 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6589 (elf_gnu_ifunc_fns): Install them.
6590 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6591 (stub_gnu_ifunc_resolver_return_stop): New functions.
6592 (stub_gnu_ifunc_fns): Install them.
6593 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6594 and gnu_ifunc_resolver_return_stop.
6595 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6597 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6599 STT_GNU_IFUNC reader implementation.
6600 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6601 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6602 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6603 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6604 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6605 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6606 (elf_gnu_ifunc_resolve_addr): New.
6607 (elf_symfile_read): Call elf_rel_plt_read.
6608 (elf_gnu_ifunc_fns): New.
6609 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6610 Install elf_gnu_ifunc_fns.
6611 * infcall.c (find_function_return_type): New function.
6612 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6613 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6614 (stub_gnu_ifunc_resolve_name): New functions.
6615 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6616 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6617 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6619 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6621 Code cleanup for later STT_GNU_IFUNC support.
6622 * infcall.c (find_function_addr): Remove variable code, use explicit
6623 dereferences for it. Move VALUE_TYPE initialization later.
6625 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6627 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6628 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6629 (clear_pc_function_cache): Clear it.
6630 (find_pc_partial_function): Rename to ...
6631 (find_pc_partial_function_gnu_ifunc): ... this function. New
6632 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6633 (find_pc_partial_function): New wrapper for this function.
6634 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6636 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6638 GDB internal type support for STT_GNU_IFUNC.
6639 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6640 (elf_symtab_read): Set mst_text_gnu_ifunc for
6641 BSF_GNU_INDIRECT_FUNCTION.
6642 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6643 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6644 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6645 nodebug_got_plt_symbol.
6646 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6647 (TYPE_GNU_IFUNC): New.
6648 (struct main_type): New field flag_gnu_ifunc.
6649 (struct builtin_type): New field builtin_func_func.
6650 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6651 nodebug_got_plt_symbol.
6652 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6653 (in_gnu_ifunc_stub): New.
6654 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6656 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6657 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6658 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6660 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6661 * symtab.c (search_symbols): Likewise.
6662 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6663 and mst_slot_got_plt.
6664 (in_gnu_ifunc_stub): New declaration.
6666 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 Support a ring of related breakpoints.
6669 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6670 other functions, add gdb_assert.
6671 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6672 watchpoint_del_at_next_stop.
6673 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6674 (bpstat_stop_status): Handle ring in related_breakpoint.
6675 (set_raw_breakpoint_without_location): Initialize ring in
6677 (delete_breakpoint): Handle ring in related_breakpoint, use
6678 watchpoint_del_at_next_stop.
6679 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6681 2011-03-28 Tom Tromey <tromey@redhat.com>
6684 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6685 with `language_minimal'.
6687 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6689 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6690 instead of checking for STT_ARM_TFUNC symbol type.
6692 2011-03-25 Tom Tromey <tromey@redhat.com>
6694 * linespec.c (symbol_found): Restore line-based result for
6695 non-LOC_LABEL symbols.
6697 2011-03-25 Kai Tietz <ktietz@redhat.com>
6699 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6700 instead of strcmp for comparison.
6701 (tui_source_is_displayed): Likewise.
6702 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6704 2011-03-24 Mark Wielaard <mjw@redhat.com>
6706 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6708 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6709 (find_partial_die_in_comp_unit): Likewise in comment.
6710 (read_attribute_value): Likewise.
6711 (lookup_die_type): Likewise.
6712 (dwarf_form_name): Likewise.
6713 (dump_die_shallow): Likewise.
6714 (follow_die_ref_or_sig): Likewise.
6716 2011-03-24 Tom Tromey <tromey@redhat.com>
6718 PR breakpoints/11816:
6719 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6720 (decode_compound): Update.
6721 (find_function_symbol): New function.
6722 (decode_dollar): Update.
6723 (decode_label): Add 'function_symbol' parameter. Handle
6724 function-relative labels.
6725 (decode_variable): Update.
6726 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6727 not its line. Set `special_display' and canonical name for
6730 2011-03-24 Tom Tromey <tromey@redhat.com>
6732 * linespec.h (struct linespec_result) <special_display>: New
6734 * breakpoint.h (struct breakpoint) <display_canonical>: New
6736 * breakpoint.c (print_breakpoint_location): Respect
6738 (create_breakpoint_sal): Add 'display_canonical' parameter.
6739 (create_breakpoints_sal): Update.
6740 (create_breakpoint): Update.
6742 2011-03-24 Tom Tromey <tromey@redhat.com>
6744 * symtab.c (decode_line_spec): Update.
6745 * linespec.c (build_canonical_line_spec): Change type of
6747 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6748 (find_method, decode_all_digits, decode_dollar, decode_label)
6749 (symbol_found): Likewise.
6750 (init_linespec_result): New function.
6751 * breakpoint.c (struct captured_parse_breakpoint_args)
6752 <canonical_p>: New field, replaces addr_string_p.
6753 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6755 (parse_breakpoint_sals): Likewise.
6756 (do_captured_parse_breakpoint): Update.
6757 (create_breakpoint): Use struct linespec_result.
6758 (until_break_command): Update.
6759 (breakpoint_re_set_one): Update.
6760 (decode_line_spec_1): Update.
6761 * linespec.h (struct linespec_result): New.
6762 (init_linespec_result): Declare.
6764 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6766 * regcache.c (regcache_raw_read): If the target didn't supply a
6767 given raw register, mark it as unavailable.
6769 2011-03-23 Kai Tietz <ktietz@redhat.com>
6771 * breakpoint.c (clear_command): Use filename_cmp
6772 instead of strcmp for comparison.
6773 * buildsym.c (watch_main_source_file_lossage): Likewise.
6774 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6775 checking just for slash.
6776 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6777 strrchr and filename_cmp instead of strcmp for filenames.
6778 (add_old_header_file): Use filename_cmp
6779 instead of strcmp for comparison.
6780 * exec.c (exec_set_section_address): Likewise.
6781 * macrotab.c (macro_lookup_inclusion): Likewise.
6782 (macro_lookup_inclusion): Likewise.
6783 * elfread.c (_initialize_elfread): Likewise.
6784 (elfstab_offset_sections): Likewise.
6785 (elfstab_offset_sections): Use lbasename instead of
6787 * mdebugread.c (parse_partial_symbols): Likewise.
6788 (arse_partial_symbols): Use filename_(n)cmp instead of
6789 str(n)cmp for comparison.
6790 * minsyms.c (lookup_minimal_symbol): Likewise.
6791 * psymtab.c (read_psymtabs_with_filename): Likewise.
6792 * solib.c (solib_read_symbols): Likewise.
6793 (reload_shared_libraries_1): Likewise.
6794 * symmisc.c (maintenance_print_symbols): Likewise.
6795 * symfile.c (separate_debug_file_exists): Likewise.
6796 (reread_symbols): Likewise.
6797 (find_separate_debug_file_by_debuglink): Likewise.
6798 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6799 * source.c (add_path): Likewise.
6800 * symtab.c (filename_seen): Likewise.
6801 (file_matches): Likewise.
6802 (print_symbol_info): Likewise.
6803 (maybe_add_partial_symtab_filename): Likewise.
6804 (make_source_files_completion_list): Likewise.
6805 * xml-syscall.c (init_sysinfo): Likewise.
6806 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6807 IS_DIR_SEPARATOR for checking for trailing path separator.
6809 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6811 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6812 label abort_expression.
6813 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6814 DWARF_VALUE_OPTIMIZED_OUT.
6816 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6820 to linkage_name. Invert its value. Update the function comment.
6821 (c_type_print_varspec_suffix): Invert it at the caller.
6822 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6824 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6826 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6827 errors when reading the `stop_pc'.
6828 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6831 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6833 * NEWS: Document gdb.Write stream keyword.
6835 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6838 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6839 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6840 (dwarf2_add_field): Fix new_field->accessibility for
6841 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6843 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6847 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6848 other error classes. Do not print stack trace.
6850 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6853 (dwarf2_add_field): Fix new_field->accessibility for
6854 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6856 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6858 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6859 encountering a load via a non-SP register.
6861 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6863 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6864 field in returned unwinder.
6866 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6868 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6870 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6872 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6875 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6877 * frame.c (frame_unwind_register): Throw an error if unwinding the
6879 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6880 an unwind stop reason.
6881 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6882 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6883 UNWIND_UNAVAILABLE>: New.
6884 * inline-frame.c (inline_frame_unwind): Install
6885 default_frame_unwind_stop_reason.
6886 * frame-unwind.c: Include "exceptions.h".
6887 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6888 (default_frame_unwind_stop_reason): New.
6889 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6890 (default_frame_unwind_stop_reason): Declare.
6891 (struct frame_unwind) <stop_reason>: New function pointer.
6893 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6894 * dwarf2-frame.c: Include exceptions.h.
6895 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6896 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6897 computing the CFA. If such an error was thrown, set
6898 unavailable_retaddr.
6899 (dwarf2_frame_unwind_stop_reason): New.
6900 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6902 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6903 (dwarf2_signal_frame_unwind): Ditto.
6905 * amd64-tdep.c: Include "exceptions.h".
6906 (struct amd64_frame_cache): New field "base_p".
6907 (amd64_init_frame_cache): Clear it.
6908 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6909 Avoid reading registers with functions that throw if the register
6910 is not necessary to compute the frame base.
6911 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6912 swallowing NOT_AVAILABLE_ERROR.
6913 (amd64_frame_unwind_stop_reason): New.
6914 (amd64_frame_this_id): Don't build a frame id if the frame base
6916 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6917 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6918 base_p if the frame base was computable.
6919 (amd64_sigtramp_frame_unwind_stop_reason): New.
6920 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6921 frame base was unavailable.
6922 (amd64_sigtramp_frame_unwind): Install
6923 amd64_sigtramp_frame_unwind_stop_reason.
6924 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6925 base_p if the frame base was computable.
6926 (amd64_epilogue_frame_unwind_stop_reason): New.
6927 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6928 frame base was unavailable.
6929 (amd64_epilogue_frame_unwind): Install
6930 amd64_epilogue_frame_unwind_stop_reason.
6931 * i386-tdep.c: Include "exceptions.h".
6932 (struct i386_frame_cache): New field "base_p".
6933 (i386_init_frame_cache): Clear it.
6934 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6935 Avoid reading registers with functions that throw if the register
6936 is not necessary to compute the frame base.
6937 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6938 swallowing NOT_AVAILABLE_ERROR.
6939 (i386_frame_unwind_stop_reason): New.
6940 (i386_frame_this_id): Don't build a frame id if the frame base was
6942 (i386_frame_prev_register): Handle unavailable SP.
6943 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6944 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6945 base_p if the frame base was computable.
6946 (i386_epilogue_frame_unwind_stop_reason): New.
6947 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6948 base was unavailable.
6949 (i386_epilogue_frame_unwind): Install
6950 i386_epilogue_frame_unwind_stop_reason.
6951 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6952 base_p if the frame base was computable.
6953 (i386_sigtramp_frame_unwind_stop_reason): New.
6954 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6955 base was unavailable.
6956 (i386_sigtramp_frame_unwind): Install
6957 i386_sigtramp_frame_unwind_stop_reason.
6958 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6959 type's size, not the register's.
6960 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6962 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6963 default_frame_unwind_stop_reason.
6964 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6965 (alpha_heuristic_frame_unwind): Ditto.
6966 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6967 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6968 * avr-tdep.c (avr_frame_unwind): Ditto.
6969 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6971 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6972 * frv-tdep.c (frv_frame_unwind): Ditto.
6973 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6974 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6975 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6976 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6977 (hppa_stub_frame_unwind): Ditto.
6978 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6979 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6980 (ia64_libunwind_frame_unwind)
6981 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6982 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6983 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6984 * m32c-tdep.c (m32c_unwind): Ditto.
6985 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6986 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6987 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6988 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6989 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6990 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6991 * mep-tdep.c (mep_frame_unwind): Ditto.
6992 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6993 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6994 (mips_stub_frame_unwind): Ditto.
6995 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6996 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6997 * mt-tdep.c (mt_frame_unwind): Ditto.
6998 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6999 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7000 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7001 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7002 (s390_sigtramp_frame_unwind): Ditto.
7003 * score-tdep.c (score_prologue_unwind): Ditto.
7004 * sh-tdep.c (sh_frame_unwind): Ditto.
7005 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7006 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7007 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7008 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7009 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7010 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7011 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7012 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7013 (sparc64obsd_trapframe_unwind): Ditto.
7014 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7015 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7016 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7017 * v850-tdep.c (v850_frame_unwind): Ditto.
7018 * vax-tdep.c (vax_frame_unwind): Ditto.
7019 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7020 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7021 * xtensa-tdep.c (xtensa_unwind): Ditto.
7023 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7025 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7026 there's always a frame. Use get_frame_pc_if_available instead of
7027 get_frame_pc, and if there's no PC available, don't look up a
7030 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7032 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7035 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7037 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7040 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7042 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7043 * frame.c (frame_unwind_caller_pc_if_available): New.
7044 * stack.c (frame_info): Handle unavailable PC.
7046 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7048 * frame.c (frame_unwind_pc): Rename to ...
7049 (frame_unwind_pc_if_available): ... this. New `pc' output
7050 parameter. Change return type to int. Gracefully handle
7051 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7052 happened, or 1 otherwise.
7053 (frame_unwind_pc): Reimplement on top of
7054 frame_unwind_pc_if_available.
7055 (get_frame_func): Rename to ...
7056 (get_frame_func_if_available): New `pc' output parameter. Change
7057 return type to int. Gracefully handle the PC not being available.
7058 (get_frame_func): Reimplement on top of
7059 get_frame_func_if_available.
7060 (select_frame): Handle the PC being unavailable.
7061 (get_prev_frame): Handle the PC being unavailable.
7062 (get_frame_pc_if_available): New.
7063 (get_frame_address_in_block_if_available): New.
7064 (find_frame_sal): Handle the frame PC not being available.
7065 * frame.h (get_frame_pc_if_available): Declare.
7066 (get_frame_address_in_block_if_available): Declare.
7067 (get_frame_func_if_available): Declare.
7068 * stack.c (print_frame_info): Handle the PC being unavailable.
7069 (find_frame_funname): Ditto.
7070 (print_frame): Handle the PC being unavailable.
7071 (get_frame_language): Ditto.
7072 * blockframe.c (get_frame_block): Ditto.
7073 * macroscope.c (default_macro_scope): Ditto.
7074 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7076 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7078 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7079 NOT_AVAILABLE_ERROR when evaluating the location expression.
7081 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7083 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7084 returning that the register piece is unavailable/optimized out.
7085 (write_pieced_value): Handle get_frame_register_bytes returning
7086 that the register piece is unavailable/optimized out when doing a
7087 read-modify write of a bitfield.
7088 * findvar.c (value_from_register): Handle get_frame_register_bytes
7089 returning that the register piece is unavailable/optimized out.
7090 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7091 and `unavailablep'. Throw error on bad debug info. Use
7092 frame_register instead of frame_register_read, to fill in the new
7094 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7096 * valops.c: (value_assign): Adjust, and handle
7097 get_frame_register_bytes failing.
7098 * spu-tdep.c: Include exceptions.h.
7099 (spu_software_single_step): Adjust, and handle
7100 get_frame_register_bytes failing.
7101 (spu_get_longjmp_target): Ditto.
7102 * gdbarch.sh (register_to_value): Change to return int. New
7103 parameters `optimizedp' and `unavailablep'.
7104 * gdbarch.h, gdbarch.c: Regenerate.
7105 * i386-tdep.c (i386_register_to_value): Adjust to new
7106 gdbarch_register_to_value interface.
7107 * i387-tdep.c (i387_register_to_value): Ditto.
7108 * i387-tdep.h (i387_register_to_value): Ditto.
7109 * alpha-tdep.c (alpha_register_to_value): Ditto.
7110 * ia64-tdep.c (ia64_register_to_value): Ditto.
7111 * m68k-tdep.c (m68k_register_to_value): Ditto.
7112 * mips-tdep.c (mips_register_to_value): Ditto.
7113 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7115 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7117 * findvar.c (value_of_register): Mark the value as unavailable, if
7118 the register is unavailable.
7119 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7120 (frame_register): New `unavailablep' parameter.
7121 (frame_register_read): Update comment.
7122 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7123 Set it if the register is unavailable. If the register is
7124 unavailable, clear the output buffer.
7125 (frame_register): New `unavailablep' parameter. Pass it down.
7126 (frame_unwind_register): Adjust.
7127 (put_frame_register): Adjust.
7128 (frame_register_read): Adjust. Also return false if the register
7130 (frame_register_unwind_location): Adjust.
7131 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7132 is unavailable, mark the value accordingly.
7133 * stack.c (frame_info): Handle unavailable registers.
7135 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7137 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7138 simplify, using regcache_cooked_read.
7140 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7142 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7143 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7144 (regcache_raw_read_unsigned, regcache_raw_read_part)
7145 (regcache_cooked_read, regcache_cooked_read_signed)
7146 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7147 (regcache_cooked_read_ftype): Change return to enum
7149 * regcache.c: Include exceptions.h
7150 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7151 (do_cooked_read): Change return to enum register_status. Always
7152 forward to regcache_cooked_read.
7153 (regcache_raw_read): Change return to enum register_status. If
7154 the register is not REG_VALID, memset the buffer. Return the
7156 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7157 return the register's status.
7158 (regcache_raw_read_unsigned): Ditto.
7159 (regcache_cooked_read): Change return to enum register_status.
7160 Assert that with read-only regcaches, the register's status must
7161 be known. If the regcache is read-only, and the register is not
7162 REG_VALID, memset the buffer. Return the register's status.
7163 (regcache_cooked_read_signed): Change return to enum
7164 register_status. Handle non-REG_VALID registers and return the
7166 (regcache_cooked_read_unsigned): Change return to enum
7167 register_status. Handle non-REG_VALID registers and return the
7169 (regcache_xfer_part, regcache_raw_read_part)
7170 (regcache_cooked_read_part): Change return to enum
7171 register_status. Return the register's status.
7172 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7174 (regcache_dump): Handle unavailable cooked registers.
7175 * frame.c (do_frame_register_read): Adjust interface to match
7176 regcache_cooked_read_ftype.
7177 * gdbarch.sh (pseudo_register_read): Change return to enum
7179 * gdbarch.h, gdbarch.c: Regenerate.
7181 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7183 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7184 register_status. If reading a raw register indicates the raw
7185 register is not valid, return the raw register's status,
7186 otherwise, return REG_VALID.
7187 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7188 register_status. Handle non-REG_VALID raw registers and return
7189 the register's status.
7190 * arm-tdep.c (arm_neon_quad_read)
7191 (arm_pseudo_read): Change return to enum register_status. Handle
7192 non-REG_VALID raw registers and return the register's status.
7193 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7194 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7195 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7196 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7197 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7199 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7200 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7201 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7202 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7203 (m32c_pseudo_register_read): Change return to enum
7204 register_status. Adjust.
7205 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7206 enum register_status. Return the register's status.
7207 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7208 register_status. Return the register's status.
7209 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7210 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7211 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7212 * rs6000-tdep.c (move_ev_register_func): New typedef.
7213 (e500_move_ev_register): Use it. Change return to enum
7214 register_status. Return the register's status.
7215 (do_regcache_raw_read): New function.
7216 (do_regcache_raw_write): New function.
7217 (e500_pseudo_register_read): Change return to enum
7218 register_status. Return the register's status. Use
7219 do_regcache_raw_read.
7220 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7221 (dfp_pseudo_register_read): Change return to enum register_status.
7222 Return the register's status.
7223 (vsx_pseudo_register_read): Ditto.
7224 (efpr_pseudo_register_read): Ditto.
7225 (rs6000_pseudo_register_read): Ditto.
7226 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7227 register_status. Return the register's status.
7228 * sh64-tdep.c (pseudo_register_read_portions): New function.
7229 (sh64_pseudo_register_read): Change return to enum
7230 register_status. Use pseudo_register_read_portions. Return the
7232 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7233 register_status. Return the register's status.
7234 * sh-tdep.c (pseudo_register_read_portions): New function.
7235 (sh_pseudo_register_read): Change return to enum register_status.
7236 Use pseudo_register_read_portions. Return the register's status.
7237 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7238 enum register_status. Return the register's status.
7239 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7240 * spu-tdep.c (spu_pseudo_register_read_spu)
7241 (spu_pseudo_register_read): Ditto.
7242 * xtensa-tdep.c (xtensa_register_read_masked)
7243 (xtensa_pseudo_register_read): Ditto.
7244 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7246 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7248 * python/py-value.c (valpy_getitem): Fix formatting of error function
7251 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7253 ARI fixes: Add missing internationalization markups throughout
7255 * darwin-nat-info.c: Ditto.
7258 * mi/mi-main.c: Ditto.
7260 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7262 ARI fixes: Add missing internationalization markups throughout
7265 * cp-name-parser.y: Ditto.
7268 * objc-exp.y: Ditto.
7271 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7273 ARI fixes: Messages should have no trailing new lines.
7274 * darwin-nat.c (mach_check_error): Remove trailing new line from
7275 warning function call message.
7276 * record.c (bfdcore_read): Idem for error call.
7278 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7280 * common/signals.c (target_signal_from_host): Add _ markup to error
7281 function call message.
7282 (target_signal_to_host): Add _ markup and remove trailing new line
7283 from warning call message.
7284 (target_signal_from_command): Add _ markup to error function call
7287 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7291 * python/python.c (gdbpy_write): Accept a stream argument and
7292 operate to the appropriate stream.
7293 (gdbpy_flush): Likewise.
7294 (_initialize_python): Add stream constants.
7295 (finish_python_initialization): Add GdbOutputErrorFile class.
7297 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7299 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7301 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7303 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7304 to store_signed_integer. Add debug message when relocating CALL
7305 instructions. Fix formatting of debug message.
7306 * i386-tdep.c (i386_relocate_instruction): Ditto.
7308 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7310 * target.h (struct target_ops): Remove to_lookup_symbol field.
7311 (target_lookup_symbol): Delete macro.
7312 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7313 (update_current_target, setup_target_debug): Remove handling
7314 of to_lookup_symbol target_ops field.
7315 * ada-tasks.c (get_known_tasks_addr): Remove use of
7316 target_lookup_symbol.
7317 * coffread.c (coff_symtab_read): Likewise.
7318 * dbxread.c (read_dbx_symtab): Ditto.
7320 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7323 * configure.ac: Add getthrds declaration check.
7324 * configure, config.in: Regenerate.
7325 * aix-thread.c (getthrds): Declare only if not already declared
7326 in procinfo.h. More declaration out of get_signaled_thread to
7329 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7331 * python/py-symtab.c: Populate symtab_object_methods,
7333 (stpy_is_valid): New function.
7334 (salpy_is_valid): Ditto.
7335 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7336 (sympy_is_valid): New function.
7337 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7338 (objfpy_is_valid): New function.
7339 * python/py-inferior.c: Populate inferior_object_methods.
7340 (infpy_is_valid): New function.
7341 * python/py-infthread.c: Populate thread_object_methods.
7342 (thpy_is_valid): New function.
7343 * python/py-block.c: Declare block_object_methods. Populate. Declare
7344 block_iterator_object_methods. Populate.
7345 (blpy_is_valid): New function.
7346 (blpy_iter_is_valid): Ditto.
7348 2011-03-16 Keith Seitz <keiths@redhat.com>
7350 * linespec.c (find_methods): Canonicalize NAME before looking
7352 (name_end): New function.
7353 (keep_name_info): New function.
7354 (decode_line_1): Use keep_name_info.
7355 (decode_compound): Likewise.
7356 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7357 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7360 * linespec.c (locate_first_half): Keep overload information, too.
7361 (decode_compound): Use a string to represent break characters
7363 If P points to a break character, do not increment it.
7364 For C++ and Java, keep overload information and relevant keywords.
7365 If we cannot find a symbol, search the minimal symbols.
7368 * linespec.c (decode_compound): Rename SAVED_ARG to
7370 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7372 Pass a valid block to lookup_symbol.
7373 (lookup_prefix_sym): Likewise.
7374 (find_method): Construct search name based on SYM_CLASS instead
7376 * psymtab.c (lookup_partial_symbol): Add language parameter.
7377 (lookup_symbol_aux_psymtabs): Likewise.
7378 Don't assume that the psymtab we found was the right one. Search
7379 for the desired symbol in the symtab to be certain.
7380 (psymtab_search_name): New function.
7381 (lookup_partial_symbol): Use psymtab_search_name.
7382 Add language parameter.
7383 (read_symtabs_for_function): Add language parameter and pass to
7384 lookup_partial_symbol.
7385 (find_symbol_file_from_partial): Likewise.
7387 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7390 * dwarf2read.c (noop_record_line): New function.
7391 (dwarf_decode_lines): Ignore line tables for GCd functions.
7393 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7395 Fix ARI warnings about new lines at the end of messages, which
7396 are unneeded as there is a new line added at the end of the message
7398 * darwin-nat.c (darwin_stop_inferior): Ditto.
7399 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7400 * dfp.c (decimal_to_number): Ditto.
7401 * exec.c (print_section_info): Ditto.
7402 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7403 * osdata.c (get_osdata): Ditto.
7404 * record.c (bfdcore_write): Ditto.
7405 * remote-mips.c (mips_readchar): Ditto.
7406 * remote.c (read_ptid): Ditto.
7407 * ser-mingw.c (ser_windows_raw): Ditto.
7408 * tracepoint.c (add_local_symbols): Ditto.
7409 * windows-nat.c (fake_create_process): Ditto.
7411 2011-03-16 Tom Tromey <tromey@redhat.com>
7413 * tracepoint.c (stop_tracing): Don't declare.
7414 * event-top.c (after_char_processing_hook): Add `(void)'.
7416 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7418 * NEWS: Add Parameter sub-classing description.
7420 2011-03-16 Kai Tietz <ktietz@redhat.com>
7422 * MAINTAINERS: Update my e-mail address.
7424 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7426 * MAINTAINERS: Add myself for write after approval privileges.
7428 2011-03-15 Michael Snyder <msnyder@vmware.com>
7430 * frame.c (find_frame_sal): Assert sym is not null.
7432 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7434 * objc-lang.c (selectors_info): Check strchr for null result.
7436 * stabsread.c (define_symbol): Guard against bad stabstring input.
7438 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7440 Remove trailing spaces and tabulations from pascal language
7445 p-valprint.c: Ditto.
7447 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7449 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7450 than LOW. Comment it.
7451 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7452 HIGHPC not strictly higher than LOWPC.
7454 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7456 Fix formatting of function declarations returning a pointer in
7458 * varobj.c (varobj_add_child): Ditto.
7459 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7460 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7462 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7464 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7465 for the "generic" vector ABI used with GCC 4.3 and later.
7466 (ppc64_sysv_abi_return_value): Likewise.
7468 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7470 * infcall.c (call_function_by_hand): Function return value is
7471 always a non_lval, even when using struct_return.
7473 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7475 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7476 (map_display_numbers): New.
7477 (do_delete_display): New.
7478 (undisplay_command): Use map_display_numbers.
7479 (do_enable_disable_display): New.
7480 (enable_disable_display_command): New function.
7481 (enable_display): Delete.
7482 (enable_display_command): New.
7483 (disable_display_command): Reimplement.
7484 (_initialize_printcmd): Adjust "enable display" command to use
7485 `enable_display_command' as callback.
7487 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7489 * NEWS: Add Python breakpoint 'stop' operation.
7491 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7493 * NEWS: Delete duplicate entry. Fix typo.
7495 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7497 Fix ARI warning about function names in first column.
7498 Put prototype declaration on same line as return type.
7499 * objc-exp.y: Ditto.
7501 * python/py-stopevent.h: Ditto.
7502 For long function names, split parameters to
7503 allow function name on same line as return type.
7504 * solib-pa64.c: Ditto.
7507 For long function declaration, use single line.
7508 * hppa-tdep.h: Ditto.
7509 * inferior.h: Ditto.
7511 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7513 * python/python.h: Declare gdbpy_should_stop and
7514 gdbpy_breakpoint_has_py_cond.
7515 * python/python.c: Add python.h to includes. Remove python.h from
7516 HAVE_PYTHON definition
7517 (gdbpy_should_stop): New dummy function.
7518 (gdbpy_breakpoint_has_py_cond): New dummy function.
7519 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7520 sub-classing capabilities.
7521 (gdbpy_should_stop): New function.
7522 (gdbpy_breakpoint_has_py_cond): New function.
7523 (local_setattro): New function.
7524 * breakpoint.c (condition_command): Add check for Python 'stop'
7526 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7527 operation function as part of stop/continue tests.
7529 2011-03-14 Tom Tromey <tromey@redhat.com>
7532 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7533 (needs_frame_dwarf_call): Likewise.
7535 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7537 Fix ARI warning about functions without parameters that do not
7539 * breakpoint.c (all_tracepoints): Replace () by (void).
7540 * f-exp.y (match_string_literal): Ditto.
7542 * m2-exp.y (yylex): Ditto.
7543 * mep-tdep.c (current_me_module): Ditto.
7544 (current_options): Ditto.
7545 (current_cop_data_bus_width): Ditto.
7546 (current_cr_names): Ditto.
7547 (current_cr_is_float): Ditto.
7548 (current_ccr_names): Ditto.
7549 * objc-exp.y (yylex): Ditto.
7550 * p-exp.y (yylex): Ditto.
7551 * remote.c (send_interrupt_sequence): Ditto.
7552 * tracepoint.c (current_trace_status): Ditto.
7553 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7554 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7556 2011-03-11 Michael Snyder <msnyder@vmware.com>
7558 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7559 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7560 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7561 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7562 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7564 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7565 (delete_async_event_handler): Ditto.
7567 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7569 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7571 * top.c (set_verbose): Assert showcmd was found.
7573 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7575 * xtensa-tdep.c (warning_once): Correct style issues.
7577 2011-03-11 Yao Qi <yao@codesourcery.com>
7579 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7581 2011-03-11 Andreas Schwab <schwab@redhat.com>
7583 * common/aclocal.m4: Remove.
7585 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7587 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7588 (xtensa_write_register, xtensa_read_register): Likewise.
7589 (xtensa_hextochar): Removed.
7590 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7592 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7594 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7595 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7596 (xtensa_alloc_frame_cache): Add initialization for new fields.
7597 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7598 (warning_once): New function.
7599 (xtensa_insn_kind): New item c0opc_and.
7600 (call0_classify_opcode): Add the case for AND instruction.
7601 (call0_track_op): Change arguments. New local variable litbase.
7602 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7603 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7605 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7606 (call0_analyze_prologue): Update the comments. Change arguments.
7607 Add the variety of updates to handle extended prologues, which now can
7608 conduct dynamic stack adjustments.
7609 (call0_frame_cache): Likewise.
7610 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7611 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7613 2011-03-10 Michael Snyder <msnyder@vmware.com>
7615 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7616 (cmd_qtframe): Ditto.
7617 (cmd_qtbuffer): Ditto.
7618 (cmd_bigqtbuffer): Ditto.
7620 2011-03-10 Tom Tromey <tromey@redhat.com>
7622 * tracepoint.c (trace_actions_command): Update.
7623 * thread.c (thread_apply_command): Update.
7624 * reverse.c (delete_bookmark_command): Update.
7625 (bookmarks_info): Update.
7626 * printcmd.c (undisplay_command): Update.
7627 * memattr.c (mem_enable_command): Update.
7628 (mem_disable_command): Update.
7629 (mem_delete_command): Update.
7630 * inferior.c (detach_inferior_command): Update.
7631 (kill_inferior_command): Update.
7632 (remove_inferior_command): Update.
7633 * cli/cli-utils.h (struct get_number_or_range_state): New.
7634 (init_number_or_range): Declare.
7635 (get_number_or_range): Update.
7636 * cli/cli-utils.c (init_number_or_range): New function.
7637 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7639 (number_is_in_list): Update.
7640 * breakpoint.h (get_tracepoint_by_number): Update.
7641 * breakpoint.c (map_breakpoint_numbers): Update for change to
7642 get_number_or_range.
7643 (find_location_by_number): Use get_number, not
7644 get_number_or_range.
7645 (trace_pass_set_count): New function.
7646 (trace_pass_command): Update for change to get_number_or_range.
7648 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7651 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7653 * python/py-param.c (add_setshow_generic): Add set/show callback
7654 parameters. Register Python object context.
7655 (get_show_value): New function.
7656 (get_set_value): New function.
7657 (call_doc_function): New function.
7658 (get_doc_string): Move behind get_show_value/get_set_value.
7660 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7662 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7664 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7666 * xtensa-tdep.c (xtensa_read_register): Add comment.
7667 (xtensa_write_register): Likewise.
7668 (xtensa_hextochar): Add comment and update to match coding conventions.
7669 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7670 (execute_l32e, execute_s32e, execute_code): Update comments.
7671 (xtensa_exception_handler_t): Update to match coding conventions.
7672 (xtensa_insn_kind): Likewise.
7674 2011-03-09 Michael Snyder <msnyder@vmware.com>
7676 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7678 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7680 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7682 2011-03-09 Tom Tromey <tromey@redhat.com>
7684 * thread.c (restore_selected_frame): Handle frame_level == -1.
7685 (make_cleanup_restore_current_thread): Use
7686 get_selected_frame_if_set.
7687 * frame.h (get_selected_frame_if_set): Declare.
7688 * frame.c (get_selected_frame_if_set): New function.
7690 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7692 * cli/cli-cmds.c (shell_escape): Use lbasename.
7693 * coffread.c (coff_start_symtab): Constify parameter.
7694 (complete_symtab): Constify `name' parameter.
7695 (coff_symtab_read): Constify `filestring' local.
7696 (coff_getfilename): Constify return and `result' local.
7698 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7699 * linux-fork.c (info_checkpoints_command): Use lbasename.
7700 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7701 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7702 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7703 * procfs.c (procfs_make_note_section): Use lbasename.
7704 * tui/tui-io.c (printable_part): Constity return and parameter.
7706 (print_filename): Constify parameters, and local `s'.
7707 (tui_rl_display_match_list): Constify local `temp'.
7709 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7712 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7713 Fix DWARF-3+ DW_AT_accessibility default assumption.
7714 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7715 cu->header.version >= 3.
7717 2011-03-09 Yao Qi <yao@codesourcery.com>
7719 * common/Makefile.in: Remove.
7720 * common/configure: Remove.
7721 * common/configure.ac: Remove.
7723 2011-03-09 Yao Qi <yao@codesourcery.com>
7726 2011-02-11 Yao Qi <yao@codesourcery.com>
7728 * common/Makefile.in: Add copyright header.
7730 2011-02-11 Yao Qi <yao@codesourcery.com>
7732 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7734 * configure.ac: Add common to sub dir.
7735 * configure: Regenerate.
7737 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7739 * xtensa-tdep.c (call0_ret): New function.
7740 (xtensa_skip_prologue): Speed up analysis.
7742 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7744 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7745 while executing MI command -data-list-changed-registers.
7747 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7749 * xtensa-tdep.c (xtensa_read_register): New function.
7750 (xtensa_write_register): New function.
7751 (xtensa_find_register_by_name): New function.
7752 (xtensa_windowed_frame_cache): Update comments in type description.
7753 (xtensa_frame_cache): Likewise.
7754 (xtensa_window_interrupt_insn): New function.
7755 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7756 (xtensa_insn_kind): Add new instructions.
7757 (rwx_special_register): New function.
7758 (call0_classify_opcode): Add new instructions to the analysis.
7759 (a0_saved, a7_saved, a11_saved): New variables.
7760 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7761 (execute_l32e): New function.
7762 (execute_s32e): New function.
7763 (xtensa_exception_handler_t): New type.
7764 (execute_code): New function.
7765 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7766 analysis for Xtensa Window Exception handlers.
7768 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7770 * xtensa-tdep.c (TX_PS): New.
7771 (windowing_enabled): Update to count for Call0 ABI.
7772 (xtensa_hextochar): New.
7773 (xtensa_init_reggroups): Make algorithm generic.
7774 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7776 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7778 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7780 2011-03-08 Michael Snyder <msnyder@vmware.com>
7782 * i386-tdep.c (i386_follow_jump): Check return value of
7784 (i386_analyze_struct_return): Ditto.
7785 (i386_skip_probe): Ditto.
7786 (i386_match_insn): Ditto.
7787 (i386_skip_noop): Ditto.
7788 (i386_analyze_frame_setup): Ditto.
7789 (i386_analyze_register_saves): Ditto.
7790 (i386_skip_prologue): Ditto.
7791 (i386_skip_main_prologue): Ditto.
7793 * target.c (read_whatever_is_readable): Fix memory leak.
7795 * i386-tdep.c (i386_process_record): Document fall through.
7797 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7799 Fix DWARF-3+ DW_AT_accessibility default assumption.
7800 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7801 cu->header.version >= 3.
7803 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7805 * remote.c (remote_check_symbols): Skip if the target has no
7808 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7810 * target.c (read_whatever_is_readable): Reformat comment,
7811 with a minor typo fix. Minor reformatting of the code.
7813 2011-03-08 Yao Qi <yao@codesourcery.com>
7815 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7816 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7817 Use cached result instead of calling displaced_in_arm_mode again.
7818 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7819 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7820 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7821 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7822 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7823 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7824 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7825 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7826 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7827 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7828 (arm_catch_kernel_helper_return): Likewise.
7829 * gdb/arm-tdep.h : Update function declarations.
7831 2011-03-07 Michael Snyder <msnyder@vmware.com>
7833 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7835 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7837 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7839 * elfread.c (elf_symtab_read): Stop memory leak.
7841 * main.c (captured_main): Fix memory leak.
7843 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7845 * ada-lang.c (compare_names): Call is_name_suffix with string1
7848 2011-03-07 Tom Tromey <tromey@redhat.com>
7850 * xcoffread.c (xcoff_sym_fns): Update.
7851 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7852 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7853 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7854 (symbol_file_add_with_addrs_or_offsets): Likewise.
7855 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7856 * somread.c (som_sym_fns): Update.
7857 * psymtab.h (require_partial_symbols): Declare.
7858 * psymtab.c (require_partial_symbols): New function.
7859 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7860 (ALL_OBJFILE_PSYMTABS): Undef.
7861 (ALL_PSYMTABS): Move from psympriv.h.
7862 (lookup_partial_symtab, find_pc_sect_psymtab)
7863 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7864 (find_last_source_symtab_from_partial)
7865 (forget_cached_source_info_partial)
7866 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7867 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7868 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7869 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7870 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7871 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7872 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7873 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7874 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7876 * mipsread.c (ecoff_sym_fns): Update.
7877 * machoread.c (macho_sym_fns): Update.
7878 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7879 (read_psyms): New function.
7880 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7881 (elf_sym_fns_lazy_psyms): New global.
7882 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7883 dwarf2_build_psymtabs.
7884 * dbxread.c (aout_sym_fns): Update.
7885 * coffread.c (coff_sym_fns): Update.
7887 2011-03-07 Tom Tromey <tromey@redhat.com>
7889 * infrun.c (print_exited_reason): Include inferior id and pid in
7892 2011-03-07 Tom Tromey <tromey@redhat.com>
7894 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7896 (target_has_execution_1): Update.
7897 (target_has_execution_current): Declare.
7898 (target_has_execution): Call target_has_execution_current.
7899 (default_child_has_execution): Update.
7900 * target.c (default_child_has_execution): Add 'the_ptid'
7902 (target_has_execution_1): Likewise.
7903 (target_has_execution_current): New function.
7904 (add_target): Update.
7905 (init_dummy_target): Update.
7906 * remote-m32r-sdi.c (m32r_has_execution): New function.
7907 (init_m32r_ops): Use it.
7908 * record.c (record_core_has_execution): Now static. Add
7909 'the_ptid' parameter.
7910 * inferior.c (have_live_inferiors): Don't save current thread.
7911 Use target_has_execution_1.
7913 2011-03-07 Yao Qi <yao@codesourcery.com>
7915 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7917 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7919 * elfread.c (elf_symtab_read): Minor reformatting.
7921 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7923 * objc-lang.c (selectors_info): Minor reformatting.
7925 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7927 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7929 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7930 Michael Snyder <msnyder@vmware.com>
7932 * ada-valprint.c (ada_val_print_array): Move the declaration of
7933 "byte_order" and "elttype" inside the block where these variables
7934 are actually used. Remove some special handling for the case
7935 where "elttype" and "eltlen" are null. Replace by a comment
7936 and a couple of assertion checks.
7938 2011-03-05 Michael Snyder <msnyder@vmware.com>
7940 * source.c (add_path): Replace semicolon at end of block.
7941 * dwarf2expr.c (execute_stack_op): Ditto.
7943 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7945 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7946 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7947 (bfin-*-*): Likewise.
7949 2011-03-05 Michael Snyder <msnyder@vmware.com>
7951 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7952 * mdebugread.c (parse_symbol): Ditto.
7953 * parse.c (parse_exp_in_context): Ditto.
7954 * source.c (add_path): Ditto.
7955 * utils.c (gnu_debuglink_crc32): Ditto.
7956 * varobj.c (variable_language): Ditto.
7958 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7960 2011-03-04 Michael Snyder <msnyder@vmware.com>
7962 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7964 * symfile.c (simple_overlay_update): Check for null return value
7965 from lookup_minimal_symbol.
7967 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7969 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7971 * eval.c (parse_and_eval_address_1): Remove function.
7972 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7973 instead of parse_and_eval_address_1.
7974 * value.h (parse_and_eval_address_1): Remove prototype.
7976 2011-03-04 Michael Snyder <msnyder@vmware.com>
7978 * remote.c (putpkt_binary): Document that case stmt falls through.
7980 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7982 * breakpointc (print_it_typical): Move NULL check from here...
7983 (print_bp_stop_message): ... to here.
7985 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7987 * breakpoint.c (enable_command): Use break instead of continue,
7988 and fill in a missing break.
7989 (disable_command): Ditto.
7991 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7993 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7994 (terminal_save_ours): Remove misleading comment.
7995 (inflow_inferior_data_cleanup): Free ttystate.
7996 (inflow_inferior_exit): Likewise.
7997 (copy_terminal_info): Copy ttystate.
7999 * serial.c (serial_copy_tty_state): New function.
8000 * serial.h (serial_copy_tty_state): Add prototype.
8001 (struct serial_ops): Add copy_tty_state callback.
8002 * ser-base.c (ser_base_copy_tty_state): New function.
8003 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8004 * ser-go32.c (dos_copy_tty_state): New function.
8005 (dos_ops): Install copy_tty_state callback.
8006 * ser-mingw.c (_initialize_ser_windows): Likewise.
8007 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8008 * ser-unix.c (hardwire_copy_tty_state): New function.
8009 (_initialize_ser_hardwire): Install it.
8011 2011-03-04 Michael Snyder <msnyder@vmware.com>
8013 * breakpoint.c (create_breakpoint): Add missing break statement.
8015 Reverting this patch:
8016 * infcall.c (call_function_by_hand): Add break statements for lint.
8018 Reverting this patch:
8019 * cli/cli-script.c (script_from_file): Add break for lint.
8021 2011-03-04 Michael Snyder <msnyder@vmware.com>
8023 * solib.c (reload_shared_libraries_1): Close memory leak.
8025 2011-03-03 Tom Tromey <tromey@redhat.com>
8028 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8031 2011-03-03 Michael Snyder <msnyder@vmware.com>
8033 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8034 fields of struct 'st' to zero.
8036 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8037 sal.pspace before calling set_current_source_symtab_and_line.
8039 2011-03-03 Yao Qi <yao@codesourcery.com>
8041 * Makefile.in (configure-common): Remove. Let Makefile
8042 in dir common to rebuild itself.
8043 (common/Makefile): Likewise.
8045 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8047 * utils.c (parse_escape): Add i18n markup in error message.
8049 2011-03-03 Yao Qi <yao@codesourcery.com>
8051 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8053 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8054 (displaced_write_reg, displaced_read_reg): Likewise.
8055 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8056 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8057 (cleanup_branch): Replace magic number 14 and 15 with
8058 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8060 2011-03-02 Michael Snyder <msnyder@vmware.com>
8062 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8064 * cli/cli-script.c (script_from_file): Add break for lint.
8066 * mdebugread.c (parse_partial_symbols): Fix indent.
8068 * target-descriptions.c (tdesc_gdb_type): No need to call
8069 xstrdup, callee saves a copy.
8071 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8073 * infcall.c (call_function_by_hand): Add break statements for lint.
8075 * utils.c (parse_escape): Escape the escape char.
8077 * python/py-inferior.c (build_inferior_list): Error out if
8078 PyList_Append fails.
8079 (gdbpy_inferiors): Error out if build_inferior_list fails.
8081 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8084 * record.c (record_restore): Move printf to before error return.
8086 2011-03-02 Yao Qi <yao@codesourcery.com>
8088 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8089 is_thumb and insn_size.
8090 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8091 on both ARM and Thumb mode.
8092 (arm_process_displaced_insn): Set is_thumb and insn_size.
8093 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8094 (arm_displaced_step_fixup): Likewise.
8096 2011-03-01 Michael Snyder <msnyder@vmware.com>
8098 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8100 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8102 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8104 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8106 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8109 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8110 which shadows function parameter.
8112 * tracepoint.c (create_tsv_from_upload): Superfluous call
8113 to xstrdup. Callee already calls xstrdup.
8115 * linespec.c (decode_line_1): Remove unnecessary null check.
8117 * tracepoint.c (scope_info): Fix mem leak, remove underused
8120 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8121 superfluous null check.
8123 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8124 (value_of_builtin_frame_fp_reg): Ditto.
8126 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8128 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8131 * linespec.c (decode_line_1): Check for null before dereference.
8133 * reverse.c (record_restore): Move null-check to before pointer
8136 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8138 * objc-lang.c (selectors_info): Add explanitory comment.
8139 (classes_info): Ditto.
8141 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8143 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8144 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8145 versions of the trampoline. Handle Thumb vs. ARM addresses.
8146 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8147 (arm_linux_init_abi): Install it.
8148 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8149 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8151 2011-02-28 Michael Snyder <msnyder@vmware.com>
8153 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8154 a little bigger, to avoid possibility of an overflow.
8156 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8157 buffers a little bigger, to avoid possibility of an overflow.
8159 * coffread.c (coff_getfilename): Add check to avoid overflow.
8161 * objc-lang.c (selectors_info): Add a small safety margin to
8163 (classes_info): Error out on too long REGEXP.
8165 * infrun.c (handle_inferior_event): Remove unused function call.
8167 * fork-child.c (fork_inferior): Remove ifdef'd code and
8170 * linux-thread-db.c (attach_thread): Discard unused value.
8172 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8174 * remote.c (remote_get_noisy_reply): Discard unused value.
8175 (remote_vcont_resume): Ditto.
8176 (remote_stop_ns): Ditto.
8178 * linespec.c (decode_objc): Delete unused variable.
8180 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8182 * dwarf2read.c (add_partial_symbol): Discard unused values.
8183 (read_base_type): Delete unused variable.
8185 * dbxread.c (read_dbx_symtab): Discard unused value.
8187 * eval.c (evaluate_subexp_standard): Delete unused variable,
8188 and discard unused values.
8190 * infcmd.c (_initialize_infcmd): Discard unused values.
8192 * stabsread.c (rs6000_builtin_type): Missing break statement.
8194 * dbxread.c (process_one_symbol): Discard unused value.
8196 * coffread.c (coff_end_symtab): Delete unused variable.
8198 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8199 (dwarf2_add_typedef): Delete unused variable.
8200 (read_namespace): Ditto.
8201 (dwarf_decode_macros): Ditto.
8203 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8205 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8207 * p-valprint.c (pascal_val_print): Discard unused value.
8209 * utils.c (nquery): Call va_end before return;
8213 * proc-service.c (ps_plog): Call va_end before return.
8215 2011-02-28 Tom Tromey <tromey@redhat.com>
8217 * python/python.c (gdbpy_value_cst): New global.
8218 (_initialize_python): Initialize it.
8219 * python/python-internal.h (gdbpy_value_cst): Declare.
8220 * python/py-value.c (convert_value_from_python): Use
8223 2011-02-28 Michael Snyder <msnyder@vmware.com>
8225 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8227 * breakpoint.c (catch_syscall_completer): Free malloced list.
8229 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8231 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8232 (lval_func_check_synthetic_pointer): Ditto.
8233 (lval_func_free_closure): Fix use-after-free.
8235 2011-02-28 Tom Tromey <tromey@redhat.com>
8237 * psymtab.c (expand_partial_symbol_tables): Use
8238 ALL_OBJFILE_PSYMTABS.
8240 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8242 * objc-lang.c (selectors_info): Error on too long REGEXP.
8244 2011-02-28 Michael Snyder <msnyder@vmware.com>
8246 * python/py-param.c (set_parameter_value): Add missing
8249 * linux-record.c (record_linux_system_call): Add missing
8252 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8254 * breakpoint.c (print_one_breakpoint_location): Remove unused
8255 argument PRINT_ADDRESS_BITS. Update callers.
8256 (print_one_breakpoint): Likewise.
8258 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8260 * breakpoint.c (wrap_indent_at_field): New function.
8261 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8262 Allocate ui_stream locally instead of using STB argument.
8263 (print_one_breakpoint_location): Update call.
8264 * ui-out.c (ui_out_query_field): New function.
8265 * ui-out.h (ui_out_query_field): Add prototype.
8267 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8269 From Michael Snyder <msnyder@vmware.com>
8270 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8272 2011-02-27 Michael Snyder <msnyder@vmware.com>
8274 * objc-lang.c (selectors_info): Prevent string overrun.
8276 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8279 * symtab.c (rbreak_command): Move variable 'file_name' to
8282 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8283 param with a local variable of the same name.
8285 2011-02-27 Michael Snyder <msnyder@vmware.com>
8287 * value.c (value_from_history_ref): New function.
8288 * value.h (value_from_history_ref): Export.
8289 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8290 to parse value history references.
8291 * cli/cli-utils.h (get_number_trailer): Update comment.
8293 2011-02-27 Michael Snyder <msnyder@vmware.com>
8295 * inferior.c (detach_inferior_command): Use get_number_or_range.
8296 (kill_inferior_command): Ditto.
8297 (remove_inferior_command): Ditto.
8298 (initialize_inferiors): Make command names plural.
8299 Update help strings.
8301 2011-02-27 Michael Snyder <msnyder@vmware.com>
8303 * darwin-nat-info.c: Fix comment typo.
8304 * dwarf2expr.h: Ditto.
8305 * fbsd-nat.c: Ditto.
8306 * fbsd-nat.h: Ditto.
8307 * frame-unwind.h: Ditto.
8309 * hppa-hpux-tdep.c: Ditto.
8310 * i386-linux-nat.c: Ditto.
8311 * linux-nat.c: Ditto.
8312 * nbsd-nat.c: Ditto.
8313 * nbsd-nat.h: Ditto.
8314 * ppc-linux-tdep.c: Ditto.
8317 * tui/tui-winsource.c: Ditto.
8319 2011-02-26 Michael Snyder <msnyder@vmware.com>
8321 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8323 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8325 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8326 with a local variable of the same name.
8328 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8329 param with a local variable of the same name.
8330 (i387_supply_xsave): Ditto.
8332 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8333 that it does not shadow a function parameter.
8335 * i386-nat.c (i386_length_and_rw_bits): Document that case
8336 statement is meant to fall through.
8338 * expprint.c (dump_subexp_body_standard): Document that case
8339 statement is meant to fall through.
8341 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8342 dead if statement. Condition can't be false.
8344 2011-02-25 Michael Snyder <msnyder@vmware.com>
8346 * arm-tdep.c: Fix typos in comments.
8347 * bsd-uthread.c: Ditto.
8348 * completer.c: Ditto.
8350 * cp-namespace.c: Ditto.
8351 * cp-support.c: Ditto.
8352 * cris-tdep.c: Ditto.
8354 * dwarf2read.c: Ditto.
8356 * gdbtypes.h: Ditto.
8357 * inferior.h: Ditto.
8358 * mdebugread.c: Ditto.
8359 * mips-tdep.c: Ditto.
8360 * ppc-linux-nat.c: Ditto.
8361 * ppc-linux-tdep.c: Ditto.
8362 * printcmd.c: Ditto.
8363 * sol-thread.c: Ditto.
8364 * solib-frv.c: Ditto.
8366 * sparc64-tdep.c: Ditto.
8367 * spu-tdep.c: Ditto.
8368 * stabsread.c: Ditto.
8373 * python/py-block.c: Ditto.
8374 * python/py-symbol.c: Ditto.
8375 * python/py-symtab.c: Ditto.
8376 * python/py-value.c: Ditto.
8377 * tui/tui-win.c: Ditto.
8379 2011-02-25 Michael Snyder <msnyder@vmware.com>
8381 * inferior.c (print_inferior): Accept a string instead of an int
8382 for requested_inferiors, and use get_number_or_range to parse it.
8383 (info_inferiors_command): Pass args string to print_inferior.
8384 (initialize_inferiors): Change help string for info inferiors.
8385 * inferior.h (print_inferior): Export prototype change.
8387 2011-02-25 Tom Tromey <tromey@redhat.com>
8389 * common/ax.def (invalid2): Set to 0x31.
8391 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8393 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8395 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8397 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8399 2011-02-24 Michael Snyder <msnyder@vmware.com>
8401 * Makefile.in (clean): Make clean should remove generated files
8402 observer.h and observer.inc.
8404 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8406 Revert the following patch (not approved yet):
8407 2011-02-21 Hui Zhu <teawater@gmail.com>
8408 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8409 * ax-gdb.c (gen_printf_expr_callback): New function.
8410 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8411 * ax-general.c (ax_memcpy): New function.
8412 (ax_print): Handle "printf".
8414 * ax.h (ax_memcpy): Forward declare.
8415 * common/ax.def (invalid2): Removed.
8416 (printf): New entry.
8417 * printcmd.c (printcmd.h): New include.
8418 (string_printf): New function.
8419 (ui_printf): Removed.
8420 (printf_command): Remove static. Call string_printf.
8421 (eval_command): Call string_printf.
8422 * printcmd.h: New file.
8423 * tracepoint.c (validate_actionline,
8424 encode_actions_1): handle printf_command.
8426 2011-02-23 Tom Tromey <tromey@redhat.com>
8428 * ax-general.c (ax_pick): Add missing newline.
8430 2011-02-23 Michael Snyder <msnyder@vmware.com>
8432 * breakpoint.c (breakpoint_1): Change first argument from an int
8433 to a char pointer, so that the function now accepts a list of
8434 breakpoints rather than just one. Use new function
8435 'number_is_in_list' to implement.
8436 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8437 (watchpoints_info): Ditto.
8438 (tracepoints_info): Ditto.
8439 (maintenance_info_breakpoints): Ditto.
8440 (_initialize_breakpoint): Update help strings to reflect the fact
8441 that these functions can now take more than one argument.
8442 * cli/cli-utils.c (number_is_in_list): New function.
8443 * cli/cli-utils.h (number_is_in_list): Export.
8445 2011-02-23 Michael Snyder <msnyder@vmware.com>
8447 * memattr.c (mem_enable_command): Use get_number_or_range.
8448 (mem_disable_command): Ditto.
8449 (mem_delete_command): Ditto.
8450 (_initialize_mem): Tweak usage message to reflect multiple
8453 2011-02-22 Doug Evans <dje@google.com>
8455 Add gdb.lookup_global_symbol python function.
8457 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8458 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8459 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8461 2011-02-22 Tom Tromey <tromey@redhat.com>
8463 * language.c (language_class_name_from_physname): Rename
8464 'curr_language' argument to 'lang'; use in body.
8466 2011-02-22 Michael Snyder <msnyder@vmware.com>
8468 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8470 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8472 * frame-unwind.h: Fix comment to mention the this frame, not the
8475 2011-02-22 Tom Tromey <tromey@redhat.com>
8477 * symfile.c (auto_solib_limit): Remove.
8478 * symfile.h (auto_solib_limit): Remove.
8480 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8482 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8484 2011-02-21 Michael Snyder <msnyder@vmware.com>
8486 * gdbthread.h (print_thread_info): Change prototype.
8487 * thread.c (print_thread_info): Accept char* instead of int for
8488 requested_threads argument. Use new function number_is_in_list
8489 to determine which threads to list.
8490 (info_threads_command): Pass char* to print_thread_info.
8491 * cli/cli-utils.c (number_is_in_list): New function.
8492 * cli/cli-utils.h (number_is_in_list): Export.
8493 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8495 (print_one_inferior): Ditto.
8496 (mi_cmd_list_thread_groups): Ditto.
8498 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 * common/Makefile.in (CFLAGS): New.
8501 (COMPILE): Add $(CFLAGS).
8503 2011-02-21 Tom Tromey <tromey@redhat.com>
8505 * breakpoint.c (catch_syscall_command_1): Fix typo.
8507 2011-02-21 Tom Tromey <tromey@redhat.com>
8509 * reverse.c: Include cli-utils.h.
8510 * printcmd.c: Include cli-utils.h.
8511 (string_printf): Use skip_spaces.
8512 * cli/cli-utils.h: New file.
8513 * cli/cli-utils.c: New file.
8514 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8515 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8516 * breakpoint.h (get_number, get_number_or_range): Move to
8518 * breakpoint.c: Include cli-utils.h.
8519 (get_number_trailer, get_number, get_number_or_range)
8520 (ep_skip_leading_whitespace): Move to cli-utils.c.
8521 (create_breakpoint_sal, find_condition_and_thread)
8522 (decode_static_tracepoint_spec, watch_command_1)
8523 (watch_maybe_just_location, ep_parse_optional_if_clause)
8524 (catch_fork_command_1, catch_exec_command_1)
8525 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8526 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8527 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8528 (HFILES_NO_SRCDIR): Add cli-utils.h.
8529 (cli-utils.o): New target.
8531 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8533 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8534 before calling discard_all_inferiors.
8536 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8538 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8539 (struct builtin_opencl_type): Remove.
8540 (builtin_opencl_type): Change return type to "struct type **".
8541 (lookup_opencl_vector_type): Update caller.
8542 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8543 (build_opencl_types): Install plain array of "struct type *"
8544 instead of "struct builtin_opencl_type".
8546 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8547 Ulrich Weigand <uweigand@de.ibm.com>
8549 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8550 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8551 (struct arm_linux_hwbp_cap): New type.
8552 (arm_linux_get_hwbp_cap): New function.
8553 (arm_linux_get_hw_breakpoint_count): Likewise.
8554 (arm_linux_get_hw_watchpoint_count): Likewise.
8555 (arm_linux_can_use_hw_breakpoint): Likewise.
8556 (arm_hwbp_type): New type.
8557 (arm_hwbp_control_t): Likewise.
8558 (struct arm_linux_hw_breakpoint): Likewise.
8559 (struct arm_linux_thread_points): Likewise.
8560 (arm_threads): New global variable.
8561 (arm_linux_find_breakpoints_by_tid): New function.
8562 (arm_hwbp_control_initialize): Likewise.
8563 (arm_hwbp_control_is_enabled): Likewise.
8564 (arm_hwbp_control_disable): Likewise.
8565 (arm_linux_hw_breakpoint_initialize): Likewise.
8566 (arm_linux_get_hwbp_type): Likewise.
8567 (arm_linux_hw_watchpoint_initialize): Likewise.
8568 (arm_linux_hw_breakpoint_equal): Likewise.
8569 (arm_linux_insert_hw_breakpoint1): Likewise.
8570 (arm_linux_remove_hw_breakpoint1): Likewise.
8571 (arm_linux_insert_hw_breakpoint): Likewise.
8572 (arm_linux_remove_hw_breakpoint): Likewise.
8573 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8574 (arm_linux_insert_watchpoint): Likewise.
8575 (arm_linux_remove_watchpoint): Likewise.
8576 (arm_linux_stopped_data_address): Likewise.
8577 (arm_linux_stopped_by_watchpoint): Likewise.
8578 (arm_linux_watchpoint_addr_within_range): Likewise.
8579 (arm_linux_new_thread): Likewise.
8580 (arm_linux_thread_exit): Likewise.
8581 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8582 related target callbacks. Register arm_linux_new_thread and
8583 arm_linux_thread_exit.
8584 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8585 * arm-tdep.c (arm_pc_is_thumb): Make global.
8586 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8588 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8590 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8591 per-frame locations while within a function epilogue.
8593 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8595 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8596 to GNU coding standards.
8598 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8600 Allow use of mingw native on Windows 95 OS.
8601 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8602 (ser_windows_close): Only call CancelIo if function exists.
8603 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8604 to check for existence of CancelIo function in kernel32 DLL.
8606 2011-02-21 Hui Zhu <teawater@gmail.com>
8608 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8609 * ax-gdb.c (gen_printf_expr_callback): New function.
8610 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8611 * ax-general.c (ax_memcpy): New function.
8612 (ax_print): Handle "printf".
8614 * ax.h (ax_memcpy): Forward declare.
8615 * common/ax.def (invalid2): Removed.
8616 (printf): New entry.
8617 * printcmd.c (printcmd.h): New include.
8618 (string_printf): New function.
8619 (ui_printf): Removed.
8620 (printf_command): Remove static. Call string_printf.
8621 (eval_command): Call string_printf.
8622 * printcmd.h: New file.
8623 * tracepoint.c (validate_actionline,
8624 encode_actions_1): handle printf_command.
8626 2011-02-19 Michael Snyder <msnyder@vmware.com>
8628 * reverse.c (delete_one_bookmark): Argument is now bookmark
8629 id rather than pointer to bookmark struct.
8630 (delete_bookmark_command): Use get_number_or_range.
8631 (goto_bookmark_command): Parse with get_number instead of strtoul.
8632 (bookmark_1): New function. Print info for one bookmark.
8633 (bookmarks_info): Use get_number_or_range and bookmark_1.
8635 2011-02-18 Michael Snyder <msnyder@vmware.com>
8637 * thread.c (info_threads_command): Re-implement using
8638 get_number_or_range.
8639 (thread_apply_command): Ditto.
8641 2011-02-18 Tom Tromey <tromey@redhat.com>
8643 * common/ax.def: New file.
8644 * ax.h (enum agent_op): Use ax.def.
8645 * ax-general.c (aop_map): Use ax.def.
8647 2011-02-18 Tom Tromey <tromey@redhat.com>
8649 * ax-general.c (aop_map): Add pick and rot.
8650 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8651 <DW_OP_rot>: Implement.
8652 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8654 * ax-general.c (ax_pick): New function.
8656 2011-02-18 Tom Tromey <tromey@redhat.com>
8658 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8660 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8661 Tom Tromey <tromey@redhat.com>
8663 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8664 make_symbol_overload_list_block with NULL BLOCK.
8665 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8667 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8669 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8670 * breakpoint.h (get_number_or_range): Declare.
8671 * printcmd.c (ALL_DISPLAYS): Declare.
8672 (delete_display): Reimplement taking a display pointer.
8673 (undisplay_command): Accept a range of displays to delete, using
8674 get_number_or_range.
8676 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8678 * c-valprint.c (c_val_print): Add embedded_offset to address
8679 for arrays of unspecified length.
8680 * p-valprint.c (pascal_val_print): Likewise.
8682 2011-02-18 Yao Qi <yao@codesourcery.com>
8684 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8685 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8686 (thumb_process_displaced_insn): New.
8687 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8688 call to arm_process_displaced_insn.
8689 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8691 2011-02-17 Tom Tromey <tromey@redhat.com>
8693 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8694 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8695 compile_dwarf_to_ax. No longer static. Call
8696 dwarf2_compile_cfa_to_ax.
8697 (locexpr_tracepoint_var_ref): Update.
8698 (loclist_tracepoint_var_ref): Update.
8699 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8700 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8701 argument; add 'gdbarch' and 'pc'.
8702 (dwarf2_compile_cfa_to_ax): New function.
8703 (dwarf2_frame_cache): Update.
8705 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8707 * ada-lang.c (ada_type_of_array): Fix the size of the array
8708 in the case of an unconstrained packed array.
8710 2011-02-17 Yao Qi <yao@codesourcery.com>
8712 * common/Makefile.in: Add more targets for make.
8714 2011-02-16 Tom Tromey <tromey@redhat.com>
8716 * dwarf2loc.c (unimplemented): Fix typo.
8718 2011-02-16 Tom Tromey <tromey@redhat.com>
8720 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8721 (compile_dwarf_to_ax) <default>: Use unimplemented.
8722 <DW_OP_deref>: Update.
8723 (disassemble_dwarf_expression): Update.
8724 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8725 (decode_locdesc): Update.
8726 * dwarf2expr.h (dwarf_stack_op_name): Update.
8728 2011-02-16 Tom Tromey <tromey@redhat.com>
8730 * ax.h (struct aop_map) <name>: Now const.
8732 2011-02-16 Tom Tromey <tromey@redhat.com>
8734 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8737 2011-02-16 Yao Qi <yao@codesourcery.com>
8739 * infrun.c (get_displaced_step_closure_by_addr): New.
8740 * inferior.h: Declare it.
8741 * arm-tdep.c: (arm_pc_is_thumb): Call
8742 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8745 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8746 Jan Kratochvil <jan.kratochvil@redhat.com>
8749 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8751 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8752 Jan Kratochvil <jan.kratochvil@redhat.com>
8754 * value.c (value_contents_copy_raw): Extend describing comment.
8755 Assert that the destination contents we're overwriting are wholly
8757 (value_contents_copy): Extend describing comment.
8759 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8760 Jan Kratochvil <jan.kratochvil@redhat.com>
8762 * value.c (value_available_contents_eq): Remove redundant local
8763 variables. Fix available contents comparision.
8764 * value.h (value_available_contents_eq): Extend describing
8767 2011-02-16 Yao Qi <yao@codesourcery.com>
8769 * thread.c (info_threads_command): Add missing i18n markup and remove
8772 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8774 * breakpoint.c (longjmp_names): New variable.
8775 (struct breakpoint_objfile_data): New type.
8776 (breakpoint_objfile_key): New variable.
8777 (msym_not_found): New variable.
8778 (msym_not_found_p): New predicate.
8779 (get_breakpoint_objfile_data): New function.
8780 (create_overlay_event_breakpoint): Check per-objfile cache for
8782 (create_longjmp_master_breakpoint): Likewise.
8783 (create_std_terminate_master_breakpoint): Likewise.
8784 (create_exception_master_breakpoint): Likewise.
8785 (_initialize_breakpoint): Register per-objfile data key.
8787 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8789 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8791 (create_longjmp_master_breakpoint): Loop over longjmp names.
8792 (create_std_terminate_master_breakpoint): Const-propagate parameter
8794 (update_breakpoints_after_exec): Adjust.
8795 (breakpoint_re_set): Adjust.
8797 2011-02-15 Michael Snyder <msnyder@vmware.com>
8799 * thread.c (info_threads_command): Process arg as thread id,
8800 or list of thread ids.
8801 (thread_find_command): New command.
8802 (_initialize_thread): Document argument for info threads.
8803 Document 'thread find' command.
8804 * NEWS: Document new command "thread find".
8806 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8808 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8809 * aclocal.m4: Regenerated with aclocal-1.11.1.
8810 * common/configure: Regenerate with autoconf-2.64.
8812 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8814 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8815 bool data type to a size of one byte.
8817 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8818 Jan Kratochvil <jan.kratochvil@redhat.com>
8820 * target.c (memory_xfer_live_readonly_partial): Document where to
8821 look for interface description.
8823 2011-02-15 Yao Qi <yao@codesourcery.com>
8826 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8827 order to store PC value on stack instead of text section.
8829 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8831 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8832 the EFP register set size.
8833 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8834 data from the VMX register.
8835 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8836 and write data from/to the VMX register.
8838 2011-02-14 Michael Snyder <msnyder@vmware.com>
8840 * command.h (enum command_class): New class 'no_set_class', for
8841 "show" commands without a corresponding "set" command.
8842 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8843 * copying.c (_initialize_copying): Ditto for "show copying" and
8845 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8847 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8848 which there is no corresponding "set" command (eg. "show copying").
8850 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8851 Jan Kratochvil <jan.kratochvil@redhat.com>
8853 * exec.c (section_table_available_memory): Change `len' parameter
8855 * exec.h (section_table_available_memory): Ditto.
8856 * value.h (read_value_memory): Rename the `offset' parameter to
8859 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8860 Jan Kratochvil <jan.kratochvil@redhat.com>
8862 * memrange.c (compare_mem_ranges): Mention sort order in
8864 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8865 * tracepoint.c (traceframe_available_memory): Extend comment to
8866 mention what happens to RESULT when the target does not support
8869 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8870 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8875 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8877 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8878 No longer handle NULL values.
8880 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8882 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8883 * value.c: Include "exceptions.h".
8884 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8886 * cp-abi.c: Include gdb_assert.h.
8887 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8888 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8890 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8891 parameters. No longer returns -1 on error.
8892 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8894 * cp-valprint.c: Include exceptions.h.
8895 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8896 the baseclass_offset. Handle unavailable base classes. Use
8897 val_print_invalid_address.
8898 * p-valprint.c: Include exceptions.h.
8899 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8900 when fetching the baseclass_offset. No longer expect
8901 baseclass_offset returning -1. Handle unavailable base classes.
8902 Use val_print_invalid_address.
8903 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8904 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8905 `embedded_offset' and `val' parameters. Adjust.
8906 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8907 parameter, and change its type to gdb_byte pointer. Add
8908 `embedded_offset' and `val' parameters. Adjust. No longer expect
8909 baseclass_offset returning -1.
8910 (value_dynamic_cast): Use value_contents_for_printing rather than
8911 value_contents. Adjust.
8912 (search_struct_field): No longer expect baseclass_offset returning
8914 (search_struct_method): If reading memory from the target is
8915 necessary, wrap it in a new value to pass to baseclass_offset. No
8916 longer expect baseclass_offset returning -1.
8917 (find_method_list): No longer expect baseclass_offset returning
8918 -1. Use value_contents_for_printing rather than value_contents.
8919 * valprint.c (val_print_invalid_address): New function.
8920 * valprint.h (val_print_invalid_address): Declare.
8921 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8922 and `val' parameters. No longer expect baseclass_offset returning
8924 * gnu-v2-abi.c: Include "exceptions.h".
8925 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8926 parameters. Handle unavailable memory. Recurse through
8927 gnuv2_baseclass_offset directly, rather than through
8928 baseclass_offset. No longer returns -1 on not found, instead
8930 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8931 `val' parameters. Adjust.
8933 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8935 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8936 almost but not quite adjacent.
8938 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8940 * value.h (value_entirely_available): Declare.
8941 * value.c (value_entirely_available): New function.
8942 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8943 real type if the pointer is unavailable.
8945 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8947 * valops.c (value_repeat): Use read_value_memory instead of
8950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8952 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8953 * value.c (value_contents_copy_raw, value_contents_copy): New
8955 (value_primitive_field): Use value_contents_copy_raw instead of
8957 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8959 (value_array, value_slice): Ditto.
8960 * valarith.c (value_subscripted_rvalue): Use
8961 value_contents_copy_raw instead of memcpy.
8963 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8965 <unavailable> references.
8967 * valops.c (get_value_at): Use value_from_contents_and_address,
8968 avoiding read_memory.
8970 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8972 * c-valprint.c (c_val_print): Print a string with unavailable
8973 contents as an array.
8975 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8977 * value.h (unpack_bits_as_long): Delete declaration.
8978 (unpack_value_bits_as_long): Declare.
8979 (unpack_value_field_as_long): Declare.
8980 (value_field_bitfield): Declare.
8981 * value.c (unpack_bits_as_long): Rename to...
8982 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8983 value parameters. Return the extracted result in a new output
8984 parameter. If the value contents are unavailable, return false,
8985 otherwise return true.
8986 (unpack_value_bits_as_long): New.
8987 (unpack_field_as_long): Rename to...
8988 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8989 Add embedded_offset and value parameters. Return the extracted
8990 result in a new output parameter. If the value contents are
8991 unavailable, return false, otherwise return true.
8992 (unpack_value_field_as_long): New.
8993 (unpack_field_as_long_1): New.
8994 (unpack_field_as_long): Reimplement as wrapper around
8995 unpack_value_field_as_long_1.
8996 (value_field_bitfield): New function.
8997 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8998 unpack_value_bits_as_long. Mark the value as unavailable, if it
9000 * jv-valprint.c (java_print_value_fields): Use
9001 value_field_bitfield.
9002 * p-valprint.c (pascal_object_print_value_fields): Use
9003 value_field_bitfield.
9004 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9006 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9008 * value.c (get_internalvar_integer): Also return the int value of
9009 TYPE_CODE_INT INTERNALVAR_VALUE values.
9010 (set_internalvar): Don't special case TYPE_CODE_INT.
9012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9014 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9015 INTERNALVAR_POINTER.
9017 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9018 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9019 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9021 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9023 * value.h (value_available_contents_eq): Declare.
9024 * value.c (find_first_range_overlap): New function.
9025 (value_available_contents_eq): New function.
9026 * valprint.c (val_print_array_elements): Use
9027 value_available_contents_eq.
9028 * ada-valprint.c (val_print_packed_array_elements): Use
9029 value_available_contents_eq.
9030 * jv-valprint.c (java_value_print): Use
9031 value_available_contents_eq.
9033 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9035 * target.c (target_read_live_memory): New function.
9036 (memory_xfer_live_readonly_partial): New.
9037 (memory_xfer_partial): If reading from a traceframe, fallback to
9038 reading unavailable read-only memory from read-only regions of
9040 * tracepoint.c (disconnect_tracing): Adjust.
9041 (set_current_traceframe): New, factored out from
9042 set_traceframe_number.
9043 (set_traceframe_number): Reimplement to only change the traceframe
9044 number on the GDB side.
9045 (do_restore_current_traceframe_cleanup): Adjust.
9046 (make_cleanup_restore_traceframe_number): New.
9047 (cur_traceframe_number): New global.
9048 (tfile_open): Set cur_traceframe_number to no traceframe.
9049 (set_tfile_traceframe): New function.
9050 (tfile_trace_find): If looking up a traceframe using any method
9051 other than by number, make sure the current tfile traceframe
9052 matches gdb's current traceframe. Update the current tfile
9053 traceframe if the lookup succeeded.
9054 (tfile_fetch_registers, tfile_xfer_partial)
9055 (tfile_get_trace_state_variable_value): Make sure the remote
9056 traceframe matches gdb's current traceframe.
9057 * remote.c (remote_traceframe_number): New global.
9058 (remote_open_1): Set it to -1.
9059 (set_remote_traceframe): New function.
9060 (remote_fetch_registers, remote_store_registers)
9061 (remote_xfer_memory, remote_xfer_partial)
9062 (remote_get_trace_state_variable_value): Make sure the remote
9063 traceframe matches gdb's current traceframe.
9064 (remote_trace_find): If looking up a traceframe using any method
9065 other than by number, make sure the current remote traceframe
9066 matches gdb's current traceframe. Update the current remote
9067 traceframe if the lookup succeeded.
9068 * infrun.c (fetch_inferior_event): Adjust.
9069 * tracepoint.h (set_current_traceframe): Declare.
9070 (get_traceframe_number, set_traceframe_number): Add describing
9073 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9075 Mark pieces of values as unavailable if the corresponding memory
9078 * valops.c: Include tracepoint.h.
9079 (value_fetch_lazy): Use read_value_memory.
9080 (read_value_memory): New.
9081 * value.h (read_value_memory): Declare.
9082 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9083 * exec.c (section_table_available_memory): New function.
9084 * exec.h (section_table_available_memory): Declare.
9086 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9088 * Makefile.in (SFILES): Add memrange.c.
9089 (HFILES_NO_SRCDIR): Add memrange.h.
9090 (COMMON_OBS): Add memrange.o.
9091 * memrange.c: New file.
9092 * memrange.h: New file.
9093 * tracepoint.c: Include memrange.h.
9094 (struct mem_range): Delete.
9095 (mem_range_s): Delete.
9096 (traceframe_available_memory): New function.
9097 * tracepoint.h (traceframe_available_memory): Declare.
9099 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9101 * target.h (struct traceframe_info): Forward declare.
9102 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9103 (struct target_ops) <to_traceframe_info>: New field.
9104 (target_traceframe_info): New.
9105 * target.c (update_current_target): Inherit and default
9107 * remote.c (PACKET_qXfer_traceframe_info): New.
9108 (remote_protocol_features): Register qXfer:traceframe-info:read.
9109 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9110 (remote_traceframe_info): New.
9111 (init_remote_ops): Install it.
9112 (_initialize_remote): Install "set/show remote traceframe-info"
9114 * tracepoint.h (parse_traceframe_info): Declare.
9115 * tracepoint.c (struct mem_range): New.
9116 (mem_range_s): New typedef.
9117 (struct traceframe_info): New.
9118 (traceframe_info): New global.
9119 (free_traceframe_info): New function.
9120 (clear_traceframe_info): New function.
9121 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9123 (build_traceframe_info): New function.
9124 (tfile_traceframe_info): New function.
9125 (init_tfile_ops): Install tfile_traceframe_info.
9126 (traceframe_info_start_memory, free_result): New functions.
9127 (memory_attributes, traceframe_info_elements): New globals.
9128 (parse_traceframe_info, get_traceframe_info): New functions.
9129 * features/traceframe-info.dtd: New file.
9130 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9132 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9134 Base support for <unavailable> value contents.
9136 * value.h (value_bytes_available): Declare.
9137 (mark_value_bytes_unavailable): Declare.
9138 * value.c (struct range): New struct.
9139 (range_s): New typedef.
9140 (ranges_overlap): New function.
9141 (range_lessthan): New function.
9142 (ranges_contain_p): New function.
9143 (struct value) <unavailable>: New field.
9144 (value_bytes_available): New function.
9145 (mark_value_bytes_unavailable): New function.
9146 (require_not_optimized_out): Constify parameter.
9147 (require_available): New function.
9148 (value_contents_all, value_contents): Require all bytes be
9150 (value_free): Free `unavailable'.
9151 (value_copy): Copy `unavailable'.
9152 * valprint.h (val_print_unavailable): Declare.
9153 * valprint.c (valprint_check_validity): Rename `offset' parameter
9154 to `embedded_offset'. If printing a scalar, check whether the
9155 value chunk is available.
9156 (val_print_unavailable): New.
9157 (val_print_scalar_formatted): Check whether the value is
9159 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9160 pretty-printing unavailable values.
9162 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9164 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9165 * c-typeprint.c (c_type_print_args): Update the function comment. New
9166 variable param_type, initialize it. Remove const/volatile qualifiers
9167 for language_cplus and !show_artificial. Use param_type.
9169 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9171 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9172 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9173 * symtab.h (struct symtab) <next>: Comment extension.
9175 2011-02-12 Yao Qi <yao@codesourcery.com>
9177 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9179 2011-02-11 Yao Qi <yao@codesourcery.com>
9181 * common/Makefile.in: Add copyright header.
9183 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9185 * infrun.c (proceed): Move switching out and in of tfind mode from
9187 (fetch_inferior_event): ... to here.
9189 2011-02-11 Yao Qi <yao@codesourcery.com>
9191 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9193 * configure.ac: Add common to sub dir.
9194 * configure: Regenerate.
9196 2011-02-11 Yao Qi <yao@codesourcery.com>
9200 * common/Makefile.in: New.
9201 * common/configure.ac: New.
9202 * common/aclocal.m4: New.
9203 * common/configure: Generate.
9205 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9207 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9208 side of the parenthesis.
9211 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9212 * vec.h (VEC_block_remove): Fix comment.
9214 2011-02-08 Michael Snyder <msnyder@vmware.com>
9216 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9218 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9220 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9221 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9224 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9227 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9229 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9230 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9232 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9234 * dwarf2read.c (read_subroutine_type): Set special calling
9235 convention flag for functions compiled by IBM XL C for OpenCL.
9236 * ppc-sysv-tdep.c: Include "dwarf2.h"
9237 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9239 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9240 IBM OpenCL vector types calling convention.
9241 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9242 (ppc_sysv_abi_broken_return_value): Likewise.
9243 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9244 types calling convention.
9245 (ppc64_sysv_abi_return_value): Likewise.
9246 * spu-tdep.c: Include "dwarf2.h"
9247 (spu_return_value): Implement IBM OpenCL vector types calling
9250 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9253 correct ABI for AltiVec vector arguments.
9255 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9257 * valprint.c (val_print): Extend comment.
9258 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9259 interface explanation to val_print.
9260 (ada_val_print_array): Adjust comment to current interface.
9261 (print_field_values): Adjust comment to current interface.
9262 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9263 explanation to val_print.
9264 * f-valprint.c (f_val_print): Ditto.
9265 * jv-valprint.c (java_val_print): Ditto.
9266 * m2-valprint.c (m2_val_print): Ditto.
9267 * p-valprint.c (pascal_val_print): Ditto.
9269 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9271 * breakpoint.c (parse_breakpoint_sals): Fix description.
9273 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9274 Oguz Kayral <oguzkayral@gmail.com>
9276 * python/py-inferior.c (python_on_normal_stop): New function.
9277 (python_on_resume): New function.
9278 (python_inferior_exit): New function.
9279 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9280 inferior_exit observers.
9281 * python/py-evtregistry.c: New file.
9282 * python/py-threadevent.c : New file.
9283 * python/py-event.c: New file.
9284 * python/py-evts.c: New file.
9285 * python/py-continueevent.c: New file.
9286 * python/py-bpevent.c: New file.
9287 * python/py-signalevent.c: New file.
9288 * python/py-exetiedevent.c: New file.
9289 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9290 Move struct breakpoint_object from here...
9291 * python/python-internal.h: ... to here.
9292 * python/py-event.h: New file.
9293 * python/py-events.h: New file.
9294 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9295 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9296 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9297 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9298 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9299 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9300 Add build rules for all the above.
9302 2011-02-04 Tom Tromey <tromey@redhat.com>
9304 * dwarf2read.c (dwarf2_section_empty_p): New function.
9305 (dwarf2_read_section): Use dwarf2_section_empty_p.
9306 (dwarf2_section_size): New function.
9307 (dwarf2_get_section_info): Unconditionally read section.
9308 (dwarf2_read_index): Use dwarf2_section_empty_p.
9309 (partial_read_comp_unit_head): Use dwarf2_section_size.
9310 (dwarf2_symbol_mark_computed): Likewise.
9312 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9314 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9316 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9318 * mips-linux-tdep.c: Include xml-syscall.h.
9319 (mips_linux_get_syscall_number): New function.
9320 (mips_linux_init_abi): Add calls to
9321 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9322 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9323 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9324 * syscalls/mips-n32-linux.xml: New file.
9325 * syscalls/mips-n64-linux.xml: New file.
9326 * syscalls/mips-o32-linux.xml: New file.
9328 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9330 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9331 Complain about inverted range entries.
9332 (dwarf2_record_block_ranges): Likewise.
9334 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9337 * breakpoint.c (update_watchpoint): Fix name of the
9338 update_global_location_list function.
9339 (print_one_breakpoint): Fix typo.
9340 (_initialize_breakpoint): Remove extra space in hbreak help
9342 * breakpoint.h (struct bp_location) <length>: Fix field
9345 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9347 * regcache.c (registers_changed_ptid): Don't explictly always
9348 clear `current_regcache'. Only clear current_thread_ptid and
9349 current_thread_arch when PTID matches. Only reinit the frame
9350 cache if PTID matches the current inferior_ptid. Move alloca(0)
9352 (registers_changed): ... here.
9354 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9356 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9357 starts with __stack_chk_guard as stack guard symbol.
9359 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9361 * disasm.c (compare_lines): Handle the end of sequence markers
9362 within the line table to better support disassembling over
9363 compilation unit boundaries.
9365 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9367 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9368 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9369 implementation even if no symbols are available.
9370 (thumb_analyze_prologue): Update call to skip_prologue_function.
9371 (arm_analyze_prologue): Likewise.
9373 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9375 * arm-tdep.c: Include "observer.h".
9376 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9377 (arm_exidx_data_key): New static variable.
9378 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9379 (struct arm_exidx_data): Likewise.
9380 (arm_exidx_data_free): New function.
9381 (arm_compare_exidx_entries): Likewise.
9382 (arm_obj_section_from_vma): Likewise.
9383 (arm_exidx_new_objfile): Likewise.
9384 (arm_find_exidx_entry): Likewise.
9385 (arm_exidx_fill_cache): Likewise.
9386 (arm_exidx_unwind_sniffer): Likewise.
9387 (arm_exidx_unwind): New global variable.
9388 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9389 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9390 observer. Register arm_exidx_data_key as objfile data.
9392 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9394 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9395 due to accessing uninitialized variable. Fix indentation.
9397 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9399 * c-valprint.c (c_value_print): When doing virtual base pointer
9400 adjustment, create a new value with adjusted contents rather than
9401 changing the contents of the value being printed (and getting it
9404 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9406 * xml-support.c (xml_find_attribute): New.
9407 (xinclude_start_include): Use it.
9408 * xml-support.h (xml_find_attribute): Declare.
9409 * memory-map.c (memory_map_start_memory)
9410 (memory_map_start_property): Use xml_find_attribute.
9411 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9413 * remote.c (start_thread): Use xml_find_attribute.
9414 * solib-target.c (library_list_start_segment)
9415 (library_list_start_section, library_list_start_library)
9416 (library_list_start_list): Use xml_find_attribute.
9417 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9418 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9419 (tdesc_start_field): Use xml_find_attribute.
9421 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9423 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9424 (BUILD_OCL_VTYPES): Update.
9426 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9428 * configure.ac: Work around non-GNU sed limitation when computing
9429 python version number.
9430 * configure: Regenerate.
9432 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9434 Fix debug printing of TYPE_INSTANCE.
9435 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9436 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9438 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9440 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9441 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9442 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9443 * ada-operator.inc: Rename the file to ...
9444 * ada-operator.def: ... here, wrap all the entries by macro OP.
9445 * expprint.c (op_name_standard): Remove all the entries. Include
9446 "std-operator.def" instead.
9447 * expression.h (enum exp_opcode): Include "std-operator.def" and
9448 "ada-operator.def". Move all the entries ...
9449 * std-operator.def: ... here, wrap all the entries by macro OP.
9451 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9453 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9454 * breakpoint.c (remove_jit_event_breakpoints): New function.
9455 * jit.c (jit_descriptor_addr): Delete.
9456 (registering_code): Delete.
9457 (clear_int): Delete.
9458 (jit_inferior_data): New variable.
9459 (struct jit_inferior_data): New type.
9460 (get_jit_inferior_data): New function.
9461 (jit_inferior_data_cleanup): New function.
9462 (jit_read_descriptor): Adjust.
9463 (jit_register_code): Adjust.
9464 (jit_breakpoint_re_set_internal): New function; move code here ...
9465 (jit_inferior_init): ... from here.
9466 (jit_breakpoint_re_set): Adjust.
9467 (jit_reset_inferior_data_and_breakpoints): New function.
9468 (jit_inferior_created_observer): Adjust.
9469 (jit_inferior_exit_hook): Adjust.
9470 (jit_executable_changed_observer): New function.
9471 (jit_event_handler): Adjust.
9472 (_initialize_jit): Adjust.
9474 2011-01-31 Michael Snyder <msnyder@vmware.com>
9476 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9479 2011-01-31 Tom Tromey <tromey@redhat.com>
9482 * python/python.c (execute_gdb_command): Call
9483 prevent_dont_repeat.
9484 * top.c (suppress_dont_repeat): New global.
9485 (dont_repeat): Use it.
9486 (prevent_dont_repeat): New function.
9487 * command.h (prevent_dont_repeat): Declare.
9489 2011-01-31 Tom Tromey <tromey@redhat.com>
9491 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9492 * python/py-breakpoint.c (bppy_set_silent): Use
9493 breakpoint_set_silent.
9494 (bppy_set_thread): Use breakpoint_set_thread.
9495 (bppy_set_task): Use breakpoint_set_task.
9496 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9497 (breakpoint_set_task): Declare.
9498 (make_breakpoint_silent): Remove.
9499 * breakpoint.c (breakpoint_set_silent): New function.
9500 (breakpoint_set_thread): Likewise.
9501 (breakpoint_set_task): Likewise.
9502 (make_breakpoint_silent): Remove.
9504 2011-01-31 Tom Tromey <tromey@redhat.com>
9506 * breakpoint.h (user_breakpoint_p): Declare.
9507 * breakpoint.c (user_breakpoint_p): New function.
9508 (breakpoint_1): Use it.
9509 (save_breakpoints): Likewise.
9511 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9513 * configure.ac: Add handling of Python distribution on Windows.
9514 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9515 sysconfig variables are not defined, then do not use them.
9516 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9517 instead. On Windows, return all paths using forward-slashes
9518 rather than backslashes.
9520 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9522 * configure.ac: Remove fallback behavior for building
9523 against Python. Remove tweaking of Python include path.
9524 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9525 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9526 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9527 Always restore CPPFLAGS and LIBS after linking test.
9528 * configure: Regenerated.
9529 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9530 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9531 * python/python-internal.h: Adjust includes of Python .h files.
9533 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9535 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9538 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9540 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9543 2011-01-31 Yao Qi <yao@codesourcery.com>
9545 * arm-linux-nat.c: Update calls to regcache_register_status
9546 instead of regcache_valid_p.
9547 * aix-thread.c: Likewise.
9548 * i386gnu-nat.c: Likewise.
9550 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9553 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9554 touching TYPE_FIELD_ARTIFICIAL.
9556 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9558 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9561 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9563 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9564 selected, don't try iterating over the traceframe's blocks.
9565 (tfile_has_stack): If there's no traceframe selected, then there's
9567 (tfile_has_registers): If there's no traceframe selected, then
9568 there's no registers.
9570 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9572 * target.c (memory_xfer_partial): No need to restore shadows if we
9573 haven't read anything.
9575 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9577 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9578 and val_print_scalar_formatted.
9580 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9582 * tracepoint.c (tfile_read): New.
9583 (tfile_open): Use it.
9584 (tfile_get_traceframe_address): Use it.
9585 (tfile_trace_find): Use it.
9586 (walk_blocks_callback_func): New typedef.
9587 (match_blocktype): New function.
9588 (traceframe_walk_blocks): New function.
9589 (traceframe_find_block_type): New function.
9590 (tfile_fetch_registers, tfile_xfer_partial)
9591 (tfile_get_trace_state_variable_value): Use
9592 traceframe_find_block_type and tfile_read.
9594 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9596 * remote-mips.c: Add internationalization mark ups. Remove
9597 trailing \n from already marked up strings.
9599 2011-01-26 Tom Tromey <tromey@redhat.com>
9601 * python/py-prettyprint.c (print_string_repr): Clear
9602 'addressprint' option when calling val_print_string.
9603 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9604 option when calling val_print_string.
9606 2011-01-26 Tom Tromey <tromey@redhat.com>
9608 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9610 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9612 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9613 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9614 (gdb_py_long_as_ulongest): New defines.
9615 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9616 (gdb_py_int_as_long): Declare.
9617 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9618 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9619 (valpy_long): Add comment.
9620 * python/py-utils.c (get_addr_from_python): Use
9621 gdb_py_long_as_ulongest. Handle overflow properly.
9622 (gdb_py_object_from_longest): New function.
9623 (gdb_py_object_from_ulongest): Likewise.
9624 (gdb_py_int_as_long): Likewise.
9625 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9626 * python/py-symtab.c (salpy_get_pc): Use
9627 gdb_py_long_from_ulongest.
9628 (salpy_get_line): Use PyInt_FromLong.
9629 * python/py-param.c (set_parameter_value): Use
9631 * python/py-lazy-string.c (stpy_get_address): Use
9632 gdb_py_long_from_ulongest.
9633 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9634 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9635 * python/py-breakpoint.c (bppy_set_thread): Use
9637 (bppy_set_task): Likewise.
9638 (bppy_set_ignore_count): Likewise.
9639 (bppy_set_hit_count): Likewise.
9640 * python/py-block.c (blpy_get_start): Use
9641 gdb_py_object_from_ulongest.
9642 (blpy_get_end): Likewise.
9643 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9645 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9648 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9649 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9650 equality test for objfile, initialize addr_low if needed.
9652 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9654 * tui/tui-regs.c (tui_register_format): Remove dead code.
9656 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9658 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9659 instead of print_scalar_formatted.
9660 (print_scalar_formatted): Don't handle 's' format strings here,
9661 and add an assertion that we never see such format here.
9662 * valprint.h (val_print_scalar_formatted): Declare.
9663 * valprint.c (val_print_scalar_formatted): New.
9664 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9665 instead of print_scalar_formatted.
9666 * jv-valprint.c (java_val_print): Ditto.
9667 * p-valprint.c (pascal_val_print): Ditto.
9668 * ada-valprint.c (ada_val_print_1): Ditto.
9669 * f-valprint.c (f_val_print): Ditto.
9670 * infcmd.c (registers_info): Ditto.
9671 * m2-valprint.c (m2_val_print): Ditto.
9673 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9675 * m2-valprint.c (print_unbounded_array): Pass
9676 value_contents_for_printing rather than value_contents, to
9677 m2_print_array_contents. Also pass in the value.
9679 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9681 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9682 (save_gdb_index_command): Switch to .gdb_index version 4.
9684 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9686 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9687 than frame_register, and always pass a valid value to val_print.
9689 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9691 Centralize printing "<optimized out>".
9693 * valprint.h (val_print_optimized_out): Declare.
9694 * cp-valprint.c (cp_print_value_fields): Use
9695 val_print_optimized_out.
9696 * jv-valprint.c (java_print_value_fields): Ditto.
9697 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9698 * printcmd.c (print_formatted): Ditto.
9699 * valprint.c (valprint_check_validity): Ditto.
9700 (value_check_printable): Ditto.
9701 (val_print_optimized_out): New.
9703 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9705 * infcmd.c (default_print_registers_info): Allocate values so to
9706 never pass a NULL value to val_print.
9708 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9710 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9711 boolean. Make sure to always pass a value that matches the
9712 contents buffer to callees. Preserve `address' for following
9714 * value.c (value_contents_for_printing_const): New.
9715 (value_address): Constify value argument.
9716 * value.h (value_contents_for_printing_const): Declare.
9717 (value_address): Constify value argument.
9719 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9721 * regcache.c (struct regcache_descr): Rename
9722 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9723 and sizeof_cooked_register_valid_p to
9724 sizeof_cooked_register_status.
9725 (init_regcache_descr): Adjust.
9726 (struct regcache): Rename register_valid_p field to
9728 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9729 (do_cooked_read): Adjust.
9730 (regcache_valid_p): Rename to ...
9731 (regcache_register_status): ... this. Adjust.
9732 (regcache_invalidate): Adjust.
9733 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9735 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9736 as unavailable, not valid.
9737 (regcache_dump): Adjust.
9738 * regcache.h (enum register_status): New.
9739 (regcache_register_status): Declare.
9740 (regcache_invalidate): Delete declaration.
9741 * corelow.c (get_core_registers): Adjust.
9742 * tracepoint.c (tfile_fetch_registers): Adjust.
9743 * trad-frame.c (REG_VALUE): Rename to ...
9744 (TF_REG_VALUE): ... this.
9745 (REG_UNKNOWN): Rename to ...
9746 (TF_REG_UNKNOWN): ... this.
9747 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9748 * mi/mi-main.c (register_changed_p): Adjust.
9750 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9752 * regcache.c (struct regcache_descr): Remove outdated comment.
9753 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9755 (regcache_xmalloc): Rename to ...
9756 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9757 Allocate the regcache type accordingly.
9758 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9759 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9760 cooked registers, not raw.
9761 (regcache_dup_no_passthrough): Delete.
9762 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9763 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9764 mention obsolete write_register_bytes.
9765 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9767 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9769 Stop remote_read_bytes from handling partial reads itself.
9771 * remote-fileio.c: Include target.h.
9772 (remote_fileio_write_bytes): Delete.
9773 (remote_fileio_func_open, remote_fileio_func_write)
9774 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9776 (remote_fileio_func_stat): Use target_read_memory and
9777 target_write_memory.
9778 (remote_fileio_func_gettimeofday): Use target_write_memory.
9779 (remote_fileio_func_system): Use target_read_memory.
9780 * remote.c (remote_write_bytes): Make it static.
9781 (remote_read_bytes): Don't handle partial reads here.
9782 * remote.h (remote_read_bytes): Delete declaration.
9784 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9786 Simplify XML parsing a bit.
9788 * xml-support.h (gdb_xml_parse_quick): Declare.
9789 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9790 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9792 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9793 gdb_xml_create_parser_and_cleanup_1.
9794 (gdb_xml_parse_quick): New.
9795 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9796 * osdata.c (osdata_parse): Ditto.
9797 * remote.c (remote_threads_info): Ditto.
9798 * solib-target.c (solib_target_parse_libraries): Ditto.
9799 * xml-syscall.c (syscall_parse_xml): Ditto.
9800 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9802 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9804 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9805 with remote-mips.o added to gdb_target_obs.
9806 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9808 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9810 * ada-valprint.c (val_print_packed_array_elements): Pass the
9811 correct struct value to val_print.
9812 (ada_val_print_1): Ditto.
9814 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9816 Don't lose embedded_offset in printing routines throughout.
9818 * valprint.h (val_print_array_elements): Change prototype.
9819 * valprint.c (val_print_array_elements): Add `embedded_offset'
9820 parameter, and adjust to pass it down to val_print, while passing
9821 `valaddr' or `address' unmodified. Take embedded_offset into
9822 account when checking repetitions.
9823 * c-valprint.c (c_val_print): Pass embedded_offset to
9824 val_print_array_elements instead of adjusting `valaddr' and
9826 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9827 embedded_offset to val_print_array_elements instead of adjusting
9829 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9830 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9831 val_print_array_elements and pascal_object_print_value_fields
9832 instead of adjusting `valaddr'.
9833 (pascal_object_print_value_fields): Add `offset' parameter, and
9835 (pascal_object_print_value): Add `offset' parameter, and adjust to
9837 (pascal_object_print_static_field): Use
9838 value_contents_for_printing/value_embedded_offset, rather than
9840 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9841 parameter, and adjust to use it. Use
9842 value_contents_for_printing/value_embedded_offset, rather than
9844 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9845 (ada_val_print_array): Add `offset' parameter, and adjust to use
9847 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9848 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9849 Instead work with offsets. Use
9850 value_contents_for_printing/value_embedded_offset, rather than
9851 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9852 and use value_from_pointer to extract a target pointer, rather
9853 than value_from_longest.
9854 (print_variant_part): Add `offset' parameter. Replace
9855 `outer_valaddr' parameter by a new `outer_offset' parameter.
9856 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9857 (ada_value_print): Use
9858 value_contents_for_printing/value_embedded_offset, rather than
9860 (print_record): Add `offset' parameter, and adjust to pass it
9862 (print_field_values): Add `offset' parameter. Replace
9863 `outer_valaddr' parameter by a new `outer_offset' parameter.
9864 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9865 Use value_contents_for_printing/value_embedded_offset, rather than
9867 * d-valprint.c (dynamic_array_type): Use
9868 value_contents_for_printing/value_embedded_offset, rather than
9870 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9871 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9872 (java_print_value_fields): Take `offset' into account. Don't
9873 re-adjust `valaddr'. Instead pass down adjusted offsets.
9874 (java_val_print): Take `embedded_offset' into account. Pass it to
9875 java_print_value_fields.
9876 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9877 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9878 down adjusted offsets.
9879 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9880 (f_val_print): Take `embedded_offset' into account.
9882 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9884 * inflow.c: Include "gdbcmd.h".
9885 (interactive_mode): New static global, moved here from top.c.
9886 (show_interactive_mode): New function, moved here from top.c.
9887 use gdb_has_a_terminal instead of input_from_terminal_p to
9888 determine the current mode.
9889 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9891 (_initialize_inflow): Add the "set/show interactive-mode"
9892 commands. Moved here from top.c, after having adjusted slightly
9894 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9896 (input_from_terminal_p): Remove handling of "interactive-mode"
9897 setting, moved to infow.c.
9898 (init_main): Remove creation of the "set/show interactive-mode"
9899 commands, moved to inflow.c.
9901 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9903 * NEWS: Add entry for native ia64-hpux support.
9905 2011-01-19 Tom Tromey <tromey@redhat.com>
9908 * thread.c (free_thread): Free 'name'.
9909 (print_thread_info): Emit thread name. Change CLI output.
9910 (thread_name_command): New function.
9911 (do_captured_thread_select): Emit newline.
9912 (_initialize_thread): Register 'thread name' command.
9913 * target.h (struct target_ops) <to_thread_name>: New field.
9914 (target_thread_name): New macro.
9915 * target.c (update_current_target): Handle to_thread_name.
9916 * python/py-infthread.c (thpy_get_name): New function.
9917 (thpy_set_name): Likewise.
9918 (thread_object_getset): Add "name".
9919 * linux-nat.c (linux_nat_thread_name): New function.
9920 (linux_nat_add_target): Set to_thread_name.
9921 * gdbthread.h (struct thread_info) <name>: New field.
9923 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9925 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9926 (ada_val_print_1): Likewise.
9928 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9930 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9931 upper limit address is not greater than the function end address
9932 when the upper limit could not be computed using the debugging
9935 2011-01-17 Tom Tromey <tromey@redhat.com>
9937 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9939 * utils.c: Include gdb_regex.h.
9940 (do_regfree_cleanup): New function.
9941 (make_regfree_cleanup): Likewise.
9942 (get_regcomp_error): Likewise.
9943 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9945 2011-01-17 Tom Tromey <tromey@redhat.com>
9947 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9950 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9952 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9953 for internal variables.
9954 (last_was_structop): New static variable.
9955 (COMPLETE): New token.
9956 (field_exp): New rule to group all '.' suffix handling.
9957 Add mark_struct_expression calls when approriate to be able
9958 to correctly find fields for completion.
9959 (yylex): Adapt to handle field completion and set INTVAR when
9962 2011-01-14 Yao Qi <yao@codesourcery.com>
9964 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9965 save_reggroup, restore_reggroup and all_reggroup.
9967 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9969 * ada-valprint. (ada_printchar): Use the correct type length
9970 in call to ada_emit_char.
9971 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9973 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9975 * solib-som.h (hpux_major_release): Declare variable here.
9976 * solib-som.c: Remove <sys/utsname.h> header.
9977 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9978 (hpux_major_release): Make global, change default value to
9979 DEFAULT_HPUX_MAJOR_RELEASE.
9980 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9981 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9982 Add "solib-som.h" header.
9983 (set_hpux_major_release): New function.
9984 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9986 2011-01-14 Mike Frysinger <vapier@gentoo.org>
9988 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9990 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9992 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9993 new-line at end of warning message.
9994 (ia64_hpux_store_register): Remove trailing new-line at end of
9996 * ia64-hpux-tdep.c: Rephrase comment.
9997 * solib-ia64-hpux.c (struct dld_info): Change type of field
9998 dld_flags from "long long" to ULONGEST.
10000 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10002 * target.h (deprecated_child_ops): Delete declaration.
10003 * target.c (deprecated_child_ops): Delete definition.
10005 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10007 * Makefile.in (hpux-thread.o): Delete rule.
10008 * configure.ac: Don't check for HPUX DCE threads support.
10009 * configure, config.in: Regenerate.
10010 * hppa-hpux-nat.c (child_suppress_run): Delete.
10011 (hppa_hpux_child_can_run): Delete.
10012 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10013 * hpux-thread.c: Delete.
10015 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10017 * hpux-thread.c (hpux_pid_to_str): Delete.
10019 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10021 * ada-valprint.c (ada_emit_char): Remove strange code.
10022 Check that c is <= UCHAR_MAX before passing it to isascii.
10023 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10025 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10027 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10028 to the case where instream is stdin.
10030 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10032 * ia64-tdep.h (struct regcache): Forward declare.
10033 (struct ia64_infcall_ops): New struct type.
10034 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10036 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10037 Renames ia64_find_global_pointer.
10038 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10039 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10040 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10042 (ia64_infcall_ops): New static global constant.
10043 (ia64_gdbarch_init): Set tdep->infcall_ops.
10044 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10045 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10046 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10047 (ia64_hpux_dummy_code): New static global constant.
10048 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10049 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10050 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10052 (ia64_hpux_infcall_ops): New static global constant.
10053 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10054 for inferior function calls to work properly on ia64-hpux.
10056 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10058 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10059 * ia64-tdep.h (struct frame_info): forward declaration.
10060 (struct gdbarch_tdep): Add field size_of_register_frame.
10061 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10062 to determine the size of the register frame.
10063 (ia64_size_of_register_frame): New function.
10064 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10065 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10066 (IA64_HPUX_UREG_REASON): New macro.
10067 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10069 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10070 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10071 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10074 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10076 Add support for ia64-hpux.
10077 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10078 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10080 * configure.host: Add handling for ia64-hpux hosts. Add associated
10082 * configure.tgt: Add handling for ia64-hpux targets.
10083 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10084 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10085 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10087 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10089 [ttrace] Compute thread list immediately after attach.
10090 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10092 (inf_ttrace_attach): Use it.
10094 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10096 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10097 if we could not determine the frame's function address. Instead,
10098 use the frame's PC, and then continue.
10100 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10102 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10103 not already defined.
10105 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10107 * ia64-tdep.c (ia64_struct_type_p): New function.
10108 (ia64_extract_return_value): Handle integral values that are
10109 less than 8 bytes long.
10110 (ia64_push_dummy_call): Likewise.
10112 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10114 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10115 floatformat_ia64_ext.
10116 (floatformat_ia64_ext_big): New static const.
10117 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10119 2011-01-12 Tom Tromey <tromey@redhat.com>
10121 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10123 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10124 (mi_cmd_thread_list_ids): Likewise.
10125 (mi_cmd_data_list_changed_registers): Likewise.
10126 (mi_cmd_data_list_register_values): Likewise.
10127 (mi_cmd_data_write_register_values): Likewise.
10128 (mi_cmd_data_evaluate_expression): Likewise.
10129 (mi_cmd_data_read_memory): Likewise.
10130 (mi_cmd_data_read_memory_bytes): Likewise.
10131 (mi_cmd_data_write_memory): Likewise.
10132 (mi_cmd_enable_timings): Likewise.
10133 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10134 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10135 (mi_cmd_var_delete): Likewise.
10136 (mi_cmd_var_set_format): Likewise.
10137 (mi_cmd_var_show_format): Likewise.
10138 (mi_cmd_var_info_num_children): Likewise.
10139 (mi_cmd_var_list_children): Likewise.
10140 (mi_cmd_var_info_type): Likewise.
10141 (mi_cmd_var_info_expression): Likewise.
10142 (mi_cmd_var_show_attributes): Likewise.
10143 (mi_cmd_var_assign): Likewise.
10144 (mi_cmd_var_update): Likewise.
10145 (mi_cmd_enable_pretty_printing): Likewise.
10146 (mi_cmd_var_set_update_range): Likewise.
10147 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10149 (mi_cmd_target_file_put): Likewise.
10150 (mi_cmd_target_file_delete): Likewise.
10151 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10153 (mi_cmd_stack_info_depth): Likewise.
10154 (mi_cmd_stack_list_locals): Likewise.
10155 (mi_cmd_stack_list_args): Likewise.
10156 (mi_cmd_stack_select_frame): Likewise.
10157 (mi_cmd_stack_select_frame): Likewise.
10158 (mi_cmd_stack_info_frame): Likewise.
10159 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10161 (mi_cmd_file_list_exec_source_files): Likewise.
10162 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10163 (mi_cmd_env_cd): Likewise.
10164 (mi_cmd_env_path): Likewise.
10165 (mi_cmd_env_dir): Likewise.
10166 (mi_cmd_inferior_tty_show): Likewise.
10167 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10168 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10169 (mi_cmd_break_watch): Likewise.
10171 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10173 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10174 (ppc_linux_insert_hw_breakpoint): Likewise.
10175 (ppc_linux_remove_hw_breakpoint): Likewise.
10176 (ppc_linux_insert_watchpoint): Likewise.
10178 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10179 Jan Kratochvil <jan.kratochvil@redhat.com>
10181 PR fortran/11104 and DWARF unbound arrays detection.
10182 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10183 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10184 unspecified upper bound.
10185 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10186 variables array_size_array, tmp_type and offset_item. New variable
10187 array. Remove call to f77_get_upperbound. New variables array_type
10188 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10189 the final call to deprecated_set_value_type.
10191 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10193 Make value allocations more lazy.
10194 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10195 instead of allocate_value and set_value_lazy when possible.
10196 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10197 instead of allocate_value and set_value_lazy.
10198 * findvar.c (value_of_register_lazy): Likewise.
10199 (read_var_value): Remove V preallocation, call just check_typedef in
10200 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10201 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10202 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10203 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10204 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10205 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10206 the end, remove set_value_lazy there.
10207 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10208 instead of allocate_value and set_value_lazy when possible.
10209 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10210 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10211 of allocate_value and set_value_lazy.
10212 (value_from_contents_and_address): Use allocate_value_lazy instead of
10213 allocate_value and set_value_lazy when possible.
10215 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10217 * disasm.c (dump_insns): Support dumping opcodes for MI.
10218 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10219 dumping of instruction opcodes.
10221 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10223 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10226 2011-01-11 Tom Tromey <tromey@redhat.com>
10228 * thread.c (do_captured_thread_select): Emit newline before
10231 2011-01-11 Michael Snyder <msnyder@vmware.com>
10233 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10234 * score-tdep.c: Ditto.
10235 * score-tdep.h: Ditto.
10236 * ser-base.c: Ditto.
10237 * ser-go32.c: Ditto.
10240 * ser-mingw.c: Ditto.
10241 * ser-pipe.c: Ditto.
10242 * ser-tcp.c: Ditto.
10243 * ser-unix.c: Ditto.
10244 * sh64-tdep.c: Ditto.
10245 * shnbsd-nat.c: Ditto.
10246 * sh-tdep.c: Ditto.
10247 * sh-tdep.h: Ditto.
10249 * solib-darwin.c: Ditto.
10250 * solib-frv.c: Ditto.
10252 * solib-irix.c: Ditto.
10253 * solib-osf.c: Ditto.
10254 * solib-pa64.c: Ditto.
10255 * solib-som.c: Ditto.
10256 * solib-spu.c: Ditto.
10257 * solib-sunos.c: Ditto.
10258 * solib-svr4.c: Ditto.
10260 * sol-thread.c: Ditto.
10261 * somread.c: Ditto.
10264 * sparc64-linux-tdep.c: Ditto.
10265 * sparc64-tdep.c: Ditto.
10266 * sparc-linux-nat.c: Ditto.
10267 * sparc-linux-tdep.c: Ditto.
10268 * sparc-sol2-nat.c: Ditto.
10269 * sparc-sol2-tdep.c: Ditto.
10270 * sparc-tdep.c: Ditto.
10271 * sparc-tdep.h: Ditto.
10272 * spu-tdep.c: Ditto.
10273 * stabsread.c: Ditto.
10274 * stabsread.h: Ditto.
10276 * symfile.c: Ditto.
10277 * symfile.h: Ditto.
10278 * symmisc.c: Ditto.
10282 * target-descriptions.c: Ditto.
10283 * target-descriptions.h: Ditto.
10285 * target-memory.c: Ditto.
10286 * terminal.h: Ditto.
10289 * tracepoint.c: Ditto.
10290 * tracepoint.h: Ditto.
10291 * trad-frame.h: Ditto.
10292 * typeprint.c: Ditto.
10294 2011-01-11 Michael Snyder <msnyder@vmware.com>
10296 * ui-file.c: Comment cleanup, mostly periods and spaces.
10297 * ui-file.h: Ditto.
10301 * v850-tdep.c: Ditto.
10302 * valarith.c: Ditto.
10304 * valprint.c: Ditto.
10305 * valprint.h: Ditto.
10310 * vax-tdep.c: Ditto.
10313 * version.h: Ditto.
10314 * windows-nat.c: Ditto.
10315 * windows-tdep.c: Ditto.
10316 * xcoffread.c: Ditto.
10317 * xcoffsolib.c: Ditto.
10318 * xml-support.c: Ditto.
10319 * xstormy16-tdep.c: Ditto.
10320 * xtensa-tdep.c: Ditto.
10321 * xtensa-tdep.h: Ditto.
10323 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10325 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10326 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10328 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10329 Thiago Jung Bauermann <bauerman@br.ibm.com>
10331 Implement support for PowerPC BookE ranged watchpoints.
10333 (struct breakpoint_ops) <resources_needed>: New method.
10334 Initialize to NULL in all existing breakpoint_ops instances.
10335 (struct breakpoint) <exact>: New field.
10336 (target_exact_watchpoints): Declare external global.
10337 * breakpoint.c (target_exact_watchpoints): New global flag.
10338 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10339 b->enable_state to bp_enabled before calling
10340 hw_watchpoint_used_count.
10341 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10342 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10344 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10345 if the watchpoint is exact.
10346 (resources_needed_watchpoint): New function.
10347 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10348 (watch_command_1): Set b->exact if the user asked for an exact
10349 watchpoint and one can be set.
10350 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10351 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10352 the user asks for an exact watchpoint and one can be set. Return
10353 number of needed debug registers to watch the expression.
10354 * gdbtypes.c (is_scalar_type): New function, based on
10355 valprint.c:scalar_type_p.
10356 (is_scalar_type_recursive): New function.
10357 * gdbtypes.h (is_scalar_type_recursive): Declare.
10358 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10359 handle regions when ranged watchpoints are available.
10360 (create_watchpoint_request): New function.
10361 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10362 create_watchpoint_request.
10363 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10364 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10365 `set powerpc' and `show powerpc' commands.
10366 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10367 Mention documentation comment in the target macro.
10368 (target_region_ok_for_hw_watchpoint): Document return value.
10370 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10372 * breakpoint.c (update_watchpoint): Decide on using a software or
10373 hardware watchpoint after the bp_locations are created.
10375 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10377 Convert hardware watchpoints to use breakpoint_ops.
10378 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10379 <insert_location>: ... this. Return int instead of void.
10380 Accept pointer to struct bp_location instead of pointer to
10381 struct breakpoint. Adapt all implementations.
10382 (breakpoint_ops) <remove>: Rename to...
10383 <remove_location>: ... this. Accept pointer to struct bp_location
10384 instead of pointer to struct breakpoint. Adapt all implementations.
10385 * breakpoint.c (insert_catchpoint): Delete function.
10386 (insert_bp_location): Call the watchpoint or catchpoint's
10387 breakpoint_ops.insert method.
10388 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10389 breakpoint_ops.remove method.
10390 (insert_watchpoint, remove_watchpoint): New functions.
10391 (watchpoint_breakpoint_ops): New structure.
10392 (watch_command_1): Initialize the OPS field.
10393 * inf-child.c (inf_child_insert_fork_catchpoint)
10394 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10395 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10396 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10398 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10399 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10400 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10401 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10402 * target.c (update_current_target): Change default implementation of
10403 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10404 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10405 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10406 to_set_syscall_catchpoint to return_one.
10407 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10408 (debug_to_insert_exec_catchpoint): Report return value.
10409 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10410 (to_insert_exec_catchpoint): Change declaration to return int instead
10413 2011-01-11 Michael Snyder <msnyder@vmware.com>
10415 * arm-tdep.c: Internationalization.
10417 * charset.c: Ditto.
10418 * fork-child.c: Ditto.
10419 * nto-procfs.c: Ditto.
10420 * ppc-sysv-tdep.c: Ditto.
10422 * remote-mips.c: Ditto.
10424 * rs6000-nat.c: Ditto.
10425 * rs6000-tdep.c: Ditto.
10429 * xml-support.c: Ditto.
10430 * mi/mi-cmd-break.c: Ditto.
10431 * mi/mi-cmd-var.c: Ditto.
10432 * mi/mi-interp.c: Ditto.
10433 * mi/mi-main.c: Ditto.
10435 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10437 * remote-sim.c (gdbsim_store_register): Update API to
10438 sim_store_register to check more error conditions.
10440 2011-01-10 Michael Snyder <msnyder@vmware.com>
10442 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10443 * nto-tdep.c: Ditto.
10444 * nto-tdep.h: Ditto.
10445 * objc-exp.y: Ditto.
10446 * objc-lang.c: Ditto.
10447 * objfiles.c: Ditto.
10448 * objfiles.h: Ditto.
10449 * observer.c: Ditto.
10450 * opencl-lang.c: Ditto.
10453 * parser-defs.h: Ditto.
10456 * posix-hdep.c: Ditto.
10457 * ppcbug-rom.c: Ditto.
10458 * ppc-linux-nat.c: Ditto.
10459 * ppc-linux-tdep.c: Ditto.
10460 * ppc-linux-tdep.h: Ditto.
10461 * ppcnbsd-tdep.c: Ditto.
10462 * ppcobsd-tdep.c: Ditto.
10463 * ppcobsd-tdep.h: Ditto.
10464 * ppc-sysv-tdep.c: Ditto.
10465 * ppc-tdep.h: Ditto.
10466 * printcmd.c: Ditto.
10467 * proc-abi.c: Ditto.
10468 * proc-flags.c: Ditto.
10470 * proc-utils.h: Ditto.
10471 * progspace.h: Ditto.
10472 * prologue-value.c: Ditto.
10473 * prologue-value.h: Ditto.
10474 * psympriv.h: Ditto.
10475 * psymtab.c: Ditto.
10476 * p-typeprint.c: Ditto.
10477 * p-valprint.c: Ditto.
10478 * ravenscar-sparc-thread.c: Ditto.
10479 * ravenscar-thread.c: Ditto.
10480 * ravenscar-thread.h: Ditto.
10482 * regcache.c: Ditto.
10483 * regcache.h: Ditto.
10485 * remote-fileio.c: Ditto.
10486 * remote-fileio.h: Ditto.
10488 * remote-m32r-sdi.c: Ditto.
10489 * remote-mips.c: Ditto.
10490 * remote-sim.c: Ditto.
10491 * rs6000-aix-tdep.c: Ditto.
10492 * rs6000-nat.c: Ditto.
10493 * rs6000-tdep.c: Ditto.
10495 2011-01-10 Michael Snyder <msnyder@vmware.com>
10497 * charset.c (validate): Internationalization.
10498 * coffread.c (read_one_sym): Ditto.
10499 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10500 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10501 * inflow.c (new_tty): Ditto.
10502 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10503 * m32c-tdep.c (m32c_return_value): Ditto.
10504 * mep-tdep.c (mep_store_return_value): Ditto.
10505 * score-tdep.c (score7_fetch_insn): Ditto.
10506 * ser-mingw.c (pipe_windows_open): Ditto.
10507 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10508 * spu-tdep.c (spu_register_type): Ditto.
10509 * tracepoint.c (trace_find_command): Ditto.
10510 * valarith.c (value_pos): Ditto.
10512 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10514 * ada-valprint.c (printstr): Minor comment reformatting.
10516 2011-01-08 Michael Snyder <msnyder@vmware.com>
10518 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10521 2011-01-08 Michael Snyder <msnyder@vmware.com>
10523 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10524 * hppa-hpux-tdep.c: Ditto.
10525 * hppa-linux-nat.c: Ditto.
10526 * hppa-linux-tdep.c: Ditto.
10527 * hppanbsd-tdep.c: Ditto.
10528 * hppa-tdep.c: Ditto.
10529 * hppa-tdep.h: Ditto.
10530 * hpux-thread.c: Ditto.
10531 * i386-cygwin-tdep.c: Ditto.
10532 * i386-darwin-nat.c: Ditto.
10533 * i386gnu-nat.c: Ditto.
10534 * i386-linux-nat.c: Ditto.
10535 * i386-linux-tdep.c: Ditto.
10536 * i386-nat.c: Ditto.
10537 * i386-nat.h: Ditto.
10538 * i386nbsd-tdep.c: Ditto.
10539 * i386-sol2-nat.c: Ditto.
10540 * i386-stub.c: Ditto.
10541 * i386-tdep.c: Ditto.
10542 * i386-tdep.h: Ditto.
10543 * i387-tdep.c: Ditto.
10544 * ia64-linux-nat.c: Ditto.
10545 * ia64-linux-tdep.c: Ditto.
10546 * ia64-tdep.c: Ditto.
10547 * infcall.c: Ditto.
10548 * infcall.h: Ditto.
10550 * inferior.c: Ditto.
10551 * inferior.h: Ditto.
10552 * infloop.c: Ditto.
10555 * interps.c: Ditto.
10556 * interps.h: Ditto.
10557 * iq2000-tdep.c: Ditto.
10558 * irix5-nat.c: Ditto.
10562 * jv-lang.c: Ditto.
10563 * jv-lang.h: Ditto.
10564 * jv-typeprint.c: Ditto.
10565 * jv-valprint.c: Ditto.
10566 * language.c: Ditto.
10567 * language.h: Ditto.
10568 * linespec.c: Ditto.
10569 * linux-fork.c: Ditto.
10570 * linux-nat.c: Ditto.
10571 * linux-thread-db.c: Ditto.
10572 * lm32-tdep.c: Ditto.
10574 2011-01-08 Michael Snyder <msnyder@vmware.com>
10576 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10577 * m2-lang.c: Ditto.
10578 * m2-typeprint.c: Ditto.
10579 * m2-valprint.c: Ditto.
10580 * m32c-tdep.c: Ditto.
10581 * m32r-linux-nat.c: Ditto.
10582 * m32r-rom.c: Ditto.
10583 * m32r-tdep.c: Ditto.
10584 * m32r-tdep.h: Ditto.
10585 * m68hc11-tdep.c: Ditto.
10586 * m58klinux-nat.c: Ditto.
10587 * m68k-tdep.c: Ditto.
10588 * m88k-tdep.c: Ditto.
10589 * m88k-tdep.h: Ditto.
10590 * machoread.c: Ditto.
10591 * macrocmd.c: Ditto.
10592 * macroexp.c: Ditto.
10593 * macrotab.c: Ditto.
10596 * mdebugread.c: Ditto.
10597 * mdebugread.h: Ditto.
10598 * memattr.c: Ditto.
10599 * memattr.h: Ditto.
10600 * memory-map.h: Ditto.
10601 * mep-tdep.c: Ditto.
10602 * microblaze-rom.c: Ditto.
10603 * microblaze-tdep.c: Ditto.
10604 * minsyms.c: Ditto.
10605 * mips-irix-tdep.c: Ditto.
10606 * mips-linux-nat.c: Ditto.
10607 * mips-linux-tdep.c: Ditto.
10608 * mips-linux-tdep.h: Ditto.
10609 * mipsnbsd-nat.c: Ditto.
10610 * mipsnbsd-tdep.c: Ditto.
10611 * mipsread.c: Ditto.
10612 * mips-tdep.c: Ditto.
10613 * mips-tdep.h: Ditto.
10614 * mn10300-linux-tdep.c: Ditto.
10615 * mn10300-tdep.c: Ditto.
10616 * mn10300-tdep.h: Ditto.
10617 * monitor.c: Ditto.
10618 * monitor.h: Ditto.
10619 * moxie-tdep.c: Ditto.
10620 * moxie-tdep.h: Ditto.
10621 * mt-tdep.c: Ditto.
10623 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10625 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10627 2011-01-08 Robert Millan <rmh@gnu.org>
10629 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10631 2011-01-07 Michael Snyder <msnyder@vmware.com>
10633 * charset.c (_initialize_charset): Fix typo in string.
10635 2011-01-07 Michael Snyder <msnyder@vmware.com>
10637 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10639 * tui/tui-layout.c (tui_set_layout_for_display_command):
10640 Split line so that operator goes to beginning of line.
10641 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10642 assignment out of if statement.
10644 2011-01-07 Michael Snyder <msnyder@vmware.com>
10646 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10647 * ada-lang.h: Ditto.
10648 * ada-tasks.c: Ditto.
10649 * ada-valprint.c: Ditto.
10650 * aix-threads.c: Ditto.
10651 * alpha-linux-nat.c: Ditto.
10652 * alpha-linux-tdep.c: Ditto.
10653 * alpha-mdebug-tdep.c: Ditto.
10654 * alpha-nat.c: Ditto.
10655 * alpha-osf1-tdep.c: Ditto.
10656 * alpha-tdep.c: Ditto.
10657 * alphabsd-nat.c: Ditto.
10658 * alphabsd-tdep.c: Ditto.
10659 * amd64-darwin-tdep.c: Ditto.
10660 * amd64-linux-nat.c: Ditto.
10661 * amd64-linux-tdep.c: Ditto.
10662 * amd64-sol2-tdep.c: Ditto.
10663 * amd64-tdep.c: Ditto.
10664 * amd64-fbsd-tdep.c: Ditto.
10665 * amd64-nbsd-tdep.c: Ditto.
10666 * amd64-obsd-tdep.c: Ditto.
10667 * amd64-linux-nat.c: Ditto.
10668 * amd64-linux-tdep.c: Ditto.
10669 * arm-tdep.c: Ditto.
10670 * arm-tdep.h: Ditto.
10671 * armnbsd-nat.c: Ditto.
10672 * avr-tdep.c: Ditto.
10673 * bfin-tdep.c: Ditto.
10674 * bsd-kvm.c: Ditto.
10675 * c-typeprintc: Ditto.
10676 * c-valprint.c: Ditto.
10677 * coff-pe-read.h: Ditto.
10678 * coffreead.c: Ditto.
10679 * cris-tdep.c: Ditto.
10681 * darwin-nat-info.c: Ditto.
10682 * darwin-nat.c: Ditto.
10683 * dbug-rom.c: Ditto.
10684 * dbxread.c: Ditto.
10687 * dec-thread.c: Ditto.
10689 * demangle.c: Ditto.
10690 * dicos-tdep.c: Ditto.
10691 * dictionary.c: Ditto.
10692 * dictionary.h: Ditto.
10693 * dink32-rom.c: Ditto.
10695 * doublest.c: Ditto.
10697 * dummy-frame.c: Ditto.
10698 * dwarf2-frame.c: Ditto.
10699 * dwarf2expr.c: Ditto.
10700 * dwarf2loc.c: Ditto.
10701 * dwarf2read.c: Ditto.
10702 * elfread.c: Ditto.
10703 * environ.c: Ditto.
10705 * event-top.h: Ditto.
10706 * exceptions.c: Ditto.
10707 * exceptions.h: Ditto.
10709 * expprint.c: Ditto.
10710 * expression.h: Ditto.
10714 * f-typeprint.c: Ditto.
10715 * f-valprint.c: Ditto.
10716 * fbsd-nat.c: Ditto.
10717 * findvar.c: Ditto.
10718 * fork-child.c: Ditto.
10721 * frv-linux-tdep.c: Ditto.
10722 * frv-tdep.c: Ditto.
10724 * gdb-stabs.h: Ditto.
10725 * gdb_assert.h: Ditto.
10726 * gdb_string.h: Ditto.
10727 * gdb_thread_db.h: Ditto.
10728 * gdb_wait.h: Ditto.
10729 * gdbarch.sh: Ditto.
10730 * gdbcore.h: Ditto.
10731 * gdbthread.h: Ditto.
10732 * gdbtypes.c: Ditto.
10733 * gdbtypes.h: Ditto.
10734 * gnu-nat.c: Ditto.
10735 * gnu-nat.h: Ditto.
10736 * gnu-v2-abi.c: Ditto.
10737 * gnu-v3-abi.c: Ditto.
10738 * go32-nat.c: Ditto.
10739 * gdbarch.c: Regenerate.
10740 * gdbarch.h: Regenerate.
10742 2011-01-07 Michael Snyder <msnyder@vmware.com>
10744 * ax-gdb.c: Adjust some long output strings.
10745 * breakpoint.c: Ditto.
10746 * charset.c: Ditto.
10748 * infcall.c: Ditto.
10750 * linux-nat.c: Ditto.
10751 * solib-pa64.c: Ditto.
10752 * solib-som.c: Ditto.
10754 2011-01-06 Tom Tromey <tromey@redhat.com>
10758 * python/python.c (GdbMethods): Add "newest_frame" method.
10759 * python/python-internal.h (gdbpy_newest_frame): Declare.
10760 * python/py-frame.c (gdbpy_newest_frame): New function.
10762 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10764 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10765 * jit.c (jit_debug): New variable.
10766 (show_jit_debug): New function.
10767 (struct target_buffer): Use ULONGEST.
10768 (bfd_open_from_target_memory): Likewise.
10769 (jit_register_code, jit_inferior_init): Add debug output.
10770 (_initialize_jit): Register "debug jit" command.
10772 2011-01-06 Tom Tromey <tromey@redhat.com>
10774 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10775 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10778 2011-01-06 Tom Tromey <tromey@redhat.com>
10780 * python/py-frame.c (frapy_block): Use get_frame_block.
10782 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10784 Do not stop on SIGPRIO signals by default
10785 * infrun.c (_initialize_infrun): Unset signal_stop and
10786 signal_print for TARGET_SIGNAL_PRIO.
10788 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10790 * ada-tasks.c: Fix style violation in comment.
10792 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10794 * linespec.c (decode_compound, find_method): Remove trailing \n
10795 at end of error string.
10796 * solib-irix.c (irix_current_sos): Likewise.
10797 * varobj.c (uninstall_variable): Likewise.
10799 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10801 * copyright.py: New script.
10802 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10803 Launch emacs without exec'ing. Call copyright.py afterwards.
10805 2011-01-05 Michael Snyder <msnyder@vmware.com>
10807 * addrmap.c: Shorten lines of >= 80 columns.
10808 * arch-utils.c: Ditto.
10809 * arch-utils.h: Ditto.
10811 * ax-general.c: Ditto.
10813 * blockframe.c: Ditto.
10814 * breakpoint.c: Ditto.
10815 * buildsym.c: Ditto.
10817 * c-typeprint.c: Ditto.
10818 * charset.c: Ditto.
10819 * coffread.c: Ditto.
10820 * command.h: Ditto.
10821 * corelow.c: Ditto.
10823 * cp-namespace.c: Ditto.
10824 * cp-support.c: Ditto.
10825 * dbug-rom.c: Ditto.
10826 * dbxread.c: Ditto.
10830 * dictionary.c: Ditto.
10832 * doublest.c: Ditto.
10833 * dwarf2-frame.c: Ditto.
10834 * dwarf2expr.c: Ditto.
10835 * dwarf2loc.c: Ditto.
10836 * dwarf2read.c: Ditto.
10837 * elfread.c: Ditto.
10839 * event-loop.c: Ditto.
10840 * event-loop.h: Ditto.
10841 * exceptions.h: Ditto.
10843 * expprint.c: Ditto.
10844 * expression.h: Ditto.
10846 * f-valprint.c: Ditto.
10847 * findcmd.c: Ditto.
10848 * frame-base.c: Ditto.
10849 * frame-unwind.c: Ditto.
10850 * frame-unwind.h: Ditto.
10854 * gdb-stabs.h: Ditto.
10855 * gdb_assert.h: Ditto.
10856 * gdb_dirent.h: Ditto.
10857 * gdb_obstack.h: Ditto.
10858 * gdbcore.h: Ditto.
10859 * gdbtypes.c: Ditto.
10860 * gdbtypes.h: Ditto.
10861 * inf-ttrace.c: Ditto.
10862 * infcall.c: Ditto.
10866 * inline-frame.h: Ditto.
10867 * language.c: Ditto.
10868 * language.h: Ditto.
10869 * libunwind-frame.c: Ditto.
10870 * libunwind-frame.h: Ditto.
10871 * linespec.c: Ditto.
10872 * linux-nat.c: Ditto.
10873 * linux-nat.h: Ditto.
10874 * linux-thread-db.c: Ditto.
10875 * machoread.c: Ditto.
10876 * macroexp.c: Ditto.
10877 * macrotab.c: Ditto.
10880 * mdebugread.c: Ditto.
10881 * memattr.c: Ditto.
10882 * minsyms.c: Ditto.
10883 * monitor.c: Ditto.
10884 * monitor.h: Ditto.
10885 * objfiles.c: Ditto.
10886 * objfiles.h: Ditto.
10888 * p-typeprint.c: Ditto.
10889 * p-valprint.c: Ditto.
10891 * printcmd.c: Ditto.
10892 * proc-events.c: Ditto.
10894 * progspace.c: Ditto.
10895 * progspace.h: Ditto.
10896 * psympriv.h: Ditto.
10897 * psymtab.c: Ditto.
10899 * regcache.c: Ditto.
10900 * regcache.h: Ditto.
10901 * remote-fileio.c: Ditto.
10903 * ser-mingw.c: Ditto.
10904 * ser-tcp.c: Ditto.
10905 * ser-unix.c: Ditto.
10908 * solib-frv.c: Ditto.
10909 * solib-irix.c: Ditto.
10910 * solib-osf.c: Ditto.
10911 * solib-pa64.c: Ditto.
10912 * solib-som.c: Ditto.
10913 * solib-sunos.c: Ditto.
10914 * solib-svr4.c: Ditto.
10915 * solib-target.c: Ditto.
10917 * somread.c: Ditto.
10919 * stabsread.c: Ditto.
10920 * stabsread.c: Ditto.
10923 * symfile-mem.c: Ditto.
10924 * symfile.c: Ditto.
10925 * symfile.h: Ditto.
10926 * symmisc.c: Ditto.
10929 * target-descriptions.c: Ditto.
10930 * target-memory.c: Ditto.
10933 * terminal.h: Ditto.
10936 * tracepoint.c: Ditto.
10937 * tracepoint.h: Ditto.
10938 * ui-file.c: Ditto.
10939 * ui-file.h: Ditto.
10941 * user-regs.c: Ditto.
10942 * user-regs.h: Ditto.
10944 * valarith.c: Ditto.
10946 * valprint.c: Ditto.
10947 * valprint.h: Ditto.
10952 * xcoffread.c: Ditto.
10953 * xcoffsolib.c: Ditto.
10954 * xcoffsolib.h: Ditto.
10955 * xml-syscall.c: Ditto.
10956 * xml-tdesc.c: Ditto.
10958 2011-01-05 Michael Snyder <msnyder@vmware.com>
10960 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10961 * cli/cli-decode.c: Ditto.
10962 * cli/cli-dump.c: Ditto.
10963 * cli/cli-logging.c: Ditto.
10964 * cli/cli-script.c: Ditto.
10965 * cli/cli-setshow.c: Ditto.
10966 * common/signals.c: Ditto.
10967 * mi/mi-cmd-break.c: Ditto.
10968 * mi/mi-cmd-disas.c: Ditto.
10969 * mi/mi-cmd-stack.c: Ditto.
10970 * mi/mi-cmd-var.c: Ditto.
10971 * mi/mi-cmds.c: Ditto.
10972 * mi/mi-common.h: Ditto.
10973 * mi/mi-console.c: Ditto.
10974 * mi/mi-interp.c: Ditto.
10975 * mi/mi-main.c: Ditto.
10976 * osf-share/cma_attr.c: Ditto.
10977 * osf-share/cma_deb_core.h: Ditto.
10978 * osf-share/cma_debug_client.h: Ditto.
10979 * osf-share/cma_handle.h: Ditto.
10980 * osf-share/cma_mutex.h: Ditto.
10981 * osf-share/cma_stack_int.h: Ditto.
10982 * osf-share/cma_tcb_defs.h: Ditto.
10983 * python/py-auto-load.c: Ditto.
10984 * python/py-breakpoint.c: Ditto.
10985 * python/py-cmd.c: Ditto.
10986 * python/py-frame.c: Ditto.
10987 * python/py-objfile.c: Ditto.
10988 * python/py-param.c: Ditto.
10989 * python/py-progspace.c: Ditto.
10990 * python/py-symbol.c: Ditto.
10991 * python/py-value.c: Ditto.
10992 * python/python-internal.h: Ditto.
10993 * python/python.c: Ditto.
10994 * tui/tui-data.c: Ditto.
10995 * tui/tui-disasm.c: Ditto.
10996 * tui/tui-hooks.c: Ditto.
10997 * tui/tui-io.c: Ditto.
10998 * tui/tui-layout.c: Ditto.
10999 * tui/tui-regs.c: Ditto.
11000 * tui/tui-source.c: Ditto.
11001 * tui/tui-stack.c: Ditto.
11002 * tui/tui-win.c: Ditto.
11003 * tui/tui-windata.c: Ditto.
11004 * tui/tui-winsource.c: Ditto.
11006 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11008 * configure.ac, gdb.1: Copyright year update.
11010 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11012 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11013 this_pc_in_block, morestack_msym and morestack_name. Check for
11014 "__morestack" minimal symbol there.
11016 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11018 * symfile.c (find_sym_fns): Add call to dont_repeat.
11020 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11022 Copyright year update in most files (performed by copyright.sh).
11024 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11026 * top.c (print_gdb_version): Update copyright year in version output.
11028 For older changes see ChangeLog-2010.
11034 version-control: never