1 2011-11-15 Doug Evans <dje@google.com>
3 * buildsym.c (add_symbol_to_list): Delete outdated comment.
5 2011-11-15 Paul Koning <paul_koning@dell.com>
7 * python/py-type.c (typy_get_composite): New function.
8 (typy_nonzero): New function.
9 (typy_values): Rename from typy_fields.
10 (typy_fields): New function.
11 (typy_length): Raise exception if not struct, union, or enum type.
12 (typy_getitem): Ditto.
13 (typy_has_key): Ditto.
14 (typy_make_iter): Ditto.
16 2011-11-15 Doug Evans <dje@google.com>
18 * NEWS: Mention new parameter basenames-may-differ.
19 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
20 ! basenames_may_differ.
21 * psymtab.c (lookup_partial_symtab): Ditto.
22 * symtab.c (lookup_symtab): Ditto.
23 (basenames_may_differ): New global.
24 (_initialize_symtab): New parameter basenames-may-differ.
25 * symtab.h (basenames_may_differ): Declare.
27 2011-11-15 Pedro Alves <pedro@codesourcery.com>
28 Luis Machado <lgustavo@codesourcery.com>
30 * auxv.c: Include observer.h.
31 (auxv_inferior_data_cleanup): New.
32 (invalidate_auxv_cache_inf): New.
33 (invalidate_auxv_cache): New.
34 (get_auxv_inferior_data): New.
35 (auxv_inferior_data): New static global.
36 (auxv_info): New structure.
37 (target_auxv_search): Use get_auxv_inferior_data instead of
38 target_read_alloc and don't free cached buffers.
39 (fprint_target_auxv): Likewise
40 (_initialize_auxv): Register per-inferior auxv cache and register
41 observers to invalidate auxv cache when needed.
43 2011-11-14 Doug Evans <dje@google.com>
45 Make "!" an alias for "shell".
47 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
48 adding "!" command, always add it.
49 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
50 command of length one.
52 2011-11-14 Stan Shebs <stan@codesourcery.com>
53 Kwok Cheung Yeung <kcy@codesourcery.com>
55 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
56 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
57 the minimum instruction size for fast tracepoints.
58 * target.h (struct target_ops): Add new method
59 to_get_min_fast_tracepoint_insn_len.
60 (target_get_min_fast_tracepoint_insn_len): New.
61 * target.c (update_current_target): Set up new target operation.
62 * remote.c (remote_write_bytes_aux): Fix typo.
63 (remote_get_min_fast_tracepoint_insn_len): New.
64 (init_remote_ops): Initialize new field.
66 2011-11-14 Tom Tromey <tromey@redhat.com>
68 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
69 (encode_actions): Likewise.
71 2011-11-14 Yao Qi <yao@codesourcery.com>
73 * remote.c (struct remote_state): <install_in_trace> new field.
74 (PACKET_InstallInTrace): New enum value.
75 (remote_install_in_trace_feature): Support InstallInTrace.
76 (remote_supports_install_in_trace): Likewise.
77 (remote_protocol_features): Likewise.
78 (_initialize_remote): Likewise.
79 (remote_can_download_tracepoint): New.
80 * target.h (struct target): New field
81 `to_can_download_tracepoint'.
82 (target_can_download_tracepoint): New macro.
83 * target.c (update_current_target): Update.
84 * breakpoint.h (struct bp_location): Add comment on field
86 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
88 (remove_breakpoints): Don't remove tracepoints.
89 (tracepoint_locations_match ): New.
90 (breakpoint_locations_match): Call it.
91 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
92 (download_tracepoint_locations): New.
93 (update_global_location_list): Call it.
94 * tracepoint.c (find_matching_tracepoint): Delete.
95 (find_matching_tracepoint_location): Renamed from
96 find_matching_tracepoint. Return bp_location rather than
98 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
101 2011-11-14 Yao Qi <yao@codesourcery.com>
103 * target.h (struct target): <to_download_tracepoint> Change type
104 of parameter from tracepoint to bp_location.
105 * target.c (update_current_target): Update.
106 * tracepoint.c (start_tracing): Update.
107 * remote.c (remote_download_tracepoint): Remove loop for each location
110 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
112 * i386-nat.c (i386_insert_hw_breakpoint): Call
113 i386_update_inferior_debug_regs.
114 (i386_remove_hw_breakpoint): Likewise.
116 2011-11-14 Yao Qi <yao@codesourcery.com>
118 * breakpoint.c (init_raw_breakpoint): Call
119 add_location_to_breakpoint to replace duplicated code.
120 (add_location_to_breakpoint): Adjust the breakpoint's
121 address prior to allocating a location.
123 2011-11-12 Matt Rice <ratmice@gmail.com>
125 * macrocmd.c (macro_no_macro_info): New function.
126 (macro_expand_command): Use macro_no_macro_info.
127 (macro_expand_once_command): Ditto.
128 (info_macro_command): Add argument processing,
129 move info_definitions_command here.
130 (_initialize_macrocmd): Remove info definitions command.
131 Add arguments to info macro help text.
132 * NEWS: Replace info definitions command with new info macro options.
134 2011-11-11 Keith Seitz <keiths@redhat.com>
137 * linespec.c (locate_first_half): Keep ':' if it looks
138 like it could be part of a Windows path starting with
141 2011-11-10 Pedro Alves <pedro@codesourcery.com>
143 * linux-nat.c (linux_nat_wait): Don't force waking up the event
144 loop when returning a TARGET_WAITKIND_NO_RESUMED.
146 2011-11-10 Pedro Alves <pedro@codesourcery.com>
148 * target.c (target_waitstatus_to_string): Handle
149 TARGET_WAITKIND_NO_RESUMED.
151 2011-11-10 Doug Evans <dje@google.com>
153 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
155 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
156 (map_partial_symbol_filenames): Ditto. All callers updated.
157 * psymtab.h (map_partial_symbol_filenames): Update prototype.
158 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
159 parameter need_fullname.
161 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
162 * source.c (symtab_to_fullname): Ditto.
164 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
165 * gdb-demangle.h: ... here. New file.
166 * demangle.c: #include "gdb-demangle.h".
167 (_initialize_demangler): Use initialize_file_ftype for prototype.
168 Move "set demangle" and "set asm-demangle" parameters here from utils.c
169 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
171 * utils.c: Update. #include "gdb-demangle.h".
172 * symtab.h (asm_demangle): Delete.
173 (demangle): Move declaration next to use.
174 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
175 * dwarf2read.c: #include "gdb-demangle.h".
176 * gnu-v2-abi.c: Ditto.
177 * jv-typeprint.c: Ditto.
178 * mdebugread.c: Ditto.
179 * p-typeprint.c: Ditto.
180 * stabsread.c: Ditto.
182 (asm_demangle): Delete declaration.
183 * tui/tui-stack.c: #include "gdb-demangle.h".
185 * python/py-type.c (typy_fields_items): Call check_typedef.
187 2011-11-10 Joel Brobecker <brobecker@adacore.com>
189 * findvar.c (read_frame_register_value): Read the correct bytes
190 from registers on big-endian architectures.
192 2011-11-10 Tom Tromey <tromey@redhat.com>
194 * procfs.c (load_syscalls): Make a cleanup.
195 (open_procinfo_files): fd==0 is ok.
197 2011-11-10 Joel Brobecker <brobecker@adacore.com>
199 * procfs.c (iterate_over_mappings): Call do_cleanups before
202 2011-11-09 Doug Evans <dje@google.com>
204 * gdbtypes.c (check_typedef): Document that this function can
207 2011-11-09 Tom Tromey <tromey@redhat.com>
210 * valops.c (value_full_object): Return early if real type is
211 smaller than the enclosing type.
213 2011-11-08 Yao Qi <yao@codesourcery.com>
215 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
217 2011-11-08 Meador Inge <meadori@codesourcery.com>
219 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
220 register when the frame can't be determined.
221 * arm-tdep.c (arm_analyze_prologue): Ditto.
223 2011-11-07 Stan Shebs <stan@codesourcery.com>
225 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
227 2011-11-07 Joel Brobecker <brobecker@adacore.com>
229 * infrun.c (handle_inferior_event): Minor reformatting.
231 2011-11-05 Doug Evans <dje@google.com>
233 * source.c (forget_cached_source_info_for_objfile): Move call to
234 objfile->sf->qf->forget_cached_source_info outside of
235 ALL_OBJFILE_SYMTABS loop.
236 (forget_cached_source_info): Delete unused variable `s'.
238 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
240 * i386-nat.c (dr_ref_count): Remove unused variable.
242 2011-11-05 Doug Evans <dje@google.com>
244 * main.c (captured_main): Set lim_at_start before calling
245 make_command_stats_cleanup.
247 2011-11-04 Doug Evans <dje@google.com>
249 * utils.c: #include "timeval-utils.h".
250 (cmd_stats): Rename start_time to start_cpu_time.
251 New member start_wall_time.
252 (report_command_stats): Report wall time.
253 (make_command_stats_cleanup): Record start wall time.
255 2011-11-04 Tom Tromey <tromey@redhat.com>
257 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
259 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
261 * coff-pe-read.c: Include defs.h before bfd.h.
263 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
267 * python/python.c (python_run_simple_file): Expand tilde in path.
269 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
273 * python/py-type.c (typy_lookup_type): Do not return a type in
274 an exception handler.
276 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
277 Eli Zaretskii <eliz@gnu.org>
279 * linux-nat.c (_initialize_linux_nat): Improve help
280 for `info proc stat', `info proc status', `info proc cwd',
281 `info proc cmdline' and `info proc exe'.
283 2011-11-02 Stan Shebs <stan@codesourcery.com>
285 String collection for tracepoints.
286 * NEWS: Mention string collection.
287 * common/ax.def (tracenz): New bytecode.
288 * ax-gdb.h (trace_string_kludge): Declare.
289 * ax-gdb.c: Include valprint.h and c-lang.h.
290 (trace_string_kludge): New global.
291 (gen_traced_pop): Add string case.
292 (agent_command): Add string case.
293 * tracepoint.h (decode_agent_options): Declare.
294 * tracepoint.c: Include cli-utils.h.
295 (decode_agent_options): New function.
296 (validate_actionline): Call it.
297 (encode_actions_1): Ditto.
298 * target.h (struct target_ops): New method to_supports_string_tracing.
299 (target_supports_string_tracing): New macro.
300 * target.c (update_current_target): Add to_supports_string_tracing.
301 * remote.c (struct remote_state): New field string_tracing.
302 (remote_string_tracing_feature): New function.
303 (remote_protocol_features): New feature tracenz.
304 (remote_supports_string_tracing): New function.
305 (init_remote_ops): Set to_supports_string_tracing.
307 2011-11-02 Pedro Alves <pedro@codesourcery.com>
308 Jan Kratochvil <jan.kratochvil@redhat.com>
310 * linux-nat.c: Include cli/cli-utils.h.
311 (enum info_proc_what): New.
312 (linux_nat_info_proc_cmd): Rename to ...
313 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
314 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
315 status_f and stat_f from WHAT. Throw error on extra parameters.
316 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
317 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
318 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
319 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
320 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
321 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
322 `info proc cmdline', `info proc exe' and `info proc all' as real
323 subcommands of `info proc'.
325 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
327 * Makefile.in: (SFILES): Add skip.c.
328 (HFILES_NO_SRCDIR): Add skip.h.
329 (COMMON_OBS): Add skip.o.
330 * skip.h, skip.c: New.
331 * breakpoint.h (set_default_breakpoint): Remove.
332 (get_sal_arch): Declare.
333 * breakpoint.c: Remove default_breakpoint_valid,
334 default_breakpoint_address, default_breakpoint_symtab,
335 default_breakpoint_line, default_breakpoint_pspace variables.
336 (get_sal_arch): Make public.
337 (set_default_breakpoint): Remove.
338 (parse_breakpoint_sals, create_breakpoint, clear_command,
339 decode_line_spec_1): Remove uses of default_breakpoint variables;
340 replaced with function calls into stack.c.
341 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
342 * cli/cli-cmds.c: Add skiplist.
343 (init_cmd_lists): Initialize skiplist.
344 (init_cli_cmds): Fix comment (classes of commands appear in
346 * infrun.c (handle_inferior_event): Add check that we don't step into
347 a function whose pc is marked for skip.
348 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
349 last_displayed_addr, last_displayed_symtab, last_displayed_line
351 (set_last_displayed_sal): New static function.
352 (print_frame_info): Switch call to set_default_breakpoint to call to
353 set_last_displayed_sal.
354 (clear_last_displayed_sal, last_displayed_sal_is_valid,
355 get_last_displayed_pspace, get_last_displayed_addr,
356 get_last_displayed_symtab, get_last_displayed_line,
357 get_last_displayed_sal): New public functions.
358 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
359 get_last_displayed_pspace, get_last_displayed_addr,
360 get_last_displayed_symtab, get_last_displayed_line,
361 get_last_displayed_sal): Declare.
363 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
365 * MAINTAINERS (Write After Approval): Add myself to the list.
367 2011-10-29 Yao Qi <yao@codesourcery.com>
369 * infcmd.c (disconnect_command): Call disconnect_tracing.
371 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
374 * symtab.c (skip_prologue_sal): Code reformatting.
376 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
379 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
380 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
383 2011-10-28 Pedro Alves <pedro@codesourcery.com>
385 * linux-nat.c (linux_nat_filter_event): Remove `options'
386 parameter, and dead code that used it. If we're handling a
387 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
388 in our lwp list, re-add it.
389 (check_zombie_leaders): New.
390 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
391 wait for children with WNOHANG, and always wait for all children.
392 Don't check for no resumed children upfront. Simplify wait loop.
393 Check for zombie thread group leaders after handling all wait
394 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
395 unwaited-for children left.
396 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
397 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
398 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
399 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
401 2011-10-28 Sterling Augustine <saugustine@google.com>
403 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
404 * symtab.c (free_completion_list): New function.
405 (do_free_completion_list): Likewise.
406 (default_make_symbol_completion_list_break_on): New variable
407 back_to. Call make_cleanup and discard_cleanups.
408 (make_source_files_completion_list): Likewise.
410 2011-10-28 Paul Koning <paul_koning@dell.com>
412 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
413 * NEWS: Mention deep_items.
415 2011-10-28 Alen Skondro <askondro@gmail.com>
417 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
420 2011-10-27 Meador Inge <meadori@codesourcery.com>
422 * MAINTAINERS (Write After Approval): Add myself to the list.
424 2011-10-27 Joel Brobecker <brobecker@adacore.com>
426 * value.h (read_frame_register_value): Add declaration.
427 * findvar.c (read_frame_register_value): New function.
428 (value_from_register): Use read_frame_register_value
429 instead of get_frame_register_value + value_contents_copy
430 to get value contents.
432 2011-10-27 Doug Evans <dje@google.com>
434 * cli/cli-cmds.c (source_script_with_search): Pass full path to
435 source_script_from_stream if it may have been found on the search path.
436 * python/py-auto-load.c (source_section_scripts): Pass full path to
437 source_python_script_for_objfile.
438 * python/python.c (source_python_script): Delete stream parameter.
440 (source_python_script_for_objfile): Ditto.
441 * python/python-internal.h (source_python_script_for_objfile): Update.
442 * python/python.h (source_python_script): Update.
444 2011-10-27 Tom Tromey <tromey@redhat.com>
446 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
447 (ada_sals_for_line): Remove declarations.
449 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
451 Move unwind reasons to an external .def file
452 * frame.c (frame_stop_reason_string): Rewrite using
453 unwind_stop_reasons.def.
454 * frame.h (enum unwind_stop_reason): Likewise.
455 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
456 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
457 constants for bound-checking.
458 * unwind_stop_reasons.def: New file.
459 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
460 instead of a distinct value.
462 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
466 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
467 (convert_values_to_python): Return on Python tuple allocation
468 failure. Return NULL on value conversion error.
470 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
472 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
473 (bppy_set_task): Ditto.
474 (bppy_delete_breakpoint): Ditto.
475 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
476 (gdbpy_lookup_global_symbol): Ditto.
477 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
478 * python/py-frame.c (frapy_is_valid): Ditto.
479 (frame_info_to_frame_object): Ditto.
480 * python/py-type.c (typy_lookup_type): Ditto.
481 (typy_getitem): Ditto.
482 (typy_has_key): Ditto.
483 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
485 2011-10-26 Joel Brobecker <brobecker@adacore.com>
487 * gdbarch.h: Regenerate.
489 2011-10-26 Meador Inge <meadori@codesourcery.com>
491 * gdbarch.sh (function_list): Use 'pstring' when printing
493 * gdbarch.c: Regenerate.
495 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
497 * regcache.c (registers_changed_ptid): Invalidate thread architecture
498 and frame caches if PTID refers to all threads of a process.
500 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
502 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
503 to create_breakpoint.
505 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
507 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
508 (ppc_sysv_abi_push_dummy_call): Use it.
509 (do_ppc_sysv_return_value): Likewise.
510 (ppc64_sysv_abi_push_dummy_call): Likewise.
511 (ppc64_sysv_abi_return_value): Likewise.
513 2011-10-26 Paul Koning <paul_koning@dell.com>
515 * python/lib/gdb/types.py (deepitems): New function.
517 2011-10-25 Paul Koning <paul_koning@dell.com>
521 * python/py-value.c (value_to_value_object): Remove fetching of
522 the value if it was lazy.
523 (valpy_get_is_lazy): New function.
524 (valpy_fetch_lazy): New function.
526 2011-10-24 Joel Brobecker <brobecker@adacore.com>
528 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
529 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
531 2011-10-24 Pedro Alves <pedro@codesourcery.com>
533 * linux-nat.c (linux_handle_extended_wait): When handling a clone
534 event, in non-stop, if not stopping, make sure the new lwp has
535 last_resume_kind set to resume_continue. Assert that when we're
536 resuming the new lwp, its last_resume_kind is resume_continue.
538 2011-10-24 Pedro Alves <pedro@codesourcery.com>
540 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
541 already set when marking the event thread as not executing in
544 2011-10-24 Pedro Alves <pedro@codesourcery.com>
546 * infrun.c (handle_inferior_event): Add debug output for
547 TARGET_WAITKIND_NO_HISTORY.
549 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
551 * NEWS: Move set/show extended-prompt to "New Options". Expand
552 description. Fix typos.
554 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
558 * python/py-param.c (call_doc_function): Correctly deference on
561 2011-10-21 Joel Brobecker <brobecker@adacore.com>
563 * ada-tasks.c (print_ada_task_info): Fix computation of
564 number of tasks displayed in command output.
566 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
567 Ulrich Weigand <uweigand@de.ibm.com>
569 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
570 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
571 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
572 gdbarch_pc_regnum and frame_unwind_register_unsigned by
575 2011-10-20 Cary Coutant <ccoutant@google.com>
577 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
579 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
580 flag. Adjust all callers.
581 (process_psymtab_comp_unit): Remove adjustment for type section.
583 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
585 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
586 arguments by adding OBJFILE. Instead of getting objfile from
587 symbol's symtab, use new argument OBJFILE.
588 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
589 arguments by adding OBJFILE.
590 * gdb/dwarf2read.c (new_symbol_full): Change call to
591 cp_scan_for_anonymous_namespaces to match new signature.
592 * gdb/stabsread.c (define_symbol): Change call to
593 cp_scan_for_anonymous_namespaces to match new signature.
595 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
600 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
602 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
603 leak. Delete unused variables.
605 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
609 * python/py-frame.c (frapy_read_var): Use const struct *block.
610 * python/py-type.c (typy_lookup_typename): Likewise.
611 (typy_lookup_type): Likewise.
612 (typy_legacy_template_argument): Likewise.
613 (typy_template_argument): Likewise.
614 (gdbpy_lookup_type): Likewise.
615 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
616 * python/py-block.c (blpy_block_object): Likewise.
617 (blpy_iter): Likewise.
618 (blpy_get_start): Likewise.
619 (blpy_get_end): Likewise.
620 (blpy_get_function): Likewise.
621 (blpy_get_superblock): Likewise.
622 (set_block): Likewise.
623 (block_to_block_object): Likewise.
624 (block_object_to_block): Likewise.
625 (blpy_is_valid): Likewise.
626 (blpy_get_global_block): New function.
627 (blpy_get_static_block): New function.
628 (blpy_is_global): New function.
629 (blpy_is_static): New function.
630 * blockframe.c (block_innermost_frame): Likewise.
631 * valops.c (value_of_variable): Likewise.
632 * frame.h: Update prototypes.
633 * python/python-internal.h: Likewise.
636 2011-10-19 Cary Coutant <ccoutant@google.com>
638 * dwarf2read.c (create_debug_types_hash_table): Fix size of
641 2011-10-19 Cary Coutant <ccoutant@google.com>
643 * dwarf2read.c (peek_abbrev_code): New function.
644 (dw2_get_file_names): Check for dummy compilation units.
645 (create_debug_types_hash_table): Likewise.
646 (process_psymtab_comp_unit): Likewise.
647 (load_partial_comp_unit): Likewise.
648 (load_full_comp_unit): Likewise.
650 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
652 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
653 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
654 pt_phdr if PT_PHDR was found.
656 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
658 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
659 type or "<unnamed type"> when there is no name assigned.
660 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
661 avoid a sigint when no name is assigned.
663 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
666 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
667 * dwarf2expr.c (ctx_no_read_reg): New function.
668 * dwarf2expr.h (ctx_no_read_reg): New declaration.
669 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
670 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
671 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
673 2011-10-16 Doug Evans <dje@google.com>
675 * NEWS: Document python gdb.printing.register_pretty_printer's new
678 2011-10-14 Keith Seitz <keiths@redhat.com>
681 * eval.c (evaluate_subexp_standard): Do not construct
682 an array of types; pass the value array directly to
684 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
685 (rank_function): Take an array of values instead of types.
686 (rank_one_type): Add struct value * parameter.
687 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
688 (rank_function): For each argument, pass the argument's
689 value to rank_one_type.
690 (rank_one_type): Add VALUE parameter.
691 If the parameter type is a pointer and the argument type
692 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
694 Update all calls to rank_one_type, passing NULL for new
696 * valarith.c (value_user_defined_cpp_op): Do not construct
697 an array of types; pass the value array directly to
699 * valops.c (find_overload_method_list): Take an array of
700 values instead of types.
701 Save the type of OBJP for later use.
702 Update calls to find_oload_champ, and find_oload_champ_namespace.
703 (find_oload_champ_namespace): Take an array of values instead
705 (find_oload_champ_namespace_loop): Likewise.
706 (find_oload_champ): Likewise.
707 (classify_oload_match): Inspect all arguments
708 until INCOMPATIBLE is found. Return the worst badness found
710 (compare_parameters): Update call to rank_one_type.
711 * value.h (find_overload_match): Take an array of values instead
714 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
716 Drop lazy lm_info reading.
717 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
718 l_addr_inferior, l_ld, l_next, l_prev and l_name.
719 (lm_info_read): New function.
720 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
721 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
722 lm_dynamic_from_link_map.
723 (lm_next, lm_prev, lm_name): Remove.
724 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
725 initialization incl. read_memory. No longer use lm_name.
726 (svr4_free_so): Drop lm_info->lm freeing.
727 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
728 explicit lm_addr and lm initialization.
729 (svr4_read_so_list): Use lm_info_read, drop the initailization of
730 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
733 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
734 Paul Pluzhnikov <ppluzhnikov@google.com>
736 * defs.h (struct so_list): New forward declaration.
737 (make_cleanup_free_so): New declaration.
738 * solib-svr4.c (ignore_first_link_map_entry): Remove.
739 (svr4_free_so): Move the function here from downwards. Handle NULL
741 (svr4_free_library_list): New.
742 (svr4_read_so_list): New, moved here code from svr4_current_sos.
743 Use more cleanups. Use new parameter ignore_first instead of
744 ignore_first_link_map_entry.
745 (svr4_current_sos): New variable ignore_first, initialize it. New
746 variable back_to, use it for svr4_free_library_list protection.
747 (svr4_free_so): Remove - move upwards.
748 * utils.c: Include solist.h.
749 (do_free_so, make_cleanup_free_so): New functions.
751 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
753 Fix internal error regression.
754 * value.c (value_primitive_field): Handle value_optimized_out. Move
755 packed bitfields comment.
757 2011-10-13 Tom Tromey <tromey@redhat.com>
759 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
762 2011-10-13 Tom Tromey <tromey@redhat.com>
764 * python/py-type.c (typy_has_key): Make 'field' const.
766 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
768 * remote.c (remote_save_trace_data): Invert comparison.
770 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
772 * tracepoint.c (trace_save_command): Use filename instead of
775 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
777 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
780 2011-10-13 Yao Qi <yao@codesourcery.com>
783 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
784 whether insn is a 32-bit Thumb-2 instruction.
785 (thumb_in_function_epilogue_p): Likewise.
786 (thumb_get_next_pc_raw): Likewise.
787 (arm_breakpoint_from_pc): Likewise.
789 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
791 Fix empty DWARF expressions DATA vs. SIZE conditionals.
792 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
793 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
794 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
795 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
797 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
799 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
800 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
801 clear DATA on zero SIZE.
803 2011-10-12 Doug Evans <dje@google.com>
805 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
806 header->first_die_offset here. All callers updated.
808 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
810 Fix compatibility with texinfo versions older than 4.12.
811 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
812 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
813 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
814 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
815 * configure: Regenerate.
816 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
817 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
818 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
820 2011-10-12 Gary Benson <gbenson@redhat.com>
822 * breakpoint.h (pc_at_non_inline_function): Declare.
823 * breakpoint.c (is_non_inline_function,
824 pc_at_non_inline_function): New functions.
825 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
826 if the stop is at a location where functions cannot be inlined.
828 2011-10-12 Pedro Alves <pedro@codesourcery.com>
830 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
831 the core wanted them stopped, or if they now have a pending event
833 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
834 down to stop_and_resume_callback.
835 (linux_nat_wait_1): Always clear `options' when retrying. Handle
836 having new pending events after calling linux_nat_filter_event.
838 2011-10-11 Sterling Augustine <saugustine@google.com>
840 * dwarf2read.c: Undo inadvertent changes in previous commit.
842 2011-10-11 Sterling Augustine <saugustine@google.com>
844 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
847 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
849 * symfile.c (separate_debug_file_exists): Fix condition.
851 2011-10-11 David S. Miller <davem@davemloft.net>
853 * regcache.c (regcache_restore): Do not write unavailable regs, mark
855 * regcache.h (regcache_restore): Remove declaration.
857 * gdbarch.sh: New field 'long_long_align_bit'.
858 * gdbarch.c, gdbarch.h: Regenerate.
859 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
860 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
862 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
865 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
866 Support @entry in input expressions.
867 * c-exp.y (ENTRY, unknown_cpp_name): New.
868 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
869 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
870 (variable: name_not_typename '@' ENTRY, name: ENTRY)
871 (name_not_typename: ENTRY): New.
872 (yylex): Recognize ENTRY.
874 Reimplement @entry in input expressions.
875 * c-exp.y (ENTRY): New.
876 (variable: name_not_typename ENTRY): New.
877 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
879 2011-10-11 Pedro Alves <pedro@codesourcery.com>
881 * linux-nat.c (linux_handle_extended_wait): Always dump both the
882 parent and child's pids as soon as we detect a clone event.
883 Adjust another debug message.
885 2011-10-11 Pedro Alves <pedro@codesourcery.com>
887 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
888 not zombie instead of reading the whole file.
890 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
892 Fix separate debuginfo warning with "remote:" access.
893 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
894 * symfile.c (get_file_crc): New function with the code moved from ...
895 (separate_debug_file_exists): ... this function, specifically variables
896 buffer and count. New variable verified_as_different, set it. Remove
897 file_crc initialization. Verify also if both files are not the same
900 2011-10-11 Yao Qi <yao@codesourcery.com>
902 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
905 2011-10-10 Doug Evans <dje@google.com>
907 * linux-thread-db.c (thread_db_new_objfile): Only try to load
908 libthread_db when we load libpthread or the main symbol file.
909 (thread_db_inferior_created): New function.
910 (_initialize_thread_db): Attach inferior_created observer.
911 * linux-nat.c (linux_child_post_attach): Remove call to
913 (linux_child_post_startup_inferior): Ditto.
914 * objfiles.h (OBJF_MAINLINE): Define.
915 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
916 allocate_objfile when appropriate.
918 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
921 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
922 Remove unused variables.
923 (get_linux_version): Remove function.
924 (_initialize_arm_linux_nat): Do not call it.
926 2011-10-10 Pedro Alves <pedro@codesourcery.com>
928 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
929 new clone lwp if the core asked it to stop. Don't pass on
930 unexpected signals to the new clone; leave them pending instead.
932 2011-10-10 Pedro Alves <pedro@codesourcery.com>
934 * linux-nat.c (resume_lwp): Remove redundant debug output.
936 2011-10-10 Pedro Alves <pedro@codesourcery.com>
938 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
939 last_resume_kind before clearing it, and use the copy instead to
940 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
941 resume_clear_callback in the non-stop path too.
943 2011-10-09 Yao Qi <yao@codesourcery.com>
945 * valprint.c (value_check_printable): Add one parameter OPTIONS.
946 Honor OPTIONS and VAL's type.
947 (common_val_print, value_print): Update to pass one more parameter.
949 2011-10-09 Doug Evans <dje@google.com>
951 Add new "alias" command.
952 * NEWS: Mention new command.
953 * command.h (valid_user_defined_cmd_name_p): Declare.
954 * defs.h (make_cleanup_dyn_string_delete): Declare.
955 * utils.c: #include "dyn-string.h".
956 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
957 * cli/cli-cmds.c: #include "dyn-string.h".
958 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
959 (init_cli_cmds): Add new command.
960 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
962 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
964 Fix compatibility with older GCCs.
965 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
966 * stack.c (read_frame_arg): Initialize val_deref.
968 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
970 Entry values NEWS entries, DWARF disassembly support.
971 * NEWS: New entry values entry.
972 (set print entry-values, show print entry-values)
973 (set debug entry-values, show debug entry-values): New entries.
974 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
975 indent. Remove variable start. Move header printing out. Respect
976 INDENT. Support DW_OP_GNU_entry_value.
977 (locexpr_describe_location_1): Move the header printing here, extend
978 the disassemble_dwarf_expression passed parameters.
980 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
982 Display @entry parameter values even for references.
983 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
984 coerce_ref_if_computed.
985 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
986 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
987 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
988 existing push_dwarf_reg_entry_value call. Add new detection calling
989 dwarf_block_to_dwarf_reg_deref. Update the error message.
990 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
992 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
993 parameter deref_size, describe it in the comment.
994 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
995 (dwarf_block_to_dwarf_reg_deref): New declaration.
996 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
997 deref_size, describe it in the function comment. New variables
998 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
999 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1000 describe it in the function comment. Fetch the alternative block
1001 accoring to DEREF_SIZE.
1002 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1003 (entry_data_value_free_closure, entry_data_value_funcs): New.
1004 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1005 outer_val, target_val, val and addr. Try to fetch and create also
1006 referenced value content.
1007 (pieced_value_funcs): NULL value for coerce_ref.
1008 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1009 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1010 coerce_ref_if_computed.
1011 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1012 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1013 * stack.c (read_frame_arg): Compare also dereferenced values.
1014 * value.c (value_computed_funcs): Make the parameter v const, use
1015 value_lval_const for it.
1016 (value_lval_const, coerce_ref_if_computed): New function.
1017 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1018 * value.h (struct lval_funcs): New field coerce_ref.
1019 (value_computed_funcs): Make the parameter v const.
1020 (value_lval_const, coerce_ref_if_computed): New declarations.
1022 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 Support @entry in input expressions.
1025 * c-exp.y (ENTRY, unknown_cpp_name): New.
1026 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1027 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1028 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1029 (name_not_typename: ENTRY): New.
1030 (yylex): Recognize ENTRY.
1031 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1032 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1034 * parse.c (operator_length_standard): Likewise.
1035 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1037 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1039 Display referenced values in backtraces.
1040 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1041 * stack.c (print_frame_arg): Likewise.
1043 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1045 Make some lval_funcs methods to default on NULL.
1046 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1048 (value_assign): Check if lval_computed write method is NULL.
1049 * value.h (struct lval_funcs): Comment NULL values for read and write
1052 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1054 Display @entry parameter values (without references).
1055 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1057 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1059 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1061 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1062 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1064 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1065 (loclist_read_variable_at_entry): New function.
1066 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1067 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1068 DW_AT_location, call dwarf_block_to_sp_offset for it.
1069 * frame.h (print_entry_values_no, print_entry_values_only)
1070 (print_entry_values_preferred, print_entry_values_if_needed)
1071 (print_entry_values_both, print_entry_values_compact)
1072 (print_entry_values_default, print_entry_values): New declarations.
1073 (struct frame_arg): New field entry_kind.
1074 (read_frame_arg): New parameter entryargp.
1075 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1076 arg->entry_kind. Optionally print the `@entry' suffix.
1077 (list_args_or_locals): New variable entryarg, initialize it.
1078 Initialize also entry_kind of arg and entryarg. Conditionalize
1079 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1080 xfree for entryarg.error.
1081 * stack.c (print_entry_values_no, print_entry_values_only)
1082 (print_entry_values_preferred, print_entry_values_if_needed)
1083 (print_entry_values_both, print_entry_values_compact)
1084 (print_entry_values_default, print_entry_values_choices)
1085 (print_entry_values): New variables.
1086 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1087 print the `@entry' suffix, possibly in combination for
1088 print_entry_values_compact.
1089 (read_frame_arg): New parameter entryargp, new variables entryval,
1090 entryval_error and val_equal. Read in also entryargp, respect
1091 print_entry_values, compare the values using val_equal, fill in also
1092 argp->entry_kind (together with entryargp->entry_kind).
1093 (print_frame_args): New variable entryarg, initialize it.
1094 Conditionalize print_frame_arg for arg, add print_frame_arg for
1095 entryarg. Call xfree for entryarg.error.
1096 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1097 * symtab.h (struct symbol_computed_ops): New field
1098 read_variable_at_entry.
1100 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1103 * frame.h (struct frame_arg): New definition.
1104 (read_frame_arg): New declaration.
1105 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1106 (list_args_or_locals): ... the code here. New variable arg, call
1107 read_frame_arg and list_arg_or_local with it. Unify the
1108 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1110 * stack.c (print_frame_arg): New functiom from the code of
1112 (read_frame_arg): New function.
1113 (print_frame_args): Remove variable val. New variable arg, call
1114 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1116 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1118 Protect entry values against self tail calls.
1119 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1120 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1122 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1124 Recognize virtual tail call frames.
1125 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1126 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1127 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1128 * dwarf2-frame-tailcall.c: New file.
1129 * dwarf2-frame-tailcall.h: New file.
1130 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1131 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1132 REGS.PREV only after CIE execution.
1133 (struct dwarf2_frame_cache): New field tailcall_cache.
1134 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1135 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1136 parts, try to find entry_cfa_sp_offset. Call
1137 dwarf2_tailcall_sniffer_first.
1138 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1140 (dwarf2_frame_dealloc_cache): New function.
1141 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1142 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1143 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1144 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1145 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1146 * dwarf2loc.c (func_addr_to_tail_call_list)
1147 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1148 (call_site_find_chain_1, call_site_find_chain): New.
1149 * dwarf2loc.h (struct call_site_chain): New.
1150 (call_site_find_chain): New declaration.
1151 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1152 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1153 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1154 * stack.c (frame_info): Support also TAILCALL_FRAME.
1156 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1158 Tail call sites reader implementation.
1159 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1160 fill in TYPE_TAIL_CALL_LIST.
1161 * gdbtypes.h (struct func_type): New field tail_call_list.
1162 (struct call_site): New field tail_call_next.
1163 (TYPE_TAIL_CALL_LIST): New definition.
1165 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1167 Implement basic support for DW_TAG_GNU_call_site.
1168 * block.c: Include gdbtypes.h and exceptions.h.
1169 (call_site_for_pc): New function.
1170 * block.h (call_site_for_pc): New declaration.
1171 * defs.h: Include hashtab.h.
1172 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1174 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1175 ctx_no_push_dwarf_reg_entry_value.
1176 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1177 (dwarf_block_to_dwarf_reg): New function.
1178 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1179 (ctx_no_push_dwarf_reg_entry_value): New function.
1180 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1181 push_dwarf_reg_entry_value.
1182 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1184 * dwarf2loc.c: Include gdbcmd.h.
1185 (dwarf_expr_ctx_funcs): New forward declaration.
1186 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1187 (dwarf_expr_reg_to_entry_parameter)
1188 (dwarf_expr_push_dwarf_reg_entry_value): New.
1189 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1190 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1191 (needs_dwarf_reg_entry_value): New function.
1192 (needs_frame_ctx_funcs): Install it.
1193 (_initialize_dwarf2loc): New function.
1194 * dwarf2loc.h (entry_values_debug): New declaration.
1195 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1196 (read_call_site_scope): New forward declaration.
1197 (process_full_comp_unit): Copy call_site_htab.
1198 (process_die): Support DW_TAG_GNU_call_site.
1199 (read_call_site_scope): New function.
1200 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1201 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1202 (cleanup_htab): Delete.
1203 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1204 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1205 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1206 FIELD_LOC_KIND_DWARF_BLOCK.
1207 * gdbtypes.h (enum field_loc_kind): New entry
1208 FIELD_LOC_KIND_DWARF_BLOCK.
1209 (struct main_type): New loc entry dwarf_block.
1210 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1211 (TYPE_FIELD_DWARF_BLOCK): New.
1212 * python/py-type.c: Include dwarf2loc.h.
1213 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1214 internal_error call on unknown FIELD_LOC_KIND.
1215 * symtab.h (struct symtab): New field call_site_htab.
1216 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1217 (core_addr_hash, core_addr_eq): New functions.
1219 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1222 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1223 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1224 calling_convention under func_stuff there.
1225 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1226 (init_type) <TYPE_CODE_FUNC>: Likewise.
1227 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1228 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1229 * gdbtypes.h (enum type_specific_kind): Change
1230 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1231 (struct main_type) <type_specific>: Change calling_convention to
1232 func_stuff. Move calling_convention to ...
1233 (struct func_type): ... this new struct.
1234 (INIT_FUNC_SPECIFIC): New #define.
1235 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1237 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1239 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1240 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1241 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1242 ctx->ref_addr_size. Handle its invalid value.
1243 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1244 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1245 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1246 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1247 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1248 (dwarf2_per_cu_ref_addr_size): New function.
1250 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1253 * dwarf2read.c (per_cu_header_read_in): New function.
1254 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1255 variables cu_header_local and cu_headerp.
1257 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1259 Fix initial language detection with -readnow.
1260 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1261 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1262 searches only for global symbols.
1264 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1266 Fix printed anonymous struct name.
1267 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1268 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1269 (anonymous_struct_prefix): New function.
1270 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1271 (dwarf2_name): Strip for anonymous structs any prefixes.
1273 2011-10-07 Doug Evans <dje@google.com>
1275 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1278 * python/lib/gdb/printing.py: Whitespace cleanup.
1280 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1283 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1285 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1286 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1287 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1288 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1289 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1290 (arm_linux_remove_watchpoint): Adjust.
1291 * i386-linux-nat.c (i386_linux_dr_set_control)
1292 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1293 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1294 (ia64_linux_remove_watchpoint): Adjust.
1295 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1296 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1297 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1298 (ppc_linux_insert_mask_watchpoint)
1299 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1300 (ppc_linux_remove_watchpoint): Adjust.
1301 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1304 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1306 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1307 (clear_win32_environment): New function for Cygwin to clear out
1309 (windows_create_inferior): Prepare new environment from in_env
1312 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1315 * python/py-value.c (valpy_call): Check that arguments are
1317 (is_intlike): Remove call to CHECK_TYPEDEF.
1318 (valpy_nonzero): Catch GDB exceptions.
1319 (valpy_absolute): Ditto.
1320 (valpy_lazy_string): Ditto.
1321 (valpy_call): Ditto.
1322 (valpy_get_is_optimized_out): Ditto.
1323 (valpy_long): Ditto.
1324 (valpy_float): Ditto.
1325 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1326 (valpy_richcompare): Ditto.
1328 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1330 * inferior.h (disable_randomization): Declare.
1331 * infrun.c (disable_randomization): New global variable.
1332 (show_disable_randomization): New function.
1333 (set_disable_randomization): Likewise.
1334 (_initialize_infrun): Install set/show disable-randomization
1336 * linux-nat.c (disable_randomization): Remove.
1337 (show_disable_randomization): Likewise.
1338 (set_disable_randomization): Likewise.
1339 (_initialize_linux_nat): No longer install set/show
1340 disable-randomization commands here.
1341 (linux_nat_supports_disable_randomization): New function.
1342 (linux_nat_add_target): Install it.
1343 * remote.c (PACKET_QDisableRandomization): New enum value.
1344 (remote_protocol_packets): Support QDisableRandomization.
1345 (_initialize_remote): Likewise.
1346 (remote_supports_disable_randomization): New function.
1347 (init_remote_ops): Install it.
1348 (extended_remote_supports_disable_randomization): New function.
1349 (init_extended_remote_ops): Install it.
1350 (extended_remote_disable_randomization): New function.
1351 (extended_remote_create_inferior_1): Call it.
1352 * target.h (struct target_ops): Add to_supports_disable_randomization.
1353 (target_supports_disable_randomization): Add prototype.
1354 * target.c (target_supports_disable_randomization): New function.
1355 (find_default_supports_disable_randomization): Likewise.
1356 (init_dummy_target): Install it.
1358 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1360 Allow Python notification of new object-file loadings.
1361 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1362 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1363 Add build rule for this file.
1364 * python/py-event.h (emit_new_objfile_event): New prototype.
1365 (newobjfile): New Python event emitter.
1366 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1367 Python event registry.
1368 * python/py-inferior.c: Include objfiles.h
1369 (python_new_objfile): New function.
1370 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1372 * python/py-newobjfileevent.c: New file.
1373 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1375 * python/python.c (_initialize_python): Add
1376 gdbpy_initialize_new_objfile_event call.
1377 * NEWS: Add item for new Python event "gdb.newobjfile"
1379 2011-10-05 Tristan Gingold <gingold@adacore.com>
1381 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1382 Extract the ravenscar task name from the symbol for the atcb.
1384 2011-10-04 Paul Koning <paul_koning@dell.com>
1386 * python/py-type.c (typy_make_iter): Add forward declaration.
1387 (typy_fields_items): Use the gdb.Type iterator.
1389 2011-10-04 Paul Koning <paul_koning@dell.com>
1391 * NEWS: Add entry for Python gdb.Type mapping methods.
1393 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1395 PR python/12691: Add the inferior to Python exited event
1396 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1398 * python/py-event.h (emit_exited_event): Likewise
1399 * python/-inferior.c (python_inferior_exit): Likewise
1401 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1403 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1404 in output of -ada-task-info GDB/MI command.
1406 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1408 * ada-lang.h (struct inferior): Declare.
1409 (print_ada_task_info): Add declaration.
1410 * ada-tasks.c (print_ada_task_info): Make non-static.
1411 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1412 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1413 * mi/mi-main.c: #include "ada-lang.h".
1414 (mi_cmd_list_features): Add "ada-task-info" to the list
1415 of supported features.
1416 (mi_cmd_ada_task_info): New function.
1418 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1420 * python/python.c (python_run_simple_file): New function.
1421 (source_python_script, source_python_script_for_objfile):
1422 Replace call to PyRun_SimpleFile by call to
1423 python_run_simple_file.
1425 2011-10-03 Paul Koning <paul_koning@dell.com>
1427 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1428 (value_to_value_object): Fetch value if it was lazy.
1430 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1433 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1434 Rearrange the code for it.
1436 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1438 * breakpoint.c (bkpt_print_recreate): Add call to
1439 print_recreate_thread.
1441 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1443 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1444 PTRACE_GETFDPIC_INTERP): Define.
1446 2011-09-28 Yao Qi <yao@codesourcery.com>
1448 * symfile.c (add_symbol_file_command): Update message on usage.
1450 2011-09-28 Paul Koning <paul_koning@dell.com>
1452 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1453 (typy_length, typy_get, typy_has_key, typy_make_iter)
1454 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1455 (typy_iterator_iter, typy_iterator_iternext)
1456 (typy_iterator_dealloc): New functions to implement standard
1457 Python mapping methods on gdb.Type object.
1458 (gdb.TypeIterator): New Python type.
1459 * python/python-internal.h (gdbpy_iter_kind): New enum.
1461 2011-09-28 David S. Miller <davem@davemloft.net>
1463 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1464 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1465 * sparc-tdep.c (sparc_complex_floating_p): New function.
1466 (sparc32_store_arguments): Handle complex floats.
1467 (sparc32_extract_return_value): Likewise.
1468 (sparc32_store_return_value): Likewise.
1469 (sparc32_stabs_argument_has_addr): Likewise.
1470 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1471 (sparc64_store_floating_fields): Handle complex floats.
1472 (sparc64_store_arguments): Likewise.
1473 (sparc64_store_return_value): Likewise.
1475 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1477 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1478 before the change on 2006-12-09.
1479 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1480 generates the environment block for CreateProcessA, modulo the
1481 Cygwin-specific parts that are not needed here.
1483 2011-09-27 Tristan Gingold <gingold@adacore.com>
1485 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1486 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1487 (darwin_solib_get_all_image_info_addr_at_init): New function.
1488 (darwin_solib_read_all_image_info_addr): Likewise.
1489 (darwin_solib_create_inferior_hook): Use the above two functions.
1490 * darwin-nat.c (darwin_execvp): Renames retval to res.
1491 (darwin_read_write_inferior): Update comment.
1492 (darwin_read_dyld_info): New function.
1493 (darwin_xfer_partial): Handle DYLD_INFO.
1495 2011-09-27 Stan Shebs <stan@codesourcery.com>
1497 Add return address collection for tracepoints.
1498 * tracepoint.c (encode_actions_1): Add case for $_ret.
1499 (validate_actionline): Check for $_ret.
1500 (trace_dump_actions): Ditto.
1501 * ax-gdb.h (gen_trace_for_return_address): Declare.
1502 * ax-gdb.c: Include arch-utils.h.
1503 (gen_trace_for_return_address): New function.
1504 (agent_command): Add return address special case.
1505 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1506 (amd64_gen_return_address): New function.
1507 (amd64_init_abi): Call it.
1508 * i386-tdep.c: Include ax.h and ax-gdb.h.
1509 (i386_gen_return_address): New function.
1510 (i386_init_abi): Call it.
1511 * arch-utils.h (default_gen_return_address): Declare.
1512 * arch-utils.c (default_gen_return_address): New function.
1513 * gdbarch.sh (gen_return_address): New method.
1514 * gdbarch.h, gdbarch.c: Regenerate.
1516 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1519 * i386-tdep.c (i386_frame_align): New.
1520 (i386_gdbarch_init): Use i386_frame_align.
1522 2011-09-23 Yao Qi <yao@codesourcery.com>
1524 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1527 2011-09-22 Tristan Gingold <gingold@adacore.com>
1529 * fork-child.c (fork_inferior): Add exec_fun parameter.
1530 Call exec_fun or execvp.
1531 * inferior.h: Adjust prototype.
1532 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1533 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1534 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1535 * procfs.c (procfs_create_inferior): Ditto.
1536 * darwin-nat.c (darwin_execvp): New function.
1537 (darwin_create_inferior): Use it.
1539 2011-09-22 Yao Qi <yao@codesourcery.com>
1541 * infrun.c (context_switch): Print debug message when switching to
1544 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1546 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1547 complex and vector types.
1548 (s390_return_value_convention): Likewise.
1550 (s390_value_from_register): Call check_typedef.
1551 (extend_simple_arg): Likewise.
1552 (alignment_of): Likewise.
1553 (s390_push_dummy_call): Likewise.
1554 (s390_return_value): Likewise.
1556 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1558 * event-top.c (async_disconnect): If an exception is thrown from
1559 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1561 * top.c (quit_cover): Return void and take no arguments.
1562 * top.h (quit_cover): Update prototype.
1564 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1566 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1567 current_uiout, not uiout.
1569 2011-09-19 Doug Evans <dje@google.com>
1571 * python/py-auto-load.c (source_section_scripts): Fix file
1573 * python/python.c (source_python_script_for_objfile): Tweak comments.
1575 2011-09-18 Yao Qi <yao@codesourcery.com>
1576 Ulrich Weigand <ulrich.weigand@linaro.org>
1578 Support displaced stepping for Thumb 16-bit insns.
1579 * arm-tdep.c (THUMB_NOP) Define.
1580 (thumb_copy_unmodified_16bit): New.
1581 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1582 (thumb_copy_alu_reg): New.
1583 (arm_copy_svc): Move some common code to ...
1584 (install_svc): ... here. New.
1585 (thumb_copy_svc): New.
1586 (install_pc_relative): New.
1587 (thumb_copy_pc_relative_16bit): New.
1588 (thumb_decode_pc_relative_16bit): New.
1589 (thumb_copy_16bit_ldr_literal): New.
1590 (thumb_copy_cbnz_cbz): New.
1591 (cleanup_pop_pc_16bit_all): New.
1592 (thumb_copy_pop_pc_16bit): New.
1593 (thumb_process_displaced_16bit_insn): New.
1594 (thumb_process_displaced_32bit_insn): New.
1595 (thumb_process_displaced_insn): process thumb instruction.
1597 Support displaced stepping for Thumb 32-bit insns.
1598 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1599 (thumb2_copy_preload): New.
1600 (thumb2_copy_copro_load_store): New.
1601 (thumb2_copy_b_bl_blx): New.
1602 (thumb2_copy_alu_imm): New.
1603 (thumb2_copy_load_reg_imm): New.
1604 (thumb2_copy_load_literal): New
1605 (thumb2_copy_block_xfer): New.
1606 (thumb_32bit_copy_undef): New.
1607 (thumb_32bit_copy_unpred): New.
1608 (thumb2_decode_ext_reg_ld_st): New.
1609 (thumb2_decode_svc_copro): New.
1610 (decode_thumb_32bit_store_single_data_item): New.
1611 (thumb_copy_pc_relative_32bit): New.
1612 (thumb_decode_pc_relative_32bit): New.
1613 (decode_thumb_32bit_ld_mem_hints): New.
1614 (thumb2_copy_table_branch): New
1615 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1618 2011-09-18 Yao Qi <yao@codesourcery.com>
1620 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1621 (install_b_bl_blx): Likewise.
1623 2011-09-17 Yao Qi <yao@codesourcery.com>
1625 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1626 (install_load_store): ... this. New.
1627 Change parameter BYTE to SIZE.
1628 (arm_copy_ldr_str_ldrb_strb): Update caller.
1629 (arm_decode_ld_st_word_ubyte): Update caller.
1631 2011-09-17 Yao Qi <yao@codesourcery.com>
1633 * infrun.c (displaced_step_fixup): Move some code ...
1634 (displaced_step_restore): ... here. New function.
1635 (handle_inferior_event): Cleanup displaced stepping state for both
1636 child and parent when get forked or vforked event.
1637 * regcache.c (get_thread_arch_aspace_regcache): New function.
1638 get_thread_arch_regcache (): Call it.
1640 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1642 * ada-tasks.c (print_ada_task_info): New function, merging
1643 short_task_info and info_tasks together. Reimplement using
1644 ui-out instead of printing to stdout directly. Move the code
1645 building and checking the task list here, instead of leaving it
1646 in info_tasks_command.
1647 (info_task): Move the code building and checking the task
1648 list here, instead of leaving it in info_tasks_command.
1649 (info_tasks_command): Delete code building and checking
1650 the task list - moved elsewhere. Update calls to info_tasks
1653 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1655 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1657 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1659 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1661 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1663 * ada-lang.h (ada_build_task_list): Remove parameter
1665 * ada-tasks.c (ada_build_task_list): Remove parameter
1666 `warn_if_null'. Adjust implementation and documentation.
1667 (valid_task_id, ada_get_environment_task)
1668 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1669 (info_tasks_command): Adjust implementation.
1670 (task_command): Likewise.
1671 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1672 to ada_build_task_list.
1674 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1676 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1677 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1678 (ada_tasks_inferior_data_handle): New static global.
1679 (get_ada_tasks_inferior_data): New function.
1680 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1681 (ada_get_environment_task, iterate_over_live_ada_tasks)
1682 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1684 (ada_set_current_inferior_known_tasks_addr): New function.
1685 (read_known_tasks, ada_build_task_list, short_task_info)
1686 (info_tasks, info_task, info_tasks_command, task_command_1)
1687 (task_command, ada_task_list_changed): Adjust.
1688 (ada_tasks_invalidate_inferior_data): New function.
1689 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1690 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1691 * ada-lang.h (struct inferior): Add declaration.
1692 (ada_task_list_changed): Update profile.
1693 * remote-wtx-pd.c: #include "inferior.h".
1694 (switch_to_pd_internal): Update call to ada_task_list_changed.
1696 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1698 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1699 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1700 (atcb_fieldno): Delete these static globals.
1701 (struct ada_tasks_pspace_data): New struct.
1702 (ada_tasks_pspace_data_handle): New static global.
1703 (get_ada_tasks_pspace_data): New function.
1704 (ada_tasks_invalidate_pspace_data): New function.
1705 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1706 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1707 (_initialize_tasks): Create this module's per-progspace
1710 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1712 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1714 2011-09-16 Tristan Gingold <gingold@adacore.com>
1716 * fork-child.c (fork_inferior): Update comment. Use alloca
1717 instead of xmalloc for argv. Move len and shell_command
1718 declarations in the block where they are used.
1719 Only call execvp. Factorize failure code.
1721 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1724 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1725 `exp_element' instead of an element of the same and make the function
1727 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1728 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1729 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1730 Change argument of `write_exp_elt' function call.
1731 Remove extra spaces from comments.
1732 * parser-defs.h (write_exp_elt): Remove prototype.
1734 2011-09-15 Paul Koning <paul_koning@dell.com>
1736 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1737 count of item appended to list.
1738 * python/py-type.c (typy_fields): Likewise.
1740 2011-09-15 Paul Koning <paul_koning@dell.com>
1742 * MAINTAINERS (Write After Approval): Add myself to the list.
1744 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1747 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1748 processes with multiple threads.
1749 (inf_has_multiple_thread_cb): New function.
1750 (inf_has_multiple_threads): New function.
1752 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1754 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1755 * python/py-inferior.c (GdbMethods): New Python method definition.
1757 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1759 Handle multiple breakpoint hits in Python interface:
1760 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1761 variable to breakpoints.
1762 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1763 bps instead of single breakpoint. Fix some space typos.
1764 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1765 variable to breakpoints.
1767 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1769 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1770 note if the breakpoint is internal.
1772 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1774 * MAINTAINERS (Write After Approval): Add myself to the list
1776 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1778 * infrun.c (prepare_for_detach, wait_for_inferior)
1779 (fetch_inferior_event): Don't flush the register cache.
1780 * remote.c (struct stop_reply) <regcache>: Add comment.
1782 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1784 Remove excessive DWARF expressions memory duplication.
1785 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1787 (indirect_pieced_value): Remove variable result. Remove variable
1788 back_to and its use for baton.data.
1789 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1791 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1792 Update the function comment.
1794 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1796 * inferior.h (ALL_INFERIORS): New.
1797 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1798 for a stopped thread.
1799 (thread_db_find_new_threads): Look for threads in all inferiors.
1801 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1803 * breakpoint.c (update_watchpoint): Handle the case of the
1804 watchpoint to update not being in the breakpoint list yet.
1805 (hw_watchpoint_use_count): New, factored out from
1806 hw_watchpoint_used_count.
1807 (hw_watchpoint_used_count): Rename to ...
1808 (hw_watchpoint_used_count_others): ... this. Add `except'
1809 parameter. Don't count resources of `except'. Use
1810 hw_watchpoint_use_count.
1812 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1814 * gdbthread.h (enum thread_state): Moved here.
1815 (struct thread_info): Rename `executing_' field to `executing' and
1816 `state_' to `state'.
1817 * thread.c (enum thread_state): Moved to gdbthread.h.
1818 (new_thread, add_thread_silent, delete_thread_1)
1819 (any_live_thread_of_process, thread_alive, set_running)
1820 (set_running, is_thread_state, any_running, is_executing)
1821 (set_executing, finish_thread_state, print_thread_info)
1822 (do_captured_thread_select): Adjust.
1824 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1827 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1829 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1830 Matt Rice <ratmice@gmail.com>
1834 * interps.c (struct interp) <interpreter_out>: Delete field.
1835 (interp_new): Remove the data and uiout parameters and adjust.
1836 (interp_set): Only set the current_uiout from the interpreter's
1837 uiout after initializing the interpreter. Adjust call to
1839 (interp_ui_out): Adjust to call procs->ui_out_proc.
1840 (interp_data, interp_name): New.
1841 * interps.h (interp_init_ftype): Add `self' parameter.
1842 (interp_ui_out_ftype): New typedef.
1843 (struct interp_procs) <ui_out_proc>: New method pointer.
1844 (interp_new): Remove the data and uiout parameters.
1845 (interp_data, interp_name): Declare.
1846 * tui/tui-interp.c (tui_init): Adjust prototype.
1848 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1849 tui_out here. Adjust call to interp_new.
1850 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1851 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1853 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1854 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1855 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1856 Initialize mi->uiout depending on the mi_version as extracted from
1857 the interpreter's name.
1859 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1860 interp_new. Don't allocate the ui_out's of the interpreters here.
1862 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1864 * solib.c (solib_used): New function.
1865 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1866 by another so_list object before freeing it.
1868 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1871 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1874 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1877 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1878 (amd64_skip_xmm_prologue): ... this new function. Describe its
1879 parameters. No longer use amd64_prologue_line_bug.
1880 * defs.h (producer_is_gcc_ge_4): New declaration.
1881 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1882 (process_full_comp_unit): Update its caller. Remove
1883 amd64_prologue_line_bug initialization.
1884 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1885 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1887 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1889 * linux-nat.h (enum resume_kind): New.
1890 (struct lwp_info) <last_resume_kind>: New field.
1891 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1892 resume_stop on the new lwp.
1893 (add_lwp): Set last_resume_kind as resume_continue by default.
1894 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1895 (resume_lwp): New, factored out from resume_callback. Also check
1896 for pending status in lp->waitstatus.
1897 (resume_callback): Reimplement.
1898 (resume_clear_callback): Set last_resume_kind as resume_stop.
1899 (resume_set_callback): Set last_resume_kind as resume_continue.
1900 (linux_nat_resume, linux_handle_extended_wait): Set
1902 (running_callback): Also check lp->waitstatus for pending events.
1903 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1905 (stop_and_resume_callback): Don't re-resume if the core wanted the
1906 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1907 using an invalidated pointer.
1908 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1909 SIGSTOPs if the core wanted the LWP to stop.
1910 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1911 wanted the lwp to stop. If the core wanted the lwp to stop, and
1912 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1913 of TARGET_SIGNAL_STOP.
1914 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1915 here. Instead, signal the lwp, and set the last_resume_kind to
1918 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1920 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1921 -1 (error), if the lwp exits right after attaching.
1923 2011-09-08 Doug Evans <dje@google.com>
1925 * py-cmd.c: Some minor formatting fixes.
1926 (gdbpy_parse_command_name): Rename text arg to name, make const.
1927 All callers updated.
1928 * python-internal.h (gdbpy_parse_command_name): Update.
1930 * cli/cli-decode.c (add_cmd): Add comment.
1932 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 PR breakpoints/12435
1935 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1936 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1937 * dwarf2read.c (process_full_comp_unit): Initialize
1938 amd64_prologue_line_bug.
1939 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1941 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 Fix TUI screen corruption.
1944 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1947 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 * findvar.c (read_var_value): Never return NULL, throw an error
1950 instead. Update the function comment. State symbol name in the error
1952 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1954 * stack.c (print_frame_args): Likewise.
1955 * valops.c (value_of_variable): Likewise.
1957 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1959 * stack.c (print_frame_args): New variable except. Wrap
1960 read_var_value and common_val_print into TRY_CATCH.
1962 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1964 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1965 caller to value_of_this.
1966 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1968 * valops.c (value_of_this): Remove parameter complain and variable ret.
1969 Update function comment. Never return NULL by this code.
1970 (value_of_this_silent): New function.
1971 * value.h (value_of_this): Remove parameter complain.
1972 (value_of_this_silent): New declaration.
1974 2011-09-07 Yao Qi <yao@codesourcery.com>
1976 * gdbthread.h (struct thread_info): Remove fields
1977 `stepping_through_solib_after_catch' and
1978 `stepping_through_solib_catchpoints'.
1979 * infrun.c (init_thread_stepping_state): Update.
1980 (process_event_stop_test, currently_stepping): Update.
1981 (currently_stepping_or_nexting_callback): Update.
1983 2011-09-07 Yao Qi <yao@codesourcery.com>
1985 * gdbthread.h (struct thread_info): Comment on field
1986 `step_after_step_resume_breakpoint'.
1988 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1990 * remote.c (remote_console_output): Reindent.
1992 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1994 * frame.c (has_stack_frames): Check for currently selected
1997 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1999 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2000 (set_async_annotation_level, set_async_prompt, pop_prompt)
2001 (push_prompt, new_async_prompt): Delete declarations.
2002 * top.h (get_prompt, set_prompt): Change prototype.
2003 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2005 * top.c (command_loop):
2006 (top_prompt): New global.
2007 (get_prefix, set_prefix, get_suffix, ): Delete.
2008 (get_prompt, set_prompt): Rewrite.
2009 (show_new_async_prompt): Rename to ...
2010 (show_prompt): ... this.
2011 (init_main): Adjust. Don't handle --annotate=2 here.
2012 * event-top.c (new_async_prompt): Delete.
2013 (the_prompts): Delete.
2014 (more_to_come): Make static.
2015 (display_gdb_prompt): Use top_level_prompt() to compute the top
2016 level prompt, and don't notify the before_prompt observers
2017 directly here. Always trick readline into not trying to display
2018 the prompt if sync_execution and displaying the primary prompt.
2019 If displaying a local/secondary prompt, always show it, even if
2020 sync_execution is set.
2021 (change_annotation_level): Delete.
2022 (top_level_prompt): New, based on change_annotation_level.
2023 (push_prompt, pop_prompt): Delete.
2024 (async_disable_stdin): No longer pushes prompt.
2025 (command_line_handler): No longer pushes or pops prompt. If more
2026 input is expected, call display_gdb_prompt with an explicit empty
2028 (async_stop_sig): Adjust.
2029 (set_async_annotation_level, set_async_prompt): Delete.
2030 * python/python.c (before_prompt_hook): Adjust.
2032 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2036 * infrun.c (fetch_inferior_event): Check if there's a selected
2037 thread before checking if the selected thread is executing.
2039 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2041 * inf-loop.c (execute_command): Don't check if the current thread
2042 if running before synchronously waiting for command completion.
2043 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2045 (normal_stop): Call async_enable_stdin here.
2046 * inf-loop.c (inferior_event_handler): Don't call
2047 async_enable_stdin, nor handle "set exec-done-display" here.
2049 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2053 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2055 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2057 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2059 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2061 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2065 2011-09-02 Matt Rice <ratmice@gmail.com>
2068 * event-top.c (cli_command_loop): Replace readline setup with
2069 direct call to display_gdb_prompt.
2070 (display_gdb_prompt): Do not call observer mechanism during
2071 synchronous execution.
2073 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2075 * linux-nat.c (in_pid_list_p): New.
2076 (linux_record_stopped_pid): Delete.
2077 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2078 already attached to the LWP. Return an indication if so.
2079 (linux_nat_filter_event): Adjust.
2080 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2081 returning an indication to ignore this thread.
2083 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2085 * top.c: Include interps.h.
2086 (execute_command): If the target can async, but the interpreter is
2087 in sync mode, synchronously wait for the command to finish before
2089 (execute_command_to_string): Force the interpreter to sync mode.
2090 * infrun.c: Include interps.h.
2091 (fetch_inferior_event): Don't restore the prompt yet if the
2092 interpreter is in sync mode.
2093 * interps.c (interpreter_async): New global.
2094 * interps.h (interpreter_async): Declare.
2095 * inf-loop.c: Include interps.h.
2096 (inferior_event_handler): Don't print the language change or run
2097 breakpoint commands yet if the interpreter in is sync mode.
2098 * main.c (captured_command_loop): Flip the interpreter to async
2100 * cli/cli-script.c: Include interps.h.
2101 (execute_user_command, while_command, if_command): Force the
2102 interpreter to sync mode.
2103 * python/python.c: Include interps.h.
2104 (python_command, execute_gdb_command): Force the interpreter to
2107 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2109 * value.c (show_convenience): Catch errors thrown while printing
2110 each internal variable.
2111 * infrun.c (validate_siginfo_access): New function.
2112 (siginfo_value_read, siginfo_value_write): Call it.
2114 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2117 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2118 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2121 2011-08-29 Yao Qi <yao@codesourcery.com>
2123 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2125 (enable_break2): Update caller.
2126 * solib-frv.c (bfd_lookup_symbol): Removed.
2128 (enable_break2): Update caller.
2129 * solib-pa64.c (bfd_lookup_symbol): Removed.
2131 * solib-svr4.c (bfd_lookup_symbol): Removed.
2132 (cmp_name_and_sec_flags): New.
2133 (enable_break): Update caller.
2134 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2135 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2136 (gdb_bfd_lookup_symbol): New.
2137 * solib.h: Functions declarations.
2139 2011-08-29 Yao Qi <yao@codesourcery.com>
2141 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2144 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 Fix TUI stepi on code without symbols.
2147 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2150 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2154 and the static keyword.
2155 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2156 Make prefix an array.
2157 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2158 * mi/mi-main.c (get_register): Remove stb initialization and the static
2161 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2163 Code cleanup - make mi_opt const.
2164 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2166 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2167 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2168 (mi_cmd_env_dir): Likewise.
2169 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2170 (mi_cmd_target_file_put): Likewise.
2171 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2172 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2173 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2174 (mi_valid_noargs): Make opts const.
2175 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2176 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2177 (mi_cmd_data_read_memory): Likewise.
2178 (mi_cmd_data_read_memory_bytes): Likewise.
2179 (mi_cmd_data_write_memory): Likewise.
2181 2011-08-26 Matt Rice <ratmice@gmail.com>
2183 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2184 bcache_xmalloc, replace bcache_xmalloc with call to
2185 psymbol_bcache_init for psymbol_cache.
2186 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2188 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2190 * inf-loop.c (inferior_event_handler): Add exception_print in
2193 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2195 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2196 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2197 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2198 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2199 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2200 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2201 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2202 * infrun.c (fetch_inferior_event): Call
2203 make_bpstat_clear_actions_cleanup.
2204 * top.c (execute_command): New variable cleanup_if_error, call
2205 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2206 * utils.c (do_bpstat_clear_actions_cleanup)
2207 (make_bpstat_clear_actions_cleanup): New functions.
2209 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2211 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2212 either the parent or the child forks. Rename a couple locals.
2214 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2216 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2217 library call. Avoid reading the `status' local if all waitpid
2220 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2222 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2223 opening /proc/PID/task always succeeds.
2225 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2227 * linespec.c (symtab_from_filename): Check for the end of string.
2229 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2232 * varobj.c (cplus_describe_child): Add the keyword
2233 'class' to the output of the method when dealing
2234 with a cast to a base class.
2236 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2238 No functionality change.
2239 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2240 function comment a reference, new variables tp and bs, move here code
2241 from throw_exception.
2242 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2243 describe it in the comment.
2244 * exceptions.c (throw_exception): Remove variable tp, move the code for
2245 bpstat_clear_actions to bpstat_clear_actions.
2247 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2249 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2250 * linux-nat.c: Include linux-procfs.h.
2251 (linux_proc_get_tgid): Move to ...
2252 * common/linux-procfs.c: ... here. New file.
2253 * common/linux-procfs.h: New file.
2254 * linux-thread-db.c: Include linux-procfs.h.
2255 * Makefile.in: Update dependencies.
2256 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2257 * config/arm/linux.mh: Likewise.
2258 * config/i386/linux.mh: Likewise.
2259 * config/i386/linux64.mh: Likewise.
2260 * config/ia64/linux.mh: Likewise.
2261 * config/m32r/linux.mh: Likewise.
2262 * config/m68k/linux.mh: Likewise.
2263 * config/mips/linux.mh: Likewise.
2264 * config/pa/linux.mh: Likewise.
2265 * config/pa/linux.mh: Likewise.
2266 * config/powerpc/linux.mh: Likewise.
2267 * config/powerpc/ppc64-linux.mh: Likewise.
2268 * config/powerpc/spu-linux.mh: Likewise.
2269 * config/sparc/linux.mh: Likewise.
2270 * config/sparc/linux64.mh: Likewise.
2271 * config/xtensa/linux.mh: Likewise.
2273 2011-08-24 Hui Zhu <teawater@gmail.com>
2275 * tracepoint.c (cond_string_is_same): New function.
2276 (find_matching_tracepoint): Add condition check
2277 by cond_string_is_same.
2279 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2281 Fix build error in Darwin port.
2282 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2284 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2287 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2288 (command_line_is_silent): New function.
2289 (bpstat_do_actions_1): No longer use commands_left, use
2290 command_line_is_silent for commands.
2291 (bpstat_alloc): Remove clearing of commands_left.
2292 (bpstat_stop_status): Remove initialization of commands_left, use
2293 command_line_is_silent.
2294 * breakpoint.h (struct bpstats): Remove commands_left.
2296 2011-08-18 Keith Seitz <keiths@redhat.com>
2299 * cp-name-parser.y (struct demangle_info): Remove unused
2302 (allocate_info): Change return type to struct demangle_info *.
2303 Always allocate a new demangle_info.
2304 Remove unused PREV pointer.
2305 (cp_new_demangle_parse_info): New function.
2306 (cp_demangled_name_parse_free): New function.
2307 (do_demangled_name_parse_free_cleanup): New function.
2308 (make_cleanup_cp_demangled_name_parse_free): New function.
2309 (cp_demangled_name_to_comp): Change return type to
2310 struct demangle_parse_info *.
2311 Allocate a new storage for each call.
2312 (main): Update usage for cp_demangled_name_to_comp
2314 * cp-support.h (struct demangle_parse_info): New structure.
2315 (cp_demangled_name_to_comp): Update API change for
2317 (cp_new_demangle_parse_info): Declare.
2318 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2319 (cp_demangled_name_parse_free): Declare.
2320 * cp-support.c (cp_canonicalize_string): Update API
2321 change for cp_demangled_name_to_comp.
2322 (mangled_name_to_comp): Likewise.
2323 Return struct demangle_parse_info, too.
2324 (cp_class_name_from_physname): Update mangled_name_to_comp
2326 (method_name_from_physname): Likewise.
2327 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2328 (cp_remove_params): Likewise.
2329 * python/py-type.c (typy_legacy_template_argument): Likewise.
2331 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2332 (cp_merge_demangle_parse_infos): Declare.
2333 * cp-support.c (ignore_typedefs): New file global.
2334 (copy_string_to_obstack): New function.
2335 (inspect_type): New function.
2336 (replace_typedefs): New function.
2337 (replace_typedefs_qualified_name): New function.
2338 (cp_canonicalize_string_no_typedefs): New function.
2339 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2340 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2341 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2342 instead of cp_canonicalize_string.
2343 (find_method): Likewise.
2344 (decode_compound): Before looking up the name, call
2345 cp_canonicalize_string_no_typedefs.
2346 (decode_variable): Likewise.
2348 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2349 Tom Tromey <tromey@redhat.com>
2350 Matt Rice <ratmice@gmail.com>
2352 * python/lib/gdb/prompt.py: New file.
2353 * python/lib/gdb/command/prompt.py: New file.
2354 * NEWS: Document set extended-prompt and gdb.prompt library
2356 2011-08-16 Yao Qi <yao@codesourcery.com>
2358 * tic6x-linux-tdep.c: Move const arrays definition from here...
2359 * tic6x-tdep.c: to here ...
2361 2011-08-14 Yao Qi <yao@codesourcery.com>
2363 * NEWS: New port to Texas Instruments TMS320C6x.
2365 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2366 Bernd Schmidt <bernds@codesourcery.com>
2367 Yao Qi <yao@codesourcery.com>
2369 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2370 * solib-dsbt.c: New file. Support DSBT shared object.
2371 * tic6x-linux-tdep.c: New file.
2372 * tic6x-tdep.c: New file.
2373 * tic6x-tdep.h: New file.
2375 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2376 Yao Qi <yao@codesourcery.com>
2378 * remote.c (PACKET_qXfer_fdpic): New enum value.
2379 (remote_protocol_features): Add qXfer:fdpic:read packet.
2380 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2381 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2382 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2384 2011-08-14 Yao Qi <yao@codesourcery.com>
2386 Target description for tic6x.
2387 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2388 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2389 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2390 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2391 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2392 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2393 * features/tic6x-c64xp-linux.xml: New.
2394 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2395 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2396 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2397 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2398 * regformats/tic6x-c64xp.dat,
2399 regformats/tic6x-c62x-linux.dat: Generated.
2400 * regformats/tic6x-c64x-linux.dat,
2401 regformats/tic6x-c64xp-linux.dat: Generated.
2402 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2403 features/tic6x-*.c files.
2404 Add regformats/tic6x-*.dat files.
2406 2011-08-12 Doug Evans <dje@google.com>
2408 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2409 * python/py-symbol.c (sympy_get_type): New function.
2410 (symbol_object_getset): Add "type".
2412 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2416 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2418 (tui_show_register_group): Don't store a byte buffer in the data
2420 (tui_register_format): Skip registers with an empty name.
2421 (tui_get_register): Store a struct value in the data element's
2422 value field instead of a byte buffer holding the raw register
2423 contents. Account for optimized-out and unavailable registers
2424 when comparing register contents.
2426 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2428 * printcmd.c (current_display_number): Update comment.
2429 (disable_current_display_cleanup): Delete.
2430 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2431 catch errors thrown while evaluating and printing the display.
2433 2011-08-09 Tom Tromey <tromey@redhat.com>
2435 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2437 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2439 * elfread.c (elf_symtab_read): Rework comments.
2440 * maint.c (maintenance_command): Ditto.
2441 * somread.c (som_symtab_read): Ditto.
2442 * solib.c (solib_find, solib_map_sections, update_solib_list)
2443 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2444 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2445 (sharedlibrary_command, no_shared_libraries): Ditto.
2446 * solib-irix.c (locate_base, disable_break, enable_break)
2447 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2448 (irix_current_sos, irix_open_symbol_file_object)
2449 (irix_special_symbol_handling): Ditto.
2450 * solib-sunos.c (locate_base, first_link_map_member)
2451 (sunos_current_sos, disable_break, enable_break)
2452 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2454 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2455 (open_symbol_file_object, svr4_current_sos, enable_break)
2456 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2458 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2459 (frv_current_sos, enable_break, frv_special_symbol_handling)
2460 (frv_solib_create_inferior_hook): Ditto.
2461 * solist.h (struct target_so_ops): Extend the comments of the
2462 special_symbol_handling, current_sos and open_symbol_file_object
2465 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2467 * python/lib/gdb/__init__.py: Auto-load files in command and
2468 function directories.
2469 * python/python.c (finish_python_initialization): Use
2471 * python/lib/gdb/command/pretty_printers.py: Self register
2473 * NEWS: Document auto-loading.
2475 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2477 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2478 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2479 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2481 2011-08-08 Tom Tromey <tromey@redhat.com>
2483 * breakpoint.c (clean_up_filters): Remove.
2484 (catch_syscall_split_args): Use VEC_cleanup.
2486 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2488 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2489 (main): Uncomment "Demangling error\n".
2491 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2493 * solib-target.c (segment_attributes): Make them static.
2494 (section_attributes, library_children, library_attributes): Likewise.
2495 (library_list_children, library_list_attributes): Likesise.
2496 (library_list_elements): Likewise.
2498 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2500 * exceptions.c (throw_exception): Don't disable the current
2502 * printcmd.c (disable_current_display_cleanup): New function.
2503 (do_one_display): Install a cleanup to disable the current display
2504 if doing the display throws.
2506 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2508 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2509 initialization of the tp_new member to the corresponding
2510 gdbpy_initialize_* function.
2511 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2512 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2513 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2514 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2515 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2517 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2519 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2520 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2521 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2522 references to current_uiout.
2524 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2526 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2527 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2528 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2529 * top.c (gdb_readline_wrapper): Adjust.
2530 * tui/tui-interp.c (tui_command_loop):
2531 (_initialize_tui_interp): Don't install it.
2533 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2535 * ui-out.h (uiout): Rename to ...
2536 (current_uiout): ... this.
2537 * ui-out.c (uiout): Rename to ...
2538 (current_uiout): ... this.
2539 * ada-lang.c (print_it_exception, print_one_exception)
2540 (print_mention_exception): Adjust.
2541 * breakpoint.c (watchpoint_check): Adjust.
2542 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2543 (default_collect_info, watchpoints_info, print_one_catch_fork)
2544 (print_one_catch_vfork, print_one_catch_syscall)
2545 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2546 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2547 (print_it_watchpoint, print_mention_watchpoint)
2548 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2549 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2550 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2551 (bkpt_print_mention, momentary_bkpt_print_it)
2552 (tracepoint_print_mention, update_static_tracepoint)
2553 (tracepoints_info, save_breakpoints): Adjust.
2554 * cli-out.c (field_separator): Adjust.
2555 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2556 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2557 * frame.c (get_current_frame): Adjust.
2558 * infcmd.c (run_command_1, print_return_value): Adjust.
2559 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2560 * infrun.c (print_end_stepping_range_reason): Adjust.
2561 (print_signal_exited_reason, print_exited_reason): Adjust.
2562 (print_signal_received_reason, print_no_history_reason): Adjust.
2563 * interps.c (interp_set): Adjust.
2564 * osdata.c (info_osdata_command): Adjust.
2565 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2566 * remote-fileio.c (remote_fileio_request): Adjust.
2567 * remote.c (show_remote_cmd): Adjust.
2568 * solib.c (info_sharedlibrary_command): Adjust.
2569 * source.c (print_source_lines_base): Adjust.
2570 * stack.c (print_stack_frame): Adjust.
2571 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2572 * symfile-mem.c (add_vsyscall_page): Adjust.
2573 * symfile.c (load_progress, generic_load)
2574 (print_transfer_performance): Adjust.
2575 * thread.c (info_threads_command, restore_selected_frame)
2576 (thread_command): Adjust.
2577 * top.c (make_cleanup_restore_ui_file): Adjust.
2578 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2579 (print_one_static_tracepoint_marker): Adjust.
2580 * cli/cli-cmds.c (print_disassembly): Adjust.
2581 * cli/cli-decode.c (print_doc_line): Adjust.
2582 * cli/cli-interp.c (safe_execute_command): Adjust.
2583 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2584 (handle_redirections): Adjust.
2585 * cli/cli-script.c (show_user_1): Adjust.
2586 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2587 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2588 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2589 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2590 (mi_cmd_env_dir): Adjust.
2591 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2592 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2593 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2594 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2595 (list_args_or_locals): Adjust.
2596 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2597 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2598 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2599 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2600 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2601 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2602 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2603 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2604 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2605 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2606 (list_available_thread_groups, mi_cmd_list_thread_groups)
2607 (mi_cmd_data_list_register_names)
2608 (mi_cmd_data_list_changed_registers)
2609 (mi_cmd_data_list_register_values, get_register)
2610 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2611 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2612 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2613 (mi_execute_command, mi_load_progress): Adjust.
2614 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2615 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2617 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2618 * tui/tui-interp.c (tui_command_loop): Adjust.
2619 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2621 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2623 * exceptions.c (struct catcher): Remove saved_uiout field.
2624 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2625 no longer save/resvore the global ui_out builder.
2626 (catch_exceptions_with_msg): Save/override/restore the global
2627 ui_out builder manually instead of relying on TRY_CATCH to do it.
2628 (catch_errors): Save/restore the global ui_out builder manually
2629 instead of relying on TRY_CATCH to do it.
2630 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2632 (TRY_CATCH): Adjust.
2633 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2634 the global ui_out builder manually instead of relying on TRY_CATCH
2637 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2639 * breakpoint.c (update_global_location_list): Ensure
2640 invariant 'first loc marked not duplicated and inserted,
2641 following locs marked duplicated/not inserted' is respected
2642 for multiple locations at the same address.
2643 (unduplicated_should_be_inserted) New function.
2644 (swap_insertion) New function.
2646 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2648 * stack.c (print_frame_arguments_choices): Comment typo fix.
2650 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2653 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2654 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2655 argument. Update callers.
2657 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2660 * doublest.c (convert_doublest_to_floatformat): Pass correct
2661 mantissa length to put_field.
2663 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2665 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2666 exception_print code path.
2667 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2668 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2669 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2671 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2675 Remove, merge them into ...
2676 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2677 variable args and its initialization.
2678 (struct print_args_args, print_args_stub): Remove, merge them into
2680 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2682 (do_gdb_disassembly): ... here. Remove variable args and its
2684 (print_frame): Remove variable args and its initialization, new
2685 variable gdbarch and numargs (from print_args_stub), inline here
2686 print_args_stub with a TRY_CATCH.
2687 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2689 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2690 New variable e, remove variable btargs and its initialization.
2692 2011-08-01 Tristan Gingold <gingold@adacore.com>
2694 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2696 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2698 * breakpoint.c (insert_bp_location): Document return value.
2699 (insert_breakpoint_locations): Fix documentation.
2700 (remove_breakpoints): Add documentation.
2702 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2704 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2705 argument. Update callers.
2707 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2709 * stack.c (print_frame_info): Comment typo fix.
2711 2011-07-29 Sterling Augustine <saugustine@google.com>
2713 * MAINTAINERS (Write After Approval): Add myself to the list.
2715 2011-07-29 Tom Tromey <tromey@redhat.com>
2717 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2718 (library_list_start_segment): Update.
2719 (library_list_start_section): Update.
2721 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2723 * varobj.c (value_get_print_value): Move hint check later into the
2724 function. Comment function. Free thevalue before reusing it.
2726 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 Pedro Alves <pedro@codesourcery.com>
2729 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2731 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2732 Assert the result kind.
2733 * value.h (value_one): Remove parameter lv.
2735 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2737 Fix crash on lval_computed values.
2738 * valops.c (value_zero): Use not_lval for lval_computed.
2740 2011-07-27 Tom Tromey <tromey@redhat.com>
2742 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2743 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2745 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2747 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2748 "ptype" by their typedefs difference.
2750 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2752 * dwarf2expr.c (ctx_no_read_reg): New function.
2753 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2754 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2755 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2756 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2758 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2760 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2761 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2763 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2764 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2765 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2766 (ctx_no_get_base_type): Move the functions here.
2767 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2768 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2769 (ctx_no_get_base_type): New declarations.
2771 2011-07-27 Tom Tromey <tromey@redhat.com>
2773 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2775 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2776 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2778 2011-07-26 Sterling Augustine <saugustine@google.com>
2780 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2782 (dump_bfd_file): Likewise.
2784 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2786 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2787 (remote_hw_watchpoint_length_limit): New variable.
2788 (_initialize_remote) add set,show cmds for this new variable.
2789 * gdb.texinfo: document these new commands.
2790 * NEWS: Mention these new commands.
2792 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2794 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2795 true for software watchpoints.
2797 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2801 2011-07-26 Tom Tromey <tromey@redhat.com>
2803 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2804 * dwarf2read.c (read_indirect_string_at_offset): New function.
2805 (read_indirect_string): Use it.
2806 (dwarf_decode_macro_bytes): New function, taken from
2807 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2808 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2809 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2811 (struct dwarf2_per_objfile) <macro>: New field.
2812 (dwarf2_elf_names): Add .debug_macro.
2813 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2814 (dwarf2_locate_sections): Handle new section.
2815 (read_file_scope): Handle DW_AT_GNU_macros.
2816 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2818 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2820 * NEWS: Mention dcache configuration.
2821 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2822 (dcache_size, dcache_line_size): New variables.
2823 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2824 (struct dcache_block): Make it expandable.
2825 (struct dcache_struct): New field.
2826 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2827 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2828 (dcache_poke_byte, dcache_print_line): Adjust.
2829 (set_dcache_size, set_dcache_line_size): New functions.
2830 (set_dcache_command, show_dcache_command): New functions.
2831 (_initialize_dcache): Add new commands.
2833 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2835 * progspace.h (struct program_space): Add solib_add_generation.
2836 * infcmd.c (post_create_inferior): Only call solib_add if not
2838 * solib.c (solib_add): Increment solib_add_generation.
2840 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2842 Fix implicit pointer offsets.
2843 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2846 2011-07-25 Tom Tromey <tromey@redhat.com>
2848 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2850 (ada_exception_sal): Make 'ops' const.
2851 (ada_decode_exception_location): Likewise.
2852 (ada_decode_assert_location): Likewise.
2853 (catch_assert_command): Update.
2854 (catch_ada_exception_command): Update.
2855 (create_ada_exception_catchpoint): Make 'ops' const.
2856 * breakpoint.c (set_raw_breakpoint_without_location)
2857 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2859 (create_internal_breakpoint): Update.
2860 (init_raw_breakpoint_without_location): Make 'ops' const.
2861 (init_raw_breakpoint, init_catchpoint)
2862 (create_fork_vfork_event_catchpoint)
2863 (create_syscall_event_catchpoint, init_breakpoint_sal)
2864 (create_breakpoint_sal, create_breakpoints_sal)
2865 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2866 * breakpoint.h (struct breakpoint) <ops>: Now const.
2867 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2870 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2872 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2874 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2876 * breakpoint.h (print_recreate_thread): Declare.
2877 (struct breakpoint): Move step_count, pass_count,
2878 number_on_target, static_trace_marker_id,
2879 static_trace_marker_id_idx ...
2880 (struct tracepoint): ... to this new struct.
2881 (get_tracepoint, get_tracepoint_by_number_on_target)
2882 (get_tracepoint_by_number): Change return type to struct
2884 * breakpoint.c (is_tracepoint_type): New, factored out from
2886 (is_tracepoint): Adjust.
2887 (print_one_breakpoint_location): Cast to struct tracepoint as
2888 necessary, and adjust.
2889 (print_recreate_catch_fork, print_recreate_catch_vfork)
2890 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2891 print_recreate_thread.
2892 (init_breakpoint_sal): New, factored out from
2893 create_breakpoint_sal.
2894 (create_breakpoint_sal): Reimplement.
2895 (create_breakpoint): Allocate a struct tracecepoint if the caller
2896 wanted a tracepoint. Use init_breakpoint_sal and
2898 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2899 (print_recreate_masked_watchpoint)
2900 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2901 (tracepoint_print_one_detail): Adjust.
2902 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2903 Dump the pass count here.
2904 (update_static_tracepoint): Adjust.
2905 (addr_string_to_sals): Adjust.
2906 (create_tracepoint_from_upload): Adjust. Change return type to
2907 struct tracepoint pointer.
2908 (trace_pass_set_count): Change parameter type to struct tracepoint
2909 pointer, and adjust.
2910 (trace_pass_command): Adjust.
2911 (get_tracepoint, get_tracepoint_by_number_on_target)
2912 (get_tracepoint_by_number): Change return type to struct
2913 tracepoint pointer, and adjust.
2914 (print_recreate_thread): New, factored out from save_breakpoints.
2915 (save_breakpoints): Don't print thread and task and passcount
2917 * remote.c (remote_download_tracepoint): Adjust.
2918 * tracepoint.c (trace_actions_command, validate_actionline)
2919 (start_tracing, tfind_1, trace_find_tracepoint_command)
2920 (trace_dump_command): Adjust.
2921 (find_matching_tracepoint): Change return type to struct
2922 tracepoint pointer, and adjust.
2923 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2924 (tfile_trace_find, tfile_fetch_registers): Adjust.
2925 * tracepoint.h (create_tracepoint_from_upload): Change return type
2926 to struct tracepoint pointer.
2927 * ada-lang.c (print_recreate_exception): Call
2928 print_recreate_thread.
2929 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2931 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2933 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2934 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2935 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2936 watchpoint_thread, watchpoint_triggered ...
2937 (struct watchpoint): ... to this new struct.
2938 (is_watchpoint): Declare.
2939 (install_breakpoint): Add new `internal' parameter.
2940 * breakpoint.c (is_watchpoint): Delete declaration.
2941 (set_breakpoint_condition): Handle watchpoints.
2942 (is_watchpoint): Make public.
2943 (watchpoint_in_thread_scope): Change parameter type to struct
2945 (watchpoint_del_at_next_stop): Change parameter type to struct
2946 watchpoint. Remove assertion. Adjust.
2947 (update_watchpoint): Ditto.
2948 (insert_breakpoints, breakpoint_init_inferior)
2949 (watchpoints_triggered, watchpoint_check)
2950 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2951 (bpstat_stop_status, print_one_breakpoint_location)
2952 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2953 to struct watchpoint as necessary, and adjust.
2954 (install_breakpoint): Add `internal' argument. If true, don't
2955 mention the new breakpoint. Use set_breakpoint_number.
2956 (create_fork_vfork_event_catchpoint)
2957 (create_syscall_event_catchpoint): Adjust.
2958 (dtor_watchpoint): New.
2959 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2960 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2961 (print_it_watchpoint, print_mention_watchpoint)
2962 (print_recreate_watchpoint, insert_masked_watchpoint)
2963 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2964 (print_one_detail_masked_watchpoint)
2965 (print_mention_masked_watchpoint)
2966 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2967 necessary, and adjust.
2968 (watch_command_1): Allocate and initialize a struct watchpoint
2969 instead of a struct breakpoint. Use install_breakpoint.
2970 (catch_exec_command_1): Adjust.
2971 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2973 (delete_breakpoint, enable_breakpoint_disp)
2974 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2975 as necessary, and adjust.
2976 (initialize_breakpoint_ops): Install dtor_watchpoint as
2977 watchpoints' dtor method.
2978 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2979 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2980 to struct watchpoint as necessary, and adjust.
2982 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2984 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2985 the the base class ops table.
2986 (catch_exception_breakpoint_ops)
2987 (catch_exception_unhandled_breakpoint_ops)
2988 (catch_assert_breakpoint_ops): Don't statically initialize.
2989 (initialize_ada_catchpoint_ops): New.
2990 (_initialize_ada_language): Call it.
2991 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2992 (bkpt_breakpoint_ops): Forward declare.
2993 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2994 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2995 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2996 (masked_watchpoint_breakpoint_ops)
2997 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2998 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2999 base class ops table.
3000 (null_re_set, null_check_status, null_works_in_software_mode)
3001 (null_resources_needed, null_print_one_detail): Delete.
3002 (bkpt_dtor): Rename to ...
3003 (base_breakpoint_dtor): ... this. Make static.
3004 (bkpt_allocate_location): Rename to ...
3005 (base_breakpoint_allocate_location): ... this. Make static.
3006 (base_breakpoint_re_set): New.
3007 (internal_error_pure_virtual_called): New.
3008 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3009 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3010 (base_breakpoint_works_in_software_mode)
3011 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3012 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3013 (base_breakpoint_print_recreate): New functions.
3014 (base_breakpoint_ops): New global.
3015 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3016 (bkpt_breakpoint_hit): Make static.
3017 (bkpt_check_status): Delete.
3018 (bkpt_resources_needed): Make static.
3019 (bkpt_works_in_software_mode): Delete.
3020 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3022 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3023 (momentary_breakpoint_ops): Don't statically initialize.
3024 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3026 (tracepoint_insert_location, tracepoint_remove_location)
3027 (tracepoint_check_status, tracepoint_works_in_software_mode)
3028 (tracepoint_print_it): Delete.
3029 (tracepoint_breakpoint_ops): Don't statically initialize.
3030 (initialize_breakpoint_ops): New.
3031 (_initialize_breakpoint): Call it.
3032 * breakpoint.h (null_re_set, null_works_in_software_mode)
3033 (null_resources_needed, null_check_status, null_print_one_detail):
3034 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3035 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3036 (bkpt_check_status, bkpt_resources_needed)
3037 (bkpt_works_in_software_mode, bkpt_print_it)
3038 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3039 Delete declarations.
3040 (initialize_breakpoint_ops): Declare.
3042 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3044 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3045 (momentary_bkpt_print_it): Simplify.
3047 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3049 Split internal, momentary and user breakpoints breakpoint_ops
3052 * breakpoint.c (internal_breakpoint_ops)
3053 (momentary_breakpoint_ops): Forward declare.
3054 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3055 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3056 (create_overlay_event_breakpoint)
3057 (create_std_terminate_master_breakpoint)
3058 (create_exception_master_breakpoint): Create breakpoints with
3059 internal_breakpoint_ops vtable.
3060 (set_longjmp_breakpoint): Create momentary breakpoints with
3061 momentary_breakpoint_ops vtable, using
3062 momentary_breakpoint_from_master.
3063 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3064 (create_solib_event_breakpoint): Create breakpoints with
3065 internal_breakpoint_ops vtable.
3066 (set_momentary_breakpoint): Create breakpoints with
3067 momentary_breakpoint_ops vtable.
3068 (momentary_breakpoint_from_master): New, factored out from
3069 clone_momentary_breakpoint.
3070 (clone_momentary_breakpoint): Adjust.
3071 (watch_command_1): Create scope breakpoints with
3072 momentary_breakpoint_ops vtable.
3073 (bkpt_re_set): Remove handling of internal and momentary
3075 (bkpt_print_mention, bkpt_print_recreate): New.
3076 (bkpt_breakpoint_ops): Adjust.
3077 (internal_bkpt_re_set, internal_bkpt_check_status)
3078 (internal_bkpt_print_it, internal_bkpt_print_mention)
3079 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3080 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3081 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3082 (momentary_bkpt_print_recreate): New.
3083 (momentary_breakpoint_ops): New.
3085 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3087 Implement most breakpoint_ops methods for all breakpoint types,
3088 and move the default handlings to the proper callbacks.
3090 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3091 works_in_software_mode method.
3092 (insert_bp_location): Go through breakpoint_ops->insert_location
3093 for software and hardware watchpoints.
3094 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3096 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3097 for software and hardware watchpoints.
3098 (print_it_typical): Delete.
3099 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3101 (watchpoint_check): Adjust comment.
3102 (bpstat_check_location): Simply always call the breakpoint's
3103 breakpoint_hit method.
3104 (bpstat_stop_status): Always call the breakpoint's check_status
3105 method. Remove special cases for watchpoints and internal event
3106 breakpoints from here (moved to the check_status implementations).
3107 (print_one_breakpoint_location): Assume b->ops is never NULL.
3108 Remove static tracepoint marker id printing from here (moved to
3109 the print_one_detail callback implementation of tracepoints).
3110 (init_bp_location): Assert OPS is never NULL.
3111 (allocate_bp_location): Always call the breakpoint's
3112 allocate_location method, and remove the default code from here.
3113 (free_bp_location): Always call the location's dtor method, and
3114 remove the default code from here.
3115 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3116 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3117 parameter. Pass it down.
3118 (set_raw_breakpoint): Ditto.
3119 (print_it_catch_fork): Adjust to take a bpstat as argument.
3120 (catch_fork_breakpoint_ops): Install methods.
3121 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3122 (catch_vfork_breakpoint_ops): Install methods.
3123 (dtor_catch_syscall): Call the base dtor.
3124 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3125 (catch_syscall_breakpoint_ops): Install methods.
3126 (dtor_catch_exec): Call the base dtor.
3127 (print_it_catch_exec): Adjust to take a bpstat as argument.
3128 (catch_exec_breakpoint_ops): Install methods.
3129 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3130 the breakpoint's resources_needed method, and remove the default
3132 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3134 (clone_momentary_breakpoint): Clone the original's ops.
3135 (mention): Always call the breakpoint's print_mention method, and
3136 remove the default code from here.
3137 (create_breakpoint_sal): Adjust to pass the ops to
3138 set_raw_breakpoint rather than setting it manually.
3139 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3140 ops to set_raw_breakpoint_without_location rather than setting it
3142 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3143 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3144 (ranged_breakpoint_ops): Install methods.
3145 (break_range_command): Adjust to pass the ops to
3146 set_raw_breakpoint rather than setting it manually.
3147 (re_set_watchpoint, breakpoint_hit_watchpoint)
3148 (check_status_watchpoint, resources_needed_watchpoint)
3149 (works_in_software_mode_watchpoint, print_it_watchpoint)
3150 (print_mention_watchpoint, print_recreate_watchpoint): New
3152 (watchpoint_breakpoint_ops): Install new methods.
3153 (print_it_masked_watchpoint): New function.
3154 (masked_watchpoint_breakpoint_ops): Install new methods.
3155 (watch_command_1): Adjust to pass the right breakpoint_ops to
3156 set_raw_breakpoint_without_location rather than setting it
3157 manually later. Record the current pspace.
3158 (print_it_exception_catchpoint): Adjust to take a bpstat as
3160 (gnu_v3_exception_catchpoint_ops): Install new methods.
3161 (say_where): New function.
3162 (null_re_set, null_check_status, null_works_in_software_mode)
3163 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3165 (bp_location_ops): New global.
3166 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3167 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3168 (bkpt_check_status, bkpt_resources_needed)
3169 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3170 (bkpt_print_recreate): New functions.
3171 (bkpt_breakpoint_ops): New global.
3172 (tracepoint_re_set, tracepoint_insert_location)
3173 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3174 (tracepoint_check_status, tracepoint_works_in_software_mode)
3175 (tracepoint_print_it, tracepoint_print_one_detail)
3176 (tracepoint_print_mention, tracepoint_print_recreate): New
3178 (tracepoint_breakpoint_ops): New global.
3179 (delete_breakpoint): Always call the breakpoint's dtor method, and
3180 remove the default handling from here.
3181 (breakpoint_re_set_default): Make static.
3182 (breakpoint_re_set_one): Always call the breakpoints re_set
3183 method, and remove the default handling from here.
3184 (trace_command, ftrace_command, strace_command)
3185 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3186 to create_breakpoint.
3187 (save_breakpoints): Always call the breakpoint's print_recreate
3188 method, and remove the default handling from here.
3190 * ada-lang.c (dtor_exception): Call the base dtor.
3191 (re_set_exception): Call the base method.
3192 (print_it_exception, print_it_catch_exception): Adjust to take a
3194 (catch_exception_breakpoint_ops): Install methods.
3195 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3197 (catch_exception_unhandled_breakpoint_ops): Install methods.
3198 (print_it_catch_assert): Adjust to take a bpstat as argument.
3199 (catch_assert_breakpoint_ops): Install methods.
3201 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3202 to take a bpstat as argument.
3203 (enum print_stop_action): Add describing comments to each enum
3205 (breakpoint_re_set_default): Delete declaration.
3206 (null_re_set, null_works_in_software_mode, null_resources_needed)
3207 (null_check_status, null_print_one_detail): Declare.
3208 (bkpt_breakpoint_ops): Declare.
3209 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3210 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3211 (bkpt_check_status, bkpt_resources_needed)
3212 (bkpt_works_in_software_mode, bkpt_print_it)
3213 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3216 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3217 bkpt_breakpoint_ops.
3218 * python/py-breakpoint.c (bppy_init): Ditto.
3220 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3222 * MAINTAINERS (Write After Approval): Add myself to the list.
3224 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3226 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3228 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3230 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3231 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3232 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3234 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3235 (struct i386_debug_reg_state): New.
3236 (i386_init_dregs): New.
3238 (i386_cleanup_dregs): Use i386_init_dregs.
3239 (i386_show_dr): Add state parameter and adjust.
3240 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3242 (i386_remove_aligned_watchpoint): Likewise.
3243 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3244 (i386_update_inferior_debug_regs): New.
3245 (i386_insert_watchpoint): Work on a local mirror of the debug
3246 registers, and only update the inferior on success.
3247 (i386_remove_watchpoint): Ditto.
3248 (i386_region_ok_for_watchpoint): Adjust.
3249 (i386_stopped_data_address): Adjust.
3250 (i386_insert_hw_breakpoint): Adjust.
3251 (i386_remove_hw_breakpoint): Adjust.
3253 2011-07-22 Tom Tromey <tromey@redhat.com>
3255 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3256 from amd64_pseudo_register_read. Change arguments. Call
3257 mark_value_bytes_unavailable when needed.
3258 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3259 set_gdbarch_pseudo_register_read.
3260 * sentinel-frame.c (sentinel_frame_prev_register): Use
3261 regcache_cooked_read_value.
3262 * regcache.h (regcache_cooked_read_value): Declare.
3263 * regcache.c (regcache_cooked_read_value): New function.
3264 (regcache_cooked_read): Call
3265 gdbarch_pseudo_register_read_value if available.
3266 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3267 (i386_pseudo_register_read): Remove.
3268 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3269 i386_pseudo_register_read. Change arguments. Call
3270 mark_value_bytes_unavailable when needed.
3271 (i386_pseudo_register_read_value): New function.
3272 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3273 not set_gdbarch_pseudo_register_read.
3274 * gdbarch.sh (pseudo_register_read_value): New method.
3275 * gdbarch.c, gdbarch.h: Rebuild.
3276 * findvar.c (value_from_register): Call get_frame_register_value.
3278 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3280 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3282 (display_gdb_prompt): Likewise.
3283 (change_annotation_level): Likewise.
3284 (push_prompt): Likewise.
3285 (pop_prompt): Likewise.
3286 (handle_stop_sig): Use get_prompt with a level.
3287 * top.c (command_loop): Use get_prompt with a level.
3288 (set_async_annotation_level): Use set_prompt with a level.
3289 (get_prefix): New function.
3290 (set_prefix): Ditto.
3291 (set_suffix): Ditto.
3292 (get_suffix): Ditto.
3293 (get_prompt): Accept a level argument.
3294 (set_prompt): Accept a level argument. Free old prompts. Set
3295 new_async_prompt if level is 0.
3296 (init_main): Use set_prompt with a level. Do not set
3298 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3299 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3300 Modify set_prompt, get_prompt to account for levels.
3301 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3303 * python/python.c (before_prompt_hook): Use set_prompt.
3305 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3307 * defs.h: Add guard against inclusion in gdbserver.
3308 (struct ptid, ptid_t): Move to common/ptid.h.
3309 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3310 xsnprintf, internal_error): Move to common/common-utils.h.
3312 * gdb_assert.h: Move into common/ sub-directory.
3313 * gdb_locale.h: Ditto.
3314 * gdb_dirent.h: Ditto.
3315 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3316 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3317 Move into common/ptid.h.
3318 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3319 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3320 Change nomem to malloc_failure.
3321 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3322 * utils.c (nomem): Rename to malloc_failure.
3323 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3324 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3325 (gdb_buildargv): Change nomem to malloc_failure.
3326 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3327 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3328 ptid_is_pid): Move into common/ptid.c.
3329 (initialize_infrun): Delete initialization of null_ptid and
3331 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3332 linux_common_xfer_osdata.
3333 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3334 common/ptid.c and common/buffer.c.
3335 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3336 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3337 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3338 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3340 * common/gdb_assert.h: New.
3341 * common/gdb_dirent.h: New.
3342 * common/gdb_locale.h: New.
3343 * common/buffer.c: New.
3344 * common/buffer.h: New.
3345 * common/ptid.c: New.
3346 * common/ptid.h: New.
3347 * common/xml-utils.c: New.
3348 * common/xml-utils.h: New.
3349 * common/common-utils.c: New.
3350 * common/common-utils.h: New.
3351 * common/linux-osdata.c: New.
3352 * common/linux-osdata.h: New.
3353 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3354 * config/arm/linux.mh (NATDEPFILES): Ditto.
3355 * config/i386/linux.mh (NATDEPFILES): Ditto.
3356 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3357 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3358 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3359 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3360 * config/mips/linux.mh (NATDEPFILES): Ditto.
3361 * config/pa/linux.mh (NATDEPFILES): Ditto.
3362 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3363 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3364 * config/s390/s390.mh (NATDEPFILES): Ditto.
3365 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3366 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3367 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3369 2011-07-21 Matt Rice <ratmice@gmail.com>
3371 * NEWS: Add info macros and info definitions commands.
3373 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3375 * NEWS: Document Python prompt substitution hook.
3377 2011-07-18 Matt Rice <ratmice@gmail.com>
3380 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3381 * macrotab.c (foreach_macro): Ditto.
3382 (foreach_macro_in_scope): Ditto.
3383 * macrocmd.c (print_macro_callback): New function.
3384 (info_macro_command): Move some code to print_macro_definition.
3385 (print_macro_definition): New function.
3386 (print_one_macro): Add new arguments to callback.
3387 (info_definitions_command): New function.
3388 (info_macros_command): Ditto.
3389 (_initialize_macrocmd): Add info macros and info definitions commands.
3390 * symtab.c (add_macro_name): Add new arguments to callback.
3392 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3393 Tom Tromey <tromey@redhat.com>
3395 * top.c (set_prompt): Rewrite to free previous prompt, free
3396 asynch_new_prompt and set both on new prompts.
3397 * event-top.c (display_gdb_prompt): Add prompt substitution
3399 * python/python.c (before_prompt_hook): New function.
3401 2011-07-20 Matt Rice <ratmice@gmail.com>
3403 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3404 arguments to store_unsigned_integer.
3406 2011-07-20 Tom Tromey <tromey@redhat.com>
3408 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3409 in some declaration-only cases.
3411 2011-07-18 Tom Tromey <tromey@redhat.com>
3414 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3415 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3416 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3417 <debug_type_section>: New field.
3418 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3419 (load_cu): Use appropriate section.
3420 (create_signatured_type_table_from_index): Add 'section'
3422 (dwarf2_read_index): Only allow a single .debug_types section.
3423 (dw2_get_file_names): Use appropriate section.
3424 (read_type_comp_unit_head): Add 'section' argument.
3425 (create_debug_types_hash_table): Loop over all .debug_types
3427 (init_cu_die_reader): Use appropriate section.
3428 (process_psymtab_comp_unit, load_partial_comp_unit)
3429 (load_full_comp_unit, read_die_and_children, find_partial_die)
3430 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3431 (lookup_signatured_type_at_offset): Add 'section' argument.
3432 (read_signatured_type_at_offset): Add 'sect' argument.
3433 (read_signatured_type): Use appropriate section.
3434 (set_die_type, get_die_type_at_offset): Update.
3435 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3437 (write_psymtabs_to_index): Don't allow index with more than one
3438 .debug_types section.
3440 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 Fix crash if referenced CU is aged out.
3443 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3444 xfree of block.data.
3445 (indirect_pieced_value): New variable back_to, use to for xfree of
3447 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3449 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3450 (load_cu): New function from ...
3451 (dw2_do_instantiate_symtab): ... the code here ...
3452 (process_full_comp_unit): ... and here.
3453 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3456 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3461 2011-07-19 Gary Benson <gbenson@redhat.com>
3463 * infrun.c (struct execution_control_state): New member
3464 stop_func_filled_in.
3465 (clear_stop_func, fill_in_stop_func): New functions.
3466 (handle_inferior_event): Call clear_stop_func rather than
3467 manipulating the execution control state directly.
3468 Call fill_in_stop_func lazily as required rather than
3469 directly calling find_pc_partial_function in all cases.
3471 2011-07-18 Tom Tromey <tromey@redhat.com>
3473 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3474 checking for variable-sized array.
3476 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3478 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3479 of supported languages.
3480 * varobj.c: Add top definitions and basic implementation of the
3481 following callbacks: ada_number_of_children, ada_name_of_variable,
3482 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3483 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3484 (languages): Register Ada-specific callbacks.
3485 (variable_language): Add the Ada case in the language setter switch.
3487 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3489 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3491 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3494 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3495 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3496 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3497 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3498 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3499 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3500 (struct dwarf_expr_context_funcs): New, move here methods from ...
3501 (struct dwarf_expr_context): ... here. New fields funcs.
3502 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3503 (dwarf_expr_ctx_funcs): New.
3504 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3505 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3506 (needs_frame_ctx_funcs): New.
3507 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3509 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3511 * MAINTAINERS (Write After Approval): Add myself to the list.
3513 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3515 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3516 that CIE pointer of an FDE really points to a CIE .
3518 2011-07-15 Hui Zhu <teawater@gmail.com>
3520 * remote.c (remote_get_trace_status): Add comments.
3522 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3524 Code cleanup - constify struct lval_funcs.
3525 * dwarf2loc.c (pieced_value_funcs): Make it const.
3526 * infrun.c (siginfo_value_funcs): Likewise.
3527 * opencl-lang.c (opencl_value_funcs): Likewise.
3528 * valops.c (value_assign, value_ind): Make the funcs variable const.
3529 * value.c (struct value): Make location.computed.funcs target const.
3530 Rearrange the comments.
3531 (allocate_computed_value): Make the funcs parameter target const.
3532 (value_computed_funcs): Return the funcs target const.
3533 (value_free, value_copy, set_value_component_location): Make the funcs
3535 * value.h (allocate_computed_value): Make the funcs parameter target
3537 (value_computed_funcs): Return the funcs target const.
3538 * windows-tdep.c (tlb_value_funcs): Make it const.
3540 2011-07-14 Hui Zhu <teawater@gmail.com>
3542 * remote.c (remote_get_trace_status): Initialize p.
3544 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 * remote.c (remote_get_trace_status): New variable ex. Put
3548 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3550 2011-07-13 Tom Tromey <tromey@redhat.com>
3552 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3553 value_from_contents for final conversion.
3555 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3558 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3559 Indent prototypes so they do not get into tags.
3561 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3563 Code cleanup making also optimized out values lazy.
3564 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3565 allocate_optimized_out_value. Twice.
3566 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3567 * findvar.c (read_var_value): Likewise.
3568 * value.c (allocate_optimized_out_value): New function.
3569 * value.h (allocate_optimized_out_value): New declaration.
3571 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3573 Fix occasional crash of CTRL-C during DWARF read in.
3574 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3576 2011-07-11 Tom Tromey <tromey@redhat.com>
3578 * regcache.c (struct regcache_descr): Fix typo.
3579 * i387-tdep.c (i387_supply_xsave): Fix typo.
3581 2011-07-11 Tom Tromey <tromey@redhat.com>
3583 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3584 (read_file_scope, read_type_unit_scope): Use it.
3586 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3591 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3594 * python/python.c: Set gdbpy_should_print_stack default to off.
3595 (set_python): Deprecate maint set python print-stack to
3597 (_initialize_python): Deprecate maint set/show python print-stack.
3598 Add new prefix command, python. Add new setting, print-backtrace.
3599 * NEWS: Document set python print-stack. Document default change.
3601 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3603 * python/py-inferior.c (infpy_dealloc): New function.
3604 (inferior_to_inferior_object): Return a new object, or a
3605 new reference to the existing object.
3606 (find_thread_object): Cleanup references to inferior.
3607 (delete_thread_object): Ditto.
3608 * python/py-infthread.c (create_thread_object): Do not increment
3609 inferior reference count.
3611 2011-07-08 Tom Tromey <tromey@redhat.com>
3613 * dwarf2loc.c (locexpr_regname): New function.
3614 (locexpr_describe_location_piece): Use it.
3615 (disassemble_dwarf_expression): Add per_cu argument. Use
3617 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3618 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3620 (locexpr_describe_location_1): Add per_cu argument.
3621 (locexpr_describe_location): Update.
3622 (loclist_describe_location): Update.
3624 2011-07-08 Tom Tromey <tromey@redhat.com>
3626 * dwarf2expr.c (execute_stack_op): Add QUIT.
3628 2011-07-07 Hui Zhu <teawater@gmail.com>
3631 2011-07-06 Hui Zhu <teawater@gmail.com>
3632 * remote.c (remote_start_remote): Add TRY_CATCH for
3633 remote_get_trace_status.
3634 * tracepoint.c (disconnect_tracing): Ditto.
3636 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3638 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3639 variables as signed, not unsigned.
3641 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3643 * jit.c (jit_inferior_init): Reformat forward declaration.
3645 2011-07-06 Matt Rice <ratmice@gmail.com>
3647 * MAINTAINERS (Write After Approval): Add myself to the list.
3649 2011-07-06 Hui Zhu <teawater@gmail.com>
3651 * remote.c (remote_start_remote): Add TRY_CATCH for
3652 remote_get_trace_status.
3653 * tracepoint.c (disconnect_tracing): Ditto.
3655 2011-07-05 Tom Tromey <tromey@redhat.com>
3657 * symtab.c (operator_chars): Now static.
3658 * linespec.c (operator_chars): Don't declare.
3660 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3662 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3664 2011-07-05 Tom Tromey <tromey@redhat.com>
3666 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3667 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3668 (TYPE_CPLUS_REALLY_JAVA): New macro.
3669 * dwarf2read.c (process_structure_scope): Set
3670 TYPE_CPLUS_REALLY_JAVA.
3672 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3674 * ada-lang.c: Fix typos.
3675 * amd64-tdep.c: Likewise.
3676 * breakpoint.c: Likewise.
3677 * cli/cli-decode.c: Likewise.
3678 * findcmd.c: Likewise.
3679 * inline-frame.c: Likewise.
3680 * mi/mi-main.c: Likewise.
3681 * minsyms.c: Likewise.
3682 * monitor.c: Likewise.
3683 * monitor.h: Likewise.
3684 * prologue-value.c: Likewise.
3685 * reverse.c: Likewise.
3686 * s390-tdep.c: Likewise.
3688 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3690 * jit.c (jit_inferior_init): Forward declare.
3691 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3693 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3695 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3697 2011-07-04 Tristan Gingold <gingold@adacore.com>
3699 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3700 (tcb_fieldno): Add activation_link field.
3701 (get_known_tasks_addr): Moved and rewritten.
3702 (get_tcb_types_info): Set activation_link field.
3703 (read_known_tasks_array): Add parameter. Rewritten.
3704 (read_known_tasks_list): New function.
3705 (read_known_tasks): New function.
3706 (ada_build_task_list): Call read_known_tasks instead of
3707 read_known_tasks_array.
3708 * ravenscar-thread.c: Add first_task_name constant.
3709 (has_ravenscar_runtime): Check for task list too.
3711 2011-07-04 Tristan Gingold <gingold@adacore.com>
3713 * ada-tasks.c: Renames fieldno to actb_fieldno.
3714 (ada_get_task_number): Indentation.
3715 (get_tcb_types_info): Remove all parameters. Write directly
3717 (ptid_from_atcb_common): Adjust.
3718 (read_atcb): Adjust.
3720 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3722 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3724 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3726 * ui-out.c (ui_out_field_core_addr): Mention that the function
3727 description is in the header file.
3728 * ui-out.h (ui_out_field_core_addr): Document function.
3730 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3732 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3733 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3735 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3737 * symtab.c (expand_line_sal): Remove empty line.
3739 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3741 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3742 same way as ELFOSABI_NONE.
3743 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3745 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3747 * breakpoint.c: Fix typos in comments.
3748 * linespec.c: Likewise.
3749 * symtab.c: Likewise.
3751 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3753 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3754 section in separate object files.
3756 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3758 Fix false GCC warning.
3759 * linespec.c (decode_line_1): Initialize values.
3761 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3763 * linespec.c (find_method): Accept the function type automatically only
3764 if it was specified with parameter types.
3766 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3768 Stop on first linespec terminator instead of eating what we can.
3769 * linespec.c (is_linespec_boundary): New function.
3770 (name_end): Remove function.
3771 (keep_name_info): New parameter on_boundary, replace the body.
3772 (decode_line_1): Provide the parameter to keep_name_info.
3773 (decode_compound): Likewise. Drop the trailing java return type
3776 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3778 Fall back linespec to minimal symbols.
3779 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3780 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3781 (find_method, symbol_found): Change error to cplusplus_error.
3783 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3785 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3787 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3788 Tom Tromey <tromey@redhat.com>
3790 * dwarf2read.c (check_physname): New variable.
3791 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3792 (show_check_physname): New function.
3793 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3795 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3797 * machoread.c (macho_symfile_read): Delete OBE comment.
3799 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3801 * machoread.c (struct macho_oso_data): Delete.
3802 (current_oso): Delete.
3803 (macho_relocate_common_syms): New function, mostly extracted
3805 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3806 Remove code that sets and unset current_oso.
3807 (macho_symfile_relocate): Delete handling of common symbols,
3808 now moved to macho_relocate_common_syms.
3810 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3812 * darwin-nat.c (darwin_ptrace): Add documentation.
3813 Set errno to zero before calling ptrace. If ptrace returns
3814 -1 and errno is zero, then change then return zero.
3815 (darwin_kill_inferior): Issue a warning instead of triggering
3816 a failed assertion when the PT_KILL ptrace operations returned
3819 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3821 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3822 only when inf->private->no_ptrace.
3824 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3826 * ada-lang.c (print_it_exception): Print temporary catchpoints
3827 as "Temporary catchpoint".
3828 (print_mention_exception): Likewise.
3830 2011-07-01 Tom Tromey <tromey@redhat.com>
3832 * jv-lang.c (java_language_defn): Use java_printchar,
3834 (java_get_encoding): New function.
3835 (java_emit_char): Use generic_emit_char.
3836 (java_printchar): New function.
3837 (java_printstr): Likewise.
3839 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3841 * ada-typeprint.c (print_record_type): If unable to decode
3842 the name of the parent type, use the encoded name.
3844 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3846 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3847 pointer to constrained packed array type output.
3848 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3849 packed array output.
3851 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3853 * ada-typeprint.c (print_array_type): removed if condition on show
3854 being negative for bounds printing.
3856 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3858 * ada-lang.c (ada_identical_enum_types_p): New function.
3859 (symbols_are_identical_enums): New function.
3860 (remove_extra_symbols): Do nothing if NSYMS < 2.
3861 Use symbols_are_identical_enums.
3863 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3865 * ada-valprint.c (ada_value_print): Handle typedefs.
3867 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3869 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3871 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3873 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3874 (decode_constrained_packed_array): Likewise.
3875 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3877 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3879 * ada-exp.y (convert_char_literal): Handle typedef types.
3881 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3883 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3885 2011-06-30 Tom Tromey <tromey@redhat.com>
3887 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3888 * valops.c (find_overload_match): Call do_cleanups on early exit
3890 * solib.c (solib_find): Call do_cleanups on early exit path.
3892 2011-06-30 Tom Tromey <tromey@redhat.com>
3894 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3895 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3896 return paths. Defer final do_cleanups until last return.
3897 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3900 2011-06-30 Tom Tromey <tromey@redhat.com>
3902 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3904 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3906 * MAINTAINERS (Write After Approval): Add myself to the list.
3908 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3910 Disable epilogue unwinders on recent GCCs.
3911 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3912 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3913 * dwarf2read.c (process_full_comp_unit): Initialize
3914 EPILOGUE_UNWIND_VALID.
3915 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3916 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3917 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3919 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3921 Code cleanup - reformatting.
3922 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3923 (producer_is_gcc_ge_4): ... here, change the return value.
3924 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3927 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3929 Fix non-only rename list for Fortran modules import.
3930 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3931 cp_add_using_directive caller.
3932 (cp_add_using_directive): New parameter excludes, describe it. New
3933 variables ix and param. Compare if also excludes match. Allocate NEW
3934 with variable size, initialize EXCLUDES there.
3935 (cp_lookup_symbol_imports): New variable excludep, test
3936 current->EXCLUDES with it.
3937 * cp-support.h: Include vec.h.
3938 (struct using_direct): New field excludes, describe it.
3939 (DEF_VEC_P (const_char_ptr)): New.
3940 (cp_add_using_directive): New parameter excludes.
3941 * defs.h (const_char_ptr): New typedef.
3942 * dwarf2read.c (read_import_statement): New variables child_die,
3943 excludes and cleanups, read in excludes.
3944 (read_namespace): Adjust the cp_add_using_directive caller.
3946 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3950 negative comparisons.
3952 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3954 * mi/mi-main.c (mi_cmd_list_features): Emit
3955 breakpoint-notifications.
3957 2011-06-29 Tom Tromey <tromey@redhat.com>
3960 * valprint.h (generic_emit_char, generic_printstr): Declare.
3961 * valprint.c (wchar_printable, append_string_as_wide)
3962 (print_wchar): Move from c-lang.c.
3963 (generic_emit_char): New function; mostly taken from c_emit_char.
3964 (generic_printstr): New function; mostly taken from c_printstr.
3965 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3966 represented as arrays.
3967 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3969 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3970 identically to TYPE_CODE_INT.
3971 * f-lang.c (f_get_encoding): New function.
3972 (f_emit_char): Use generic_emit_char.
3973 (f_printchar): Replace comment.
3974 (f_printstr): Use generic_printstr.
3975 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3976 "character" types specially.
3977 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3979 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3981 (c_emit_char): Call generic_emit_char.
3982 (c_printstr): Call generic_printstr.
3984 2011-06-29 Gary Benson <gbenson@redhat.com>
3986 * breakpoint.c (bpstat_what): Removed duplicated case.
3988 2011-06-28 Tom Tromey <tromey@redhat.com>
3990 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3992 2011-06-27 Tom Tromey <tromey@redhat.com>
3994 * valops.c (find_overload_match): Call do_cleanups before early
3996 * top.c (execute_command): Call do_cleanups before early return.
3997 (command_loop): Likewise.
3998 * stack.c (backtrace_command): Make a null cleanup early. Don't
3999 conditionally call do_cleanups.
4000 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4002 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4003 so cleanups are always run.
4004 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4005 * findcmd.c (parse_find_args): Call do_cleanups on early return
4007 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4008 Don't conditionally call do_cleanups.
4009 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4012 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4014 * MAINTAINERS (Write After Approval): Use default email address.
4016 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4018 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4020 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4022 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4023 saved_regs_mask and copied_regs_mask fields.
4024 (sparc_record_save_insn): New prototype.
4025 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4026 (sparc_record_save_insn): New function.
4027 (sparc_analyze_prologue): Add head comment. Recognize store insns
4028 of call-saved registers. Use OFFSET consistently. Recognize flat
4029 frames and cache their settings.
4030 (sparc32_skip_prologue): Handle flat frames.
4031 (sparc_frame_cache): Add frame_offset to the base address.
4032 (sparc32_frame_cache): Adjust to new frame description.
4033 (sparc32_frame_prev_register): Likewise.
4034 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4035 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4036 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4037 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4038 frame by calling sparc_record_save_insn.
4039 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4040 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4041 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4043 2011-06-27 Tristan Gingold <gingold@adacore.com>
4045 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4046 field by map_addr and map_len.
4047 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4048 (munmap_section_buffer): Likewise.
4050 2011-06-24 Tom Tromey <tromey@redhat.com>
4052 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4053 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4054 * python/python.c (gdbpy_parameter): Make 'arg' const.
4055 (execute_gdb_command): Likewise.
4056 (gdbpy_decode_line): Likewise. Copy it.
4057 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4058 (gdbpy_write): Make 'arg' const.
4059 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4061 (gdbpy_lookup_type): Likewise.
4062 * python/py-prettyprint.c (print_children): Make 'name' const.
4063 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4064 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4066 * python/py-function.c (fnpy_init): Make 'name' const.
4067 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4068 (gdbpy_string_to_argv): Make 'input' const.
4069 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4071 * gdbtypes.h (lookup_typename): Update.
4072 * gdbtypes.c (lookup_typename): Make 'name' const.
4073 (lookup_struct): Likewise.
4074 (lookup_union): Likewise.
4075 (lookup_enum): Likewise.
4077 2011-06-24 Tom Tromey <tromey@redhat.com>
4079 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4080 gdb_thread_db.h. Move all common/ entries to be together.
4081 (TAGS): Don't depend on DEPFILES.
4083 2011-06-23 Yao Qi <yao@codesourcery.com>
4085 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4086 * remote.c (remote_start_remote): ... here.
4087 * monitor.c (monitor_open): ... here.
4089 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4091 * gdbtypes.c (append_composite_type_field_aligned): Fix
4092 calculation of bit position based on alignment.
4094 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4096 * breakpoint.c (bpstat_stop_status): Call the check_status
4097 breakpoint_ops method.
4098 (print_one_breakpoint_location): Also print the condition for Ada
4099 exception catchpoints.
4100 (allocate_bp_location): New, factored out from
4101 allocate_bp_location.
4102 (allocate_bp_location): Adjust. Call the owner breakpoint's
4103 allocate_location method, if there is one.
4104 (free_bp_location): Call the locations's dtor method, if there is
4106 (init_raw_breakpoint_without_location): New breakpoint_ops
4108 (set_raw_breakpoint_without_location): Adjust.
4109 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4110 (set_raw_breakpoint): Adjust.
4111 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4112 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4113 re_set and check_status methods.
4114 (init_catchpoint): Don't memset, initialize thread, addr_string
4115 and enable_state. Pass the ops down to init_raw_breakpoint.
4116 (install_catchpoint): Rename to ...
4117 (install_breakpoint): ... this, and make extern.
4118 (create_fork_vfork_event_catchpoint): Adjust.
4119 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4120 re_set and check_status methods.
4121 (create_syscall_event_catchpoint): Adjust.
4122 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4123 (masked_watchpoint_breakpoint_ops): Install NULL
4124 allocate_location, re_set and check_status methods.
4125 (catch_exec_command_1): Adjust.
4126 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4127 re_set and check_status methods.
4128 (create_ada_exception_breakpoint): Rename to ...
4129 (init_ada_exception_breakpoint): ... this. Add a struct
4130 breakpoint parameter, and delete the exp_string, cond_string and
4131 cond parameters. Use init_raw_breakpoint, and don't install or
4132 mention the breakpoint yet. Don't clear breakpoint fields that
4133 init_raw_breakpoint already clears.
4134 (re_set_breakpoint): Delete, split into ...
4135 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4137 (breakpoint_re_set_one): Call the breakpoint's
4138 breakpoint_ops->re_set implementation, if there's one. Adjust.
4139 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4140 (struct bp_location_ops): New type.
4141 (struct bp_location): New field `ops'.
4142 (struct breakpoint_ops): New `allocate_location', `re_set' and
4143 `check_status' fields. Make `breakpoint_hit''s description match
4145 (init_bp_location): Declare.
4146 (breakpoint_re_set_default): Declare.
4147 (create_ada_exception_breakpoint): Rename to ...
4148 (init_ada_exception_breakpoint): ... this. Add a struct
4149 breakpoint parameter, and delete the exp_string, cond_string and
4151 (install_breakpoint): Declare.
4152 * ada-lang.c: Include exceptions.h.
4153 <Ada exceptions description>: Update.
4154 (struct ada_catchpoint_location): New type.
4155 (ada_catchpoint_location_dtor): New function.
4156 (ada_catchpoint_location_ops): New global.
4157 (ada_catchpoint): New type.
4158 (create_excep_cond_exprs): New function.
4159 (dtor_exception, allocate_location_exception, re_set_exception)
4160 (should_stop_exception, check_status_exception): New functions.
4161 (print_one_exception, print_mention_exception)
4162 (print_recreate_exception): Adjust.
4163 (dtor_catch_exception, allocate_location_catch_exception)
4164 (re_set_catch_exception, check_status_catch_exception): New
4166 (catch_exception_breakpoint_ops): Install them.
4167 (dtor_catch_exception_unhandled)
4168 (allocate_location_catch_exception_unhandled)
4169 (re_set_catch_exception_unhandled)
4170 (check_status_catch_exception_unhandled): New functions.
4171 (catch_exception_unhandled_breakpoint_ops): Install them.
4172 (dtor_catch_assert, allocate_location_catch_assert)
4173 (re_set_catch_assert, check_status_catch_assert): New functions.
4174 (catch_assert_breakpoint_ops): Install them.
4175 (ada_exception_catchpoint_p): Delete.
4176 (catch_ada_exception_command_split)
4177 (ada_exception_catchpoint_cond_string): Rename exp_string
4178 parameter to excep_string. Adjust.
4179 (ada_parse_catchpoint_condition): Delete.
4180 (ada_exception_sal): Rename the exp_string parameter to
4181 excep_string. Delete the cond_string and cond parameters.
4183 (ada_decode_exception_location): Rename the exp_string parameter
4184 to excep_string. Delete the cond_string and cond parameters.
4186 (create_ada_exception_catchpoint): New function.
4187 (catch_ada_exception_command, ada_decode_assert_location)
4188 (catch_assert_command): Adjust.
4189 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4191 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4193 * ada-lang.c: Include arch-utils.h.
4194 (ada_decode_exception_location): Make static.
4195 (catch_ada_exception_command): Moved here from breakpoint.c.
4196 (ada_decode_assert_location): Make static.
4197 (catch_assert_command): Moved here from breakpoint.c.
4198 (_initialize_ada_lang): Install the exception and assert
4199 catchpoint commands here.
4200 * ada-lang.h (ada_decode_exception_location)
4201 (ada_decode_assert_location): Delete declarations.
4202 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4204 (create_ada_exception_breakpoint): Make extern.
4205 (catch_ada_exception_command, catch_assert_command): Moved to
4207 (add_catch_command): Make extern.
4208 (_initilize_breakpoint): Don't install the exception and assert
4209 catchpoint commands here.
4210 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4212 (add_catch_command, create_ada_exception_breakpoint): Declare.
4214 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4216 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4217 the breakpoint to the breakpoint chain here.
4218 (set_raw_breakpoint_without_location): Add the breakpoint to the
4219 breakpoint chain here.
4220 (init_raw_breakpoint): Adjust comments.
4221 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4223 (init_catchpoint): Don't set the catchpoint's breakpoint number
4225 (install_catchpoint): New function.
4226 (create_fork_vfork_event_catchpoint)
4227 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4228 use install_catchpoint.
4230 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4232 * breakpoint.c (create_catchpoint_without_mention)
4233 (create_catchpoint): Delete.
4235 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4237 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4238 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4239 reference to exec_pathname.
4240 (struct exec_catchpoint): New type.
4241 (dtor_catch_exec): New function.
4242 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4243 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4244 (catch_exec_command_1): Adjust to use init_catchpoint.
4245 (delete_breakpoint): Remove reference to exec_pathname.
4247 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4249 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4250 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4251 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4252 reference to syscalls_to_be_caught.
4253 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4255 (struct syscall_catchpoint): New type.
4256 (dtor_catch_syscall): New function.
4257 (insert_catch_syscall, remove_catch_syscall)
4258 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4259 (print_recreate_catch_syscall): Adjust.
4260 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4261 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4262 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4263 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4264 (masked_watchpoint_breakpoint_ops)
4265 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4266 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4267 there is one. Remove references to syscalls_to_be_caught.
4268 (catching_syscall_number): Adjust.
4269 * ada-lang.c (catch_exception_breakpoint_ops)
4270 (catch_exception_unhandled_breakpoint_ops)
4271 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4273 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4275 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4277 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4278 reference to forked_inferior_pid.
4279 (struct fork_catchpoint): New type.
4280 (breakpoint_hit_catch_fork, print_it_catch_fork)
4281 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4282 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4283 (create_fork_vfork_event_catchpoint): Adjust to use
4286 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4288 * breakpoint.c (add_to_breakpoint_chain)
4289 (init_raw_breakpoint_without_location): New functions, factored
4291 (set_raw_breakpoint_without_location): ... this one.
4292 (init_raw_breakpoint): New function, factored out from
4293 set_raw_breakpoint and adjusted to use
4294 init_raw_breakpoint_without_location.
4295 (set_raw_breakpoint): Adjust.
4296 (init_catchpoint): New function, factored out from
4297 create_catchpoint_without_mention and adjusted to use
4298 init_raw_breakpoint.
4299 (create_catchpoint_without_mention): Adjust.
4301 2011-06-22 Tom Tromey <tromey@redhat.com>
4303 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4304 argument of 0 specially.
4306 2011-06-22 Yao Qi <yao@codesourcery.com>
4308 * infrun.c (handle_inferior_event): Remove write-only local variable
4309 `sw_single_step_trap_p'.
4311 2011-06-20 Tom Tromey <tromey@redhat.com>
4313 * symtab.c (lookup_language_this): End loop if block is NULL.
4315 2011-06-17 Tom Tromey <tromey@redhat.com>
4317 * valops.c (value_of_this): Use lookup_language_this.
4318 * symtab.h (lookup_language_this): Declare.
4319 * symtab.c (lookup_language_this): New function.
4320 (lookup_symbol_aux): Use lookup_language_this.
4321 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4323 2011-06-17 Tom Tromey <tromey@redhat.com>
4325 * value.h (value_of_this): Update.
4326 (value_of_local): Remove.
4327 * valops.c (value_of_this): Rename from value_of_local. Change
4329 * p-exp.y (exp): Update.
4330 (variable): Likewise.
4331 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4333 2011-06-17 Tom Tromey <tromey@redhat.com>
4335 * valops.c (value_of_local): Complain if NAME is NULL.
4336 * std-operator.def (OP_OBJC_SELF): Remove.
4337 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4338 * objc-exp.y (name_not_typename): Use OP_THIS.
4339 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4341 <OP_OBJC_SELF>: Remove.
4342 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4344 2011-06-16 Tristan Gingold <gingold@adacore.com>
4346 * python/py-events.h (gdb_py_events): Make it extern.
4347 * python/py-evtregistry.c (gdb_py_events): Declare.
4349 2011-06-16 Hui Zhu <teawater@gmail.com>
4351 * remote.c (remote_trace_set_readonly_regions): Add check for
4352 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4355 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4357 * arm-linux-tdep.c: Include "auxv.h".
4359 (ARM_LINUX_SIZEOF_VFP): Define.
4360 (arm_linux_supply_vfp): New function.
4361 (arm_linux_collect_vfp): Likewise.
4362 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4363 (arm_linux_fpa_regset_sections): New variable.
4364 (arm_linux_vfp_regset_sections): Likewise.
4365 (arm_linux_core_read_description): New function.
4366 (arm_linux_init_abi): Install arm_linux_core_read_description and
4367 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4368 appropriate for the architecture.
4369 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4370 (tdesc_arm_with_m): Declare.
4371 (tdesc_arm_with_iwmmxt): Likewise.
4372 (tdesc_arm_with_vfpv2): Likewise.
4373 (tdesc_arm_with_vfpv3): Likewise.
4374 (tdesc_arm_with_neon): Likewise.
4375 * arm-linux-nat.c: Move features/*.c includes ...
4376 * arm-tdep.c: ... here.
4377 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4378 target description data structures ...
4379 * arm-tdep.c (_initialize_arm_tdep): ... here.
4380 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4381 HWCAP_VFPv3D16): Move definitions ...
4382 * arm-linux-tdep.h: ... here.
4384 2011-06-15 Hui Zhu <teawater@gmail.com>
4386 * remote.c (remote_trace_set_readonly_regions): Add a check for
4389 2011-06-14 Tom Tromey <tromey@redhat.com>
4391 * coffread.c (coffread_objfile): Rename from current_objfile.
4392 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4393 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4395 2011-06-14 Tom Tromey <tromey@redhat.com>
4397 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4398 (class_symtab): Remove.
4399 (jv_dynamics_progspace_key): New global.
4400 (jv_per_objfile_free): Reset program space data. Update assert.
4401 Don't clear globals.
4402 (get_dynamics_objfile): Use and set program space data.
4403 (get_java_class_symtab): Use get_dynamics_objfile.
4404 (add_class_symbol): Likewise.
4405 (java_link_class_type): Likewise.
4406 (java_object_type, jv_clear_object_type, set_java_object_type):
4408 (get_java_object_type): Update. Don't cache result.
4409 (is_object_type): Don't call set_java_object_type.
4410 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4411 initialize jv_dynamics_progspace_key.
4413 2011-06-14 Tom Tromey <tromey@redhat.com>
4415 * symtab.h (current_objfile): Don't declare.
4416 * objfiles.h (current_objfile): Don't declare.
4417 * objfiles.c (current_objfile): Remove.
4418 * mdebugread.c (current_objfile): New file-scope global.
4419 * dbxread.c (current_objfile): New file-scope global.
4420 * coffread.c (current_objfile): New file-scope global.
4422 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4424 * top.h (line): Rename to ...
4425 (saved_command_line): ... this.
4426 (linesize): Rename to ...
4427 (saved_command_line_size): ... this.
4428 * top.c (line): Rename to ...
4429 (saved_command_line): ... this.
4430 (linesize): Rename to ...
4431 (saved_command_line_size): ... this.
4432 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4433 * event-top.c (command_line_handler): Adjust.
4434 * main.c (captured_main): Adjust.
4436 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4438 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4439 get_frame_func instead of get_frame_pc to determine the code
4440 address used to construct the frame ID.
4441 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4442 (i386_epilogue_frame_this_id): Likewise.
4443 (i386_epilogue_frame_prev_register): New function.
4444 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4445 (i386_stack_tramp_frame_sniffer): Fix coding style.
4446 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4447 (i386_gdbarch_init): Fix comments.
4449 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4451 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4452 instruction when walking back through the instruction stream.
4454 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4456 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4457 fullname parameters order.
4459 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4462 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4464 * psymtab.c (map_symbol_filenames_psymtab)
4465 (map_partial_symbol_filenames): Likewise.
4466 * psymtab.h: Include symfile.h.
4467 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4468 * symfile.h (symbol_filename_ftype): New.
4469 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4470 map_symbol_filenames, clarify more the naming in comment.
4472 2011-06-07 Doug Evans <dje@google.com>
4474 * cc-with-index.sh: Fix typos in comment.
4475 Look for ../../gdb, for fullname.exp.
4477 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4478 Pedro Alves <pedro@codesourcery.com>
4480 * cli/cli-cmds.c (shell_escape): Use waitpid.
4481 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4483 2011-06-07 Tristan Gingold <gingold@adacore.com>
4485 * xcoffread.c (dwarf2_xcoff_names): New variable.
4486 (aix_process_linenos): Add a guard.
4487 (xcoff_symfile_finish): Free dwarf2.
4488 (xcoff_initial_scan): Add dwarf2 support.
4490 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4492 * infcall.c (run_inferior_call): Don't mask async. Instead force
4493 a synchronous wait, if the target can async.
4495 * target.h (struct target_ops): Delete to_async_mask.
4496 (target_async_mask): Delete.
4497 * target.c (update_current_target): Delete references to to_async_mask.
4498 * linux-nat.c (linux_nat_async_mask_value): Delete.
4499 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4500 to linux_nat_async_mask_value.
4501 (linux_nat_async_mask): Delete.
4502 (linux_nat_async, linux_nat_close): Remove references to
4503 linux_nat_async_mask_value.
4504 * record.c (record_async_mask_value): Delete.
4505 (record_async): Remove references to record_async_mask_value.
4506 (record_async_mask): Delete.
4507 (record_can_async_p, record_is_async_p): Remove references to
4508 record_async_mask_value.
4509 (init_record_ops, init_record_core_ops): Remove references to
4511 * remote.c (remote_async_mask_value): Delete.
4512 (init_remote_ops): Remove reference to remote_async_mask.
4513 (remote_can_async_p, remote_is_async_p): Remove references to
4514 remote_async_mask_value.
4515 (remote_async): Remove references to remote_async_mask_value.
4516 (remote_async_mask): Delete.
4518 * infrun.c (fetch_inferior_event): Don't claim registers changed
4519 if the current thread is already not executing.
4521 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4523 From Stephen Kitt <steve@sk2.org>
4524 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4525 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4527 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4529 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4530 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4532 2011-06-03 Tom Tromey <tromey@redhat.com>
4534 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4536 * python/py-exitedevent.c (create_exited_event_object): Change
4537 type of 'exit_code'. Optionally add exit_code attribute.
4538 (emit_exited_event): Change type of 'exit_code'.
4539 * python/py-event.h (emit_exited_event): Update.
4540 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4541 * infrun.c (handle_inferior_event): Set exit code fields on
4543 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4545 * inferior.c (exit_inferior_1): Initialize new fields.
4547 2011-06-03 Tom Tromey <tromey@redhat.com>
4549 * dwarf2expr.c (get_signed_type): New function.
4550 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4552 2011-06-02 Keith Seitz <keiths@redhat.com>
4554 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4556 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4558 * top.h (simplified_command_loop): Delete declaration.
4560 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4562 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4563 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4565 2011-06-01 Yao Qi <yao@codesourcery.com>
4567 * objfiles.h (obj_section_addr): Update reference to objfile from
4569 (obj_section_endaddr): Likewise.
4571 2011-06-01 Daniel Jacobowitz <drow@false.org>
4573 * MAINTAINERS: Update my email address and affiliation. Also
4574 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4576 2010-05-31 Keith Seitz <keiths@redhat.com>
4579 * linespec.c (get_search_block): New function.
4580 (find_methods): Add FILE_SYMTATB parameter and use it and
4581 get_search_block to pass an appropriate block to
4582 lookup_symbol_in_namespace.
4583 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4584 Check if *ARGPTR starts with a filename first.
4585 If it does, call locate_first_half again to locate the next
4586 "first half" of the linespec.
4587 Pass FILE_SYMTATB to decode_objc and decode_compound.
4588 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4589 (locate_first_half): Stop on the first colon seen.
4590 (decode_compound): Add FILE_SYMTAB parameter.
4591 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4592 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4593 get_search_block with lookup_symbol.
4594 (find_method): Add FILE_SYMTAB parameter and pass it to
4596 (decode_objc): Use get_search_block.
4598 2010-05-31 Keith Seitz <keiths@redhat.com>
4601 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4602 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4603 and CP_ANONYMOUS_NAMESPACE_LEN.
4604 (cp_is_anonymous): Likewise.
4605 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4606 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4607 * dwarf2read.c (namespace_name): Likewise.
4608 (fixup_partial_die): Likewise.
4609 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4610 seen in the input, keep it.
4612 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4614 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4615 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4616 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4617 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4618 * remote.c (_initialize_remote): Register
4619 async_remote_interrupt_twice directly as
4620 sigint_remote_twice_token event.
4622 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4624 * target.h (enum inferior_event_type): Delete INF_ERROR.
4625 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4627 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4629 * interps.c (interp_set): Don't cancel continuations.
4631 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4633 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4635 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4637 * continuations.h (continuation_ftype): Add `err' parameter.
4638 Document parameters.
4639 (do_all_continuations, do_all_continuations_thread)
4640 (do_all_intermediate_continuations)
4641 (do_all_intermediate_continuations_thread)
4642 (do_all_inferior_continuations): Add `err' parameter.
4643 * continuations.c (do_my_continuations_1, do_my_continuations)
4644 (do_all_inferior_continuations, do_all_continuations_ptid)
4645 (do_all_continuations_thread_callback)
4646 (do_all_continuations_thread, do_all_continuations)
4647 (do_all_intermediate_continuations_thread_callback)
4648 (do_all_intermediate_continuations_thread)
4649 (do_all_intermediate_continuations): Add `err' parameter, and pass
4650 it down all the way to the continuations proper.
4651 * inf-loop.c (inferior_event_handler): If fetching an inferior
4652 event throws an error, don't pop the target, and still call the
4653 continuations, but with `err' set. Adjust all other continuation
4655 * breakpoint.c (until_break_command_continuation): Add `err'
4657 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4658 issue another step if `err' is set.
4659 (struct until_next_continuation_args): New.
4660 (until_next_continuation): Add `err' parameter. Adjust.
4661 (until_next_command): Adjust.
4662 (struct finish_command_continuation_args): Add `thread' field.
4663 (finish_command_continuation): Add `err' parameter. Handle it.
4664 (finish_forward): Adjust.
4665 (attach_command_continuation): Add `err' parameter. Handle it.
4666 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4667 cancel the continuations.
4668 * interps.c (interp_set): Adjust to cancel the continuations.
4669 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4670 continuations rather than discarding.
4671 (free_thread): Don't clear thread inferior resources here.
4672 (delete_thread_1): Do it here instead. And do it before removing
4673 the thread from the threads list. Tag the thread as exited before
4674 clearing thread inferior resources.
4676 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4678 * infcall.c (call_function_by_hand): Rephrase error message.
4680 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4682 * defs.h (struct thread_info, struct inferior): Delete forward
4684 * breakpoint.h (struct thread_info): New forward declaration.
4685 * observer.sh (struct inferior): New forward declaration.
4686 * python/python-internal.h (struct inferior): New forward
4689 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4691 * defs.h (struct continuation, continuation_ftype)
4692 (continuation_free_arg_ftype, add_continuation)
4693 (do_all_continuations, do_all_continuations_thread)
4694 (discard_all_continuations, discard_all_continuations_thread)
4695 (add_intermediate_continuation, do_all_intermediate_continuations)
4696 (do_all_intermediate_continuations_thread)
4697 (discard_all_intermediate_continuations)
4698 (discard_all_intermediate_continuations_thread)
4699 (add_inferior_continuation, do_all_inferior_continuations)
4700 (discard_all_inferior_continuations): Move to ...
4701 * continuations.h: ... this new file.
4702 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4703 infcmd.c, inferior.c, infrun.c, interps.c: Include
4706 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4707 Doug Evans <dje@google.com>
4709 Fix PR 10970, PR 12702.
4710 * linux-nat.c (linux_lwp_is_zombie): New function.
4711 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4712 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4714 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4716 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4718 (add_continuation, add_intermediate_continuation)
4719 (add_inferior_continuation): Use them.
4720 * continuations.c (struct continuation): Use them.
4721 (make_continuation_ftype): Delete.
4722 (make_continuation, add_inferior_continuation, add_continuation)
4723 (add_intermediate_continuation): Use continuation_ftype and
4724 continuation_free_arg_ftype. Rename parameters to shorter names.
4726 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4728 * continuations.c (make_continuation): Make it return void.
4729 (do_my_continuations): Rename to ...
4730 (do_my_continuations_1): ... this. Remove old_chain parameter and
4732 (do_my_continuations): New.
4733 (discard_my_continuations): Rename to ...
4734 (discard_my_continuations_1): ... this. Remove old_chain
4735 parameter and adjust.
4736 (discard_my_continuations): New.
4737 (add_inferior_continuation): Simplify.
4738 (do_all_inferior_continuations): Reimplement on top
4739 do_my_continuations.
4740 (discard_all_inferior_continuations): Simplify.
4741 (add_continuation): Simplify.
4742 (do_all_continuations_ptid): Simplify.
4743 (discard_all_continuations_thread_callback): Simplify.
4744 (add_intermediate_continuation): Simplify.
4745 (discard_all_intermediate_continuations_thread_callback):
4748 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4750 * utils.c (struct continuation, add_continuation)
4751 (add_inferior_continuation)
4752 (do_all_inferior_continuations, discard_all_inferior_continuations)
4753 (restore_thread_cleanup, do_all_continuations_ptid)
4754 (do_all_continuations_thread_callback)
4755 (do_all_continuations_thread, do_all_continuations)
4756 (discard_all_continuations_thread_callback)
4757 (discard_all_continuations_thread, discard_all_continuations)
4758 (add_intermediate_continuation)
4759 (do_all_intermediate_continuations_thread_callback)
4760 (do_all_intermediate_continuations_thread)
4761 (do_all_intermediate_continuations)
4762 (discard_all_intermediate_continuations_thread_callback)
4763 (discard_all_intermediate_continuations_thread)
4764 (discard_all_intermediate_continuations): Move to ...
4765 * continuations.c: ... this new file, and adjust to no longer
4766 implement continuations on top of cleanups.
4767 * Makefile.in (SFILES): Add continuations.c.
4768 (COMMON_OBS): Add continuations.o.
4770 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4772 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4773 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4774 Internal error on invalid values.
4775 * reverse.c: Don't handle EXEC_ERROR.
4776 * mi/mi-main.c: Don't handle EXEC_ERROR.
4778 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4780 * record.c: Include event-loop.h, inf-loop.h.
4781 (record_beneath_to_async): New global.
4782 (tmp_to_async): New global.
4783 (record_async_inferior_event_token): New global.
4784 (record_open_1): Don't error out if async is enabled.
4785 (record_open): Handle to_async. Create an async event source in
4787 (record_close): Delete the async event source.
4788 (record_resumed): New global.
4789 (record_execution_dir): New global.
4790 (record_resume, record_core_resume): Set them. Register the
4791 target on the event loop.
4792 (record_wait): Rename to ...
4793 (record_wait_1): ... this. Add more debug output. Handle
4794 TARGET_WNOHANG, and the target beneath returning
4795 TARGET_WAITKIND_IGNORE.
4796 (record_wait): Reimplement on top of record_wait_1.
4797 (record_async_mask_value): New global.
4798 (record_async, record_async_mask, record_can_async_p)
4799 (record_is_async_p, record_execution_direction): New functions.
4800 (init_record_ops, init_record_core_ops): Install new methods.
4801 * infrun.c (fetch_inferior_event): Temporarily switch the global
4802 execution direction to the direction the target was going.
4803 (execution_direction): Change type to int.
4804 * target.c (default_execution_direction): New function.
4805 (update_current_target): Inherit and de_fault
4806 to_execution_direction.
4807 * target.h (struct target_ops) <to_execution_direction>: New
4809 (target_execution_direction): New macro.
4810 * inferior.h (execution_direction): Change type to int.
4812 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4814 * infcall.c (call_function_by_hand): Don't allow calling functions
4815 in reverse execution mode.
4817 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4819 * infcmd.c (finish_command): Allow async finish in reverse.
4821 2011-05-26 Yao Qi <yao@codesourcery.com>
4823 * gdb_thread_db.h: Delete. Move to ...
4824 * common/gdb_thread_db.h: ... here.
4826 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4828 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4829 function's entry point instead of a manually managed momentary
4830 breakpoint, and only ever issue one proceed call.
4831 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4832 doing a reverse-finish, switch to stepi mode, to do another step.
4833 (insert_step_resume_breakpoint_at_sal): Make public.
4834 (normal_stop): No need to save function value return registers if
4836 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4838 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4840 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4841 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4842 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4844 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4845 step-resume breakpoints.
4846 (print_it_typical): Handle bp_hp_step_resume.
4847 (bpstat_what): Ditto.
4848 (bptype_string): Ditto.
4849 (print_one_breakpoint_location): Ditto.
4850 (allocate_bp_location): Ditto.
4852 (breakpoint_re_set_one): Ditto.
4853 * infrun.c (handle_inferior_event): Adjust. Split
4854 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4855 BPSTAT_WHAT_HP_STEP_RESUME.
4856 (insert_step_resume_breakpoint_at_sal): Rename to ...
4857 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4858 parameter. Handle it.
4859 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4860 insert_step_resume_breakpoint_at_sal_1.
4861 (insert_step_resume_breakpoint_at_frame): Rename to ...
4862 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4863 set a high-priority step-resume breakpoint.
4864 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4865 (insert_step_resume_breakpoint_at_caller): Ditto.
4867 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4869 * breakpoint.c (iterate_over_related_breakpoints): New.
4870 (do_map_delete_breakpoint): New.
4871 (delete_command): Pass do_map_delete_breakpoint to
4872 map_breakpoint_numbers.
4873 (do_disable_breakpoint): New.
4874 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4876 (do_enable_breakpoint): Rename to ...
4877 (enable_breakpoint_disp): ... this.
4878 (enable_breakpoint): Adjust.
4879 (do_enable_breakpoint): New.
4880 (enable_once_breakpoint): Delete.
4881 (do_map_enable_breakpoint): New.
4882 (do_map_enable_once_breakpoint): New.
4883 (enable_once_command, enable_delete_command)
4884 (delete_trace_command): Iterate over the breakpoint's related
4887 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4889 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4890 for ALPHA_ZERO_REGNUM.
4891 (alpha_supply_int_regs): Explicitly supply zero as the value for
4892 ALPHA_ZERO_REGNUM in the register cache.
4893 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4895 2011-05-26 Yao Qi <yao@codesourcery.com>
4897 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4899 2011-05-26 Tristan Gingold <gingold@adacore.com>
4901 * symfile.h (struct dwarf2_section_names): New type.
4902 (struct dwarf2_debug_sections): New type.
4903 (dwarf2_has_info): Add parameter.
4904 * dwarf2read.c (dwarf2_elf_names): New variable.
4905 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4906 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4907 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4908 (dwarf2_has_info): Add names parameter. Pass names
4909 to dwarf2_locate_sections.
4910 (section_is_p): Rewrite using the names parameter.
4911 (dwarf2_locate_sections): Use section names from the names parameter.
4912 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4913 * elfread.c (read_psyms): Ditto.
4914 * machoread.c (macho_symfile_read): Ditto.
4916 2011-05-25 Andreas Schwab <schwab@redhat.com>
4919 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4921 2011-05-24 Keith Seitz <keiths@redhat.com>
4924 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4925 (decode_compound): Unconditionally call keep_name_info.
4927 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4929 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4930 scope, clear its command list.
4931 (map_breakpoint_numbers): Don't walk the related breakpoints list
4934 2011-05-24 Tom Tromey <tromey@redhat.com>
4936 * MAINTAINERS: Move Jim Blandy to past maintainers.
4938 2011-05-24 Tristan Gingold <gingold@adacore.com>
4940 * symfile.h (enum dwarf2_section_enum): New type.
4941 (dwarf2_get_section_info): New prototype.
4942 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4943 section_name by sect. Use a switch to select the info.
4944 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4945 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4947 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4949 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4950 shared library event breakpoint if there's no execution.
4952 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4954 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4955 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4957 2011-05-23 Tom Tromey <tromey@redhat.com>
4959 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4962 2011-05-23 Doug Evans <dje@google.com>
4964 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4965 entry for RuntimeError to doc string.
4967 2011-05-23 Jerome Guitton <guitton@adacore.com>
4969 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4970 sequence for probing loops.
4972 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4974 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4977 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4979 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4980 zero as the value for %g0 in the register cache.
4981 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4982 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4984 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4986 * infrun.c (proceed): Set previous_inferior_ptid here.
4987 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4988 inferior_ptid, not null_ptid.
4989 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4990 (fetch_inferior_event): Nor here.
4992 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4994 * inf-loop.c (inferior_event_handler): Only output a message if
4997 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4999 * MAINTAINERS: Update my e-mail address.
5001 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5003 * infrun.c (proceed): Switch the inferior event loop to
5004 INF_EXEC_COMPLETE if the target refused to resume from a
5007 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5009 * infcmd.c: Include "inf-loop.h".
5010 (step_once): When stepping into an inline subroutine, pretend the
5011 target has run. If the target can async, switch the inferior
5012 event loop to INF_EXEC_COMPLETE.
5013 * inferior.h (user_visible_resume_ptid): Declare.
5014 * infrun.c (user_visible_resume_ptid): New function, factored out
5017 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5018 that the current thread is running. Merge async and sync
5021 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5023 * infcmd.c (step_1): Simplify synchronous case.
5025 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5027 * tracepoint.c: Include exceptions.h.
5028 (TFILE_PID): Move higher in file.
5029 (tfile_open): Delay pushing the tfile target until we're assured
5030 the tfile header is present in the file. Wrap reading the initial
5031 newline-terminated lines in TRY_CATCH. Pop the target if the
5032 initial setup failed. Add the tfile's thread immediately
5033 aftwards, before any non-essential setup. Don't skip
5034 post_create_inferior if there are no traceframes present in the
5036 (tfile_close): Remove redundant check for null before xfree call.
5037 (tfile_thread_alive): New function.
5038 (init_tfile_ops): Register it as to_thread_alive callback.
5040 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5042 * tracepoint.c (tfile_open): Delete #if 0'd code.
5044 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5046 Fix -readnow for -gdwarf-4 unused type units.
5047 * dwarf2read.c (struct signatured_type): Remove the field offset.
5048 (create_signatured_type_table_from_index): Remove its initialization.
5049 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5050 instead. Add a complaint call.
5051 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5052 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5053 (lookup_signatured_type_at_offset, read_signatured_type)
5054 (write_one_signatured_type): Update the field for per_cu.
5056 2011-05-19 Tom Tromey <tromey@redhat.com>
5058 * python/py-inferior.c (python_inferior_exit): Use
5060 (python_on_resume): Likewise.
5062 2011-05-19 Matt Rice <ratmice@gmail.com>
5064 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5066 2011-05-19 Hui Zhu <teawater@gmail.com>
5068 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5070 2011-05-19 Hui Zhu <teawater@gmail.com>
5072 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5074 2011-05-18 Tom Tromey <tromey@redhat.com>
5076 * dwarf2read.c (dwarf2_add_field): Constify.
5077 * value.c (value_static_field): Constify.
5078 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5080 * ax-gdb.c (gen_static_field): Constify
5082 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5084 * linux-nat.c (kill_callback): Use SIGKILL first.
5086 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5088 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5090 2011-05-18 Tom Tromey <tromey@redhat.com>
5092 * value.c (value_fn_field): Constify.
5093 * symtab.c (gdb_mangle_name): Constify.
5094 * stabsread.c (update_method_name_from_physname): Make 'physname'
5096 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5097 const. Use explicit fputc_filtered loop.
5098 (pascal_type_print_base): Constify.
5099 * p-lang.h (pascal_type_print_method_args): Update.
5100 * linespec.c (add_matching_methods): Constify.
5101 (add_constructors): Likewise.
5102 * jv-typeprint.c (java_type_print_base): Constify.
5103 * gdbtypes.h (struct cplus_struct_type)
5104 <fn_fieldlist.fn_field.physname>: Now const.
5105 * dwarf2read.c (compute_delayed_physnames): Constify.
5106 (dwarf2_add_member_fn): Likewise.
5107 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5109 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5111 * infrun.c (resume): Mention which is the current thread, and its
5112 current PC in debug output.
5113 (prepare_to_proceed): Mention the thread switching in debug
5116 2011-05-18 Tom Tromey <tromey@redhat.com>
5118 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5119 path check. Use xmalloc and cleanups.
5120 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5122 2011-05-17 Tom Tromey <tromey@redhat.com>
5124 * cp-valprint.c (cp_print_value_fields): Catch errors from
5127 2011-05-17 Tom Tromey <tromey@redhat.com>
5129 * dwarf2read.c (dwarf2_get_die_type): Call
5130 get_die_type_at_offset.
5131 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5132 get_base_type function.
5134 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5136 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5139 2011-05-16 Doug Evans <dje@google.com>
5141 * python/py-auto-load.c (source_section_scripts): Mention objfile
5144 2011-05-15 Doug Evans <dje@google.com>
5146 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5147 (try_thread_db_load_from_pdir): Call it. If unable to find
5148 libthread_db in directory of libpthread, see if we're looking at
5149 the separate-debug-info copy.
5151 * python/py-autoload.c (print_script): Print "Missing" instead of
5152 "No" for missing scripts.
5153 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5155 2011-05-13 Doug Evans <dje@google.com>
5157 * ui-file.c (stdio_file_write_async_safe): Add comment.
5159 2011-05-14 Hui Zhu <teawater@gmail.com>
5161 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5163 2011-05-13 Doug Evans <dje@google.com>
5165 Support $pdir and $sdir in libthread-db-search-path.
5166 * NEWS: Mention $sdir,$pdir.
5167 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5168 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5169 (try_thread_db_load_from_sdir): New function.
5170 (try_thread_db_load_from_dir): New function.
5171 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5172 system directories if search of libthread-db-search-path fails,
5173 that is now done via $sdir.
5174 (has_libpthread): New function.
5175 (thread_db_load): Remove search for libthread_db in directory of
5176 libpthread, that is now done via $pdir.
5178 * NEWS: Mention "info auto-load-scripts".
5179 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5180 script_not_found_warning_printed.
5181 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5182 all callers updated. Initialize script_not_found_warning_printed.
5183 (get_auto_load_pspace_data_for_loading): New function.
5184 (maybe_add_script): New function.
5185 (source_section_scripts): Simplify. Only print one warning regardless
5186 of the number of auto-load scripts not found.
5187 (clear_section_scripts): Clear script_not_found_warning_printed.
5188 (auto_load_objfile_script): Record script in hash table.
5189 (count_matching_scripts): New function.
5190 (maybe_print_script): Renamed from maybe_print_section_script, all
5191 callers updated. Rewrite to use ui_out_*.
5192 (info_auto_load_scripts): Renamed from
5193 maintenance_print_section_scripts, all callers updated.
5194 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5195 renamed as "info auto-load-scripts".
5197 2011-05-13 Tom Tromey <tromey@redhat.com>
5199 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5200 (read_sleb128): Likewise.
5202 2011-05-13 Tom Tromey <tromey@redhat.com>
5204 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5207 2011-05-13 Doug Evans <dje@google.com>
5209 * linux-nat.c (debug_linux_nat_async): Delete.
5210 Replace all references to use debug_linux_nat instead.
5211 (show_debug_linux_nat_async): Delete.
5212 (sigchld_handler): Call ui_file_write_async_safe instead of
5214 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5215 * ui-file.c (struct ui_file): New member to_write_async_safe.
5216 (null_file_write_async_safe): New function.
5217 (ui_file_write_async_safe): New function.
5218 (set_ui_file_write_async_safe): New function.
5219 (ui_file_new): Initialize to_write_async_safe.
5220 (stdio_file_write_async_safe): New function.
5221 (struct stdio_file): New member fd.
5222 (stdio_file_new): Initialize to_write_async_safe, fd.
5223 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5225 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5226 (set_ui_file_write_async_safe): Declare.
5227 (ui_file_write_async_safe): Declare.
5229 2011-05-13 Tom Tromey <tromey@redhat.com>
5231 * utils.c (do_value_free): New function.
5232 (make_cleanup_value_free): Likewise.
5233 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5235 (dwarf2_loc_desc_needs_frame): Call
5236 make_cleanup_value_free_to_mark.
5237 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5238 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5240 (new_dwarf_expr_context): Don't call value_mark.
5241 * dwarf2-frame.c (execute_stack_op): Call
5242 make_cleanup_value_free_to_mark.
5243 * defs.h (make_cleanup_value_free): Declare.
5245 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5247 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5248 prepare_execute_command.
5249 * top.c (prepare_execute_command): Return cleanup.
5250 (execute_command): Use cleanup from prepare_execute_command.
5251 * top.h (prepare_execute_command): Change prototype to return
5253 * defs.h (struct value): Add opaque declaration.
5254 (make_cleanup_value_free_to_mark): Add prototype.
5255 * utils.c (do_value_free_to_mark): New function.
5256 (make_cleanup_value_free_to_mark): Likewise.
5258 2011-05-12 Tom Tromey <tromey@redhat.com>
5260 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5261 cast left-hand-side to unsigned.
5263 2011-05-12 Tom Tromey <tromey@redhat.com>
5266 * value.h (value_from_contents): Declare.
5267 * value.c (value_from_contents): New function.
5268 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5269 (dwarf2_get_die_type): New function.
5270 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5271 (allocate_piece_closure): Acquire reference to values.
5272 (read_pieced_value): Update for value-based expressions.
5273 (write_pieced_value): Likewise.
5274 (free_pieced_value_closure): Call value_free as needed.
5275 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5276 Update for value-based expressions.
5277 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5278 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5279 <get_base_type>: New field.
5280 (struct dwarf_expr_piece) <v.value>: Change type.
5281 <v.regno>: New field.
5282 (struct dwarf_expr_context) <mark>: New field.
5283 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5284 (dwarf_expr_pop, dwarf_expr_push): Remove.
5285 (dwarf_expr_push_address): Declare.
5286 * dwarf2expr.c (dwarf_arch_cookie): New global.
5287 (struct dwarf_gdbarch_types): New.
5288 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5290 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5292 (dwarf_expr_push_address): New function.
5293 (dwarf_expr_pop): Now static.
5294 (dwarf_expr_fetch): Change return type.
5295 (dwarf_require_integral): New function.
5296 (dwarf_expr_fetch): Simplify.
5297 (add_piece): Update.
5298 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5300 (execute_stack_op) <sign_ext>: Remove.
5301 Use values for DWARF stack.
5302 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5303 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5305 (_initialize_dwarf2expr): New function.
5306 (add_piece): Update.
5307 (new_dwarf_expr_context): Set new field.
5308 (free_dwarf_expr_context): Call value_free_to_mark.
5309 * dwarf2-frame.c (no_base_type): New function.
5310 (execute_stack_op): Set get_base_type field. Update.
5312 2011-05-12 Tom Tromey <tromey@redhat.com>
5314 * dwarf2read.c (read_common_block): Fix formatting.
5316 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5318 * breakpoint.c (disable_breakpoint): Disable all locations
5319 associated with a tracepoint on target if a trace experiment is
5321 (disable_command): Disable a specific tracepoint location on target if
5322 a trace experiment is running.
5323 (do_enable_breakpoint): Enable all locations associated with a
5324 tracepoint on target if a trace experiment is running.
5325 (enable_command) Enable a specific tracepoint location on target if a
5326 trace experiment is running.
5327 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5328 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5329 to_disable_tracepoint.
5330 * target.h: Add declaration of struct bp_location.
5331 (struct target_ops): Add new functions
5332 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5333 to_disable_tracepoint to target operations.
5334 (target_supports_enable_disable_tracepoint): New macro.
5335 (target_enable_tracepoint): New macro.
5336 (target_disable_tracepoint): New macro.
5337 * remote.c (struct remote_state): Add new field.
5338 (remote_enable_disable_tracepoint_feature): New.
5339 (remote_protocol_features): Add new entry.
5340 (remote_supports_enable_disable_tracepoint): New.
5341 (remote_enable_tracepoint): New.
5342 (remote_disable_tracepoint): New.
5343 (init_remote_ops): Add remote_enable_tracepoint,
5344 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5345 to remote operations.
5346 * tracepoint.c (start_tracing): Allow tracing to start without any
5347 tracepoints enabled with just a warning if they can be re-enabled
5349 * NEWS: Add news item for the new behaviour of the enable and disable
5350 GDB commands when applied to tracepoints.
5351 Add news items for the new remote packets QTEnable and QTDisable.
5353 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5355 * config.in: Regenerate.
5356 * configure: Regenerate.
5357 * configure.ac <--with-system-readline> (for readline_echoing_p):
5359 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5360 (tui_old_rl_echoing_p): ... here.
5361 (tui_setup_io): Rename extern declaration readline_echoing_p to
5362 _rl_echoing_p. Adjust assignments for the both renames.
5364 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5366 * symtab.c (lookup_symtab): Run cleanup before returning.
5368 2011-05-11 Tom Tromey <tromey@redhat.com>
5370 * dwarf2read.c (handle_data_member_location): New function.
5371 (dwarf2_add_field): Use it.
5372 (read_common_block): Likewise.
5374 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5376 Make addrs->SECTINDEX always defined.
5377 * symfile.c (relative_addr_info_to_section_offsets): Check for
5378 SECTINDEX -1, not for zero ADDR.
5379 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5380 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5381 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5384 2011-05-10 Doug Evans <dje@google.com>
5386 * linux-thread-db.c: Whitespace cleanup.
5387 (try_thread_db_load_1): Fix comment.
5389 * linux-thread-db.c (set_libthread_db_search_path): New function.
5390 (_initialize_thread_db): Add setter for libthread-db-search-path.
5392 2011-05-09 Doug Evans <dje@google.com>
5394 * NEWS: Mention --with-iconv-bin.
5395 * configure.ac: New option --with-iconv-bin.
5396 * configure: Regenerate.
5397 * config.in: Regenerate.
5398 * defs.h (relocate_gdb_directory): Declare.
5399 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5400 removed progname parameter, and exported. All callers updated.
5401 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5403 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5404 adding missing call to restore_child_signals_mask.
5406 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5408 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5410 * infrun.c (proceed, start_remote): Adjust.
5411 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5412 and adjust to not handle it.
5413 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5414 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5415 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5416 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5417 * windows-nat.c (do_initial_windows_stuff): Adjust.
5418 * infcmd.c (attach_command): Adjust.
5419 (notice_new_inferior): Adjust.
5421 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5423 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5424 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5425 * spu-tdep.c (op_selb): Use correct value.
5427 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5429 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5430 "parent" parameter to symbol_file_add_from_bfd call.
5432 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5433 Thiago Jung Bauermann <bauerman@br.ibm.com>
5435 Implement support for PowerPC BookE masked watchpoints.
5436 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5438 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5439 method. Initialize to NULL in all existing breakpoint_ops instances.
5440 (struct breakpoint) <hw_wp_mask>: New field.
5441 * breakpoint.c (is_masked_watchpoint): Add prototype.
5442 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5443 breakpoint's breakpoint_ops.works_in_software_mode if available.
5444 (watchpoints_triggered): Handle the case of a hardware masked
5446 (watchpoint_check): Likewise.
5447 (works_in_software_mode_watchpoint): New function.
5448 (insert_masked_watchpoint, remove_masked_watchpoint)
5449 (resources_needed_masked_watchpoint)
5450 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5451 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5452 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5454 (masked_watchpoint_breakpoint_ops): New structure.
5455 (watch_command_1): Check for the existence of the `mask' parameter.
5456 Set b->ops according to the type of hardware watchpoint being created.
5457 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5458 (ppc_linux_remove_mask_watchpoint)
5459 (ppc_linux_masked_watch_num_registers): New functions.
5460 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5461 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5462 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5463 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5464 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5465 (target_masked_watch_num_registers): New functions.
5466 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5467 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5469 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5470 (target_masked_watch_num_registers): Add prototypes.
5472 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5476 (producer_is_gcc_ge_4_0): New function.
5477 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5478 symtab->language code.
5479 (var_decode_location): Set cu->has_loclist.
5480 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5481 skip. Intialize force_skip from locations_valid. Move the prologue
5482 skipping code into two passes.
5483 * symtab.h (struct symtab): Make the primary field a bitfield. New
5484 field locations_valid.
5486 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5488 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5489 (classify_inner_name): Call cp_lookup_nested_type with
5491 * cp-namespace.c (cp_lookup_nested_type): New variable
5492 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5493 type_name_no_tag_or_error with saved_parent_type.
5494 * dwarf2read.c (load_partial_dies): Read in any children of
5495 DW_TAG_typedef with complaint in such case.
5496 * gdbtypes.c (type_name_no_tag_or_error): New function.
5497 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5498 * valops.c (destructor_name_p): New comment for parameter type. Remove
5499 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5500 * value.h (destructor_name_p): Remove type const.
5502 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5504 * symtab.c (compare_symbol_name): New function.
5505 (completion_list_add_name, expand_partial_symbol_name): Call it,
5506 remove the variable ncmp.
5507 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5510 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5512 Demote to sw watchpoint only in update_watchpoint.
5513 * breakpoint.c (update_watchpoint): Change between software and
5514 hardware watchpoint for all kinds of watchpoints, not just
5515 read/write ones. Determine b->exact value here instead of
5516 in watch_command_1. Error out if there are not enough resources
5517 for a read or access hardware watchpoint.
5518 (watch_command_1): Remove logic of checking whether there are
5519 enough resources available, since update_watchpoint will do that
5520 work now. Don't set b->exact here. Catch exceptions thrown by
5521 update_watchpoint and delete the watchpoint.
5522 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5523 Use target_exact_watchpoints instead.
5524 (delete_breakpoint): Notify observers only if deleted watchpoint
5525 has a breakpoint number assigned to it.
5527 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5529 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5531 2011-05-05 Jerome Guitton <guitton@adacore.com>
5533 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5535 (i386_stack_tramp_frame_unwind): New static global.
5536 (i386_match_pattern): New function, extracted from i386_match_insn.
5537 (i386_match_insn): Use i386_match_pattern.
5538 (i386_match_insn_block): New function.
5539 (i386_tramp_chain_in_reg_insns)
5540 (i386_tramp_chain_on_stack_insns): New static variables.
5541 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5544 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5546 * configure.host (xscale*): Don't handle target.
5547 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5550 2011-05-04 Yao Qi <yao@codesourcery.com>
5552 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5554 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5557 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5558 | * elfread.c (elf_symtab_read): Stop memory leak.
5560 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5562 * nto-tdep.c (nto_target): Replace deprecated call to
5563 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5565 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5567 Fix false GCC warning.
5568 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5570 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5572 * breakpoint.c (update_watchpoint): Move code to change
5573 the enable state of breakpoint from here ...
5574 (do_enable_breakpoint): ... to here.
5576 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5578 * valprint.c (val_print_array_elements): Fixed poor performance
5579 of printing very large arrays with repeat_count_threshold set
5580 to unlimited. New comment.
5582 2011-04-29 Tom Tromey <tromey@redhat.com>
5584 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5585 (mi_parse): Likewise.
5586 * breakpoint.c (break_range_command): Use sizeof char*, not
5588 (create_breakpoint): Likewise.
5589 (parse_breakpoint_sals): Likewise.
5591 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5593 * linux-nat.c (linux_child_remove_fork_catchpoint)
5594 (linux_child_remove_vfork_catchpoint)
5595 (linux_child_remove_exec_catchpoint): New functions.
5596 (linux_target_install_ops): Install them.
5598 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5602 * varobj.c (install_default_visualizer): Do not install a
5603 visualizer if the varobj is CPLUS_FAKE_CHILD.
5604 (construct_visualizer): Likewise.
5606 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5608 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5609 case insensitive comparison.
5611 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5613 * infrun.c (proceed): Revert previous change.
5614 (resume): Instead, handle the case of signal delivery while stepping
5615 off a breakpoint location here, and only if software single-stepping
5616 is used. Handle nested signals.
5618 2011-04-28 Yao Qi <yao@codesourcery.com>
5620 * arm-tdep.c (copy_unmodified): Rename to ...
5621 (arm_copy_unmodified): .. this. New.
5622 (copy_preload): Move common part to ...
5623 (install_preload): .. this. New.
5624 (arm_copy_preload): New.
5625 (copy_preload_reg): Move common part to ...
5626 (install_preload_reg): ... this. New.
5627 (arm_copy_preload_reg): New.
5628 (copy_b_bl_blx): Move common part to ...
5629 (install_b_bl_blx): .. this. New.
5630 (arm_copy_b_bl_blx): New.
5631 (copy_bx_blx_reg): Move common part to ...
5632 (install_bx_blx_reg): ... this. New.
5633 (arm_copy_bx_blx_reg): New.
5634 (copy_alu_reg): Move common part to ...
5635 (install_alu_reg): ... this. New.
5636 (arm_copy_alu_reg): New.
5637 (copy_alu_shifted_reg): Move common part to ...
5638 (install_alu_shifted_reg): ... this. New.
5639 (copy_ldr_str_ldrb_strb): Move common part to ...
5640 (install_ldr_str_ldrb_strb): ... this. New.
5641 (arm_copy_ldr_str_ldrb_strb): New.
5642 (copy_copro_load_store): Move some common part to ...
5643 (install_copy_copro_load_store): ... this. New.
5644 (arm_copy_copro_load_store): New.
5646 (arm_copy_svc): Renamed from copy_svc.
5647 (copy_undef): Delete.
5648 (arm_copy_undef): Renamed from copy_undef.
5649 (decode_ext_reg_ld_st): Delete.
5650 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5651 (decode_svc_copro): Delete.
5652 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5653 (copy_copro_load_store, copy_alu_imm): update callers.
5654 (copy_extra_ld_st, copy_block_xfer): Likewise.
5655 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5656 (decode_miscellaneous, decode_dp_misc): Likewise.
5657 (decode_ld_st_word_ubyte, decode_media): Likewise.
5658 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5659 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5660 (decode_unconditional, decode_miscellaneous): Likewise.
5661 (decode_media, decode_b_bl_ldmstm): Likewise.
5662 (arm_process_displaced_insn): Likewise..
5663 (decode_misc_memhint_neon): Delete.
5664 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5665 (decode_miscellaneous): Delete.
5666 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5667 (decode_dp_misc): Delete.
5668 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5669 (decode_ld_st_word_ubyte): Delete.
5670 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5671 (decode_media): Delete.
5672 (arm_decode_media): Renamed from decode_media.
5673 (decode_b_bl_ldmstm): Delete.
5674 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5675 (decode_ext_reg_ld_st): Delete.
5676 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5677 (decode_unconditional): Delete.
5678 (arm_decode_unconditional): Renamed from decode_unconditional.
5680 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 Case insensitive lookups implementation.
5683 * dwarf2read.c: Include ctype.h.
5684 (struct mapped_index): New field version.
5685 (mapped_index_string_hash): New parameter index_version. New comment
5686 for it. Call tolower appropriately.
5687 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5688 Choose the right index version for mapped_index_string_hash.
5689 (dwarf2_read_index): Support also the index version 5. Initialize the
5690 new struct mapped_index field version.
5691 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5692 (find_slot): Explain the version needs. Pass INT_MAX for the new
5694 (write_psymtabs_to_index): Produce version 5.
5695 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5696 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5697 * psymtab.c (lookup_partial_symbol): Find the
5698 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5700 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5702 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5703 (completion_list_add_name): New variable ncmp, initialize it, use it.
5704 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5705 * utils.c (strcmp_iw): Support case_sensitive_off.
5706 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5707 New function comment part. New variables saved_string1,
5708 saved_string2 and case_pass. Add a proper second pass.
5710 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5712 Replace re_comp/re_exec by regcomp/regexec.
5713 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5714 (search_symbols_name_matches): Use them, use regexec.
5715 (search_symbols): New variable retval_chain, adjust the use of
5716 old_chain against it. Replace re_comp by regcomp. Use the new struct
5717 search_symbols_data fields, use regexec instead of re_exec.
5719 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5721 Format the code for the next patch.
5722 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5723 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5724 New variables c1 and c2.
5726 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5728 * infrun.c (proceed): Do not single-step into signal delivery
5729 when stepping off a breakpoint location.
5730 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5731 (insert_step_resume_breakpoint_at_caller): Likewise.
5732 (insert_step_resume_breakpoint_at_sal): Likewise.
5733 (insert_longjmp_resume_breakpoint): Likewise.
5735 2011-04-27 Yao Qi <yao@codesourcery.com>
5737 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5739 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5741 * procfs.c (procfs_pass_signals): Fix advance declaration.
5743 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5745 * target.h (struct target_ops): Remove to_notice_signals;
5746 add to_pass_signals.
5747 (target_notice_signals): Remove.
5748 (target_pass_signals): Add prototype.
5749 * target.c (update_current_target): Remove to_notice_signals;
5750 mention to_pass_signals.
5751 (target_pass_signals): New function.
5752 (debug_to_notice_signals): Remove.
5753 (setup_target_debug): Do not install debug_to_notice_signals.
5755 * infrun.c (signal_pass): New global.
5756 (resume): Call target_pass_signals.
5757 (handle_inferior_event): Report all signals while stepping over
5758 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5759 are re-inserted when stepping over a signal handler.
5760 (signal_cache_update): New function.
5761 (signal_stop_update): Call it.
5762 (signal_print_update): Likewise.
5763 (signal_pass_update): Likewise.
5764 (handle_command): Call signal_cache_update and target_pass_signals
5765 instead of target_notice_signals.
5766 (_initialize_infrun): Initialize signal_pass.
5768 * linux-nat.c (pass_mask): New global.
5769 (linux_nat_pass_signals): New function.
5770 (linux_nat_create_inferior): Report all signals initially.
5771 (linux_nat_attach): Likewise.
5772 (linux_nat_resume): Use pass_mask to decide whether to directly
5773 handle an inferior signal.
5774 (linux_nat_wait_1): Likewise.
5775 (linux_nat_add_target): Install to_pass_signals callback.
5777 * nto-procfs.c (notice_signals): Remove.
5778 (procfs_resume): Do not call notice_signals.
5779 (procfs_notice_signals): Remove.
5780 (procfs_pass_signals): New function.
5781 (init_procfs_ops): Install to_pass_signals callback instead of
5782 to_notice_signals callback.
5783 (_initialize_procfs): Report all signals initially.
5785 * procfs.c (procfs_notice_signals): Remove.
5786 (procfs_pass_signals): New function.
5787 (procfs_target): Install to_pass_signals callback instead of
5788 to_notice_signals callback.
5789 (register_gdb_signals): Remove.
5790 (procfs_debug_inferior): Report all signals initially.
5791 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5793 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5794 parameters; use them instead of calling signal_..._state routines.
5795 (remote_notice_signals): Remove.
5796 (remote_start_remote): Report all signals initially.
5797 (remote_resume): Do not call remote_pass_signals.
5798 (_initialize_remote): Install to_pass_signals callback instead of
5799 to_notice_signals callback.
5801 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5803 * breakpoint.c (user_settable_breakpoint): Delete.
5804 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5805 (delete_command): Check user_breakpoint_p instead of looking at
5806 the breakpoint's type.
5807 (disable_command): Ditto.
5808 (enable_command): Ditto.
5809 (delete_trace_command): Use user_breakpoint_p instead of looking
5810 at the breakpoint number directly. When checking if there are
5811 user visible tracepoints, in order to know whether to ask the user
5812 for confirmation, check whether the breakpoint is actually a
5815 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5817 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5820 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5822 MI breakpoint notifications.
5824 * annotate.c (breakpoint_changed): Adjust parameter type.
5825 * breakpoint.c (set_breakpoint_condition): Adjust to change
5826 in breakpoint_modified type.
5827 (breakpoint_set_commands): Likewise.
5828 (do_map_commands_command): Likewise.
5829 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5830 changed after bumping hit count.
5831 (bpstat_stop_status): Likewise.
5832 (print_one_breakpoint_location): Don't wrap in tuple here.
5833 (print_one_breakpoint): Always print individual locations.
5834 For locations, use unnamed tuple.
5835 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5837 (create_catchpoint, create_syscall_event_catchpoint): Call
5838 breakpoint_created obsever.
5839 (mention): Don't call breakpoint_created observer.
5840 (create_breakpoint_sal): Call breakpoint_created observer.
5841 (create_breakpoint, watch_command_1): Likewise.
5842 (create_ada_exception_breakpoint): Likewise.
5843 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5844 (locations_are_equal): New.
5845 (update_breakpoint_locations): If locations were changed, notify.
5846 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5847 Call breakpoint_modified observer.
5849 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5850 (mi_cmd_break_insert): Don't set observers for modify and delete.
5851 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5852 (mi_breakpoint_created, mi_breakpoint_deleted)
5853 (mi_breakpoint_modified): New.
5854 (mi_interpreter_init): Hook the above.
5855 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5856 while -break-* commands are executing.
5857 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5858 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5860 (mi_ui_out_impl): Hook in mi_redirect.
5861 (mi_field_skip): True to the name, skip the field, don't output
5862 a field with an empty value.
5864 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5865 (gdbpy_breakpoint_deleted): Adjust.
5866 * tui/tui-hooks.c (tui_event_create_breakpoint)
5867 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5869 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5871 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5872 (procfs_remove_hw_watchpoint): Likewise.
5874 2011-04-26 Michael Walle <michael@walle.cc>
5876 * remote.c (remote_start_remote): Ack packet after sending the
5879 2011-04-26 Yao Qi <yao@codesourcery.com>
5881 * linux-nat.c: Move common macros to ...
5882 Include linux-ptrace.h.
5883 * common/linux-ptrace.h: ... here. New.
5885 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5887 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5888 !objfile_has_partial_symbols. New comment.
5889 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5890 SYM_READ_PSYMBOLS is not present. Extend the comment.
5891 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5893 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5895 * defs.h (ENUM_BITFIELD): Remove.
5897 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5898 Eli Zaretskii <eliz@gnu.org>
5900 * NEWS: Document the new gdbserver --once option.
5902 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5904 * MAINTAINERS: Update my email address.
5906 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5908 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5909 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5910 function call if __STDC_ISO_10646__ macro is defined.
5911 (intermediate_encoding): New prototype.
5912 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5913 to generate compile time error for unsupported gdb_wchar_t size.
5914 (ENDIAN_SUFFIX): New macro.
5915 (intermediate_encoding): New function.
5917 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 * ada-lang.c (struct add_partial_datum): Update the comment for
5920 expand_partial_symbol_name.
5921 (ada_add_partial_symbol_completions): Rename to ...
5922 (ada_expand_partial_symbol_name): ... here, change return type, update
5923 function comment, call symbol_completion_match instead of
5924 symbol_completion_add.
5925 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5926 and ada_expand_partial_symbol_name.
5927 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5929 (dw2_map_symbol_names): Remove.
5930 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5931 * psymtab.c (map_symbol_names_psymtab): Remove.
5932 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5933 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5935 (psym_functions): Unlist map_symbol_names_psymtab.
5936 (map_partial_symbol_names): Rename to ...
5937 (expand_partial_symbol_names): ... here, change the FUN type, call
5938 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5939 * psymtab.h (map_partial_symbol_names): Rename to ...
5940 (expand_partial_symbol_names): ... here, change the FUN type.
5941 * symfile.h (struct quick_symbol_functions): Update the description of
5942 expand_symtabs_matching. Remove map_symbol_names.
5943 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5944 (struct add_name_data): Update the comment for
5945 expand_partial_symbol_name.
5946 (add_partial_symbol_name): Rename to ...
5947 (expand_partial_symbol_name): ... here. Replace
5948 completion_list_add_name call by strncmp.
5949 (default_make_symbol_completion_list_break_on): Use now
5950 expand_partial_symbol_names and expand_partial_symbol_name.
5951 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5953 2011-04-20 Tom Tromey <tromey@redhat.com>
5955 * dwarf2read.c (save_gdb_index_command): Replace format
5956 documentation with a pointer to the manual.
5958 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5960 * regcache.c: Include remote.h.
5961 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5962 (regcache_dump): Handle regcache_dump_remote.
5963 (maintenance_print_remote_registers): New function.
5964 (_initialize_regcache): Install "maint print remote-registers"
5966 * remote.c (map_regcache_remote_table): New function, factored out
5968 (init_remote_state): ... here.
5969 (remote_register_number_and_offset): New.
5970 * remote.h (remote_register_number_and_offset): Declare.
5972 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5974 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5975 null_ptid, assume and allow a NULL address space, instead of
5976 asking the target for the ptid's address space.
5977 * infrun.c (ptid_is_pid): Remove assertion.
5979 2011-04-19 Tom Tromey <tromey@redhat.com>
5981 * windows-tdep.c (windows_xfer_shared_library):
5982 * windows-nat.c (get_module_name, windows_make_so):
5983 * v850-tdep.c (v850_handle_pushm):
5984 * utils.c (null_cleanup, gdb_realpath):
5985 * ui-out.c (get_next_header):
5986 * tracepoint.c (clear_traceframe_info):
5987 * symtab.c (lookup_symtab):
5988 * serial.h (struct serial_ops):
5989 * mipsread.c (read_alphacoff_dynamic_symtab):
5990 * infcmd.c (print_return_value):
5991 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5992 * f-exp.y (parse_number):
5993 * exceptions.c (catch_exceptions):
5994 * dummy-frame.c (dummy_frame_this_id):
5995 * defs.h (struct cleanup):
5996 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5997 * arm-tdep.c (arm_push_dummy_call):
5998 * amd64-tdep.h (amd64_collect_xsave):
5999 * amd64-tdep.c (amd64_collect_xsave):
6000 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6001 * README (typing): Remove duplicate words.
6002 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6003 * infrun.c (siginfo_value_read): Fix typo.
6004 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6005 * top.c (source_line_number): Add comma.
6007 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6009 * thread.c (any_live_thread_of_process): Prioritize threads
6010 that are not executing.
6011 * gdbthread.h (any_live_thread_of_process): Update comment
6012 as per above change.
6014 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6016 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6017 (scan_xcoff_symtab): Likewise.
6019 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6021 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6024 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6025 Pedro Alves <pedro@codesourcery.com>
6027 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6028 variables to simplify code and avoid == operator at end of
6029 line as this is against GNU coding standards.
6031 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6033 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6034 lm_name to name_lm to avoid conflict with lm_name function.
6036 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6038 ARI fixes: Use only lowercase function name for static functions.
6039 * nto-tdep.c (LM_ADDR): Rename to...
6040 (lm_addr): New function name.
6041 (nto_relocate_section_addresses): Adapt to change above.
6042 * solib-sunos.c (LM_ADDR): Rename to...
6043 (lm_addr): New function name.
6044 (LM_NEXT): Rename to...
6045 (lm_next): New function name.
6046 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6047 function name changes above.
6048 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6049 (lm_addr_from_link_map): New function name.
6050 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6051 (has_lm_dynamic_from_link_map): New function name.
6052 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6053 (lm_dynamic_from_link_map): New function name.
6054 (LM_ADDR_CHECK): Rename to...
6055 (lm_addr_check): New function name.
6056 (LM_NEXT): Rename to...
6057 (lm_next): New function name.
6058 (LM_PREV): Rename to...
6059 (lm_prev): New function name.
6060 (LM_NAME): Rename to...
6061 (lm_name): New function name.
6062 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6063 (ignore_first_link_map_entry): New function name.
6064 (svr4_keep_data_in_core): Adapt to function name changes above.
6065 (svr4_current_sos): Likewise.
6066 (enable_break): Likewise.
6067 (svr4_relocate_section_addresses): Likewise.
6069 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6072 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6073 sprintf. Simplify code and avoid loosing memory.
6074 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6075 (call0_frame_cache): Remove && operator from end of line.
6077 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6079 Fix libraries displacement if they change whether they were prelinked.
6080 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6081 does not match. Comment why.
6083 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6085 * corelow.c: Include wrapper.h.
6086 (core_open): Call now gdb_target_find_new_threads.
6087 * wrapper.c: Include target.h.
6088 (gdb_target_find_new_threads): New.
6089 * wrapper.h (gdb_target_find_new_threads): New declaration.
6091 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6093 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6094 even if !TARGET_HAS_EXECUTION.
6096 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6098 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6099 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6100 bfd_get_synthetic_symtab.
6101 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6102 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6103 parameter parent, remove the call to add_separate_debug_objfile.
6104 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6105 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6106 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6107 parent, new comment for it, call add_separate_debug_objfile for it.
6108 (symbol_file_add_separate): Pass objfile as the parameter parent,
6109 remove the call to add_separate_debug_objfile.
6110 (symbol_file_add_from_bfd): New parameter parent, pass it.
6111 (symbol_file_add): Pass NULL to the new parameter parent.
6112 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6114 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6116 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6119 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6121 Fix Python access to inlined frames.
6122 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6123 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6125 2011-04-15 Tom Tromey <tromey@redhat.com>
6127 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6129 2011-04-15 Gary Benson <gbenson@redhat.com>
6131 * MAINTAINERS: Add myself to write-after-approval section.
6133 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6135 * remote-sim.c (sim_command_completer): New function.
6136 (_initialize_remote_sim): Set completer to sim_command_completer.
6138 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6140 * breakpoint.c (print_exception_catchpoint): Rename to ...
6141 (print_it_exception_catchpoint): ... this.
6142 (gnu_v3_exception_catchpoint_ops): Update with new name
6143 for print_it_exception_catchpoint.
6145 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6147 * MAINTAINERS: Add myself for write after approval privileges.
6149 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6151 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6153 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6155 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6157 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6159 * breakpoint.c (save_breakpoints): Verify whether
6160 breakpoint_ops.print_recreate is defined before calling it.
6162 2011-04-11 Gary Benson <gbenson@redhat.com>
6164 Fix failure with --enable-maintainer-mode.
6165 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6167 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6170 * symtab.c (search_symbols): Reorder the KIND description in the
6171 function comment. Remove the unused 4th element of types, types2,
6172 types3 and types4. New gdb_assert on KIND.
6173 (symtab_symbol_info): Remove the unused 4th element of classnames.
6174 New gdb_assert on KIND.
6175 * symtab.h (enum search_domain): New warning in the enum comment.
6176 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6179 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6181 Fix crash of gdb save-index on a STABS file.
6182 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6185 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6187 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6188 * dwarf2read.c: Include ctype.h.
6189 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6191 (dwarf2_add_field): Fix new_field->accessibility by calling
6192 dwarf2_default_access_attribute. Restructure setting accessibility
6194 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6195 is_private and is_protected by calling
6196 dwarf2_default_access_attribute.
6198 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6200 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6201 to the initialization.
6203 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6205 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6208 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6210 Remove support for old Cygwin 1.5 versions.
6211 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6212 function on old Cygwin version.
6213 * windows-nat.c: Remove cygwin version check and always define
6214 __USEWIDE for Cygwin compilation.
6216 2011-04-07 Yao Qi <yao@codesourcery.com>
6218 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6220 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6221 (arm_copy_svc): Remove parameters INSN and TO.
6222 (decode_svc_copro): Update caller.
6223 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6224 from function pointer `copy_svc_os'.
6226 2011-04-07 Yao Qi <yao@codesourcery.com>
6228 * arm-tdep.c (cleanup_branch): Set a correct return address in
6229 LR for ARM and Thumb.
6231 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6234 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6235 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6236 in the function comment, a new note on values compatibility.
6237 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6238 * symtab.h (SYMBOL_HASH_NEXT): New.
6240 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6242 * ppc-linux-nat.c (check_condition): Add len output parameter.
6243 Set it based on the memory region referenced in the condition
6244 expression. Update all callers.
6246 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6248 Fix crash regression on systems featuring .gdb_index.
6249 * objfiles.c (free_objfile): Move the
6250 forget_cached_source_info_for_objfile call earlier. Comment it.
6251 Extend the comment for objfile_free_data.
6253 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6255 Fix regression of displaying the debug format.
6256 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6259 2011-04-04 Tom Tromey <tromey@redhat.com>
6261 * cli/cli-interp.c (struct captured_execute_command_args):
6263 (do_captured_execute_command): Remove.
6264 (safe_execute_command): Use TRY_CATCH.
6265 * cli/cli-script.c (struct wrapped_read_command_file_args):
6267 (wrapped_read_command_file): Remove.
6268 (script_from_file): Use TRY_CATCH.
6269 * exceptions.c (catch_exception): Remove.
6270 * exceptions.h (catch_exception): Remove.
6271 (deprecated_throw_reason): Update comment.
6272 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6273 argument to 'context'.
6274 (mi_execute_command): Use TRY_CATCH.
6275 * remote.c (struct start_remote_args): Remove.
6276 (remote_start_remote): Update; change arguments.
6277 (remote_open_1): Use TRY_CATCH.
6279 2011-04-04 Tom Tromey <tromey@redhat.com>
6281 * tracepoint.c (scope_info): Update.
6282 * symtab.c (decode_line_spec): Update.
6283 * python/python.c (gdbpy_decode_line): Update.
6284 * linespec.h (decode_line_1): Update.
6285 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6286 (decode_compound, find_method, symtab_from_filename)
6287 (decode_variable): Likewise.
6288 * cli/cli-cmds.c (edit_command): Update.
6289 (list_command): Update.
6290 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6292 (create_breakpoint): Update.
6293 (until_break_command): Update.
6294 (addr_string_to_sals): Update.
6295 (decode_line_spec_1): Update.
6297 2011-04-04 Tom Tromey <tromey@redhat.com>
6299 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6300 (do_captured_parse_breakpoint): Remove.
6301 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6302 Use TRY_CATCH directly.
6304 2011-04-04 Tom Tromey <tromey@redhat.com>
6306 * symtab.h (free_symtab): Remove.
6307 (forget_cached_source_info_for_objfile): Declare.
6308 * symmisc.c (free_symtab): Remove.
6309 * source.c (forget_cached_source_info_for_objfile): New function.
6310 (forget_cached_source_info): Use it.
6311 * objfiles.c (free_objfile): Simplify check before calling
6312 clear_current_source_symtab_and_line. Call
6313 forget_cached_source_info_for_objfile.
6315 2011-04-04 Tom Tromey <tromey@redhat.com>
6317 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6318 (new_symtab): Don't set `free_code' on symtab.
6319 (new_linetable): Properly handle size==0.
6320 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6321 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6323 * jv-lang.c (struct jv_per_objfile_data): New.
6324 (jv_per_objfile_free): Free the data.
6325 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6326 (get_java_class_symtab): Set the `dict' field on the
6327 jv_per_objfile_data.
6328 (free_class_block): Remove.
6329 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6332 2011-04-04 Tom Tromey <tromey@redhat.com>
6334 * symfile.c (reread_symbols): Update.
6335 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6337 * objfiles.c (allocate_objfile): Update.
6338 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6340 * cp-namespace.c (lookup_symbol_file): Don't call
6341 lookup_possible_namespace_symbol.
6342 (initialize_namespace_symtab, get_possible_namespace_block)
6343 (free_namespace_block, cp_check_possible_namespace_symbols)
6344 (check_possible_namespace_symbols_loop)
6345 (check_one_possible_namespace_symbol)
6346 (lookup_possible_namespace_symbol): Remove.
6347 (maintenance_cplus_namespace): Replace with notice.
6348 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6350 2011-04-04 Tom Tromey <tromey@redhat.com>
6352 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6353 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6354 * symmisc.c (free_symtab): Don't free debugformat.
6355 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6356 (record_debugformat, record_producer): Document.
6357 * buildsym.c (end_symtab): Don't save debugformat and producer
6359 (end_symtab): Don't free debugformat and producer fields.
6360 (record_debugformat): Don't call xstrdup.
6361 (record_producer): Likewise.
6363 2011-04-04 Tom Tromey <tromey@redhat.com>
6365 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6366 (source_line_charpos, source_charpos_line): Remove.
6368 2011-04-04 Tom Tromey <tromey@redhat.com>
6370 * symtab.h (domain_enum): Split in two...
6371 (enum search_domain): New.
6372 (search_symbols): Update.
6373 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6374 redundant declarations.
6375 (search_symbols): Change 'kind' argument to search_domain.
6377 (print_symbol_info): Likewise.
6378 (symtab_symbol_info): Likewise.
6379 * symfile.h (struct quick_symbol_functions)
6380 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6381 <expand_symtabs_matching>: Likewise.
6382 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6383 (expand_symtabs_matching_via_partial): Update.
6384 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6385 (dw2_expand_symtabs_for_function): Update.
6386 * block.h: Moved anonymous enum...
6387 * defs.h (enum block_enum): ... here. Now named.
6389 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6391 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6392 * version.in: Bump version to 7.3.50.20110403-cvs.
6394 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6396 * NEWS: Create a new section for the next release branch.
6397 Rename the section of the current branch, now that it has
6400 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6402 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6403 for "fpscr" in target description.
6405 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6408 initialize it. Delay HASH initialization. Strip the part after open
6409 parenthesis for languages with qualifiers. Call do_cleanups.
6411 2011-04-01 Tom Tromey <tromey@redhat.com>
6413 * utils.c (report_command_stats): Don't print `-' for negative
6416 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6418 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6419 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6422 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6424 * breakpoint.h (bpdisp_text): Add declaration.
6425 * breakpoint.c (bpdisp_text): Make non-static.
6426 * ada-lang.c: #include "mi/mi-common.h".
6427 (print_it_exception): Rewrite to improve GDB/MI output.
6429 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6431 * arm-tdep.h (struct address_space): Add forward declaration.
6433 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6435 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6436 * arm-tdep.c (arm_override_mode): New global.
6437 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6438 execution mode heuristics.
6439 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6440 second single-step breakpoint if needed, using
6441 arm_insert_single_step_breakpoint.
6442 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6443 ARM execution mode, do not call thumb_get_next_pc_raw.
6444 (arm_get_next_pc): Encode execution mode in return value. Call
6445 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6446 (arm_insert_single_step_breakpoint): New function.
6447 (arm_software_single_step): Call it.
6448 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6449 argument to return execution mode of sigreturn target.
6450 (arm_linux_syscall_next_pc): Use it.
6451 (arm_linux_copy_svc): Update call.
6452 (arm_linux_software_single_step): Call
6453 arm_insert_single_step_breakpoint.
6455 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6457 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6460 2011-03-31 Tom Tromey <tromey@redhat.com>
6462 * varobj.c (update_dynamic_varobj_children): Properly handle
6463 errors from iterator.
6465 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6467 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6468 struct linkage name twice.
6470 2011-03-31 Tom Tromey <tromey@redhat.com>
6472 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6473 missing ">" to message.
6475 2011-03-31 Tom Tromey <tromey@redhat.com>
6477 * varobj.c (instantiate_pretty_printer): Remove duplicate
6480 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6482 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6483 if neither saved value nor register available (e.g. signal frame).
6485 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6487 * macroexp.c (expand): Avoid uninitialized variable
6490 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6492 * breakpoint.c (break_range_command): Fix typo in comment.
6494 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6495 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6497 Implement support for PowerPC BookE ranged breakpoints.
6498 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6499 * breakpoint.h (struct bp_target_info) <length>: New member
6501 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6502 instead of struct breakpoint as argument, and also add ASPACE
6503 and BP_ADDR arguments. Update all callers.
6504 (struct breakpoint_ops) <print_one_detail>: New method.
6505 (struct breakpoint) <addr_string_range_end>: New member variable.
6506 * breakpoint.c (breakpoint_location_address_match): Add function
6508 (insert_bp_location): Set bl->target_info.length.
6509 (breakpoint_here_p): Call breakpoint_location_address_match.
6510 (moribund_breakpoint_here_p): Likewise.
6511 (regular_breakpoint_inserted_here_p): Likewise.
6512 (breakpoint_thread_match): Likewise.
6513 (bpstat_stop_status): Likewise.
6514 (bpstat_check_location): Move call to
6515 breakpoint_ops.breakpoint_hit to the top.
6516 (print_one_breakpoint_location): Call
6517 breakpoint_ops.print_one_detail if available.
6518 (breakpoint_address_match_range): New function.
6519 (breakpoint_location_address_match): Likewise.
6520 (breakpoint_locations_match): Compare the length field of the
6522 (hw_breakpoint_used_count): Count resources used by all locations
6523 in a breakpoint, and use breakpoint_ops.resources_needed if
6525 (breakpoint_hit_ranged_breakpoint): New function.
6526 (resources_needed_ranged_breakpoint): Likewise.
6527 (print_it_ranged_breakpoint): Likewise.
6528 (print_one_ranged_breakpoint): Likewise.
6529 (print_one_detail_ranged_breakpoint): Likewise.
6530 (print_mention_ranged_breakpoint): Likewise.
6531 (print_recreate_ranged_breakpoint): Likewise.
6532 (ranged_breakpoint_ops): New structure.
6533 (find_breakpoint_range_end): New function.
6534 (break_range_command): Likewise.
6535 (delete_breakpoint): Free addr_string_range_end.
6536 (update_breakpoint_locations): Add SALS_END argument. Update
6537 all callers. Calculate breakpoint length if a non-zero SALS_END
6538 is given. Call breakpoint_locations_match instead of
6539 breakpoint_address_match.
6540 (reset_breakpoint): Find SaL of the end of the range if B is a
6542 (_initialize_breakpoint): Register break-range command.
6543 * defs.h (print_core_address): Add function prototype.
6544 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6546 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6547 (ppc_linux_remove_hw_breakpoint): Likewise.
6548 (_initialize_ppc_linux_nat): Initialize
6549 to_ranged_break_num_registers.
6550 * target.c (update_current_target): Add comment about
6551 to_ranged_break_num_registers.
6552 (target_ranged_break_num_registers): New function.
6553 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6555 (target_ranged_break_num_registers): Add function prototype.
6556 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6557 * utils.c (print_core_address): ... here.
6559 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6561 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6562 variable compiler warning.
6564 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6566 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6568 (re_set_breakpoint): ... to here ...
6569 (addr_string_to_sals): ... and here.
6571 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6573 * Makefile.in (SFILES): Add missing C sources.
6574 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6575 Add missing headers.
6577 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6579 * .gitignore: New file.
6581 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6583 * NEWS: Mention new cfi device simulation.
6585 2011-03-29 Tom Tromey <tromey@redhat.com>
6587 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6588 otherwise anonymous types.
6589 (dwarf2_name): Likewise.
6590 * valops.c (value_struct_elt_for_reference): Refine artificial
6591 type logic. Call error if j==-1.
6593 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6595 Fix false GCC warning.
6596 * infcall.c (find_function_addr): Initialize funaddr.
6598 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6600 Fix mingw compilation with --enable-targets=all.
6601 * remote-mips.c (gdb_usleep.h): Include header.
6602 (mips_enter_debug): Use gdb_usleep instead of sleep.
6604 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 Support resolution of STT_GNU_IFUNC via breakpoints.
6607 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6608 bp_gnu_ifunc_resolver_return.
6609 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6610 the loop. Support bp_gnu_ifunc_resolver and
6611 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6612 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6614 (bptype_string, print_one_breakpoint_location): Support
6615 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6616 (user_settable_breakpoint): Return true also for
6617 bp_gnu_ifunc_resolver.
6618 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6619 bp_gnu_ifunc_resolver_return.
6620 (set_breakpoint_location_function): New parameter explicit_loc,
6621 describe it. Call find_pc_partial_function_gnu_ifunc with new
6622 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6623 EXPLICIT_LOC is not set.
6624 (set_raw_breakpoint): Set EXPLICIT_LOC for
6625 set_breakpoint_location_function.
6626 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6627 set_breakpoint_location_function.
6628 (mention): Support bp_gnu_ifunc_resolver and
6629 bp_gnu_ifunc_resolver_return.
6630 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6631 set_breakpoint_location_function.
6632 (update_breakpoint_locations): Remove static.
6633 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6634 bp_gnu_ifunc_resolver_return.
6635 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6636 bp_gnu_ifunc_resolver_return.
6637 (update_breakpoint_locations): New declaration.
6638 * elfread.c: Include gdbthread.h and regcache.h.
6639 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6641 (elf_gnu_ifunc_fns): Install them.
6642 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6643 (stub_gnu_ifunc_resolver_return_stop): New functions.
6644 (stub_gnu_ifunc_fns): Install them.
6645 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6646 and gnu_ifunc_resolver_return_stop.
6647 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6649 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6651 STT_GNU_IFUNC reader implementation.
6652 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6653 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6654 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6655 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6656 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6657 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6658 (elf_gnu_ifunc_resolve_addr): New.
6659 (elf_symfile_read): Call elf_rel_plt_read.
6660 (elf_gnu_ifunc_fns): New.
6661 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6662 Install elf_gnu_ifunc_fns.
6663 * infcall.c (find_function_return_type): New function.
6664 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6665 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6666 (stub_gnu_ifunc_resolve_name): New functions.
6667 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6668 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6669 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6671 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6673 Code cleanup for later STT_GNU_IFUNC support.
6674 * infcall.c (find_function_addr): Remove variable code, use explicit
6675 dereferences for it. Move VALUE_TYPE initialization later.
6677 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6679 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6680 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6681 (clear_pc_function_cache): Clear it.
6682 (find_pc_partial_function): Rename to ...
6683 (find_pc_partial_function_gnu_ifunc): ... this function. New
6684 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6685 (find_pc_partial_function): New wrapper for this function.
6686 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6688 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6690 GDB internal type support for STT_GNU_IFUNC.
6691 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6692 (elf_symtab_read): Set mst_text_gnu_ifunc for
6693 BSF_GNU_INDIRECT_FUNCTION.
6694 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6695 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6696 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6697 nodebug_got_plt_symbol.
6698 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6699 (TYPE_GNU_IFUNC): New.
6700 (struct main_type): New field flag_gnu_ifunc.
6701 (struct builtin_type): New field builtin_func_func.
6702 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6703 nodebug_got_plt_symbol.
6704 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6705 (in_gnu_ifunc_stub): New.
6706 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6708 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6709 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6710 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6712 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6713 * symtab.c (search_symbols): Likewise.
6714 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6715 and mst_slot_got_plt.
6716 (in_gnu_ifunc_stub): New declaration.
6718 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6720 Support a ring of related breakpoints.
6721 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6722 other functions, add gdb_assert.
6723 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6724 watchpoint_del_at_next_stop.
6725 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6726 (bpstat_stop_status): Handle ring in related_breakpoint.
6727 (set_raw_breakpoint_without_location): Initialize ring in
6729 (delete_breakpoint): Handle ring in related_breakpoint, use
6730 watchpoint_del_at_next_stop.
6731 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6733 2011-03-28 Tom Tromey <tromey@redhat.com>
6736 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6737 with `language_minimal'.
6739 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6741 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6742 instead of checking for STT_ARM_TFUNC symbol type.
6744 2011-03-25 Tom Tromey <tromey@redhat.com>
6746 * linespec.c (symbol_found): Restore line-based result for
6747 non-LOC_LABEL symbols.
6749 2011-03-25 Kai Tietz <ktietz@redhat.com>
6751 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6752 instead of strcmp for comparison.
6753 (tui_source_is_displayed): Likewise.
6754 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6756 2011-03-24 Mark Wielaard <mjw@redhat.com>
6758 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6760 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6761 (find_partial_die_in_comp_unit): Likewise in comment.
6762 (read_attribute_value): Likewise.
6763 (lookup_die_type): Likewise.
6764 (dwarf_form_name): Likewise.
6765 (dump_die_shallow): Likewise.
6766 (follow_die_ref_or_sig): Likewise.
6768 2011-03-24 Tom Tromey <tromey@redhat.com>
6770 PR breakpoints/11816:
6771 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6772 (decode_compound): Update.
6773 (find_function_symbol): New function.
6774 (decode_dollar): Update.
6775 (decode_label): Add 'function_symbol' parameter. Handle
6776 function-relative labels.
6777 (decode_variable): Update.
6778 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6779 not its line. Set `special_display' and canonical name for
6782 2011-03-24 Tom Tromey <tromey@redhat.com>
6784 * linespec.h (struct linespec_result) <special_display>: New
6786 * breakpoint.h (struct breakpoint) <display_canonical>: New
6788 * breakpoint.c (print_breakpoint_location): Respect
6790 (create_breakpoint_sal): Add 'display_canonical' parameter.
6791 (create_breakpoints_sal): Update.
6792 (create_breakpoint): Update.
6794 2011-03-24 Tom Tromey <tromey@redhat.com>
6796 * symtab.c (decode_line_spec): Update.
6797 * linespec.c (build_canonical_line_spec): Change type of
6799 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6800 (find_method, decode_all_digits, decode_dollar, decode_label)
6801 (symbol_found): Likewise.
6802 (init_linespec_result): New function.
6803 * breakpoint.c (struct captured_parse_breakpoint_args)
6804 <canonical_p>: New field, replaces addr_string_p.
6805 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6807 (parse_breakpoint_sals): Likewise.
6808 (do_captured_parse_breakpoint): Update.
6809 (create_breakpoint): Use struct linespec_result.
6810 (until_break_command): Update.
6811 (breakpoint_re_set_one): Update.
6812 (decode_line_spec_1): Update.
6813 * linespec.h (struct linespec_result): New.
6814 (init_linespec_result): Declare.
6816 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6818 * regcache.c (regcache_raw_read): If the target didn't supply a
6819 given raw register, mark it as unavailable.
6821 2011-03-23 Kai Tietz <ktietz@redhat.com>
6823 * breakpoint.c (clear_command): Use filename_cmp
6824 instead of strcmp for comparison.
6825 * buildsym.c (watch_main_source_file_lossage): Likewise.
6826 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6827 checking just for slash.
6828 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6829 strrchr and filename_cmp instead of strcmp for filenames.
6830 (add_old_header_file): Use filename_cmp
6831 instead of strcmp for comparison.
6832 * exec.c (exec_set_section_address): Likewise.
6833 * macrotab.c (macro_lookup_inclusion): Likewise.
6834 (macro_lookup_inclusion): Likewise.
6835 * elfread.c (_initialize_elfread): Likewise.
6836 (elfstab_offset_sections): Likewise.
6837 (elfstab_offset_sections): Use lbasename instead of
6839 * mdebugread.c (parse_partial_symbols): Likewise.
6840 (arse_partial_symbols): Use filename_(n)cmp instead of
6841 str(n)cmp for comparison.
6842 * minsyms.c (lookup_minimal_symbol): Likewise.
6843 * psymtab.c (read_psymtabs_with_filename): Likewise.
6844 * solib.c (solib_read_symbols): Likewise.
6845 (reload_shared_libraries_1): Likewise.
6846 * symmisc.c (maintenance_print_symbols): Likewise.
6847 * symfile.c (separate_debug_file_exists): Likewise.
6848 (reread_symbols): Likewise.
6849 (find_separate_debug_file_by_debuglink): Likewise.
6850 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6851 * source.c (add_path): Likewise.
6852 * symtab.c (filename_seen): Likewise.
6853 (file_matches): Likewise.
6854 (print_symbol_info): Likewise.
6855 (maybe_add_partial_symtab_filename): Likewise.
6856 (make_source_files_completion_list): Likewise.
6857 * xml-syscall.c (init_sysinfo): Likewise.
6858 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6859 IS_DIR_SEPARATOR for checking for trailing path separator.
6861 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6863 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6864 label abort_expression.
6865 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6866 DWARF_VALUE_OPTIMIZED_OUT.
6868 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6871 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6872 to linkage_name. Invert its value. Update the function comment.
6873 (c_type_print_varspec_suffix): Invert it at the caller.
6874 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6876 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6878 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6879 errors when reading the `stop_pc'.
6880 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6883 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6885 * NEWS: Document gdb.Write stream keyword.
6887 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6890 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6891 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6892 (dwarf2_add_field): Fix new_field->accessibility for
6893 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6895 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6899 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6900 other error classes. Do not print stack trace.
6902 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6904 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6905 (dwarf2_add_field): Fix new_field->accessibility for
6906 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6908 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6910 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6911 encountering a load via a non-SP register.
6913 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6915 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6916 field in returned unwinder.
6918 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6920 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6922 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6924 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6927 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6929 * frame.c (frame_unwind_register): Throw an error if unwinding the
6931 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6932 an unwind stop reason.
6933 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6934 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6935 UNWIND_UNAVAILABLE>: New.
6936 * inline-frame.c (inline_frame_unwind): Install
6937 default_frame_unwind_stop_reason.
6938 * frame-unwind.c: Include "exceptions.h".
6939 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6940 (default_frame_unwind_stop_reason): New.
6941 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6942 (default_frame_unwind_stop_reason): Declare.
6943 (struct frame_unwind) <stop_reason>: New function pointer.
6945 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6946 * dwarf2-frame.c: Include exceptions.h.
6947 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6948 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6949 computing the CFA. If such an error was thrown, set
6950 unavailable_retaddr.
6951 (dwarf2_frame_unwind_stop_reason): New.
6952 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6954 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6955 (dwarf2_signal_frame_unwind): Ditto.
6957 * amd64-tdep.c: Include "exceptions.h".
6958 (struct amd64_frame_cache): New field "base_p".
6959 (amd64_init_frame_cache): Clear it.
6960 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6961 Avoid reading registers with functions that throw if the register
6962 is not necessary to compute the frame base.
6963 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6964 swallowing NOT_AVAILABLE_ERROR.
6965 (amd64_frame_unwind_stop_reason): New.
6966 (amd64_frame_this_id): Don't build a frame id if the frame base
6968 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6969 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6970 base_p if the frame base was computable.
6971 (amd64_sigtramp_frame_unwind_stop_reason): New.
6972 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6973 frame base was unavailable.
6974 (amd64_sigtramp_frame_unwind): Install
6975 amd64_sigtramp_frame_unwind_stop_reason.
6976 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6977 base_p if the frame base was computable.
6978 (amd64_epilogue_frame_unwind_stop_reason): New.
6979 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6980 frame base was unavailable.
6981 (amd64_epilogue_frame_unwind): Install
6982 amd64_epilogue_frame_unwind_stop_reason.
6983 * i386-tdep.c: Include "exceptions.h".
6984 (struct i386_frame_cache): New field "base_p".
6985 (i386_init_frame_cache): Clear it.
6986 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6987 Avoid reading registers with functions that throw if the register
6988 is not necessary to compute the frame base.
6989 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6990 swallowing NOT_AVAILABLE_ERROR.
6991 (i386_frame_unwind_stop_reason): New.
6992 (i386_frame_this_id): Don't build a frame id if the frame base was
6994 (i386_frame_prev_register): Handle unavailable SP.
6995 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6996 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6997 base_p if the frame base was computable.
6998 (i386_epilogue_frame_unwind_stop_reason): New.
6999 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7000 base was unavailable.
7001 (i386_epilogue_frame_unwind): Install
7002 i386_epilogue_frame_unwind_stop_reason.
7003 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7004 base_p if the frame base was computable.
7005 (i386_sigtramp_frame_unwind_stop_reason): New.
7006 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7007 base was unavailable.
7008 (i386_sigtramp_frame_unwind): Install
7009 i386_sigtramp_frame_unwind_stop_reason.
7010 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7011 type's size, not the register's.
7012 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7014 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7015 default_frame_unwind_stop_reason.
7016 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7017 (alpha_heuristic_frame_unwind): Ditto.
7018 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7019 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7020 * avr-tdep.c (avr_frame_unwind): Ditto.
7021 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7023 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7024 * frv-tdep.c (frv_frame_unwind): Ditto.
7025 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7026 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7027 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7028 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7029 (hppa_stub_frame_unwind): Ditto.
7030 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7031 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7032 (ia64_libunwind_frame_unwind)
7033 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7034 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7035 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7036 * m32c-tdep.c (m32c_unwind): Ditto.
7037 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7038 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7039 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7040 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7041 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7042 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7043 * mep-tdep.c (mep_frame_unwind): Ditto.
7044 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7045 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7046 (mips_stub_frame_unwind): Ditto.
7047 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7048 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7049 * mt-tdep.c (mt_frame_unwind): Ditto.
7050 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7051 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7052 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7053 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7054 (s390_sigtramp_frame_unwind): Ditto.
7055 * score-tdep.c (score_prologue_unwind): Ditto.
7056 * sh-tdep.c (sh_frame_unwind): Ditto.
7057 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7058 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7059 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7060 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7061 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7062 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7063 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7064 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7065 (sparc64obsd_trapframe_unwind): Ditto.
7066 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7067 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7068 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7069 * v850-tdep.c (v850_frame_unwind): Ditto.
7070 * vax-tdep.c (vax_frame_unwind): Ditto.
7071 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7072 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7073 * xtensa-tdep.c (xtensa_unwind): Ditto.
7075 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7077 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7078 there's always a frame. Use get_frame_pc_if_available instead of
7079 get_frame_pc, and if there's no PC available, don't look up a
7082 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7084 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7087 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7089 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7092 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7094 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7095 * frame.c (frame_unwind_caller_pc_if_available): New.
7096 * stack.c (frame_info): Handle unavailable PC.
7098 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7100 * frame.c (frame_unwind_pc): Rename to ...
7101 (frame_unwind_pc_if_available): ... this. New `pc' output
7102 parameter. Change return type to int. Gracefully handle
7103 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7104 happened, or 1 otherwise.
7105 (frame_unwind_pc): Reimplement on top of
7106 frame_unwind_pc_if_available.
7107 (get_frame_func): Rename to ...
7108 (get_frame_func_if_available): New `pc' output parameter. Change
7109 return type to int. Gracefully handle the PC not being available.
7110 (get_frame_func): Reimplement on top of
7111 get_frame_func_if_available.
7112 (select_frame): Handle the PC being unavailable.
7113 (get_prev_frame): Handle the PC being unavailable.
7114 (get_frame_pc_if_available): New.
7115 (get_frame_address_in_block_if_available): New.
7116 (find_frame_sal): Handle the frame PC not being available.
7117 * frame.h (get_frame_pc_if_available): Declare.
7118 (get_frame_address_in_block_if_available): Declare.
7119 (get_frame_func_if_available): Declare.
7120 * stack.c (print_frame_info): Handle the PC being unavailable.
7121 (find_frame_funname): Ditto.
7122 (print_frame): Handle the PC being unavailable.
7123 (get_frame_language): Ditto.
7124 * blockframe.c (get_frame_block): Ditto.
7125 * macroscope.c (default_macro_scope): Ditto.
7126 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7128 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7130 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7131 NOT_AVAILABLE_ERROR when evaluating the location expression.
7133 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7135 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7136 returning that the register piece is unavailable/optimized out.
7137 (write_pieced_value): Handle get_frame_register_bytes returning
7138 that the register piece is unavailable/optimized out when doing a
7139 read-modify write of a bitfield.
7140 * findvar.c (value_from_register): Handle get_frame_register_bytes
7141 returning that the register piece is unavailable/optimized out.
7142 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7143 and `unavailablep'. Throw error on bad debug info. Use
7144 frame_register instead of frame_register_read, to fill in the new
7146 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7148 * valops.c: (value_assign): Adjust, and handle
7149 get_frame_register_bytes failing.
7150 * spu-tdep.c: Include exceptions.h.
7151 (spu_software_single_step): Adjust, and handle
7152 get_frame_register_bytes failing.
7153 (spu_get_longjmp_target): Ditto.
7154 * gdbarch.sh (register_to_value): Change to return int. New
7155 parameters `optimizedp' and `unavailablep'.
7156 * gdbarch.h, gdbarch.c: Regenerate.
7157 * i386-tdep.c (i386_register_to_value): Adjust to new
7158 gdbarch_register_to_value interface.
7159 * i387-tdep.c (i387_register_to_value): Ditto.
7160 * i387-tdep.h (i387_register_to_value): Ditto.
7161 * alpha-tdep.c (alpha_register_to_value): Ditto.
7162 * ia64-tdep.c (ia64_register_to_value): Ditto.
7163 * m68k-tdep.c (m68k_register_to_value): Ditto.
7164 * mips-tdep.c (mips_register_to_value): Ditto.
7165 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7167 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7169 * findvar.c (value_of_register): Mark the value as unavailable, if
7170 the register is unavailable.
7171 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7172 (frame_register): New `unavailablep' parameter.
7173 (frame_register_read): Update comment.
7174 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7175 Set it if the register is unavailable. If the register is
7176 unavailable, clear the output buffer.
7177 (frame_register): New `unavailablep' parameter. Pass it down.
7178 (frame_unwind_register): Adjust.
7179 (put_frame_register): Adjust.
7180 (frame_register_read): Adjust. Also return false if the register
7182 (frame_register_unwind_location): Adjust.
7183 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7184 is unavailable, mark the value accordingly.
7185 * stack.c (frame_info): Handle unavailable registers.
7187 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7189 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7190 simplify, using regcache_cooked_read.
7192 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7194 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7195 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7196 (regcache_raw_read_unsigned, regcache_raw_read_part)
7197 (regcache_cooked_read, regcache_cooked_read_signed)
7198 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7199 (regcache_cooked_read_ftype): Change return to enum
7201 * regcache.c: Include exceptions.h
7202 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7203 (do_cooked_read): Change return to enum register_status. Always
7204 forward to regcache_cooked_read.
7205 (regcache_raw_read): Change return to enum register_status. If
7206 the register is not REG_VALID, memset the buffer. Return the
7208 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7209 return the register's status.
7210 (regcache_raw_read_unsigned): Ditto.
7211 (regcache_cooked_read): Change return to enum register_status.
7212 Assert that with read-only regcaches, the register's status must
7213 be known. If the regcache is read-only, and the register is not
7214 REG_VALID, memset the buffer. Return the register's status.
7215 (regcache_cooked_read_signed): Change return to enum
7216 register_status. Handle non-REG_VALID registers and return the
7218 (regcache_cooked_read_unsigned): Change return to enum
7219 register_status. Handle non-REG_VALID registers and return the
7221 (regcache_xfer_part, regcache_raw_read_part)
7222 (regcache_cooked_read_part): Change return to enum
7223 register_status. Return the register's status.
7224 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7226 (regcache_dump): Handle unavailable cooked registers.
7227 * frame.c (do_frame_register_read): Adjust interface to match
7228 regcache_cooked_read_ftype.
7229 * gdbarch.sh (pseudo_register_read): Change return to enum
7231 * gdbarch.h, gdbarch.c: Regenerate.
7233 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7235 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7236 register_status. If reading a raw register indicates the raw
7237 register is not valid, return the raw register's status,
7238 otherwise, return REG_VALID.
7239 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7240 register_status. Handle non-REG_VALID raw registers and return
7241 the register's status.
7242 * arm-tdep.c (arm_neon_quad_read)
7243 (arm_pseudo_read): Change return to enum register_status. Handle
7244 non-REG_VALID raw registers and return the register's status.
7245 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7246 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7247 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7248 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7249 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7251 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7252 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7253 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7254 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7255 (m32c_pseudo_register_read): Change return to enum
7256 register_status. Adjust.
7257 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7258 enum register_status. Return the register's status.
7259 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7260 register_status. Return the register's status.
7261 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7262 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7263 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7264 * rs6000-tdep.c (move_ev_register_func): New typedef.
7265 (e500_move_ev_register): Use it. Change return to enum
7266 register_status. Return the register's status.
7267 (do_regcache_raw_read): New function.
7268 (do_regcache_raw_write): New function.
7269 (e500_pseudo_register_read): Change return to enum
7270 register_status. Return the register's status. Use
7271 do_regcache_raw_read.
7272 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7273 (dfp_pseudo_register_read): Change return to enum register_status.
7274 Return the register's status.
7275 (vsx_pseudo_register_read): Ditto.
7276 (efpr_pseudo_register_read): Ditto.
7277 (rs6000_pseudo_register_read): Ditto.
7278 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7279 register_status. Return the register's status.
7280 * sh64-tdep.c (pseudo_register_read_portions): New function.
7281 (sh64_pseudo_register_read): Change return to enum
7282 register_status. Use pseudo_register_read_portions. Return the
7284 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7285 register_status. Return the register's status.
7286 * sh-tdep.c (pseudo_register_read_portions): New function.
7287 (sh_pseudo_register_read): Change return to enum register_status.
7288 Use pseudo_register_read_portions. Return the register's status.
7289 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7290 enum register_status. Return the register's status.
7291 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7292 * spu-tdep.c (spu_pseudo_register_read_spu)
7293 (spu_pseudo_register_read): Ditto.
7294 * xtensa-tdep.c (xtensa_register_read_masked)
7295 (xtensa_pseudo_register_read): Ditto.
7296 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7298 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7300 * python/py-value.c (valpy_getitem): Fix formatting of error function
7303 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7305 ARI fixes: Add missing internationalization markups throughout
7307 * darwin-nat-info.c: Ditto.
7310 * mi/mi-main.c: Ditto.
7312 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7314 ARI fixes: Add missing internationalization markups throughout
7317 * cp-name-parser.y: Ditto.
7320 * objc-exp.y: Ditto.
7323 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7325 ARI fixes: Messages should have no trailing new lines.
7326 * darwin-nat.c (mach_check_error): Remove trailing new line from
7327 warning function call message.
7328 * record.c (bfdcore_read): Idem for error call.
7330 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7332 * common/signals.c (target_signal_from_host): Add _ markup to error
7333 function call message.
7334 (target_signal_to_host): Add _ markup and remove trailing new line
7335 from warning call message.
7336 (target_signal_from_command): Add _ markup to error function call
7339 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7343 * python/python.c (gdbpy_write): Accept a stream argument and
7344 operate to the appropriate stream.
7345 (gdbpy_flush): Likewise.
7346 (_initialize_python): Add stream constants.
7347 (finish_python_initialization): Add GdbOutputErrorFile class.
7349 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7351 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7353 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7355 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7356 to store_signed_integer. Add debug message when relocating CALL
7357 instructions. Fix formatting of debug message.
7358 * i386-tdep.c (i386_relocate_instruction): Ditto.
7360 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7362 * target.h (struct target_ops): Remove to_lookup_symbol field.
7363 (target_lookup_symbol): Delete macro.
7364 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7365 (update_current_target, setup_target_debug): Remove handling
7366 of to_lookup_symbol target_ops field.
7367 * ada-tasks.c (get_known_tasks_addr): Remove use of
7368 target_lookup_symbol.
7369 * coffread.c (coff_symtab_read): Likewise.
7370 * dbxread.c (read_dbx_symtab): Ditto.
7372 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7375 * configure.ac: Add getthrds declaration check.
7376 * configure, config.in: Regenerate.
7377 * aix-thread.c (getthrds): Declare only if not already declared
7378 in procinfo.h. More declaration out of get_signaled_thread to
7381 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7383 * python/py-symtab.c: Populate symtab_object_methods,
7385 (stpy_is_valid): New function.
7386 (salpy_is_valid): Ditto.
7387 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7388 (sympy_is_valid): New function.
7389 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7390 (objfpy_is_valid): New function.
7391 * python/py-inferior.c: Populate inferior_object_methods.
7392 (infpy_is_valid): New function.
7393 * python/py-infthread.c: Populate thread_object_methods.
7394 (thpy_is_valid): New function.
7395 * python/py-block.c: Declare block_object_methods. Populate. Declare
7396 block_iterator_object_methods. Populate.
7397 (blpy_is_valid): New function.
7398 (blpy_iter_is_valid): Ditto.
7400 2011-03-16 Keith Seitz <keiths@redhat.com>
7402 * linespec.c (find_methods): Canonicalize NAME before looking
7404 (name_end): New function.
7405 (keep_name_info): New function.
7406 (decode_line_1): Use keep_name_info.
7407 (decode_compound): Likewise.
7408 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7409 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7412 * linespec.c (locate_first_half): Keep overload information, too.
7413 (decode_compound): Use a string to represent break characters
7415 If P points to a break character, do not increment it.
7416 For C++ and Java, keep overload information and relevant keywords.
7417 If we cannot find a symbol, search the minimal symbols.
7420 * linespec.c (decode_compound): Rename SAVED_ARG to
7422 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7424 Pass a valid block to lookup_symbol.
7425 (lookup_prefix_sym): Likewise.
7426 (find_method): Construct search name based on SYM_CLASS instead
7428 * psymtab.c (lookup_partial_symbol): Add language parameter.
7429 (lookup_symbol_aux_psymtabs): Likewise.
7430 Don't assume that the psymtab we found was the right one. Search
7431 for the desired symbol in the symtab to be certain.
7432 (psymtab_search_name): New function.
7433 (lookup_partial_symbol): Use psymtab_search_name.
7434 Add language parameter.
7435 (read_symtabs_for_function): Add language parameter and pass to
7436 lookup_partial_symbol.
7437 (find_symbol_file_from_partial): Likewise.
7439 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7442 * dwarf2read.c (noop_record_line): New function.
7443 (dwarf_decode_lines): Ignore line tables for GCd functions.
7445 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7447 Fix ARI warnings about new lines at the end of messages, which
7448 are unneeded as there is a new line added at the end of the message
7450 * darwin-nat.c (darwin_stop_inferior): Ditto.
7451 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7452 * dfp.c (decimal_to_number): Ditto.
7453 * exec.c (print_section_info): Ditto.
7454 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7455 * osdata.c (get_osdata): Ditto.
7456 * record.c (bfdcore_write): Ditto.
7457 * remote-mips.c (mips_readchar): Ditto.
7458 * remote.c (read_ptid): Ditto.
7459 * ser-mingw.c (ser_windows_raw): Ditto.
7460 * tracepoint.c (add_local_symbols): Ditto.
7461 * windows-nat.c (fake_create_process): Ditto.
7463 2011-03-16 Tom Tromey <tromey@redhat.com>
7465 * tracepoint.c (stop_tracing): Don't declare.
7466 * event-top.c (after_char_processing_hook): Add `(void)'.
7468 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7470 * NEWS: Add Parameter sub-classing description.
7472 2011-03-16 Kai Tietz <ktietz@redhat.com>
7474 * MAINTAINERS: Update my e-mail address.
7476 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7478 * MAINTAINERS: Add myself for write after approval privileges.
7480 2011-03-15 Michael Snyder <msnyder@vmware.com>
7482 * frame.c (find_frame_sal): Assert sym is not null.
7484 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7486 * objc-lang.c (selectors_info): Check strchr for null result.
7488 * stabsread.c (define_symbol): Guard against bad stabstring input.
7490 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7492 Remove trailing spaces and tabulations from pascal language
7497 p-valprint.c: Ditto.
7499 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7501 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7502 than LOW. Comment it.
7503 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7504 HIGHPC not strictly higher than LOWPC.
7506 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7508 Fix formatting of function declarations returning a pointer in
7510 * varobj.c (varobj_add_child): Ditto.
7511 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7512 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7514 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7516 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7517 for the "generic" vector ABI used with GCC 4.3 and later.
7518 (ppc64_sysv_abi_return_value): Likewise.
7520 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7522 * infcall.c (call_function_by_hand): Function return value is
7523 always a non_lval, even when using struct_return.
7525 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7527 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7528 (map_display_numbers): New.
7529 (do_delete_display): New.
7530 (undisplay_command): Use map_display_numbers.
7531 (do_enable_disable_display): New.
7532 (enable_disable_display_command): New function.
7533 (enable_display): Delete.
7534 (enable_display_command): New.
7535 (disable_display_command): Reimplement.
7536 (_initialize_printcmd): Adjust "enable display" command to use
7537 `enable_display_command' as callback.
7539 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7541 * NEWS: Add Python breakpoint 'stop' operation.
7543 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7545 * NEWS: Delete duplicate entry. Fix typo.
7547 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7549 Fix ARI warning about function names in first column.
7550 Put prototype declaration on same line as return type.
7551 * objc-exp.y: Ditto.
7553 * python/py-stopevent.h: Ditto.
7554 For long function names, split parameters to
7555 allow function name on same line as return type.
7556 * solib-pa64.c: Ditto.
7559 For long function declaration, use single line.
7560 * hppa-tdep.h: Ditto.
7561 * inferior.h: Ditto.
7563 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7565 * python/python.h: Declare gdbpy_should_stop and
7566 gdbpy_breakpoint_has_py_cond.
7567 * python/python.c: Add python.h to includes. Remove python.h from
7568 HAVE_PYTHON definition
7569 (gdbpy_should_stop): New dummy function.
7570 (gdbpy_breakpoint_has_py_cond): New dummy function.
7571 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7572 sub-classing capabilities.
7573 (gdbpy_should_stop): New function.
7574 (gdbpy_breakpoint_has_py_cond): New function.
7575 (local_setattro): New function.
7576 * breakpoint.c (condition_command): Add check for Python 'stop'
7578 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7579 operation function as part of stop/continue tests.
7581 2011-03-14 Tom Tromey <tromey@redhat.com>
7584 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7585 (needs_frame_dwarf_call): Likewise.
7587 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7589 Fix ARI warning about functions without parameters that do not
7591 * breakpoint.c (all_tracepoints): Replace () by (void).
7592 * f-exp.y (match_string_literal): Ditto.
7594 * m2-exp.y (yylex): Ditto.
7595 * mep-tdep.c (current_me_module): Ditto.
7596 (current_options): Ditto.
7597 (current_cop_data_bus_width): Ditto.
7598 (current_cr_names): Ditto.
7599 (current_cr_is_float): Ditto.
7600 (current_ccr_names): Ditto.
7601 * objc-exp.y (yylex): Ditto.
7602 * p-exp.y (yylex): Ditto.
7603 * remote.c (send_interrupt_sequence): Ditto.
7604 * tracepoint.c (current_trace_status): Ditto.
7605 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7606 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7608 2011-03-11 Michael Snyder <msnyder@vmware.com>
7610 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7611 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7612 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7613 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7614 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7616 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7617 (delete_async_event_handler): Ditto.
7619 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7621 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7623 * top.c (set_verbose): Assert showcmd was found.
7625 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7627 * xtensa-tdep.c (warning_once): Correct style issues.
7629 2011-03-11 Yao Qi <yao@codesourcery.com>
7631 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7633 2011-03-11 Andreas Schwab <schwab@redhat.com>
7635 * common/aclocal.m4: Remove.
7637 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7639 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7640 (xtensa_write_register, xtensa_read_register): Likewise.
7641 (xtensa_hextochar): Removed.
7642 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7644 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7646 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7647 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7648 (xtensa_alloc_frame_cache): Add initialization for new fields.
7649 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7650 (warning_once): New function.
7651 (xtensa_insn_kind): New item c0opc_and.
7652 (call0_classify_opcode): Add the case for AND instruction.
7653 (call0_track_op): Change arguments. New local variable litbase.
7654 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7655 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7657 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7658 (call0_analyze_prologue): Update the comments. Change arguments.
7659 Add the variety of updates to handle extended prologues, which now can
7660 conduct dynamic stack adjustments.
7661 (call0_frame_cache): Likewise.
7662 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7663 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7665 2011-03-10 Michael Snyder <msnyder@vmware.com>
7667 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7668 (cmd_qtframe): Ditto.
7669 (cmd_qtbuffer): Ditto.
7670 (cmd_bigqtbuffer): Ditto.
7672 2011-03-10 Tom Tromey <tromey@redhat.com>
7674 * tracepoint.c (trace_actions_command): Update.
7675 * thread.c (thread_apply_command): Update.
7676 * reverse.c (delete_bookmark_command): Update.
7677 (bookmarks_info): Update.
7678 * printcmd.c (undisplay_command): Update.
7679 * memattr.c (mem_enable_command): Update.
7680 (mem_disable_command): Update.
7681 (mem_delete_command): Update.
7682 * inferior.c (detach_inferior_command): Update.
7683 (kill_inferior_command): Update.
7684 (remove_inferior_command): Update.
7685 * cli/cli-utils.h (struct get_number_or_range_state): New.
7686 (init_number_or_range): Declare.
7687 (get_number_or_range): Update.
7688 * cli/cli-utils.c (init_number_or_range): New function.
7689 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7691 (number_is_in_list): Update.
7692 * breakpoint.h (get_tracepoint_by_number): Update.
7693 * breakpoint.c (map_breakpoint_numbers): Update for change to
7694 get_number_or_range.
7695 (find_location_by_number): Use get_number, not
7696 get_number_or_range.
7697 (trace_pass_set_count): New function.
7698 (trace_pass_command): Update for change to get_number_or_range.
7700 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7703 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7705 * python/py-param.c (add_setshow_generic): Add set/show callback
7706 parameters. Register Python object context.
7707 (get_show_value): New function.
7708 (get_set_value): New function.
7709 (call_doc_function): New function.
7710 (get_doc_string): Move behind get_show_value/get_set_value.
7712 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7714 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7716 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7718 * xtensa-tdep.c (xtensa_read_register): Add comment.
7719 (xtensa_write_register): Likewise.
7720 (xtensa_hextochar): Add comment and update to match coding conventions.
7721 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7722 (execute_l32e, execute_s32e, execute_code): Update comments.
7723 (xtensa_exception_handler_t): Update to match coding conventions.
7724 (xtensa_insn_kind): Likewise.
7726 2011-03-09 Michael Snyder <msnyder@vmware.com>
7728 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7730 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7732 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7734 2011-03-09 Tom Tromey <tromey@redhat.com>
7736 * thread.c (restore_selected_frame): Handle frame_level == -1.
7737 (make_cleanup_restore_current_thread): Use
7738 get_selected_frame_if_set.
7739 * frame.h (get_selected_frame_if_set): Declare.
7740 * frame.c (get_selected_frame_if_set): New function.
7742 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7744 * cli/cli-cmds.c (shell_escape): Use lbasename.
7745 * coffread.c (coff_start_symtab): Constify parameter.
7746 (complete_symtab): Constify `name' parameter.
7747 (coff_symtab_read): Constify `filestring' local.
7748 (coff_getfilename): Constify return and `result' local.
7750 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7751 * linux-fork.c (info_checkpoints_command): Use lbasename.
7752 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7753 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7754 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7755 * procfs.c (procfs_make_note_section): Use lbasename.
7756 * tui/tui-io.c (printable_part): Constity return and parameter.
7758 (print_filename): Constify parameters, and local `s'.
7759 (tui_rl_display_match_list): Constify local `temp'.
7761 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7764 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7765 Fix DWARF-3+ DW_AT_accessibility default assumption.
7766 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7767 cu->header.version >= 3.
7769 2011-03-09 Yao Qi <yao@codesourcery.com>
7771 * common/Makefile.in: Remove.
7772 * common/configure: Remove.
7773 * common/configure.ac: Remove.
7775 2011-03-09 Yao Qi <yao@codesourcery.com>
7778 2011-02-11 Yao Qi <yao@codesourcery.com>
7780 * common/Makefile.in: Add copyright header.
7782 2011-02-11 Yao Qi <yao@codesourcery.com>
7784 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7786 * configure.ac: Add common to sub dir.
7787 * configure: Regenerate.
7789 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7791 * xtensa-tdep.c (call0_ret): New function.
7792 (xtensa_skip_prologue): Speed up analysis.
7794 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7796 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7797 while executing MI command -data-list-changed-registers.
7799 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7801 * xtensa-tdep.c (xtensa_read_register): New function.
7802 (xtensa_write_register): New function.
7803 (xtensa_find_register_by_name): New function.
7804 (xtensa_windowed_frame_cache): Update comments in type description.
7805 (xtensa_frame_cache): Likewise.
7806 (xtensa_window_interrupt_insn): New function.
7807 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7808 (xtensa_insn_kind): Add new instructions.
7809 (rwx_special_register): New function.
7810 (call0_classify_opcode): Add new instructions to the analysis.
7811 (a0_saved, a7_saved, a11_saved): New variables.
7812 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7813 (execute_l32e): New function.
7814 (execute_s32e): New function.
7815 (xtensa_exception_handler_t): New type.
7816 (execute_code): New function.
7817 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7818 analysis for Xtensa Window Exception handlers.
7820 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7822 * xtensa-tdep.c (TX_PS): New.
7823 (windowing_enabled): Update to count for Call0 ABI.
7824 (xtensa_hextochar): New.
7825 (xtensa_init_reggroups): Make algorithm generic.
7826 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7828 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7830 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7832 2011-03-08 Michael Snyder <msnyder@vmware.com>
7834 * i386-tdep.c (i386_follow_jump): Check return value of
7836 (i386_analyze_struct_return): Ditto.
7837 (i386_skip_probe): Ditto.
7838 (i386_match_insn): Ditto.
7839 (i386_skip_noop): Ditto.
7840 (i386_analyze_frame_setup): Ditto.
7841 (i386_analyze_register_saves): Ditto.
7842 (i386_skip_prologue): Ditto.
7843 (i386_skip_main_prologue): Ditto.
7845 * target.c (read_whatever_is_readable): Fix memory leak.
7847 * i386-tdep.c (i386_process_record): Document fall through.
7849 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7851 Fix DWARF-3+ DW_AT_accessibility default assumption.
7852 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7853 cu->header.version >= 3.
7855 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7857 * remote.c (remote_check_symbols): Skip if the target has no
7860 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7862 * target.c (read_whatever_is_readable): Reformat comment,
7863 with a minor typo fix. Minor reformatting of the code.
7865 2011-03-08 Yao Qi <yao@codesourcery.com>
7867 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7868 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7869 Use cached result instead of calling displaced_in_arm_mode again.
7870 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7871 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7872 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7873 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7874 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7875 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7876 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7877 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7878 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7879 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7880 (arm_catch_kernel_helper_return): Likewise.
7881 * gdb/arm-tdep.h : Update function declarations.
7883 2011-03-07 Michael Snyder <msnyder@vmware.com>
7885 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7887 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7889 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7891 * elfread.c (elf_symtab_read): Stop memory leak.
7893 * main.c (captured_main): Fix memory leak.
7895 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7897 * ada-lang.c (compare_names): Call is_name_suffix with string1
7900 2011-03-07 Tom Tromey <tromey@redhat.com>
7902 * xcoffread.c (xcoff_sym_fns): Update.
7903 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7904 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7905 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7906 (symbol_file_add_with_addrs_or_offsets): Likewise.
7907 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7908 * somread.c (som_sym_fns): Update.
7909 * psymtab.h (require_partial_symbols): Declare.
7910 * psymtab.c (require_partial_symbols): New function.
7911 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7912 (ALL_OBJFILE_PSYMTABS): Undef.
7913 (ALL_PSYMTABS): Move from psympriv.h.
7914 (lookup_partial_symtab, find_pc_sect_psymtab)
7915 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7916 (find_last_source_symtab_from_partial)
7917 (forget_cached_source_info_partial)
7918 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7919 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7920 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7921 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7922 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7923 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7924 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7925 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7926 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7928 * mipsread.c (ecoff_sym_fns): Update.
7929 * machoread.c (macho_sym_fns): Update.
7930 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7931 (read_psyms): New function.
7932 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7933 (elf_sym_fns_lazy_psyms): New global.
7934 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7935 dwarf2_build_psymtabs.
7936 * dbxread.c (aout_sym_fns): Update.
7937 * coffread.c (coff_sym_fns): Update.
7939 2011-03-07 Tom Tromey <tromey@redhat.com>
7941 * infrun.c (print_exited_reason): Include inferior id and pid in
7944 2011-03-07 Tom Tromey <tromey@redhat.com>
7946 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7948 (target_has_execution_1): Update.
7949 (target_has_execution_current): Declare.
7950 (target_has_execution): Call target_has_execution_current.
7951 (default_child_has_execution): Update.
7952 * target.c (default_child_has_execution): Add 'the_ptid'
7954 (target_has_execution_1): Likewise.
7955 (target_has_execution_current): New function.
7956 (add_target): Update.
7957 (init_dummy_target): Update.
7958 * remote-m32r-sdi.c (m32r_has_execution): New function.
7959 (init_m32r_ops): Use it.
7960 * record.c (record_core_has_execution): Now static. Add
7961 'the_ptid' parameter.
7962 * inferior.c (have_live_inferiors): Don't save current thread.
7963 Use target_has_execution_1.
7965 2011-03-07 Yao Qi <yao@codesourcery.com>
7967 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7969 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7971 * elfread.c (elf_symtab_read): Minor reformatting.
7973 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7975 * objc-lang.c (selectors_info): Minor reformatting.
7977 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7979 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7981 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7982 Michael Snyder <msnyder@vmware.com>
7984 * ada-valprint.c (ada_val_print_array): Move the declaration of
7985 "byte_order" and "elttype" inside the block where these variables
7986 are actually used. Remove some special handling for the case
7987 where "elttype" and "eltlen" are null. Replace by a comment
7988 and a couple of assertion checks.
7990 2011-03-05 Michael Snyder <msnyder@vmware.com>
7992 * source.c (add_path): Replace semicolon at end of block.
7993 * dwarf2expr.c (execute_stack_op): Ditto.
7995 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7997 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7998 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7999 (bfin-*-*): Likewise.
8001 2011-03-05 Michael Snyder <msnyder@vmware.com>
8003 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8004 * mdebugread.c (parse_symbol): Ditto.
8005 * parse.c (parse_exp_in_context): Ditto.
8006 * source.c (add_path): Ditto.
8007 * utils.c (gnu_debuglink_crc32): Ditto.
8008 * varobj.c (variable_language): Ditto.
8010 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8012 2011-03-04 Michael Snyder <msnyder@vmware.com>
8014 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8016 * symfile.c (simple_overlay_update): Check for null return value
8017 from lookup_minimal_symbol.
8019 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8021 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8023 * eval.c (parse_and_eval_address_1): Remove function.
8024 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8025 instead of parse_and_eval_address_1.
8026 * value.h (parse_and_eval_address_1): Remove prototype.
8028 2011-03-04 Michael Snyder <msnyder@vmware.com>
8030 * remote.c (putpkt_binary): Document that case stmt falls through.
8032 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8034 * breakpointc (print_it_typical): Move NULL check from here...
8035 (print_bp_stop_message): ... to here.
8037 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8039 * breakpoint.c (enable_command): Use break instead of continue,
8040 and fill in a missing break.
8041 (disable_command): Ditto.
8043 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8045 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8046 (terminal_save_ours): Remove misleading comment.
8047 (inflow_inferior_data_cleanup): Free ttystate.
8048 (inflow_inferior_exit): Likewise.
8049 (copy_terminal_info): Copy ttystate.
8051 * serial.c (serial_copy_tty_state): New function.
8052 * serial.h (serial_copy_tty_state): Add prototype.
8053 (struct serial_ops): Add copy_tty_state callback.
8054 * ser-base.c (ser_base_copy_tty_state): New function.
8055 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8056 * ser-go32.c (dos_copy_tty_state): New function.
8057 (dos_ops): Install copy_tty_state callback.
8058 * ser-mingw.c (_initialize_ser_windows): Likewise.
8059 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8060 * ser-unix.c (hardwire_copy_tty_state): New function.
8061 (_initialize_ser_hardwire): Install it.
8063 2011-03-04 Michael Snyder <msnyder@vmware.com>
8065 * breakpoint.c (create_breakpoint): Add missing break statement.
8067 Reverting this patch:
8068 * infcall.c (call_function_by_hand): Add break statements for lint.
8070 Reverting this patch:
8071 * cli/cli-script.c (script_from_file): Add break for lint.
8073 2011-03-04 Michael Snyder <msnyder@vmware.com>
8075 * solib.c (reload_shared_libraries_1): Close memory leak.
8077 2011-03-03 Tom Tromey <tromey@redhat.com>
8080 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8083 2011-03-03 Michael Snyder <msnyder@vmware.com>
8085 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8086 fields of struct 'st' to zero.
8088 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8089 sal.pspace before calling set_current_source_symtab_and_line.
8091 2011-03-03 Yao Qi <yao@codesourcery.com>
8093 * Makefile.in (configure-common): Remove. Let Makefile
8094 in dir common to rebuild itself.
8095 (common/Makefile): Likewise.
8097 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8099 * utils.c (parse_escape): Add i18n markup in error message.
8101 2011-03-03 Yao Qi <yao@codesourcery.com>
8103 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8105 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8106 (displaced_write_reg, displaced_read_reg): Likewise.
8107 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8108 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8109 (cleanup_branch): Replace magic number 14 and 15 with
8110 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8112 2011-03-02 Michael Snyder <msnyder@vmware.com>
8114 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8116 * cli/cli-script.c (script_from_file): Add break for lint.
8118 * mdebugread.c (parse_partial_symbols): Fix indent.
8120 * target-descriptions.c (tdesc_gdb_type): No need to call
8121 xstrdup, callee saves a copy.
8123 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8125 * infcall.c (call_function_by_hand): Add break statements for lint.
8127 * utils.c (parse_escape): Escape the escape char.
8129 * python/py-inferior.c (build_inferior_list): Error out if
8130 PyList_Append fails.
8131 (gdbpy_inferiors): Error out if build_inferior_list fails.
8133 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8136 * record.c (record_restore): Move printf to before error return.
8138 2011-03-02 Yao Qi <yao@codesourcery.com>
8140 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8141 is_thumb and insn_size.
8142 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8143 on both ARM and Thumb mode.
8144 (arm_process_displaced_insn): Set is_thumb and insn_size.
8145 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8146 (arm_displaced_step_fixup): Likewise.
8148 2011-03-01 Michael Snyder <msnyder@vmware.com>
8150 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8152 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8154 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8156 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8158 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8161 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8162 which shadows function parameter.
8164 * tracepoint.c (create_tsv_from_upload): Superfluous call
8165 to xstrdup. Callee already calls xstrdup.
8167 * linespec.c (decode_line_1): Remove unnecessary null check.
8169 * tracepoint.c (scope_info): Fix mem leak, remove underused
8172 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8173 superfluous null check.
8175 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8176 (value_of_builtin_frame_fp_reg): Ditto.
8178 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8180 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8183 * linespec.c (decode_line_1): Check for null before dereference.
8185 * reverse.c (record_restore): Move null-check to before pointer
8188 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8190 * objc-lang.c (selectors_info): Add explanitory comment.
8191 (classes_info): Ditto.
8193 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8195 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8196 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8197 versions of the trampoline. Handle Thumb vs. ARM addresses.
8198 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8199 (arm_linux_init_abi): Install it.
8200 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8201 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8203 2011-02-28 Michael Snyder <msnyder@vmware.com>
8205 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8206 a little bigger, to avoid possibility of an overflow.
8208 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8209 buffers a little bigger, to avoid possibility of an overflow.
8211 * coffread.c (coff_getfilename): Add check to avoid overflow.
8213 * objc-lang.c (selectors_info): Add a small safety margin to
8215 (classes_info): Error out on too long REGEXP.
8217 * infrun.c (handle_inferior_event): Remove unused function call.
8219 * fork-child.c (fork_inferior): Remove ifdef'd code and
8222 * linux-thread-db.c (attach_thread): Discard unused value.
8224 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8226 * remote.c (remote_get_noisy_reply): Discard unused value.
8227 (remote_vcont_resume): Ditto.
8228 (remote_stop_ns): Ditto.
8230 * linespec.c (decode_objc): Delete unused variable.
8232 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8234 * dwarf2read.c (add_partial_symbol): Discard unused values.
8235 (read_base_type): Delete unused variable.
8237 * dbxread.c (read_dbx_symtab): Discard unused value.
8239 * eval.c (evaluate_subexp_standard): Delete unused variable,
8240 and discard unused values.
8242 * infcmd.c (_initialize_infcmd): Discard unused values.
8244 * stabsread.c (rs6000_builtin_type): Missing break statement.
8246 * dbxread.c (process_one_symbol): Discard unused value.
8248 * coffread.c (coff_end_symtab): Delete unused variable.
8250 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8251 (dwarf2_add_typedef): Delete unused variable.
8252 (read_namespace): Ditto.
8253 (dwarf_decode_macros): Ditto.
8255 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8257 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8259 * p-valprint.c (pascal_val_print): Discard unused value.
8261 * utils.c (nquery): Call va_end before return;
8265 * proc-service.c (ps_plog): Call va_end before return.
8267 2011-02-28 Tom Tromey <tromey@redhat.com>
8269 * python/python.c (gdbpy_value_cst): New global.
8270 (_initialize_python): Initialize it.
8271 * python/python-internal.h (gdbpy_value_cst): Declare.
8272 * python/py-value.c (convert_value_from_python): Use
8275 2011-02-28 Michael Snyder <msnyder@vmware.com>
8277 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8279 * breakpoint.c (catch_syscall_completer): Free malloced list.
8281 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8283 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8284 (lval_func_check_synthetic_pointer): Ditto.
8285 (lval_func_free_closure): Fix use-after-free.
8287 2011-02-28 Tom Tromey <tromey@redhat.com>
8289 * psymtab.c (expand_partial_symbol_tables): Use
8290 ALL_OBJFILE_PSYMTABS.
8292 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8294 * objc-lang.c (selectors_info): Error on too long REGEXP.
8296 2011-02-28 Michael Snyder <msnyder@vmware.com>
8298 * python/py-param.c (set_parameter_value): Add missing
8301 * linux-record.c (record_linux_system_call): Add missing
8304 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8306 * breakpoint.c (print_one_breakpoint_location): Remove unused
8307 argument PRINT_ADDRESS_BITS. Update callers.
8308 (print_one_breakpoint): Likewise.
8310 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8312 * breakpoint.c (wrap_indent_at_field): New function.
8313 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8314 Allocate ui_stream locally instead of using STB argument.
8315 (print_one_breakpoint_location): Update call.
8316 * ui-out.c (ui_out_query_field): New function.
8317 * ui-out.h (ui_out_query_field): Add prototype.
8319 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8321 From Michael Snyder <msnyder@vmware.com>
8322 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8324 2011-02-27 Michael Snyder <msnyder@vmware.com>
8326 * objc-lang.c (selectors_info): Prevent string overrun.
8328 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8331 * symtab.c (rbreak_command): Move variable 'file_name' to
8334 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8335 param with a local variable of the same name.
8337 2011-02-27 Michael Snyder <msnyder@vmware.com>
8339 * value.c (value_from_history_ref): New function.
8340 * value.h (value_from_history_ref): Export.
8341 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8342 to parse value history references.
8343 * cli/cli-utils.h (get_number_trailer): Update comment.
8345 2011-02-27 Michael Snyder <msnyder@vmware.com>
8347 * inferior.c (detach_inferior_command): Use get_number_or_range.
8348 (kill_inferior_command): Ditto.
8349 (remove_inferior_command): Ditto.
8350 (initialize_inferiors): Make command names plural.
8351 Update help strings.
8353 2011-02-27 Michael Snyder <msnyder@vmware.com>
8355 * darwin-nat-info.c: Fix comment typo.
8356 * dwarf2expr.h: Ditto.
8357 * fbsd-nat.c: Ditto.
8358 * fbsd-nat.h: Ditto.
8359 * frame-unwind.h: Ditto.
8361 * hppa-hpux-tdep.c: Ditto.
8362 * i386-linux-nat.c: Ditto.
8363 * linux-nat.c: Ditto.
8364 * nbsd-nat.c: Ditto.
8365 * nbsd-nat.h: Ditto.
8366 * ppc-linux-tdep.c: Ditto.
8369 * tui/tui-winsource.c: Ditto.
8371 2011-02-26 Michael Snyder <msnyder@vmware.com>
8373 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8375 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8377 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8378 with a local variable of the same name.
8380 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8381 param with a local variable of the same name.
8382 (i387_supply_xsave): Ditto.
8384 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8385 that it does not shadow a function parameter.
8387 * i386-nat.c (i386_length_and_rw_bits): Document that case
8388 statement is meant to fall through.
8390 * expprint.c (dump_subexp_body_standard): Document that case
8391 statement is meant to fall through.
8393 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8394 dead if statement. Condition can't be false.
8396 2011-02-25 Michael Snyder <msnyder@vmware.com>
8398 * arm-tdep.c: Fix typos in comments.
8399 * bsd-uthread.c: Ditto.
8400 * completer.c: Ditto.
8402 * cp-namespace.c: Ditto.
8403 * cp-support.c: Ditto.
8404 * cris-tdep.c: Ditto.
8406 * dwarf2read.c: Ditto.
8408 * gdbtypes.h: Ditto.
8409 * inferior.h: Ditto.
8410 * mdebugread.c: Ditto.
8411 * mips-tdep.c: Ditto.
8412 * ppc-linux-nat.c: Ditto.
8413 * ppc-linux-tdep.c: Ditto.
8414 * printcmd.c: Ditto.
8415 * sol-thread.c: Ditto.
8416 * solib-frv.c: Ditto.
8418 * sparc64-tdep.c: Ditto.
8419 * spu-tdep.c: Ditto.
8420 * stabsread.c: Ditto.
8425 * python/py-block.c: Ditto.
8426 * python/py-symbol.c: Ditto.
8427 * python/py-symtab.c: Ditto.
8428 * python/py-value.c: Ditto.
8429 * tui/tui-win.c: Ditto.
8431 2011-02-25 Michael Snyder <msnyder@vmware.com>
8433 * inferior.c (print_inferior): Accept a string instead of an int
8434 for requested_inferiors, and use get_number_or_range to parse it.
8435 (info_inferiors_command): Pass args string to print_inferior.
8436 (initialize_inferiors): Change help string for info inferiors.
8437 * inferior.h (print_inferior): Export prototype change.
8439 2011-02-25 Tom Tromey <tromey@redhat.com>
8441 * common/ax.def (invalid2): Set to 0x31.
8443 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8445 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8447 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8449 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8451 2011-02-24 Michael Snyder <msnyder@vmware.com>
8453 * Makefile.in (clean): Make clean should remove generated files
8454 observer.h and observer.inc.
8456 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8458 Revert the following patch (not approved yet):
8459 2011-02-21 Hui Zhu <teawater@gmail.com>
8460 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8461 * ax-gdb.c (gen_printf_expr_callback): New function.
8462 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8463 * ax-general.c (ax_memcpy): New function.
8464 (ax_print): Handle "printf".
8466 * ax.h (ax_memcpy): Forward declare.
8467 * common/ax.def (invalid2): Removed.
8468 (printf): New entry.
8469 * printcmd.c (printcmd.h): New include.
8470 (string_printf): New function.
8471 (ui_printf): Removed.
8472 (printf_command): Remove static. Call string_printf.
8473 (eval_command): Call string_printf.
8474 * printcmd.h: New file.
8475 * tracepoint.c (validate_actionline,
8476 encode_actions_1): handle printf_command.
8478 2011-02-23 Tom Tromey <tromey@redhat.com>
8480 * ax-general.c (ax_pick): Add missing newline.
8482 2011-02-23 Michael Snyder <msnyder@vmware.com>
8484 * breakpoint.c (breakpoint_1): Change first argument from an int
8485 to a char pointer, so that the function now accepts a list of
8486 breakpoints rather than just one. Use new function
8487 'number_is_in_list' to implement.
8488 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8489 (watchpoints_info): Ditto.
8490 (tracepoints_info): Ditto.
8491 (maintenance_info_breakpoints): Ditto.
8492 (_initialize_breakpoint): Update help strings to reflect the fact
8493 that these functions can now take more than one argument.
8494 * cli/cli-utils.c (number_is_in_list): New function.
8495 * cli/cli-utils.h (number_is_in_list): Export.
8497 2011-02-23 Michael Snyder <msnyder@vmware.com>
8499 * memattr.c (mem_enable_command): Use get_number_or_range.
8500 (mem_disable_command): Ditto.
8501 (mem_delete_command): Ditto.
8502 (_initialize_mem): Tweak usage message to reflect multiple
8505 2011-02-22 Doug Evans <dje@google.com>
8507 Add gdb.lookup_global_symbol python function.
8509 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8510 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8511 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8513 2011-02-22 Tom Tromey <tromey@redhat.com>
8515 * language.c (language_class_name_from_physname): Rename
8516 'curr_language' argument to 'lang'; use in body.
8518 2011-02-22 Michael Snyder <msnyder@vmware.com>
8520 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8522 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8524 * frame-unwind.h: Fix comment to mention the this frame, not the
8527 2011-02-22 Tom Tromey <tromey@redhat.com>
8529 * symfile.c (auto_solib_limit): Remove.
8530 * symfile.h (auto_solib_limit): Remove.
8532 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8534 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8536 2011-02-21 Michael Snyder <msnyder@vmware.com>
8538 * gdbthread.h (print_thread_info): Change prototype.
8539 * thread.c (print_thread_info): Accept char* instead of int for
8540 requested_threads argument. Use new function number_is_in_list
8541 to determine which threads to list.
8542 (info_threads_command): Pass char* to print_thread_info.
8543 * cli/cli-utils.c (number_is_in_list): New function.
8544 * cli/cli-utils.h (number_is_in_list): Export.
8545 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8547 (print_one_inferior): Ditto.
8548 (mi_cmd_list_thread_groups): Ditto.
8550 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8552 * common/Makefile.in (CFLAGS): New.
8553 (COMPILE): Add $(CFLAGS).
8555 2011-02-21 Tom Tromey <tromey@redhat.com>
8557 * breakpoint.c (catch_syscall_command_1): Fix typo.
8559 2011-02-21 Tom Tromey <tromey@redhat.com>
8561 * reverse.c: Include cli-utils.h.
8562 * printcmd.c: Include cli-utils.h.
8563 (string_printf): Use skip_spaces.
8564 * cli/cli-utils.h: New file.
8565 * cli/cli-utils.c: New file.
8566 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8567 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8568 * breakpoint.h (get_number, get_number_or_range): Move to
8570 * breakpoint.c: Include cli-utils.h.
8571 (get_number_trailer, get_number, get_number_or_range)
8572 (ep_skip_leading_whitespace): Move to cli-utils.c.
8573 (create_breakpoint_sal, find_condition_and_thread)
8574 (decode_static_tracepoint_spec, watch_command_1)
8575 (watch_maybe_just_location, ep_parse_optional_if_clause)
8576 (catch_fork_command_1, catch_exec_command_1)
8577 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8578 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8579 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8580 (HFILES_NO_SRCDIR): Add cli-utils.h.
8581 (cli-utils.o): New target.
8583 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8585 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8586 before calling discard_all_inferiors.
8588 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8590 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8591 (struct builtin_opencl_type): Remove.
8592 (builtin_opencl_type): Change return type to "struct type **".
8593 (lookup_opencl_vector_type): Update caller.
8594 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8595 (build_opencl_types): Install plain array of "struct type *"
8596 instead of "struct builtin_opencl_type".
8598 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8599 Ulrich Weigand <uweigand@de.ibm.com>
8601 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8602 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8603 (struct arm_linux_hwbp_cap): New type.
8604 (arm_linux_get_hwbp_cap): New function.
8605 (arm_linux_get_hw_breakpoint_count): Likewise.
8606 (arm_linux_get_hw_watchpoint_count): Likewise.
8607 (arm_linux_can_use_hw_breakpoint): Likewise.
8608 (arm_hwbp_type): New type.
8609 (arm_hwbp_control_t): Likewise.
8610 (struct arm_linux_hw_breakpoint): Likewise.
8611 (struct arm_linux_thread_points): Likewise.
8612 (arm_threads): New global variable.
8613 (arm_linux_find_breakpoints_by_tid): New function.
8614 (arm_hwbp_control_initialize): Likewise.
8615 (arm_hwbp_control_is_enabled): Likewise.
8616 (arm_hwbp_control_disable): Likewise.
8617 (arm_linux_hw_breakpoint_initialize): Likewise.
8618 (arm_linux_get_hwbp_type): Likewise.
8619 (arm_linux_hw_watchpoint_initialize): Likewise.
8620 (arm_linux_hw_breakpoint_equal): Likewise.
8621 (arm_linux_insert_hw_breakpoint1): Likewise.
8622 (arm_linux_remove_hw_breakpoint1): Likewise.
8623 (arm_linux_insert_hw_breakpoint): Likewise.
8624 (arm_linux_remove_hw_breakpoint): Likewise.
8625 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8626 (arm_linux_insert_watchpoint): Likewise.
8627 (arm_linux_remove_watchpoint): Likewise.
8628 (arm_linux_stopped_data_address): Likewise.
8629 (arm_linux_stopped_by_watchpoint): Likewise.
8630 (arm_linux_watchpoint_addr_within_range): Likewise.
8631 (arm_linux_new_thread): Likewise.
8632 (arm_linux_thread_exit): Likewise.
8633 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8634 related target callbacks. Register arm_linux_new_thread and
8635 arm_linux_thread_exit.
8636 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8637 * arm-tdep.c (arm_pc_is_thumb): Make global.
8638 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8640 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8642 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8643 per-frame locations while within a function epilogue.
8645 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8647 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8648 to GNU coding standards.
8650 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8652 Allow use of mingw native on Windows 95 OS.
8653 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8654 (ser_windows_close): Only call CancelIo if function exists.
8655 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8656 to check for existence of CancelIo function in kernel32 DLL.
8658 2011-02-21 Hui Zhu <teawater@gmail.com>
8660 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8661 * ax-gdb.c (gen_printf_expr_callback): New function.
8662 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8663 * ax-general.c (ax_memcpy): New function.
8664 (ax_print): Handle "printf".
8666 * ax.h (ax_memcpy): Forward declare.
8667 * common/ax.def (invalid2): Removed.
8668 (printf): New entry.
8669 * printcmd.c (printcmd.h): New include.
8670 (string_printf): New function.
8671 (ui_printf): Removed.
8672 (printf_command): Remove static. Call string_printf.
8673 (eval_command): Call string_printf.
8674 * printcmd.h: New file.
8675 * tracepoint.c (validate_actionline,
8676 encode_actions_1): handle printf_command.
8678 2011-02-19 Michael Snyder <msnyder@vmware.com>
8680 * reverse.c (delete_one_bookmark): Argument is now bookmark
8681 id rather than pointer to bookmark struct.
8682 (delete_bookmark_command): Use get_number_or_range.
8683 (goto_bookmark_command): Parse with get_number instead of strtoul.
8684 (bookmark_1): New function. Print info for one bookmark.
8685 (bookmarks_info): Use get_number_or_range and bookmark_1.
8687 2011-02-18 Michael Snyder <msnyder@vmware.com>
8689 * thread.c (info_threads_command): Re-implement using
8690 get_number_or_range.
8691 (thread_apply_command): Ditto.
8693 2011-02-18 Tom Tromey <tromey@redhat.com>
8695 * common/ax.def: New file.
8696 * ax.h (enum agent_op): Use ax.def.
8697 * ax-general.c (aop_map): Use ax.def.
8699 2011-02-18 Tom Tromey <tromey@redhat.com>
8701 * ax-general.c (aop_map): Add pick and rot.
8702 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8703 <DW_OP_rot>: Implement.
8704 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8706 * ax-general.c (ax_pick): New function.
8708 2011-02-18 Tom Tromey <tromey@redhat.com>
8710 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8712 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8713 Tom Tromey <tromey@redhat.com>
8715 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8716 make_symbol_overload_list_block with NULL BLOCK.
8717 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8719 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8721 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8722 * breakpoint.h (get_number_or_range): Declare.
8723 * printcmd.c (ALL_DISPLAYS): Declare.
8724 (delete_display): Reimplement taking a display pointer.
8725 (undisplay_command): Accept a range of displays to delete, using
8726 get_number_or_range.
8728 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8730 * c-valprint.c (c_val_print): Add embedded_offset to address
8731 for arrays of unspecified length.
8732 * p-valprint.c (pascal_val_print): Likewise.
8734 2011-02-18 Yao Qi <yao@codesourcery.com>
8736 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8737 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8738 (thumb_process_displaced_insn): New.
8739 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8740 call to arm_process_displaced_insn.
8741 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8743 2011-02-17 Tom Tromey <tromey@redhat.com>
8745 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8746 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8747 compile_dwarf_to_ax. No longer static. Call
8748 dwarf2_compile_cfa_to_ax.
8749 (locexpr_tracepoint_var_ref): Update.
8750 (loclist_tracepoint_var_ref): Update.
8751 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8752 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8753 argument; add 'gdbarch' and 'pc'.
8754 (dwarf2_compile_cfa_to_ax): New function.
8755 (dwarf2_frame_cache): Update.
8757 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8759 * ada-lang.c (ada_type_of_array): Fix the size of the array
8760 in the case of an unconstrained packed array.
8762 2011-02-17 Yao Qi <yao@codesourcery.com>
8764 * common/Makefile.in: Add more targets for make.
8766 2011-02-16 Tom Tromey <tromey@redhat.com>
8768 * dwarf2loc.c (unimplemented): Fix typo.
8770 2011-02-16 Tom Tromey <tromey@redhat.com>
8772 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8773 (compile_dwarf_to_ax) <default>: Use unimplemented.
8774 <DW_OP_deref>: Update.
8775 (disassemble_dwarf_expression): Update.
8776 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8777 (decode_locdesc): Update.
8778 * dwarf2expr.h (dwarf_stack_op_name): Update.
8780 2011-02-16 Tom Tromey <tromey@redhat.com>
8782 * ax.h (struct aop_map) <name>: Now const.
8784 2011-02-16 Tom Tromey <tromey@redhat.com>
8786 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8789 2011-02-16 Yao Qi <yao@codesourcery.com>
8791 * infrun.c (get_displaced_step_closure_by_addr): New.
8792 * inferior.h: Declare it.
8793 * arm-tdep.c: (arm_pc_is_thumb): Call
8794 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8797 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8798 Jan Kratochvil <jan.kratochvil@redhat.com>
8801 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8803 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8804 Jan Kratochvil <jan.kratochvil@redhat.com>
8806 * value.c (value_contents_copy_raw): Extend describing comment.
8807 Assert that the destination contents we're overwriting are wholly
8809 (value_contents_copy): Extend describing comment.
8811 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8812 Jan Kratochvil <jan.kratochvil@redhat.com>
8814 * value.c (value_available_contents_eq): Remove redundant local
8815 variables. Fix available contents comparision.
8816 * value.h (value_available_contents_eq): Extend describing
8819 2011-02-16 Yao Qi <yao@codesourcery.com>
8821 * thread.c (info_threads_command): Add missing i18n markup and remove
8824 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8826 * breakpoint.c (longjmp_names): New variable.
8827 (struct breakpoint_objfile_data): New type.
8828 (breakpoint_objfile_key): New variable.
8829 (msym_not_found): New variable.
8830 (msym_not_found_p): New predicate.
8831 (get_breakpoint_objfile_data): New function.
8832 (create_overlay_event_breakpoint): Check per-objfile cache for
8834 (create_longjmp_master_breakpoint): Likewise.
8835 (create_std_terminate_master_breakpoint): Likewise.
8836 (create_exception_master_breakpoint): Likewise.
8837 (_initialize_breakpoint): Register per-objfile data key.
8839 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8841 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8843 (create_longjmp_master_breakpoint): Loop over longjmp names.
8844 (create_std_terminate_master_breakpoint): Const-propagate parameter
8846 (update_breakpoints_after_exec): Adjust.
8847 (breakpoint_re_set): Adjust.
8849 2011-02-15 Michael Snyder <msnyder@vmware.com>
8851 * thread.c (info_threads_command): Process arg as thread id,
8852 or list of thread ids.
8853 (thread_find_command): New command.
8854 (_initialize_thread): Document argument for info threads.
8855 Document 'thread find' command.
8856 * NEWS: Document new command "thread find".
8858 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8860 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8861 * aclocal.m4: Regenerated with aclocal-1.11.1.
8862 * common/configure: Regenerate with autoconf-2.64.
8864 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8866 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8867 bool data type to a size of one byte.
8869 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8870 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 * target.c (memory_xfer_live_readonly_partial): Document where to
8873 look for interface description.
8875 2011-02-15 Yao Qi <yao@codesourcery.com>
8878 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8879 order to store PC value on stack instead of text section.
8881 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8883 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8884 the EFP register set size.
8885 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8886 data from the VMX register.
8887 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8888 and write data from/to the VMX register.
8890 2011-02-14 Michael Snyder <msnyder@vmware.com>
8892 * command.h (enum command_class): New class 'no_set_class', for
8893 "show" commands without a corresponding "set" command.
8894 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8895 * copying.c (_initialize_copying): Ditto for "show copying" and
8897 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8899 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8900 which there is no corresponding "set" command (eg. "show copying").
8902 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8903 Jan Kratochvil <jan.kratochvil@redhat.com>
8905 * exec.c (section_table_available_memory): Change `len' parameter
8907 * exec.h (section_table_available_memory): Ditto.
8908 * value.h (read_value_memory): Rename the `offset' parameter to
8911 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8912 Jan Kratochvil <jan.kratochvil@redhat.com>
8914 * memrange.c (compare_mem_ranges): Mention sort order in
8916 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8917 * tracepoint.c (traceframe_available_memory): Extend comment to
8918 mention what happens to RESULT when the target does not support
8921 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8922 Jan Kratochvil <jan.kratochvil@redhat.com>
8924 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8927 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8929 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8930 No longer handle NULL values.
8932 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8934 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8935 * value.c: Include "exceptions.h".
8936 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8938 * cp-abi.c: Include gdb_assert.h.
8939 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8940 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8942 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8943 parameters. No longer returns -1 on error.
8944 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8946 * cp-valprint.c: Include exceptions.h.
8947 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8948 the baseclass_offset. Handle unavailable base classes. Use
8949 val_print_invalid_address.
8950 * p-valprint.c: Include exceptions.h.
8951 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8952 when fetching the baseclass_offset. No longer expect
8953 baseclass_offset returning -1. Handle unavailable base classes.
8954 Use val_print_invalid_address.
8955 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8956 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8957 `embedded_offset' and `val' parameters. Adjust.
8958 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8959 parameter, and change its type to gdb_byte pointer. Add
8960 `embedded_offset' and `val' parameters. Adjust. No longer expect
8961 baseclass_offset returning -1.
8962 (value_dynamic_cast): Use value_contents_for_printing rather than
8963 value_contents. Adjust.
8964 (search_struct_field): No longer expect baseclass_offset returning
8966 (search_struct_method): If reading memory from the target is
8967 necessary, wrap it in a new value to pass to baseclass_offset. No
8968 longer expect baseclass_offset returning -1.
8969 (find_method_list): No longer expect baseclass_offset returning
8970 -1. Use value_contents_for_printing rather than value_contents.
8971 * valprint.c (val_print_invalid_address): New function.
8972 * valprint.h (val_print_invalid_address): Declare.
8973 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8974 and `val' parameters. No longer expect baseclass_offset returning
8976 * gnu-v2-abi.c: Include "exceptions.h".
8977 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8978 parameters. Handle unavailable memory. Recurse through
8979 gnuv2_baseclass_offset directly, rather than through
8980 baseclass_offset. No longer returns -1 on not found, instead
8982 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8983 `val' parameters. Adjust.
8985 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8987 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8988 almost but not quite adjacent.
8990 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8992 * value.h (value_entirely_available): Declare.
8993 * value.c (value_entirely_available): New function.
8994 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8995 real type if the pointer is unavailable.
8997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8999 * valops.c (value_repeat): Use read_value_memory instead of
9002 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9004 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9005 * value.c (value_contents_copy_raw, value_contents_copy): New
9007 (value_primitive_field): Use value_contents_copy_raw instead of
9009 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9011 (value_array, value_slice): Ditto.
9012 * valarith.c (value_subscripted_rvalue): Use
9013 value_contents_copy_raw instead of memcpy.
9015 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9017 <unavailable> references.
9019 * valops.c (get_value_at): Use value_from_contents_and_address,
9020 avoiding read_memory.
9022 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9024 * c-valprint.c (c_val_print): Print a string with unavailable
9025 contents as an array.
9027 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9029 * value.h (unpack_bits_as_long): Delete declaration.
9030 (unpack_value_bits_as_long): Declare.
9031 (unpack_value_field_as_long): Declare.
9032 (value_field_bitfield): Declare.
9033 * value.c (unpack_bits_as_long): Rename to...
9034 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9035 value parameters. Return the extracted result in a new output
9036 parameter. If the value contents are unavailable, return false,
9037 otherwise return true.
9038 (unpack_value_bits_as_long): New.
9039 (unpack_field_as_long): Rename to...
9040 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9041 Add embedded_offset and value parameters. Return the extracted
9042 result in a new output parameter. If the value contents are
9043 unavailable, return false, otherwise return true.
9044 (unpack_value_field_as_long): New.
9045 (unpack_field_as_long_1): New.
9046 (unpack_field_as_long): Reimplement as wrapper around
9047 unpack_value_field_as_long_1.
9048 (value_field_bitfield): New function.
9049 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9050 unpack_value_bits_as_long. Mark the value as unavailable, if it
9052 * jv-valprint.c (java_print_value_fields): Use
9053 value_field_bitfield.
9054 * p-valprint.c (pascal_object_print_value_fields): Use
9055 value_field_bitfield.
9056 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9058 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9060 * value.c (get_internalvar_integer): Also return the int value of
9061 TYPE_CODE_INT INTERNALVAR_VALUE values.
9062 (set_internalvar): Don't special case TYPE_CODE_INT.
9064 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9066 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9067 INTERNALVAR_POINTER.
9069 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9070 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9071 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9073 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9075 * value.h (value_available_contents_eq): Declare.
9076 * value.c (find_first_range_overlap): New function.
9077 (value_available_contents_eq): New function.
9078 * valprint.c (val_print_array_elements): Use
9079 value_available_contents_eq.
9080 * ada-valprint.c (val_print_packed_array_elements): Use
9081 value_available_contents_eq.
9082 * jv-valprint.c (java_value_print): Use
9083 value_available_contents_eq.
9085 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9087 * target.c (target_read_live_memory): New function.
9088 (memory_xfer_live_readonly_partial): New.
9089 (memory_xfer_partial): If reading from a traceframe, fallback to
9090 reading unavailable read-only memory from read-only regions of
9092 * tracepoint.c (disconnect_tracing): Adjust.
9093 (set_current_traceframe): New, factored out from
9094 set_traceframe_number.
9095 (set_traceframe_number): Reimplement to only change the traceframe
9096 number on the GDB side.
9097 (do_restore_current_traceframe_cleanup): Adjust.
9098 (make_cleanup_restore_traceframe_number): New.
9099 (cur_traceframe_number): New global.
9100 (tfile_open): Set cur_traceframe_number to no traceframe.
9101 (set_tfile_traceframe): New function.
9102 (tfile_trace_find): If looking up a traceframe using any method
9103 other than by number, make sure the current tfile traceframe
9104 matches gdb's current traceframe. Update the current tfile
9105 traceframe if the lookup succeeded.
9106 (tfile_fetch_registers, tfile_xfer_partial)
9107 (tfile_get_trace_state_variable_value): Make sure the remote
9108 traceframe matches gdb's current traceframe.
9109 * remote.c (remote_traceframe_number): New global.
9110 (remote_open_1): Set it to -1.
9111 (set_remote_traceframe): New function.
9112 (remote_fetch_registers, remote_store_registers)
9113 (remote_xfer_memory, remote_xfer_partial)
9114 (remote_get_trace_state_variable_value): Make sure the remote
9115 traceframe matches gdb's current traceframe.
9116 (remote_trace_find): If looking up a traceframe using any method
9117 other than by number, make sure the current remote traceframe
9118 matches gdb's current traceframe. Update the current remote
9119 traceframe if the lookup succeeded.
9120 * infrun.c (fetch_inferior_event): Adjust.
9121 * tracepoint.h (set_current_traceframe): Declare.
9122 (get_traceframe_number, set_traceframe_number): Add describing
9125 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9127 Mark pieces of values as unavailable if the corresponding memory
9130 * valops.c: Include tracepoint.h.
9131 (value_fetch_lazy): Use read_value_memory.
9132 (read_value_memory): New.
9133 * value.h (read_value_memory): Declare.
9134 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9135 * exec.c (section_table_available_memory): New function.
9136 * exec.h (section_table_available_memory): Declare.
9138 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9140 * Makefile.in (SFILES): Add memrange.c.
9141 (HFILES_NO_SRCDIR): Add memrange.h.
9142 (COMMON_OBS): Add memrange.o.
9143 * memrange.c: New file.
9144 * memrange.h: New file.
9145 * tracepoint.c: Include memrange.h.
9146 (struct mem_range): Delete.
9147 (mem_range_s): Delete.
9148 (traceframe_available_memory): New function.
9149 * tracepoint.h (traceframe_available_memory): Declare.
9151 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9153 * target.h (struct traceframe_info): Forward declare.
9154 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9155 (struct target_ops) <to_traceframe_info>: New field.
9156 (target_traceframe_info): New.
9157 * target.c (update_current_target): Inherit and default
9159 * remote.c (PACKET_qXfer_traceframe_info): New.
9160 (remote_protocol_features): Register qXfer:traceframe-info:read.
9161 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9162 (remote_traceframe_info): New.
9163 (init_remote_ops): Install it.
9164 (_initialize_remote): Install "set/show remote traceframe-info"
9166 * tracepoint.h (parse_traceframe_info): Declare.
9167 * tracepoint.c (struct mem_range): New.
9168 (mem_range_s): New typedef.
9169 (struct traceframe_info): New.
9170 (traceframe_info): New global.
9171 (free_traceframe_info): New function.
9172 (clear_traceframe_info): New function.
9173 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9175 (build_traceframe_info): New function.
9176 (tfile_traceframe_info): New function.
9177 (init_tfile_ops): Install tfile_traceframe_info.
9178 (traceframe_info_start_memory, free_result): New functions.
9179 (memory_attributes, traceframe_info_elements): New globals.
9180 (parse_traceframe_info, get_traceframe_info): New functions.
9181 * features/traceframe-info.dtd: New file.
9182 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9184 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9186 Base support for <unavailable> value contents.
9188 * value.h (value_bytes_available): Declare.
9189 (mark_value_bytes_unavailable): Declare.
9190 * value.c (struct range): New struct.
9191 (range_s): New typedef.
9192 (ranges_overlap): New function.
9193 (range_lessthan): New function.
9194 (ranges_contain_p): New function.
9195 (struct value) <unavailable>: New field.
9196 (value_bytes_available): New function.
9197 (mark_value_bytes_unavailable): New function.
9198 (require_not_optimized_out): Constify parameter.
9199 (require_available): New function.
9200 (value_contents_all, value_contents): Require all bytes be
9202 (value_free): Free `unavailable'.
9203 (value_copy): Copy `unavailable'.
9204 * valprint.h (val_print_unavailable): Declare.
9205 * valprint.c (valprint_check_validity): Rename `offset' parameter
9206 to `embedded_offset'. If printing a scalar, check whether the
9207 value chunk is available.
9208 (val_print_unavailable): New.
9209 (val_print_scalar_formatted): Check whether the value is
9211 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9212 pretty-printing unavailable values.
9214 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9216 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9217 * c-typeprint.c (c_type_print_args): Update the function comment. New
9218 variable param_type, initialize it. Remove const/volatile qualifiers
9219 for language_cplus and !show_artificial. Use param_type.
9221 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9223 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9224 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9225 * symtab.h (struct symtab) <next>: Comment extension.
9227 2011-02-12 Yao Qi <yao@codesourcery.com>
9229 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9231 2011-02-11 Yao Qi <yao@codesourcery.com>
9233 * common/Makefile.in: Add copyright header.
9235 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9237 * infrun.c (proceed): Move switching out and in of tfind mode from
9239 (fetch_inferior_event): ... to here.
9241 2011-02-11 Yao Qi <yao@codesourcery.com>
9243 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9245 * configure.ac: Add common to sub dir.
9246 * configure: Regenerate.
9248 2011-02-11 Yao Qi <yao@codesourcery.com>
9252 * common/Makefile.in: New.
9253 * common/configure.ac: New.
9254 * common/aclocal.m4: New.
9255 * common/configure: Generate.
9257 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9259 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9260 side of the parenthesis.
9263 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9264 * vec.h (VEC_block_remove): Fix comment.
9266 2011-02-08 Michael Snyder <msnyder@vmware.com>
9268 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9270 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9272 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9273 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9276 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9279 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9281 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9282 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9284 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9286 * dwarf2read.c (read_subroutine_type): Set special calling
9287 convention flag for functions compiled by IBM XL C for OpenCL.
9288 * ppc-sysv-tdep.c: Include "dwarf2.h"
9289 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9291 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9292 IBM OpenCL vector types calling convention.
9293 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9294 (ppc_sysv_abi_broken_return_value): Likewise.
9295 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9296 types calling convention.
9297 (ppc64_sysv_abi_return_value): Likewise.
9298 * spu-tdep.c: Include "dwarf2.h"
9299 (spu_return_value): Implement IBM OpenCL vector types calling
9302 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9304 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9305 correct ABI for AltiVec vector arguments.
9307 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9309 * valprint.c (val_print): Extend comment.
9310 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9311 interface explanation to val_print.
9312 (ada_val_print_array): Adjust comment to current interface.
9313 (print_field_values): Adjust comment to current interface.
9314 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9315 explanation to val_print.
9316 * f-valprint.c (f_val_print): Ditto.
9317 * jv-valprint.c (java_val_print): Ditto.
9318 * m2-valprint.c (m2_val_print): Ditto.
9319 * p-valprint.c (pascal_val_print): Ditto.
9321 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9323 * breakpoint.c (parse_breakpoint_sals): Fix description.
9325 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9326 Oguz Kayral <oguzkayral@gmail.com>
9328 * python/py-inferior.c (python_on_normal_stop): New function.
9329 (python_on_resume): New function.
9330 (python_inferior_exit): New function.
9331 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9332 inferior_exit observers.
9333 * python/py-evtregistry.c: New file.
9334 * python/py-threadevent.c : New file.
9335 * python/py-event.c: New file.
9336 * python/py-evts.c: New file.
9337 * python/py-continueevent.c: New file.
9338 * python/py-bpevent.c: New file.
9339 * python/py-signalevent.c: New file.
9340 * python/py-exetiedevent.c: New file.
9341 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9342 Move struct breakpoint_object from here...
9343 * python/python-internal.h: ... to here.
9344 * python/py-event.h: New file.
9345 * python/py-events.h: New file.
9346 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9347 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9348 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9349 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9350 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9351 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9352 Add build rules for all the above.
9354 2011-02-04 Tom Tromey <tromey@redhat.com>
9356 * dwarf2read.c (dwarf2_section_empty_p): New function.
9357 (dwarf2_read_section): Use dwarf2_section_empty_p.
9358 (dwarf2_section_size): New function.
9359 (dwarf2_get_section_info): Unconditionally read section.
9360 (dwarf2_read_index): Use dwarf2_section_empty_p.
9361 (partial_read_comp_unit_head): Use dwarf2_section_size.
9362 (dwarf2_symbol_mark_computed): Likewise.
9364 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9366 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9368 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9370 * mips-linux-tdep.c: Include xml-syscall.h.
9371 (mips_linux_get_syscall_number): New function.
9372 (mips_linux_init_abi): Add calls to
9373 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9374 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9375 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9376 * syscalls/mips-n32-linux.xml: New file.
9377 * syscalls/mips-n64-linux.xml: New file.
9378 * syscalls/mips-o32-linux.xml: New file.
9380 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9382 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9383 Complain about inverted range entries.
9384 (dwarf2_record_block_ranges): Likewise.
9386 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9389 * breakpoint.c (update_watchpoint): Fix name of the
9390 update_global_location_list function.
9391 (print_one_breakpoint): Fix typo.
9392 (_initialize_breakpoint): Remove extra space in hbreak help
9394 * breakpoint.h (struct bp_location) <length>: Fix field
9397 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9399 * regcache.c (registers_changed_ptid): Don't explictly always
9400 clear `current_regcache'. Only clear current_thread_ptid and
9401 current_thread_arch when PTID matches. Only reinit the frame
9402 cache if PTID matches the current inferior_ptid. Move alloca(0)
9404 (registers_changed): ... here.
9406 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9408 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9409 starts with __stack_chk_guard as stack guard symbol.
9411 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9413 * disasm.c (compare_lines): Handle the end of sequence markers
9414 within the line table to better support disassembling over
9415 compilation unit boundaries.
9417 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9419 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9420 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9421 implementation even if no symbols are available.
9422 (thumb_analyze_prologue): Update call to skip_prologue_function.
9423 (arm_analyze_prologue): Likewise.
9425 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9427 * arm-tdep.c: Include "observer.h".
9428 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9429 (arm_exidx_data_key): New static variable.
9430 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9431 (struct arm_exidx_data): Likewise.
9432 (arm_exidx_data_free): New function.
9433 (arm_compare_exidx_entries): Likewise.
9434 (arm_obj_section_from_vma): Likewise.
9435 (arm_exidx_new_objfile): Likewise.
9436 (arm_find_exidx_entry): Likewise.
9437 (arm_exidx_fill_cache): Likewise.
9438 (arm_exidx_unwind_sniffer): Likewise.
9439 (arm_exidx_unwind): New global variable.
9440 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9441 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9442 observer. Register arm_exidx_data_key as objfile data.
9444 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9446 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9447 due to accessing uninitialized variable. Fix indentation.
9449 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9451 * c-valprint.c (c_value_print): When doing virtual base pointer
9452 adjustment, create a new value with adjusted contents rather than
9453 changing the contents of the value being printed (and getting it
9456 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9458 * xml-support.c (xml_find_attribute): New.
9459 (xinclude_start_include): Use it.
9460 * xml-support.h (xml_find_attribute): Declare.
9461 * memory-map.c (memory_map_start_memory)
9462 (memory_map_start_property): Use xml_find_attribute.
9463 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9465 * remote.c (start_thread): Use xml_find_attribute.
9466 * solib-target.c (library_list_start_segment)
9467 (library_list_start_section, library_list_start_library)
9468 (library_list_start_list): Use xml_find_attribute.
9469 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9470 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9471 (tdesc_start_field): Use xml_find_attribute.
9473 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9475 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9476 (BUILD_OCL_VTYPES): Update.
9478 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9480 * configure.ac: Work around non-GNU sed limitation when computing
9481 python version number.
9482 * configure: Regenerate.
9484 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9486 Fix debug printing of TYPE_INSTANCE.
9487 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9488 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9490 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9492 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9493 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9494 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9495 * ada-operator.inc: Rename the file to ...
9496 * ada-operator.def: ... here, wrap all the entries by macro OP.
9497 * expprint.c (op_name_standard): Remove all the entries. Include
9498 "std-operator.def" instead.
9499 * expression.h (enum exp_opcode): Include "std-operator.def" and
9500 "ada-operator.def". Move all the entries ...
9501 * std-operator.def: ... here, wrap all the entries by macro OP.
9503 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9505 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9506 * breakpoint.c (remove_jit_event_breakpoints): New function.
9507 * jit.c (jit_descriptor_addr): Delete.
9508 (registering_code): Delete.
9509 (clear_int): Delete.
9510 (jit_inferior_data): New variable.
9511 (struct jit_inferior_data): New type.
9512 (get_jit_inferior_data): New function.
9513 (jit_inferior_data_cleanup): New function.
9514 (jit_read_descriptor): Adjust.
9515 (jit_register_code): Adjust.
9516 (jit_breakpoint_re_set_internal): New function; move code here ...
9517 (jit_inferior_init): ... from here.
9518 (jit_breakpoint_re_set): Adjust.
9519 (jit_reset_inferior_data_and_breakpoints): New function.
9520 (jit_inferior_created_observer): Adjust.
9521 (jit_inferior_exit_hook): Adjust.
9522 (jit_executable_changed_observer): New function.
9523 (jit_event_handler): Adjust.
9524 (_initialize_jit): Adjust.
9526 2011-01-31 Michael Snyder <msnyder@vmware.com>
9528 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9531 2011-01-31 Tom Tromey <tromey@redhat.com>
9534 * python/python.c (execute_gdb_command): Call
9535 prevent_dont_repeat.
9536 * top.c (suppress_dont_repeat): New global.
9537 (dont_repeat): Use it.
9538 (prevent_dont_repeat): New function.
9539 * command.h (prevent_dont_repeat): Declare.
9541 2011-01-31 Tom Tromey <tromey@redhat.com>
9543 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9544 * python/py-breakpoint.c (bppy_set_silent): Use
9545 breakpoint_set_silent.
9546 (bppy_set_thread): Use breakpoint_set_thread.
9547 (bppy_set_task): Use breakpoint_set_task.
9548 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9549 (breakpoint_set_task): Declare.
9550 (make_breakpoint_silent): Remove.
9551 * breakpoint.c (breakpoint_set_silent): New function.
9552 (breakpoint_set_thread): Likewise.
9553 (breakpoint_set_task): Likewise.
9554 (make_breakpoint_silent): Remove.
9556 2011-01-31 Tom Tromey <tromey@redhat.com>
9558 * breakpoint.h (user_breakpoint_p): Declare.
9559 * breakpoint.c (user_breakpoint_p): New function.
9560 (breakpoint_1): Use it.
9561 (save_breakpoints): Likewise.
9563 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9565 * configure.ac: Add handling of Python distribution on Windows.
9566 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9567 sysconfig variables are not defined, then do not use them.
9568 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9569 instead. On Windows, return all paths using forward-slashes
9570 rather than backslashes.
9572 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9574 * configure.ac: Remove fallback behavior for building
9575 against Python. Remove tweaking of Python include path.
9576 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9577 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9578 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9579 Always restore CPPFLAGS and LIBS after linking test.
9580 * configure: Regenerated.
9581 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9582 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9583 * python/python-internal.h: Adjust includes of Python .h files.
9585 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9587 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9590 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9592 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9595 2011-01-31 Yao Qi <yao@codesourcery.com>
9597 * arm-linux-nat.c: Update calls to regcache_register_status
9598 instead of regcache_valid_p.
9599 * aix-thread.c: Likewise.
9600 * i386gnu-nat.c: Likewise.
9602 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9605 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9606 touching TYPE_FIELD_ARTIFICIAL.
9608 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9610 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9613 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9615 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9616 selected, don't try iterating over the traceframe's blocks.
9617 (tfile_has_stack): If there's no traceframe selected, then there's
9619 (tfile_has_registers): If there's no traceframe selected, then
9620 there's no registers.
9622 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9624 * target.c (memory_xfer_partial): No need to restore shadows if we
9625 haven't read anything.
9627 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9629 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9630 and val_print_scalar_formatted.
9632 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9634 * tracepoint.c (tfile_read): New.
9635 (tfile_open): Use it.
9636 (tfile_get_traceframe_address): Use it.
9637 (tfile_trace_find): Use it.
9638 (walk_blocks_callback_func): New typedef.
9639 (match_blocktype): New function.
9640 (traceframe_walk_blocks): New function.
9641 (traceframe_find_block_type): New function.
9642 (tfile_fetch_registers, tfile_xfer_partial)
9643 (tfile_get_trace_state_variable_value): Use
9644 traceframe_find_block_type and tfile_read.
9646 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9648 * remote-mips.c: Add internationalization mark ups. Remove
9649 trailing \n from already marked up strings.
9651 2011-01-26 Tom Tromey <tromey@redhat.com>
9653 * python/py-prettyprint.c (print_string_repr): Clear
9654 'addressprint' option when calling val_print_string.
9655 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9656 option when calling val_print_string.
9658 2011-01-26 Tom Tromey <tromey@redhat.com>
9660 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9662 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9664 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9665 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9666 (gdb_py_long_as_ulongest): New defines.
9667 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9668 (gdb_py_int_as_long): Declare.
9669 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9670 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9671 (valpy_long): Add comment.
9672 * python/py-utils.c (get_addr_from_python): Use
9673 gdb_py_long_as_ulongest. Handle overflow properly.
9674 (gdb_py_object_from_longest): New function.
9675 (gdb_py_object_from_ulongest): Likewise.
9676 (gdb_py_int_as_long): Likewise.
9677 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9678 * python/py-symtab.c (salpy_get_pc): Use
9679 gdb_py_long_from_ulongest.
9680 (salpy_get_line): Use PyInt_FromLong.
9681 * python/py-param.c (set_parameter_value): Use
9683 * python/py-lazy-string.c (stpy_get_address): Use
9684 gdb_py_long_from_ulongest.
9685 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9686 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9687 * python/py-breakpoint.c (bppy_set_thread): Use
9689 (bppy_set_task): Likewise.
9690 (bppy_set_ignore_count): Likewise.
9691 (bppy_set_hit_count): Likewise.
9692 * python/py-block.c (blpy_get_start): Use
9693 gdb_py_object_from_ulongest.
9694 (blpy_get_end): Likewise.
9695 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9697 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9700 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9701 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9702 equality test for objfile, initialize addr_low if needed.
9704 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9706 * tui/tui-regs.c (tui_register_format): Remove dead code.
9708 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9710 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9711 instead of print_scalar_formatted.
9712 (print_scalar_formatted): Don't handle 's' format strings here,
9713 and add an assertion that we never see such format here.
9714 * valprint.h (val_print_scalar_formatted): Declare.
9715 * valprint.c (val_print_scalar_formatted): New.
9716 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9717 instead of print_scalar_formatted.
9718 * jv-valprint.c (java_val_print): Ditto.
9719 * p-valprint.c (pascal_val_print): Ditto.
9720 * ada-valprint.c (ada_val_print_1): Ditto.
9721 * f-valprint.c (f_val_print): Ditto.
9722 * infcmd.c (registers_info): Ditto.
9723 * m2-valprint.c (m2_val_print): Ditto.
9725 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9727 * m2-valprint.c (print_unbounded_array): Pass
9728 value_contents_for_printing rather than value_contents, to
9729 m2_print_array_contents. Also pass in the value.
9731 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9733 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9734 (save_gdb_index_command): Switch to .gdb_index version 4.
9736 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9738 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9739 than frame_register, and always pass a valid value to val_print.
9741 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9743 Centralize printing "<optimized out>".
9745 * valprint.h (val_print_optimized_out): Declare.
9746 * cp-valprint.c (cp_print_value_fields): Use
9747 val_print_optimized_out.
9748 * jv-valprint.c (java_print_value_fields): Ditto.
9749 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9750 * printcmd.c (print_formatted): Ditto.
9751 * valprint.c (valprint_check_validity): Ditto.
9752 (value_check_printable): Ditto.
9753 (val_print_optimized_out): New.
9755 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9757 * infcmd.c (default_print_registers_info): Allocate values so to
9758 never pass a NULL value to val_print.
9760 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9762 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9763 boolean. Make sure to always pass a value that matches the
9764 contents buffer to callees. Preserve `address' for following
9766 * value.c (value_contents_for_printing_const): New.
9767 (value_address): Constify value argument.
9768 * value.h (value_contents_for_printing_const): Declare.
9769 (value_address): Constify value argument.
9771 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9773 * regcache.c (struct regcache_descr): Rename
9774 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9775 and sizeof_cooked_register_valid_p to
9776 sizeof_cooked_register_status.
9777 (init_regcache_descr): Adjust.
9778 (struct regcache): Rename register_valid_p field to
9780 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9781 (do_cooked_read): Adjust.
9782 (regcache_valid_p): Rename to ...
9783 (regcache_register_status): ... this. Adjust.
9784 (regcache_invalidate): Adjust.
9785 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9787 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9788 as unavailable, not valid.
9789 (regcache_dump): Adjust.
9790 * regcache.h (enum register_status): New.
9791 (regcache_register_status): Declare.
9792 (regcache_invalidate): Delete declaration.
9793 * corelow.c (get_core_registers): Adjust.
9794 * tracepoint.c (tfile_fetch_registers): Adjust.
9795 * trad-frame.c (REG_VALUE): Rename to ...
9796 (TF_REG_VALUE): ... this.
9797 (REG_UNKNOWN): Rename to ...
9798 (TF_REG_UNKNOWN): ... this.
9799 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9800 * mi/mi-main.c (register_changed_p): Adjust.
9802 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9804 * regcache.c (struct regcache_descr): Remove outdated comment.
9805 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9807 (regcache_xmalloc): Rename to ...
9808 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9809 Allocate the regcache type accordingly.
9810 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9811 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9812 cooked registers, not raw.
9813 (regcache_dup_no_passthrough): Delete.
9814 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9815 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9816 mention obsolete write_register_bytes.
9817 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9819 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9821 Stop remote_read_bytes from handling partial reads itself.
9823 * remote-fileio.c: Include target.h.
9824 (remote_fileio_write_bytes): Delete.
9825 (remote_fileio_func_open, remote_fileio_func_write)
9826 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9828 (remote_fileio_func_stat): Use target_read_memory and
9829 target_write_memory.
9830 (remote_fileio_func_gettimeofday): Use target_write_memory.
9831 (remote_fileio_func_system): Use target_read_memory.
9832 * remote.c (remote_write_bytes): Make it static.
9833 (remote_read_bytes): Don't handle partial reads here.
9834 * remote.h (remote_read_bytes): Delete declaration.
9836 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9838 Simplify XML parsing a bit.
9840 * xml-support.h (gdb_xml_parse_quick): Declare.
9841 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9842 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9844 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9845 gdb_xml_create_parser_and_cleanup_1.
9846 (gdb_xml_parse_quick): New.
9847 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9848 * osdata.c (osdata_parse): Ditto.
9849 * remote.c (remote_threads_info): Ditto.
9850 * solib-target.c (solib_target_parse_libraries): Ditto.
9851 * xml-syscall.c (syscall_parse_xml): Ditto.
9852 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9854 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9856 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9857 with remote-mips.o added to gdb_target_obs.
9858 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9860 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9862 * ada-valprint.c (val_print_packed_array_elements): Pass the
9863 correct struct value to val_print.
9864 (ada_val_print_1): Ditto.
9866 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9868 Don't lose embedded_offset in printing routines throughout.
9870 * valprint.h (val_print_array_elements): Change prototype.
9871 * valprint.c (val_print_array_elements): Add `embedded_offset'
9872 parameter, and adjust to pass it down to val_print, while passing
9873 `valaddr' or `address' unmodified. Take embedded_offset into
9874 account when checking repetitions.
9875 * c-valprint.c (c_val_print): Pass embedded_offset to
9876 val_print_array_elements instead of adjusting `valaddr' and
9878 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9879 embedded_offset to val_print_array_elements instead of adjusting
9881 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9882 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9883 val_print_array_elements and pascal_object_print_value_fields
9884 instead of adjusting `valaddr'.
9885 (pascal_object_print_value_fields): Add `offset' parameter, and
9887 (pascal_object_print_value): Add `offset' parameter, and adjust to
9889 (pascal_object_print_static_field): Use
9890 value_contents_for_printing/value_embedded_offset, rather than
9892 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9893 parameter, and adjust to use it. Use
9894 value_contents_for_printing/value_embedded_offset, rather than
9896 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9897 (ada_val_print_array): Add `offset' parameter, and adjust to use
9899 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9900 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9901 Instead work with offsets. Use
9902 value_contents_for_printing/value_embedded_offset, rather than
9903 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9904 and use value_from_pointer to extract a target pointer, rather
9905 than value_from_longest.
9906 (print_variant_part): Add `offset' parameter. Replace
9907 `outer_valaddr' parameter by a new `outer_offset' parameter.
9908 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9909 (ada_value_print): Use
9910 value_contents_for_printing/value_embedded_offset, rather than
9912 (print_record): Add `offset' parameter, and adjust to pass it
9914 (print_field_values): Add `offset' parameter. Replace
9915 `outer_valaddr' parameter by a new `outer_offset' parameter.
9916 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9917 Use value_contents_for_printing/value_embedded_offset, rather than
9919 * d-valprint.c (dynamic_array_type): Use
9920 value_contents_for_printing/value_embedded_offset, rather than
9922 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9923 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9924 (java_print_value_fields): Take `offset' into account. Don't
9925 re-adjust `valaddr'. Instead pass down adjusted offsets.
9926 (java_val_print): Take `embedded_offset' into account. Pass it to
9927 java_print_value_fields.
9928 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9929 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9930 down adjusted offsets.
9931 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9932 (f_val_print): Take `embedded_offset' into account.
9934 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9936 * inflow.c: Include "gdbcmd.h".
9937 (interactive_mode): New static global, moved here from top.c.
9938 (show_interactive_mode): New function, moved here from top.c.
9939 use gdb_has_a_terminal instead of input_from_terminal_p to
9940 determine the current mode.
9941 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9943 (_initialize_inflow): Add the "set/show interactive-mode"
9944 commands. Moved here from top.c, after having adjusted slightly
9946 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9948 (input_from_terminal_p): Remove handling of "interactive-mode"
9949 setting, moved to infow.c.
9950 (init_main): Remove creation of the "set/show interactive-mode"
9951 commands, moved to inflow.c.
9953 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9955 * NEWS: Add entry for native ia64-hpux support.
9957 2011-01-19 Tom Tromey <tromey@redhat.com>
9960 * thread.c (free_thread): Free 'name'.
9961 (print_thread_info): Emit thread name. Change CLI output.
9962 (thread_name_command): New function.
9963 (do_captured_thread_select): Emit newline.
9964 (_initialize_thread): Register 'thread name' command.
9965 * target.h (struct target_ops) <to_thread_name>: New field.
9966 (target_thread_name): New macro.
9967 * target.c (update_current_target): Handle to_thread_name.
9968 * python/py-infthread.c (thpy_get_name): New function.
9969 (thpy_set_name): Likewise.
9970 (thread_object_getset): Add "name".
9971 * linux-nat.c (linux_nat_thread_name): New function.
9972 (linux_nat_add_target): Set to_thread_name.
9973 * gdbthread.h (struct thread_info) <name>: New field.
9975 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9977 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9978 (ada_val_print_1): Likewise.
9980 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9982 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9983 upper limit address is not greater than the function end address
9984 when the upper limit could not be computed using the debugging
9987 2011-01-17 Tom Tromey <tromey@redhat.com>
9989 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9991 * utils.c: Include gdb_regex.h.
9992 (do_regfree_cleanup): New function.
9993 (make_regfree_cleanup): Likewise.
9994 (get_regcomp_error): Likewise.
9995 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9997 2011-01-17 Tom Tromey <tromey@redhat.com>
9999 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10000 re_compile_fastmap.
10002 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10004 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10005 for internal variables.
10006 (last_was_structop): New static variable.
10007 (COMPLETE): New token.
10008 (field_exp): New rule to group all '.' suffix handling.
10009 Add mark_struct_expression calls when approriate to be able
10010 to correctly find fields for completion.
10011 (yylex): Adapt to handle field completion and set INTVAR when
10014 2011-01-14 Yao Qi <yao@codesourcery.com>
10016 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10017 save_reggroup, restore_reggroup and all_reggroup.
10019 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10021 * ada-valprint. (ada_printchar): Use the correct type length
10022 in call to ada_emit_char.
10023 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10025 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10027 * solib-som.h (hpux_major_release): Declare variable here.
10028 * solib-som.c: Remove <sys/utsname.h> header.
10029 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10030 (hpux_major_release): Make global, change default value to
10031 DEFAULT_HPUX_MAJOR_RELEASE.
10032 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10033 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10034 Add "solib-som.h" header.
10035 (set_hpux_major_release): New function.
10036 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10038 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10040 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10042 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10044 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10045 new-line at end of warning message.
10046 (ia64_hpux_store_register): Remove trailing new-line at end of
10048 * ia64-hpux-tdep.c: Rephrase comment.
10049 * solib-ia64-hpux.c (struct dld_info): Change type of field
10050 dld_flags from "long long" to ULONGEST.
10052 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10054 * target.h (deprecated_child_ops): Delete declaration.
10055 * target.c (deprecated_child_ops): Delete definition.
10057 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10059 * Makefile.in (hpux-thread.o): Delete rule.
10060 * configure.ac: Don't check for HPUX DCE threads support.
10061 * configure, config.in: Regenerate.
10062 * hppa-hpux-nat.c (child_suppress_run): Delete.
10063 (hppa_hpux_child_can_run): Delete.
10064 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10065 * hpux-thread.c: Delete.
10067 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10069 * hpux-thread.c (hpux_pid_to_str): Delete.
10071 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10073 * ada-valprint.c (ada_emit_char): Remove strange code.
10074 Check that c is <= UCHAR_MAX before passing it to isascii.
10075 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10077 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10079 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10080 to the case where instream is stdin.
10082 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10084 * ia64-tdep.h (struct regcache): Forward declare.
10085 (struct ia64_infcall_ops): New struct type.
10086 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10088 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10089 Renames ia64_find_global_pointer.
10090 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10091 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10092 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10094 (ia64_infcall_ops): New static global constant.
10095 (ia64_gdbarch_init): Set tdep->infcall_ops.
10096 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10097 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10098 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10099 (ia64_hpux_dummy_code): New static global constant.
10100 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10101 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10102 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10104 (ia64_hpux_infcall_ops): New static global constant.
10105 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10106 for inferior function calls to work properly on ia64-hpux.
10108 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10110 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10111 * ia64-tdep.h (struct frame_info): forward declaration.
10112 (struct gdbarch_tdep): Add field size_of_register_frame.
10113 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10114 to determine the size of the register frame.
10115 (ia64_size_of_register_frame): New function.
10116 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10117 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10118 (IA64_HPUX_UREG_REASON): New macro.
10119 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10121 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10122 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10123 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10126 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10128 Add support for ia64-hpux.
10129 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10130 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10132 * configure.host: Add handling for ia64-hpux hosts. Add associated
10134 * configure.tgt: Add handling for ia64-hpux targets.
10135 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10136 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10137 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10139 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10141 [ttrace] Compute thread list immediately after attach.
10142 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10144 (inf_ttrace_attach): Use it.
10146 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10148 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10149 if we could not determine the frame's function address. Instead,
10150 use the frame's PC, and then continue.
10152 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10154 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10155 not already defined.
10157 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10159 * ia64-tdep.c (ia64_struct_type_p): New function.
10160 (ia64_extract_return_value): Handle integral values that are
10161 less than 8 bytes long.
10162 (ia64_push_dummy_call): Likewise.
10164 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10166 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10167 floatformat_ia64_ext.
10168 (floatformat_ia64_ext_big): New static const.
10169 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10171 2011-01-12 Tom Tromey <tromey@redhat.com>
10173 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10175 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10176 (mi_cmd_thread_list_ids): Likewise.
10177 (mi_cmd_data_list_changed_registers): Likewise.
10178 (mi_cmd_data_list_register_values): Likewise.
10179 (mi_cmd_data_write_register_values): Likewise.
10180 (mi_cmd_data_evaluate_expression): Likewise.
10181 (mi_cmd_data_read_memory): Likewise.
10182 (mi_cmd_data_read_memory_bytes): Likewise.
10183 (mi_cmd_data_write_memory): Likewise.
10184 (mi_cmd_enable_timings): Likewise.
10185 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10186 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10187 (mi_cmd_var_delete): Likewise.
10188 (mi_cmd_var_set_format): Likewise.
10189 (mi_cmd_var_show_format): Likewise.
10190 (mi_cmd_var_info_num_children): Likewise.
10191 (mi_cmd_var_list_children): Likewise.
10192 (mi_cmd_var_info_type): Likewise.
10193 (mi_cmd_var_info_expression): Likewise.
10194 (mi_cmd_var_show_attributes): Likewise.
10195 (mi_cmd_var_assign): Likewise.
10196 (mi_cmd_var_update): Likewise.
10197 (mi_cmd_enable_pretty_printing): Likewise.
10198 (mi_cmd_var_set_update_range): Likewise.
10199 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10201 (mi_cmd_target_file_put): Likewise.
10202 (mi_cmd_target_file_delete): Likewise.
10203 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10205 (mi_cmd_stack_info_depth): Likewise.
10206 (mi_cmd_stack_list_locals): Likewise.
10207 (mi_cmd_stack_list_args): Likewise.
10208 (mi_cmd_stack_select_frame): Likewise.
10209 (mi_cmd_stack_select_frame): Likewise.
10210 (mi_cmd_stack_info_frame): Likewise.
10211 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10213 (mi_cmd_file_list_exec_source_files): Likewise.
10214 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10215 (mi_cmd_env_cd): Likewise.
10216 (mi_cmd_env_path): Likewise.
10217 (mi_cmd_env_dir): Likewise.
10218 (mi_cmd_inferior_tty_show): Likewise.
10219 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10220 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10221 (mi_cmd_break_watch): Likewise.
10223 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10225 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10226 (ppc_linux_insert_hw_breakpoint): Likewise.
10227 (ppc_linux_remove_hw_breakpoint): Likewise.
10228 (ppc_linux_insert_watchpoint): Likewise.
10230 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10231 Jan Kratochvil <jan.kratochvil@redhat.com>
10233 PR fortran/11104 and DWARF unbound arrays detection.
10234 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10235 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10236 unspecified upper bound.
10237 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10238 variables array_size_array, tmp_type and offset_item. New variable
10239 array. Remove call to f77_get_upperbound. New variables array_type
10240 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10241 the final call to deprecated_set_value_type.
10243 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10245 Make value allocations more lazy.
10246 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10247 instead of allocate_value and set_value_lazy when possible.
10248 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10249 instead of allocate_value and set_value_lazy.
10250 * findvar.c (value_of_register_lazy): Likewise.
10251 (read_var_value): Remove V preallocation, call just check_typedef in
10252 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10253 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10254 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10255 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10256 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10257 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10258 the end, remove set_value_lazy there.
10259 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10260 instead of allocate_value and set_value_lazy when possible.
10261 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10262 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10263 of allocate_value and set_value_lazy.
10264 (value_from_contents_and_address): Use allocate_value_lazy instead of
10265 allocate_value and set_value_lazy when possible.
10267 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10269 * disasm.c (dump_insns): Support dumping opcodes for MI.
10270 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10271 dumping of instruction opcodes.
10273 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10275 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10278 2011-01-11 Tom Tromey <tromey@redhat.com>
10280 * thread.c (do_captured_thread_select): Emit newline before
10283 2011-01-11 Michael Snyder <msnyder@vmware.com>
10285 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10286 * score-tdep.c: Ditto.
10287 * score-tdep.h: Ditto.
10288 * ser-base.c: Ditto.
10289 * ser-go32.c: Ditto.
10292 * ser-mingw.c: Ditto.
10293 * ser-pipe.c: Ditto.
10294 * ser-tcp.c: Ditto.
10295 * ser-unix.c: Ditto.
10296 * sh64-tdep.c: Ditto.
10297 * shnbsd-nat.c: Ditto.
10298 * sh-tdep.c: Ditto.
10299 * sh-tdep.h: Ditto.
10301 * solib-darwin.c: Ditto.
10302 * solib-frv.c: Ditto.
10304 * solib-irix.c: Ditto.
10305 * solib-osf.c: Ditto.
10306 * solib-pa64.c: Ditto.
10307 * solib-som.c: Ditto.
10308 * solib-spu.c: Ditto.
10309 * solib-sunos.c: Ditto.
10310 * solib-svr4.c: Ditto.
10312 * sol-thread.c: Ditto.
10313 * somread.c: Ditto.
10316 * sparc64-linux-tdep.c: Ditto.
10317 * sparc64-tdep.c: Ditto.
10318 * sparc-linux-nat.c: Ditto.
10319 * sparc-linux-tdep.c: Ditto.
10320 * sparc-sol2-nat.c: Ditto.
10321 * sparc-sol2-tdep.c: Ditto.
10322 * sparc-tdep.c: Ditto.
10323 * sparc-tdep.h: Ditto.
10324 * spu-tdep.c: Ditto.
10325 * stabsread.c: Ditto.
10326 * stabsread.h: Ditto.
10328 * symfile.c: Ditto.
10329 * symfile.h: Ditto.
10330 * symmisc.c: Ditto.
10334 * target-descriptions.c: Ditto.
10335 * target-descriptions.h: Ditto.
10337 * target-memory.c: Ditto.
10338 * terminal.h: Ditto.
10341 * tracepoint.c: Ditto.
10342 * tracepoint.h: Ditto.
10343 * trad-frame.h: Ditto.
10344 * typeprint.c: Ditto.
10346 2011-01-11 Michael Snyder <msnyder@vmware.com>
10348 * ui-file.c: Comment cleanup, mostly periods and spaces.
10349 * ui-file.h: Ditto.
10353 * v850-tdep.c: Ditto.
10354 * valarith.c: Ditto.
10356 * valprint.c: Ditto.
10357 * valprint.h: Ditto.
10362 * vax-tdep.c: Ditto.
10365 * version.h: Ditto.
10366 * windows-nat.c: Ditto.
10367 * windows-tdep.c: Ditto.
10368 * xcoffread.c: Ditto.
10369 * xcoffsolib.c: Ditto.
10370 * xml-support.c: Ditto.
10371 * xstormy16-tdep.c: Ditto.
10372 * xtensa-tdep.c: Ditto.
10373 * xtensa-tdep.h: Ditto.
10375 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10377 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10378 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10380 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10381 Thiago Jung Bauermann <bauerman@br.ibm.com>
10383 Implement support for PowerPC BookE ranged watchpoints.
10385 (struct breakpoint_ops) <resources_needed>: New method.
10386 Initialize to NULL in all existing breakpoint_ops instances.
10387 (struct breakpoint) <exact>: New field.
10388 (target_exact_watchpoints): Declare external global.
10389 * breakpoint.c (target_exact_watchpoints): New global flag.
10390 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10391 b->enable_state to bp_enabled before calling
10392 hw_watchpoint_used_count.
10393 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10394 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10396 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10397 if the watchpoint is exact.
10398 (resources_needed_watchpoint): New function.
10399 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10400 (watch_command_1): Set b->exact if the user asked for an exact
10401 watchpoint and one can be set.
10402 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10403 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10404 the user asks for an exact watchpoint and one can be set. Return
10405 number of needed debug registers to watch the expression.
10406 * gdbtypes.c (is_scalar_type): New function, based on
10407 valprint.c:scalar_type_p.
10408 (is_scalar_type_recursive): New function.
10409 * gdbtypes.h (is_scalar_type_recursive): Declare.
10410 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10411 handle regions when ranged watchpoints are available.
10412 (create_watchpoint_request): New function.
10413 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10414 create_watchpoint_request.
10415 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10416 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10417 `set powerpc' and `show powerpc' commands.
10418 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10419 Mention documentation comment in the target macro.
10420 (target_region_ok_for_hw_watchpoint): Document return value.
10422 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10424 * breakpoint.c (update_watchpoint): Decide on using a software or
10425 hardware watchpoint after the bp_locations are created.
10427 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10429 Convert hardware watchpoints to use breakpoint_ops.
10430 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10431 <insert_location>: ... this. Return int instead of void.
10432 Accept pointer to struct bp_location instead of pointer to
10433 struct breakpoint. Adapt all implementations.
10434 (breakpoint_ops) <remove>: Rename to...
10435 <remove_location>: ... this. Accept pointer to struct bp_location
10436 instead of pointer to struct breakpoint. Adapt all implementations.
10437 * breakpoint.c (insert_catchpoint): Delete function.
10438 (insert_bp_location): Call the watchpoint or catchpoint's
10439 breakpoint_ops.insert method.
10440 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10441 breakpoint_ops.remove method.
10442 (insert_watchpoint, remove_watchpoint): New functions.
10443 (watchpoint_breakpoint_ops): New structure.
10444 (watch_command_1): Initialize the OPS field.
10445 * inf-child.c (inf_child_insert_fork_catchpoint)
10446 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10447 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10448 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10450 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10451 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10452 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10453 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10454 * target.c (update_current_target): Change default implementation of
10455 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10456 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10457 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10458 to_set_syscall_catchpoint to return_one.
10459 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10460 (debug_to_insert_exec_catchpoint): Report return value.
10461 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10462 (to_insert_exec_catchpoint): Change declaration to return int instead
10465 2011-01-11 Michael Snyder <msnyder@vmware.com>
10467 * arm-tdep.c: Internationalization.
10469 * charset.c: Ditto.
10470 * fork-child.c: Ditto.
10471 * nto-procfs.c: Ditto.
10472 * ppc-sysv-tdep.c: Ditto.
10474 * remote-mips.c: Ditto.
10476 * rs6000-nat.c: Ditto.
10477 * rs6000-tdep.c: Ditto.
10481 * xml-support.c: Ditto.
10482 * mi/mi-cmd-break.c: Ditto.
10483 * mi/mi-cmd-var.c: Ditto.
10484 * mi/mi-interp.c: Ditto.
10485 * mi/mi-main.c: Ditto.
10487 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10489 * remote-sim.c (gdbsim_store_register): Update API to
10490 sim_store_register to check more error conditions.
10492 2011-01-10 Michael Snyder <msnyder@vmware.com>
10494 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10495 * nto-tdep.c: Ditto.
10496 * nto-tdep.h: Ditto.
10497 * objc-exp.y: Ditto.
10498 * objc-lang.c: Ditto.
10499 * objfiles.c: Ditto.
10500 * objfiles.h: Ditto.
10501 * observer.c: Ditto.
10502 * opencl-lang.c: Ditto.
10505 * parser-defs.h: Ditto.
10508 * posix-hdep.c: Ditto.
10509 * ppcbug-rom.c: Ditto.
10510 * ppc-linux-nat.c: Ditto.
10511 * ppc-linux-tdep.c: Ditto.
10512 * ppc-linux-tdep.h: Ditto.
10513 * ppcnbsd-tdep.c: Ditto.
10514 * ppcobsd-tdep.c: Ditto.
10515 * ppcobsd-tdep.h: Ditto.
10516 * ppc-sysv-tdep.c: Ditto.
10517 * ppc-tdep.h: Ditto.
10518 * printcmd.c: Ditto.
10519 * proc-abi.c: Ditto.
10520 * proc-flags.c: Ditto.
10522 * proc-utils.h: Ditto.
10523 * progspace.h: Ditto.
10524 * prologue-value.c: Ditto.
10525 * prologue-value.h: Ditto.
10526 * psympriv.h: Ditto.
10527 * psymtab.c: Ditto.
10528 * p-typeprint.c: Ditto.
10529 * p-valprint.c: Ditto.
10530 * ravenscar-sparc-thread.c: Ditto.
10531 * ravenscar-thread.c: Ditto.
10532 * ravenscar-thread.h: Ditto.
10534 * regcache.c: Ditto.
10535 * regcache.h: Ditto.
10537 * remote-fileio.c: Ditto.
10538 * remote-fileio.h: Ditto.
10540 * remote-m32r-sdi.c: Ditto.
10541 * remote-mips.c: Ditto.
10542 * remote-sim.c: Ditto.
10543 * rs6000-aix-tdep.c: Ditto.
10544 * rs6000-nat.c: Ditto.
10545 * rs6000-tdep.c: Ditto.
10547 2011-01-10 Michael Snyder <msnyder@vmware.com>
10549 * charset.c (validate): Internationalization.
10550 * coffread.c (read_one_sym): Ditto.
10551 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10552 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10553 * inflow.c (new_tty): Ditto.
10554 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10555 * m32c-tdep.c (m32c_return_value): Ditto.
10556 * mep-tdep.c (mep_store_return_value): Ditto.
10557 * score-tdep.c (score7_fetch_insn): Ditto.
10558 * ser-mingw.c (pipe_windows_open): Ditto.
10559 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10560 * spu-tdep.c (spu_register_type): Ditto.
10561 * tracepoint.c (trace_find_command): Ditto.
10562 * valarith.c (value_pos): Ditto.
10564 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10566 * ada-valprint.c (printstr): Minor comment reformatting.
10568 2011-01-08 Michael Snyder <msnyder@vmware.com>
10570 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10573 2011-01-08 Michael Snyder <msnyder@vmware.com>
10575 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10576 * hppa-hpux-tdep.c: Ditto.
10577 * hppa-linux-nat.c: Ditto.
10578 * hppa-linux-tdep.c: Ditto.
10579 * hppanbsd-tdep.c: Ditto.
10580 * hppa-tdep.c: Ditto.
10581 * hppa-tdep.h: Ditto.
10582 * hpux-thread.c: Ditto.
10583 * i386-cygwin-tdep.c: Ditto.
10584 * i386-darwin-nat.c: Ditto.
10585 * i386gnu-nat.c: Ditto.
10586 * i386-linux-nat.c: Ditto.
10587 * i386-linux-tdep.c: Ditto.
10588 * i386-nat.c: Ditto.
10589 * i386-nat.h: Ditto.
10590 * i386nbsd-tdep.c: Ditto.
10591 * i386-sol2-nat.c: Ditto.
10592 * i386-stub.c: Ditto.
10593 * i386-tdep.c: Ditto.
10594 * i386-tdep.h: Ditto.
10595 * i387-tdep.c: Ditto.
10596 * ia64-linux-nat.c: Ditto.
10597 * ia64-linux-tdep.c: Ditto.
10598 * ia64-tdep.c: Ditto.
10599 * infcall.c: Ditto.
10600 * infcall.h: Ditto.
10602 * inferior.c: Ditto.
10603 * inferior.h: Ditto.
10604 * infloop.c: Ditto.
10607 * interps.c: Ditto.
10608 * interps.h: Ditto.
10609 * iq2000-tdep.c: Ditto.
10610 * irix5-nat.c: Ditto.
10614 * jv-lang.c: Ditto.
10615 * jv-lang.h: Ditto.
10616 * jv-typeprint.c: Ditto.
10617 * jv-valprint.c: Ditto.
10618 * language.c: Ditto.
10619 * language.h: Ditto.
10620 * linespec.c: Ditto.
10621 * linux-fork.c: Ditto.
10622 * linux-nat.c: Ditto.
10623 * linux-thread-db.c: Ditto.
10624 * lm32-tdep.c: Ditto.
10626 2011-01-08 Michael Snyder <msnyder@vmware.com>
10628 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10629 * m2-lang.c: Ditto.
10630 * m2-typeprint.c: Ditto.
10631 * m2-valprint.c: Ditto.
10632 * m32c-tdep.c: Ditto.
10633 * m32r-linux-nat.c: Ditto.
10634 * m32r-rom.c: Ditto.
10635 * m32r-tdep.c: Ditto.
10636 * m32r-tdep.h: Ditto.
10637 * m68hc11-tdep.c: Ditto.
10638 * m58klinux-nat.c: Ditto.
10639 * m68k-tdep.c: Ditto.
10640 * m88k-tdep.c: Ditto.
10641 * m88k-tdep.h: Ditto.
10642 * machoread.c: Ditto.
10643 * macrocmd.c: Ditto.
10644 * macroexp.c: Ditto.
10645 * macrotab.c: Ditto.
10648 * mdebugread.c: Ditto.
10649 * mdebugread.h: Ditto.
10650 * memattr.c: Ditto.
10651 * memattr.h: Ditto.
10652 * memory-map.h: Ditto.
10653 * mep-tdep.c: Ditto.
10654 * microblaze-rom.c: Ditto.
10655 * microblaze-tdep.c: Ditto.
10656 * minsyms.c: Ditto.
10657 * mips-irix-tdep.c: Ditto.
10658 * mips-linux-nat.c: Ditto.
10659 * mips-linux-tdep.c: Ditto.
10660 * mips-linux-tdep.h: Ditto.
10661 * mipsnbsd-nat.c: Ditto.
10662 * mipsnbsd-tdep.c: Ditto.
10663 * mipsread.c: Ditto.
10664 * mips-tdep.c: Ditto.
10665 * mips-tdep.h: Ditto.
10666 * mn10300-linux-tdep.c: Ditto.
10667 * mn10300-tdep.c: Ditto.
10668 * mn10300-tdep.h: Ditto.
10669 * monitor.c: Ditto.
10670 * monitor.h: Ditto.
10671 * moxie-tdep.c: Ditto.
10672 * moxie-tdep.h: Ditto.
10673 * mt-tdep.c: Ditto.
10675 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10677 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10679 2011-01-08 Robert Millan <rmh@gnu.org>
10681 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10683 2011-01-07 Michael Snyder <msnyder@vmware.com>
10685 * charset.c (_initialize_charset): Fix typo in string.
10687 2011-01-07 Michael Snyder <msnyder@vmware.com>
10689 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10691 * tui/tui-layout.c (tui_set_layout_for_display_command):
10692 Split line so that operator goes to beginning of line.
10693 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10694 assignment out of if statement.
10696 2011-01-07 Michael Snyder <msnyder@vmware.com>
10698 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10699 * ada-lang.h: Ditto.
10700 * ada-tasks.c: Ditto.
10701 * ada-valprint.c: Ditto.
10702 * aix-threads.c: Ditto.
10703 * alpha-linux-nat.c: Ditto.
10704 * alpha-linux-tdep.c: Ditto.
10705 * alpha-mdebug-tdep.c: Ditto.
10706 * alpha-nat.c: Ditto.
10707 * alpha-osf1-tdep.c: Ditto.
10708 * alpha-tdep.c: Ditto.
10709 * alphabsd-nat.c: Ditto.
10710 * alphabsd-tdep.c: Ditto.
10711 * amd64-darwin-tdep.c: Ditto.
10712 * amd64-linux-nat.c: Ditto.
10713 * amd64-linux-tdep.c: Ditto.
10714 * amd64-sol2-tdep.c: Ditto.
10715 * amd64-tdep.c: Ditto.
10716 * amd64-fbsd-tdep.c: Ditto.
10717 * amd64-nbsd-tdep.c: Ditto.
10718 * amd64-obsd-tdep.c: Ditto.
10719 * amd64-linux-nat.c: Ditto.
10720 * amd64-linux-tdep.c: Ditto.
10721 * arm-tdep.c: Ditto.
10722 * arm-tdep.h: Ditto.
10723 * armnbsd-nat.c: Ditto.
10724 * avr-tdep.c: Ditto.
10725 * bfin-tdep.c: Ditto.
10726 * bsd-kvm.c: Ditto.
10727 * c-typeprintc: Ditto.
10728 * c-valprint.c: Ditto.
10729 * coff-pe-read.h: Ditto.
10730 * coffreead.c: Ditto.
10731 * cris-tdep.c: Ditto.
10733 * darwin-nat-info.c: Ditto.
10734 * darwin-nat.c: Ditto.
10735 * dbug-rom.c: Ditto.
10736 * dbxread.c: Ditto.
10739 * dec-thread.c: Ditto.
10741 * demangle.c: Ditto.
10742 * dicos-tdep.c: Ditto.
10743 * dictionary.c: Ditto.
10744 * dictionary.h: Ditto.
10745 * dink32-rom.c: Ditto.
10747 * doublest.c: Ditto.
10749 * dummy-frame.c: Ditto.
10750 * dwarf2-frame.c: Ditto.
10751 * dwarf2expr.c: Ditto.
10752 * dwarf2loc.c: Ditto.
10753 * dwarf2read.c: Ditto.
10754 * elfread.c: Ditto.
10755 * environ.c: Ditto.
10757 * event-top.h: Ditto.
10758 * exceptions.c: Ditto.
10759 * exceptions.h: Ditto.
10761 * expprint.c: Ditto.
10762 * expression.h: Ditto.
10766 * f-typeprint.c: Ditto.
10767 * f-valprint.c: Ditto.
10768 * fbsd-nat.c: Ditto.
10769 * findvar.c: Ditto.
10770 * fork-child.c: Ditto.
10773 * frv-linux-tdep.c: Ditto.
10774 * frv-tdep.c: Ditto.
10776 * gdb-stabs.h: Ditto.
10777 * gdb_assert.h: Ditto.
10778 * gdb_string.h: Ditto.
10779 * gdb_thread_db.h: Ditto.
10780 * gdb_wait.h: Ditto.
10781 * gdbarch.sh: Ditto.
10782 * gdbcore.h: Ditto.
10783 * gdbthread.h: Ditto.
10784 * gdbtypes.c: Ditto.
10785 * gdbtypes.h: Ditto.
10786 * gnu-nat.c: Ditto.
10787 * gnu-nat.h: Ditto.
10788 * gnu-v2-abi.c: Ditto.
10789 * gnu-v3-abi.c: Ditto.
10790 * go32-nat.c: Ditto.
10791 * gdbarch.c: Regenerate.
10792 * gdbarch.h: Regenerate.
10794 2011-01-07 Michael Snyder <msnyder@vmware.com>
10796 * ax-gdb.c: Adjust some long output strings.
10797 * breakpoint.c: Ditto.
10798 * charset.c: Ditto.
10800 * infcall.c: Ditto.
10802 * linux-nat.c: Ditto.
10803 * solib-pa64.c: Ditto.
10804 * solib-som.c: Ditto.
10806 2011-01-06 Tom Tromey <tromey@redhat.com>
10810 * python/python.c (GdbMethods): Add "newest_frame" method.
10811 * python/python-internal.h (gdbpy_newest_frame): Declare.
10812 * python/py-frame.c (gdbpy_newest_frame): New function.
10814 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10816 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10817 * jit.c (jit_debug): New variable.
10818 (show_jit_debug): New function.
10819 (struct target_buffer): Use ULONGEST.
10820 (bfd_open_from_target_memory): Likewise.
10821 (jit_register_code, jit_inferior_init): Add debug output.
10822 (_initialize_jit): Register "debug jit" command.
10824 2011-01-06 Tom Tromey <tromey@redhat.com>
10826 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10827 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10830 2011-01-06 Tom Tromey <tromey@redhat.com>
10832 * python/py-frame.c (frapy_block): Use get_frame_block.
10834 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10836 Do not stop on SIGPRIO signals by default
10837 * infrun.c (_initialize_infrun): Unset signal_stop and
10838 signal_print for TARGET_SIGNAL_PRIO.
10840 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10842 * ada-tasks.c: Fix style violation in comment.
10844 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10846 * linespec.c (decode_compound, find_method): Remove trailing \n
10847 at end of error string.
10848 * solib-irix.c (irix_current_sos): Likewise.
10849 * varobj.c (uninstall_variable): Likewise.
10851 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10853 * copyright.py: New script.
10854 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10855 Launch emacs without exec'ing. Call copyright.py afterwards.
10857 2011-01-05 Michael Snyder <msnyder@vmware.com>
10859 * addrmap.c: Shorten lines of >= 80 columns.
10860 * arch-utils.c: Ditto.
10861 * arch-utils.h: Ditto.
10863 * ax-general.c: Ditto.
10865 * blockframe.c: Ditto.
10866 * breakpoint.c: Ditto.
10867 * buildsym.c: Ditto.
10869 * c-typeprint.c: Ditto.
10870 * charset.c: Ditto.
10871 * coffread.c: Ditto.
10872 * command.h: Ditto.
10873 * corelow.c: Ditto.
10875 * cp-namespace.c: Ditto.
10876 * cp-support.c: Ditto.
10877 * dbug-rom.c: Ditto.
10878 * dbxread.c: Ditto.
10882 * dictionary.c: Ditto.
10884 * doublest.c: Ditto.
10885 * dwarf2-frame.c: Ditto.
10886 * dwarf2expr.c: Ditto.
10887 * dwarf2loc.c: Ditto.
10888 * dwarf2read.c: Ditto.
10889 * elfread.c: Ditto.
10891 * event-loop.c: Ditto.
10892 * event-loop.h: Ditto.
10893 * exceptions.h: Ditto.
10895 * expprint.c: Ditto.
10896 * expression.h: Ditto.
10898 * f-valprint.c: Ditto.
10899 * findcmd.c: Ditto.
10900 * frame-base.c: Ditto.
10901 * frame-unwind.c: Ditto.
10902 * frame-unwind.h: Ditto.
10906 * gdb-stabs.h: Ditto.
10907 * gdb_assert.h: Ditto.
10908 * gdb_dirent.h: Ditto.
10909 * gdb_obstack.h: Ditto.
10910 * gdbcore.h: Ditto.
10911 * gdbtypes.c: Ditto.
10912 * gdbtypes.h: Ditto.
10913 * inf-ttrace.c: Ditto.
10914 * infcall.c: Ditto.
10918 * inline-frame.h: Ditto.
10919 * language.c: Ditto.
10920 * language.h: Ditto.
10921 * libunwind-frame.c: Ditto.
10922 * libunwind-frame.h: Ditto.
10923 * linespec.c: Ditto.
10924 * linux-nat.c: Ditto.
10925 * linux-nat.h: Ditto.
10926 * linux-thread-db.c: Ditto.
10927 * machoread.c: Ditto.
10928 * macroexp.c: Ditto.
10929 * macrotab.c: Ditto.
10932 * mdebugread.c: Ditto.
10933 * memattr.c: Ditto.
10934 * minsyms.c: Ditto.
10935 * monitor.c: Ditto.
10936 * monitor.h: Ditto.
10937 * objfiles.c: Ditto.
10938 * objfiles.h: Ditto.
10940 * p-typeprint.c: Ditto.
10941 * p-valprint.c: Ditto.
10943 * printcmd.c: Ditto.
10944 * proc-events.c: Ditto.
10946 * progspace.c: Ditto.
10947 * progspace.h: Ditto.
10948 * psympriv.h: Ditto.
10949 * psymtab.c: Ditto.
10951 * regcache.c: Ditto.
10952 * regcache.h: Ditto.
10953 * remote-fileio.c: Ditto.
10955 * ser-mingw.c: Ditto.
10956 * ser-tcp.c: Ditto.
10957 * ser-unix.c: Ditto.
10960 * solib-frv.c: Ditto.
10961 * solib-irix.c: Ditto.
10962 * solib-osf.c: Ditto.
10963 * solib-pa64.c: Ditto.
10964 * solib-som.c: Ditto.
10965 * solib-sunos.c: Ditto.
10966 * solib-svr4.c: Ditto.
10967 * solib-target.c: Ditto.
10969 * somread.c: Ditto.
10971 * stabsread.c: Ditto.
10972 * stabsread.c: Ditto.
10975 * symfile-mem.c: Ditto.
10976 * symfile.c: Ditto.
10977 * symfile.h: Ditto.
10978 * symmisc.c: Ditto.
10981 * target-descriptions.c: Ditto.
10982 * target-memory.c: Ditto.
10985 * terminal.h: Ditto.
10988 * tracepoint.c: Ditto.
10989 * tracepoint.h: Ditto.
10990 * ui-file.c: Ditto.
10991 * ui-file.h: Ditto.
10993 * user-regs.c: Ditto.
10994 * user-regs.h: Ditto.
10996 * valarith.c: Ditto.
10998 * valprint.c: Ditto.
10999 * valprint.h: Ditto.
11004 * xcoffread.c: Ditto.
11005 * xcoffsolib.c: Ditto.
11006 * xcoffsolib.h: Ditto.
11007 * xml-syscall.c: Ditto.
11008 * xml-tdesc.c: Ditto.
11010 2011-01-05 Michael Snyder <msnyder@vmware.com>
11012 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11013 * cli/cli-decode.c: Ditto.
11014 * cli/cli-dump.c: Ditto.
11015 * cli/cli-logging.c: Ditto.
11016 * cli/cli-script.c: Ditto.
11017 * cli/cli-setshow.c: Ditto.
11018 * common/signals.c: Ditto.
11019 * mi/mi-cmd-break.c: Ditto.
11020 * mi/mi-cmd-disas.c: Ditto.
11021 * mi/mi-cmd-stack.c: Ditto.
11022 * mi/mi-cmd-var.c: Ditto.
11023 * mi/mi-cmds.c: Ditto.
11024 * mi/mi-common.h: Ditto.
11025 * mi/mi-console.c: Ditto.
11026 * mi/mi-interp.c: Ditto.
11027 * mi/mi-main.c: Ditto.
11028 * osf-share/cma_attr.c: Ditto.
11029 * osf-share/cma_deb_core.h: Ditto.
11030 * osf-share/cma_debug_client.h: Ditto.
11031 * osf-share/cma_handle.h: Ditto.
11032 * osf-share/cma_mutex.h: Ditto.
11033 * osf-share/cma_stack_int.h: Ditto.
11034 * osf-share/cma_tcb_defs.h: Ditto.
11035 * python/py-auto-load.c: Ditto.
11036 * python/py-breakpoint.c: Ditto.
11037 * python/py-cmd.c: Ditto.
11038 * python/py-frame.c: Ditto.
11039 * python/py-objfile.c: Ditto.
11040 * python/py-param.c: Ditto.
11041 * python/py-progspace.c: Ditto.
11042 * python/py-symbol.c: Ditto.
11043 * python/py-value.c: Ditto.
11044 * python/python-internal.h: Ditto.
11045 * python/python.c: Ditto.
11046 * tui/tui-data.c: Ditto.
11047 * tui/tui-disasm.c: Ditto.
11048 * tui/tui-hooks.c: Ditto.
11049 * tui/tui-io.c: Ditto.
11050 * tui/tui-layout.c: Ditto.
11051 * tui/tui-regs.c: Ditto.
11052 * tui/tui-source.c: Ditto.
11053 * tui/tui-stack.c: Ditto.
11054 * tui/tui-win.c: Ditto.
11055 * tui/tui-windata.c: Ditto.
11056 * tui/tui-winsource.c: Ditto.
11058 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11060 * configure.ac, gdb.1: Copyright year update.
11062 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11064 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11065 this_pc_in_block, morestack_msym and morestack_name. Check for
11066 "__morestack" minimal symbol there.
11068 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11070 * symfile.c (find_sym_fns): Add call to dont_repeat.
11072 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11074 Copyright year update in most files (performed by copyright.sh).
11076 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11078 * top.c (print_gdb_version): Update copyright year in version output.
11080 For older changes see ChangeLog-2010.
11086 version-control: never