1 2011-11-14 Yao Qi <yao@codesourcery.com>
3 * target.h (struct target): <to_download_tracepoint> Change type
4 of parameter from tracepoint to bp_location.
5 * target.c (update_current_target): Update.
6 * tracepoint.c (start_tracing): Update.
7 * remote.c (remote_download_tracepoint): Remove loop for each location
10 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
12 * i386-nat.c (i386_insert_hw_breakpoint): Call
13 i386_update_inferior_debug_regs.
14 (i386_remove_hw_breakpoint): Likewise.
16 2011-11-14 Yao Qi <yao@codesourcery.com>
18 * breakpoint.c (init_raw_breakpoint): Call
19 add_location_to_breakpoint to replace duplicated code.
20 (add_location_to_breakpoint): Adjust the breakpoint's
21 address prior to allocating a location.
23 2011-11-12 Matt Rice <ratmice@gmail.com>
25 * macrocmd.c (macro_no_macro_info): New function.
26 (macro_expand_command): Use macro_no_macro_info.
27 (macro_expand_once_command): Ditto.
28 (info_macro_command): Add argument processing,
29 move info_definitions_command here.
30 (_initialize_macrocmd): Remove info definitions command.
31 Add arguments to info macro help text.
32 * NEWS: Replace info definitions command with new info macro options.
34 2011-11-11 Keith Seitz <keiths@redhat.com>
37 * linespec.c (locate_first_half): Keep ':' if it looks
38 like it could be part of a Windows path starting with
41 2011-11-10 Pedro Alves <pedro@codesourcery.com>
43 * linux-nat.c (linux_nat_wait): Don't force waking up the event
44 loop when returning a TARGET_WAITKIND_NO_RESUMED.
46 2011-11-10 Pedro Alves <pedro@codesourcery.com>
48 * target.c (target_waitstatus_to_string): Handle
49 TARGET_WAITKIND_NO_RESUMED.
51 2011-11-10 Doug Evans <dje@google.com>
53 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
55 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
56 (map_partial_symbol_filenames): Ditto. All callers updated.
57 * psymtab.h (map_partial_symbol_filenames): Update prototype.
58 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
59 parameter need_fullname.
61 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
62 * source.c (symtab_to_fullname): Ditto.
64 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
65 * gdb-demangle.h: ... here. New file.
66 * demangle.c: #include "gdb-demangle.h".
67 (_initialize_demangler): Use initialize_file_ftype for prototype.
68 Move "set demangle" and "set asm-demangle" parameters here from utils.c
69 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
71 * utils.c: Update. #include "gdb-demangle.h".
72 * symtab.h (asm_demangle): Delete.
73 (demangle): Move declaration next to use.
74 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
75 * dwarf2read.c: #include "gdb-demangle.h".
76 * gnu-v2-abi.c: Ditto.
77 * jv-typeprint.c: Ditto.
78 * mdebugread.c: Ditto.
79 * p-typeprint.c: Ditto.
82 (asm_demangle): Delete declaration.
83 * tui/tui-stack.c: #include "gdb-demangle.h".
85 * python/py-type.c (typy_fields_items): Call check_typedef.
87 2011-11-10 Joel Brobecker <brobecker@adacore.com>
89 * findvar.c (read_frame_register_value): Read the correct bytes
90 from registers on big-endian architectures.
92 2011-11-10 Tom Tromey <tromey@redhat.com>
94 * procfs.c (load_syscalls): Make a cleanup.
95 (open_procinfo_files): fd==0 is ok.
97 2011-11-10 Joel Brobecker <brobecker@adacore.com>
99 * procfs.c (iterate_over_mappings): Call do_cleanups before
102 2011-11-09 Doug Evans <dje@google.com>
104 * gdbtypes.c (check_typedef): Document that this function can
107 2011-11-09 Tom Tromey <tromey@redhat.com>
110 * valops.c (value_full_object): Return early if real type is
111 smaller than the enclosing type.
113 2011-11-08 Yao Qi <yao@codesourcery.com>
115 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
117 2011-11-08 Meador Inge <meadori@codesourcery.com>
119 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
120 register when the frame can't be determined.
121 * arm-tdep.c (arm_analyze_prologue): Ditto.
123 2011-11-07 Stan Shebs <stan@codesourcery.com>
125 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
127 2011-11-07 Joel Brobecker <brobecker@adacore.com>
129 * infrun.c (handle_inferior_event): Minor reformatting.
131 2011-11-05 Doug Evans <dje@google.com>
133 * source.c (forget_cached_source_info_for_objfile): Move call to
134 objfile->sf->qf->forget_cached_source_info outside of
135 ALL_OBJFILE_SYMTABS loop.
136 (forget_cached_source_info): Delete unused variable `s'.
138 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
140 * i386-nat.c (dr_ref_count): Remove unused variable.
142 2011-11-05 Doug Evans <dje@google.com>
144 * main.c (captured_main): Set lim_at_start before calling
145 make_command_stats_cleanup.
147 2011-11-04 Doug Evans <dje@google.com>
149 * utils.c: #include "timeval-utils.h".
150 (cmd_stats): Rename start_time to start_cpu_time.
151 New member start_wall_time.
152 (report_command_stats): Report wall time.
153 (make_command_stats_cleanup): Record start wall time.
155 2011-11-04 Tom Tromey <tromey@redhat.com>
157 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
159 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
161 * coff-pe-read.c: Include defs.h before bfd.h.
163 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
167 * python/python.c (python_run_simple_file): Expand tilde in path.
169 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
173 * python/py-type.c (typy_lookup_type): Do not return a type in
174 an exception handler.
176 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
177 Eli Zaretskii <eliz@gnu.org>
179 * linux-nat.c (_initialize_linux_nat): Improve help
180 for `info proc stat', `info proc status', `info proc cwd',
181 `info proc cmdline' and `info proc exe'.
183 2011-11-02 Stan Shebs <stan@codesourcery.com>
185 String collection for tracepoints.
186 * NEWS: Mention string collection.
187 * common/ax.def (tracenz): New bytecode.
188 * ax-gdb.h (trace_string_kludge): Declare.
189 * ax-gdb.c: Include valprint.h and c-lang.h.
190 (trace_string_kludge): New global.
191 (gen_traced_pop): Add string case.
192 (agent_command): Add string case.
193 * tracepoint.h (decode_agent_options): Declare.
194 * tracepoint.c: Include cli-utils.h.
195 (decode_agent_options): New function.
196 (validate_actionline): Call it.
197 (encode_actions_1): Ditto.
198 * target.h (struct target_ops): New method to_supports_string_tracing.
199 (target_supports_string_tracing): New macro.
200 * target.c (update_current_target): Add to_supports_string_tracing.
201 * remote.c (struct remote_state): New field string_tracing.
202 (remote_string_tracing_feature): New function.
203 (remote_protocol_features): New feature tracenz.
204 (remote_supports_string_tracing): New function.
205 (init_remote_ops): Set to_supports_string_tracing.
207 2011-11-02 Pedro Alves <pedro@codesourcery.com>
208 Jan Kratochvil <jan.kratochvil@redhat.com>
210 * linux-nat.c: Include cli/cli-utils.h.
211 (enum info_proc_what): New.
212 (linux_nat_info_proc_cmd): Rename to ...
213 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
214 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
215 status_f and stat_f from WHAT. Throw error on extra parameters.
216 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
217 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
218 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
219 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
220 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
221 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
222 `info proc cmdline', `info proc exe' and `info proc all' as real
223 subcommands of `info proc'.
225 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
227 * Makefile.in: (SFILES): Add skip.c.
228 (HFILES_NO_SRCDIR): Add skip.h.
229 (COMMON_OBS): Add skip.o.
230 * skip.h, skip.c: New.
231 * breakpoint.h (set_default_breakpoint): Remove.
232 (get_sal_arch): Declare.
233 * breakpoint.c: Remove default_breakpoint_valid,
234 default_breakpoint_address, default_breakpoint_symtab,
235 default_breakpoint_line, default_breakpoint_pspace variables.
236 (get_sal_arch): Make public.
237 (set_default_breakpoint): Remove.
238 (parse_breakpoint_sals, create_breakpoint, clear_command,
239 decode_line_spec_1): Remove uses of default_breakpoint variables;
240 replaced with function calls into stack.c.
241 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
242 * cli/cli-cmds.c: Add skiplist.
243 (init_cmd_lists): Initialize skiplist.
244 (init_cli_cmds): Fix comment (classes of commands appear in
246 * infrun.c (handle_inferior_event): Add check that we don't step into
247 a function whose pc is marked for skip.
248 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
249 last_displayed_addr, last_displayed_symtab, last_displayed_line
251 (set_last_displayed_sal): New static function.
252 (print_frame_info): Switch call to set_default_breakpoint to call to
253 set_last_displayed_sal.
254 (clear_last_displayed_sal, last_displayed_sal_is_valid,
255 get_last_displayed_pspace, get_last_displayed_addr,
256 get_last_displayed_symtab, get_last_displayed_line,
257 get_last_displayed_sal): New public functions.
258 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
259 get_last_displayed_pspace, get_last_displayed_addr,
260 get_last_displayed_symtab, get_last_displayed_line,
261 get_last_displayed_sal): Declare.
263 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
265 * MAINTAINERS (Write After Approval): Add myself to the list.
267 2011-10-29 Yao Qi <yao@codesourcery.com>
269 * infcmd.c (disconnect_command): Call disconnect_tracing.
271 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
274 * symtab.c (skip_prologue_sal): Code reformatting.
276 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
279 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
280 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
283 2011-10-28 Pedro Alves <pedro@codesourcery.com>
285 * linux-nat.c (linux_nat_filter_event): Remove `options'
286 parameter, and dead code that used it. If we're handling a
287 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
288 in our lwp list, re-add it.
289 (check_zombie_leaders): New.
290 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
291 wait for children with WNOHANG, and always wait for all children.
292 Don't check for no resumed children upfront. Simplify wait loop.
293 Check for zombie thread group leaders after handling all wait
294 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
295 unwaited-for children left.
296 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
297 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
298 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
299 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
301 2011-10-28 Sterling Augustine <saugustine@google.com>
303 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
304 * symtab.c (free_completion_list): New function.
305 (do_free_completion_list): Likewise.
306 (default_make_symbol_completion_list_break_on): New variable
307 back_to. Call make_cleanup and discard_cleanups.
308 (make_source_files_completion_list): Likewise.
310 2011-10-28 Paul Koning <paul_koning@dell.com>
312 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
313 * NEWS: Mention deep_items.
315 2011-10-28 Alen Skondro <askondro@gmail.com>
317 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
320 2011-10-27 Meador Inge <meadori@codesourcery.com>
322 * MAINTAINERS (Write After Approval): Add myself to the list.
324 2011-10-27 Joel Brobecker <brobecker@adacore.com>
326 * value.h (read_frame_register_value): Add declaration.
327 * findvar.c (read_frame_register_value): New function.
328 (value_from_register): Use read_frame_register_value
329 instead of get_frame_register_value + value_contents_copy
330 to get value contents.
332 2011-10-27 Doug Evans <dje@google.com>
334 * cli/cli-cmds.c (source_script_with_search): Pass full path to
335 source_script_from_stream if it may have been found on the search path.
336 * python/py-auto-load.c (source_section_scripts): Pass full path to
337 source_python_script_for_objfile.
338 * python/python.c (source_python_script): Delete stream parameter.
340 (source_python_script_for_objfile): Ditto.
341 * python/python-internal.h (source_python_script_for_objfile): Update.
342 * python/python.h (source_python_script): Update.
344 2011-10-27 Tom Tromey <tromey@redhat.com>
346 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
347 (ada_sals_for_line): Remove declarations.
349 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
351 Move unwind reasons to an external .def file
352 * frame.c (frame_stop_reason_string): Rewrite using
353 unwind_stop_reasons.def.
354 * frame.h (enum unwind_stop_reason): Likewise.
355 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
356 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
357 constants for bound-checking.
358 * unwind_stop_reasons.def: New file.
359 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
360 instead of a distinct value.
362 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
366 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
367 (convert_values_to_python): Return on Python tuple allocation
368 failure. Return NULL on value conversion error.
370 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
372 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
373 (bppy_set_task): Ditto.
374 (bppy_delete_breakpoint): Ditto.
375 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
376 (gdbpy_lookup_global_symbol): Ditto.
377 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
378 * python/py-frame.c (frapy_is_valid): Ditto.
379 (frame_info_to_frame_object): Ditto.
380 * python/py-type.c (typy_lookup_type): Ditto.
381 (typy_getitem): Ditto.
382 (typy_has_key): Ditto.
383 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
385 2011-10-26 Joel Brobecker <brobecker@adacore.com>
387 * gdbarch.h: Regenerate.
389 2011-10-26 Meador Inge <meadori@codesourcery.com>
391 * gdbarch.sh (function_list): Use 'pstring' when printing
393 * gdbarch.c: Regenerate.
395 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
397 * regcache.c (registers_changed_ptid): Invalidate thread architecture
398 and frame caches if PTID refers to all threads of a process.
400 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
402 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
403 to create_breakpoint.
405 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
407 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
408 (ppc_sysv_abi_push_dummy_call): Use it.
409 (do_ppc_sysv_return_value): Likewise.
410 (ppc64_sysv_abi_push_dummy_call): Likewise.
411 (ppc64_sysv_abi_return_value): Likewise.
413 2011-10-26 Paul Koning <paul_koning@dell.com>
415 * python/lib/gdb/types.py (deepitems): New function.
417 2011-10-25 Paul Koning <paul_koning@dell.com>
421 * python/py-value.c (value_to_value_object): Remove fetching of
422 the value if it was lazy.
423 (valpy_get_is_lazy): New function.
424 (valpy_fetch_lazy): New function.
426 2011-10-24 Joel Brobecker <brobecker@adacore.com>
428 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
429 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
431 2011-10-24 Pedro Alves <pedro@codesourcery.com>
433 * linux-nat.c (linux_handle_extended_wait): When handling a clone
434 event, in non-stop, if not stopping, make sure the new lwp has
435 last_resume_kind set to resume_continue. Assert that when we're
436 resuming the new lwp, its last_resume_kind is resume_continue.
438 2011-10-24 Pedro Alves <pedro@codesourcery.com>
440 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
441 already set when marking the event thread as not executing in
444 2011-10-24 Pedro Alves <pedro@codesourcery.com>
446 * infrun.c (handle_inferior_event): Add debug output for
447 TARGET_WAITKIND_NO_HISTORY.
449 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
451 * NEWS: Move set/show extended-prompt to "New Options". Expand
452 description. Fix typos.
454 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
458 * python/py-param.c (call_doc_function): Correctly deference on
461 2011-10-21 Joel Brobecker <brobecker@adacore.com>
463 * ada-tasks.c (print_ada_task_info): Fix computation of
464 number of tasks displayed in command output.
466 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
467 Ulrich Weigand <uweigand@de.ibm.com>
469 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
470 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
471 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
472 gdbarch_pc_regnum and frame_unwind_register_unsigned by
475 2011-10-20 Cary Coutant <ccoutant@google.com>
477 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
479 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
480 flag. Adjust all callers.
481 (process_psymtab_comp_unit): Remove adjustment for type section.
483 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
485 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
486 arguments by adding OBJFILE. Instead of getting objfile from
487 symbol's symtab, use new argument OBJFILE.
488 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
489 arguments by adding OBJFILE.
490 * gdb/dwarf2read.c (new_symbol_full): Change call to
491 cp_scan_for_anonymous_namespaces to match new signature.
492 * gdb/stabsread.c (define_symbol): Change call to
493 cp_scan_for_anonymous_namespaces to match new signature.
495 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
500 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
502 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
503 leak. Delete unused variables.
505 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
509 * python/py-frame.c (frapy_read_var): Use const struct *block.
510 * python/py-type.c (typy_lookup_typename): Likewise.
511 (typy_lookup_type): Likewise.
512 (typy_legacy_template_argument): Likewise.
513 (typy_template_argument): Likewise.
514 (gdbpy_lookup_type): Likewise.
515 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
516 * python/py-block.c (blpy_block_object): Likewise.
517 (blpy_iter): Likewise.
518 (blpy_get_start): Likewise.
519 (blpy_get_end): Likewise.
520 (blpy_get_function): Likewise.
521 (blpy_get_superblock): Likewise.
522 (set_block): Likewise.
523 (block_to_block_object): Likewise.
524 (block_object_to_block): Likewise.
525 (blpy_is_valid): Likewise.
526 (blpy_get_global_block): New function.
527 (blpy_get_static_block): New function.
528 (blpy_is_global): New function.
529 (blpy_is_static): New function.
530 * blockframe.c (block_innermost_frame): Likewise.
531 * valops.c (value_of_variable): Likewise.
532 * frame.h: Update prototypes.
533 * python/python-internal.h: Likewise.
536 2011-10-19 Cary Coutant <ccoutant@google.com>
538 * dwarf2read.c (create_debug_types_hash_table): Fix size of
541 2011-10-19 Cary Coutant <ccoutant@google.com>
543 * dwarf2read.c (peek_abbrev_code): New function.
544 (dw2_get_file_names): Check for dummy compilation units.
545 (create_debug_types_hash_table): Likewise.
546 (process_psymtab_comp_unit): Likewise.
547 (load_partial_comp_unit): Likewise.
548 (load_full_comp_unit): Likewise.
550 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
552 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
553 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
554 pt_phdr if PT_PHDR was found.
556 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
558 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
559 type or "<unnamed type"> when there is no name assigned.
560 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
561 avoid a sigint when no name is assigned.
563 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
566 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
567 * dwarf2expr.c (ctx_no_read_reg): New function.
568 * dwarf2expr.h (ctx_no_read_reg): New declaration.
569 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
570 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
571 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
573 2011-10-16 Doug Evans <dje@google.com>
575 * NEWS: Document python gdb.printing.register_pretty_printer's new
578 2011-10-14 Keith Seitz <keiths@redhat.com>
581 * eval.c (evaluate_subexp_standard): Do not construct
582 an array of types; pass the value array directly to
584 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
585 (rank_function): Take an array of values instead of types.
586 (rank_one_type): Add struct value * parameter.
587 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
588 (rank_function): For each argument, pass the argument's
589 value to rank_one_type.
590 (rank_one_type): Add VALUE parameter.
591 If the parameter type is a pointer and the argument type
592 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
594 Update all calls to rank_one_type, passing NULL for new
596 * valarith.c (value_user_defined_cpp_op): Do not construct
597 an array of types; pass the value array directly to
599 * valops.c (find_overload_method_list): Take an array of
600 values instead of types.
601 Save the type of OBJP for later use.
602 Update calls to find_oload_champ, and find_oload_champ_namespace.
603 (find_oload_champ_namespace): Take an array of values instead
605 (find_oload_champ_namespace_loop): Likewise.
606 (find_oload_champ): Likewise.
607 (classify_oload_match): Inspect all arguments
608 until INCOMPATIBLE is found. Return the worst badness found
610 (compare_parameters): Update call to rank_one_type.
611 * value.h (find_overload_match): Take an array of values instead
614 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
616 Drop lazy lm_info reading.
617 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
618 l_addr_inferior, l_ld, l_next, l_prev and l_name.
619 (lm_info_read): New function.
620 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
621 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
622 lm_dynamic_from_link_map.
623 (lm_next, lm_prev, lm_name): Remove.
624 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
625 initialization incl. read_memory. No longer use lm_name.
626 (svr4_free_so): Drop lm_info->lm freeing.
627 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
628 explicit lm_addr and lm initialization.
629 (svr4_read_so_list): Use lm_info_read, drop the initailization of
630 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
633 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
634 Paul Pluzhnikov <ppluzhnikov@google.com>
636 * defs.h (struct so_list): New forward declaration.
637 (make_cleanup_free_so): New declaration.
638 * solib-svr4.c (ignore_first_link_map_entry): Remove.
639 (svr4_free_so): Move the function here from downwards. Handle NULL
641 (svr4_free_library_list): New.
642 (svr4_read_so_list): New, moved here code from svr4_current_sos.
643 Use more cleanups. Use new parameter ignore_first instead of
644 ignore_first_link_map_entry.
645 (svr4_current_sos): New variable ignore_first, initialize it. New
646 variable back_to, use it for svr4_free_library_list protection.
647 (svr4_free_so): Remove - move upwards.
648 * utils.c: Include solist.h.
649 (do_free_so, make_cleanup_free_so): New functions.
651 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
653 Fix internal error regression.
654 * value.c (value_primitive_field): Handle value_optimized_out. Move
655 packed bitfields comment.
657 2011-10-13 Tom Tromey <tromey@redhat.com>
659 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
662 2011-10-13 Tom Tromey <tromey@redhat.com>
664 * python/py-type.c (typy_has_key): Make 'field' const.
666 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
668 * remote.c (remote_save_trace_data): Invert comparison.
670 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
672 * tracepoint.c (trace_save_command): Use filename instead of
675 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
677 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
680 2011-10-13 Yao Qi <yao@codesourcery.com>
683 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
684 whether insn is a 32-bit Thumb-2 instruction.
685 (thumb_in_function_epilogue_p): Likewise.
686 (thumb_get_next_pc_raw): Likewise.
687 (arm_breakpoint_from_pc): Likewise.
689 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
691 Fix empty DWARF expressions DATA vs. SIZE conditionals.
692 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
693 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
694 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
695 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
697 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
699 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
700 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
701 clear DATA on zero SIZE.
703 2011-10-12 Doug Evans <dje@google.com>
705 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
706 header->first_die_offset here. All callers updated.
708 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
710 Fix compatibility with texinfo versions older than 4.12.
711 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
712 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
713 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
714 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
715 * configure: Regenerate.
716 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
717 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
718 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
720 2011-10-12 Gary Benson <gbenson@redhat.com>
722 * breakpoint.h (pc_at_non_inline_function): Declare.
723 * breakpoint.c (is_non_inline_function,
724 pc_at_non_inline_function): New functions.
725 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
726 if the stop is at a location where functions cannot be inlined.
728 2011-10-12 Pedro Alves <pedro@codesourcery.com>
730 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
731 the core wanted them stopped, or if they now have a pending event
733 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
734 down to stop_and_resume_callback.
735 (linux_nat_wait_1): Always clear `options' when retrying. Handle
736 having new pending events after calling linux_nat_filter_event.
738 2011-10-11 Sterling Augustine <saugustine@google.com>
740 * dwarf2read.c: Undo inadvertent changes in previous commit.
742 2011-10-11 Sterling Augustine <saugustine@google.com>
744 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
747 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
749 * symfile.c (separate_debug_file_exists): Fix condition.
751 2011-10-11 David S. Miller <davem@davemloft.net>
753 * regcache.c (regcache_restore): Do not write unavailable regs, mark
755 * regcache.h (regcache_restore): Remove declaration.
757 * gdbarch.sh: New field 'long_long_align_bit'.
758 * gdbarch.c, gdbarch.h: Regenerate.
759 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
760 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
762 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
765 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
766 Support @entry in input expressions.
767 * c-exp.y (ENTRY, unknown_cpp_name): New.
768 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
769 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
770 (variable: name_not_typename '@' ENTRY, name: ENTRY)
771 (name_not_typename: ENTRY): New.
772 (yylex): Recognize ENTRY.
774 Reimplement @entry in input expressions.
775 * c-exp.y (ENTRY): New.
776 (variable: name_not_typename ENTRY): New.
777 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
779 2011-10-11 Pedro Alves <pedro@codesourcery.com>
781 * linux-nat.c (linux_handle_extended_wait): Always dump both the
782 parent and child's pids as soon as we detect a clone event.
783 Adjust another debug message.
785 2011-10-11 Pedro Alves <pedro@codesourcery.com>
787 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
788 not zombie instead of reading the whole file.
790 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
792 Fix separate debuginfo warning with "remote:" access.
793 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
794 * symfile.c (get_file_crc): New function with the code moved from ...
795 (separate_debug_file_exists): ... this function, specifically variables
796 buffer and count. New variable verified_as_different, set it. Remove
797 file_crc initialization. Verify also if both files are not the same
800 2011-10-11 Yao Qi <yao@codesourcery.com>
802 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
805 2011-10-10 Doug Evans <dje@google.com>
807 * linux-thread-db.c (thread_db_new_objfile): Only try to load
808 libthread_db when we load libpthread or the main symbol file.
809 (thread_db_inferior_created): New function.
810 (_initialize_thread_db): Attach inferior_created observer.
811 * linux-nat.c (linux_child_post_attach): Remove call to
813 (linux_child_post_startup_inferior): Ditto.
814 * objfiles.h (OBJF_MAINLINE): Define.
815 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
816 allocate_objfile when appropriate.
818 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
821 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
822 Remove unused variables.
823 (get_linux_version): Remove function.
824 (_initialize_arm_linux_nat): Do not call it.
826 2011-10-10 Pedro Alves <pedro@codesourcery.com>
828 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
829 new clone lwp if the core asked it to stop. Don't pass on
830 unexpected signals to the new clone; leave them pending instead.
832 2011-10-10 Pedro Alves <pedro@codesourcery.com>
834 * linux-nat.c (resume_lwp): Remove redundant debug output.
836 2011-10-10 Pedro Alves <pedro@codesourcery.com>
838 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
839 last_resume_kind before clearing it, and use the copy instead to
840 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
841 resume_clear_callback in the non-stop path too.
843 2011-10-09 Yao Qi <yao@codesourcery.com>
845 * valprint.c (value_check_printable): Add one parameter OPTIONS.
846 Honor OPTIONS and VAL's type.
847 (common_val_print, value_print): Update to pass one more parameter.
849 2011-10-09 Doug Evans <dje@google.com>
851 Add new "alias" command.
852 * NEWS: Mention new command.
853 * command.h (valid_user_defined_cmd_name_p): Declare.
854 * defs.h (make_cleanup_dyn_string_delete): Declare.
855 * utils.c: #include "dyn-string.h".
856 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
857 * cli/cli-cmds.c: #include "dyn-string.h".
858 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
859 (init_cli_cmds): Add new command.
860 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
862 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
864 Fix compatibility with older GCCs.
865 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
866 * stack.c (read_frame_arg): Initialize val_deref.
868 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
870 Entry values NEWS entries, DWARF disassembly support.
871 * NEWS: New entry values entry.
872 (set print entry-values, show print entry-values)
873 (set debug entry-values, show debug entry-values): New entries.
874 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
875 indent. Remove variable start. Move header printing out. Respect
876 INDENT. Support DW_OP_GNU_entry_value.
877 (locexpr_describe_location_1): Move the header printing here, extend
878 the disassemble_dwarf_expression passed parameters.
880 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
882 Display @entry parameter values even for references.
883 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
884 coerce_ref_if_computed.
885 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
886 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
887 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
888 existing push_dwarf_reg_entry_value call. Add new detection calling
889 dwarf_block_to_dwarf_reg_deref. Update the error message.
890 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
892 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
893 parameter deref_size, describe it in the comment.
894 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
895 (dwarf_block_to_dwarf_reg_deref): New declaration.
896 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
897 deref_size, describe it in the function comment. New variables
898 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
899 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
900 describe it in the function comment. Fetch the alternative block
901 accoring to DEREF_SIZE.
902 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
903 (entry_data_value_free_closure, entry_data_value_funcs): New.
904 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
905 outer_val, target_val, val and addr. Try to fetch and create also
906 referenced value content.
907 (pieced_value_funcs): NULL value for coerce_ref.
908 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
909 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
910 coerce_ref_if_computed.
911 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
912 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
913 * stack.c (read_frame_arg): Compare also dereferenced values.
914 * value.c (value_computed_funcs): Make the parameter v const, use
915 value_lval_const for it.
916 (value_lval_const, coerce_ref_if_computed): New function.
917 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
918 * value.h (struct lval_funcs): New field coerce_ref.
919 (value_computed_funcs): Make the parameter v const.
920 (value_lval_const, coerce_ref_if_computed): New declarations.
922 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
924 Support @entry in input expressions.
925 * c-exp.y (ENTRY, unknown_cpp_name): New.
926 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
927 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
928 (variable: name_not_typename '@' ENTRY, name: ENTRY)
929 (name_not_typename: ENTRY): New.
930 (yylex): Recognize ENTRY.
931 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
932 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
934 * parse.c (operator_length_standard): Likewise.
935 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
937 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
939 Display referenced values in backtraces.
940 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
941 * stack.c (print_frame_arg): Likewise.
943 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
945 Make some lval_funcs methods to default on NULL.
946 * valops.c (value_fetch_lazy): Check if lval_computed read method is
948 (value_assign): Check if lval_computed write method is NULL.
949 * value.h (struct lval_funcs): Comment NULL values for read and write
952 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
954 Display @entry parameter values (without references).
955 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
957 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
959 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
961 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
962 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
964 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
965 (loclist_read_variable_at_entry): New function.
966 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
967 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
968 DW_AT_location, call dwarf_block_to_sp_offset for it.
969 * frame.h (print_entry_values_no, print_entry_values_only)
970 (print_entry_values_preferred, print_entry_values_if_needed)
971 (print_entry_values_both, print_entry_values_compact)
972 (print_entry_values_default, print_entry_values): New declarations.
973 (struct frame_arg): New field entry_kind.
974 (read_frame_arg): New parameter entryargp.
975 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
976 arg->entry_kind. Optionally print the `@entry' suffix.
977 (list_args_or_locals): New variable entryarg, initialize it.
978 Initialize also entry_kind of arg and entryarg. Conditionalize
979 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
980 xfree for entryarg.error.
981 * stack.c (print_entry_values_no, print_entry_values_only)
982 (print_entry_values_preferred, print_entry_values_if_needed)
983 (print_entry_values_both, print_entry_values_compact)
984 (print_entry_values_default, print_entry_values_choices)
985 (print_entry_values): New variables.
986 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
987 print the `@entry' suffix, possibly in combination for
988 print_entry_values_compact.
989 (read_frame_arg): New parameter entryargp, new variables entryval,
990 entryval_error and val_equal. Read in also entryargp, respect
991 print_entry_values, compare the values using val_equal, fill in also
992 argp->entry_kind (together with entryargp->entry_kind).
993 (print_frame_args): New variable entryarg, initialize it.
994 Conditionalize print_frame_arg for arg, add print_frame_arg for
995 entryarg. Call xfree for entryarg.error.
996 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
997 * symtab.h (struct symbol_computed_ops): New field
998 read_variable_at_entry.
1000 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 * frame.h (struct frame_arg): New definition.
1004 (read_frame_arg): New declaration.
1005 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1006 (list_args_or_locals): ... the code here. New variable arg, call
1007 read_frame_arg and list_arg_or_local with it. Unify the
1008 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1010 * stack.c (print_frame_arg): New functiom from the code of
1012 (read_frame_arg): New function.
1013 (print_frame_args): Remove variable val. New variable arg, call
1014 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1016 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1018 Protect entry values against self tail calls.
1019 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1020 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1022 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 Recognize virtual tail call frames.
1025 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1026 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1027 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1028 * dwarf2-frame-tailcall.c: New file.
1029 * dwarf2-frame-tailcall.h: New file.
1030 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1031 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1032 REGS.PREV only after CIE execution.
1033 (struct dwarf2_frame_cache): New field tailcall_cache.
1034 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1035 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1036 parts, try to find entry_cfa_sp_offset. Call
1037 dwarf2_tailcall_sniffer_first.
1038 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1040 (dwarf2_frame_dealloc_cache): New function.
1041 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1042 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1043 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1044 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1045 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1046 * dwarf2loc.c (func_addr_to_tail_call_list)
1047 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1048 (call_site_find_chain_1, call_site_find_chain): New.
1049 * dwarf2loc.h (struct call_site_chain): New.
1050 (call_site_find_chain): New declaration.
1051 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1052 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1053 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1054 * stack.c (frame_info): Support also TAILCALL_FRAME.
1056 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1058 Tail call sites reader implementation.
1059 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1060 fill in TYPE_TAIL_CALL_LIST.
1061 * gdbtypes.h (struct func_type): New field tail_call_list.
1062 (struct call_site): New field tail_call_next.
1063 (TYPE_TAIL_CALL_LIST): New definition.
1065 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1067 Implement basic support for DW_TAG_GNU_call_site.
1068 * block.c: Include gdbtypes.h and exceptions.h.
1069 (call_site_for_pc): New function.
1070 * block.h (call_site_for_pc): New declaration.
1071 * defs.h: Include hashtab.h.
1072 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1074 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1075 ctx_no_push_dwarf_reg_entry_value.
1076 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1077 (dwarf_block_to_dwarf_reg): New function.
1078 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1079 (ctx_no_push_dwarf_reg_entry_value): New function.
1080 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1081 push_dwarf_reg_entry_value.
1082 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1084 * dwarf2loc.c: Include gdbcmd.h.
1085 (dwarf_expr_ctx_funcs): New forward declaration.
1086 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1087 (dwarf_expr_reg_to_entry_parameter)
1088 (dwarf_expr_push_dwarf_reg_entry_value): New.
1089 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1090 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1091 (needs_dwarf_reg_entry_value): New function.
1092 (needs_frame_ctx_funcs): Install it.
1093 (_initialize_dwarf2loc): New function.
1094 * dwarf2loc.h (entry_values_debug): New declaration.
1095 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1096 (read_call_site_scope): New forward declaration.
1097 (process_full_comp_unit): Copy call_site_htab.
1098 (process_die): Support DW_TAG_GNU_call_site.
1099 (read_call_site_scope): New function.
1100 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1101 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1102 (cleanup_htab): Delete.
1103 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1104 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1105 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1106 FIELD_LOC_KIND_DWARF_BLOCK.
1107 * gdbtypes.h (enum field_loc_kind): New entry
1108 FIELD_LOC_KIND_DWARF_BLOCK.
1109 (struct main_type): New loc entry dwarf_block.
1110 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1111 (TYPE_FIELD_DWARF_BLOCK): New.
1112 * python/py-type.c: Include dwarf2loc.h.
1113 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1114 internal_error call on unknown FIELD_LOC_KIND.
1115 * symtab.h (struct symtab): New field call_site_htab.
1116 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1117 (core_addr_hash, core_addr_eq): New functions.
1119 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1123 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1124 calling_convention under func_stuff there.
1125 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1126 (init_type) <TYPE_CODE_FUNC>: Likewise.
1127 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1128 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1129 * gdbtypes.h (enum type_specific_kind): Change
1130 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1131 (struct main_type) <type_specific>: Change calling_convention to
1132 func_stuff. Move calling_convention to ...
1133 (struct func_type): ... this new struct.
1134 (INIT_FUNC_SPECIFIC): New #define.
1135 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1137 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1139 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1140 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1141 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1142 ctx->ref_addr_size. Handle its invalid value.
1143 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1144 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1145 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1146 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1147 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1148 (dwarf2_per_cu_ref_addr_size): New function.
1150 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1153 * dwarf2read.c (per_cu_header_read_in): New function.
1154 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1155 variables cu_header_local and cu_headerp.
1157 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1159 Fix initial language detection with -readnow.
1160 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1161 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1162 searches only for global symbols.
1164 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1166 Fix printed anonymous struct name.
1167 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1168 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1169 (anonymous_struct_prefix): New function.
1170 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1171 (dwarf2_name): Strip for anonymous structs any prefixes.
1173 2011-10-07 Doug Evans <dje@google.com>
1175 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1178 * python/lib/gdb/printing.py: Whitespace cleanup.
1180 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1183 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1185 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1186 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1187 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1188 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1189 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1190 (arm_linux_remove_watchpoint): Adjust.
1191 * i386-linux-nat.c (i386_linux_dr_set_control)
1192 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1193 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1194 (ia64_linux_remove_watchpoint): Adjust.
1195 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1196 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1197 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1198 (ppc_linux_insert_mask_watchpoint)
1199 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1200 (ppc_linux_remove_watchpoint): Adjust.
1201 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1204 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1206 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1207 (clear_win32_environment): New function for Cygwin to clear out
1209 (windows_create_inferior): Prepare new environment from in_env
1212 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1215 * python/py-value.c (valpy_call): Check that arguments are
1217 (is_intlike): Remove call to CHECK_TYPEDEF.
1218 (valpy_nonzero): Catch GDB exceptions.
1219 (valpy_absolute): Ditto.
1220 (valpy_lazy_string): Ditto.
1221 (valpy_call): Ditto.
1222 (valpy_get_is_optimized_out): Ditto.
1223 (valpy_long): Ditto.
1224 (valpy_float): Ditto.
1225 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1226 (valpy_richcompare): Ditto.
1228 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1230 * inferior.h (disable_randomization): Declare.
1231 * infrun.c (disable_randomization): New global variable.
1232 (show_disable_randomization): New function.
1233 (set_disable_randomization): Likewise.
1234 (_initialize_infrun): Install set/show disable-randomization
1236 * linux-nat.c (disable_randomization): Remove.
1237 (show_disable_randomization): Likewise.
1238 (set_disable_randomization): Likewise.
1239 (_initialize_linux_nat): No longer install set/show
1240 disable-randomization commands here.
1241 (linux_nat_supports_disable_randomization): New function.
1242 (linux_nat_add_target): Install it.
1243 * remote.c (PACKET_QDisableRandomization): New enum value.
1244 (remote_protocol_packets): Support QDisableRandomization.
1245 (_initialize_remote): Likewise.
1246 (remote_supports_disable_randomization): New function.
1247 (init_remote_ops): Install it.
1248 (extended_remote_supports_disable_randomization): New function.
1249 (init_extended_remote_ops): Install it.
1250 (extended_remote_disable_randomization): New function.
1251 (extended_remote_create_inferior_1): Call it.
1252 * target.h (struct target_ops): Add to_supports_disable_randomization.
1253 (target_supports_disable_randomization): Add prototype.
1254 * target.c (target_supports_disable_randomization): New function.
1255 (find_default_supports_disable_randomization): Likewise.
1256 (init_dummy_target): Install it.
1258 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1260 Allow Python notification of new object-file loadings.
1261 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1262 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1263 Add build rule for this file.
1264 * python/py-event.h (emit_new_objfile_event): New prototype.
1265 (newobjfile): New Python event emitter.
1266 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1267 Python event registry.
1268 * python/py-inferior.c: Include objfiles.h
1269 (python_new_objfile): New function.
1270 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1272 * python/py-newobjfileevent.c: New file.
1273 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1275 * python/python.c (_initialize_python): Add
1276 gdbpy_initialize_new_objfile_event call.
1277 * NEWS: Add item for new Python event "gdb.newobjfile"
1279 2011-10-05 Tristan Gingold <gingold@adacore.com>
1281 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1282 Extract the ravenscar task name from the symbol for the atcb.
1284 2011-10-04 Paul Koning <paul_koning@dell.com>
1286 * python/py-type.c (typy_make_iter): Add forward declaration.
1287 (typy_fields_items): Use the gdb.Type iterator.
1289 2011-10-04 Paul Koning <paul_koning@dell.com>
1291 * NEWS: Add entry for Python gdb.Type mapping methods.
1293 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1295 PR python/12691: Add the inferior to Python exited event
1296 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1298 * python/py-event.h (emit_exited_event): Likewise
1299 * python/-inferior.c (python_inferior_exit): Likewise
1301 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1303 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1304 in output of -ada-task-info GDB/MI command.
1306 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1308 * ada-lang.h (struct inferior): Declare.
1309 (print_ada_task_info): Add declaration.
1310 * ada-tasks.c (print_ada_task_info): Make non-static.
1311 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1312 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1313 * mi/mi-main.c: #include "ada-lang.h".
1314 (mi_cmd_list_features): Add "ada-task-info" to the list
1315 of supported features.
1316 (mi_cmd_ada_task_info): New function.
1318 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1320 * python/python.c (python_run_simple_file): New function.
1321 (source_python_script, source_python_script_for_objfile):
1322 Replace call to PyRun_SimpleFile by call to
1323 python_run_simple_file.
1325 2011-10-03 Paul Koning <paul_koning@dell.com>
1327 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1328 (value_to_value_object): Fetch value if it was lazy.
1330 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1333 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1334 Rearrange the code for it.
1336 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1338 * breakpoint.c (bkpt_print_recreate): Add call to
1339 print_recreate_thread.
1341 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1343 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1344 PTRACE_GETFDPIC_INTERP): Define.
1346 2011-09-28 Yao Qi <yao@codesourcery.com>
1348 * symfile.c (add_symbol_file_command): Update message on usage.
1350 2011-09-28 Paul Koning <paul_koning@dell.com>
1352 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1353 (typy_length, typy_get, typy_has_key, typy_make_iter)
1354 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1355 (typy_iterator_iter, typy_iterator_iternext)
1356 (typy_iterator_dealloc): New functions to implement standard
1357 Python mapping methods on gdb.Type object.
1358 (gdb.TypeIterator): New Python type.
1359 * python/python-internal.h (gdbpy_iter_kind): New enum.
1361 2011-09-28 David S. Miller <davem@davemloft.net>
1363 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1364 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1365 * sparc-tdep.c (sparc_complex_floating_p): New function.
1366 (sparc32_store_arguments): Handle complex floats.
1367 (sparc32_extract_return_value): Likewise.
1368 (sparc32_store_return_value): Likewise.
1369 (sparc32_stabs_argument_has_addr): Likewise.
1370 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1371 (sparc64_store_floating_fields): Handle complex floats.
1372 (sparc64_store_arguments): Likewise.
1373 (sparc64_store_return_value): Likewise.
1375 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1377 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1378 before the change on 2006-12-09.
1379 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1380 generates the environment block for CreateProcessA, modulo the
1381 Cygwin-specific parts that are not needed here.
1383 2011-09-27 Tristan Gingold <gingold@adacore.com>
1385 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1386 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1387 (darwin_solib_get_all_image_info_addr_at_init): New function.
1388 (darwin_solib_read_all_image_info_addr): Likewise.
1389 (darwin_solib_create_inferior_hook): Use the above two functions.
1390 * darwin-nat.c (darwin_execvp): Renames retval to res.
1391 (darwin_read_write_inferior): Update comment.
1392 (darwin_read_dyld_info): New function.
1393 (darwin_xfer_partial): Handle DYLD_INFO.
1395 2011-09-27 Stan Shebs <stan@codesourcery.com>
1397 Add return address collection for tracepoints.
1398 * tracepoint.c (encode_actions_1): Add case for $_ret.
1399 (validate_actionline): Check for $_ret.
1400 (trace_dump_actions): Ditto.
1401 * ax-gdb.h (gen_trace_for_return_address): Declare.
1402 * ax-gdb.c: Include arch-utils.h.
1403 (gen_trace_for_return_address): New function.
1404 (agent_command): Add return address special case.
1405 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1406 (amd64_gen_return_address): New function.
1407 (amd64_init_abi): Call it.
1408 * i386-tdep.c: Include ax.h and ax-gdb.h.
1409 (i386_gen_return_address): New function.
1410 (i386_init_abi): Call it.
1411 * arch-utils.h (default_gen_return_address): Declare.
1412 * arch-utils.c (default_gen_return_address): New function.
1413 * gdbarch.sh (gen_return_address): New method.
1414 * gdbarch.h, gdbarch.c: Regenerate.
1416 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1419 * i386-tdep.c (i386_frame_align): New.
1420 (i386_gdbarch_init): Use i386_frame_align.
1422 2011-09-23 Yao Qi <yao@codesourcery.com>
1424 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1427 2011-09-22 Tristan Gingold <gingold@adacore.com>
1429 * fork-child.c (fork_inferior): Add exec_fun parameter.
1430 Call exec_fun or execvp.
1431 * inferior.h: Adjust prototype.
1432 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1433 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1434 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1435 * procfs.c (procfs_create_inferior): Ditto.
1436 * darwin-nat.c (darwin_execvp): New function.
1437 (darwin_create_inferior): Use it.
1439 2011-09-22 Yao Qi <yao@codesourcery.com>
1441 * infrun.c (context_switch): Print debug message when switching to
1444 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1446 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1447 complex and vector types.
1448 (s390_return_value_convention): Likewise.
1450 (s390_value_from_register): Call check_typedef.
1451 (extend_simple_arg): Likewise.
1452 (alignment_of): Likewise.
1453 (s390_push_dummy_call): Likewise.
1454 (s390_return_value): Likewise.
1456 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1458 * event-top.c (async_disconnect): If an exception is thrown from
1459 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1461 * top.c (quit_cover): Return void and take no arguments.
1462 * top.h (quit_cover): Update prototype.
1464 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1466 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1467 current_uiout, not uiout.
1469 2011-09-19 Doug Evans <dje@google.com>
1471 * python/py-auto-load.c (source_section_scripts): Fix file
1473 * python/python.c (source_python_script_for_objfile): Tweak comments.
1475 2011-09-18 Yao Qi <yao@codesourcery.com>
1476 Ulrich Weigand <ulrich.weigand@linaro.org>
1478 Support displaced stepping for Thumb 16-bit insns.
1479 * arm-tdep.c (THUMB_NOP) Define.
1480 (thumb_copy_unmodified_16bit): New.
1481 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1482 (thumb_copy_alu_reg): New.
1483 (arm_copy_svc): Move some common code to ...
1484 (install_svc): ... here. New.
1485 (thumb_copy_svc): New.
1486 (install_pc_relative): New.
1487 (thumb_copy_pc_relative_16bit): New.
1488 (thumb_decode_pc_relative_16bit): New.
1489 (thumb_copy_16bit_ldr_literal): New.
1490 (thumb_copy_cbnz_cbz): New.
1491 (cleanup_pop_pc_16bit_all): New.
1492 (thumb_copy_pop_pc_16bit): New.
1493 (thumb_process_displaced_16bit_insn): New.
1494 (thumb_process_displaced_32bit_insn): New.
1495 (thumb_process_displaced_insn): process thumb instruction.
1497 Support displaced stepping for Thumb 32-bit insns.
1498 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1499 (thumb2_copy_preload): New.
1500 (thumb2_copy_copro_load_store): New.
1501 (thumb2_copy_b_bl_blx): New.
1502 (thumb2_copy_alu_imm): New.
1503 (thumb2_copy_load_reg_imm): New.
1504 (thumb2_copy_load_literal): New
1505 (thumb2_copy_block_xfer): New.
1506 (thumb_32bit_copy_undef): New.
1507 (thumb_32bit_copy_unpred): New.
1508 (thumb2_decode_ext_reg_ld_st): New.
1509 (thumb2_decode_svc_copro): New.
1510 (decode_thumb_32bit_store_single_data_item): New.
1511 (thumb_copy_pc_relative_32bit): New.
1512 (thumb_decode_pc_relative_32bit): New.
1513 (decode_thumb_32bit_ld_mem_hints): New.
1514 (thumb2_copy_table_branch): New
1515 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1518 2011-09-18 Yao Qi <yao@codesourcery.com>
1520 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1521 (install_b_bl_blx): Likewise.
1523 2011-09-17 Yao Qi <yao@codesourcery.com>
1525 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1526 (install_load_store): ... this. New.
1527 Change parameter BYTE to SIZE.
1528 (arm_copy_ldr_str_ldrb_strb): Update caller.
1529 (arm_decode_ld_st_word_ubyte): Update caller.
1531 2011-09-17 Yao Qi <yao@codesourcery.com>
1533 * infrun.c (displaced_step_fixup): Move some code ...
1534 (displaced_step_restore): ... here. New function.
1535 (handle_inferior_event): Cleanup displaced stepping state for both
1536 child and parent when get forked or vforked event.
1537 * regcache.c (get_thread_arch_aspace_regcache): New function.
1538 get_thread_arch_regcache (): Call it.
1540 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1542 * ada-tasks.c (print_ada_task_info): New function, merging
1543 short_task_info and info_tasks together. Reimplement using
1544 ui-out instead of printing to stdout directly. Move the code
1545 building and checking the task list here, instead of leaving it
1546 in info_tasks_command.
1547 (info_task): Move the code building and checking the task
1548 list here, instead of leaving it in info_tasks_command.
1549 (info_tasks_command): Delete code building and checking
1550 the task list - moved elsewhere. Update calls to info_tasks
1553 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1555 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1557 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1559 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1561 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1563 * ada-lang.h (ada_build_task_list): Remove parameter
1565 * ada-tasks.c (ada_build_task_list): Remove parameter
1566 `warn_if_null'. Adjust implementation and documentation.
1567 (valid_task_id, ada_get_environment_task)
1568 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1569 (info_tasks_command): Adjust implementation.
1570 (task_command): Likewise.
1571 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1572 to ada_build_task_list.
1574 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1576 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1577 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1578 (ada_tasks_inferior_data_handle): New static global.
1579 (get_ada_tasks_inferior_data): New function.
1580 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1581 (ada_get_environment_task, iterate_over_live_ada_tasks)
1582 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1584 (ada_set_current_inferior_known_tasks_addr): New function.
1585 (read_known_tasks, ada_build_task_list, short_task_info)
1586 (info_tasks, info_task, info_tasks_command, task_command_1)
1587 (task_command, ada_task_list_changed): Adjust.
1588 (ada_tasks_invalidate_inferior_data): New function.
1589 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1590 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1591 * ada-lang.h (struct inferior): Add declaration.
1592 (ada_task_list_changed): Update profile.
1593 * remote-wtx-pd.c: #include "inferior.h".
1594 (switch_to_pd_internal): Update call to ada_task_list_changed.
1596 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1598 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1599 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1600 (atcb_fieldno): Delete these static globals.
1601 (struct ada_tasks_pspace_data): New struct.
1602 (ada_tasks_pspace_data_handle): New static global.
1603 (get_ada_tasks_pspace_data): New function.
1604 (ada_tasks_invalidate_pspace_data): New function.
1605 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1606 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1607 (_initialize_tasks): Create this module's per-progspace
1610 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1612 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1614 2011-09-16 Tristan Gingold <gingold@adacore.com>
1616 * fork-child.c (fork_inferior): Update comment. Use alloca
1617 instead of xmalloc for argv. Move len and shell_command
1618 declarations in the block where they are used.
1619 Only call execvp. Factorize failure code.
1621 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1624 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1625 `exp_element' instead of an element of the same and make the function
1627 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1628 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1629 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1630 Change argument of `write_exp_elt' function call.
1631 Remove extra spaces from comments.
1632 * parser-defs.h (write_exp_elt): Remove prototype.
1634 2011-09-15 Paul Koning <paul_koning@dell.com>
1636 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1637 count of item appended to list.
1638 * python/py-type.c (typy_fields): Likewise.
1640 2011-09-15 Paul Koning <paul_koning@dell.com>
1642 * MAINTAINERS (Write After Approval): Add myself to the list.
1644 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1647 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1648 processes with multiple threads.
1649 (inf_has_multiple_thread_cb): New function.
1650 (inf_has_multiple_threads): New function.
1652 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1654 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1655 * python/py-inferior.c (GdbMethods): New Python method definition.
1657 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1659 Handle multiple breakpoint hits in Python interface:
1660 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1661 variable to breakpoints.
1662 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1663 bps instead of single breakpoint. Fix some space typos.
1664 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1665 variable to breakpoints.
1667 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1669 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1670 note if the breakpoint is internal.
1672 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1674 * MAINTAINERS (Write After Approval): Add myself to the list
1676 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1678 * infrun.c (prepare_for_detach, wait_for_inferior)
1679 (fetch_inferior_event): Don't flush the register cache.
1680 * remote.c (struct stop_reply) <regcache>: Add comment.
1682 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 Remove excessive DWARF expressions memory duplication.
1685 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1687 (indirect_pieced_value): Remove variable result. Remove variable
1688 back_to and its use for baton.data.
1689 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1691 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1692 Update the function comment.
1694 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1696 * inferior.h (ALL_INFERIORS): New.
1697 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1698 for a stopped thread.
1699 (thread_db_find_new_threads): Look for threads in all inferiors.
1701 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1703 * breakpoint.c (update_watchpoint): Handle the case of the
1704 watchpoint to update not being in the breakpoint list yet.
1705 (hw_watchpoint_use_count): New, factored out from
1706 hw_watchpoint_used_count.
1707 (hw_watchpoint_used_count): Rename to ...
1708 (hw_watchpoint_used_count_others): ... this. Add `except'
1709 parameter. Don't count resources of `except'. Use
1710 hw_watchpoint_use_count.
1712 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1714 * gdbthread.h (enum thread_state): Moved here.
1715 (struct thread_info): Rename `executing_' field to `executing' and
1716 `state_' to `state'.
1717 * thread.c (enum thread_state): Moved to gdbthread.h.
1718 (new_thread, add_thread_silent, delete_thread_1)
1719 (any_live_thread_of_process, thread_alive, set_running)
1720 (set_running, is_thread_state, any_running, is_executing)
1721 (set_executing, finish_thread_state, print_thread_info)
1722 (do_captured_thread_select): Adjust.
1724 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1726 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1727 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1729 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1730 Matt Rice <ratmice@gmail.com>
1734 * interps.c (struct interp) <interpreter_out>: Delete field.
1735 (interp_new): Remove the data and uiout parameters and adjust.
1736 (interp_set): Only set the current_uiout from the interpreter's
1737 uiout after initializing the interpreter. Adjust call to
1739 (interp_ui_out): Adjust to call procs->ui_out_proc.
1740 (interp_data, interp_name): New.
1741 * interps.h (interp_init_ftype): Add `self' parameter.
1742 (interp_ui_out_ftype): New typedef.
1743 (struct interp_procs) <ui_out_proc>: New method pointer.
1744 (interp_new): Remove the data and uiout parameters.
1745 (interp_data, interp_name): Declare.
1746 * tui/tui-interp.c (tui_init): Adjust prototype.
1748 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1749 tui_out here. Adjust call to interp_new.
1750 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1751 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1753 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1754 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1755 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1756 Initialize mi->uiout depending on the mi_version as extracted from
1757 the interpreter's name.
1759 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1760 interp_new. Don't allocate the ui_out's of the interpreters here.
1762 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1764 * solib.c (solib_used): New function.
1765 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1766 by another so_list object before freeing it.
1768 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1771 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1774 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1777 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1778 (amd64_skip_xmm_prologue): ... this new function. Describe its
1779 parameters. No longer use amd64_prologue_line_bug.
1780 * defs.h (producer_is_gcc_ge_4): New declaration.
1781 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1782 (process_full_comp_unit): Update its caller. Remove
1783 amd64_prologue_line_bug initialization.
1784 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1785 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1787 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1789 * linux-nat.h (enum resume_kind): New.
1790 (struct lwp_info) <last_resume_kind>: New field.
1791 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1792 resume_stop on the new lwp.
1793 (add_lwp): Set last_resume_kind as resume_continue by default.
1794 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1795 (resume_lwp): New, factored out from resume_callback. Also check
1796 for pending status in lp->waitstatus.
1797 (resume_callback): Reimplement.
1798 (resume_clear_callback): Set last_resume_kind as resume_stop.
1799 (resume_set_callback): Set last_resume_kind as resume_continue.
1800 (linux_nat_resume, linux_handle_extended_wait): Set
1802 (running_callback): Also check lp->waitstatus for pending events.
1803 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1805 (stop_and_resume_callback): Don't re-resume if the core wanted the
1806 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1807 using an invalidated pointer.
1808 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1809 SIGSTOPs if the core wanted the LWP to stop.
1810 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1811 wanted the lwp to stop. If the core wanted the lwp to stop, and
1812 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1813 of TARGET_SIGNAL_STOP.
1814 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1815 here. Instead, signal the lwp, and set the last_resume_kind to
1818 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1820 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1821 -1 (error), if the lwp exits right after attaching.
1823 2011-09-08 Doug Evans <dje@google.com>
1825 * py-cmd.c: Some minor formatting fixes.
1826 (gdbpy_parse_command_name): Rename text arg to name, make const.
1827 All callers updated.
1828 * python-internal.h (gdbpy_parse_command_name): Update.
1830 * cli/cli-decode.c (add_cmd): Add comment.
1832 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1834 PR breakpoints/12435
1835 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1836 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1837 * dwarf2read.c (process_full_comp_unit): Initialize
1838 amd64_prologue_line_bug.
1839 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1841 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1843 Fix TUI screen corruption.
1844 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1847 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 * findvar.c (read_var_value): Never return NULL, throw an error
1850 instead. Update the function comment. State symbol name in the error
1852 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1854 * stack.c (print_frame_args): Likewise.
1855 * valops.c (value_of_variable): Likewise.
1857 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * stack.c (print_frame_args): New variable except. Wrap
1860 read_var_value and common_val_print into TRY_CATCH.
1862 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1865 caller to value_of_this.
1866 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1868 * valops.c (value_of_this): Remove parameter complain and variable ret.
1869 Update function comment. Never return NULL by this code.
1870 (value_of_this_silent): New function.
1871 * value.h (value_of_this): Remove parameter complain.
1872 (value_of_this_silent): New declaration.
1874 2011-09-07 Yao Qi <yao@codesourcery.com>
1876 * gdbthread.h (struct thread_info): Remove fields
1877 `stepping_through_solib_after_catch' and
1878 `stepping_through_solib_catchpoints'.
1879 * infrun.c (init_thread_stepping_state): Update.
1880 (process_event_stop_test, currently_stepping): Update.
1881 (currently_stepping_or_nexting_callback): Update.
1883 2011-09-07 Yao Qi <yao@codesourcery.com>
1885 * gdbthread.h (struct thread_info): Comment on field
1886 `step_after_step_resume_breakpoint'.
1888 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1890 * remote.c (remote_console_output): Reindent.
1892 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1894 * frame.c (has_stack_frames): Check for currently selected
1897 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1899 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1900 (set_async_annotation_level, set_async_prompt, pop_prompt)
1901 (push_prompt, new_async_prompt): Delete declarations.
1902 * top.h (get_prompt, set_prompt): Change prototype.
1903 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1905 * top.c (command_loop):
1906 (top_prompt): New global.
1907 (get_prefix, set_prefix, get_suffix, ): Delete.
1908 (get_prompt, set_prompt): Rewrite.
1909 (show_new_async_prompt): Rename to ...
1910 (show_prompt): ... this.
1911 (init_main): Adjust. Don't handle --annotate=2 here.
1912 * event-top.c (new_async_prompt): Delete.
1913 (the_prompts): Delete.
1914 (more_to_come): Make static.
1915 (display_gdb_prompt): Use top_level_prompt() to compute the top
1916 level prompt, and don't notify the before_prompt observers
1917 directly here. Always trick readline into not trying to display
1918 the prompt if sync_execution and displaying the primary prompt.
1919 If displaying a local/secondary prompt, always show it, even if
1920 sync_execution is set.
1921 (change_annotation_level): Delete.
1922 (top_level_prompt): New, based on change_annotation_level.
1923 (push_prompt, pop_prompt): Delete.
1924 (async_disable_stdin): No longer pushes prompt.
1925 (command_line_handler): No longer pushes or pops prompt. If more
1926 input is expected, call display_gdb_prompt with an explicit empty
1928 (async_stop_sig): Adjust.
1929 (set_async_annotation_level, set_async_prompt): Delete.
1930 * python/python.c (before_prompt_hook): Adjust.
1932 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1936 * infrun.c (fetch_inferior_event): Check if there's a selected
1937 thread before checking if the selected thread is executing.
1939 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1941 * inf-loop.c (execute_command): Don't check if the current thread
1942 if running before synchronously waiting for command completion.
1943 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1945 (normal_stop): Call async_enable_stdin here.
1946 * inf-loop.c (inferior_event_handler): Don't call
1947 async_enable_stdin, nor handle "set exec-done-display" here.
1949 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1953 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1955 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1957 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1959 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1961 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1963 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1965 2011-09-02 Matt Rice <ratmice@gmail.com>
1968 * event-top.c (cli_command_loop): Replace readline setup with
1969 direct call to display_gdb_prompt.
1970 (display_gdb_prompt): Do not call observer mechanism during
1971 synchronous execution.
1973 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1975 * linux-nat.c (in_pid_list_p): New.
1976 (linux_record_stopped_pid): Delete.
1977 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1978 already attached to the LWP. Return an indication if so.
1979 (linux_nat_filter_event): Adjust.
1980 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1981 returning an indication to ignore this thread.
1983 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1985 * top.c: Include interps.h.
1986 (execute_command): If the target can async, but the interpreter is
1987 in sync mode, synchronously wait for the command to finish before
1989 (execute_command_to_string): Force the interpreter to sync mode.
1990 * infrun.c: Include interps.h.
1991 (fetch_inferior_event): Don't restore the prompt yet if the
1992 interpreter is in sync mode.
1993 * interps.c (interpreter_async): New global.
1994 * interps.h (interpreter_async): Declare.
1995 * inf-loop.c: Include interps.h.
1996 (inferior_event_handler): Don't print the language change or run
1997 breakpoint commands yet if the interpreter in is sync mode.
1998 * main.c (captured_command_loop): Flip the interpreter to async
2000 * cli/cli-script.c: Include interps.h.
2001 (execute_user_command, while_command, if_command): Force the
2002 interpreter to sync mode.
2003 * python/python.c: Include interps.h.
2004 (python_command, execute_gdb_command): Force the interpreter to
2007 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2009 * value.c (show_convenience): Catch errors thrown while printing
2010 each internal variable.
2011 * infrun.c (validate_siginfo_access): New function.
2012 (siginfo_value_read, siginfo_value_write): Call it.
2014 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2018 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2021 2011-08-29 Yao Qi <yao@codesourcery.com>
2023 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2025 (enable_break2): Update caller.
2026 * solib-frv.c (bfd_lookup_symbol): Removed.
2028 (enable_break2): Update caller.
2029 * solib-pa64.c (bfd_lookup_symbol): Removed.
2031 * solib-svr4.c (bfd_lookup_symbol): Removed.
2032 (cmp_name_and_sec_flags): New.
2033 (enable_break): Update caller.
2034 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2035 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2036 (gdb_bfd_lookup_symbol): New.
2037 * solib.h: Functions declarations.
2039 2011-08-29 Yao Qi <yao@codesourcery.com>
2041 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2044 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 Fix TUI stepi on code without symbols.
2047 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2050 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2053 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2054 and the static keyword.
2055 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2056 Make prefix an array.
2057 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2058 * mi/mi-main.c (get_register): Remove stb initialization and the static
2061 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 Code cleanup - make mi_opt const.
2064 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2066 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2067 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2068 (mi_cmd_env_dir): Likewise.
2069 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2070 (mi_cmd_target_file_put): Likewise.
2071 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2072 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2073 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2074 (mi_valid_noargs): Make opts const.
2075 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2076 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2077 (mi_cmd_data_read_memory): Likewise.
2078 (mi_cmd_data_read_memory_bytes): Likewise.
2079 (mi_cmd_data_write_memory): Likewise.
2081 2011-08-26 Matt Rice <ratmice@gmail.com>
2083 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2084 bcache_xmalloc, replace bcache_xmalloc with call to
2085 psymbol_bcache_init for psymbol_cache.
2086 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2088 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 * inf-loop.c (inferior_event_handler): Add exception_print in
2093 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2095 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2096 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2097 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2098 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2099 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2100 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2101 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2102 * infrun.c (fetch_inferior_event): Call
2103 make_bpstat_clear_actions_cleanup.
2104 * top.c (execute_command): New variable cleanup_if_error, call
2105 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2106 * utils.c (do_bpstat_clear_actions_cleanup)
2107 (make_bpstat_clear_actions_cleanup): New functions.
2109 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2111 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2112 either the parent or the child forks. Rename a couple locals.
2114 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2116 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2117 library call. Avoid reading the `status' local if all waitpid
2120 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2122 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2123 opening /proc/PID/task always succeeds.
2125 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2127 * linespec.c (symtab_from_filename): Check for the end of string.
2129 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2132 * varobj.c (cplus_describe_child): Add the keyword
2133 'class' to the output of the method when dealing
2134 with a cast to a base class.
2136 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2138 No functionality change.
2139 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2140 function comment a reference, new variables tp and bs, move here code
2141 from throw_exception.
2142 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2143 describe it in the comment.
2144 * exceptions.c (throw_exception): Remove variable tp, move the code for
2145 bpstat_clear_actions to bpstat_clear_actions.
2147 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2149 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2150 * linux-nat.c: Include linux-procfs.h.
2151 (linux_proc_get_tgid): Move to ...
2152 * common/linux-procfs.c: ... here. New file.
2153 * common/linux-procfs.h: New file.
2154 * linux-thread-db.c: Include linux-procfs.h.
2155 * Makefile.in: Update dependencies.
2156 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2157 * config/arm/linux.mh: Likewise.
2158 * config/i386/linux.mh: Likewise.
2159 * config/i386/linux64.mh: Likewise.
2160 * config/ia64/linux.mh: Likewise.
2161 * config/m32r/linux.mh: Likewise.
2162 * config/m68k/linux.mh: Likewise.
2163 * config/mips/linux.mh: Likewise.
2164 * config/pa/linux.mh: Likewise.
2165 * config/pa/linux.mh: Likewise.
2166 * config/powerpc/linux.mh: Likewise.
2167 * config/powerpc/ppc64-linux.mh: Likewise.
2168 * config/powerpc/spu-linux.mh: Likewise.
2169 * config/sparc/linux.mh: Likewise.
2170 * config/sparc/linux64.mh: Likewise.
2171 * config/xtensa/linux.mh: Likewise.
2173 2011-08-24 Hui Zhu <teawater@gmail.com>
2175 * tracepoint.c (cond_string_is_same): New function.
2176 (find_matching_tracepoint): Add condition check
2177 by cond_string_is_same.
2179 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2181 Fix build error in Darwin port.
2182 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2184 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2187 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2188 (command_line_is_silent): New function.
2189 (bpstat_do_actions_1): No longer use commands_left, use
2190 command_line_is_silent for commands.
2191 (bpstat_alloc): Remove clearing of commands_left.
2192 (bpstat_stop_status): Remove initialization of commands_left, use
2193 command_line_is_silent.
2194 * breakpoint.h (struct bpstats): Remove commands_left.
2196 2011-08-18 Keith Seitz <keiths@redhat.com>
2199 * cp-name-parser.y (struct demangle_info): Remove unused
2202 (allocate_info): Change return type to struct demangle_info *.
2203 Always allocate a new demangle_info.
2204 Remove unused PREV pointer.
2205 (cp_new_demangle_parse_info): New function.
2206 (cp_demangled_name_parse_free): New function.
2207 (do_demangled_name_parse_free_cleanup): New function.
2208 (make_cleanup_cp_demangled_name_parse_free): New function.
2209 (cp_demangled_name_to_comp): Change return type to
2210 struct demangle_parse_info *.
2211 Allocate a new storage for each call.
2212 (main): Update usage for cp_demangled_name_to_comp
2214 * cp-support.h (struct demangle_parse_info): New structure.
2215 (cp_demangled_name_to_comp): Update API change for
2217 (cp_new_demangle_parse_info): Declare.
2218 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2219 (cp_demangled_name_parse_free): Declare.
2220 * cp-support.c (cp_canonicalize_string): Update API
2221 change for cp_demangled_name_to_comp.
2222 (mangled_name_to_comp): Likewise.
2223 Return struct demangle_parse_info, too.
2224 (cp_class_name_from_physname): Update mangled_name_to_comp
2226 (method_name_from_physname): Likewise.
2227 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2228 (cp_remove_params): Likewise.
2229 * python/py-type.c (typy_legacy_template_argument): Likewise.
2231 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2232 (cp_merge_demangle_parse_infos): Declare.
2233 * cp-support.c (ignore_typedefs): New file global.
2234 (copy_string_to_obstack): New function.
2235 (inspect_type): New function.
2236 (replace_typedefs): New function.
2237 (replace_typedefs_qualified_name): New function.
2238 (cp_canonicalize_string_no_typedefs): New function.
2239 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2240 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2241 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2242 instead of cp_canonicalize_string.
2243 (find_method): Likewise.
2244 (decode_compound): Before looking up the name, call
2245 cp_canonicalize_string_no_typedefs.
2246 (decode_variable): Likewise.
2248 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2249 Tom Tromey <tromey@redhat.com>
2250 Matt Rice <ratmice@gmail.com>
2252 * python/lib/gdb/prompt.py: New file.
2253 * python/lib/gdb/command/prompt.py: New file.
2254 * NEWS: Document set extended-prompt and gdb.prompt library
2256 2011-08-16 Yao Qi <yao@codesourcery.com>
2258 * tic6x-linux-tdep.c: Move const arrays definition from here...
2259 * tic6x-tdep.c: to here ...
2261 2011-08-14 Yao Qi <yao@codesourcery.com>
2263 * NEWS: New port to Texas Instruments TMS320C6x.
2265 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2266 Bernd Schmidt <bernds@codesourcery.com>
2267 Yao Qi <yao@codesourcery.com>
2269 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2270 * solib-dsbt.c: New file. Support DSBT shared object.
2271 * tic6x-linux-tdep.c: New file.
2272 * tic6x-tdep.c: New file.
2273 * tic6x-tdep.h: New file.
2275 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2276 Yao Qi <yao@codesourcery.com>
2278 * remote.c (PACKET_qXfer_fdpic): New enum value.
2279 (remote_protocol_features): Add qXfer:fdpic:read packet.
2280 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2281 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2282 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2284 2011-08-14 Yao Qi <yao@codesourcery.com>
2286 Target description for tic6x.
2287 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2288 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2289 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2290 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2291 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2292 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2293 * features/tic6x-c64xp-linux.xml: New.
2294 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2295 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2296 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2297 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2298 * regformats/tic6x-c64xp.dat,
2299 regformats/tic6x-c62x-linux.dat: Generated.
2300 * regformats/tic6x-c64x-linux.dat,
2301 regformats/tic6x-c64xp-linux.dat: Generated.
2302 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2303 features/tic6x-*.c files.
2304 Add regformats/tic6x-*.dat files.
2306 2011-08-12 Doug Evans <dje@google.com>
2308 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2309 * python/py-symbol.c (sympy_get_type): New function.
2310 (symbol_object_getset): Add "type".
2312 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2316 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2318 (tui_show_register_group): Don't store a byte buffer in the data
2320 (tui_register_format): Skip registers with an empty name.
2321 (tui_get_register): Store a struct value in the data element's
2322 value field instead of a byte buffer holding the raw register
2323 contents. Account for optimized-out and unavailable registers
2324 when comparing register contents.
2326 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2328 * printcmd.c (current_display_number): Update comment.
2329 (disable_current_display_cleanup): Delete.
2330 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2331 catch errors thrown while evaluating and printing the display.
2333 2011-08-09 Tom Tromey <tromey@redhat.com>
2335 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2337 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2339 * elfread.c (elf_symtab_read): Rework comments.
2340 * maint.c (maintenance_command): Ditto.
2341 * somread.c (som_symtab_read): Ditto.
2342 * solib.c (solib_find, solib_map_sections, update_solib_list)
2343 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2344 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2345 (sharedlibrary_command, no_shared_libraries): Ditto.
2346 * solib-irix.c (locate_base, disable_break, enable_break)
2347 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2348 (irix_current_sos, irix_open_symbol_file_object)
2349 (irix_special_symbol_handling): Ditto.
2350 * solib-sunos.c (locate_base, first_link_map_member)
2351 (sunos_current_sos, disable_break, enable_break)
2352 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2354 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2355 (open_symbol_file_object, svr4_current_sos, enable_break)
2356 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2358 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2359 (frv_current_sos, enable_break, frv_special_symbol_handling)
2360 (frv_solib_create_inferior_hook): Ditto.
2361 * solist.h (struct target_so_ops): Extend the comments of the
2362 special_symbol_handling, current_sos and open_symbol_file_object
2365 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2367 * python/lib/gdb/__init__.py: Auto-load files in command and
2368 function directories.
2369 * python/python.c (finish_python_initialization): Use
2371 * python/lib/gdb/command/pretty_printers.py: Self register
2373 * NEWS: Document auto-loading.
2375 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2377 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2378 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2379 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2381 2011-08-08 Tom Tromey <tromey@redhat.com>
2383 * breakpoint.c (clean_up_filters): Remove.
2384 (catch_syscall_split_args): Use VEC_cleanup.
2386 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2388 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2389 (main): Uncomment "Demangling error\n".
2391 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2393 * solib-target.c (segment_attributes): Make them static.
2394 (section_attributes, library_children, library_attributes): Likewise.
2395 (library_list_children, library_list_attributes): Likesise.
2396 (library_list_elements): Likewise.
2398 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2400 * exceptions.c (throw_exception): Don't disable the current
2402 * printcmd.c (disable_current_display_cleanup): New function.
2403 (do_one_display): Install a cleanup to disable the current display
2404 if doing the display throws.
2406 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2408 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2409 initialization of the tp_new member to the corresponding
2410 gdbpy_initialize_* function.
2411 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2412 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2413 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2414 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2415 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2417 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2419 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2420 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2421 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2422 references to current_uiout.
2424 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2426 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2427 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2428 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2429 * top.c (gdb_readline_wrapper): Adjust.
2430 * tui/tui-interp.c (tui_command_loop):
2431 (_initialize_tui_interp): Don't install it.
2433 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2435 * ui-out.h (uiout): Rename to ...
2436 (current_uiout): ... this.
2437 * ui-out.c (uiout): Rename to ...
2438 (current_uiout): ... this.
2439 * ada-lang.c (print_it_exception, print_one_exception)
2440 (print_mention_exception): Adjust.
2441 * breakpoint.c (watchpoint_check): Adjust.
2442 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2443 (default_collect_info, watchpoints_info, print_one_catch_fork)
2444 (print_one_catch_vfork, print_one_catch_syscall)
2445 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2446 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2447 (print_it_watchpoint, print_mention_watchpoint)
2448 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2449 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2450 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2451 (bkpt_print_mention, momentary_bkpt_print_it)
2452 (tracepoint_print_mention, update_static_tracepoint)
2453 (tracepoints_info, save_breakpoints): Adjust.
2454 * cli-out.c (field_separator): Adjust.
2455 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2456 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2457 * frame.c (get_current_frame): Adjust.
2458 * infcmd.c (run_command_1, print_return_value): Adjust.
2459 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2460 * infrun.c (print_end_stepping_range_reason): Adjust.
2461 (print_signal_exited_reason, print_exited_reason): Adjust.
2462 (print_signal_received_reason, print_no_history_reason): Adjust.
2463 * interps.c (interp_set): Adjust.
2464 * osdata.c (info_osdata_command): Adjust.
2465 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2466 * remote-fileio.c (remote_fileio_request): Adjust.
2467 * remote.c (show_remote_cmd): Adjust.
2468 * solib.c (info_sharedlibrary_command): Adjust.
2469 * source.c (print_source_lines_base): Adjust.
2470 * stack.c (print_stack_frame): Adjust.
2471 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2472 * symfile-mem.c (add_vsyscall_page): Adjust.
2473 * symfile.c (load_progress, generic_load)
2474 (print_transfer_performance): Adjust.
2475 * thread.c (info_threads_command, restore_selected_frame)
2476 (thread_command): Adjust.
2477 * top.c (make_cleanup_restore_ui_file): Adjust.
2478 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2479 (print_one_static_tracepoint_marker): Adjust.
2480 * cli/cli-cmds.c (print_disassembly): Adjust.
2481 * cli/cli-decode.c (print_doc_line): Adjust.
2482 * cli/cli-interp.c (safe_execute_command): Adjust.
2483 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2484 (handle_redirections): Adjust.
2485 * cli/cli-script.c (show_user_1): Adjust.
2486 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2487 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2488 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2489 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2490 (mi_cmd_env_dir): Adjust.
2491 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2492 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2493 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2494 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2495 (list_args_or_locals): Adjust.
2496 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2497 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2498 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2499 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2500 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2501 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2502 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2503 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2504 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2505 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2506 (list_available_thread_groups, mi_cmd_list_thread_groups)
2507 (mi_cmd_data_list_register_names)
2508 (mi_cmd_data_list_changed_registers)
2509 (mi_cmd_data_list_register_values, get_register)
2510 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2511 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2512 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2513 (mi_execute_command, mi_load_progress): Adjust.
2514 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2515 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2517 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2518 * tui/tui-interp.c (tui_command_loop): Adjust.
2519 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2521 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2523 * exceptions.c (struct catcher): Remove saved_uiout field.
2524 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2525 no longer save/resvore the global ui_out builder.
2526 (catch_exceptions_with_msg): Save/override/restore the global
2527 ui_out builder manually instead of relying on TRY_CATCH to do it.
2528 (catch_errors): Save/restore the global ui_out builder manually
2529 instead of relying on TRY_CATCH to do it.
2530 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2532 (TRY_CATCH): Adjust.
2533 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2534 the global ui_out builder manually instead of relying on TRY_CATCH
2537 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2539 * breakpoint.c (update_global_location_list): Ensure
2540 invariant 'first loc marked not duplicated and inserted,
2541 following locs marked duplicated/not inserted' is respected
2542 for multiple locations at the same address.
2543 (unduplicated_should_be_inserted) New function.
2544 (swap_insertion) New function.
2546 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2548 * stack.c (print_frame_arguments_choices): Comment typo fix.
2550 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2553 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2554 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2555 argument. Update callers.
2557 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2560 * doublest.c (convert_doublest_to_floatformat): Pass correct
2561 mantissa length to put_field.
2563 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2565 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2566 exception_print code path.
2567 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2568 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2569 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2571 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2574 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2575 Remove, merge them into ...
2576 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2577 variable args and its initialization.
2578 (struct print_args_args, print_args_stub): Remove, merge them into
2580 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2582 (do_gdb_disassembly): ... here. Remove variable args and its
2584 (print_frame): Remove variable args and its initialization, new
2585 variable gdbarch and numargs (from print_args_stub), inline here
2586 print_args_stub with a TRY_CATCH.
2587 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2589 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2590 New variable e, remove variable btargs and its initialization.
2592 2011-08-01 Tristan Gingold <gingold@adacore.com>
2594 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2596 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2598 * breakpoint.c (insert_bp_location): Document return value.
2599 (insert_breakpoint_locations): Fix documentation.
2600 (remove_breakpoints): Add documentation.
2602 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2604 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2605 argument. Update callers.
2607 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2609 * stack.c (print_frame_info): Comment typo fix.
2611 2011-07-29 Sterling Augustine <saugustine@google.com>
2613 * MAINTAINERS (Write After Approval): Add myself to the list.
2615 2011-07-29 Tom Tromey <tromey@redhat.com>
2617 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2618 (library_list_start_segment): Update.
2619 (library_list_start_section): Update.
2621 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2623 * varobj.c (value_get_print_value): Move hint check later into the
2624 function. Comment function. Free thevalue before reusing it.
2626 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 Pedro Alves <pedro@codesourcery.com>
2629 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2631 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2632 Assert the result kind.
2633 * value.h (value_one): Remove parameter lv.
2635 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 Fix crash on lval_computed values.
2638 * valops.c (value_zero): Use not_lval for lval_computed.
2640 2011-07-27 Tom Tromey <tromey@redhat.com>
2642 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2643 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2645 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2647 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2648 "ptype" by their typedefs difference.
2650 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2652 * dwarf2expr.c (ctx_no_read_reg): New function.
2653 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2654 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2655 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2656 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2658 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2661 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2663 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2664 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2665 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2666 (ctx_no_get_base_type): Move the functions here.
2667 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2668 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2669 (ctx_no_get_base_type): New declarations.
2671 2011-07-27 Tom Tromey <tromey@redhat.com>
2673 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2675 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2676 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2678 2011-07-26 Sterling Augustine <saugustine@google.com>
2680 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2682 (dump_bfd_file): Likewise.
2684 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2686 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2687 (remote_hw_watchpoint_length_limit): New variable.
2688 (_initialize_remote) add set,show cmds for this new variable.
2689 * gdb.texinfo: document these new commands.
2690 * NEWS: Mention these new commands.
2692 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2694 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2695 true for software watchpoints.
2697 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2701 2011-07-26 Tom Tromey <tromey@redhat.com>
2703 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2704 * dwarf2read.c (read_indirect_string_at_offset): New function.
2705 (read_indirect_string): Use it.
2706 (dwarf_decode_macro_bytes): New function, taken from
2707 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2708 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2709 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2711 (struct dwarf2_per_objfile) <macro>: New field.
2712 (dwarf2_elf_names): Add .debug_macro.
2713 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2714 (dwarf2_locate_sections): Handle new section.
2715 (read_file_scope): Handle DW_AT_GNU_macros.
2716 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2718 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2720 * NEWS: Mention dcache configuration.
2721 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2722 (dcache_size, dcache_line_size): New variables.
2723 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2724 (struct dcache_block): Make it expandable.
2725 (struct dcache_struct): New field.
2726 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2727 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2728 (dcache_poke_byte, dcache_print_line): Adjust.
2729 (set_dcache_size, set_dcache_line_size): New functions.
2730 (set_dcache_command, show_dcache_command): New functions.
2731 (_initialize_dcache): Add new commands.
2733 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2735 * progspace.h (struct program_space): Add solib_add_generation.
2736 * infcmd.c (post_create_inferior): Only call solib_add if not
2738 * solib.c (solib_add): Increment solib_add_generation.
2740 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2742 Fix implicit pointer offsets.
2743 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2746 2011-07-25 Tom Tromey <tromey@redhat.com>
2748 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2750 (ada_exception_sal): Make 'ops' const.
2751 (ada_decode_exception_location): Likewise.
2752 (ada_decode_assert_location): Likewise.
2753 (catch_assert_command): Update.
2754 (catch_ada_exception_command): Update.
2755 (create_ada_exception_catchpoint): Make 'ops' const.
2756 * breakpoint.c (set_raw_breakpoint_without_location)
2757 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2759 (create_internal_breakpoint): Update.
2760 (init_raw_breakpoint_without_location): Make 'ops' const.
2761 (init_raw_breakpoint, init_catchpoint)
2762 (create_fork_vfork_event_catchpoint)
2763 (create_syscall_event_catchpoint, init_breakpoint_sal)
2764 (create_breakpoint_sal, create_breakpoints_sal)
2765 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2766 * breakpoint.h (struct breakpoint) <ops>: Now const.
2767 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2770 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2772 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2774 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2776 * breakpoint.h (print_recreate_thread): Declare.
2777 (struct breakpoint): Move step_count, pass_count,
2778 number_on_target, static_trace_marker_id,
2779 static_trace_marker_id_idx ...
2780 (struct tracepoint): ... to this new struct.
2781 (get_tracepoint, get_tracepoint_by_number_on_target)
2782 (get_tracepoint_by_number): Change return type to struct
2784 * breakpoint.c (is_tracepoint_type): New, factored out from
2786 (is_tracepoint): Adjust.
2787 (print_one_breakpoint_location): Cast to struct tracepoint as
2788 necessary, and adjust.
2789 (print_recreate_catch_fork, print_recreate_catch_vfork)
2790 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2791 print_recreate_thread.
2792 (init_breakpoint_sal): New, factored out from
2793 create_breakpoint_sal.
2794 (create_breakpoint_sal): Reimplement.
2795 (create_breakpoint): Allocate a struct tracecepoint if the caller
2796 wanted a tracepoint. Use init_breakpoint_sal and
2798 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2799 (print_recreate_masked_watchpoint)
2800 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2801 (tracepoint_print_one_detail): Adjust.
2802 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2803 Dump the pass count here.
2804 (update_static_tracepoint): Adjust.
2805 (addr_string_to_sals): Adjust.
2806 (create_tracepoint_from_upload): Adjust. Change return type to
2807 struct tracepoint pointer.
2808 (trace_pass_set_count): Change parameter type to struct tracepoint
2809 pointer, and adjust.
2810 (trace_pass_command): Adjust.
2811 (get_tracepoint, get_tracepoint_by_number_on_target)
2812 (get_tracepoint_by_number): Change return type to struct
2813 tracepoint pointer, and adjust.
2814 (print_recreate_thread): New, factored out from save_breakpoints.
2815 (save_breakpoints): Don't print thread and task and passcount
2817 * remote.c (remote_download_tracepoint): Adjust.
2818 * tracepoint.c (trace_actions_command, validate_actionline)
2819 (start_tracing, tfind_1, trace_find_tracepoint_command)
2820 (trace_dump_command): Adjust.
2821 (find_matching_tracepoint): Change return type to struct
2822 tracepoint pointer, and adjust.
2823 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2824 (tfile_trace_find, tfile_fetch_registers): Adjust.
2825 * tracepoint.h (create_tracepoint_from_upload): Change return type
2826 to struct tracepoint pointer.
2827 * ada-lang.c (print_recreate_exception): Call
2828 print_recreate_thread.
2829 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2831 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2833 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2834 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2835 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2836 watchpoint_thread, watchpoint_triggered ...
2837 (struct watchpoint): ... to this new struct.
2838 (is_watchpoint): Declare.
2839 (install_breakpoint): Add new `internal' parameter.
2840 * breakpoint.c (is_watchpoint): Delete declaration.
2841 (set_breakpoint_condition): Handle watchpoints.
2842 (is_watchpoint): Make public.
2843 (watchpoint_in_thread_scope): Change parameter type to struct
2845 (watchpoint_del_at_next_stop): Change parameter type to struct
2846 watchpoint. Remove assertion. Adjust.
2847 (update_watchpoint): Ditto.
2848 (insert_breakpoints, breakpoint_init_inferior)
2849 (watchpoints_triggered, watchpoint_check)
2850 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2851 (bpstat_stop_status, print_one_breakpoint_location)
2852 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2853 to struct watchpoint as necessary, and adjust.
2854 (install_breakpoint): Add `internal' argument. If true, don't
2855 mention the new breakpoint. Use set_breakpoint_number.
2856 (create_fork_vfork_event_catchpoint)
2857 (create_syscall_event_catchpoint): Adjust.
2858 (dtor_watchpoint): New.
2859 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2860 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2861 (print_it_watchpoint, print_mention_watchpoint)
2862 (print_recreate_watchpoint, insert_masked_watchpoint)
2863 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2864 (print_one_detail_masked_watchpoint)
2865 (print_mention_masked_watchpoint)
2866 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2867 necessary, and adjust.
2868 (watch_command_1): Allocate and initialize a struct watchpoint
2869 instead of a struct breakpoint. Use install_breakpoint.
2870 (catch_exec_command_1): Adjust.
2871 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2873 (delete_breakpoint, enable_breakpoint_disp)
2874 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2875 as necessary, and adjust.
2876 (initialize_breakpoint_ops): Install dtor_watchpoint as
2877 watchpoints' dtor method.
2878 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2879 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2880 to struct watchpoint as necessary, and adjust.
2882 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2884 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2885 the the base class ops table.
2886 (catch_exception_breakpoint_ops)
2887 (catch_exception_unhandled_breakpoint_ops)
2888 (catch_assert_breakpoint_ops): Don't statically initialize.
2889 (initialize_ada_catchpoint_ops): New.
2890 (_initialize_ada_language): Call it.
2891 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2892 (bkpt_breakpoint_ops): Forward declare.
2893 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2894 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2895 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2896 (masked_watchpoint_breakpoint_ops)
2897 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2898 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2899 base class ops table.
2900 (null_re_set, null_check_status, null_works_in_software_mode)
2901 (null_resources_needed, null_print_one_detail): Delete.
2902 (bkpt_dtor): Rename to ...
2903 (base_breakpoint_dtor): ... this. Make static.
2904 (bkpt_allocate_location): Rename to ...
2905 (base_breakpoint_allocate_location): ... this. Make static.
2906 (base_breakpoint_re_set): New.
2907 (internal_error_pure_virtual_called): New.
2908 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2909 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2910 (base_breakpoint_works_in_software_mode)
2911 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2912 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2913 (base_breakpoint_print_recreate): New functions.
2914 (base_breakpoint_ops): New global.
2915 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2916 (bkpt_breakpoint_hit): Make static.
2917 (bkpt_check_status): Delete.
2918 (bkpt_resources_needed): Make static.
2919 (bkpt_works_in_software_mode): Delete.
2920 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2922 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2923 (momentary_breakpoint_ops): Don't statically initialize.
2924 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2926 (tracepoint_insert_location, tracepoint_remove_location)
2927 (tracepoint_check_status, tracepoint_works_in_software_mode)
2928 (tracepoint_print_it): Delete.
2929 (tracepoint_breakpoint_ops): Don't statically initialize.
2930 (initialize_breakpoint_ops): New.
2931 (_initialize_breakpoint): Call it.
2932 * breakpoint.h (null_re_set, null_works_in_software_mode)
2933 (null_resources_needed, null_check_status, null_print_one_detail):
2934 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2935 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2936 (bkpt_check_status, bkpt_resources_needed)
2937 (bkpt_works_in_software_mode, bkpt_print_it)
2938 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2939 Delete declarations.
2940 (initialize_breakpoint_ops): Declare.
2942 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2944 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2945 (momentary_bkpt_print_it): Simplify.
2947 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2949 Split internal, momentary and user breakpoints breakpoint_ops
2952 * breakpoint.c (internal_breakpoint_ops)
2953 (momentary_breakpoint_ops): Forward declare.
2954 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2955 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2956 (create_overlay_event_breakpoint)
2957 (create_std_terminate_master_breakpoint)
2958 (create_exception_master_breakpoint): Create breakpoints with
2959 internal_breakpoint_ops vtable.
2960 (set_longjmp_breakpoint): Create momentary breakpoints with
2961 momentary_breakpoint_ops vtable, using
2962 momentary_breakpoint_from_master.
2963 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2964 (create_solib_event_breakpoint): Create breakpoints with
2965 internal_breakpoint_ops vtable.
2966 (set_momentary_breakpoint): Create breakpoints with
2967 momentary_breakpoint_ops vtable.
2968 (momentary_breakpoint_from_master): New, factored out from
2969 clone_momentary_breakpoint.
2970 (clone_momentary_breakpoint): Adjust.
2971 (watch_command_1): Create scope breakpoints with
2972 momentary_breakpoint_ops vtable.
2973 (bkpt_re_set): Remove handling of internal and momentary
2975 (bkpt_print_mention, bkpt_print_recreate): New.
2976 (bkpt_breakpoint_ops): Adjust.
2977 (internal_bkpt_re_set, internal_bkpt_check_status)
2978 (internal_bkpt_print_it, internal_bkpt_print_mention)
2979 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2980 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2981 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2982 (momentary_bkpt_print_recreate): New.
2983 (momentary_breakpoint_ops): New.
2985 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2987 Implement most breakpoint_ops methods for all breakpoint types,
2988 and move the default handlings to the proper callbacks.
2990 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2991 works_in_software_mode method.
2992 (insert_bp_location): Go through breakpoint_ops->insert_location
2993 for software and hardware watchpoints.
2994 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2996 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2997 for software and hardware watchpoints.
2998 (print_it_typical): Delete.
2999 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3001 (watchpoint_check): Adjust comment.
3002 (bpstat_check_location): Simply always call the breakpoint's
3003 breakpoint_hit method.
3004 (bpstat_stop_status): Always call the breakpoint's check_status
3005 method. Remove special cases for watchpoints and internal event
3006 breakpoints from here (moved to the check_status implementations).
3007 (print_one_breakpoint_location): Assume b->ops is never NULL.
3008 Remove static tracepoint marker id printing from here (moved to
3009 the print_one_detail callback implementation of tracepoints).
3010 (init_bp_location): Assert OPS is never NULL.
3011 (allocate_bp_location): Always call the breakpoint's
3012 allocate_location method, and remove the default code from here.
3013 (free_bp_location): Always call the location's dtor method, and
3014 remove the default code from here.
3015 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3016 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3017 parameter. Pass it down.
3018 (set_raw_breakpoint): Ditto.
3019 (print_it_catch_fork): Adjust to take a bpstat as argument.
3020 (catch_fork_breakpoint_ops): Install methods.
3021 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3022 (catch_vfork_breakpoint_ops): Install methods.
3023 (dtor_catch_syscall): Call the base dtor.
3024 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3025 (catch_syscall_breakpoint_ops): Install methods.
3026 (dtor_catch_exec): Call the base dtor.
3027 (print_it_catch_exec): Adjust to take a bpstat as argument.
3028 (catch_exec_breakpoint_ops): Install methods.
3029 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3030 the breakpoint's resources_needed method, and remove the default
3032 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3034 (clone_momentary_breakpoint): Clone the original's ops.
3035 (mention): Always call the breakpoint's print_mention method, and
3036 remove the default code from here.
3037 (create_breakpoint_sal): Adjust to pass the ops to
3038 set_raw_breakpoint rather than setting it manually.
3039 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3040 ops to set_raw_breakpoint_without_location rather than setting it
3042 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3043 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3044 (ranged_breakpoint_ops): Install methods.
3045 (break_range_command): Adjust to pass the ops to
3046 set_raw_breakpoint rather than setting it manually.
3047 (re_set_watchpoint, breakpoint_hit_watchpoint)
3048 (check_status_watchpoint, resources_needed_watchpoint)
3049 (works_in_software_mode_watchpoint, print_it_watchpoint)
3050 (print_mention_watchpoint, print_recreate_watchpoint): New
3052 (watchpoint_breakpoint_ops): Install new methods.
3053 (print_it_masked_watchpoint): New function.
3054 (masked_watchpoint_breakpoint_ops): Install new methods.
3055 (watch_command_1): Adjust to pass the right breakpoint_ops to
3056 set_raw_breakpoint_without_location rather than setting it
3057 manually later. Record the current pspace.
3058 (print_it_exception_catchpoint): Adjust to take a bpstat as
3060 (gnu_v3_exception_catchpoint_ops): Install new methods.
3061 (say_where): New function.
3062 (null_re_set, null_check_status, null_works_in_software_mode)
3063 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3065 (bp_location_ops): New global.
3066 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3067 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3068 (bkpt_check_status, bkpt_resources_needed)
3069 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3070 (bkpt_print_recreate): New functions.
3071 (bkpt_breakpoint_ops): New global.
3072 (tracepoint_re_set, tracepoint_insert_location)
3073 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3074 (tracepoint_check_status, tracepoint_works_in_software_mode)
3075 (tracepoint_print_it, tracepoint_print_one_detail)
3076 (tracepoint_print_mention, tracepoint_print_recreate): New
3078 (tracepoint_breakpoint_ops): New global.
3079 (delete_breakpoint): Always call the breakpoint's dtor method, and
3080 remove the default handling from here.
3081 (breakpoint_re_set_default): Make static.
3082 (breakpoint_re_set_one): Always call the breakpoints re_set
3083 method, and remove the default handling from here.
3084 (trace_command, ftrace_command, strace_command)
3085 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3086 to create_breakpoint.
3087 (save_breakpoints): Always call the breakpoint's print_recreate
3088 method, and remove the default handling from here.
3090 * ada-lang.c (dtor_exception): Call the base dtor.
3091 (re_set_exception): Call the base method.
3092 (print_it_exception, print_it_catch_exception): Adjust to take a
3094 (catch_exception_breakpoint_ops): Install methods.
3095 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3097 (catch_exception_unhandled_breakpoint_ops): Install methods.
3098 (print_it_catch_assert): Adjust to take a bpstat as argument.
3099 (catch_assert_breakpoint_ops): Install methods.
3101 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3102 to take a bpstat as argument.
3103 (enum print_stop_action): Add describing comments to each enum
3105 (breakpoint_re_set_default): Delete declaration.
3106 (null_re_set, null_works_in_software_mode, null_resources_needed)
3107 (null_check_status, null_print_one_detail): Declare.
3108 (bkpt_breakpoint_ops): Declare.
3109 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3110 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3111 (bkpt_check_status, bkpt_resources_needed)
3112 (bkpt_works_in_software_mode, bkpt_print_it)
3113 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3116 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3117 bkpt_breakpoint_ops.
3118 * python/py-breakpoint.c (bppy_init): Ditto.
3120 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3122 * MAINTAINERS (Write After Approval): Add myself to the list.
3124 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3126 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3128 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3130 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3131 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3132 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3134 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3135 (struct i386_debug_reg_state): New.
3136 (i386_init_dregs): New.
3138 (i386_cleanup_dregs): Use i386_init_dregs.
3139 (i386_show_dr): Add state parameter and adjust.
3140 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3142 (i386_remove_aligned_watchpoint): Likewise.
3143 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3144 (i386_update_inferior_debug_regs): New.
3145 (i386_insert_watchpoint): Work on a local mirror of the debug
3146 registers, and only update the inferior on success.
3147 (i386_remove_watchpoint): Ditto.
3148 (i386_region_ok_for_watchpoint): Adjust.
3149 (i386_stopped_data_address): Adjust.
3150 (i386_insert_hw_breakpoint): Adjust.
3151 (i386_remove_hw_breakpoint): Adjust.
3153 2011-07-22 Tom Tromey <tromey@redhat.com>
3155 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3156 from amd64_pseudo_register_read. Change arguments. Call
3157 mark_value_bytes_unavailable when needed.
3158 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3159 set_gdbarch_pseudo_register_read.
3160 * sentinel-frame.c (sentinel_frame_prev_register): Use
3161 regcache_cooked_read_value.
3162 * regcache.h (regcache_cooked_read_value): Declare.
3163 * regcache.c (regcache_cooked_read_value): New function.
3164 (regcache_cooked_read): Call
3165 gdbarch_pseudo_register_read_value if available.
3166 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3167 (i386_pseudo_register_read): Remove.
3168 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3169 i386_pseudo_register_read. Change arguments. Call
3170 mark_value_bytes_unavailable when needed.
3171 (i386_pseudo_register_read_value): New function.
3172 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3173 not set_gdbarch_pseudo_register_read.
3174 * gdbarch.sh (pseudo_register_read_value): New method.
3175 * gdbarch.c, gdbarch.h: Rebuild.
3176 * findvar.c (value_from_register): Call get_frame_register_value.
3178 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3180 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3182 (display_gdb_prompt): Likewise.
3183 (change_annotation_level): Likewise.
3184 (push_prompt): Likewise.
3185 (pop_prompt): Likewise.
3186 (handle_stop_sig): Use get_prompt with a level.
3187 * top.c (command_loop): Use get_prompt with a level.
3188 (set_async_annotation_level): Use set_prompt with a level.
3189 (get_prefix): New function.
3190 (set_prefix): Ditto.
3191 (set_suffix): Ditto.
3192 (get_suffix): Ditto.
3193 (get_prompt): Accept a level argument.
3194 (set_prompt): Accept a level argument. Free old prompts. Set
3195 new_async_prompt if level is 0.
3196 (init_main): Use set_prompt with a level. Do not set
3198 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3199 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3200 Modify set_prompt, get_prompt to account for levels.
3201 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3203 * python/python.c (before_prompt_hook): Use set_prompt.
3205 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3207 * defs.h: Add guard against inclusion in gdbserver.
3208 (struct ptid, ptid_t): Move to common/ptid.h.
3209 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3210 xsnprintf, internal_error): Move to common/common-utils.h.
3212 * gdb_assert.h: Move into common/ sub-directory.
3213 * gdb_locale.h: Ditto.
3214 * gdb_dirent.h: Ditto.
3215 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3216 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3217 Move into common/ptid.h.
3218 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3219 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3220 Change nomem to malloc_failure.
3221 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3222 * utils.c (nomem): Rename to malloc_failure.
3223 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3224 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3225 (gdb_buildargv): Change nomem to malloc_failure.
3226 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3227 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3228 ptid_is_pid): Move into common/ptid.c.
3229 (initialize_infrun): Delete initialization of null_ptid and
3231 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3232 linux_common_xfer_osdata.
3233 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3234 common/ptid.c and common/buffer.c.
3235 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3236 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3237 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3238 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3240 * common/gdb_assert.h: New.
3241 * common/gdb_dirent.h: New.
3242 * common/gdb_locale.h: New.
3243 * common/buffer.c: New.
3244 * common/buffer.h: New.
3245 * common/ptid.c: New.
3246 * common/ptid.h: New.
3247 * common/xml-utils.c: New.
3248 * common/xml-utils.h: New.
3249 * common/common-utils.c: New.
3250 * common/common-utils.h: New.
3251 * common/linux-osdata.c: New.
3252 * common/linux-osdata.h: New.
3253 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3254 * config/arm/linux.mh (NATDEPFILES): Ditto.
3255 * config/i386/linux.mh (NATDEPFILES): Ditto.
3256 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3257 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3258 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3259 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3260 * config/mips/linux.mh (NATDEPFILES): Ditto.
3261 * config/pa/linux.mh (NATDEPFILES): Ditto.
3262 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3263 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3264 * config/s390/s390.mh (NATDEPFILES): Ditto.
3265 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3266 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3267 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3269 2011-07-21 Matt Rice <ratmice@gmail.com>
3271 * NEWS: Add info macros and info definitions commands.
3273 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3275 * NEWS: Document Python prompt substitution hook.
3277 2011-07-18 Matt Rice <ratmice@gmail.com>
3280 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3281 * macrotab.c (foreach_macro): Ditto.
3282 (foreach_macro_in_scope): Ditto.
3283 * macrocmd.c (print_macro_callback): New function.
3284 (info_macro_command): Move some code to print_macro_definition.
3285 (print_macro_definition): New function.
3286 (print_one_macro): Add new arguments to callback.
3287 (info_definitions_command): New function.
3288 (info_macros_command): Ditto.
3289 (_initialize_macrocmd): Add info macros and info definitions commands.
3290 * symtab.c (add_macro_name): Add new arguments to callback.
3292 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3293 Tom Tromey <tromey@redhat.com>
3295 * top.c (set_prompt): Rewrite to free previous prompt, free
3296 asynch_new_prompt and set both on new prompts.
3297 * event-top.c (display_gdb_prompt): Add prompt substitution
3299 * python/python.c (before_prompt_hook): New function.
3301 2011-07-20 Matt Rice <ratmice@gmail.com>
3303 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3304 arguments to store_unsigned_integer.
3306 2011-07-20 Tom Tromey <tromey@redhat.com>
3308 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3309 in some declaration-only cases.
3311 2011-07-18 Tom Tromey <tromey@redhat.com>
3314 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3315 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3316 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3317 <debug_type_section>: New field.
3318 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3319 (load_cu): Use appropriate section.
3320 (create_signatured_type_table_from_index): Add 'section'
3322 (dwarf2_read_index): Only allow a single .debug_types section.
3323 (dw2_get_file_names): Use appropriate section.
3324 (read_type_comp_unit_head): Add 'section' argument.
3325 (create_debug_types_hash_table): Loop over all .debug_types
3327 (init_cu_die_reader): Use appropriate section.
3328 (process_psymtab_comp_unit, load_partial_comp_unit)
3329 (load_full_comp_unit, read_die_and_children, find_partial_die)
3330 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3331 (lookup_signatured_type_at_offset): Add 'section' argument.
3332 (read_signatured_type_at_offset): Add 'sect' argument.
3333 (read_signatured_type): Use appropriate section.
3334 (set_die_type, get_die_type_at_offset): Update.
3335 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3337 (write_psymtabs_to_index): Don't allow index with more than one
3338 .debug_types section.
3340 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 Fix crash if referenced CU is aged out.
3343 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3344 xfree of block.data.
3345 (indirect_pieced_value): New variable back_to, use to for xfree of
3347 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3349 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3350 (load_cu): New function from ...
3351 (dw2_do_instantiate_symtab): ... the code here ...
3352 (process_full_comp_unit): ... and here.
3353 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3356 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3358 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3361 2011-07-19 Gary Benson <gbenson@redhat.com>
3363 * infrun.c (struct execution_control_state): New member
3364 stop_func_filled_in.
3365 (clear_stop_func, fill_in_stop_func): New functions.
3366 (handle_inferior_event): Call clear_stop_func rather than
3367 manipulating the execution control state directly.
3368 Call fill_in_stop_func lazily as required rather than
3369 directly calling find_pc_partial_function in all cases.
3371 2011-07-18 Tom Tromey <tromey@redhat.com>
3373 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3374 checking for variable-sized array.
3376 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3378 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3379 of supported languages.
3380 * varobj.c: Add top definitions and basic implementation of the
3381 following callbacks: ada_number_of_children, ada_name_of_variable,
3382 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3383 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3384 (languages): Register Ada-specific callbacks.
3385 (variable_language): Add the Ada case in the language setter switch.
3387 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3389 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3391 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3395 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3396 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3397 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3398 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3399 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3400 (struct dwarf_expr_context_funcs): New, move here methods from ...
3401 (struct dwarf_expr_context): ... here. New fields funcs.
3402 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3403 (dwarf_expr_ctx_funcs): New.
3404 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3405 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3406 (needs_frame_ctx_funcs): New.
3407 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3409 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3411 * MAINTAINERS (Write After Approval): Add myself to the list.
3413 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3415 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3416 that CIE pointer of an FDE really points to a CIE .
3418 2011-07-15 Hui Zhu <teawater@gmail.com>
3420 * remote.c (remote_get_trace_status): Add comments.
3422 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3424 Code cleanup - constify struct lval_funcs.
3425 * dwarf2loc.c (pieced_value_funcs): Make it const.
3426 * infrun.c (siginfo_value_funcs): Likewise.
3427 * opencl-lang.c (opencl_value_funcs): Likewise.
3428 * valops.c (value_assign, value_ind): Make the funcs variable const.
3429 * value.c (struct value): Make location.computed.funcs target const.
3430 Rearrange the comments.
3431 (allocate_computed_value): Make the funcs parameter target const.
3432 (value_computed_funcs): Return the funcs target const.
3433 (value_free, value_copy, set_value_component_location): Make the funcs
3435 * value.h (allocate_computed_value): Make the funcs parameter target
3437 (value_computed_funcs): Return the funcs target const.
3438 * windows-tdep.c (tlb_value_funcs): Make it const.
3440 2011-07-14 Hui Zhu <teawater@gmail.com>
3442 * remote.c (remote_get_trace_status): Initialize p.
3444 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 * remote.c (remote_get_trace_status): New variable ex. Put
3448 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3450 2011-07-13 Tom Tromey <tromey@redhat.com>
3452 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3453 value_from_contents for final conversion.
3455 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3459 Indent prototypes so they do not get into tags.
3461 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 Code cleanup making also optimized out values lazy.
3464 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3465 allocate_optimized_out_value. Twice.
3466 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3467 * findvar.c (read_var_value): Likewise.
3468 * value.c (allocate_optimized_out_value): New function.
3469 * value.h (allocate_optimized_out_value): New declaration.
3471 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3473 Fix occasional crash of CTRL-C during DWARF read in.
3474 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3476 2011-07-11 Tom Tromey <tromey@redhat.com>
3478 * regcache.c (struct regcache_descr): Fix typo.
3479 * i387-tdep.c (i387_supply_xsave): Fix typo.
3481 2011-07-11 Tom Tromey <tromey@redhat.com>
3483 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3484 (read_file_scope, read_type_unit_scope): Use it.
3486 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3488 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3491 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3494 * python/python.c: Set gdbpy_should_print_stack default to off.
3495 (set_python): Deprecate maint set python print-stack to
3497 (_initialize_python): Deprecate maint set/show python print-stack.
3498 Add new prefix command, python. Add new setting, print-backtrace.
3499 * NEWS: Document set python print-stack. Document default change.
3501 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3503 * python/py-inferior.c (infpy_dealloc): New function.
3504 (inferior_to_inferior_object): Return a new object, or a
3505 new reference to the existing object.
3506 (find_thread_object): Cleanup references to inferior.
3507 (delete_thread_object): Ditto.
3508 * python/py-infthread.c (create_thread_object): Do not increment
3509 inferior reference count.
3511 2011-07-08 Tom Tromey <tromey@redhat.com>
3513 * dwarf2loc.c (locexpr_regname): New function.
3514 (locexpr_describe_location_piece): Use it.
3515 (disassemble_dwarf_expression): Add per_cu argument. Use
3517 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3518 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3520 (locexpr_describe_location_1): Add per_cu argument.
3521 (locexpr_describe_location): Update.
3522 (loclist_describe_location): Update.
3524 2011-07-08 Tom Tromey <tromey@redhat.com>
3526 * dwarf2expr.c (execute_stack_op): Add QUIT.
3528 2011-07-07 Hui Zhu <teawater@gmail.com>
3531 2011-07-06 Hui Zhu <teawater@gmail.com>
3532 * remote.c (remote_start_remote): Add TRY_CATCH for
3533 remote_get_trace_status.
3534 * tracepoint.c (disconnect_tracing): Ditto.
3536 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3538 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3539 variables as signed, not unsigned.
3541 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3543 * jit.c (jit_inferior_init): Reformat forward declaration.
3545 2011-07-06 Matt Rice <ratmice@gmail.com>
3547 * MAINTAINERS (Write After Approval): Add myself to the list.
3549 2011-07-06 Hui Zhu <teawater@gmail.com>
3551 * remote.c (remote_start_remote): Add TRY_CATCH for
3552 remote_get_trace_status.
3553 * tracepoint.c (disconnect_tracing): Ditto.
3555 2011-07-05 Tom Tromey <tromey@redhat.com>
3557 * symtab.c (operator_chars): Now static.
3558 * linespec.c (operator_chars): Don't declare.
3560 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3562 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3564 2011-07-05 Tom Tromey <tromey@redhat.com>
3566 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3567 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3568 (TYPE_CPLUS_REALLY_JAVA): New macro.
3569 * dwarf2read.c (process_structure_scope): Set
3570 TYPE_CPLUS_REALLY_JAVA.
3572 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3574 * ada-lang.c: Fix typos.
3575 * amd64-tdep.c: Likewise.
3576 * breakpoint.c: Likewise.
3577 * cli/cli-decode.c: Likewise.
3578 * findcmd.c: Likewise.
3579 * inline-frame.c: Likewise.
3580 * mi/mi-main.c: Likewise.
3581 * minsyms.c: Likewise.
3582 * monitor.c: Likewise.
3583 * monitor.h: Likewise.
3584 * prologue-value.c: Likewise.
3585 * reverse.c: Likewise.
3586 * s390-tdep.c: Likewise.
3588 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3590 * jit.c (jit_inferior_init): Forward declare.
3591 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3593 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3595 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3597 2011-07-04 Tristan Gingold <gingold@adacore.com>
3599 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3600 (tcb_fieldno): Add activation_link field.
3601 (get_known_tasks_addr): Moved and rewritten.
3602 (get_tcb_types_info): Set activation_link field.
3603 (read_known_tasks_array): Add parameter. Rewritten.
3604 (read_known_tasks_list): New function.
3605 (read_known_tasks): New function.
3606 (ada_build_task_list): Call read_known_tasks instead of
3607 read_known_tasks_array.
3608 * ravenscar-thread.c: Add first_task_name constant.
3609 (has_ravenscar_runtime): Check for task list too.
3611 2011-07-04 Tristan Gingold <gingold@adacore.com>
3613 * ada-tasks.c: Renames fieldno to actb_fieldno.
3614 (ada_get_task_number): Indentation.
3615 (get_tcb_types_info): Remove all parameters. Write directly
3617 (ptid_from_atcb_common): Adjust.
3618 (read_atcb): Adjust.
3620 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3622 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3624 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3626 * ui-out.c (ui_out_field_core_addr): Mention that the function
3627 description is in the header file.
3628 * ui-out.h (ui_out_field_core_addr): Document function.
3630 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3632 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3633 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3635 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3637 * symtab.c (expand_line_sal): Remove empty line.
3639 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3641 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3642 same way as ELFOSABI_NONE.
3643 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3645 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3647 * breakpoint.c: Fix typos in comments.
3648 * linespec.c: Likewise.
3649 * symtab.c: Likewise.
3651 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3653 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3654 section in separate object files.
3656 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3658 Fix false GCC warning.
3659 * linespec.c (decode_line_1): Initialize values.
3661 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3663 * linespec.c (find_method): Accept the function type automatically only
3664 if it was specified with parameter types.
3666 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 Stop on first linespec terminator instead of eating what we can.
3669 * linespec.c (is_linespec_boundary): New function.
3670 (name_end): Remove function.
3671 (keep_name_info): New parameter on_boundary, replace the body.
3672 (decode_line_1): Provide the parameter to keep_name_info.
3673 (decode_compound): Likewise. Drop the trailing java return type
3676 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3678 Fall back linespec to minimal symbols.
3679 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3680 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3681 (find_method, symbol_found): Change error to cplusplus_error.
3683 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3685 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3687 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3688 Tom Tromey <tromey@redhat.com>
3690 * dwarf2read.c (check_physname): New variable.
3691 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3692 (show_check_physname): New function.
3693 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3695 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3697 * machoread.c (macho_symfile_read): Delete OBE comment.
3699 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3701 * machoread.c (struct macho_oso_data): Delete.
3702 (current_oso): Delete.
3703 (macho_relocate_common_syms): New function, mostly extracted
3705 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3706 Remove code that sets and unset current_oso.
3707 (macho_symfile_relocate): Delete handling of common symbols,
3708 now moved to macho_relocate_common_syms.
3710 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3712 * darwin-nat.c (darwin_ptrace): Add documentation.
3713 Set errno to zero before calling ptrace. If ptrace returns
3714 -1 and errno is zero, then change then return zero.
3715 (darwin_kill_inferior): Issue a warning instead of triggering
3716 a failed assertion when the PT_KILL ptrace operations returned
3719 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3721 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3722 only when inf->private->no_ptrace.
3724 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3726 * ada-lang.c (print_it_exception): Print temporary catchpoints
3727 as "Temporary catchpoint".
3728 (print_mention_exception): Likewise.
3730 2011-07-01 Tom Tromey <tromey@redhat.com>
3732 * jv-lang.c (java_language_defn): Use java_printchar,
3734 (java_get_encoding): New function.
3735 (java_emit_char): Use generic_emit_char.
3736 (java_printchar): New function.
3737 (java_printstr): Likewise.
3739 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3741 * ada-typeprint.c (print_record_type): If unable to decode
3742 the name of the parent type, use the encoded name.
3744 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3746 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3747 pointer to constrained packed array type output.
3748 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3749 packed array output.
3751 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3753 * ada-typeprint.c (print_array_type): removed if condition on show
3754 being negative for bounds printing.
3756 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3758 * ada-lang.c (ada_identical_enum_types_p): New function.
3759 (symbols_are_identical_enums): New function.
3760 (remove_extra_symbols): Do nothing if NSYMS < 2.
3761 Use symbols_are_identical_enums.
3763 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3765 * ada-valprint.c (ada_value_print): Handle typedefs.
3767 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3769 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3771 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3773 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3774 (decode_constrained_packed_array): Likewise.
3775 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3777 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3779 * ada-exp.y (convert_char_literal): Handle typedef types.
3781 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3783 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3785 2011-06-30 Tom Tromey <tromey@redhat.com>
3787 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3788 * valops.c (find_overload_match): Call do_cleanups on early exit
3790 * solib.c (solib_find): Call do_cleanups on early exit path.
3792 2011-06-30 Tom Tromey <tromey@redhat.com>
3794 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3795 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3796 return paths. Defer final do_cleanups until last return.
3797 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3800 2011-06-30 Tom Tromey <tromey@redhat.com>
3802 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3804 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3806 * MAINTAINERS (Write After Approval): Add myself to the list.
3808 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3810 Disable epilogue unwinders on recent GCCs.
3811 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3812 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3813 * dwarf2read.c (process_full_comp_unit): Initialize
3814 EPILOGUE_UNWIND_VALID.
3815 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3816 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3817 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3819 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3821 Code cleanup - reformatting.
3822 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3823 (producer_is_gcc_ge_4): ... here, change the return value.
3824 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3827 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3829 Fix non-only rename list for Fortran modules import.
3830 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3831 cp_add_using_directive caller.
3832 (cp_add_using_directive): New parameter excludes, describe it. New
3833 variables ix and param. Compare if also excludes match. Allocate NEW
3834 with variable size, initialize EXCLUDES there.
3835 (cp_lookup_symbol_imports): New variable excludep, test
3836 current->EXCLUDES with it.
3837 * cp-support.h: Include vec.h.
3838 (struct using_direct): New field excludes, describe it.
3839 (DEF_VEC_P (const_char_ptr)): New.
3840 (cp_add_using_directive): New parameter excludes.
3841 * defs.h (const_char_ptr): New typedef.
3842 * dwarf2read.c (read_import_statement): New variables child_die,
3843 excludes and cleanups, read in excludes.
3844 (read_namespace): Adjust the cp_add_using_directive caller.
3846 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3849 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3850 negative comparisons.
3852 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3854 * mi/mi-main.c (mi_cmd_list_features): Emit
3855 breakpoint-notifications.
3857 2011-06-29 Tom Tromey <tromey@redhat.com>
3860 * valprint.h (generic_emit_char, generic_printstr): Declare.
3861 * valprint.c (wchar_printable, append_string_as_wide)
3862 (print_wchar): Move from c-lang.c.
3863 (generic_emit_char): New function; mostly taken from c_emit_char.
3864 (generic_printstr): New function; mostly taken from c_printstr.
3865 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3866 represented as arrays.
3867 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3869 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3870 identically to TYPE_CODE_INT.
3871 * f-lang.c (f_get_encoding): New function.
3872 (f_emit_char): Use generic_emit_char.
3873 (f_printchar): Replace comment.
3874 (f_printstr): Use generic_printstr.
3875 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3876 "character" types specially.
3877 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3879 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3881 (c_emit_char): Call generic_emit_char.
3882 (c_printstr): Call generic_printstr.
3884 2011-06-29 Gary Benson <gbenson@redhat.com>
3886 * breakpoint.c (bpstat_what): Removed duplicated case.
3888 2011-06-28 Tom Tromey <tromey@redhat.com>
3890 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3892 2011-06-27 Tom Tromey <tromey@redhat.com>
3894 * valops.c (find_overload_match): Call do_cleanups before early
3896 * top.c (execute_command): Call do_cleanups before early return.
3897 (command_loop): Likewise.
3898 * stack.c (backtrace_command): Make a null cleanup early. Don't
3899 conditionally call do_cleanups.
3900 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3902 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3903 so cleanups are always run.
3904 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3905 * findcmd.c (parse_find_args): Call do_cleanups on early return
3907 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3908 Don't conditionally call do_cleanups.
3909 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3912 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3914 * MAINTAINERS (Write After Approval): Use default email address.
3916 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3918 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3920 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3922 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3923 saved_regs_mask and copied_regs_mask fields.
3924 (sparc_record_save_insn): New prototype.
3925 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3926 (sparc_record_save_insn): New function.
3927 (sparc_analyze_prologue): Add head comment. Recognize store insns
3928 of call-saved registers. Use OFFSET consistently. Recognize flat
3929 frames and cache their settings.
3930 (sparc32_skip_prologue): Handle flat frames.
3931 (sparc_frame_cache): Add frame_offset to the base address.
3932 (sparc32_frame_cache): Adjust to new frame description.
3933 (sparc32_frame_prev_register): Likewise.
3934 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3935 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3936 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3937 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3938 frame by calling sparc_record_save_insn.
3939 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3940 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3941 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3943 2011-06-27 Tristan Gingold <gingold@adacore.com>
3945 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3946 field by map_addr and map_len.
3947 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3948 (munmap_section_buffer): Likewise.
3950 2011-06-24 Tom Tromey <tromey@redhat.com>
3952 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3953 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3954 * python/python.c (gdbpy_parameter): Make 'arg' const.
3955 (execute_gdb_command): Likewise.
3956 (gdbpy_decode_line): Likewise. Copy it.
3957 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3958 (gdbpy_write): Make 'arg' const.
3959 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3961 (gdbpy_lookup_type): Likewise.
3962 * python/py-prettyprint.c (print_children): Make 'name' const.
3963 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3964 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3966 * python/py-function.c (fnpy_init): Make 'name' const.
3967 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3968 (gdbpy_string_to_argv): Make 'input' const.
3969 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3971 * gdbtypes.h (lookup_typename): Update.
3972 * gdbtypes.c (lookup_typename): Make 'name' const.
3973 (lookup_struct): Likewise.
3974 (lookup_union): Likewise.
3975 (lookup_enum): Likewise.
3977 2011-06-24 Tom Tromey <tromey@redhat.com>
3979 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3980 gdb_thread_db.h. Move all common/ entries to be together.
3981 (TAGS): Don't depend on DEPFILES.
3983 2011-06-23 Yao Qi <yao@codesourcery.com>
3985 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3986 * remote.c (remote_start_remote): ... here.
3987 * monitor.c (monitor_open): ... here.
3989 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
3991 * gdbtypes.c (append_composite_type_field_aligned): Fix
3992 calculation of bit position based on alignment.
3994 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3996 * breakpoint.c (bpstat_stop_status): Call the check_status
3997 breakpoint_ops method.
3998 (print_one_breakpoint_location): Also print the condition for Ada
3999 exception catchpoints.
4000 (allocate_bp_location): New, factored out from
4001 allocate_bp_location.
4002 (allocate_bp_location): Adjust. Call the owner breakpoint's
4003 allocate_location method, if there is one.
4004 (free_bp_location): Call the locations's dtor method, if there is
4006 (init_raw_breakpoint_without_location): New breakpoint_ops
4008 (set_raw_breakpoint_without_location): Adjust.
4009 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4010 (set_raw_breakpoint): Adjust.
4011 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4012 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4013 re_set and check_status methods.
4014 (init_catchpoint): Don't memset, initialize thread, addr_string
4015 and enable_state. Pass the ops down to init_raw_breakpoint.
4016 (install_catchpoint): Rename to ...
4017 (install_breakpoint): ... this, and make extern.
4018 (create_fork_vfork_event_catchpoint): Adjust.
4019 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4020 re_set and check_status methods.
4021 (create_syscall_event_catchpoint): Adjust.
4022 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4023 (masked_watchpoint_breakpoint_ops): Install NULL
4024 allocate_location, re_set and check_status methods.
4025 (catch_exec_command_1): Adjust.
4026 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4027 re_set and check_status methods.
4028 (create_ada_exception_breakpoint): Rename to ...
4029 (init_ada_exception_breakpoint): ... this. Add a struct
4030 breakpoint parameter, and delete the exp_string, cond_string and
4031 cond parameters. Use init_raw_breakpoint, and don't install or
4032 mention the breakpoint yet. Don't clear breakpoint fields that
4033 init_raw_breakpoint already clears.
4034 (re_set_breakpoint): Delete, split into ...
4035 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4037 (breakpoint_re_set_one): Call the breakpoint's
4038 breakpoint_ops->re_set implementation, if there's one. Adjust.
4039 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4040 (struct bp_location_ops): New type.
4041 (struct bp_location): New field `ops'.
4042 (struct breakpoint_ops): New `allocate_location', `re_set' and
4043 `check_status' fields. Make `breakpoint_hit''s description match
4045 (init_bp_location): Declare.
4046 (breakpoint_re_set_default): Declare.
4047 (create_ada_exception_breakpoint): Rename to ...
4048 (init_ada_exception_breakpoint): ... this. Add a struct
4049 breakpoint parameter, and delete the exp_string, cond_string and
4051 (install_breakpoint): Declare.
4052 * ada-lang.c: Include exceptions.h.
4053 <Ada exceptions description>: Update.
4054 (struct ada_catchpoint_location): New type.
4055 (ada_catchpoint_location_dtor): New function.
4056 (ada_catchpoint_location_ops): New global.
4057 (ada_catchpoint): New type.
4058 (create_excep_cond_exprs): New function.
4059 (dtor_exception, allocate_location_exception, re_set_exception)
4060 (should_stop_exception, check_status_exception): New functions.
4061 (print_one_exception, print_mention_exception)
4062 (print_recreate_exception): Adjust.
4063 (dtor_catch_exception, allocate_location_catch_exception)
4064 (re_set_catch_exception, check_status_catch_exception): New
4066 (catch_exception_breakpoint_ops): Install them.
4067 (dtor_catch_exception_unhandled)
4068 (allocate_location_catch_exception_unhandled)
4069 (re_set_catch_exception_unhandled)
4070 (check_status_catch_exception_unhandled): New functions.
4071 (catch_exception_unhandled_breakpoint_ops): Install them.
4072 (dtor_catch_assert, allocate_location_catch_assert)
4073 (re_set_catch_assert, check_status_catch_assert): New functions.
4074 (catch_assert_breakpoint_ops): Install them.
4075 (ada_exception_catchpoint_p): Delete.
4076 (catch_ada_exception_command_split)
4077 (ada_exception_catchpoint_cond_string): Rename exp_string
4078 parameter to excep_string. Adjust.
4079 (ada_parse_catchpoint_condition): Delete.
4080 (ada_exception_sal): Rename the exp_string parameter to
4081 excep_string. Delete the cond_string and cond parameters.
4083 (ada_decode_exception_location): Rename the exp_string parameter
4084 to excep_string. Delete the cond_string and cond parameters.
4086 (create_ada_exception_catchpoint): New function.
4087 (catch_ada_exception_command, ada_decode_assert_location)
4088 (catch_assert_command): Adjust.
4089 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4091 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4093 * ada-lang.c: Include arch-utils.h.
4094 (ada_decode_exception_location): Make static.
4095 (catch_ada_exception_command): Moved here from breakpoint.c.
4096 (ada_decode_assert_location): Make static.
4097 (catch_assert_command): Moved here from breakpoint.c.
4098 (_initialize_ada_lang): Install the exception and assert
4099 catchpoint commands here.
4100 * ada-lang.h (ada_decode_exception_location)
4101 (ada_decode_assert_location): Delete declarations.
4102 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4104 (create_ada_exception_breakpoint): Make extern.
4105 (catch_ada_exception_command, catch_assert_command): Moved to
4107 (add_catch_command): Make extern.
4108 (_initilize_breakpoint): Don't install the exception and assert
4109 catchpoint commands here.
4110 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4112 (add_catch_command, create_ada_exception_breakpoint): Declare.
4114 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4116 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4117 the breakpoint to the breakpoint chain here.
4118 (set_raw_breakpoint_without_location): Add the breakpoint to the
4119 breakpoint chain here.
4120 (init_raw_breakpoint): Adjust comments.
4121 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4123 (init_catchpoint): Don't set the catchpoint's breakpoint number
4125 (install_catchpoint): New function.
4126 (create_fork_vfork_event_catchpoint)
4127 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4128 use install_catchpoint.
4130 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4132 * breakpoint.c (create_catchpoint_without_mention)
4133 (create_catchpoint): Delete.
4135 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4137 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4138 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4139 reference to exec_pathname.
4140 (struct exec_catchpoint): New type.
4141 (dtor_catch_exec): New function.
4142 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4143 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4144 (catch_exec_command_1): Adjust to use init_catchpoint.
4145 (delete_breakpoint): Remove reference to exec_pathname.
4147 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4149 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4150 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4151 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4152 reference to syscalls_to_be_caught.
4153 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4155 (struct syscall_catchpoint): New type.
4156 (dtor_catch_syscall): New function.
4157 (insert_catch_syscall, remove_catch_syscall)
4158 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4159 (print_recreate_catch_syscall): Adjust.
4160 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4161 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4162 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4163 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4164 (masked_watchpoint_breakpoint_ops)
4165 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4166 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4167 there is one. Remove references to syscalls_to_be_caught.
4168 (catching_syscall_number): Adjust.
4169 * ada-lang.c (catch_exception_breakpoint_ops)
4170 (catch_exception_unhandled_breakpoint_ops)
4171 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4173 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4175 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4177 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4178 reference to forked_inferior_pid.
4179 (struct fork_catchpoint): New type.
4180 (breakpoint_hit_catch_fork, print_it_catch_fork)
4181 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4182 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4183 (create_fork_vfork_event_catchpoint): Adjust to use
4186 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4188 * breakpoint.c (add_to_breakpoint_chain)
4189 (init_raw_breakpoint_without_location): New functions, factored
4191 (set_raw_breakpoint_without_location): ... this one.
4192 (init_raw_breakpoint): New function, factored out from
4193 set_raw_breakpoint and adjusted to use
4194 init_raw_breakpoint_without_location.
4195 (set_raw_breakpoint): Adjust.
4196 (init_catchpoint): New function, factored out from
4197 create_catchpoint_without_mention and adjusted to use
4198 init_raw_breakpoint.
4199 (create_catchpoint_without_mention): Adjust.
4201 2011-06-22 Tom Tromey <tromey@redhat.com>
4203 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4204 argument of 0 specially.
4206 2011-06-22 Yao Qi <yao@codesourcery.com>
4208 * infrun.c (handle_inferior_event): Remove write-only local variable
4209 `sw_single_step_trap_p'.
4211 2011-06-20 Tom Tromey <tromey@redhat.com>
4213 * symtab.c (lookup_language_this): End loop if block is NULL.
4215 2011-06-17 Tom Tromey <tromey@redhat.com>
4217 * valops.c (value_of_this): Use lookup_language_this.
4218 * symtab.h (lookup_language_this): Declare.
4219 * symtab.c (lookup_language_this): New function.
4220 (lookup_symbol_aux): Use lookup_language_this.
4221 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4223 2011-06-17 Tom Tromey <tromey@redhat.com>
4225 * value.h (value_of_this): Update.
4226 (value_of_local): Remove.
4227 * valops.c (value_of_this): Rename from value_of_local. Change
4229 * p-exp.y (exp): Update.
4230 (variable): Likewise.
4231 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4233 2011-06-17 Tom Tromey <tromey@redhat.com>
4235 * valops.c (value_of_local): Complain if NAME is NULL.
4236 * std-operator.def (OP_OBJC_SELF): Remove.
4237 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4238 * objc-exp.y (name_not_typename): Use OP_THIS.
4239 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4241 <OP_OBJC_SELF>: Remove.
4242 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4244 2011-06-16 Tristan Gingold <gingold@adacore.com>
4246 * python/py-events.h (gdb_py_events): Make it extern.
4247 * python/py-evtregistry.c (gdb_py_events): Declare.
4249 2011-06-16 Hui Zhu <teawater@gmail.com>
4251 * remote.c (remote_trace_set_readonly_regions): Add check for
4252 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4255 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4257 * arm-linux-tdep.c: Include "auxv.h".
4259 (ARM_LINUX_SIZEOF_VFP): Define.
4260 (arm_linux_supply_vfp): New function.
4261 (arm_linux_collect_vfp): Likewise.
4262 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4263 (arm_linux_fpa_regset_sections): New variable.
4264 (arm_linux_vfp_regset_sections): Likewise.
4265 (arm_linux_core_read_description): New function.
4266 (arm_linux_init_abi): Install arm_linux_core_read_description and
4267 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4268 appropriate for the architecture.
4269 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4270 (tdesc_arm_with_m): Declare.
4271 (tdesc_arm_with_iwmmxt): Likewise.
4272 (tdesc_arm_with_vfpv2): Likewise.
4273 (tdesc_arm_with_vfpv3): Likewise.
4274 (tdesc_arm_with_neon): Likewise.
4275 * arm-linux-nat.c: Move features/*.c includes ...
4276 * arm-tdep.c: ... here.
4277 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4278 target description data structures ...
4279 * arm-tdep.c (_initialize_arm_tdep): ... here.
4280 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4281 HWCAP_VFPv3D16): Move definitions ...
4282 * arm-linux-tdep.h: ... here.
4284 2011-06-15 Hui Zhu <teawater@gmail.com>
4286 * remote.c (remote_trace_set_readonly_regions): Add a check for
4289 2011-06-14 Tom Tromey <tromey@redhat.com>
4291 * coffread.c (coffread_objfile): Rename from current_objfile.
4292 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4293 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4295 2011-06-14 Tom Tromey <tromey@redhat.com>
4297 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4298 (class_symtab): Remove.
4299 (jv_dynamics_progspace_key): New global.
4300 (jv_per_objfile_free): Reset program space data. Update assert.
4301 Don't clear globals.
4302 (get_dynamics_objfile): Use and set program space data.
4303 (get_java_class_symtab): Use get_dynamics_objfile.
4304 (add_class_symbol): Likewise.
4305 (java_link_class_type): Likewise.
4306 (java_object_type, jv_clear_object_type, set_java_object_type):
4308 (get_java_object_type): Update. Don't cache result.
4309 (is_object_type): Don't call set_java_object_type.
4310 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4311 initialize jv_dynamics_progspace_key.
4313 2011-06-14 Tom Tromey <tromey@redhat.com>
4315 * symtab.h (current_objfile): Don't declare.
4316 * objfiles.h (current_objfile): Don't declare.
4317 * objfiles.c (current_objfile): Remove.
4318 * mdebugread.c (current_objfile): New file-scope global.
4319 * dbxread.c (current_objfile): New file-scope global.
4320 * coffread.c (current_objfile): New file-scope global.
4322 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4324 * top.h (line): Rename to ...
4325 (saved_command_line): ... this.
4326 (linesize): Rename to ...
4327 (saved_command_line_size): ... this.
4328 * top.c (line): Rename to ...
4329 (saved_command_line): ... this.
4330 (linesize): Rename to ...
4331 (saved_command_line_size): ... this.
4332 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4333 * event-top.c (command_line_handler): Adjust.
4334 * main.c (captured_main): Adjust.
4336 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4338 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4339 get_frame_func instead of get_frame_pc to determine the code
4340 address used to construct the frame ID.
4341 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4342 (i386_epilogue_frame_this_id): Likewise.
4343 (i386_epilogue_frame_prev_register): New function.
4344 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4345 (i386_stack_tramp_frame_sniffer): Fix coding style.
4346 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4347 (i386_gdbarch_init): Fix comments.
4349 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4351 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4352 instruction when walking back through the instruction stream.
4354 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4356 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4357 fullname parameters order.
4359 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4362 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4364 * psymtab.c (map_symbol_filenames_psymtab)
4365 (map_partial_symbol_filenames): Likewise.
4366 * psymtab.h: Include symfile.h.
4367 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4368 * symfile.h (symbol_filename_ftype): New.
4369 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4370 map_symbol_filenames, clarify more the naming in comment.
4372 2011-06-07 Doug Evans <dje@google.com>
4374 * cc-with-index.sh: Fix typos in comment.
4375 Look for ../../gdb, for fullname.exp.
4377 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4378 Pedro Alves <pedro@codesourcery.com>
4380 * cli/cli-cmds.c (shell_escape): Use waitpid.
4381 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4383 2011-06-07 Tristan Gingold <gingold@adacore.com>
4385 * xcoffread.c (dwarf2_xcoff_names): New variable.
4386 (aix_process_linenos): Add a guard.
4387 (xcoff_symfile_finish): Free dwarf2.
4388 (xcoff_initial_scan): Add dwarf2 support.
4390 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4392 * infcall.c (run_inferior_call): Don't mask async. Instead force
4393 a synchronous wait, if the target can async.
4395 * target.h (struct target_ops): Delete to_async_mask.
4396 (target_async_mask): Delete.
4397 * target.c (update_current_target): Delete references to to_async_mask.
4398 * linux-nat.c (linux_nat_async_mask_value): Delete.
4399 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4400 to linux_nat_async_mask_value.
4401 (linux_nat_async_mask): Delete.
4402 (linux_nat_async, linux_nat_close): Remove references to
4403 linux_nat_async_mask_value.
4404 * record.c (record_async_mask_value): Delete.
4405 (record_async): Remove references to record_async_mask_value.
4406 (record_async_mask): Delete.
4407 (record_can_async_p, record_is_async_p): Remove references to
4408 record_async_mask_value.
4409 (init_record_ops, init_record_core_ops): Remove references to
4411 * remote.c (remote_async_mask_value): Delete.
4412 (init_remote_ops): Remove reference to remote_async_mask.
4413 (remote_can_async_p, remote_is_async_p): Remove references to
4414 remote_async_mask_value.
4415 (remote_async): Remove references to remote_async_mask_value.
4416 (remote_async_mask): Delete.
4418 * infrun.c (fetch_inferior_event): Don't claim registers changed
4419 if the current thread is already not executing.
4421 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4423 From Stephen Kitt <steve@sk2.org>
4424 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4425 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4427 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4429 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4430 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4432 2011-06-03 Tom Tromey <tromey@redhat.com>
4434 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4436 * python/py-exitedevent.c (create_exited_event_object): Change
4437 type of 'exit_code'. Optionally add exit_code attribute.
4438 (emit_exited_event): Change type of 'exit_code'.
4439 * python/py-event.h (emit_exited_event): Update.
4440 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4441 * infrun.c (handle_inferior_event): Set exit code fields on
4443 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4445 * inferior.c (exit_inferior_1): Initialize new fields.
4447 2011-06-03 Tom Tromey <tromey@redhat.com>
4449 * dwarf2expr.c (get_signed_type): New function.
4450 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4452 2011-06-02 Keith Seitz <keiths@redhat.com>
4454 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4456 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4458 * top.h (simplified_command_loop): Delete declaration.
4460 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4462 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4463 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4465 2011-06-01 Yao Qi <yao@codesourcery.com>
4467 * objfiles.h (obj_section_addr): Update reference to objfile from
4469 (obj_section_endaddr): Likewise.
4471 2011-06-01 Daniel Jacobowitz <drow@false.org>
4473 * MAINTAINERS: Update my email address and affiliation. Also
4474 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4476 2010-05-31 Keith Seitz <keiths@redhat.com>
4479 * linespec.c (get_search_block): New function.
4480 (find_methods): Add FILE_SYMTATB parameter and use it and
4481 get_search_block to pass an appropriate block to
4482 lookup_symbol_in_namespace.
4483 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4484 Check if *ARGPTR starts with a filename first.
4485 If it does, call locate_first_half again to locate the next
4486 "first half" of the linespec.
4487 Pass FILE_SYMTATB to decode_objc and decode_compound.
4488 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4489 (locate_first_half): Stop on the first colon seen.
4490 (decode_compound): Add FILE_SYMTAB parameter.
4491 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4492 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4493 get_search_block with lookup_symbol.
4494 (find_method): Add FILE_SYMTAB parameter and pass it to
4496 (decode_objc): Use get_search_block.
4498 2010-05-31 Keith Seitz <keiths@redhat.com>
4501 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4502 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4503 and CP_ANONYMOUS_NAMESPACE_LEN.
4504 (cp_is_anonymous): Likewise.
4505 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4506 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4507 * dwarf2read.c (namespace_name): Likewise.
4508 (fixup_partial_die): Likewise.
4509 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4510 seen in the input, keep it.
4512 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4514 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4515 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4516 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4517 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4518 * remote.c (_initialize_remote): Register
4519 async_remote_interrupt_twice directly as
4520 sigint_remote_twice_token event.
4522 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4524 * target.h (enum inferior_event_type): Delete INF_ERROR.
4525 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4527 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4529 * interps.c (interp_set): Don't cancel continuations.
4531 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4533 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4535 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4537 * continuations.h (continuation_ftype): Add `err' parameter.
4538 Document parameters.
4539 (do_all_continuations, do_all_continuations_thread)
4540 (do_all_intermediate_continuations)
4541 (do_all_intermediate_continuations_thread)
4542 (do_all_inferior_continuations): Add `err' parameter.
4543 * continuations.c (do_my_continuations_1, do_my_continuations)
4544 (do_all_inferior_continuations, do_all_continuations_ptid)
4545 (do_all_continuations_thread_callback)
4546 (do_all_continuations_thread, do_all_continuations)
4547 (do_all_intermediate_continuations_thread_callback)
4548 (do_all_intermediate_continuations_thread)
4549 (do_all_intermediate_continuations): Add `err' parameter, and pass
4550 it down all the way to the continuations proper.
4551 * inf-loop.c (inferior_event_handler): If fetching an inferior
4552 event throws an error, don't pop the target, and still call the
4553 continuations, but with `err' set. Adjust all other continuation
4555 * breakpoint.c (until_break_command_continuation): Add `err'
4557 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4558 issue another step if `err' is set.
4559 (struct until_next_continuation_args): New.
4560 (until_next_continuation): Add `err' parameter. Adjust.
4561 (until_next_command): Adjust.
4562 (struct finish_command_continuation_args): Add `thread' field.
4563 (finish_command_continuation): Add `err' parameter. Handle it.
4564 (finish_forward): Adjust.
4565 (attach_command_continuation): Add `err' parameter. Handle it.
4566 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4567 cancel the continuations.
4568 * interps.c (interp_set): Adjust to cancel the continuations.
4569 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4570 continuations rather than discarding.
4571 (free_thread): Don't clear thread inferior resources here.
4572 (delete_thread_1): Do it here instead. And do it before removing
4573 the thread from the threads list. Tag the thread as exited before
4574 clearing thread inferior resources.
4576 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4578 * infcall.c (call_function_by_hand): Rephrase error message.
4580 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4582 * defs.h (struct thread_info, struct inferior): Delete forward
4584 * breakpoint.h (struct thread_info): New forward declaration.
4585 * observer.sh (struct inferior): New forward declaration.
4586 * python/python-internal.h (struct inferior): New forward
4589 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4591 * defs.h (struct continuation, continuation_ftype)
4592 (continuation_free_arg_ftype, add_continuation)
4593 (do_all_continuations, do_all_continuations_thread)
4594 (discard_all_continuations, discard_all_continuations_thread)
4595 (add_intermediate_continuation, do_all_intermediate_continuations)
4596 (do_all_intermediate_continuations_thread)
4597 (discard_all_intermediate_continuations)
4598 (discard_all_intermediate_continuations_thread)
4599 (add_inferior_continuation, do_all_inferior_continuations)
4600 (discard_all_inferior_continuations): Move to ...
4601 * continuations.h: ... this new file.
4602 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4603 infcmd.c, inferior.c, infrun.c, interps.c: Include
4606 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4607 Doug Evans <dje@google.com>
4609 Fix PR 10970, PR 12702.
4610 * linux-nat.c (linux_lwp_is_zombie): New function.
4611 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4612 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4614 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4616 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4618 (add_continuation, add_intermediate_continuation)
4619 (add_inferior_continuation): Use them.
4620 * continuations.c (struct continuation): Use them.
4621 (make_continuation_ftype): Delete.
4622 (make_continuation, add_inferior_continuation, add_continuation)
4623 (add_intermediate_continuation): Use continuation_ftype and
4624 continuation_free_arg_ftype. Rename parameters to shorter names.
4626 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4628 * continuations.c (make_continuation): Make it return void.
4629 (do_my_continuations): Rename to ...
4630 (do_my_continuations_1): ... this. Remove old_chain parameter and
4632 (do_my_continuations): New.
4633 (discard_my_continuations): Rename to ...
4634 (discard_my_continuations_1): ... this. Remove old_chain
4635 parameter and adjust.
4636 (discard_my_continuations): New.
4637 (add_inferior_continuation): Simplify.
4638 (do_all_inferior_continuations): Reimplement on top
4639 do_my_continuations.
4640 (discard_all_inferior_continuations): Simplify.
4641 (add_continuation): Simplify.
4642 (do_all_continuations_ptid): Simplify.
4643 (discard_all_continuations_thread_callback): Simplify.
4644 (add_intermediate_continuation): Simplify.
4645 (discard_all_intermediate_continuations_thread_callback):
4648 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4650 * utils.c (struct continuation, add_continuation)
4651 (add_inferior_continuation)
4652 (do_all_inferior_continuations, discard_all_inferior_continuations)
4653 (restore_thread_cleanup, do_all_continuations_ptid)
4654 (do_all_continuations_thread_callback)
4655 (do_all_continuations_thread, do_all_continuations)
4656 (discard_all_continuations_thread_callback)
4657 (discard_all_continuations_thread, discard_all_continuations)
4658 (add_intermediate_continuation)
4659 (do_all_intermediate_continuations_thread_callback)
4660 (do_all_intermediate_continuations_thread)
4661 (do_all_intermediate_continuations)
4662 (discard_all_intermediate_continuations_thread_callback)
4663 (discard_all_intermediate_continuations_thread)
4664 (discard_all_intermediate_continuations): Move to ...
4665 * continuations.c: ... this new file, and adjust to no longer
4666 implement continuations on top of cleanups.
4667 * Makefile.in (SFILES): Add continuations.c.
4668 (COMMON_OBS): Add continuations.o.
4670 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4672 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4673 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4674 Internal error on invalid values.
4675 * reverse.c: Don't handle EXEC_ERROR.
4676 * mi/mi-main.c: Don't handle EXEC_ERROR.
4678 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4680 * record.c: Include event-loop.h, inf-loop.h.
4681 (record_beneath_to_async): New global.
4682 (tmp_to_async): New global.
4683 (record_async_inferior_event_token): New global.
4684 (record_open_1): Don't error out if async is enabled.
4685 (record_open): Handle to_async. Create an async event source in
4687 (record_close): Delete the async event source.
4688 (record_resumed): New global.
4689 (record_execution_dir): New global.
4690 (record_resume, record_core_resume): Set them. Register the
4691 target on the event loop.
4692 (record_wait): Rename to ...
4693 (record_wait_1): ... this. Add more debug output. Handle
4694 TARGET_WNOHANG, and the target beneath returning
4695 TARGET_WAITKIND_IGNORE.
4696 (record_wait): Reimplement on top of record_wait_1.
4697 (record_async_mask_value): New global.
4698 (record_async, record_async_mask, record_can_async_p)
4699 (record_is_async_p, record_execution_direction): New functions.
4700 (init_record_ops, init_record_core_ops): Install new methods.
4701 * infrun.c (fetch_inferior_event): Temporarily switch the global
4702 execution direction to the direction the target was going.
4703 (execution_direction): Change type to int.
4704 * target.c (default_execution_direction): New function.
4705 (update_current_target): Inherit and de_fault
4706 to_execution_direction.
4707 * target.h (struct target_ops) <to_execution_direction>: New
4709 (target_execution_direction): New macro.
4710 * inferior.h (execution_direction): Change type to int.
4712 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4714 * infcall.c (call_function_by_hand): Don't allow calling functions
4715 in reverse execution mode.
4717 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4719 * infcmd.c (finish_command): Allow async finish in reverse.
4721 2011-05-26 Yao Qi <yao@codesourcery.com>
4723 * gdb_thread_db.h: Delete. Move to ...
4724 * common/gdb_thread_db.h: ... here.
4726 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4728 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4729 function's entry point instead of a manually managed momentary
4730 breakpoint, and only ever issue one proceed call.
4731 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4732 doing a reverse-finish, switch to stepi mode, to do another step.
4733 (insert_step_resume_breakpoint_at_sal): Make public.
4734 (normal_stop): No need to save function value return registers if
4736 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4738 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4740 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4741 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4742 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4744 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4745 step-resume breakpoints.
4746 (print_it_typical): Handle bp_hp_step_resume.
4747 (bpstat_what): Ditto.
4748 (bptype_string): Ditto.
4749 (print_one_breakpoint_location): Ditto.
4750 (allocate_bp_location): Ditto.
4752 (breakpoint_re_set_one): Ditto.
4753 * infrun.c (handle_inferior_event): Adjust. Split
4754 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4755 BPSTAT_WHAT_HP_STEP_RESUME.
4756 (insert_step_resume_breakpoint_at_sal): Rename to ...
4757 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4758 parameter. Handle it.
4759 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4760 insert_step_resume_breakpoint_at_sal_1.
4761 (insert_step_resume_breakpoint_at_frame): Rename to ...
4762 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4763 set a high-priority step-resume breakpoint.
4764 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4765 (insert_step_resume_breakpoint_at_caller): Ditto.
4767 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4769 * breakpoint.c (iterate_over_related_breakpoints): New.
4770 (do_map_delete_breakpoint): New.
4771 (delete_command): Pass do_map_delete_breakpoint to
4772 map_breakpoint_numbers.
4773 (do_disable_breakpoint): New.
4774 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4776 (do_enable_breakpoint): Rename to ...
4777 (enable_breakpoint_disp): ... this.
4778 (enable_breakpoint): Adjust.
4779 (do_enable_breakpoint): New.
4780 (enable_once_breakpoint): Delete.
4781 (do_map_enable_breakpoint): New.
4782 (do_map_enable_once_breakpoint): New.
4783 (enable_once_command, enable_delete_command)
4784 (delete_trace_command): Iterate over the breakpoint's related
4787 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4789 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4790 for ALPHA_ZERO_REGNUM.
4791 (alpha_supply_int_regs): Explicitly supply zero as the value for
4792 ALPHA_ZERO_REGNUM in the register cache.
4793 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4795 2011-05-26 Yao Qi <yao@codesourcery.com>
4797 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4799 2011-05-26 Tristan Gingold <gingold@adacore.com>
4801 * symfile.h (struct dwarf2_section_names): New type.
4802 (struct dwarf2_debug_sections): New type.
4803 (dwarf2_has_info): Add parameter.
4804 * dwarf2read.c (dwarf2_elf_names): New variable.
4805 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4806 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4807 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4808 (dwarf2_has_info): Add names parameter. Pass names
4809 to dwarf2_locate_sections.
4810 (section_is_p): Rewrite using the names parameter.
4811 (dwarf2_locate_sections): Use section names from the names parameter.
4812 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4813 * elfread.c (read_psyms): Ditto.
4814 * machoread.c (macho_symfile_read): Ditto.
4816 2011-05-25 Andreas Schwab <schwab@redhat.com>
4819 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4821 2011-05-24 Keith Seitz <keiths@redhat.com>
4824 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4825 (decode_compound): Unconditionally call keep_name_info.
4827 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4829 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4830 scope, clear its command list.
4831 (map_breakpoint_numbers): Don't walk the related breakpoints list
4834 2011-05-24 Tom Tromey <tromey@redhat.com>
4836 * MAINTAINERS: Move Jim Blandy to past maintainers.
4838 2011-05-24 Tristan Gingold <gingold@adacore.com>
4840 * symfile.h (enum dwarf2_section_enum): New type.
4841 (dwarf2_get_section_info): New prototype.
4842 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4843 section_name by sect. Use a switch to select the info.
4844 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4845 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4847 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4849 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4850 shared library event breakpoint if there's no execution.
4852 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4854 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4855 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4857 2011-05-23 Tom Tromey <tromey@redhat.com>
4859 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4862 2011-05-23 Doug Evans <dje@google.com>
4864 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4865 entry for RuntimeError to doc string.
4867 2011-05-23 Jerome Guitton <guitton@adacore.com>
4869 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4870 sequence for probing loops.
4872 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4874 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4877 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4879 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4880 zero as the value for %g0 in the register cache.
4881 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4882 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4884 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4886 * infrun.c (proceed): Set previous_inferior_ptid here.
4887 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4888 inferior_ptid, not null_ptid.
4889 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4890 (fetch_inferior_event): Nor here.
4892 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4894 * inf-loop.c (inferior_event_handler): Only output a message if
4897 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4899 * MAINTAINERS: Update my e-mail address.
4901 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4903 * infrun.c (proceed): Switch the inferior event loop to
4904 INF_EXEC_COMPLETE if the target refused to resume from a
4907 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4909 * infcmd.c: Include "inf-loop.h".
4910 (step_once): When stepping into an inline subroutine, pretend the
4911 target has run. If the target can async, switch the inferior
4912 event loop to INF_EXEC_COMPLETE.
4913 * inferior.h (user_visible_resume_ptid): Declare.
4914 * infrun.c (user_visible_resume_ptid): New function, factored out
4917 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4918 that the current thread is running. Merge async and sync
4921 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4923 * infcmd.c (step_1): Simplify synchronous case.
4925 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4927 * tracepoint.c: Include exceptions.h.
4928 (TFILE_PID): Move higher in file.
4929 (tfile_open): Delay pushing the tfile target until we're assured
4930 the tfile header is present in the file. Wrap reading the initial
4931 newline-terminated lines in TRY_CATCH. Pop the target if the
4932 initial setup failed. Add the tfile's thread immediately
4933 aftwards, before any non-essential setup. Don't skip
4934 post_create_inferior if there are no traceframes present in the
4936 (tfile_close): Remove redundant check for null before xfree call.
4937 (tfile_thread_alive): New function.
4938 (init_tfile_ops): Register it as to_thread_alive callback.
4940 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4942 * tracepoint.c (tfile_open): Delete #if 0'd code.
4944 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4946 Fix -readnow for -gdwarf-4 unused type units.
4947 * dwarf2read.c (struct signatured_type): Remove the field offset.
4948 (create_signatured_type_table_from_index): Remove its initialization.
4949 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4950 instead. Add a complaint call.
4951 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4952 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4953 (lookup_signatured_type_at_offset, read_signatured_type)
4954 (write_one_signatured_type): Update the field for per_cu.
4956 2011-05-19 Tom Tromey <tromey@redhat.com>
4958 * python/py-inferior.c (python_inferior_exit): Use
4960 (python_on_resume): Likewise.
4962 2011-05-19 Matt Rice <ratmice@gmail.com>
4964 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4966 2011-05-19 Hui Zhu <teawater@gmail.com>
4968 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4970 2011-05-19 Hui Zhu <teawater@gmail.com>
4972 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4974 2011-05-18 Tom Tromey <tromey@redhat.com>
4976 * dwarf2read.c (dwarf2_add_field): Constify.
4977 * value.c (value_static_field): Constify.
4978 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4980 * ax-gdb.c (gen_static_field): Constify
4982 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4984 * linux-nat.c (kill_callback): Use SIGKILL first.
4986 2011-05-18 Joel Brobecker <brobecker@adacore.com>
4988 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4990 2011-05-18 Tom Tromey <tromey@redhat.com>
4992 * value.c (value_fn_field): Constify.
4993 * symtab.c (gdb_mangle_name): Constify.
4994 * stabsread.c (update_method_name_from_physname): Make 'physname'
4996 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4997 const. Use explicit fputc_filtered loop.
4998 (pascal_type_print_base): Constify.
4999 * p-lang.h (pascal_type_print_method_args): Update.
5000 * linespec.c (add_matching_methods): Constify.
5001 (add_constructors): Likewise.
5002 * jv-typeprint.c (java_type_print_base): Constify.
5003 * gdbtypes.h (struct cplus_struct_type)
5004 <fn_fieldlist.fn_field.physname>: Now const.
5005 * dwarf2read.c (compute_delayed_physnames): Constify.
5006 (dwarf2_add_member_fn): Likewise.
5007 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5009 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5011 * infrun.c (resume): Mention which is the current thread, and its
5012 current PC in debug output.
5013 (prepare_to_proceed): Mention the thread switching in debug
5016 2011-05-18 Tom Tromey <tromey@redhat.com>
5018 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5019 path check. Use xmalloc and cleanups.
5020 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5022 2011-05-17 Tom Tromey <tromey@redhat.com>
5024 * cp-valprint.c (cp_print_value_fields): Catch errors from
5027 2011-05-17 Tom Tromey <tromey@redhat.com>
5029 * dwarf2read.c (dwarf2_get_die_type): Call
5030 get_die_type_at_offset.
5031 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5032 get_base_type function.
5034 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5036 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5039 2011-05-16 Doug Evans <dje@google.com>
5041 * python/py-auto-load.c (source_section_scripts): Mention objfile
5044 2011-05-15 Doug Evans <dje@google.com>
5046 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5047 (try_thread_db_load_from_pdir): Call it. If unable to find
5048 libthread_db in directory of libpthread, see if we're looking at
5049 the separate-debug-info copy.
5051 * python/py-autoload.c (print_script): Print "Missing" instead of
5052 "No" for missing scripts.
5053 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5055 2011-05-13 Doug Evans <dje@google.com>
5057 * ui-file.c (stdio_file_write_async_safe): Add comment.
5059 2011-05-14 Hui Zhu <teawater@gmail.com>
5061 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5063 2011-05-13 Doug Evans <dje@google.com>
5065 Support $pdir and $sdir in libthread-db-search-path.
5066 * NEWS: Mention $sdir,$pdir.
5067 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5068 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5069 (try_thread_db_load_from_sdir): New function.
5070 (try_thread_db_load_from_dir): New function.
5071 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5072 system directories if search of libthread-db-search-path fails,
5073 that is now done via $sdir.
5074 (has_libpthread): New function.
5075 (thread_db_load): Remove search for libthread_db in directory of
5076 libpthread, that is now done via $pdir.
5078 * NEWS: Mention "info auto-load-scripts".
5079 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5080 script_not_found_warning_printed.
5081 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5082 all callers updated. Initialize script_not_found_warning_printed.
5083 (get_auto_load_pspace_data_for_loading): New function.
5084 (maybe_add_script): New function.
5085 (source_section_scripts): Simplify. Only print one warning regardless
5086 of the number of auto-load scripts not found.
5087 (clear_section_scripts): Clear script_not_found_warning_printed.
5088 (auto_load_objfile_script): Record script in hash table.
5089 (count_matching_scripts): New function.
5090 (maybe_print_script): Renamed from maybe_print_section_script, all
5091 callers updated. Rewrite to use ui_out_*.
5092 (info_auto_load_scripts): Renamed from
5093 maintenance_print_section_scripts, all callers updated.
5094 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5095 renamed as "info auto-load-scripts".
5097 2011-05-13 Tom Tromey <tromey@redhat.com>
5099 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5100 (read_sleb128): Likewise.
5102 2011-05-13 Tom Tromey <tromey@redhat.com>
5104 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5107 2011-05-13 Doug Evans <dje@google.com>
5109 * linux-nat.c (debug_linux_nat_async): Delete.
5110 Replace all references to use debug_linux_nat instead.
5111 (show_debug_linux_nat_async): Delete.
5112 (sigchld_handler): Call ui_file_write_async_safe instead of
5114 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5115 * ui-file.c (struct ui_file): New member to_write_async_safe.
5116 (null_file_write_async_safe): New function.
5117 (ui_file_write_async_safe): New function.
5118 (set_ui_file_write_async_safe): New function.
5119 (ui_file_new): Initialize to_write_async_safe.
5120 (stdio_file_write_async_safe): New function.
5121 (struct stdio_file): New member fd.
5122 (stdio_file_new): Initialize to_write_async_safe, fd.
5123 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5125 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5126 (set_ui_file_write_async_safe): Declare.
5127 (ui_file_write_async_safe): Declare.
5129 2011-05-13 Tom Tromey <tromey@redhat.com>
5131 * utils.c (do_value_free): New function.
5132 (make_cleanup_value_free): Likewise.
5133 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5135 (dwarf2_loc_desc_needs_frame): Call
5136 make_cleanup_value_free_to_mark.
5137 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5138 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5140 (new_dwarf_expr_context): Don't call value_mark.
5141 * dwarf2-frame.c (execute_stack_op): Call
5142 make_cleanup_value_free_to_mark.
5143 * defs.h (make_cleanup_value_free): Declare.
5145 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5147 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5148 prepare_execute_command.
5149 * top.c (prepare_execute_command): Return cleanup.
5150 (execute_command): Use cleanup from prepare_execute_command.
5151 * top.h (prepare_execute_command): Change prototype to return
5153 * defs.h (struct value): Add opaque declaration.
5154 (make_cleanup_value_free_to_mark): Add prototype.
5155 * utils.c (do_value_free_to_mark): New function.
5156 (make_cleanup_value_free_to_mark): Likewise.
5158 2011-05-12 Tom Tromey <tromey@redhat.com>
5160 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5161 cast left-hand-side to unsigned.
5163 2011-05-12 Tom Tromey <tromey@redhat.com>
5166 * value.h (value_from_contents): Declare.
5167 * value.c (value_from_contents): New function.
5168 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5169 (dwarf2_get_die_type): New function.
5170 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5171 (allocate_piece_closure): Acquire reference to values.
5172 (read_pieced_value): Update for value-based expressions.
5173 (write_pieced_value): Likewise.
5174 (free_pieced_value_closure): Call value_free as needed.
5175 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5176 Update for value-based expressions.
5177 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5178 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5179 <get_base_type>: New field.
5180 (struct dwarf_expr_piece) <v.value>: Change type.
5181 <v.regno>: New field.
5182 (struct dwarf_expr_context) <mark>: New field.
5183 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5184 (dwarf_expr_pop, dwarf_expr_push): Remove.
5185 (dwarf_expr_push_address): Declare.
5186 * dwarf2expr.c (dwarf_arch_cookie): New global.
5187 (struct dwarf_gdbarch_types): New.
5188 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5190 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5192 (dwarf_expr_push_address): New function.
5193 (dwarf_expr_pop): Now static.
5194 (dwarf_expr_fetch): Change return type.
5195 (dwarf_require_integral): New function.
5196 (dwarf_expr_fetch): Simplify.
5197 (add_piece): Update.
5198 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5200 (execute_stack_op) <sign_ext>: Remove.
5201 Use values for DWARF stack.
5202 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5203 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5205 (_initialize_dwarf2expr): New function.
5206 (add_piece): Update.
5207 (new_dwarf_expr_context): Set new field.
5208 (free_dwarf_expr_context): Call value_free_to_mark.
5209 * dwarf2-frame.c (no_base_type): New function.
5210 (execute_stack_op): Set get_base_type field. Update.
5212 2011-05-12 Tom Tromey <tromey@redhat.com>
5214 * dwarf2read.c (read_common_block): Fix formatting.
5216 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5218 * breakpoint.c (disable_breakpoint): Disable all locations
5219 associated with a tracepoint on target if a trace experiment is
5221 (disable_command): Disable a specific tracepoint location on target if
5222 a trace experiment is running.
5223 (do_enable_breakpoint): Enable all locations associated with a
5224 tracepoint on target if a trace experiment is running.
5225 (enable_command) Enable a specific tracepoint location on target if a
5226 trace experiment is running.
5227 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5228 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5229 to_disable_tracepoint.
5230 * target.h: Add declaration of struct bp_location.
5231 (struct target_ops): Add new functions
5232 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5233 to_disable_tracepoint to target operations.
5234 (target_supports_enable_disable_tracepoint): New macro.
5235 (target_enable_tracepoint): New macro.
5236 (target_disable_tracepoint): New macro.
5237 * remote.c (struct remote_state): Add new field.
5238 (remote_enable_disable_tracepoint_feature): New.
5239 (remote_protocol_features): Add new entry.
5240 (remote_supports_enable_disable_tracepoint): New.
5241 (remote_enable_tracepoint): New.
5242 (remote_disable_tracepoint): New.
5243 (init_remote_ops): Add remote_enable_tracepoint,
5244 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5245 to remote operations.
5246 * tracepoint.c (start_tracing): Allow tracing to start without any
5247 tracepoints enabled with just a warning if they can be re-enabled
5249 * NEWS: Add news item for the new behaviour of the enable and disable
5250 GDB commands when applied to tracepoints.
5251 Add news items for the new remote packets QTEnable and QTDisable.
5253 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 * config.in: Regenerate.
5256 * configure: Regenerate.
5257 * configure.ac <--with-system-readline> (for readline_echoing_p):
5259 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5260 (tui_old_rl_echoing_p): ... here.
5261 (tui_setup_io): Rename extern declaration readline_echoing_p to
5262 _rl_echoing_p. Adjust assignments for the both renames.
5264 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5266 * symtab.c (lookup_symtab): Run cleanup before returning.
5268 2011-05-11 Tom Tromey <tromey@redhat.com>
5270 * dwarf2read.c (handle_data_member_location): New function.
5271 (dwarf2_add_field): Use it.
5272 (read_common_block): Likewise.
5274 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5276 Make addrs->SECTINDEX always defined.
5277 * symfile.c (relative_addr_info_to_section_offsets): Check for
5278 SECTINDEX -1, not for zero ADDR.
5279 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5280 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5281 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5284 2011-05-10 Doug Evans <dje@google.com>
5286 * linux-thread-db.c: Whitespace cleanup.
5287 (try_thread_db_load_1): Fix comment.
5289 * linux-thread-db.c (set_libthread_db_search_path): New function.
5290 (_initialize_thread_db): Add setter for libthread-db-search-path.
5292 2011-05-09 Doug Evans <dje@google.com>
5294 * NEWS: Mention --with-iconv-bin.
5295 * configure.ac: New option --with-iconv-bin.
5296 * configure: Regenerate.
5297 * config.in: Regenerate.
5298 * defs.h (relocate_gdb_directory): Declare.
5299 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5300 removed progname parameter, and exported. All callers updated.
5301 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5303 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5304 adding missing call to restore_child_signals_mask.
5306 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5308 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5310 * infrun.c (proceed, start_remote): Adjust.
5311 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5312 and adjust to not handle it.
5313 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5314 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5315 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5316 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5317 * windows-nat.c (do_initial_windows_stuff): Adjust.
5318 * infcmd.c (attach_command): Adjust.
5319 (notice_new_inferior): Adjust.
5321 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5323 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5324 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5325 * spu-tdep.c (op_selb): Use correct value.
5327 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5329 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5330 "parent" parameter to symbol_file_add_from_bfd call.
5332 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5333 Thiago Jung Bauermann <bauerman@br.ibm.com>
5335 Implement support for PowerPC BookE masked watchpoints.
5336 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5338 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5339 method. Initialize to NULL in all existing breakpoint_ops instances.
5340 (struct breakpoint) <hw_wp_mask>: New field.
5341 * breakpoint.c (is_masked_watchpoint): Add prototype.
5342 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5343 breakpoint's breakpoint_ops.works_in_software_mode if available.
5344 (watchpoints_triggered): Handle the case of a hardware masked
5346 (watchpoint_check): Likewise.
5347 (works_in_software_mode_watchpoint): New function.
5348 (insert_masked_watchpoint, remove_masked_watchpoint)
5349 (resources_needed_masked_watchpoint)
5350 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5351 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5352 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5354 (masked_watchpoint_breakpoint_ops): New structure.
5355 (watch_command_1): Check for the existence of the `mask' parameter.
5356 Set b->ops according to the type of hardware watchpoint being created.
5357 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5358 (ppc_linux_remove_mask_watchpoint)
5359 (ppc_linux_masked_watch_num_registers): New functions.
5360 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5361 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5362 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5363 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5364 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5365 (target_masked_watch_num_registers): New functions.
5366 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5367 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5369 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5370 (target_masked_watch_num_registers): Add prototypes.
5372 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5375 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5376 (producer_is_gcc_ge_4_0): New function.
5377 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5378 symtab->language code.
5379 (var_decode_location): Set cu->has_loclist.
5380 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5381 skip. Intialize force_skip from locations_valid. Move the prologue
5382 skipping code into two passes.
5383 * symtab.h (struct symtab): Make the primary field a bitfield. New
5384 field locations_valid.
5386 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5388 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5389 (classify_inner_name): Call cp_lookup_nested_type with
5391 * cp-namespace.c (cp_lookup_nested_type): New variable
5392 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5393 type_name_no_tag_or_error with saved_parent_type.
5394 * dwarf2read.c (load_partial_dies): Read in any children of
5395 DW_TAG_typedef with complaint in such case.
5396 * gdbtypes.c (type_name_no_tag_or_error): New function.
5397 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5398 * valops.c (destructor_name_p): New comment for parameter type. Remove
5399 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5400 * value.h (destructor_name_p): Remove type const.
5402 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5404 * symtab.c (compare_symbol_name): New function.
5405 (completion_list_add_name, expand_partial_symbol_name): Call it,
5406 remove the variable ncmp.
5407 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5410 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5412 Demote to sw watchpoint only in update_watchpoint.
5413 * breakpoint.c (update_watchpoint): Change between software and
5414 hardware watchpoint for all kinds of watchpoints, not just
5415 read/write ones. Determine b->exact value here instead of
5416 in watch_command_1. Error out if there are not enough resources
5417 for a read or access hardware watchpoint.
5418 (watch_command_1): Remove logic of checking whether there are
5419 enough resources available, since update_watchpoint will do that
5420 work now. Don't set b->exact here. Catch exceptions thrown by
5421 update_watchpoint and delete the watchpoint.
5422 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5423 Use target_exact_watchpoints instead.
5424 (delete_breakpoint): Notify observers only if deleted watchpoint
5425 has a breakpoint number assigned to it.
5427 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5429 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5431 2011-05-05 Jerome Guitton <guitton@adacore.com>
5433 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5435 (i386_stack_tramp_frame_unwind): New static global.
5436 (i386_match_pattern): New function, extracted from i386_match_insn.
5437 (i386_match_insn): Use i386_match_pattern.
5438 (i386_match_insn_block): New function.
5439 (i386_tramp_chain_in_reg_insns)
5440 (i386_tramp_chain_on_stack_insns): New static variables.
5441 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5444 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5446 * configure.host (xscale*): Don't handle target.
5447 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5450 2011-05-04 Yao Qi <yao@codesourcery.com>
5452 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5454 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5457 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5458 | * elfread.c (elf_symtab_read): Stop memory leak.
5460 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5462 * nto-tdep.c (nto_target): Replace deprecated call to
5463 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5465 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5467 Fix false GCC warning.
5468 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5470 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5472 * breakpoint.c (update_watchpoint): Move code to change
5473 the enable state of breakpoint from here ...
5474 (do_enable_breakpoint): ... to here.
5476 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5478 * valprint.c (val_print_array_elements): Fixed poor performance
5479 of printing very large arrays with repeat_count_threshold set
5480 to unlimited. New comment.
5482 2011-04-29 Tom Tromey <tromey@redhat.com>
5484 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5485 (mi_parse): Likewise.
5486 * breakpoint.c (break_range_command): Use sizeof char*, not
5488 (create_breakpoint): Likewise.
5489 (parse_breakpoint_sals): Likewise.
5491 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5493 * linux-nat.c (linux_child_remove_fork_catchpoint)
5494 (linux_child_remove_vfork_catchpoint)
5495 (linux_child_remove_exec_catchpoint): New functions.
5496 (linux_target_install_ops): Install them.
5498 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5502 * varobj.c (install_default_visualizer): Do not install a
5503 visualizer if the varobj is CPLUS_FAKE_CHILD.
5504 (construct_visualizer): Likewise.
5506 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5508 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5509 case insensitive comparison.
5511 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5513 * infrun.c (proceed): Revert previous change.
5514 (resume): Instead, handle the case of signal delivery while stepping
5515 off a breakpoint location here, and only if software single-stepping
5516 is used. Handle nested signals.
5518 2011-04-28 Yao Qi <yao@codesourcery.com>
5520 * arm-tdep.c (copy_unmodified): Rename to ...
5521 (arm_copy_unmodified): .. this. New.
5522 (copy_preload): Move common part to ...
5523 (install_preload): .. this. New.
5524 (arm_copy_preload): New.
5525 (copy_preload_reg): Move common part to ...
5526 (install_preload_reg): ... this. New.
5527 (arm_copy_preload_reg): New.
5528 (copy_b_bl_blx): Move common part to ...
5529 (install_b_bl_blx): .. this. New.
5530 (arm_copy_b_bl_blx): New.
5531 (copy_bx_blx_reg): Move common part to ...
5532 (install_bx_blx_reg): ... this. New.
5533 (arm_copy_bx_blx_reg): New.
5534 (copy_alu_reg): Move common part to ...
5535 (install_alu_reg): ... this. New.
5536 (arm_copy_alu_reg): New.
5537 (copy_alu_shifted_reg): Move common part to ...
5538 (install_alu_shifted_reg): ... this. New.
5539 (copy_ldr_str_ldrb_strb): Move common part to ...
5540 (install_ldr_str_ldrb_strb): ... this. New.
5541 (arm_copy_ldr_str_ldrb_strb): New.
5542 (copy_copro_load_store): Move some common part to ...
5543 (install_copy_copro_load_store): ... this. New.
5544 (arm_copy_copro_load_store): New.
5546 (arm_copy_svc): Renamed from copy_svc.
5547 (copy_undef): Delete.
5548 (arm_copy_undef): Renamed from copy_undef.
5549 (decode_ext_reg_ld_st): Delete.
5550 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5551 (decode_svc_copro): Delete.
5552 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5553 (copy_copro_load_store, copy_alu_imm): update callers.
5554 (copy_extra_ld_st, copy_block_xfer): Likewise.
5555 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5556 (decode_miscellaneous, decode_dp_misc): Likewise.
5557 (decode_ld_st_word_ubyte, decode_media): Likewise.
5558 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5559 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5560 (decode_unconditional, decode_miscellaneous): Likewise.
5561 (decode_media, decode_b_bl_ldmstm): Likewise.
5562 (arm_process_displaced_insn): Likewise..
5563 (decode_misc_memhint_neon): Delete.
5564 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5565 (decode_miscellaneous): Delete.
5566 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5567 (decode_dp_misc): Delete.
5568 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5569 (decode_ld_st_word_ubyte): Delete.
5570 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5571 (decode_media): Delete.
5572 (arm_decode_media): Renamed from decode_media.
5573 (decode_b_bl_ldmstm): Delete.
5574 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5575 (decode_ext_reg_ld_st): Delete.
5576 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5577 (decode_unconditional): Delete.
5578 (arm_decode_unconditional): Renamed from decode_unconditional.
5580 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5582 Case insensitive lookups implementation.
5583 * dwarf2read.c: Include ctype.h.
5584 (struct mapped_index): New field version.
5585 (mapped_index_string_hash): New parameter index_version. New comment
5586 for it. Call tolower appropriately.
5587 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5588 Choose the right index version for mapped_index_string_hash.
5589 (dwarf2_read_index): Support also the index version 5. Initialize the
5590 new struct mapped_index field version.
5591 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5592 (find_slot): Explain the version needs. Pass INT_MAX for the new
5594 (write_psymtabs_to_index): Produce version 5.
5595 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5596 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5597 * psymtab.c (lookup_partial_symbol): Find the
5598 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5600 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5602 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5603 (completion_list_add_name): New variable ncmp, initialize it, use it.
5604 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5605 * utils.c (strcmp_iw): Support case_sensitive_off.
5606 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5607 New function comment part. New variables saved_string1,
5608 saved_string2 and case_pass. Add a proper second pass.
5610 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5612 Replace re_comp/re_exec by regcomp/regexec.
5613 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5614 (search_symbols_name_matches): Use them, use regexec.
5615 (search_symbols): New variable retval_chain, adjust the use of
5616 old_chain against it. Replace re_comp by regcomp. Use the new struct
5617 search_symbols_data fields, use regexec instead of re_exec.
5619 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5621 Format the code for the next patch.
5622 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5623 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5624 New variables c1 and c2.
5626 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5628 * infrun.c (proceed): Do not single-step into signal delivery
5629 when stepping off a breakpoint location.
5630 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5631 (insert_step_resume_breakpoint_at_caller): Likewise.
5632 (insert_step_resume_breakpoint_at_sal): Likewise.
5633 (insert_longjmp_resume_breakpoint): Likewise.
5635 2011-04-27 Yao Qi <yao@codesourcery.com>
5637 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5639 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5641 * procfs.c (procfs_pass_signals): Fix advance declaration.
5643 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5645 * target.h (struct target_ops): Remove to_notice_signals;
5646 add to_pass_signals.
5647 (target_notice_signals): Remove.
5648 (target_pass_signals): Add prototype.
5649 * target.c (update_current_target): Remove to_notice_signals;
5650 mention to_pass_signals.
5651 (target_pass_signals): New function.
5652 (debug_to_notice_signals): Remove.
5653 (setup_target_debug): Do not install debug_to_notice_signals.
5655 * infrun.c (signal_pass): New global.
5656 (resume): Call target_pass_signals.
5657 (handle_inferior_event): Report all signals while stepping over
5658 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5659 are re-inserted when stepping over a signal handler.
5660 (signal_cache_update): New function.
5661 (signal_stop_update): Call it.
5662 (signal_print_update): Likewise.
5663 (signal_pass_update): Likewise.
5664 (handle_command): Call signal_cache_update and target_pass_signals
5665 instead of target_notice_signals.
5666 (_initialize_infrun): Initialize signal_pass.
5668 * linux-nat.c (pass_mask): New global.
5669 (linux_nat_pass_signals): New function.
5670 (linux_nat_create_inferior): Report all signals initially.
5671 (linux_nat_attach): Likewise.
5672 (linux_nat_resume): Use pass_mask to decide whether to directly
5673 handle an inferior signal.
5674 (linux_nat_wait_1): Likewise.
5675 (linux_nat_add_target): Install to_pass_signals callback.
5677 * nto-procfs.c (notice_signals): Remove.
5678 (procfs_resume): Do not call notice_signals.
5679 (procfs_notice_signals): Remove.
5680 (procfs_pass_signals): New function.
5681 (init_procfs_ops): Install to_pass_signals callback instead of
5682 to_notice_signals callback.
5683 (_initialize_procfs): Report all signals initially.
5685 * procfs.c (procfs_notice_signals): Remove.
5686 (procfs_pass_signals): New function.
5687 (procfs_target): Install to_pass_signals callback instead of
5688 to_notice_signals callback.
5689 (register_gdb_signals): Remove.
5690 (procfs_debug_inferior): Report all signals initially.
5691 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5693 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5694 parameters; use them instead of calling signal_..._state routines.
5695 (remote_notice_signals): Remove.
5696 (remote_start_remote): Report all signals initially.
5697 (remote_resume): Do not call remote_pass_signals.
5698 (_initialize_remote): Install to_pass_signals callback instead of
5699 to_notice_signals callback.
5701 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5703 * breakpoint.c (user_settable_breakpoint): Delete.
5704 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5705 (delete_command): Check user_breakpoint_p instead of looking at
5706 the breakpoint's type.
5707 (disable_command): Ditto.
5708 (enable_command): Ditto.
5709 (delete_trace_command): Use user_breakpoint_p instead of looking
5710 at the breakpoint number directly. When checking if there are
5711 user visible tracepoints, in order to know whether to ask the user
5712 for confirmation, check whether the breakpoint is actually a
5715 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5717 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5720 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5722 MI breakpoint notifications.
5724 * annotate.c (breakpoint_changed): Adjust parameter type.
5725 * breakpoint.c (set_breakpoint_condition): Adjust to change
5726 in breakpoint_modified type.
5727 (breakpoint_set_commands): Likewise.
5728 (do_map_commands_command): Likewise.
5729 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5730 changed after bumping hit count.
5731 (bpstat_stop_status): Likewise.
5732 (print_one_breakpoint_location): Don't wrap in tuple here.
5733 (print_one_breakpoint): Always print individual locations.
5734 For locations, use unnamed tuple.
5735 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5737 (create_catchpoint, create_syscall_event_catchpoint): Call
5738 breakpoint_created obsever.
5739 (mention): Don't call breakpoint_created observer.
5740 (create_breakpoint_sal): Call breakpoint_created observer.
5741 (create_breakpoint, watch_command_1): Likewise.
5742 (create_ada_exception_breakpoint): Likewise.
5743 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5744 (locations_are_equal): New.
5745 (update_breakpoint_locations): If locations were changed, notify.
5746 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5747 Call breakpoint_modified observer.
5749 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5750 (mi_cmd_break_insert): Don't set observers for modify and delete.
5751 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5752 (mi_breakpoint_created, mi_breakpoint_deleted)
5753 (mi_breakpoint_modified): New.
5754 (mi_interpreter_init): Hook the above.
5755 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5756 while -break-* commands are executing.
5757 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5758 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5760 (mi_ui_out_impl): Hook in mi_redirect.
5761 (mi_field_skip): True to the name, skip the field, don't output
5762 a field with an empty value.
5764 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5765 (gdbpy_breakpoint_deleted): Adjust.
5766 * tui/tui-hooks.c (tui_event_create_breakpoint)
5767 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5769 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5771 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5772 (procfs_remove_hw_watchpoint): Likewise.
5774 2011-04-26 Michael Walle <michael@walle.cc>
5776 * remote.c (remote_start_remote): Ack packet after sending the
5779 2011-04-26 Yao Qi <yao@codesourcery.com>
5781 * linux-nat.c: Move common macros to ...
5782 Include linux-ptrace.h.
5783 * common/linux-ptrace.h: ... here. New.
5785 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5788 !objfile_has_partial_symbols. New comment.
5789 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5790 SYM_READ_PSYMBOLS is not present. Extend the comment.
5791 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5793 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5795 * defs.h (ENUM_BITFIELD): Remove.
5797 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5798 Eli Zaretskii <eliz@gnu.org>
5800 * NEWS: Document the new gdbserver --once option.
5802 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5804 * MAINTAINERS: Update my email address.
5806 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5808 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5809 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5810 function call if __STDC_ISO_10646__ macro is defined.
5811 (intermediate_encoding): New prototype.
5812 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5813 to generate compile time error for unsupported gdb_wchar_t size.
5814 (ENDIAN_SUFFIX): New macro.
5815 (intermediate_encoding): New function.
5817 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5819 * ada-lang.c (struct add_partial_datum): Update the comment for
5820 expand_partial_symbol_name.
5821 (ada_add_partial_symbol_completions): Rename to ...
5822 (ada_expand_partial_symbol_name): ... here, change return type, update
5823 function comment, call symbol_completion_match instead of
5824 symbol_completion_add.
5825 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5826 and ada_expand_partial_symbol_name.
5827 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5829 (dw2_map_symbol_names): Remove.
5830 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5831 * psymtab.c (map_symbol_names_psymtab): Remove.
5832 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5833 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5835 (psym_functions): Unlist map_symbol_names_psymtab.
5836 (map_partial_symbol_names): Rename to ...
5837 (expand_partial_symbol_names): ... here, change the FUN type, call
5838 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5839 * psymtab.h (map_partial_symbol_names): Rename to ...
5840 (expand_partial_symbol_names): ... here, change the FUN type.
5841 * symfile.h (struct quick_symbol_functions): Update the description of
5842 expand_symtabs_matching. Remove map_symbol_names.
5843 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5844 (struct add_name_data): Update the comment for
5845 expand_partial_symbol_name.
5846 (add_partial_symbol_name): Rename to ...
5847 (expand_partial_symbol_name): ... here. Replace
5848 completion_list_add_name call by strncmp.
5849 (default_make_symbol_completion_list_break_on): Use now
5850 expand_partial_symbol_names and expand_partial_symbol_name.
5851 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5853 2011-04-20 Tom Tromey <tromey@redhat.com>
5855 * dwarf2read.c (save_gdb_index_command): Replace format
5856 documentation with a pointer to the manual.
5858 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5860 * regcache.c: Include remote.h.
5861 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5862 (regcache_dump): Handle regcache_dump_remote.
5863 (maintenance_print_remote_registers): New function.
5864 (_initialize_regcache): Install "maint print remote-registers"
5866 * remote.c (map_regcache_remote_table): New function, factored out
5868 (init_remote_state): ... here.
5869 (remote_register_number_and_offset): New.
5870 * remote.h (remote_register_number_and_offset): Declare.
5872 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5874 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5875 null_ptid, assume and allow a NULL address space, instead of
5876 asking the target for the ptid's address space.
5877 * infrun.c (ptid_is_pid): Remove assertion.
5879 2011-04-19 Tom Tromey <tromey@redhat.com>
5881 * windows-tdep.c (windows_xfer_shared_library):
5882 * windows-nat.c (get_module_name, windows_make_so):
5883 * v850-tdep.c (v850_handle_pushm):
5884 * utils.c (null_cleanup, gdb_realpath):
5885 * ui-out.c (get_next_header):
5886 * tracepoint.c (clear_traceframe_info):
5887 * symtab.c (lookup_symtab):
5888 * serial.h (struct serial_ops):
5889 * mipsread.c (read_alphacoff_dynamic_symtab):
5890 * infcmd.c (print_return_value):
5891 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5892 * f-exp.y (parse_number):
5893 * exceptions.c (catch_exceptions):
5894 * dummy-frame.c (dummy_frame_this_id):
5895 * defs.h (struct cleanup):
5896 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5897 * arm-tdep.c (arm_push_dummy_call):
5898 * amd64-tdep.h (amd64_collect_xsave):
5899 * amd64-tdep.c (amd64_collect_xsave):
5900 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5901 * README (typing): Remove duplicate words.
5902 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5903 * infrun.c (siginfo_value_read): Fix typo.
5904 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5905 * top.c (source_line_number): Add comma.
5907 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5909 * thread.c (any_live_thread_of_process): Prioritize threads
5910 that are not executing.
5911 * gdbthread.h (any_live_thread_of_process): Update comment
5912 as per above change.
5914 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5916 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5917 (scan_xcoff_symtab): Likewise.
5919 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5921 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5924 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5925 Pedro Alves <pedro@codesourcery.com>
5927 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5928 variables to simplify code and avoid == operator at end of
5929 line as this is against GNU coding standards.
5931 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5933 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5934 lm_name to name_lm to avoid conflict with lm_name function.
5936 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5938 ARI fixes: Use only lowercase function name for static functions.
5939 * nto-tdep.c (LM_ADDR): Rename to...
5940 (lm_addr): New function name.
5941 (nto_relocate_section_addresses): Adapt to change above.
5942 * solib-sunos.c (LM_ADDR): Rename to...
5943 (lm_addr): New function name.
5944 (LM_NEXT): Rename to...
5945 (lm_next): New function name.
5946 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5947 function name changes above.
5948 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5949 (lm_addr_from_link_map): New function name.
5950 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5951 (has_lm_dynamic_from_link_map): New function name.
5952 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5953 (lm_dynamic_from_link_map): New function name.
5954 (LM_ADDR_CHECK): Rename to...
5955 (lm_addr_check): New function name.
5956 (LM_NEXT): Rename to...
5957 (lm_next): New function name.
5958 (LM_PREV): Rename to...
5959 (lm_prev): New function name.
5960 (LM_NAME): Rename to...
5961 (lm_name): New function name.
5962 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5963 (ignore_first_link_map_entry): New function name.
5964 (svr4_keep_data_in_core): Adapt to function name changes above.
5965 (svr4_current_sos): Likewise.
5966 (enable_break): Likewise.
5967 (svr4_relocate_section_addresses): Likewise.
5969 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5972 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5973 sprintf. Simplify code and avoid loosing memory.
5974 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5975 (call0_frame_cache): Remove && operator from end of line.
5977 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5979 Fix libraries displacement if they change whether they were prelinked.
5980 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5981 does not match. Comment why.
5983 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5985 * corelow.c: Include wrapper.h.
5986 (core_open): Call now gdb_target_find_new_threads.
5987 * wrapper.c: Include target.h.
5988 (gdb_target_find_new_threads): New.
5989 * wrapper.h (gdb_target_find_new_threads): New declaration.
5991 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5993 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5994 even if !TARGET_HAS_EXECUTION.
5996 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5998 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5999 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6000 bfd_get_synthetic_symtab.
6001 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6002 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6003 parameter parent, remove the call to add_separate_debug_objfile.
6004 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6005 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6006 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6007 parent, new comment for it, call add_separate_debug_objfile for it.
6008 (symbol_file_add_separate): Pass objfile as the parameter parent,
6009 remove the call to add_separate_debug_objfile.
6010 (symbol_file_add_from_bfd): New parameter parent, pass it.
6011 (symbol_file_add): Pass NULL to the new parameter parent.
6012 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6014 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6016 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6019 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6021 Fix Python access to inlined frames.
6022 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6023 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6025 2011-04-15 Tom Tromey <tromey@redhat.com>
6027 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6029 2011-04-15 Gary Benson <gbenson@redhat.com>
6031 * MAINTAINERS: Add myself to write-after-approval section.
6033 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6035 * remote-sim.c (sim_command_completer): New function.
6036 (_initialize_remote_sim): Set completer to sim_command_completer.
6038 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6040 * breakpoint.c (print_exception_catchpoint): Rename to ...
6041 (print_it_exception_catchpoint): ... this.
6042 (gnu_v3_exception_catchpoint_ops): Update with new name
6043 for print_it_exception_catchpoint.
6045 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6047 * MAINTAINERS: Add myself for write after approval privileges.
6049 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6051 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6053 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6055 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6057 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6059 * breakpoint.c (save_breakpoints): Verify whether
6060 breakpoint_ops.print_recreate is defined before calling it.
6062 2011-04-11 Gary Benson <gbenson@redhat.com>
6064 Fix failure with --enable-maintainer-mode.
6065 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6067 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6070 * symtab.c (search_symbols): Reorder the KIND description in the
6071 function comment. Remove the unused 4th element of types, types2,
6072 types3 and types4. New gdb_assert on KIND.
6073 (symtab_symbol_info): Remove the unused 4th element of classnames.
6074 New gdb_assert on KIND.
6075 * symtab.h (enum search_domain): New warning in the enum comment.
6076 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6079 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6081 Fix crash of gdb save-index on a STABS file.
6082 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6085 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6087 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6088 * dwarf2read.c: Include ctype.h.
6089 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6091 (dwarf2_add_field): Fix new_field->accessibility by calling
6092 dwarf2_default_access_attribute. Restructure setting accessibility
6094 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6095 is_private and is_protected by calling
6096 dwarf2_default_access_attribute.
6098 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6100 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6101 to the initialization.
6103 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6105 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6108 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6110 Remove support for old Cygwin 1.5 versions.
6111 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6112 function on old Cygwin version.
6113 * windows-nat.c: Remove cygwin version check and always define
6114 __USEWIDE for Cygwin compilation.
6116 2011-04-07 Yao Qi <yao@codesourcery.com>
6118 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6120 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6121 (arm_copy_svc): Remove parameters INSN and TO.
6122 (decode_svc_copro): Update caller.
6123 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6124 from function pointer `copy_svc_os'.
6126 2011-04-07 Yao Qi <yao@codesourcery.com>
6128 * arm-tdep.c (cleanup_branch): Set a correct return address in
6129 LR for ARM and Thumb.
6131 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6134 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6135 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6136 in the function comment, a new note on values compatibility.
6137 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6138 * symtab.h (SYMBOL_HASH_NEXT): New.
6140 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6142 * ppc-linux-nat.c (check_condition): Add len output parameter.
6143 Set it based on the memory region referenced in the condition
6144 expression. Update all callers.
6146 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6148 Fix crash regression on systems featuring .gdb_index.
6149 * objfiles.c (free_objfile): Move the
6150 forget_cached_source_info_for_objfile call earlier. Comment it.
6151 Extend the comment for objfile_free_data.
6153 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6155 Fix regression of displaying the debug format.
6156 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6159 2011-04-04 Tom Tromey <tromey@redhat.com>
6161 * cli/cli-interp.c (struct captured_execute_command_args):
6163 (do_captured_execute_command): Remove.
6164 (safe_execute_command): Use TRY_CATCH.
6165 * cli/cli-script.c (struct wrapped_read_command_file_args):
6167 (wrapped_read_command_file): Remove.
6168 (script_from_file): Use TRY_CATCH.
6169 * exceptions.c (catch_exception): Remove.
6170 * exceptions.h (catch_exception): Remove.
6171 (deprecated_throw_reason): Update comment.
6172 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6173 argument to 'context'.
6174 (mi_execute_command): Use TRY_CATCH.
6175 * remote.c (struct start_remote_args): Remove.
6176 (remote_start_remote): Update; change arguments.
6177 (remote_open_1): Use TRY_CATCH.
6179 2011-04-04 Tom Tromey <tromey@redhat.com>
6181 * tracepoint.c (scope_info): Update.
6182 * symtab.c (decode_line_spec): Update.
6183 * python/python.c (gdbpy_decode_line): Update.
6184 * linespec.h (decode_line_1): Update.
6185 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6186 (decode_compound, find_method, symtab_from_filename)
6187 (decode_variable): Likewise.
6188 * cli/cli-cmds.c (edit_command): Update.
6189 (list_command): Update.
6190 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6192 (create_breakpoint): Update.
6193 (until_break_command): Update.
6194 (addr_string_to_sals): Update.
6195 (decode_line_spec_1): Update.
6197 2011-04-04 Tom Tromey <tromey@redhat.com>
6199 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6200 (do_captured_parse_breakpoint): Remove.
6201 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6202 Use TRY_CATCH directly.
6204 2011-04-04 Tom Tromey <tromey@redhat.com>
6206 * symtab.h (free_symtab): Remove.
6207 (forget_cached_source_info_for_objfile): Declare.
6208 * symmisc.c (free_symtab): Remove.
6209 * source.c (forget_cached_source_info_for_objfile): New function.
6210 (forget_cached_source_info): Use it.
6211 * objfiles.c (free_objfile): Simplify check before calling
6212 clear_current_source_symtab_and_line. Call
6213 forget_cached_source_info_for_objfile.
6215 2011-04-04 Tom Tromey <tromey@redhat.com>
6217 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6218 (new_symtab): Don't set `free_code' on symtab.
6219 (new_linetable): Properly handle size==0.
6220 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6221 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6223 * jv-lang.c (struct jv_per_objfile_data): New.
6224 (jv_per_objfile_free): Free the data.
6225 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6226 (get_java_class_symtab): Set the `dict' field on the
6227 jv_per_objfile_data.
6228 (free_class_block): Remove.
6229 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6232 2011-04-04 Tom Tromey <tromey@redhat.com>
6234 * symfile.c (reread_symbols): Update.
6235 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6237 * objfiles.c (allocate_objfile): Update.
6238 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6240 * cp-namespace.c (lookup_symbol_file): Don't call
6241 lookup_possible_namespace_symbol.
6242 (initialize_namespace_symtab, get_possible_namespace_block)
6243 (free_namespace_block, cp_check_possible_namespace_symbols)
6244 (check_possible_namespace_symbols_loop)
6245 (check_one_possible_namespace_symbol)
6246 (lookup_possible_namespace_symbol): Remove.
6247 (maintenance_cplus_namespace): Replace with notice.
6248 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6250 2011-04-04 Tom Tromey <tromey@redhat.com>
6252 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6253 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6254 * symmisc.c (free_symtab): Don't free debugformat.
6255 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6256 (record_debugformat, record_producer): Document.
6257 * buildsym.c (end_symtab): Don't save debugformat and producer
6259 (end_symtab): Don't free debugformat and producer fields.
6260 (record_debugformat): Don't call xstrdup.
6261 (record_producer): Likewise.
6263 2011-04-04 Tom Tromey <tromey@redhat.com>
6265 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6266 (source_line_charpos, source_charpos_line): Remove.
6268 2011-04-04 Tom Tromey <tromey@redhat.com>
6270 * symtab.h (domain_enum): Split in two...
6271 (enum search_domain): New.
6272 (search_symbols): Update.
6273 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6274 redundant declarations.
6275 (search_symbols): Change 'kind' argument to search_domain.
6277 (print_symbol_info): Likewise.
6278 (symtab_symbol_info): Likewise.
6279 * symfile.h (struct quick_symbol_functions)
6280 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6281 <expand_symtabs_matching>: Likewise.
6282 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6283 (expand_symtabs_matching_via_partial): Update.
6284 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6285 (dw2_expand_symtabs_for_function): Update.
6286 * block.h: Moved anonymous enum...
6287 * defs.h (enum block_enum): ... here. Now named.
6289 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6291 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6292 * version.in: Bump version to 7.3.50.20110403-cvs.
6294 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6296 * NEWS: Create a new section for the next release branch.
6297 Rename the section of the current branch, now that it has
6300 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6302 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6303 for "fpscr" in target description.
6305 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6307 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6308 initialize it. Delay HASH initialization. Strip the part after open
6309 parenthesis for languages with qualifiers. Call do_cleanups.
6311 2011-04-01 Tom Tromey <tromey@redhat.com>
6313 * utils.c (report_command_stats): Don't print `-' for negative
6316 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6318 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6319 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6322 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6324 * breakpoint.h (bpdisp_text): Add declaration.
6325 * breakpoint.c (bpdisp_text): Make non-static.
6326 * ada-lang.c: #include "mi/mi-common.h".
6327 (print_it_exception): Rewrite to improve GDB/MI output.
6329 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6331 * arm-tdep.h (struct address_space): Add forward declaration.
6333 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6335 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6336 * arm-tdep.c (arm_override_mode): New global.
6337 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6338 execution mode heuristics.
6339 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6340 second single-step breakpoint if needed, using
6341 arm_insert_single_step_breakpoint.
6342 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6343 ARM execution mode, do not call thumb_get_next_pc_raw.
6344 (arm_get_next_pc): Encode execution mode in return value. Call
6345 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6346 (arm_insert_single_step_breakpoint): New function.
6347 (arm_software_single_step): Call it.
6348 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6349 argument to return execution mode of sigreturn target.
6350 (arm_linux_syscall_next_pc): Use it.
6351 (arm_linux_copy_svc): Update call.
6352 (arm_linux_software_single_step): Call
6353 arm_insert_single_step_breakpoint.
6355 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6357 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6360 2011-03-31 Tom Tromey <tromey@redhat.com>
6362 * varobj.c (update_dynamic_varobj_children): Properly handle
6363 errors from iterator.
6365 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6367 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6368 struct linkage name twice.
6370 2011-03-31 Tom Tromey <tromey@redhat.com>
6372 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6373 missing ">" to message.
6375 2011-03-31 Tom Tromey <tromey@redhat.com>
6377 * varobj.c (instantiate_pretty_printer): Remove duplicate
6380 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6382 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6383 if neither saved value nor register available (e.g. signal frame).
6385 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6387 * macroexp.c (expand): Avoid uninitialized variable
6390 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6392 * breakpoint.c (break_range_command): Fix typo in comment.
6394 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6395 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6397 Implement support for PowerPC BookE ranged breakpoints.
6398 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6399 * breakpoint.h (struct bp_target_info) <length>: New member
6401 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6402 instead of struct breakpoint as argument, and also add ASPACE
6403 and BP_ADDR arguments. Update all callers.
6404 (struct breakpoint_ops) <print_one_detail>: New method.
6405 (struct breakpoint) <addr_string_range_end>: New member variable.
6406 * breakpoint.c (breakpoint_location_address_match): Add function
6408 (insert_bp_location): Set bl->target_info.length.
6409 (breakpoint_here_p): Call breakpoint_location_address_match.
6410 (moribund_breakpoint_here_p): Likewise.
6411 (regular_breakpoint_inserted_here_p): Likewise.
6412 (breakpoint_thread_match): Likewise.
6413 (bpstat_stop_status): Likewise.
6414 (bpstat_check_location): Move call to
6415 breakpoint_ops.breakpoint_hit to the top.
6416 (print_one_breakpoint_location): Call
6417 breakpoint_ops.print_one_detail if available.
6418 (breakpoint_address_match_range): New function.
6419 (breakpoint_location_address_match): Likewise.
6420 (breakpoint_locations_match): Compare the length field of the
6422 (hw_breakpoint_used_count): Count resources used by all locations
6423 in a breakpoint, and use breakpoint_ops.resources_needed if
6425 (breakpoint_hit_ranged_breakpoint): New function.
6426 (resources_needed_ranged_breakpoint): Likewise.
6427 (print_it_ranged_breakpoint): Likewise.
6428 (print_one_ranged_breakpoint): Likewise.
6429 (print_one_detail_ranged_breakpoint): Likewise.
6430 (print_mention_ranged_breakpoint): Likewise.
6431 (print_recreate_ranged_breakpoint): Likewise.
6432 (ranged_breakpoint_ops): New structure.
6433 (find_breakpoint_range_end): New function.
6434 (break_range_command): Likewise.
6435 (delete_breakpoint): Free addr_string_range_end.
6436 (update_breakpoint_locations): Add SALS_END argument. Update
6437 all callers. Calculate breakpoint length if a non-zero SALS_END
6438 is given. Call breakpoint_locations_match instead of
6439 breakpoint_address_match.
6440 (reset_breakpoint): Find SaL of the end of the range if B is a
6442 (_initialize_breakpoint): Register break-range command.
6443 * defs.h (print_core_address): Add function prototype.
6444 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6446 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6447 (ppc_linux_remove_hw_breakpoint): Likewise.
6448 (_initialize_ppc_linux_nat): Initialize
6449 to_ranged_break_num_registers.
6450 * target.c (update_current_target): Add comment about
6451 to_ranged_break_num_registers.
6452 (target_ranged_break_num_registers): New function.
6453 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6455 (target_ranged_break_num_registers): Add function prototype.
6456 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6457 * utils.c (print_core_address): ... here.
6459 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6461 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6462 variable compiler warning.
6464 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6466 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6468 (re_set_breakpoint): ... to here ...
6469 (addr_string_to_sals): ... and here.
6471 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6473 * Makefile.in (SFILES): Add missing C sources.
6474 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6475 Add missing headers.
6477 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6479 * .gitignore: New file.
6481 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6483 * NEWS: Mention new cfi device simulation.
6485 2011-03-29 Tom Tromey <tromey@redhat.com>
6487 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6488 otherwise anonymous types.
6489 (dwarf2_name): Likewise.
6490 * valops.c (value_struct_elt_for_reference): Refine artificial
6491 type logic. Call error if j==-1.
6493 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6495 Fix false GCC warning.
6496 * infcall.c (find_function_addr): Initialize funaddr.
6498 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6500 Fix mingw compilation with --enable-targets=all.
6501 * remote-mips.c (gdb_usleep.h): Include header.
6502 (mips_enter_debug): Use gdb_usleep instead of sleep.
6504 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 Support resolution of STT_GNU_IFUNC via breakpoints.
6507 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6508 bp_gnu_ifunc_resolver_return.
6509 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6510 the loop. Support bp_gnu_ifunc_resolver and
6511 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6512 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6514 (bptype_string, print_one_breakpoint_location): Support
6515 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6516 (user_settable_breakpoint): Return true also for
6517 bp_gnu_ifunc_resolver.
6518 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6519 bp_gnu_ifunc_resolver_return.
6520 (set_breakpoint_location_function): New parameter explicit_loc,
6521 describe it. Call find_pc_partial_function_gnu_ifunc with new
6522 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6523 EXPLICIT_LOC is not set.
6524 (set_raw_breakpoint): Set EXPLICIT_LOC for
6525 set_breakpoint_location_function.
6526 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6527 set_breakpoint_location_function.
6528 (mention): Support bp_gnu_ifunc_resolver and
6529 bp_gnu_ifunc_resolver_return.
6530 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6531 set_breakpoint_location_function.
6532 (update_breakpoint_locations): Remove static.
6533 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6534 bp_gnu_ifunc_resolver_return.
6535 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6536 bp_gnu_ifunc_resolver_return.
6537 (update_breakpoint_locations): New declaration.
6538 * elfread.c: Include gdbthread.h and regcache.h.
6539 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6541 (elf_gnu_ifunc_fns): Install them.
6542 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6543 (stub_gnu_ifunc_resolver_return_stop): New functions.
6544 (stub_gnu_ifunc_fns): Install them.
6545 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6546 and gnu_ifunc_resolver_return_stop.
6547 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6549 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6551 STT_GNU_IFUNC reader implementation.
6552 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6553 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6554 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6555 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6556 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6557 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6558 (elf_gnu_ifunc_resolve_addr): New.
6559 (elf_symfile_read): Call elf_rel_plt_read.
6560 (elf_gnu_ifunc_fns): New.
6561 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6562 Install elf_gnu_ifunc_fns.
6563 * infcall.c (find_function_return_type): New function.
6564 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6565 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6566 (stub_gnu_ifunc_resolve_name): New functions.
6567 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6568 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6569 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6571 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6573 Code cleanup for later STT_GNU_IFUNC support.
6574 * infcall.c (find_function_addr): Remove variable code, use explicit
6575 dereferences for it. Move VALUE_TYPE initialization later.
6577 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6579 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6580 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6581 (clear_pc_function_cache): Clear it.
6582 (find_pc_partial_function): Rename to ...
6583 (find_pc_partial_function_gnu_ifunc): ... this function. New
6584 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6585 (find_pc_partial_function): New wrapper for this function.
6586 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6588 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6590 GDB internal type support for STT_GNU_IFUNC.
6591 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6592 (elf_symtab_read): Set mst_text_gnu_ifunc for
6593 BSF_GNU_INDIRECT_FUNCTION.
6594 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6595 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6596 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6597 nodebug_got_plt_symbol.
6598 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6599 (TYPE_GNU_IFUNC): New.
6600 (struct main_type): New field flag_gnu_ifunc.
6601 (struct builtin_type): New field builtin_func_func.
6602 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6603 nodebug_got_plt_symbol.
6604 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6605 (in_gnu_ifunc_stub): New.
6606 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6608 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6609 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6610 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6612 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6613 * symtab.c (search_symbols): Likewise.
6614 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6615 and mst_slot_got_plt.
6616 (in_gnu_ifunc_stub): New declaration.
6618 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6620 Support a ring of related breakpoints.
6621 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6622 other functions, add gdb_assert.
6623 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6624 watchpoint_del_at_next_stop.
6625 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6626 (bpstat_stop_status): Handle ring in related_breakpoint.
6627 (set_raw_breakpoint_without_location): Initialize ring in
6629 (delete_breakpoint): Handle ring in related_breakpoint, use
6630 watchpoint_del_at_next_stop.
6631 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6633 2011-03-28 Tom Tromey <tromey@redhat.com>
6636 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6637 with `language_minimal'.
6639 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6641 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6642 instead of checking for STT_ARM_TFUNC symbol type.
6644 2011-03-25 Tom Tromey <tromey@redhat.com>
6646 * linespec.c (symbol_found): Restore line-based result for
6647 non-LOC_LABEL symbols.
6649 2011-03-25 Kai Tietz <ktietz@redhat.com>
6651 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6652 instead of strcmp for comparison.
6653 (tui_source_is_displayed): Likewise.
6654 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6656 2011-03-24 Mark Wielaard <mjw@redhat.com>
6658 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6660 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6661 (find_partial_die_in_comp_unit): Likewise in comment.
6662 (read_attribute_value): Likewise.
6663 (lookup_die_type): Likewise.
6664 (dwarf_form_name): Likewise.
6665 (dump_die_shallow): Likewise.
6666 (follow_die_ref_or_sig): Likewise.
6668 2011-03-24 Tom Tromey <tromey@redhat.com>
6670 PR breakpoints/11816:
6671 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6672 (decode_compound): Update.
6673 (find_function_symbol): New function.
6674 (decode_dollar): Update.
6675 (decode_label): Add 'function_symbol' parameter. Handle
6676 function-relative labels.
6677 (decode_variable): Update.
6678 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6679 not its line. Set `special_display' and canonical name for
6682 2011-03-24 Tom Tromey <tromey@redhat.com>
6684 * linespec.h (struct linespec_result) <special_display>: New
6686 * breakpoint.h (struct breakpoint) <display_canonical>: New
6688 * breakpoint.c (print_breakpoint_location): Respect
6690 (create_breakpoint_sal): Add 'display_canonical' parameter.
6691 (create_breakpoints_sal): Update.
6692 (create_breakpoint): Update.
6694 2011-03-24 Tom Tromey <tromey@redhat.com>
6696 * symtab.c (decode_line_spec): Update.
6697 * linespec.c (build_canonical_line_spec): Change type of
6699 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6700 (find_method, decode_all_digits, decode_dollar, decode_label)
6701 (symbol_found): Likewise.
6702 (init_linespec_result): New function.
6703 * breakpoint.c (struct captured_parse_breakpoint_args)
6704 <canonical_p>: New field, replaces addr_string_p.
6705 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6707 (parse_breakpoint_sals): Likewise.
6708 (do_captured_parse_breakpoint): Update.
6709 (create_breakpoint): Use struct linespec_result.
6710 (until_break_command): Update.
6711 (breakpoint_re_set_one): Update.
6712 (decode_line_spec_1): Update.
6713 * linespec.h (struct linespec_result): New.
6714 (init_linespec_result): Declare.
6716 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6718 * regcache.c (regcache_raw_read): If the target didn't supply a
6719 given raw register, mark it as unavailable.
6721 2011-03-23 Kai Tietz <ktietz@redhat.com>
6723 * breakpoint.c (clear_command): Use filename_cmp
6724 instead of strcmp for comparison.
6725 * buildsym.c (watch_main_source_file_lossage): Likewise.
6726 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6727 checking just for slash.
6728 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6729 strrchr and filename_cmp instead of strcmp for filenames.
6730 (add_old_header_file): Use filename_cmp
6731 instead of strcmp for comparison.
6732 * exec.c (exec_set_section_address): Likewise.
6733 * macrotab.c (macro_lookup_inclusion): Likewise.
6734 (macro_lookup_inclusion): Likewise.
6735 * elfread.c (_initialize_elfread): Likewise.
6736 (elfstab_offset_sections): Likewise.
6737 (elfstab_offset_sections): Use lbasename instead of
6739 * mdebugread.c (parse_partial_symbols): Likewise.
6740 (arse_partial_symbols): Use filename_(n)cmp instead of
6741 str(n)cmp for comparison.
6742 * minsyms.c (lookup_minimal_symbol): Likewise.
6743 * psymtab.c (read_psymtabs_with_filename): Likewise.
6744 * solib.c (solib_read_symbols): Likewise.
6745 (reload_shared_libraries_1): Likewise.
6746 * symmisc.c (maintenance_print_symbols): Likewise.
6747 * symfile.c (separate_debug_file_exists): Likewise.
6748 (reread_symbols): Likewise.
6749 (find_separate_debug_file_by_debuglink): Likewise.
6750 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6751 * source.c (add_path): Likewise.
6752 * symtab.c (filename_seen): Likewise.
6753 (file_matches): Likewise.
6754 (print_symbol_info): Likewise.
6755 (maybe_add_partial_symtab_filename): Likewise.
6756 (make_source_files_completion_list): Likewise.
6757 * xml-syscall.c (init_sysinfo): Likewise.
6758 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6759 IS_DIR_SEPARATOR for checking for trailing path separator.
6761 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6763 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6764 label abort_expression.
6765 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6766 DWARF_VALUE_OPTIMIZED_OUT.
6768 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6771 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6772 to linkage_name. Invert its value. Update the function comment.
6773 (c_type_print_varspec_suffix): Invert it at the caller.
6774 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6776 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6778 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6779 errors when reading the `stop_pc'.
6780 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6783 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6785 * NEWS: Document gdb.Write stream keyword.
6787 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6790 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6791 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6792 (dwarf2_add_field): Fix new_field->accessibility for
6793 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6795 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6799 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6800 other error classes. Do not print stack trace.
6802 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6804 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6805 (dwarf2_add_field): Fix new_field->accessibility for
6806 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6808 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6810 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6811 encountering a load via a non-SP register.
6813 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6815 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6816 field in returned unwinder.
6818 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6820 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6822 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6824 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6827 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6829 * frame.c (frame_unwind_register): Throw an error if unwinding the
6831 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6832 an unwind stop reason.
6833 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6834 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6835 UNWIND_UNAVAILABLE>: New.
6836 * inline-frame.c (inline_frame_unwind): Install
6837 default_frame_unwind_stop_reason.
6838 * frame-unwind.c: Include "exceptions.h".
6839 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6840 (default_frame_unwind_stop_reason): New.
6841 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6842 (default_frame_unwind_stop_reason): Declare.
6843 (struct frame_unwind) <stop_reason>: New function pointer.
6845 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6846 * dwarf2-frame.c: Include exceptions.h.
6847 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6848 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6849 computing the CFA. If such an error was thrown, set
6850 unavailable_retaddr.
6851 (dwarf2_frame_unwind_stop_reason): New.
6852 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6854 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6855 (dwarf2_signal_frame_unwind): Ditto.
6857 * amd64-tdep.c: Include "exceptions.h".
6858 (struct amd64_frame_cache): New field "base_p".
6859 (amd64_init_frame_cache): Clear it.
6860 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6861 Avoid reading registers with functions that throw if the register
6862 is not necessary to compute the frame base.
6863 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6864 swallowing NOT_AVAILABLE_ERROR.
6865 (amd64_frame_unwind_stop_reason): New.
6866 (amd64_frame_this_id): Don't build a frame id if the frame base
6868 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6869 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6870 base_p if the frame base was computable.
6871 (amd64_sigtramp_frame_unwind_stop_reason): New.
6872 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6873 frame base was unavailable.
6874 (amd64_sigtramp_frame_unwind): Install
6875 amd64_sigtramp_frame_unwind_stop_reason.
6876 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6877 base_p if the frame base was computable.
6878 (amd64_epilogue_frame_unwind_stop_reason): New.
6879 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6880 frame base was unavailable.
6881 (amd64_epilogue_frame_unwind): Install
6882 amd64_epilogue_frame_unwind_stop_reason.
6883 * i386-tdep.c: Include "exceptions.h".
6884 (struct i386_frame_cache): New field "base_p".
6885 (i386_init_frame_cache): Clear it.
6886 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6887 Avoid reading registers with functions that throw if the register
6888 is not necessary to compute the frame base.
6889 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6890 swallowing NOT_AVAILABLE_ERROR.
6891 (i386_frame_unwind_stop_reason): New.
6892 (i386_frame_this_id): Don't build a frame id if the frame base was
6894 (i386_frame_prev_register): Handle unavailable SP.
6895 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6896 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6897 base_p if the frame base was computable.
6898 (i386_epilogue_frame_unwind_stop_reason): New.
6899 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6900 base was unavailable.
6901 (i386_epilogue_frame_unwind): Install
6902 i386_epilogue_frame_unwind_stop_reason.
6903 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6904 base_p if the frame base was computable.
6905 (i386_sigtramp_frame_unwind_stop_reason): New.
6906 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6907 base was unavailable.
6908 (i386_sigtramp_frame_unwind): Install
6909 i386_sigtramp_frame_unwind_stop_reason.
6910 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6911 type's size, not the register's.
6912 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6914 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6915 default_frame_unwind_stop_reason.
6916 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6917 (alpha_heuristic_frame_unwind): Ditto.
6918 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6919 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6920 * avr-tdep.c (avr_frame_unwind): Ditto.
6921 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6923 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6924 * frv-tdep.c (frv_frame_unwind): Ditto.
6925 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6926 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6927 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6928 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6929 (hppa_stub_frame_unwind): Ditto.
6930 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6931 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6932 (ia64_libunwind_frame_unwind)
6933 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6934 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6935 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6936 * m32c-tdep.c (m32c_unwind): Ditto.
6937 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6938 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6939 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6940 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6941 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6942 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6943 * mep-tdep.c (mep_frame_unwind): Ditto.
6944 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6945 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6946 (mips_stub_frame_unwind): Ditto.
6947 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6948 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6949 * mt-tdep.c (mt_frame_unwind): Ditto.
6950 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6951 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6952 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6953 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6954 (s390_sigtramp_frame_unwind): Ditto.
6955 * score-tdep.c (score_prologue_unwind): Ditto.
6956 * sh-tdep.c (sh_frame_unwind): Ditto.
6957 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6958 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6959 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6960 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6961 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6962 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6963 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6964 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6965 (sparc64obsd_trapframe_unwind): Ditto.
6966 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6967 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6968 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6969 * v850-tdep.c (v850_frame_unwind): Ditto.
6970 * vax-tdep.c (vax_frame_unwind): Ditto.
6971 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6972 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6973 * xtensa-tdep.c (xtensa_unwind): Ditto.
6975 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6977 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6978 there's always a frame. Use get_frame_pc_if_available instead of
6979 get_frame_pc, and if there's no PC available, don't look up a
6982 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6984 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6987 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6989 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6992 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6994 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6995 * frame.c (frame_unwind_caller_pc_if_available): New.
6996 * stack.c (frame_info): Handle unavailable PC.
6998 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7000 * frame.c (frame_unwind_pc): Rename to ...
7001 (frame_unwind_pc_if_available): ... this. New `pc' output
7002 parameter. Change return type to int. Gracefully handle
7003 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7004 happened, or 1 otherwise.
7005 (frame_unwind_pc): Reimplement on top of
7006 frame_unwind_pc_if_available.
7007 (get_frame_func): Rename to ...
7008 (get_frame_func_if_available): New `pc' output parameter. Change
7009 return type to int. Gracefully handle the PC not being available.
7010 (get_frame_func): Reimplement on top of
7011 get_frame_func_if_available.
7012 (select_frame): Handle the PC being unavailable.
7013 (get_prev_frame): Handle the PC being unavailable.
7014 (get_frame_pc_if_available): New.
7015 (get_frame_address_in_block_if_available): New.
7016 (find_frame_sal): Handle the frame PC not being available.
7017 * frame.h (get_frame_pc_if_available): Declare.
7018 (get_frame_address_in_block_if_available): Declare.
7019 (get_frame_func_if_available): Declare.
7020 * stack.c (print_frame_info): Handle the PC being unavailable.
7021 (find_frame_funname): Ditto.
7022 (print_frame): Handle the PC being unavailable.
7023 (get_frame_language): Ditto.
7024 * blockframe.c (get_frame_block): Ditto.
7025 * macroscope.c (default_macro_scope): Ditto.
7026 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7028 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7030 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7031 NOT_AVAILABLE_ERROR when evaluating the location expression.
7033 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7035 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7036 returning that the register piece is unavailable/optimized out.
7037 (write_pieced_value): Handle get_frame_register_bytes returning
7038 that the register piece is unavailable/optimized out when doing a
7039 read-modify write of a bitfield.
7040 * findvar.c (value_from_register): Handle get_frame_register_bytes
7041 returning that the register piece is unavailable/optimized out.
7042 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7043 and `unavailablep'. Throw error on bad debug info. Use
7044 frame_register instead of frame_register_read, to fill in the new
7046 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7048 * valops.c: (value_assign): Adjust, and handle
7049 get_frame_register_bytes failing.
7050 * spu-tdep.c: Include exceptions.h.
7051 (spu_software_single_step): Adjust, and handle
7052 get_frame_register_bytes failing.
7053 (spu_get_longjmp_target): Ditto.
7054 * gdbarch.sh (register_to_value): Change to return int. New
7055 parameters `optimizedp' and `unavailablep'.
7056 * gdbarch.h, gdbarch.c: Regenerate.
7057 * i386-tdep.c (i386_register_to_value): Adjust to new
7058 gdbarch_register_to_value interface.
7059 * i387-tdep.c (i387_register_to_value): Ditto.
7060 * i387-tdep.h (i387_register_to_value): Ditto.
7061 * alpha-tdep.c (alpha_register_to_value): Ditto.
7062 * ia64-tdep.c (ia64_register_to_value): Ditto.
7063 * m68k-tdep.c (m68k_register_to_value): Ditto.
7064 * mips-tdep.c (mips_register_to_value): Ditto.
7065 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7067 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7069 * findvar.c (value_of_register): Mark the value as unavailable, if
7070 the register is unavailable.
7071 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7072 (frame_register): New `unavailablep' parameter.
7073 (frame_register_read): Update comment.
7074 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7075 Set it if the register is unavailable. If the register is
7076 unavailable, clear the output buffer.
7077 (frame_register): New `unavailablep' parameter. Pass it down.
7078 (frame_unwind_register): Adjust.
7079 (put_frame_register): Adjust.
7080 (frame_register_read): Adjust. Also return false if the register
7082 (frame_register_unwind_location): Adjust.
7083 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7084 is unavailable, mark the value accordingly.
7085 * stack.c (frame_info): Handle unavailable registers.
7087 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7089 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7090 simplify, using regcache_cooked_read.
7092 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7094 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7095 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7096 (regcache_raw_read_unsigned, regcache_raw_read_part)
7097 (regcache_cooked_read, regcache_cooked_read_signed)
7098 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7099 (regcache_cooked_read_ftype): Change return to enum
7101 * regcache.c: Include exceptions.h
7102 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7103 (do_cooked_read): Change return to enum register_status. Always
7104 forward to regcache_cooked_read.
7105 (regcache_raw_read): Change return to enum register_status. If
7106 the register is not REG_VALID, memset the buffer. Return the
7108 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7109 return the register's status.
7110 (regcache_raw_read_unsigned): Ditto.
7111 (regcache_cooked_read): Change return to enum register_status.
7112 Assert that with read-only regcaches, the register's status must
7113 be known. If the regcache is read-only, and the register is not
7114 REG_VALID, memset the buffer. Return the register's status.
7115 (regcache_cooked_read_signed): Change return to enum
7116 register_status. Handle non-REG_VALID registers and return the
7118 (regcache_cooked_read_unsigned): Change return to enum
7119 register_status. Handle non-REG_VALID registers and return the
7121 (regcache_xfer_part, regcache_raw_read_part)
7122 (regcache_cooked_read_part): Change return to enum
7123 register_status. Return the register's status.
7124 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7126 (regcache_dump): Handle unavailable cooked registers.
7127 * frame.c (do_frame_register_read): Adjust interface to match
7128 regcache_cooked_read_ftype.
7129 * gdbarch.sh (pseudo_register_read): Change return to enum
7131 * gdbarch.h, gdbarch.c: Regenerate.
7133 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7135 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7136 register_status. If reading a raw register indicates the raw
7137 register is not valid, return the raw register's status,
7138 otherwise, return REG_VALID.
7139 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7140 register_status. Handle non-REG_VALID raw registers and return
7141 the register's status.
7142 * arm-tdep.c (arm_neon_quad_read)
7143 (arm_pseudo_read): Change return to enum register_status. Handle
7144 non-REG_VALID raw registers and return the register's status.
7145 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7146 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7147 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7148 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7149 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7151 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7152 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7153 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7154 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7155 (m32c_pseudo_register_read): Change return to enum
7156 register_status. Adjust.
7157 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7158 enum register_status. Return the register's status.
7159 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7160 register_status. Return the register's status.
7161 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7162 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7163 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7164 * rs6000-tdep.c (move_ev_register_func): New typedef.
7165 (e500_move_ev_register): Use it. Change return to enum
7166 register_status. Return the register's status.
7167 (do_regcache_raw_read): New function.
7168 (do_regcache_raw_write): New function.
7169 (e500_pseudo_register_read): Change return to enum
7170 register_status. Return the register's status. Use
7171 do_regcache_raw_read.
7172 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7173 (dfp_pseudo_register_read): Change return to enum register_status.
7174 Return the register's status.
7175 (vsx_pseudo_register_read): Ditto.
7176 (efpr_pseudo_register_read): Ditto.
7177 (rs6000_pseudo_register_read): Ditto.
7178 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7179 register_status. Return the register's status.
7180 * sh64-tdep.c (pseudo_register_read_portions): New function.
7181 (sh64_pseudo_register_read): Change return to enum
7182 register_status. Use pseudo_register_read_portions. Return the
7184 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7185 register_status. Return the register's status.
7186 * sh-tdep.c (pseudo_register_read_portions): New function.
7187 (sh_pseudo_register_read): Change return to enum register_status.
7188 Use pseudo_register_read_portions. Return the register's status.
7189 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7190 enum register_status. Return the register's status.
7191 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7192 * spu-tdep.c (spu_pseudo_register_read_spu)
7193 (spu_pseudo_register_read): Ditto.
7194 * xtensa-tdep.c (xtensa_register_read_masked)
7195 (xtensa_pseudo_register_read): Ditto.
7196 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7198 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7200 * python/py-value.c (valpy_getitem): Fix formatting of error function
7203 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7205 ARI fixes: Add missing internationalization markups throughout
7207 * darwin-nat-info.c: Ditto.
7210 * mi/mi-main.c: Ditto.
7212 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7214 ARI fixes: Add missing internationalization markups throughout
7217 * cp-name-parser.y: Ditto.
7220 * objc-exp.y: Ditto.
7223 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7225 ARI fixes: Messages should have no trailing new lines.
7226 * darwin-nat.c (mach_check_error): Remove trailing new line from
7227 warning function call message.
7228 * record.c (bfdcore_read): Idem for error call.
7230 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7232 * common/signals.c (target_signal_from_host): Add _ markup to error
7233 function call message.
7234 (target_signal_to_host): Add _ markup and remove trailing new line
7235 from warning call message.
7236 (target_signal_from_command): Add _ markup to error function call
7239 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7243 * python/python.c (gdbpy_write): Accept a stream argument and
7244 operate to the appropriate stream.
7245 (gdbpy_flush): Likewise.
7246 (_initialize_python): Add stream constants.
7247 (finish_python_initialization): Add GdbOutputErrorFile class.
7249 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7251 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7253 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7255 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7256 to store_signed_integer. Add debug message when relocating CALL
7257 instructions. Fix formatting of debug message.
7258 * i386-tdep.c (i386_relocate_instruction): Ditto.
7260 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7262 * target.h (struct target_ops): Remove to_lookup_symbol field.
7263 (target_lookup_symbol): Delete macro.
7264 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7265 (update_current_target, setup_target_debug): Remove handling
7266 of to_lookup_symbol target_ops field.
7267 * ada-tasks.c (get_known_tasks_addr): Remove use of
7268 target_lookup_symbol.
7269 * coffread.c (coff_symtab_read): Likewise.
7270 * dbxread.c (read_dbx_symtab): Ditto.
7272 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7275 * configure.ac: Add getthrds declaration check.
7276 * configure, config.in: Regenerate.
7277 * aix-thread.c (getthrds): Declare only if not already declared
7278 in procinfo.h. More declaration out of get_signaled_thread to
7281 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7283 * python/py-symtab.c: Populate symtab_object_methods,
7285 (stpy_is_valid): New function.
7286 (salpy_is_valid): Ditto.
7287 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7288 (sympy_is_valid): New function.
7289 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7290 (objfpy_is_valid): New function.
7291 * python/py-inferior.c: Populate inferior_object_methods.
7292 (infpy_is_valid): New function.
7293 * python/py-infthread.c: Populate thread_object_methods.
7294 (thpy_is_valid): New function.
7295 * python/py-block.c: Declare block_object_methods. Populate. Declare
7296 block_iterator_object_methods. Populate.
7297 (blpy_is_valid): New function.
7298 (blpy_iter_is_valid): Ditto.
7300 2011-03-16 Keith Seitz <keiths@redhat.com>
7302 * linespec.c (find_methods): Canonicalize NAME before looking
7304 (name_end): New function.
7305 (keep_name_info): New function.
7306 (decode_line_1): Use keep_name_info.
7307 (decode_compound): Likewise.
7308 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7309 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7312 * linespec.c (locate_first_half): Keep overload information, too.
7313 (decode_compound): Use a string to represent break characters
7315 If P points to a break character, do not increment it.
7316 For C++ and Java, keep overload information and relevant keywords.
7317 If we cannot find a symbol, search the minimal symbols.
7320 * linespec.c (decode_compound): Rename SAVED_ARG to
7322 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7324 Pass a valid block to lookup_symbol.
7325 (lookup_prefix_sym): Likewise.
7326 (find_method): Construct search name based on SYM_CLASS instead
7328 * psymtab.c (lookup_partial_symbol): Add language parameter.
7329 (lookup_symbol_aux_psymtabs): Likewise.
7330 Don't assume that the psymtab we found was the right one. Search
7331 for the desired symbol in the symtab to be certain.
7332 (psymtab_search_name): New function.
7333 (lookup_partial_symbol): Use psymtab_search_name.
7334 Add language parameter.
7335 (read_symtabs_for_function): Add language parameter and pass to
7336 lookup_partial_symbol.
7337 (find_symbol_file_from_partial): Likewise.
7339 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7342 * dwarf2read.c (noop_record_line): New function.
7343 (dwarf_decode_lines): Ignore line tables for GCd functions.
7345 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7347 Fix ARI warnings about new lines at the end of messages, which
7348 are unneeded as there is a new line added at the end of the message
7350 * darwin-nat.c (darwin_stop_inferior): Ditto.
7351 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7352 * dfp.c (decimal_to_number): Ditto.
7353 * exec.c (print_section_info): Ditto.
7354 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7355 * osdata.c (get_osdata): Ditto.
7356 * record.c (bfdcore_write): Ditto.
7357 * remote-mips.c (mips_readchar): Ditto.
7358 * remote.c (read_ptid): Ditto.
7359 * ser-mingw.c (ser_windows_raw): Ditto.
7360 * tracepoint.c (add_local_symbols): Ditto.
7361 * windows-nat.c (fake_create_process): Ditto.
7363 2011-03-16 Tom Tromey <tromey@redhat.com>
7365 * tracepoint.c (stop_tracing): Don't declare.
7366 * event-top.c (after_char_processing_hook): Add `(void)'.
7368 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7370 * NEWS: Add Parameter sub-classing description.
7372 2011-03-16 Kai Tietz <ktietz@redhat.com>
7374 * MAINTAINERS: Update my e-mail address.
7376 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7378 * MAINTAINERS: Add myself for write after approval privileges.
7380 2011-03-15 Michael Snyder <msnyder@vmware.com>
7382 * frame.c (find_frame_sal): Assert sym is not null.
7384 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7386 * objc-lang.c (selectors_info): Check strchr for null result.
7388 * stabsread.c (define_symbol): Guard against bad stabstring input.
7390 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7392 Remove trailing spaces and tabulations from pascal language
7397 p-valprint.c: Ditto.
7399 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7401 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7402 than LOW. Comment it.
7403 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7404 HIGHPC not strictly higher than LOWPC.
7406 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7408 Fix formatting of function declarations returning a pointer in
7410 * varobj.c (varobj_add_child): Ditto.
7411 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7412 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7414 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7416 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7417 for the "generic" vector ABI used with GCC 4.3 and later.
7418 (ppc64_sysv_abi_return_value): Likewise.
7420 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7422 * infcall.c (call_function_by_hand): Function return value is
7423 always a non_lval, even when using struct_return.
7425 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7427 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7428 (map_display_numbers): New.
7429 (do_delete_display): New.
7430 (undisplay_command): Use map_display_numbers.
7431 (do_enable_disable_display): New.
7432 (enable_disable_display_command): New function.
7433 (enable_display): Delete.
7434 (enable_display_command): New.
7435 (disable_display_command): Reimplement.
7436 (_initialize_printcmd): Adjust "enable display" command to use
7437 `enable_display_command' as callback.
7439 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7441 * NEWS: Add Python breakpoint 'stop' operation.
7443 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7445 * NEWS: Delete duplicate entry. Fix typo.
7447 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7449 Fix ARI warning about function names in first column.
7450 Put prototype declaration on same line as return type.
7451 * objc-exp.y: Ditto.
7453 * python/py-stopevent.h: Ditto.
7454 For long function names, split parameters to
7455 allow function name on same line as return type.
7456 * solib-pa64.c: Ditto.
7459 For long function declaration, use single line.
7460 * hppa-tdep.h: Ditto.
7461 * inferior.h: Ditto.
7463 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7465 * python/python.h: Declare gdbpy_should_stop and
7466 gdbpy_breakpoint_has_py_cond.
7467 * python/python.c: Add python.h to includes. Remove python.h from
7468 HAVE_PYTHON definition
7469 (gdbpy_should_stop): New dummy function.
7470 (gdbpy_breakpoint_has_py_cond): New dummy function.
7471 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7472 sub-classing capabilities.
7473 (gdbpy_should_stop): New function.
7474 (gdbpy_breakpoint_has_py_cond): New function.
7475 (local_setattro): New function.
7476 * breakpoint.c (condition_command): Add check for Python 'stop'
7478 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7479 operation function as part of stop/continue tests.
7481 2011-03-14 Tom Tromey <tromey@redhat.com>
7484 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7485 (needs_frame_dwarf_call): Likewise.
7487 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7489 Fix ARI warning about functions without parameters that do not
7491 * breakpoint.c (all_tracepoints): Replace () by (void).
7492 * f-exp.y (match_string_literal): Ditto.
7494 * m2-exp.y (yylex): Ditto.
7495 * mep-tdep.c (current_me_module): Ditto.
7496 (current_options): Ditto.
7497 (current_cop_data_bus_width): Ditto.
7498 (current_cr_names): Ditto.
7499 (current_cr_is_float): Ditto.
7500 (current_ccr_names): Ditto.
7501 * objc-exp.y (yylex): Ditto.
7502 * p-exp.y (yylex): Ditto.
7503 * remote.c (send_interrupt_sequence): Ditto.
7504 * tracepoint.c (current_trace_status): Ditto.
7505 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7506 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7508 2011-03-11 Michael Snyder <msnyder@vmware.com>
7510 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7511 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7512 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7513 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7514 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7516 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7517 (delete_async_event_handler): Ditto.
7519 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7521 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7523 * top.c (set_verbose): Assert showcmd was found.
7525 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7527 * xtensa-tdep.c (warning_once): Correct style issues.
7529 2011-03-11 Yao Qi <yao@codesourcery.com>
7531 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7533 2011-03-11 Andreas Schwab <schwab@redhat.com>
7535 * common/aclocal.m4: Remove.
7537 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7539 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7540 (xtensa_write_register, xtensa_read_register): Likewise.
7541 (xtensa_hextochar): Removed.
7542 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7544 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7546 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7547 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7548 (xtensa_alloc_frame_cache): Add initialization for new fields.
7549 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7550 (warning_once): New function.
7551 (xtensa_insn_kind): New item c0opc_and.
7552 (call0_classify_opcode): Add the case for AND instruction.
7553 (call0_track_op): Change arguments. New local variable litbase.
7554 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7555 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7557 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7558 (call0_analyze_prologue): Update the comments. Change arguments.
7559 Add the variety of updates to handle extended prologues, which now can
7560 conduct dynamic stack adjustments.
7561 (call0_frame_cache): Likewise.
7562 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7563 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7565 2011-03-10 Michael Snyder <msnyder@vmware.com>
7567 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7568 (cmd_qtframe): Ditto.
7569 (cmd_qtbuffer): Ditto.
7570 (cmd_bigqtbuffer): Ditto.
7572 2011-03-10 Tom Tromey <tromey@redhat.com>
7574 * tracepoint.c (trace_actions_command): Update.
7575 * thread.c (thread_apply_command): Update.
7576 * reverse.c (delete_bookmark_command): Update.
7577 (bookmarks_info): Update.
7578 * printcmd.c (undisplay_command): Update.
7579 * memattr.c (mem_enable_command): Update.
7580 (mem_disable_command): Update.
7581 (mem_delete_command): Update.
7582 * inferior.c (detach_inferior_command): Update.
7583 (kill_inferior_command): Update.
7584 (remove_inferior_command): Update.
7585 * cli/cli-utils.h (struct get_number_or_range_state): New.
7586 (init_number_or_range): Declare.
7587 (get_number_or_range): Update.
7588 * cli/cli-utils.c (init_number_or_range): New function.
7589 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7591 (number_is_in_list): Update.
7592 * breakpoint.h (get_tracepoint_by_number): Update.
7593 * breakpoint.c (map_breakpoint_numbers): Update for change to
7594 get_number_or_range.
7595 (find_location_by_number): Use get_number, not
7596 get_number_or_range.
7597 (trace_pass_set_count): New function.
7598 (trace_pass_command): Update for change to get_number_or_range.
7600 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7603 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7605 * python/py-param.c (add_setshow_generic): Add set/show callback
7606 parameters. Register Python object context.
7607 (get_show_value): New function.
7608 (get_set_value): New function.
7609 (call_doc_function): New function.
7610 (get_doc_string): Move behind get_show_value/get_set_value.
7612 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7614 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7616 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7618 * xtensa-tdep.c (xtensa_read_register): Add comment.
7619 (xtensa_write_register): Likewise.
7620 (xtensa_hextochar): Add comment and update to match coding conventions.
7621 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7622 (execute_l32e, execute_s32e, execute_code): Update comments.
7623 (xtensa_exception_handler_t): Update to match coding conventions.
7624 (xtensa_insn_kind): Likewise.
7626 2011-03-09 Michael Snyder <msnyder@vmware.com>
7628 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7630 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7632 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7634 2011-03-09 Tom Tromey <tromey@redhat.com>
7636 * thread.c (restore_selected_frame): Handle frame_level == -1.
7637 (make_cleanup_restore_current_thread): Use
7638 get_selected_frame_if_set.
7639 * frame.h (get_selected_frame_if_set): Declare.
7640 * frame.c (get_selected_frame_if_set): New function.
7642 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7644 * cli/cli-cmds.c (shell_escape): Use lbasename.
7645 * coffread.c (coff_start_symtab): Constify parameter.
7646 (complete_symtab): Constify `name' parameter.
7647 (coff_symtab_read): Constify `filestring' local.
7648 (coff_getfilename): Constify return and `result' local.
7650 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7651 * linux-fork.c (info_checkpoints_command): Use lbasename.
7652 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7653 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7654 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7655 * procfs.c (procfs_make_note_section): Use lbasename.
7656 * tui/tui-io.c (printable_part): Constity return and parameter.
7658 (print_filename): Constify parameters, and local `s'.
7659 (tui_rl_display_match_list): Constify local `temp'.
7661 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7664 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7665 Fix DWARF-3+ DW_AT_accessibility default assumption.
7666 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7667 cu->header.version >= 3.
7669 2011-03-09 Yao Qi <yao@codesourcery.com>
7671 * common/Makefile.in: Remove.
7672 * common/configure: Remove.
7673 * common/configure.ac: Remove.
7675 2011-03-09 Yao Qi <yao@codesourcery.com>
7678 2011-02-11 Yao Qi <yao@codesourcery.com>
7680 * common/Makefile.in: Add copyright header.
7682 2011-02-11 Yao Qi <yao@codesourcery.com>
7684 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7686 * configure.ac: Add common to sub dir.
7687 * configure: Regenerate.
7689 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7691 * xtensa-tdep.c (call0_ret): New function.
7692 (xtensa_skip_prologue): Speed up analysis.
7694 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7696 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7697 while executing MI command -data-list-changed-registers.
7699 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7701 * xtensa-tdep.c (xtensa_read_register): New function.
7702 (xtensa_write_register): New function.
7703 (xtensa_find_register_by_name): New function.
7704 (xtensa_windowed_frame_cache): Update comments in type description.
7705 (xtensa_frame_cache): Likewise.
7706 (xtensa_window_interrupt_insn): New function.
7707 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7708 (xtensa_insn_kind): Add new instructions.
7709 (rwx_special_register): New function.
7710 (call0_classify_opcode): Add new instructions to the analysis.
7711 (a0_saved, a7_saved, a11_saved): New variables.
7712 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7713 (execute_l32e): New function.
7714 (execute_s32e): New function.
7715 (xtensa_exception_handler_t): New type.
7716 (execute_code): New function.
7717 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7718 analysis for Xtensa Window Exception handlers.
7720 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7722 * xtensa-tdep.c (TX_PS): New.
7723 (windowing_enabled): Update to count for Call0 ABI.
7724 (xtensa_hextochar): New.
7725 (xtensa_init_reggroups): Make algorithm generic.
7726 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7728 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7730 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7732 2011-03-08 Michael Snyder <msnyder@vmware.com>
7734 * i386-tdep.c (i386_follow_jump): Check return value of
7736 (i386_analyze_struct_return): Ditto.
7737 (i386_skip_probe): Ditto.
7738 (i386_match_insn): Ditto.
7739 (i386_skip_noop): Ditto.
7740 (i386_analyze_frame_setup): Ditto.
7741 (i386_analyze_register_saves): Ditto.
7742 (i386_skip_prologue): Ditto.
7743 (i386_skip_main_prologue): Ditto.
7745 * target.c (read_whatever_is_readable): Fix memory leak.
7747 * i386-tdep.c (i386_process_record): Document fall through.
7749 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7751 Fix DWARF-3+ DW_AT_accessibility default assumption.
7752 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7753 cu->header.version >= 3.
7755 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7757 * remote.c (remote_check_symbols): Skip if the target has no
7760 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7762 * target.c (read_whatever_is_readable): Reformat comment,
7763 with a minor typo fix. Minor reformatting of the code.
7765 2011-03-08 Yao Qi <yao@codesourcery.com>
7767 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7768 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7769 Use cached result instead of calling displaced_in_arm_mode again.
7770 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7771 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7772 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7773 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7774 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7775 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7776 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7777 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7778 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7779 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7780 (arm_catch_kernel_helper_return): Likewise.
7781 * gdb/arm-tdep.h : Update function declarations.
7783 2011-03-07 Michael Snyder <msnyder@vmware.com>
7785 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7787 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7789 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7791 * elfread.c (elf_symtab_read): Stop memory leak.
7793 * main.c (captured_main): Fix memory leak.
7795 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7797 * ada-lang.c (compare_names): Call is_name_suffix with string1
7800 2011-03-07 Tom Tromey <tromey@redhat.com>
7802 * xcoffread.c (xcoff_sym_fns): Update.
7803 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7804 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7805 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7806 (symbol_file_add_with_addrs_or_offsets): Likewise.
7807 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7808 * somread.c (som_sym_fns): Update.
7809 * psymtab.h (require_partial_symbols): Declare.
7810 * psymtab.c (require_partial_symbols): New function.
7811 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7812 (ALL_OBJFILE_PSYMTABS): Undef.
7813 (ALL_PSYMTABS): Move from psympriv.h.
7814 (lookup_partial_symtab, find_pc_sect_psymtab)
7815 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7816 (find_last_source_symtab_from_partial)
7817 (forget_cached_source_info_partial)
7818 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7819 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7820 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7821 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7822 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7823 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7824 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7825 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7826 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7828 * mipsread.c (ecoff_sym_fns): Update.
7829 * machoread.c (macho_sym_fns): Update.
7830 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7831 (read_psyms): New function.
7832 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7833 (elf_sym_fns_lazy_psyms): New global.
7834 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7835 dwarf2_build_psymtabs.
7836 * dbxread.c (aout_sym_fns): Update.
7837 * coffread.c (coff_sym_fns): Update.
7839 2011-03-07 Tom Tromey <tromey@redhat.com>
7841 * infrun.c (print_exited_reason): Include inferior id and pid in
7844 2011-03-07 Tom Tromey <tromey@redhat.com>
7846 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7848 (target_has_execution_1): Update.
7849 (target_has_execution_current): Declare.
7850 (target_has_execution): Call target_has_execution_current.
7851 (default_child_has_execution): Update.
7852 * target.c (default_child_has_execution): Add 'the_ptid'
7854 (target_has_execution_1): Likewise.
7855 (target_has_execution_current): New function.
7856 (add_target): Update.
7857 (init_dummy_target): Update.
7858 * remote-m32r-sdi.c (m32r_has_execution): New function.
7859 (init_m32r_ops): Use it.
7860 * record.c (record_core_has_execution): Now static. Add
7861 'the_ptid' parameter.
7862 * inferior.c (have_live_inferiors): Don't save current thread.
7863 Use target_has_execution_1.
7865 2011-03-07 Yao Qi <yao@codesourcery.com>
7867 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7869 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7871 * elfread.c (elf_symtab_read): Minor reformatting.
7873 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7875 * objc-lang.c (selectors_info): Minor reformatting.
7877 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7879 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7881 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7882 Michael Snyder <msnyder@vmware.com>
7884 * ada-valprint.c (ada_val_print_array): Move the declaration of
7885 "byte_order" and "elttype" inside the block where these variables
7886 are actually used. Remove some special handling for the case
7887 where "elttype" and "eltlen" are null. Replace by a comment
7888 and a couple of assertion checks.
7890 2011-03-05 Michael Snyder <msnyder@vmware.com>
7892 * source.c (add_path): Replace semicolon at end of block.
7893 * dwarf2expr.c (execute_stack_op): Ditto.
7895 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7897 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7898 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7899 (bfin-*-*): Likewise.
7901 2011-03-05 Michael Snyder <msnyder@vmware.com>
7903 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7904 * mdebugread.c (parse_symbol): Ditto.
7905 * parse.c (parse_exp_in_context): Ditto.
7906 * source.c (add_path): Ditto.
7907 * utils.c (gnu_debuglink_crc32): Ditto.
7908 * varobj.c (variable_language): Ditto.
7910 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7912 2011-03-04 Michael Snyder <msnyder@vmware.com>
7914 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7916 * symfile.c (simple_overlay_update): Check for null return value
7917 from lookup_minimal_symbol.
7919 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7921 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7923 * eval.c (parse_and_eval_address_1): Remove function.
7924 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7925 instead of parse_and_eval_address_1.
7926 * value.h (parse_and_eval_address_1): Remove prototype.
7928 2011-03-04 Michael Snyder <msnyder@vmware.com>
7930 * remote.c (putpkt_binary): Document that case stmt falls through.
7932 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7934 * breakpointc (print_it_typical): Move NULL check from here...
7935 (print_bp_stop_message): ... to here.
7937 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7939 * breakpoint.c (enable_command): Use break instead of continue,
7940 and fill in a missing break.
7941 (disable_command): Ditto.
7943 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7945 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7946 (terminal_save_ours): Remove misleading comment.
7947 (inflow_inferior_data_cleanup): Free ttystate.
7948 (inflow_inferior_exit): Likewise.
7949 (copy_terminal_info): Copy ttystate.
7951 * serial.c (serial_copy_tty_state): New function.
7952 * serial.h (serial_copy_tty_state): Add prototype.
7953 (struct serial_ops): Add copy_tty_state callback.
7954 * ser-base.c (ser_base_copy_tty_state): New function.
7955 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7956 * ser-go32.c (dos_copy_tty_state): New function.
7957 (dos_ops): Install copy_tty_state callback.
7958 * ser-mingw.c (_initialize_ser_windows): Likewise.
7959 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7960 * ser-unix.c (hardwire_copy_tty_state): New function.
7961 (_initialize_ser_hardwire): Install it.
7963 2011-03-04 Michael Snyder <msnyder@vmware.com>
7965 * breakpoint.c (create_breakpoint): Add missing break statement.
7967 Reverting this patch:
7968 * infcall.c (call_function_by_hand): Add break statements for lint.
7970 Reverting this patch:
7971 * cli/cli-script.c (script_from_file): Add break for lint.
7973 2011-03-04 Michael Snyder <msnyder@vmware.com>
7975 * solib.c (reload_shared_libraries_1): Close memory leak.
7977 2011-03-03 Tom Tromey <tromey@redhat.com>
7980 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7983 2011-03-03 Michael Snyder <msnyder@vmware.com>
7985 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7986 fields of struct 'st' to zero.
7988 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7989 sal.pspace before calling set_current_source_symtab_and_line.
7991 2011-03-03 Yao Qi <yao@codesourcery.com>
7993 * Makefile.in (configure-common): Remove. Let Makefile
7994 in dir common to rebuild itself.
7995 (common/Makefile): Likewise.
7997 2011-03-03 Joel Brobecker <brobecker@adacore.com>
7999 * utils.c (parse_escape): Add i18n markup in error message.
8001 2011-03-03 Yao Qi <yao@codesourcery.com>
8003 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8005 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8006 (displaced_write_reg, displaced_read_reg): Likewise.
8007 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8008 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8009 (cleanup_branch): Replace magic number 14 and 15 with
8010 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8012 2011-03-02 Michael Snyder <msnyder@vmware.com>
8014 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8016 * cli/cli-script.c (script_from_file): Add break for lint.
8018 * mdebugread.c (parse_partial_symbols): Fix indent.
8020 * target-descriptions.c (tdesc_gdb_type): No need to call
8021 xstrdup, callee saves a copy.
8023 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8025 * infcall.c (call_function_by_hand): Add break statements for lint.
8027 * utils.c (parse_escape): Escape the escape char.
8029 * python/py-inferior.c (build_inferior_list): Error out if
8030 PyList_Append fails.
8031 (gdbpy_inferiors): Error out if build_inferior_list fails.
8033 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8036 * record.c (record_restore): Move printf to before error return.
8038 2011-03-02 Yao Qi <yao@codesourcery.com>
8040 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8041 is_thumb and insn_size.
8042 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8043 on both ARM and Thumb mode.
8044 (arm_process_displaced_insn): Set is_thumb and insn_size.
8045 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8046 (arm_displaced_step_fixup): Likewise.
8048 2011-03-01 Michael Snyder <msnyder@vmware.com>
8050 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8052 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8054 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8056 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8058 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8061 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8062 which shadows function parameter.
8064 * tracepoint.c (create_tsv_from_upload): Superfluous call
8065 to xstrdup. Callee already calls xstrdup.
8067 * linespec.c (decode_line_1): Remove unnecessary null check.
8069 * tracepoint.c (scope_info): Fix mem leak, remove underused
8072 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8073 superfluous null check.
8075 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8076 (value_of_builtin_frame_fp_reg): Ditto.
8078 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8080 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8083 * linespec.c (decode_line_1): Check for null before dereference.
8085 * reverse.c (record_restore): Move null-check to before pointer
8088 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8090 * objc-lang.c (selectors_info): Add explanitory comment.
8091 (classes_info): Ditto.
8093 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8095 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8096 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8097 versions of the trampoline. Handle Thumb vs. ARM addresses.
8098 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8099 (arm_linux_init_abi): Install it.
8100 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8101 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8103 2011-02-28 Michael Snyder <msnyder@vmware.com>
8105 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8106 a little bigger, to avoid possibility of an overflow.
8108 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8109 buffers a little bigger, to avoid possibility of an overflow.
8111 * coffread.c (coff_getfilename): Add check to avoid overflow.
8113 * objc-lang.c (selectors_info): Add a small safety margin to
8115 (classes_info): Error out on too long REGEXP.
8117 * infrun.c (handle_inferior_event): Remove unused function call.
8119 * fork-child.c (fork_inferior): Remove ifdef'd code and
8122 * linux-thread-db.c (attach_thread): Discard unused value.
8124 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8126 * remote.c (remote_get_noisy_reply): Discard unused value.
8127 (remote_vcont_resume): Ditto.
8128 (remote_stop_ns): Ditto.
8130 * linespec.c (decode_objc): Delete unused variable.
8132 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8134 * dwarf2read.c (add_partial_symbol): Discard unused values.
8135 (read_base_type): Delete unused variable.
8137 * dbxread.c (read_dbx_symtab): Discard unused value.
8139 * eval.c (evaluate_subexp_standard): Delete unused variable,
8140 and discard unused values.
8142 * infcmd.c (_initialize_infcmd): Discard unused values.
8144 * stabsread.c (rs6000_builtin_type): Missing break statement.
8146 * dbxread.c (process_one_symbol): Discard unused value.
8148 * coffread.c (coff_end_symtab): Delete unused variable.
8150 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8151 (dwarf2_add_typedef): Delete unused variable.
8152 (read_namespace): Ditto.
8153 (dwarf_decode_macros): Ditto.
8155 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8157 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8159 * p-valprint.c (pascal_val_print): Discard unused value.
8161 * utils.c (nquery): Call va_end before return;
8165 * proc-service.c (ps_plog): Call va_end before return.
8167 2011-02-28 Tom Tromey <tromey@redhat.com>
8169 * python/python.c (gdbpy_value_cst): New global.
8170 (_initialize_python): Initialize it.
8171 * python/python-internal.h (gdbpy_value_cst): Declare.
8172 * python/py-value.c (convert_value_from_python): Use
8175 2011-02-28 Michael Snyder <msnyder@vmware.com>
8177 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8179 * breakpoint.c (catch_syscall_completer): Free malloced list.
8181 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8183 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8184 (lval_func_check_synthetic_pointer): Ditto.
8185 (lval_func_free_closure): Fix use-after-free.
8187 2011-02-28 Tom Tromey <tromey@redhat.com>
8189 * psymtab.c (expand_partial_symbol_tables): Use
8190 ALL_OBJFILE_PSYMTABS.
8192 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8194 * objc-lang.c (selectors_info): Error on too long REGEXP.
8196 2011-02-28 Michael Snyder <msnyder@vmware.com>
8198 * python/py-param.c (set_parameter_value): Add missing
8201 * linux-record.c (record_linux_system_call): Add missing
8204 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8206 * breakpoint.c (print_one_breakpoint_location): Remove unused
8207 argument PRINT_ADDRESS_BITS. Update callers.
8208 (print_one_breakpoint): Likewise.
8210 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8212 * breakpoint.c (wrap_indent_at_field): New function.
8213 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8214 Allocate ui_stream locally instead of using STB argument.
8215 (print_one_breakpoint_location): Update call.
8216 * ui-out.c (ui_out_query_field): New function.
8217 * ui-out.h (ui_out_query_field): Add prototype.
8219 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8221 From Michael Snyder <msnyder@vmware.com>
8222 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8224 2011-02-27 Michael Snyder <msnyder@vmware.com>
8226 * objc-lang.c (selectors_info): Prevent string overrun.
8228 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8231 * symtab.c (rbreak_command): Move variable 'file_name' to
8234 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8235 param with a local variable of the same name.
8237 2011-02-27 Michael Snyder <msnyder@vmware.com>
8239 * value.c (value_from_history_ref): New function.
8240 * value.h (value_from_history_ref): Export.
8241 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8242 to parse value history references.
8243 * cli/cli-utils.h (get_number_trailer): Update comment.
8245 2011-02-27 Michael Snyder <msnyder@vmware.com>
8247 * inferior.c (detach_inferior_command): Use get_number_or_range.
8248 (kill_inferior_command): Ditto.
8249 (remove_inferior_command): Ditto.
8250 (initialize_inferiors): Make command names plural.
8251 Update help strings.
8253 2011-02-27 Michael Snyder <msnyder@vmware.com>
8255 * darwin-nat-info.c: Fix comment typo.
8256 * dwarf2expr.h: Ditto.
8257 * fbsd-nat.c: Ditto.
8258 * fbsd-nat.h: Ditto.
8259 * frame-unwind.h: Ditto.
8261 * hppa-hpux-tdep.c: Ditto.
8262 * i386-linux-nat.c: Ditto.
8263 * linux-nat.c: Ditto.
8264 * nbsd-nat.c: Ditto.
8265 * nbsd-nat.h: Ditto.
8266 * ppc-linux-tdep.c: Ditto.
8269 * tui/tui-winsource.c: Ditto.
8271 2011-02-26 Michael Snyder <msnyder@vmware.com>
8273 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8275 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8277 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8278 with a local variable of the same name.
8280 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8281 param with a local variable of the same name.
8282 (i387_supply_xsave): Ditto.
8284 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8285 that it does not shadow a function parameter.
8287 * i386-nat.c (i386_length_and_rw_bits): Document that case
8288 statement is meant to fall through.
8290 * expprint.c (dump_subexp_body_standard): Document that case
8291 statement is meant to fall through.
8293 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8294 dead if statement. Condition can't be false.
8296 2011-02-25 Michael Snyder <msnyder@vmware.com>
8298 * arm-tdep.c: Fix typos in comments.
8299 * bsd-uthread.c: Ditto.
8300 * completer.c: Ditto.
8302 * cp-namespace.c: Ditto.
8303 * cp-support.c: Ditto.
8304 * cris-tdep.c: Ditto.
8306 * dwarf2read.c: Ditto.
8308 * gdbtypes.h: Ditto.
8309 * inferior.h: Ditto.
8310 * mdebugread.c: Ditto.
8311 * mips-tdep.c: Ditto.
8312 * ppc-linux-nat.c: Ditto.
8313 * ppc-linux-tdep.c: Ditto.
8314 * printcmd.c: Ditto.
8315 * sol-thread.c: Ditto.
8316 * solib-frv.c: Ditto.
8318 * sparc64-tdep.c: Ditto.
8319 * spu-tdep.c: Ditto.
8320 * stabsread.c: Ditto.
8325 * python/py-block.c: Ditto.
8326 * python/py-symbol.c: Ditto.
8327 * python/py-symtab.c: Ditto.
8328 * python/py-value.c: Ditto.
8329 * tui/tui-win.c: Ditto.
8331 2011-02-25 Michael Snyder <msnyder@vmware.com>
8333 * inferior.c (print_inferior): Accept a string instead of an int
8334 for requested_inferiors, and use get_number_or_range to parse it.
8335 (info_inferiors_command): Pass args string to print_inferior.
8336 (initialize_inferiors): Change help string for info inferiors.
8337 * inferior.h (print_inferior): Export prototype change.
8339 2011-02-25 Tom Tromey <tromey@redhat.com>
8341 * common/ax.def (invalid2): Set to 0x31.
8343 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8345 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8347 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8349 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8351 2011-02-24 Michael Snyder <msnyder@vmware.com>
8353 * Makefile.in (clean): Make clean should remove generated files
8354 observer.h and observer.inc.
8356 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8358 Revert the following patch (not approved yet):
8359 2011-02-21 Hui Zhu <teawater@gmail.com>
8360 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8361 * ax-gdb.c (gen_printf_expr_callback): New function.
8362 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8363 * ax-general.c (ax_memcpy): New function.
8364 (ax_print): Handle "printf".
8366 * ax.h (ax_memcpy): Forward declare.
8367 * common/ax.def (invalid2): Removed.
8368 (printf): New entry.
8369 * printcmd.c (printcmd.h): New include.
8370 (string_printf): New function.
8371 (ui_printf): Removed.
8372 (printf_command): Remove static. Call string_printf.
8373 (eval_command): Call string_printf.
8374 * printcmd.h: New file.
8375 * tracepoint.c (validate_actionline,
8376 encode_actions_1): handle printf_command.
8378 2011-02-23 Tom Tromey <tromey@redhat.com>
8380 * ax-general.c (ax_pick): Add missing newline.
8382 2011-02-23 Michael Snyder <msnyder@vmware.com>
8384 * breakpoint.c (breakpoint_1): Change first argument from an int
8385 to a char pointer, so that the function now accepts a list of
8386 breakpoints rather than just one. Use new function
8387 'number_is_in_list' to implement.
8388 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8389 (watchpoints_info): Ditto.
8390 (tracepoints_info): Ditto.
8391 (maintenance_info_breakpoints): Ditto.
8392 (_initialize_breakpoint): Update help strings to reflect the fact
8393 that these functions can now take more than one argument.
8394 * cli/cli-utils.c (number_is_in_list): New function.
8395 * cli/cli-utils.h (number_is_in_list): Export.
8397 2011-02-23 Michael Snyder <msnyder@vmware.com>
8399 * memattr.c (mem_enable_command): Use get_number_or_range.
8400 (mem_disable_command): Ditto.
8401 (mem_delete_command): Ditto.
8402 (_initialize_mem): Tweak usage message to reflect multiple
8405 2011-02-22 Doug Evans <dje@google.com>
8407 Add gdb.lookup_global_symbol python function.
8409 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8410 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8411 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8413 2011-02-22 Tom Tromey <tromey@redhat.com>
8415 * language.c (language_class_name_from_physname): Rename
8416 'curr_language' argument to 'lang'; use in body.
8418 2011-02-22 Michael Snyder <msnyder@vmware.com>
8420 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8422 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8424 * frame-unwind.h: Fix comment to mention the this frame, not the
8427 2011-02-22 Tom Tromey <tromey@redhat.com>
8429 * symfile.c (auto_solib_limit): Remove.
8430 * symfile.h (auto_solib_limit): Remove.
8432 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8434 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8436 2011-02-21 Michael Snyder <msnyder@vmware.com>
8438 * gdbthread.h (print_thread_info): Change prototype.
8439 * thread.c (print_thread_info): Accept char* instead of int for
8440 requested_threads argument. Use new function number_is_in_list
8441 to determine which threads to list.
8442 (info_threads_command): Pass char* to print_thread_info.
8443 * cli/cli-utils.c (number_is_in_list): New function.
8444 * cli/cli-utils.h (number_is_in_list): Export.
8445 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8447 (print_one_inferior): Ditto.
8448 (mi_cmd_list_thread_groups): Ditto.
8450 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 * common/Makefile.in (CFLAGS): New.
8453 (COMPILE): Add $(CFLAGS).
8455 2011-02-21 Tom Tromey <tromey@redhat.com>
8457 * breakpoint.c (catch_syscall_command_1): Fix typo.
8459 2011-02-21 Tom Tromey <tromey@redhat.com>
8461 * reverse.c: Include cli-utils.h.
8462 * printcmd.c: Include cli-utils.h.
8463 (string_printf): Use skip_spaces.
8464 * cli/cli-utils.h: New file.
8465 * cli/cli-utils.c: New file.
8466 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8467 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8468 * breakpoint.h (get_number, get_number_or_range): Move to
8470 * breakpoint.c: Include cli-utils.h.
8471 (get_number_trailer, get_number, get_number_or_range)
8472 (ep_skip_leading_whitespace): Move to cli-utils.c.
8473 (create_breakpoint_sal, find_condition_and_thread)
8474 (decode_static_tracepoint_spec, watch_command_1)
8475 (watch_maybe_just_location, ep_parse_optional_if_clause)
8476 (catch_fork_command_1, catch_exec_command_1)
8477 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8478 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8479 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8480 (HFILES_NO_SRCDIR): Add cli-utils.h.
8481 (cli-utils.o): New target.
8483 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8485 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8486 before calling discard_all_inferiors.
8488 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8490 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8491 (struct builtin_opencl_type): Remove.
8492 (builtin_opencl_type): Change return type to "struct type **".
8493 (lookup_opencl_vector_type): Update caller.
8494 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8495 (build_opencl_types): Install plain array of "struct type *"
8496 instead of "struct builtin_opencl_type".
8498 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8499 Ulrich Weigand <uweigand@de.ibm.com>
8501 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8502 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8503 (struct arm_linux_hwbp_cap): New type.
8504 (arm_linux_get_hwbp_cap): New function.
8505 (arm_linux_get_hw_breakpoint_count): Likewise.
8506 (arm_linux_get_hw_watchpoint_count): Likewise.
8507 (arm_linux_can_use_hw_breakpoint): Likewise.
8508 (arm_hwbp_type): New type.
8509 (arm_hwbp_control_t): Likewise.
8510 (struct arm_linux_hw_breakpoint): Likewise.
8511 (struct arm_linux_thread_points): Likewise.
8512 (arm_threads): New global variable.
8513 (arm_linux_find_breakpoints_by_tid): New function.
8514 (arm_hwbp_control_initialize): Likewise.
8515 (arm_hwbp_control_is_enabled): Likewise.
8516 (arm_hwbp_control_disable): Likewise.
8517 (arm_linux_hw_breakpoint_initialize): Likewise.
8518 (arm_linux_get_hwbp_type): Likewise.
8519 (arm_linux_hw_watchpoint_initialize): Likewise.
8520 (arm_linux_hw_breakpoint_equal): Likewise.
8521 (arm_linux_insert_hw_breakpoint1): Likewise.
8522 (arm_linux_remove_hw_breakpoint1): Likewise.
8523 (arm_linux_insert_hw_breakpoint): Likewise.
8524 (arm_linux_remove_hw_breakpoint): Likewise.
8525 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8526 (arm_linux_insert_watchpoint): Likewise.
8527 (arm_linux_remove_watchpoint): Likewise.
8528 (arm_linux_stopped_data_address): Likewise.
8529 (arm_linux_stopped_by_watchpoint): Likewise.
8530 (arm_linux_watchpoint_addr_within_range): Likewise.
8531 (arm_linux_new_thread): Likewise.
8532 (arm_linux_thread_exit): Likewise.
8533 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8534 related target callbacks. Register arm_linux_new_thread and
8535 arm_linux_thread_exit.
8536 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8537 * arm-tdep.c (arm_pc_is_thumb): Make global.
8538 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8540 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8542 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8543 per-frame locations while within a function epilogue.
8545 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8547 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8548 to GNU coding standards.
8550 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8552 Allow use of mingw native on Windows 95 OS.
8553 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8554 (ser_windows_close): Only call CancelIo if function exists.
8555 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8556 to check for existence of CancelIo function in kernel32 DLL.
8558 2011-02-21 Hui Zhu <teawater@gmail.com>
8560 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8561 * ax-gdb.c (gen_printf_expr_callback): New function.
8562 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8563 * ax-general.c (ax_memcpy): New function.
8564 (ax_print): Handle "printf".
8566 * ax.h (ax_memcpy): Forward declare.
8567 * common/ax.def (invalid2): Removed.
8568 (printf): New entry.
8569 * printcmd.c (printcmd.h): New include.
8570 (string_printf): New function.
8571 (ui_printf): Removed.
8572 (printf_command): Remove static. Call string_printf.
8573 (eval_command): Call string_printf.
8574 * printcmd.h: New file.
8575 * tracepoint.c (validate_actionline,
8576 encode_actions_1): handle printf_command.
8578 2011-02-19 Michael Snyder <msnyder@vmware.com>
8580 * reverse.c (delete_one_bookmark): Argument is now bookmark
8581 id rather than pointer to bookmark struct.
8582 (delete_bookmark_command): Use get_number_or_range.
8583 (goto_bookmark_command): Parse with get_number instead of strtoul.
8584 (bookmark_1): New function. Print info for one bookmark.
8585 (bookmarks_info): Use get_number_or_range and bookmark_1.
8587 2011-02-18 Michael Snyder <msnyder@vmware.com>
8589 * thread.c (info_threads_command): Re-implement using
8590 get_number_or_range.
8591 (thread_apply_command): Ditto.
8593 2011-02-18 Tom Tromey <tromey@redhat.com>
8595 * common/ax.def: New file.
8596 * ax.h (enum agent_op): Use ax.def.
8597 * ax-general.c (aop_map): Use ax.def.
8599 2011-02-18 Tom Tromey <tromey@redhat.com>
8601 * ax-general.c (aop_map): Add pick and rot.
8602 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8603 <DW_OP_rot>: Implement.
8604 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8606 * ax-general.c (ax_pick): New function.
8608 2011-02-18 Tom Tromey <tromey@redhat.com>
8610 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8612 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8613 Tom Tromey <tromey@redhat.com>
8615 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8616 make_symbol_overload_list_block with NULL BLOCK.
8617 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8619 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8621 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8622 * breakpoint.h (get_number_or_range): Declare.
8623 * printcmd.c (ALL_DISPLAYS): Declare.
8624 (delete_display): Reimplement taking a display pointer.
8625 (undisplay_command): Accept a range of displays to delete, using
8626 get_number_or_range.
8628 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8630 * c-valprint.c (c_val_print): Add embedded_offset to address
8631 for arrays of unspecified length.
8632 * p-valprint.c (pascal_val_print): Likewise.
8634 2011-02-18 Yao Qi <yao@codesourcery.com>
8636 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8637 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8638 (thumb_process_displaced_insn): New.
8639 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8640 call to arm_process_displaced_insn.
8641 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8643 2011-02-17 Tom Tromey <tromey@redhat.com>
8645 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8646 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8647 compile_dwarf_to_ax. No longer static. Call
8648 dwarf2_compile_cfa_to_ax.
8649 (locexpr_tracepoint_var_ref): Update.
8650 (loclist_tracepoint_var_ref): Update.
8651 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8652 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8653 argument; add 'gdbarch' and 'pc'.
8654 (dwarf2_compile_cfa_to_ax): New function.
8655 (dwarf2_frame_cache): Update.
8657 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8659 * ada-lang.c (ada_type_of_array): Fix the size of the array
8660 in the case of an unconstrained packed array.
8662 2011-02-17 Yao Qi <yao@codesourcery.com>
8664 * common/Makefile.in: Add more targets for make.
8666 2011-02-16 Tom Tromey <tromey@redhat.com>
8668 * dwarf2loc.c (unimplemented): Fix typo.
8670 2011-02-16 Tom Tromey <tromey@redhat.com>
8672 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8673 (compile_dwarf_to_ax) <default>: Use unimplemented.
8674 <DW_OP_deref>: Update.
8675 (disassemble_dwarf_expression): Update.
8676 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8677 (decode_locdesc): Update.
8678 * dwarf2expr.h (dwarf_stack_op_name): Update.
8680 2011-02-16 Tom Tromey <tromey@redhat.com>
8682 * ax.h (struct aop_map) <name>: Now const.
8684 2011-02-16 Tom Tromey <tromey@redhat.com>
8686 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8689 2011-02-16 Yao Qi <yao@codesourcery.com>
8691 * infrun.c (get_displaced_step_closure_by_addr): New.
8692 * inferior.h: Declare it.
8693 * arm-tdep.c: (arm_pc_is_thumb): Call
8694 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8697 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8698 Jan Kratochvil <jan.kratochvil@redhat.com>
8701 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8703 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8704 Jan Kratochvil <jan.kratochvil@redhat.com>
8706 * value.c (value_contents_copy_raw): Extend describing comment.
8707 Assert that the destination contents we're overwriting are wholly
8709 (value_contents_copy): Extend describing comment.
8711 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8712 Jan Kratochvil <jan.kratochvil@redhat.com>
8714 * value.c (value_available_contents_eq): Remove redundant local
8715 variables. Fix available contents comparision.
8716 * value.h (value_available_contents_eq): Extend describing
8719 2011-02-16 Yao Qi <yao@codesourcery.com>
8721 * thread.c (info_threads_command): Add missing i18n markup and remove
8724 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8726 * breakpoint.c (longjmp_names): New variable.
8727 (struct breakpoint_objfile_data): New type.
8728 (breakpoint_objfile_key): New variable.
8729 (msym_not_found): New variable.
8730 (msym_not_found_p): New predicate.
8731 (get_breakpoint_objfile_data): New function.
8732 (create_overlay_event_breakpoint): Check per-objfile cache for
8734 (create_longjmp_master_breakpoint): Likewise.
8735 (create_std_terminate_master_breakpoint): Likewise.
8736 (create_exception_master_breakpoint): Likewise.
8737 (_initialize_breakpoint): Register per-objfile data key.
8739 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8741 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8743 (create_longjmp_master_breakpoint): Loop over longjmp names.
8744 (create_std_terminate_master_breakpoint): Const-propagate parameter
8746 (update_breakpoints_after_exec): Adjust.
8747 (breakpoint_re_set): Adjust.
8749 2011-02-15 Michael Snyder <msnyder@vmware.com>
8751 * thread.c (info_threads_command): Process arg as thread id,
8752 or list of thread ids.
8753 (thread_find_command): New command.
8754 (_initialize_thread): Document argument for info threads.
8755 Document 'thread find' command.
8756 * NEWS: Document new command "thread find".
8758 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8760 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8761 * aclocal.m4: Regenerated with aclocal-1.11.1.
8762 * common/configure: Regenerate with autoconf-2.64.
8764 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8766 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8767 bool data type to a size of one byte.
8769 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8770 Jan Kratochvil <jan.kratochvil@redhat.com>
8772 * target.c (memory_xfer_live_readonly_partial): Document where to
8773 look for interface description.
8775 2011-02-15 Yao Qi <yao@codesourcery.com>
8778 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8779 order to store PC value on stack instead of text section.
8781 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8783 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8784 the EFP register set size.
8785 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8786 data from the VMX register.
8787 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8788 and write data from/to the VMX register.
8790 2011-02-14 Michael Snyder <msnyder@vmware.com>
8792 * command.h (enum command_class): New class 'no_set_class', for
8793 "show" commands without a corresponding "set" command.
8794 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8795 * copying.c (_initialize_copying): Ditto for "show copying" and
8797 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8799 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8800 which there is no corresponding "set" command (eg. "show copying").
8802 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8803 Jan Kratochvil <jan.kratochvil@redhat.com>
8805 * exec.c (section_table_available_memory): Change `len' parameter
8807 * exec.h (section_table_available_memory): Ditto.
8808 * value.h (read_value_memory): Rename the `offset' parameter to
8811 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8812 Jan Kratochvil <jan.kratochvil@redhat.com>
8814 * memrange.c (compare_mem_ranges): Mention sort order in
8816 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8817 * tracepoint.c (traceframe_available_memory): Extend comment to
8818 mention what happens to RESULT when the target does not support
8821 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8822 Jan Kratochvil <jan.kratochvil@redhat.com>
8824 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8827 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8829 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8830 No longer handle NULL values.
8832 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8834 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8835 * value.c: Include "exceptions.h".
8836 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8838 * cp-abi.c: Include gdb_assert.h.
8839 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8840 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8842 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8843 parameters. No longer returns -1 on error.
8844 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8846 * cp-valprint.c: Include exceptions.h.
8847 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8848 the baseclass_offset. Handle unavailable base classes. Use
8849 val_print_invalid_address.
8850 * p-valprint.c: Include exceptions.h.
8851 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8852 when fetching the baseclass_offset. No longer expect
8853 baseclass_offset returning -1. Handle unavailable base classes.
8854 Use val_print_invalid_address.
8855 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8856 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8857 `embedded_offset' and `val' parameters. Adjust.
8858 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8859 parameter, and change its type to gdb_byte pointer. Add
8860 `embedded_offset' and `val' parameters. Adjust. No longer expect
8861 baseclass_offset returning -1.
8862 (value_dynamic_cast): Use value_contents_for_printing rather than
8863 value_contents. Adjust.
8864 (search_struct_field): No longer expect baseclass_offset returning
8866 (search_struct_method): If reading memory from the target is
8867 necessary, wrap it in a new value to pass to baseclass_offset. No
8868 longer expect baseclass_offset returning -1.
8869 (find_method_list): No longer expect baseclass_offset returning
8870 -1. Use value_contents_for_printing rather than value_contents.
8871 * valprint.c (val_print_invalid_address): New function.
8872 * valprint.h (val_print_invalid_address): Declare.
8873 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8874 and `val' parameters. No longer expect baseclass_offset returning
8876 * gnu-v2-abi.c: Include "exceptions.h".
8877 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8878 parameters. Handle unavailable memory. Recurse through
8879 gnuv2_baseclass_offset directly, rather than through
8880 baseclass_offset. No longer returns -1 on not found, instead
8882 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8883 `val' parameters. Adjust.
8885 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8887 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8888 almost but not quite adjacent.
8890 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8892 * value.h (value_entirely_available): Declare.
8893 * value.c (value_entirely_available): New function.
8894 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8895 real type if the pointer is unavailable.
8897 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8899 * valops.c (value_repeat): Use read_value_memory instead of
8902 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8904 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8905 * value.c (value_contents_copy_raw, value_contents_copy): New
8907 (value_primitive_field): Use value_contents_copy_raw instead of
8909 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8911 (value_array, value_slice): Ditto.
8912 * valarith.c (value_subscripted_rvalue): Use
8913 value_contents_copy_raw instead of memcpy.
8915 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8917 <unavailable> references.
8919 * valops.c (get_value_at): Use value_from_contents_and_address,
8920 avoiding read_memory.
8922 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8924 * c-valprint.c (c_val_print): Print a string with unavailable
8925 contents as an array.
8927 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8929 * value.h (unpack_bits_as_long): Delete declaration.
8930 (unpack_value_bits_as_long): Declare.
8931 (unpack_value_field_as_long): Declare.
8932 (value_field_bitfield): Declare.
8933 * value.c (unpack_bits_as_long): Rename to...
8934 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8935 value parameters. Return the extracted result in a new output
8936 parameter. If the value contents are unavailable, return false,
8937 otherwise return true.
8938 (unpack_value_bits_as_long): New.
8939 (unpack_field_as_long): Rename to...
8940 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8941 Add embedded_offset and value parameters. Return the extracted
8942 result in a new output parameter. If the value contents are
8943 unavailable, return false, otherwise return true.
8944 (unpack_value_field_as_long): New.
8945 (unpack_field_as_long_1): New.
8946 (unpack_field_as_long): Reimplement as wrapper around
8947 unpack_value_field_as_long_1.
8948 (value_field_bitfield): New function.
8949 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8950 unpack_value_bits_as_long. Mark the value as unavailable, if it
8952 * jv-valprint.c (java_print_value_fields): Use
8953 value_field_bitfield.
8954 * p-valprint.c (pascal_object_print_value_fields): Use
8955 value_field_bitfield.
8956 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8958 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8960 * value.c (get_internalvar_integer): Also return the int value of
8961 TYPE_CODE_INT INTERNALVAR_VALUE values.
8962 (set_internalvar): Don't special case TYPE_CODE_INT.
8964 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8966 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8967 INTERNALVAR_POINTER.
8969 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8970 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8971 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8973 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8975 * value.h (value_available_contents_eq): Declare.
8976 * value.c (find_first_range_overlap): New function.
8977 (value_available_contents_eq): New function.
8978 * valprint.c (val_print_array_elements): Use
8979 value_available_contents_eq.
8980 * ada-valprint.c (val_print_packed_array_elements): Use
8981 value_available_contents_eq.
8982 * jv-valprint.c (java_value_print): Use
8983 value_available_contents_eq.
8985 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8987 * target.c (target_read_live_memory): New function.
8988 (memory_xfer_live_readonly_partial): New.
8989 (memory_xfer_partial): If reading from a traceframe, fallback to
8990 reading unavailable read-only memory from read-only regions of
8992 * tracepoint.c (disconnect_tracing): Adjust.
8993 (set_current_traceframe): New, factored out from
8994 set_traceframe_number.
8995 (set_traceframe_number): Reimplement to only change the traceframe
8996 number on the GDB side.
8997 (do_restore_current_traceframe_cleanup): Adjust.
8998 (make_cleanup_restore_traceframe_number): New.
8999 (cur_traceframe_number): New global.
9000 (tfile_open): Set cur_traceframe_number to no traceframe.
9001 (set_tfile_traceframe): New function.
9002 (tfile_trace_find): If looking up a traceframe using any method
9003 other than by number, make sure the current tfile traceframe
9004 matches gdb's current traceframe. Update the current tfile
9005 traceframe if the lookup succeeded.
9006 (tfile_fetch_registers, tfile_xfer_partial)
9007 (tfile_get_trace_state_variable_value): Make sure the remote
9008 traceframe matches gdb's current traceframe.
9009 * remote.c (remote_traceframe_number): New global.
9010 (remote_open_1): Set it to -1.
9011 (set_remote_traceframe): New function.
9012 (remote_fetch_registers, remote_store_registers)
9013 (remote_xfer_memory, remote_xfer_partial)
9014 (remote_get_trace_state_variable_value): Make sure the remote
9015 traceframe matches gdb's current traceframe.
9016 (remote_trace_find): If looking up a traceframe using any method
9017 other than by number, make sure the current remote traceframe
9018 matches gdb's current traceframe. Update the current remote
9019 traceframe if the lookup succeeded.
9020 * infrun.c (fetch_inferior_event): Adjust.
9021 * tracepoint.h (set_current_traceframe): Declare.
9022 (get_traceframe_number, set_traceframe_number): Add describing
9025 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9027 Mark pieces of values as unavailable if the corresponding memory
9030 * valops.c: Include tracepoint.h.
9031 (value_fetch_lazy): Use read_value_memory.
9032 (read_value_memory): New.
9033 * value.h (read_value_memory): Declare.
9034 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9035 * exec.c (section_table_available_memory): New function.
9036 * exec.h (section_table_available_memory): Declare.
9038 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9040 * Makefile.in (SFILES): Add memrange.c.
9041 (HFILES_NO_SRCDIR): Add memrange.h.
9042 (COMMON_OBS): Add memrange.o.
9043 * memrange.c: New file.
9044 * memrange.h: New file.
9045 * tracepoint.c: Include memrange.h.
9046 (struct mem_range): Delete.
9047 (mem_range_s): Delete.
9048 (traceframe_available_memory): New function.
9049 * tracepoint.h (traceframe_available_memory): Declare.
9051 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9053 * target.h (struct traceframe_info): Forward declare.
9054 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9055 (struct target_ops) <to_traceframe_info>: New field.
9056 (target_traceframe_info): New.
9057 * target.c (update_current_target): Inherit and default
9059 * remote.c (PACKET_qXfer_traceframe_info): New.
9060 (remote_protocol_features): Register qXfer:traceframe-info:read.
9061 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9062 (remote_traceframe_info): New.
9063 (init_remote_ops): Install it.
9064 (_initialize_remote): Install "set/show remote traceframe-info"
9066 * tracepoint.h (parse_traceframe_info): Declare.
9067 * tracepoint.c (struct mem_range): New.
9068 (mem_range_s): New typedef.
9069 (struct traceframe_info): New.
9070 (traceframe_info): New global.
9071 (free_traceframe_info): New function.
9072 (clear_traceframe_info): New function.
9073 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9075 (build_traceframe_info): New function.
9076 (tfile_traceframe_info): New function.
9077 (init_tfile_ops): Install tfile_traceframe_info.
9078 (traceframe_info_start_memory, free_result): New functions.
9079 (memory_attributes, traceframe_info_elements): New globals.
9080 (parse_traceframe_info, get_traceframe_info): New functions.
9081 * features/traceframe-info.dtd: New file.
9082 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9084 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9086 Base support for <unavailable> value contents.
9088 * value.h (value_bytes_available): Declare.
9089 (mark_value_bytes_unavailable): Declare.
9090 * value.c (struct range): New struct.
9091 (range_s): New typedef.
9092 (ranges_overlap): New function.
9093 (range_lessthan): New function.
9094 (ranges_contain_p): New function.
9095 (struct value) <unavailable>: New field.
9096 (value_bytes_available): New function.
9097 (mark_value_bytes_unavailable): New function.
9098 (require_not_optimized_out): Constify parameter.
9099 (require_available): New function.
9100 (value_contents_all, value_contents): Require all bytes be
9102 (value_free): Free `unavailable'.
9103 (value_copy): Copy `unavailable'.
9104 * valprint.h (val_print_unavailable): Declare.
9105 * valprint.c (valprint_check_validity): Rename `offset' parameter
9106 to `embedded_offset'. If printing a scalar, check whether the
9107 value chunk is available.
9108 (val_print_unavailable): New.
9109 (val_print_scalar_formatted): Check whether the value is
9111 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9112 pretty-printing unavailable values.
9114 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9116 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9117 * c-typeprint.c (c_type_print_args): Update the function comment. New
9118 variable param_type, initialize it. Remove const/volatile qualifiers
9119 for language_cplus and !show_artificial. Use param_type.
9121 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9123 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9124 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9125 * symtab.h (struct symtab) <next>: Comment extension.
9127 2011-02-12 Yao Qi <yao@codesourcery.com>
9129 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9131 2011-02-11 Yao Qi <yao@codesourcery.com>
9133 * common/Makefile.in: Add copyright header.
9135 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9137 * infrun.c (proceed): Move switching out and in of tfind mode from
9139 (fetch_inferior_event): ... to here.
9141 2011-02-11 Yao Qi <yao@codesourcery.com>
9143 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9145 * configure.ac: Add common to sub dir.
9146 * configure: Regenerate.
9148 2011-02-11 Yao Qi <yao@codesourcery.com>
9152 * common/Makefile.in: New.
9153 * common/configure.ac: New.
9154 * common/aclocal.m4: New.
9155 * common/configure: Generate.
9157 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9159 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9160 side of the parenthesis.
9163 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9164 * vec.h (VEC_block_remove): Fix comment.
9166 2011-02-08 Michael Snyder <msnyder@vmware.com>
9168 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9170 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9172 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9173 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9176 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9179 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9181 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9182 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9184 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9186 * dwarf2read.c (read_subroutine_type): Set special calling
9187 convention flag for functions compiled by IBM XL C for OpenCL.
9188 * ppc-sysv-tdep.c: Include "dwarf2.h"
9189 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9191 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9192 IBM OpenCL vector types calling convention.
9193 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9194 (ppc_sysv_abi_broken_return_value): Likewise.
9195 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9196 types calling convention.
9197 (ppc64_sysv_abi_return_value): Likewise.
9198 * spu-tdep.c: Include "dwarf2.h"
9199 (spu_return_value): Implement IBM OpenCL vector types calling
9202 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9204 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9205 correct ABI for AltiVec vector arguments.
9207 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9209 * valprint.c (val_print): Extend comment.
9210 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9211 interface explanation to val_print.
9212 (ada_val_print_array): Adjust comment to current interface.
9213 (print_field_values): Adjust comment to current interface.
9214 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9215 explanation to val_print.
9216 * f-valprint.c (f_val_print): Ditto.
9217 * jv-valprint.c (java_val_print): Ditto.
9218 * m2-valprint.c (m2_val_print): Ditto.
9219 * p-valprint.c (pascal_val_print): Ditto.
9221 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9223 * breakpoint.c (parse_breakpoint_sals): Fix description.
9225 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9226 Oguz Kayral <oguzkayral@gmail.com>
9228 * python/py-inferior.c (python_on_normal_stop): New function.
9229 (python_on_resume): New function.
9230 (python_inferior_exit): New function.
9231 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9232 inferior_exit observers.
9233 * python/py-evtregistry.c: New file.
9234 * python/py-threadevent.c : New file.
9235 * python/py-event.c: New file.
9236 * python/py-evts.c: New file.
9237 * python/py-continueevent.c: New file.
9238 * python/py-bpevent.c: New file.
9239 * python/py-signalevent.c: New file.
9240 * python/py-exetiedevent.c: New file.
9241 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9242 Move struct breakpoint_object from here...
9243 * python/python-internal.h: ... to here.
9244 * python/py-event.h: New file.
9245 * python/py-events.h: New file.
9246 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9247 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9248 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9249 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9250 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9251 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9252 Add build rules for all the above.
9254 2011-02-04 Tom Tromey <tromey@redhat.com>
9256 * dwarf2read.c (dwarf2_section_empty_p): New function.
9257 (dwarf2_read_section): Use dwarf2_section_empty_p.
9258 (dwarf2_section_size): New function.
9259 (dwarf2_get_section_info): Unconditionally read section.
9260 (dwarf2_read_index): Use dwarf2_section_empty_p.
9261 (partial_read_comp_unit_head): Use dwarf2_section_size.
9262 (dwarf2_symbol_mark_computed): Likewise.
9264 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9266 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9268 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9270 * mips-linux-tdep.c: Include xml-syscall.h.
9271 (mips_linux_get_syscall_number): New function.
9272 (mips_linux_init_abi): Add calls to
9273 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9274 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9275 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9276 * syscalls/mips-n32-linux.xml: New file.
9277 * syscalls/mips-n64-linux.xml: New file.
9278 * syscalls/mips-o32-linux.xml: New file.
9280 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9282 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9283 Complain about inverted range entries.
9284 (dwarf2_record_block_ranges): Likewise.
9286 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9289 * breakpoint.c (update_watchpoint): Fix name of the
9290 update_global_location_list function.
9291 (print_one_breakpoint): Fix typo.
9292 (_initialize_breakpoint): Remove extra space in hbreak help
9294 * breakpoint.h (struct bp_location) <length>: Fix field
9297 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9299 * regcache.c (registers_changed_ptid): Don't explictly always
9300 clear `current_regcache'. Only clear current_thread_ptid and
9301 current_thread_arch when PTID matches. Only reinit the frame
9302 cache if PTID matches the current inferior_ptid. Move alloca(0)
9304 (registers_changed): ... here.
9306 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9308 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9309 starts with __stack_chk_guard as stack guard symbol.
9311 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9313 * disasm.c (compare_lines): Handle the end of sequence markers
9314 within the line table to better support disassembling over
9315 compilation unit boundaries.
9317 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9319 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9320 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9321 implementation even if no symbols are available.
9322 (thumb_analyze_prologue): Update call to skip_prologue_function.
9323 (arm_analyze_prologue): Likewise.
9325 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9327 * arm-tdep.c: Include "observer.h".
9328 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9329 (arm_exidx_data_key): New static variable.
9330 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9331 (struct arm_exidx_data): Likewise.
9332 (arm_exidx_data_free): New function.
9333 (arm_compare_exidx_entries): Likewise.
9334 (arm_obj_section_from_vma): Likewise.
9335 (arm_exidx_new_objfile): Likewise.
9336 (arm_find_exidx_entry): Likewise.
9337 (arm_exidx_fill_cache): Likewise.
9338 (arm_exidx_unwind_sniffer): Likewise.
9339 (arm_exidx_unwind): New global variable.
9340 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9341 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9342 observer. Register arm_exidx_data_key as objfile data.
9344 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9346 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9347 due to accessing uninitialized variable. Fix indentation.
9349 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9351 * c-valprint.c (c_value_print): When doing virtual base pointer
9352 adjustment, create a new value with adjusted contents rather than
9353 changing the contents of the value being printed (and getting it
9356 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9358 * xml-support.c (xml_find_attribute): New.
9359 (xinclude_start_include): Use it.
9360 * xml-support.h (xml_find_attribute): Declare.
9361 * memory-map.c (memory_map_start_memory)
9362 (memory_map_start_property): Use xml_find_attribute.
9363 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9365 * remote.c (start_thread): Use xml_find_attribute.
9366 * solib-target.c (library_list_start_segment)
9367 (library_list_start_section, library_list_start_library)
9368 (library_list_start_list): Use xml_find_attribute.
9369 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9370 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9371 (tdesc_start_field): Use xml_find_attribute.
9373 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9375 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9376 (BUILD_OCL_VTYPES): Update.
9378 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9380 * configure.ac: Work around non-GNU sed limitation when computing
9381 python version number.
9382 * configure: Regenerate.
9384 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9386 Fix debug printing of TYPE_INSTANCE.
9387 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9388 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9390 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9392 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9393 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9394 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9395 * ada-operator.inc: Rename the file to ...
9396 * ada-operator.def: ... here, wrap all the entries by macro OP.
9397 * expprint.c (op_name_standard): Remove all the entries. Include
9398 "std-operator.def" instead.
9399 * expression.h (enum exp_opcode): Include "std-operator.def" and
9400 "ada-operator.def". Move all the entries ...
9401 * std-operator.def: ... here, wrap all the entries by macro OP.
9403 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9405 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9406 * breakpoint.c (remove_jit_event_breakpoints): New function.
9407 * jit.c (jit_descriptor_addr): Delete.
9408 (registering_code): Delete.
9409 (clear_int): Delete.
9410 (jit_inferior_data): New variable.
9411 (struct jit_inferior_data): New type.
9412 (get_jit_inferior_data): New function.
9413 (jit_inferior_data_cleanup): New function.
9414 (jit_read_descriptor): Adjust.
9415 (jit_register_code): Adjust.
9416 (jit_breakpoint_re_set_internal): New function; move code here ...
9417 (jit_inferior_init): ... from here.
9418 (jit_breakpoint_re_set): Adjust.
9419 (jit_reset_inferior_data_and_breakpoints): New function.
9420 (jit_inferior_created_observer): Adjust.
9421 (jit_inferior_exit_hook): Adjust.
9422 (jit_executable_changed_observer): New function.
9423 (jit_event_handler): Adjust.
9424 (_initialize_jit): Adjust.
9426 2011-01-31 Michael Snyder <msnyder@vmware.com>
9428 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9431 2011-01-31 Tom Tromey <tromey@redhat.com>
9434 * python/python.c (execute_gdb_command): Call
9435 prevent_dont_repeat.
9436 * top.c (suppress_dont_repeat): New global.
9437 (dont_repeat): Use it.
9438 (prevent_dont_repeat): New function.
9439 * command.h (prevent_dont_repeat): Declare.
9441 2011-01-31 Tom Tromey <tromey@redhat.com>
9443 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9444 * python/py-breakpoint.c (bppy_set_silent): Use
9445 breakpoint_set_silent.
9446 (bppy_set_thread): Use breakpoint_set_thread.
9447 (bppy_set_task): Use breakpoint_set_task.
9448 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9449 (breakpoint_set_task): Declare.
9450 (make_breakpoint_silent): Remove.
9451 * breakpoint.c (breakpoint_set_silent): New function.
9452 (breakpoint_set_thread): Likewise.
9453 (breakpoint_set_task): Likewise.
9454 (make_breakpoint_silent): Remove.
9456 2011-01-31 Tom Tromey <tromey@redhat.com>
9458 * breakpoint.h (user_breakpoint_p): Declare.
9459 * breakpoint.c (user_breakpoint_p): New function.
9460 (breakpoint_1): Use it.
9461 (save_breakpoints): Likewise.
9463 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9465 * configure.ac: Add handling of Python distribution on Windows.
9466 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9467 sysconfig variables are not defined, then do not use them.
9468 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9469 instead. On Windows, return all paths using forward-slashes
9470 rather than backslashes.
9472 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9474 * configure.ac: Remove fallback behavior for building
9475 against Python. Remove tweaking of Python include path.
9476 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9477 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9478 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9479 Always restore CPPFLAGS and LIBS after linking test.
9480 * configure: Regenerated.
9481 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9482 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9483 * python/python-internal.h: Adjust includes of Python .h files.
9485 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9487 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9490 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9492 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9495 2011-01-31 Yao Qi <yao@codesourcery.com>
9497 * arm-linux-nat.c: Update calls to regcache_register_status
9498 instead of regcache_valid_p.
9499 * aix-thread.c: Likewise.
9500 * i386gnu-nat.c: Likewise.
9502 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9505 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9506 touching TYPE_FIELD_ARTIFICIAL.
9508 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9510 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9513 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9515 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9516 selected, don't try iterating over the traceframe's blocks.
9517 (tfile_has_stack): If there's no traceframe selected, then there's
9519 (tfile_has_registers): If there's no traceframe selected, then
9520 there's no registers.
9522 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9524 * target.c (memory_xfer_partial): No need to restore shadows if we
9525 haven't read anything.
9527 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9529 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9530 and val_print_scalar_formatted.
9532 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9534 * tracepoint.c (tfile_read): New.
9535 (tfile_open): Use it.
9536 (tfile_get_traceframe_address): Use it.
9537 (tfile_trace_find): Use it.
9538 (walk_blocks_callback_func): New typedef.
9539 (match_blocktype): New function.
9540 (traceframe_walk_blocks): New function.
9541 (traceframe_find_block_type): New function.
9542 (tfile_fetch_registers, tfile_xfer_partial)
9543 (tfile_get_trace_state_variable_value): Use
9544 traceframe_find_block_type and tfile_read.
9546 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9548 * remote-mips.c: Add internationalization mark ups. Remove
9549 trailing \n from already marked up strings.
9551 2011-01-26 Tom Tromey <tromey@redhat.com>
9553 * python/py-prettyprint.c (print_string_repr): Clear
9554 'addressprint' option when calling val_print_string.
9555 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9556 option when calling val_print_string.
9558 2011-01-26 Tom Tromey <tromey@redhat.com>
9560 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9562 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9564 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9565 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9566 (gdb_py_long_as_ulongest): New defines.
9567 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9568 (gdb_py_int_as_long): Declare.
9569 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9570 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9571 (valpy_long): Add comment.
9572 * python/py-utils.c (get_addr_from_python): Use
9573 gdb_py_long_as_ulongest. Handle overflow properly.
9574 (gdb_py_object_from_longest): New function.
9575 (gdb_py_object_from_ulongest): Likewise.
9576 (gdb_py_int_as_long): Likewise.
9577 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9578 * python/py-symtab.c (salpy_get_pc): Use
9579 gdb_py_long_from_ulongest.
9580 (salpy_get_line): Use PyInt_FromLong.
9581 * python/py-param.c (set_parameter_value): Use
9583 * python/py-lazy-string.c (stpy_get_address): Use
9584 gdb_py_long_from_ulongest.
9585 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9586 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9587 * python/py-breakpoint.c (bppy_set_thread): Use
9589 (bppy_set_task): Likewise.
9590 (bppy_set_ignore_count): Likewise.
9591 (bppy_set_hit_count): Likewise.
9592 * python/py-block.c (blpy_get_start): Use
9593 gdb_py_object_from_ulongest.
9594 (blpy_get_end): Likewise.
9595 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9597 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9600 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9601 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9602 equality test for objfile, initialize addr_low if needed.
9604 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9606 * tui/tui-regs.c (tui_register_format): Remove dead code.
9608 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9610 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9611 instead of print_scalar_formatted.
9612 (print_scalar_formatted): Don't handle 's' format strings here,
9613 and add an assertion that we never see such format here.
9614 * valprint.h (val_print_scalar_formatted): Declare.
9615 * valprint.c (val_print_scalar_formatted): New.
9616 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9617 instead of print_scalar_formatted.
9618 * jv-valprint.c (java_val_print): Ditto.
9619 * p-valprint.c (pascal_val_print): Ditto.
9620 * ada-valprint.c (ada_val_print_1): Ditto.
9621 * f-valprint.c (f_val_print): Ditto.
9622 * infcmd.c (registers_info): Ditto.
9623 * m2-valprint.c (m2_val_print): Ditto.
9625 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9627 * m2-valprint.c (print_unbounded_array): Pass
9628 value_contents_for_printing rather than value_contents, to
9629 m2_print_array_contents. Also pass in the value.
9631 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9633 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9634 (save_gdb_index_command): Switch to .gdb_index version 4.
9636 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9638 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9639 than frame_register, and always pass a valid value to val_print.
9641 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9643 Centralize printing "<optimized out>".
9645 * valprint.h (val_print_optimized_out): Declare.
9646 * cp-valprint.c (cp_print_value_fields): Use
9647 val_print_optimized_out.
9648 * jv-valprint.c (java_print_value_fields): Ditto.
9649 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9650 * printcmd.c (print_formatted): Ditto.
9651 * valprint.c (valprint_check_validity): Ditto.
9652 (value_check_printable): Ditto.
9653 (val_print_optimized_out): New.
9655 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9657 * infcmd.c (default_print_registers_info): Allocate values so to
9658 never pass a NULL value to val_print.
9660 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9662 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9663 boolean. Make sure to always pass a value that matches the
9664 contents buffer to callees. Preserve `address' for following
9666 * value.c (value_contents_for_printing_const): New.
9667 (value_address): Constify value argument.
9668 * value.h (value_contents_for_printing_const): Declare.
9669 (value_address): Constify value argument.
9671 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9673 * regcache.c (struct regcache_descr): Rename
9674 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9675 and sizeof_cooked_register_valid_p to
9676 sizeof_cooked_register_status.
9677 (init_regcache_descr): Adjust.
9678 (struct regcache): Rename register_valid_p field to
9680 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9681 (do_cooked_read): Adjust.
9682 (regcache_valid_p): Rename to ...
9683 (regcache_register_status): ... this. Adjust.
9684 (regcache_invalidate): Adjust.
9685 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9687 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9688 as unavailable, not valid.
9689 (regcache_dump): Adjust.
9690 * regcache.h (enum register_status): New.
9691 (regcache_register_status): Declare.
9692 (regcache_invalidate): Delete declaration.
9693 * corelow.c (get_core_registers): Adjust.
9694 * tracepoint.c (tfile_fetch_registers): Adjust.
9695 * trad-frame.c (REG_VALUE): Rename to ...
9696 (TF_REG_VALUE): ... this.
9697 (REG_UNKNOWN): Rename to ...
9698 (TF_REG_UNKNOWN): ... this.
9699 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9700 * mi/mi-main.c (register_changed_p): Adjust.
9702 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9704 * regcache.c (struct regcache_descr): Remove outdated comment.
9705 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9707 (regcache_xmalloc): Rename to ...
9708 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9709 Allocate the regcache type accordingly.
9710 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9711 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9712 cooked registers, not raw.
9713 (regcache_dup_no_passthrough): Delete.
9714 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9715 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9716 mention obsolete write_register_bytes.
9717 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9719 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9721 Stop remote_read_bytes from handling partial reads itself.
9723 * remote-fileio.c: Include target.h.
9724 (remote_fileio_write_bytes): Delete.
9725 (remote_fileio_func_open, remote_fileio_func_write)
9726 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9728 (remote_fileio_func_stat): Use target_read_memory and
9729 target_write_memory.
9730 (remote_fileio_func_gettimeofday): Use target_write_memory.
9731 (remote_fileio_func_system): Use target_read_memory.
9732 * remote.c (remote_write_bytes): Make it static.
9733 (remote_read_bytes): Don't handle partial reads here.
9734 * remote.h (remote_read_bytes): Delete declaration.
9736 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9738 Simplify XML parsing a bit.
9740 * xml-support.h (gdb_xml_parse_quick): Declare.
9741 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9742 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9744 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9745 gdb_xml_create_parser_and_cleanup_1.
9746 (gdb_xml_parse_quick): New.
9747 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9748 * osdata.c (osdata_parse): Ditto.
9749 * remote.c (remote_threads_info): Ditto.
9750 * solib-target.c (solib_target_parse_libraries): Ditto.
9751 * xml-syscall.c (syscall_parse_xml): Ditto.
9752 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9754 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9756 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9757 with remote-mips.o added to gdb_target_obs.
9758 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9760 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9762 * ada-valprint.c (val_print_packed_array_elements): Pass the
9763 correct struct value to val_print.
9764 (ada_val_print_1): Ditto.
9766 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9768 Don't lose embedded_offset in printing routines throughout.
9770 * valprint.h (val_print_array_elements): Change prototype.
9771 * valprint.c (val_print_array_elements): Add `embedded_offset'
9772 parameter, and adjust to pass it down to val_print, while passing
9773 `valaddr' or `address' unmodified. Take embedded_offset into
9774 account when checking repetitions.
9775 * c-valprint.c (c_val_print): Pass embedded_offset to
9776 val_print_array_elements instead of adjusting `valaddr' and
9778 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9779 embedded_offset to val_print_array_elements instead of adjusting
9781 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9782 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9783 val_print_array_elements and pascal_object_print_value_fields
9784 instead of adjusting `valaddr'.
9785 (pascal_object_print_value_fields): Add `offset' parameter, and
9787 (pascal_object_print_value): Add `offset' parameter, and adjust to
9789 (pascal_object_print_static_field): Use
9790 value_contents_for_printing/value_embedded_offset, rather than
9792 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9793 parameter, and adjust to use it. Use
9794 value_contents_for_printing/value_embedded_offset, rather than
9796 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9797 (ada_val_print_array): Add `offset' parameter, and adjust to use
9799 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9800 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9801 Instead work with offsets. Use
9802 value_contents_for_printing/value_embedded_offset, rather than
9803 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9804 and use value_from_pointer to extract a target pointer, rather
9805 than value_from_longest.
9806 (print_variant_part): Add `offset' parameter. Replace
9807 `outer_valaddr' parameter by a new `outer_offset' parameter.
9808 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9809 (ada_value_print): Use
9810 value_contents_for_printing/value_embedded_offset, rather than
9812 (print_record): Add `offset' parameter, and adjust to pass it
9814 (print_field_values): Add `offset' parameter. Replace
9815 `outer_valaddr' parameter by a new `outer_offset' parameter.
9816 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9817 Use value_contents_for_printing/value_embedded_offset, rather than
9819 * d-valprint.c (dynamic_array_type): Use
9820 value_contents_for_printing/value_embedded_offset, rather than
9822 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9823 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9824 (java_print_value_fields): Take `offset' into account. Don't
9825 re-adjust `valaddr'. Instead pass down adjusted offsets.
9826 (java_val_print): Take `embedded_offset' into account. Pass it to
9827 java_print_value_fields.
9828 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9829 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9830 down adjusted offsets.
9831 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9832 (f_val_print): Take `embedded_offset' into account.
9834 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9836 * inflow.c: Include "gdbcmd.h".
9837 (interactive_mode): New static global, moved here from top.c.
9838 (show_interactive_mode): New function, moved here from top.c.
9839 use gdb_has_a_terminal instead of input_from_terminal_p to
9840 determine the current mode.
9841 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9843 (_initialize_inflow): Add the "set/show interactive-mode"
9844 commands. Moved here from top.c, after having adjusted slightly
9846 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9848 (input_from_terminal_p): Remove handling of "interactive-mode"
9849 setting, moved to infow.c.
9850 (init_main): Remove creation of the "set/show interactive-mode"
9851 commands, moved to inflow.c.
9853 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9855 * NEWS: Add entry for native ia64-hpux support.
9857 2011-01-19 Tom Tromey <tromey@redhat.com>
9860 * thread.c (free_thread): Free 'name'.
9861 (print_thread_info): Emit thread name. Change CLI output.
9862 (thread_name_command): New function.
9863 (do_captured_thread_select): Emit newline.
9864 (_initialize_thread): Register 'thread name' command.
9865 * target.h (struct target_ops) <to_thread_name>: New field.
9866 (target_thread_name): New macro.
9867 * target.c (update_current_target): Handle to_thread_name.
9868 * python/py-infthread.c (thpy_get_name): New function.
9869 (thpy_set_name): Likewise.
9870 (thread_object_getset): Add "name".
9871 * linux-nat.c (linux_nat_thread_name): New function.
9872 (linux_nat_add_target): Set to_thread_name.
9873 * gdbthread.h (struct thread_info) <name>: New field.
9875 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9877 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9878 (ada_val_print_1): Likewise.
9880 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9882 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9883 upper limit address is not greater than the function end address
9884 when the upper limit could not be computed using the debugging
9887 2011-01-17 Tom Tromey <tromey@redhat.com>
9889 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9891 * utils.c: Include gdb_regex.h.
9892 (do_regfree_cleanup): New function.
9893 (make_regfree_cleanup): Likewise.
9894 (get_regcomp_error): Likewise.
9895 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9897 2011-01-17 Tom Tromey <tromey@redhat.com>
9899 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9902 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9904 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9905 for internal variables.
9906 (last_was_structop): New static variable.
9907 (COMPLETE): New token.
9908 (field_exp): New rule to group all '.' suffix handling.
9909 Add mark_struct_expression calls when approriate to be able
9910 to correctly find fields for completion.
9911 (yylex): Adapt to handle field completion and set INTVAR when
9914 2011-01-14 Yao Qi <yao@codesourcery.com>
9916 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9917 save_reggroup, restore_reggroup and all_reggroup.
9919 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9921 * ada-valprint. (ada_printchar): Use the correct type length
9922 in call to ada_emit_char.
9923 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9925 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9927 * solib-som.h (hpux_major_release): Declare variable here.
9928 * solib-som.c: Remove <sys/utsname.h> header.
9929 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9930 (hpux_major_release): Make global, change default value to
9931 DEFAULT_HPUX_MAJOR_RELEASE.
9932 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9933 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9934 Add "solib-som.h" header.
9935 (set_hpux_major_release): New function.
9936 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9938 2011-01-14 Mike Frysinger <vapier@gentoo.org>
9940 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9942 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9944 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9945 new-line at end of warning message.
9946 (ia64_hpux_store_register): Remove trailing new-line at end of
9948 * ia64-hpux-tdep.c: Rephrase comment.
9949 * solib-ia64-hpux.c (struct dld_info): Change type of field
9950 dld_flags from "long long" to ULONGEST.
9952 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9954 * target.h (deprecated_child_ops): Delete declaration.
9955 * target.c (deprecated_child_ops): Delete definition.
9957 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9959 * Makefile.in (hpux-thread.o): Delete rule.
9960 * configure.ac: Don't check for HPUX DCE threads support.
9961 * configure, config.in: Regenerate.
9962 * hppa-hpux-nat.c (child_suppress_run): Delete.
9963 (hppa_hpux_child_can_run): Delete.
9964 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9965 * hpux-thread.c: Delete.
9967 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9969 * hpux-thread.c (hpux_pid_to_str): Delete.
9971 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9973 * ada-valprint.c (ada_emit_char): Remove strange code.
9974 Check that c is <= UCHAR_MAX before passing it to isascii.
9975 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9977 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9979 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9980 to the case where instream is stdin.
9982 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9984 * ia64-tdep.h (struct regcache): Forward declare.
9985 (struct ia64_infcall_ops): New struct type.
9986 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9988 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9989 Renames ia64_find_global_pointer.
9990 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9991 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9992 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9994 (ia64_infcall_ops): New static global constant.
9995 (ia64_gdbarch_init): Set tdep->infcall_ops.
9996 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9997 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9998 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9999 (ia64_hpux_dummy_code): New static global constant.
10000 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10001 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10002 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10004 (ia64_hpux_infcall_ops): New static global constant.
10005 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10006 for inferior function calls to work properly on ia64-hpux.
10008 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10010 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10011 * ia64-tdep.h (struct frame_info): forward declaration.
10012 (struct gdbarch_tdep): Add field size_of_register_frame.
10013 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10014 to determine the size of the register frame.
10015 (ia64_size_of_register_frame): New function.
10016 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10017 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10018 (IA64_HPUX_UREG_REASON): New macro.
10019 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10021 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10022 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10023 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10026 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10028 Add support for ia64-hpux.
10029 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10030 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10032 * configure.host: Add handling for ia64-hpux hosts. Add associated
10034 * configure.tgt: Add handling for ia64-hpux targets.
10035 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10036 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10037 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10039 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10041 [ttrace] Compute thread list immediately after attach.
10042 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10044 (inf_ttrace_attach): Use it.
10046 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10048 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10049 if we could not determine the frame's function address. Instead,
10050 use the frame's PC, and then continue.
10052 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10054 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10055 not already defined.
10057 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10059 * ia64-tdep.c (ia64_struct_type_p): New function.
10060 (ia64_extract_return_value): Handle integral values that are
10061 less than 8 bytes long.
10062 (ia64_push_dummy_call): Likewise.
10064 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10066 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10067 floatformat_ia64_ext.
10068 (floatformat_ia64_ext_big): New static const.
10069 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10071 2011-01-12 Tom Tromey <tromey@redhat.com>
10073 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10075 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10076 (mi_cmd_thread_list_ids): Likewise.
10077 (mi_cmd_data_list_changed_registers): Likewise.
10078 (mi_cmd_data_list_register_values): Likewise.
10079 (mi_cmd_data_write_register_values): Likewise.
10080 (mi_cmd_data_evaluate_expression): Likewise.
10081 (mi_cmd_data_read_memory): Likewise.
10082 (mi_cmd_data_read_memory_bytes): Likewise.
10083 (mi_cmd_data_write_memory): Likewise.
10084 (mi_cmd_enable_timings): Likewise.
10085 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10086 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10087 (mi_cmd_var_delete): Likewise.
10088 (mi_cmd_var_set_format): Likewise.
10089 (mi_cmd_var_show_format): Likewise.
10090 (mi_cmd_var_info_num_children): Likewise.
10091 (mi_cmd_var_list_children): Likewise.
10092 (mi_cmd_var_info_type): Likewise.
10093 (mi_cmd_var_info_expression): Likewise.
10094 (mi_cmd_var_show_attributes): Likewise.
10095 (mi_cmd_var_assign): Likewise.
10096 (mi_cmd_var_update): Likewise.
10097 (mi_cmd_enable_pretty_printing): Likewise.
10098 (mi_cmd_var_set_update_range): Likewise.
10099 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10101 (mi_cmd_target_file_put): Likewise.
10102 (mi_cmd_target_file_delete): Likewise.
10103 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10105 (mi_cmd_stack_info_depth): Likewise.
10106 (mi_cmd_stack_list_locals): Likewise.
10107 (mi_cmd_stack_list_args): Likewise.
10108 (mi_cmd_stack_select_frame): Likewise.
10109 (mi_cmd_stack_select_frame): Likewise.
10110 (mi_cmd_stack_info_frame): Likewise.
10111 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10113 (mi_cmd_file_list_exec_source_files): Likewise.
10114 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10115 (mi_cmd_env_cd): Likewise.
10116 (mi_cmd_env_path): Likewise.
10117 (mi_cmd_env_dir): Likewise.
10118 (mi_cmd_inferior_tty_show): Likewise.
10119 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10120 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10121 (mi_cmd_break_watch): Likewise.
10123 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10125 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10126 (ppc_linux_insert_hw_breakpoint): Likewise.
10127 (ppc_linux_remove_hw_breakpoint): Likewise.
10128 (ppc_linux_insert_watchpoint): Likewise.
10130 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10131 Jan Kratochvil <jan.kratochvil@redhat.com>
10133 PR fortran/11104 and DWARF unbound arrays detection.
10134 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10135 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10136 unspecified upper bound.
10137 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10138 variables array_size_array, tmp_type and offset_item. New variable
10139 array. Remove call to f77_get_upperbound. New variables array_type
10140 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10141 the final call to deprecated_set_value_type.
10143 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10145 Make value allocations more lazy.
10146 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10147 instead of allocate_value and set_value_lazy when possible.
10148 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10149 instead of allocate_value and set_value_lazy.
10150 * findvar.c (value_of_register_lazy): Likewise.
10151 (read_var_value): Remove V preallocation, call just check_typedef in
10152 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10153 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10154 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10155 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10156 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10157 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10158 the end, remove set_value_lazy there.
10159 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10160 instead of allocate_value and set_value_lazy when possible.
10161 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10162 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10163 of allocate_value and set_value_lazy.
10164 (value_from_contents_and_address): Use allocate_value_lazy instead of
10165 allocate_value and set_value_lazy when possible.
10167 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10169 * disasm.c (dump_insns): Support dumping opcodes for MI.
10170 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10171 dumping of instruction opcodes.
10173 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10175 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10178 2011-01-11 Tom Tromey <tromey@redhat.com>
10180 * thread.c (do_captured_thread_select): Emit newline before
10183 2011-01-11 Michael Snyder <msnyder@vmware.com>
10185 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10186 * score-tdep.c: Ditto.
10187 * score-tdep.h: Ditto.
10188 * ser-base.c: Ditto.
10189 * ser-go32.c: Ditto.
10192 * ser-mingw.c: Ditto.
10193 * ser-pipe.c: Ditto.
10194 * ser-tcp.c: Ditto.
10195 * ser-unix.c: Ditto.
10196 * sh64-tdep.c: Ditto.
10197 * shnbsd-nat.c: Ditto.
10198 * sh-tdep.c: Ditto.
10199 * sh-tdep.h: Ditto.
10201 * solib-darwin.c: Ditto.
10202 * solib-frv.c: Ditto.
10204 * solib-irix.c: Ditto.
10205 * solib-osf.c: Ditto.
10206 * solib-pa64.c: Ditto.
10207 * solib-som.c: Ditto.
10208 * solib-spu.c: Ditto.
10209 * solib-sunos.c: Ditto.
10210 * solib-svr4.c: Ditto.
10212 * sol-thread.c: Ditto.
10213 * somread.c: Ditto.
10216 * sparc64-linux-tdep.c: Ditto.
10217 * sparc64-tdep.c: Ditto.
10218 * sparc-linux-nat.c: Ditto.
10219 * sparc-linux-tdep.c: Ditto.
10220 * sparc-sol2-nat.c: Ditto.
10221 * sparc-sol2-tdep.c: Ditto.
10222 * sparc-tdep.c: Ditto.
10223 * sparc-tdep.h: Ditto.
10224 * spu-tdep.c: Ditto.
10225 * stabsread.c: Ditto.
10226 * stabsread.h: Ditto.
10228 * symfile.c: Ditto.
10229 * symfile.h: Ditto.
10230 * symmisc.c: Ditto.
10234 * target-descriptions.c: Ditto.
10235 * target-descriptions.h: Ditto.
10237 * target-memory.c: Ditto.
10238 * terminal.h: Ditto.
10241 * tracepoint.c: Ditto.
10242 * tracepoint.h: Ditto.
10243 * trad-frame.h: Ditto.
10244 * typeprint.c: Ditto.
10246 2011-01-11 Michael Snyder <msnyder@vmware.com>
10248 * ui-file.c: Comment cleanup, mostly periods and spaces.
10249 * ui-file.h: Ditto.
10253 * v850-tdep.c: Ditto.
10254 * valarith.c: Ditto.
10256 * valprint.c: Ditto.
10257 * valprint.h: Ditto.
10262 * vax-tdep.c: Ditto.
10265 * version.h: Ditto.
10266 * windows-nat.c: Ditto.
10267 * windows-tdep.c: Ditto.
10268 * xcoffread.c: Ditto.
10269 * xcoffsolib.c: Ditto.
10270 * xml-support.c: Ditto.
10271 * xstormy16-tdep.c: Ditto.
10272 * xtensa-tdep.c: Ditto.
10273 * xtensa-tdep.h: Ditto.
10275 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10277 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10278 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10280 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10281 Thiago Jung Bauermann <bauerman@br.ibm.com>
10283 Implement support for PowerPC BookE ranged watchpoints.
10285 (struct breakpoint_ops) <resources_needed>: New method.
10286 Initialize to NULL in all existing breakpoint_ops instances.
10287 (struct breakpoint) <exact>: New field.
10288 (target_exact_watchpoints): Declare external global.
10289 * breakpoint.c (target_exact_watchpoints): New global flag.
10290 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10291 b->enable_state to bp_enabled before calling
10292 hw_watchpoint_used_count.
10293 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10294 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10296 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10297 if the watchpoint is exact.
10298 (resources_needed_watchpoint): New function.
10299 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10300 (watch_command_1): Set b->exact if the user asked for an exact
10301 watchpoint and one can be set.
10302 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10303 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10304 the user asks for an exact watchpoint and one can be set. Return
10305 number of needed debug registers to watch the expression.
10306 * gdbtypes.c (is_scalar_type): New function, based on
10307 valprint.c:scalar_type_p.
10308 (is_scalar_type_recursive): New function.
10309 * gdbtypes.h (is_scalar_type_recursive): Declare.
10310 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10311 handle regions when ranged watchpoints are available.
10312 (create_watchpoint_request): New function.
10313 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10314 create_watchpoint_request.
10315 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10316 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10317 `set powerpc' and `show powerpc' commands.
10318 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10319 Mention documentation comment in the target macro.
10320 (target_region_ok_for_hw_watchpoint): Document return value.
10322 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10324 * breakpoint.c (update_watchpoint): Decide on using a software or
10325 hardware watchpoint after the bp_locations are created.
10327 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10329 Convert hardware watchpoints to use breakpoint_ops.
10330 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10331 <insert_location>: ... this. Return int instead of void.
10332 Accept pointer to struct bp_location instead of pointer to
10333 struct breakpoint. Adapt all implementations.
10334 (breakpoint_ops) <remove>: Rename to...
10335 <remove_location>: ... this. Accept pointer to struct bp_location
10336 instead of pointer to struct breakpoint. Adapt all implementations.
10337 * breakpoint.c (insert_catchpoint): Delete function.
10338 (insert_bp_location): Call the watchpoint or catchpoint's
10339 breakpoint_ops.insert method.
10340 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10341 breakpoint_ops.remove method.
10342 (insert_watchpoint, remove_watchpoint): New functions.
10343 (watchpoint_breakpoint_ops): New structure.
10344 (watch_command_1): Initialize the OPS field.
10345 * inf-child.c (inf_child_insert_fork_catchpoint)
10346 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10347 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10348 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10350 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10351 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10352 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10353 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10354 * target.c (update_current_target): Change default implementation of
10355 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10356 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10357 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10358 to_set_syscall_catchpoint to return_one.
10359 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10360 (debug_to_insert_exec_catchpoint): Report return value.
10361 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10362 (to_insert_exec_catchpoint): Change declaration to return int instead
10365 2011-01-11 Michael Snyder <msnyder@vmware.com>
10367 * arm-tdep.c: Internationalization.
10369 * charset.c: Ditto.
10370 * fork-child.c: Ditto.
10371 * nto-procfs.c: Ditto.
10372 * ppc-sysv-tdep.c: Ditto.
10374 * remote-mips.c: Ditto.
10376 * rs6000-nat.c: Ditto.
10377 * rs6000-tdep.c: Ditto.
10381 * xml-support.c: Ditto.
10382 * mi/mi-cmd-break.c: Ditto.
10383 * mi/mi-cmd-var.c: Ditto.
10384 * mi/mi-interp.c: Ditto.
10385 * mi/mi-main.c: Ditto.
10387 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10389 * remote-sim.c (gdbsim_store_register): Update API to
10390 sim_store_register to check more error conditions.
10392 2011-01-10 Michael Snyder <msnyder@vmware.com>
10394 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10395 * nto-tdep.c: Ditto.
10396 * nto-tdep.h: Ditto.
10397 * objc-exp.y: Ditto.
10398 * objc-lang.c: Ditto.
10399 * objfiles.c: Ditto.
10400 * objfiles.h: Ditto.
10401 * observer.c: Ditto.
10402 * opencl-lang.c: Ditto.
10405 * parser-defs.h: Ditto.
10408 * posix-hdep.c: Ditto.
10409 * ppcbug-rom.c: Ditto.
10410 * ppc-linux-nat.c: Ditto.
10411 * ppc-linux-tdep.c: Ditto.
10412 * ppc-linux-tdep.h: Ditto.
10413 * ppcnbsd-tdep.c: Ditto.
10414 * ppcobsd-tdep.c: Ditto.
10415 * ppcobsd-tdep.h: Ditto.
10416 * ppc-sysv-tdep.c: Ditto.
10417 * ppc-tdep.h: Ditto.
10418 * printcmd.c: Ditto.
10419 * proc-abi.c: Ditto.
10420 * proc-flags.c: Ditto.
10422 * proc-utils.h: Ditto.
10423 * progspace.h: Ditto.
10424 * prologue-value.c: Ditto.
10425 * prologue-value.h: Ditto.
10426 * psympriv.h: Ditto.
10427 * psymtab.c: Ditto.
10428 * p-typeprint.c: Ditto.
10429 * p-valprint.c: Ditto.
10430 * ravenscar-sparc-thread.c: Ditto.
10431 * ravenscar-thread.c: Ditto.
10432 * ravenscar-thread.h: Ditto.
10434 * regcache.c: Ditto.
10435 * regcache.h: Ditto.
10437 * remote-fileio.c: Ditto.
10438 * remote-fileio.h: Ditto.
10440 * remote-m32r-sdi.c: Ditto.
10441 * remote-mips.c: Ditto.
10442 * remote-sim.c: Ditto.
10443 * rs6000-aix-tdep.c: Ditto.
10444 * rs6000-nat.c: Ditto.
10445 * rs6000-tdep.c: Ditto.
10447 2011-01-10 Michael Snyder <msnyder@vmware.com>
10449 * charset.c (validate): Internationalization.
10450 * coffread.c (read_one_sym): Ditto.
10451 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10452 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10453 * inflow.c (new_tty): Ditto.
10454 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10455 * m32c-tdep.c (m32c_return_value): Ditto.
10456 * mep-tdep.c (mep_store_return_value): Ditto.
10457 * score-tdep.c (score7_fetch_insn): Ditto.
10458 * ser-mingw.c (pipe_windows_open): Ditto.
10459 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10460 * spu-tdep.c (spu_register_type): Ditto.
10461 * tracepoint.c (trace_find_command): Ditto.
10462 * valarith.c (value_pos): Ditto.
10464 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10466 * ada-valprint.c (printstr): Minor comment reformatting.
10468 2011-01-08 Michael Snyder <msnyder@vmware.com>
10470 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10473 2011-01-08 Michael Snyder <msnyder@vmware.com>
10475 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10476 * hppa-hpux-tdep.c: Ditto.
10477 * hppa-linux-nat.c: Ditto.
10478 * hppa-linux-tdep.c: Ditto.
10479 * hppanbsd-tdep.c: Ditto.
10480 * hppa-tdep.c: Ditto.
10481 * hppa-tdep.h: Ditto.
10482 * hpux-thread.c: Ditto.
10483 * i386-cygwin-tdep.c: Ditto.
10484 * i386-darwin-nat.c: Ditto.
10485 * i386gnu-nat.c: Ditto.
10486 * i386-linux-nat.c: Ditto.
10487 * i386-linux-tdep.c: Ditto.
10488 * i386-nat.c: Ditto.
10489 * i386-nat.h: Ditto.
10490 * i386nbsd-tdep.c: Ditto.
10491 * i386-sol2-nat.c: Ditto.
10492 * i386-stub.c: Ditto.
10493 * i386-tdep.c: Ditto.
10494 * i386-tdep.h: Ditto.
10495 * i387-tdep.c: Ditto.
10496 * ia64-linux-nat.c: Ditto.
10497 * ia64-linux-tdep.c: Ditto.
10498 * ia64-tdep.c: Ditto.
10499 * infcall.c: Ditto.
10500 * infcall.h: Ditto.
10502 * inferior.c: Ditto.
10503 * inferior.h: Ditto.
10504 * infloop.c: Ditto.
10507 * interps.c: Ditto.
10508 * interps.h: Ditto.
10509 * iq2000-tdep.c: Ditto.
10510 * irix5-nat.c: Ditto.
10514 * jv-lang.c: Ditto.
10515 * jv-lang.h: Ditto.
10516 * jv-typeprint.c: Ditto.
10517 * jv-valprint.c: Ditto.
10518 * language.c: Ditto.
10519 * language.h: Ditto.
10520 * linespec.c: Ditto.
10521 * linux-fork.c: Ditto.
10522 * linux-nat.c: Ditto.
10523 * linux-thread-db.c: Ditto.
10524 * lm32-tdep.c: Ditto.
10526 2011-01-08 Michael Snyder <msnyder@vmware.com>
10528 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10529 * m2-lang.c: Ditto.
10530 * m2-typeprint.c: Ditto.
10531 * m2-valprint.c: Ditto.
10532 * m32c-tdep.c: Ditto.
10533 * m32r-linux-nat.c: Ditto.
10534 * m32r-rom.c: Ditto.
10535 * m32r-tdep.c: Ditto.
10536 * m32r-tdep.h: Ditto.
10537 * m68hc11-tdep.c: Ditto.
10538 * m58klinux-nat.c: Ditto.
10539 * m68k-tdep.c: Ditto.
10540 * m88k-tdep.c: Ditto.
10541 * m88k-tdep.h: Ditto.
10542 * machoread.c: Ditto.
10543 * macrocmd.c: Ditto.
10544 * macroexp.c: Ditto.
10545 * macrotab.c: Ditto.
10548 * mdebugread.c: Ditto.
10549 * mdebugread.h: Ditto.
10550 * memattr.c: Ditto.
10551 * memattr.h: Ditto.
10552 * memory-map.h: Ditto.
10553 * mep-tdep.c: Ditto.
10554 * microblaze-rom.c: Ditto.
10555 * microblaze-tdep.c: Ditto.
10556 * minsyms.c: Ditto.
10557 * mips-irix-tdep.c: Ditto.
10558 * mips-linux-nat.c: Ditto.
10559 * mips-linux-tdep.c: Ditto.
10560 * mips-linux-tdep.h: Ditto.
10561 * mipsnbsd-nat.c: Ditto.
10562 * mipsnbsd-tdep.c: Ditto.
10563 * mipsread.c: Ditto.
10564 * mips-tdep.c: Ditto.
10565 * mips-tdep.h: Ditto.
10566 * mn10300-linux-tdep.c: Ditto.
10567 * mn10300-tdep.c: Ditto.
10568 * mn10300-tdep.h: Ditto.
10569 * monitor.c: Ditto.
10570 * monitor.h: Ditto.
10571 * moxie-tdep.c: Ditto.
10572 * moxie-tdep.h: Ditto.
10573 * mt-tdep.c: Ditto.
10575 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10577 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10579 2011-01-08 Robert Millan <rmh@gnu.org>
10581 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10583 2011-01-07 Michael Snyder <msnyder@vmware.com>
10585 * charset.c (_initialize_charset): Fix typo in string.
10587 2011-01-07 Michael Snyder <msnyder@vmware.com>
10589 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10591 * tui/tui-layout.c (tui_set_layout_for_display_command):
10592 Split line so that operator goes to beginning of line.
10593 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10594 assignment out of if statement.
10596 2011-01-07 Michael Snyder <msnyder@vmware.com>
10598 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10599 * ada-lang.h: Ditto.
10600 * ada-tasks.c: Ditto.
10601 * ada-valprint.c: Ditto.
10602 * aix-threads.c: Ditto.
10603 * alpha-linux-nat.c: Ditto.
10604 * alpha-linux-tdep.c: Ditto.
10605 * alpha-mdebug-tdep.c: Ditto.
10606 * alpha-nat.c: Ditto.
10607 * alpha-osf1-tdep.c: Ditto.
10608 * alpha-tdep.c: Ditto.
10609 * alphabsd-nat.c: Ditto.
10610 * alphabsd-tdep.c: Ditto.
10611 * amd64-darwin-tdep.c: Ditto.
10612 * amd64-linux-nat.c: Ditto.
10613 * amd64-linux-tdep.c: Ditto.
10614 * amd64-sol2-tdep.c: Ditto.
10615 * amd64-tdep.c: Ditto.
10616 * amd64-fbsd-tdep.c: Ditto.
10617 * amd64-nbsd-tdep.c: Ditto.
10618 * amd64-obsd-tdep.c: Ditto.
10619 * amd64-linux-nat.c: Ditto.
10620 * amd64-linux-tdep.c: Ditto.
10621 * arm-tdep.c: Ditto.
10622 * arm-tdep.h: Ditto.
10623 * armnbsd-nat.c: Ditto.
10624 * avr-tdep.c: Ditto.
10625 * bfin-tdep.c: Ditto.
10626 * bsd-kvm.c: Ditto.
10627 * c-typeprintc: Ditto.
10628 * c-valprint.c: Ditto.
10629 * coff-pe-read.h: Ditto.
10630 * coffreead.c: Ditto.
10631 * cris-tdep.c: Ditto.
10633 * darwin-nat-info.c: Ditto.
10634 * darwin-nat.c: Ditto.
10635 * dbug-rom.c: Ditto.
10636 * dbxread.c: Ditto.
10639 * dec-thread.c: Ditto.
10641 * demangle.c: Ditto.
10642 * dicos-tdep.c: Ditto.
10643 * dictionary.c: Ditto.
10644 * dictionary.h: Ditto.
10645 * dink32-rom.c: Ditto.
10647 * doublest.c: Ditto.
10649 * dummy-frame.c: Ditto.
10650 * dwarf2-frame.c: Ditto.
10651 * dwarf2expr.c: Ditto.
10652 * dwarf2loc.c: Ditto.
10653 * dwarf2read.c: Ditto.
10654 * elfread.c: Ditto.
10655 * environ.c: Ditto.
10657 * event-top.h: Ditto.
10658 * exceptions.c: Ditto.
10659 * exceptions.h: Ditto.
10661 * expprint.c: Ditto.
10662 * expression.h: Ditto.
10666 * f-typeprint.c: Ditto.
10667 * f-valprint.c: Ditto.
10668 * fbsd-nat.c: Ditto.
10669 * findvar.c: Ditto.
10670 * fork-child.c: Ditto.
10673 * frv-linux-tdep.c: Ditto.
10674 * frv-tdep.c: Ditto.
10676 * gdb-stabs.h: Ditto.
10677 * gdb_assert.h: Ditto.
10678 * gdb_string.h: Ditto.
10679 * gdb_thread_db.h: Ditto.
10680 * gdb_wait.h: Ditto.
10681 * gdbarch.sh: Ditto.
10682 * gdbcore.h: Ditto.
10683 * gdbthread.h: Ditto.
10684 * gdbtypes.c: Ditto.
10685 * gdbtypes.h: Ditto.
10686 * gnu-nat.c: Ditto.
10687 * gnu-nat.h: Ditto.
10688 * gnu-v2-abi.c: Ditto.
10689 * gnu-v3-abi.c: Ditto.
10690 * go32-nat.c: Ditto.
10691 * gdbarch.c: Regenerate.
10692 * gdbarch.h: Regenerate.
10694 2011-01-07 Michael Snyder <msnyder@vmware.com>
10696 * ax-gdb.c: Adjust some long output strings.
10697 * breakpoint.c: Ditto.
10698 * charset.c: Ditto.
10700 * infcall.c: Ditto.
10702 * linux-nat.c: Ditto.
10703 * solib-pa64.c: Ditto.
10704 * solib-som.c: Ditto.
10706 2011-01-06 Tom Tromey <tromey@redhat.com>
10710 * python/python.c (GdbMethods): Add "newest_frame" method.
10711 * python/python-internal.h (gdbpy_newest_frame): Declare.
10712 * python/py-frame.c (gdbpy_newest_frame): New function.
10714 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10716 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10717 * jit.c (jit_debug): New variable.
10718 (show_jit_debug): New function.
10719 (struct target_buffer): Use ULONGEST.
10720 (bfd_open_from_target_memory): Likewise.
10721 (jit_register_code, jit_inferior_init): Add debug output.
10722 (_initialize_jit): Register "debug jit" command.
10724 2011-01-06 Tom Tromey <tromey@redhat.com>
10726 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10727 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10730 2011-01-06 Tom Tromey <tromey@redhat.com>
10732 * python/py-frame.c (frapy_block): Use get_frame_block.
10734 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10736 Do not stop on SIGPRIO signals by default
10737 * infrun.c (_initialize_infrun): Unset signal_stop and
10738 signal_print for TARGET_SIGNAL_PRIO.
10740 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10742 * ada-tasks.c: Fix style violation in comment.
10744 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10746 * linespec.c (decode_compound, find_method): Remove trailing \n
10747 at end of error string.
10748 * solib-irix.c (irix_current_sos): Likewise.
10749 * varobj.c (uninstall_variable): Likewise.
10751 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10753 * copyright.py: New script.
10754 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10755 Launch emacs without exec'ing. Call copyright.py afterwards.
10757 2011-01-05 Michael Snyder <msnyder@vmware.com>
10759 * addrmap.c: Shorten lines of >= 80 columns.
10760 * arch-utils.c: Ditto.
10761 * arch-utils.h: Ditto.
10763 * ax-general.c: Ditto.
10765 * blockframe.c: Ditto.
10766 * breakpoint.c: Ditto.
10767 * buildsym.c: Ditto.
10769 * c-typeprint.c: Ditto.
10770 * charset.c: Ditto.
10771 * coffread.c: Ditto.
10772 * command.h: Ditto.
10773 * corelow.c: Ditto.
10775 * cp-namespace.c: Ditto.
10776 * cp-support.c: Ditto.
10777 * dbug-rom.c: Ditto.
10778 * dbxread.c: Ditto.
10782 * dictionary.c: Ditto.
10784 * doublest.c: Ditto.
10785 * dwarf2-frame.c: Ditto.
10786 * dwarf2expr.c: Ditto.
10787 * dwarf2loc.c: Ditto.
10788 * dwarf2read.c: Ditto.
10789 * elfread.c: Ditto.
10791 * event-loop.c: Ditto.
10792 * event-loop.h: Ditto.
10793 * exceptions.h: Ditto.
10795 * expprint.c: Ditto.
10796 * expression.h: Ditto.
10798 * f-valprint.c: Ditto.
10799 * findcmd.c: Ditto.
10800 * frame-base.c: Ditto.
10801 * frame-unwind.c: Ditto.
10802 * frame-unwind.h: Ditto.
10806 * gdb-stabs.h: Ditto.
10807 * gdb_assert.h: Ditto.
10808 * gdb_dirent.h: Ditto.
10809 * gdb_obstack.h: Ditto.
10810 * gdbcore.h: Ditto.
10811 * gdbtypes.c: Ditto.
10812 * gdbtypes.h: Ditto.
10813 * inf-ttrace.c: Ditto.
10814 * infcall.c: Ditto.
10818 * inline-frame.h: Ditto.
10819 * language.c: Ditto.
10820 * language.h: Ditto.
10821 * libunwind-frame.c: Ditto.
10822 * libunwind-frame.h: Ditto.
10823 * linespec.c: Ditto.
10824 * linux-nat.c: Ditto.
10825 * linux-nat.h: Ditto.
10826 * linux-thread-db.c: Ditto.
10827 * machoread.c: Ditto.
10828 * macroexp.c: Ditto.
10829 * macrotab.c: Ditto.
10832 * mdebugread.c: Ditto.
10833 * memattr.c: Ditto.
10834 * minsyms.c: Ditto.
10835 * monitor.c: Ditto.
10836 * monitor.h: Ditto.
10837 * objfiles.c: Ditto.
10838 * objfiles.h: Ditto.
10840 * p-typeprint.c: Ditto.
10841 * p-valprint.c: Ditto.
10843 * printcmd.c: Ditto.
10844 * proc-events.c: Ditto.
10846 * progspace.c: Ditto.
10847 * progspace.h: Ditto.
10848 * psympriv.h: Ditto.
10849 * psymtab.c: Ditto.
10851 * regcache.c: Ditto.
10852 * regcache.h: Ditto.
10853 * remote-fileio.c: Ditto.
10855 * ser-mingw.c: Ditto.
10856 * ser-tcp.c: Ditto.
10857 * ser-unix.c: Ditto.
10860 * solib-frv.c: Ditto.
10861 * solib-irix.c: Ditto.
10862 * solib-osf.c: Ditto.
10863 * solib-pa64.c: Ditto.
10864 * solib-som.c: Ditto.
10865 * solib-sunos.c: Ditto.
10866 * solib-svr4.c: Ditto.
10867 * solib-target.c: Ditto.
10869 * somread.c: Ditto.
10871 * stabsread.c: Ditto.
10872 * stabsread.c: Ditto.
10875 * symfile-mem.c: Ditto.
10876 * symfile.c: Ditto.
10877 * symfile.h: Ditto.
10878 * symmisc.c: Ditto.
10881 * target-descriptions.c: Ditto.
10882 * target-memory.c: Ditto.
10885 * terminal.h: Ditto.
10888 * tracepoint.c: Ditto.
10889 * tracepoint.h: Ditto.
10890 * ui-file.c: Ditto.
10891 * ui-file.h: Ditto.
10893 * user-regs.c: Ditto.
10894 * user-regs.h: Ditto.
10896 * valarith.c: Ditto.
10898 * valprint.c: Ditto.
10899 * valprint.h: Ditto.
10904 * xcoffread.c: Ditto.
10905 * xcoffsolib.c: Ditto.
10906 * xcoffsolib.h: Ditto.
10907 * xml-syscall.c: Ditto.
10908 * xml-tdesc.c: Ditto.
10910 2011-01-05 Michael Snyder <msnyder@vmware.com>
10912 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10913 * cli/cli-decode.c: Ditto.
10914 * cli/cli-dump.c: Ditto.
10915 * cli/cli-logging.c: Ditto.
10916 * cli/cli-script.c: Ditto.
10917 * cli/cli-setshow.c: Ditto.
10918 * common/signals.c: Ditto.
10919 * mi/mi-cmd-break.c: Ditto.
10920 * mi/mi-cmd-disas.c: Ditto.
10921 * mi/mi-cmd-stack.c: Ditto.
10922 * mi/mi-cmd-var.c: Ditto.
10923 * mi/mi-cmds.c: Ditto.
10924 * mi/mi-common.h: Ditto.
10925 * mi/mi-console.c: Ditto.
10926 * mi/mi-interp.c: Ditto.
10927 * mi/mi-main.c: Ditto.
10928 * osf-share/cma_attr.c: Ditto.
10929 * osf-share/cma_deb_core.h: Ditto.
10930 * osf-share/cma_debug_client.h: Ditto.
10931 * osf-share/cma_handle.h: Ditto.
10932 * osf-share/cma_mutex.h: Ditto.
10933 * osf-share/cma_stack_int.h: Ditto.
10934 * osf-share/cma_tcb_defs.h: Ditto.
10935 * python/py-auto-load.c: Ditto.
10936 * python/py-breakpoint.c: Ditto.
10937 * python/py-cmd.c: Ditto.
10938 * python/py-frame.c: Ditto.
10939 * python/py-objfile.c: Ditto.
10940 * python/py-param.c: Ditto.
10941 * python/py-progspace.c: Ditto.
10942 * python/py-symbol.c: Ditto.
10943 * python/py-value.c: Ditto.
10944 * python/python-internal.h: Ditto.
10945 * python/python.c: Ditto.
10946 * tui/tui-data.c: Ditto.
10947 * tui/tui-disasm.c: Ditto.
10948 * tui/tui-hooks.c: Ditto.
10949 * tui/tui-io.c: Ditto.
10950 * tui/tui-layout.c: Ditto.
10951 * tui/tui-regs.c: Ditto.
10952 * tui/tui-source.c: Ditto.
10953 * tui/tui-stack.c: Ditto.
10954 * tui/tui-win.c: Ditto.
10955 * tui/tui-windata.c: Ditto.
10956 * tui/tui-winsource.c: Ditto.
10958 2011-01-05 Joel Brobecker <brobecker@adacore.com>
10960 * configure.ac, gdb.1: Copyright year update.
10962 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10964 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10965 this_pc_in_block, morestack_msym and morestack_name. Check for
10966 "__morestack" minimal symbol there.
10968 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10970 * symfile.c (find_sym_fns): Add call to dont_repeat.
10972 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10974 Copyright year update in most files (performed by copyright.sh).
10976 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10978 * top.c (print_gdb_version): Update copyright year in version output.
10980 For older changes see ChangeLog-2010.
10986 version-control: never