1 2011-11-15 Pedro Alves <pedro@codesourcery.com>
2 Luis Machado <lgustavo@codesourcery.com>
4 * auxv.c: Include observer.h.
5 (auxv_inferior_data_cleanup): New.
6 (invalidate_auxv_cache_inf): New.
7 (invalidate_auxv_cache): New.
8 (get_auxv_inferior_data): New.
9 (auxv_inferior_data): New static global.
10 (auxv_info): New structure.
11 (target_auxv_search): Use get_auxv_inferior_data instead of
12 target_read_alloc and don't free cached buffers.
13 (fprint_target_auxv): Likewise
14 (_initialize_auxv): Register per-inferior auxv cache and register
15 observers to invalidate auxv cache when needed.
17 2011-11-14 Doug Evans <dje@google.com>
19 Make "!" an alias for "shell".
21 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
22 adding "!" command, always add it.
23 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
24 command of length one.
26 2011-11-14 Stan Shebs <stan@codesourcery.com>
27 Kwok Cheung Yeung <kcy@codesourcery.com>
29 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
30 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
31 the minimum instruction size for fast tracepoints.
32 * target.h (struct target_ops): Add new method
33 to_get_min_fast_tracepoint_insn_len.
34 (target_get_min_fast_tracepoint_insn_len): New.
35 * target.c (update_current_target): Set up new target operation.
36 * remote.c (remote_write_bytes_aux): Fix typo.
37 (remote_get_min_fast_tracepoint_insn_len): New.
38 (init_remote_ops): Initialize new field.
40 2011-11-14 Tom Tromey <tromey@redhat.com>
42 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
43 (encode_actions): Likewise.
45 2011-11-14 Yao Qi <yao@codesourcery.com>
47 * remote.c (struct remote_state): <install_in_trace> new field.
48 (PACKET_InstallInTrace): New enum value.
49 (remote_install_in_trace_feature): Support InstallInTrace.
50 (remote_supports_install_in_trace): Likewise.
51 (remote_protocol_features): Likewise.
52 (_initialize_remote): Likewise.
53 (remote_can_download_tracepoint): New.
54 * target.h (struct target): New field
55 `to_can_download_tracepoint'.
56 (target_can_download_tracepoint): New macro.
57 * target.c (update_current_target): Update.
58 * breakpoint.h (struct bp_location): Add comment on field
60 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
62 (remove_breakpoints): Don't remove tracepoints.
63 (tracepoint_locations_match ): New.
64 (breakpoint_locations_match): Call it.
65 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
66 (download_tracepoint_locations): New.
67 (update_global_location_list): Call it.
68 * tracepoint.c (find_matching_tracepoint): Delete.
69 (find_matching_tracepoint_location): Renamed from
70 find_matching_tracepoint. Return bp_location rather than
72 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
75 2011-11-14 Yao Qi <yao@codesourcery.com>
77 * target.h (struct target): <to_download_tracepoint> Change type
78 of parameter from tracepoint to bp_location.
79 * target.c (update_current_target): Update.
80 * tracepoint.c (start_tracing): Update.
81 * remote.c (remote_download_tracepoint): Remove loop for each location
84 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
86 * i386-nat.c (i386_insert_hw_breakpoint): Call
87 i386_update_inferior_debug_regs.
88 (i386_remove_hw_breakpoint): Likewise.
90 2011-11-14 Yao Qi <yao@codesourcery.com>
92 * breakpoint.c (init_raw_breakpoint): Call
93 add_location_to_breakpoint to replace duplicated code.
94 (add_location_to_breakpoint): Adjust the breakpoint's
95 address prior to allocating a location.
97 2011-11-12 Matt Rice <ratmice@gmail.com>
99 * macrocmd.c (macro_no_macro_info): New function.
100 (macro_expand_command): Use macro_no_macro_info.
101 (macro_expand_once_command): Ditto.
102 (info_macro_command): Add argument processing,
103 move info_definitions_command here.
104 (_initialize_macrocmd): Remove info definitions command.
105 Add arguments to info macro help text.
106 * NEWS: Replace info definitions command with new info macro options.
108 2011-11-11 Keith Seitz <keiths@redhat.com>
111 * linespec.c (locate_first_half): Keep ':' if it looks
112 like it could be part of a Windows path starting with
115 2011-11-10 Pedro Alves <pedro@codesourcery.com>
117 * linux-nat.c (linux_nat_wait): Don't force waking up the event
118 loop when returning a TARGET_WAITKIND_NO_RESUMED.
120 2011-11-10 Pedro Alves <pedro@codesourcery.com>
122 * target.c (target_waitstatus_to_string): Handle
123 TARGET_WAITKIND_NO_RESUMED.
125 2011-11-10 Doug Evans <dje@google.com>
127 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
129 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
130 (map_partial_symbol_filenames): Ditto. All callers updated.
131 * psymtab.h (map_partial_symbol_filenames): Update prototype.
132 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
133 parameter need_fullname.
135 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
136 * source.c (symtab_to_fullname): Ditto.
138 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
139 * gdb-demangle.h: ... here. New file.
140 * demangle.c: #include "gdb-demangle.h".
141 (_initialize_demangler): Use initialize_file_ftype for prototype.
142 Move "set demangle" and "set asm-demangle" parameters here from utils.c
143 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
145 * utils.c: Update. #include "gdb-demangle.h".
146 * symtab.h (asm_demangle): Delete.
147 (demangle): Move declaration next to use.
148 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
149 * dwarf2read.c: #include "gdb-demangle.h".
150 * gnu-v2-abi.c: Ditto.
151 * jv-typeprint.c: Ditto.
152 * mdebugread.c: Ditto.
153 * p-typeprint.c: Ditto.
154 * stabsread.c: Ditto.
156 (asm_demangle): Delete declaration.
157 * tui/tui-stack.c: #include "gdb-demangle.h".
159 * python/py-type.c (typy_fields_items): Call check_typedef.
161 2011-11-10 Joel Brobecker <brobecker@adacore.com>
163 * findvar.c (read_frame_register_value): Read the correct bytes
164 from registers on big-endian architectures.
166 2011-11-10 Tom Tromey <tromey@redhat.com>
168 * procfs.c (load_syscalls): Make a cleanup.
169 (open_procinfo_files): fd==0 is ok.
171 2011-11-10 Joel Brobecker <brobecker@adacore.com>
173 * procfs.c (iterate_over_mappings): Call do_cleanups before
176 2011-11-09 Doug Evans <dje@google.com>
178 * gdbtypes.c (check_typedef): Document that this function can
181 2011-11-09 Tom Tromey <tromey@redhat.com>
184 * valops.c (value_full_object): Return early if real type is
185 smaller than the enclosing type.
187 2011-11-08 Yao Qi <yao@codesourcery.com>
189 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
191 2011-11-08 Meador Inge <meadori@codesourcery.com>
193 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
194 register when the frame can't be determined.
195 * arm-tdep.c (arm_analyze_prologue): Ditto.
197 2011-11-07 Stan Shebs <stan@codesourcery.com>
199 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
201 2011-11-07 Joel Brobecker <brobecker@adacore.com>
203 * infrun.c (handle_inferior_event): Minor reformatting.
205 2011-11-05 Doug Evans <dje@google.com>
207 * source.c (forget_cached_source_info_for_objfile): Move call to
208 objfile->sf->qf->forget_cached_source_info outside of
209 ALL_OBJFILE_SYMTABS loop.
210 (forget_cached_source_info): Delete unused variable `s'.
212 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
214 * i386-nat.c (dr_ref_count): Remove unused variable.
216 2011-11-05 Doug Evans <dje@google.com>
218 * main.c (captured_main): Set lim_at_start before calling
219 make_command_stats_cleanup.
221 2011-11-04 Doug Evans <dje@google.com>
223 * utils.c: #include "timeval-utils.h".
224 (cmd_stats): Rename start_time to start_cpu_time.
225 New member start_wall_time.
226 (report_command_stats): Report wall time.
227 (make_command_stats_cleanup): Record start wall time.
229 2011-11-04 Tom Tromey <tromey@redhat.com>
231 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
233 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * coff-pe-read.c: Include defs.h before bfd.h.
237 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
241 * python/python.c (python_run_simple_file): Expand tilde in path.
243 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
247 * python/py-type.c (typy_lookup_type): Do not return a type in
248 an exception handler.
250 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
251 Eli Zaretskii <eliz@gnu.org>
253 * linux-nat.c (_initialize_linux_nat): Improve help
254 for `info proc stat', `info proc status', `info proc cwd',
255 `info proc cmdline' and `info proc exe'.
257 2011-11-02 Stan Shebs <stan@codesourcery.com>
259 String collection for tracepoints.
260 * NEWS: Mention string collection.
261 * common/ax.def (tracenz): New bytecode.
262 * ax-gdb.h (trace_string_kludge): Declare.
263 * ax-gdb.c: Include valprint.h and c-lang.h.
264 (trace_string_kludge): New global.
265 (gen_traced_pop): Add string case.
266 (agent_command): Add string case.
267 * tracepoint.h (decode_agent_options): Declare.
268 * tracepoint.c: Include cli-utils.h.
269 (decode_agent_options): New function.
270 (validate_actionline): Call it.
271 (encode_actions_1): Ditto.
272 * target.h (struct target_ops): New method to_supports_string_tracing.
273 (target_supports_string_tracing): New macro.
274 * target.c (update_current_target): Add to_supports_string_tracing.
275 * remote.c (struct remote_state): New field string_tracing.
276 (remote_string_tracing_feature): New function.
277 (remote_protocol_features): New feature tracenz.
278 (remote_supports_string_tracing): New function.
279 (init_remote_ops): Set to_supports_string_tracing.
281 2011-11-02 Pedro Alves <pedro@codesourcery.com>
282 Jan Kratochvil <jan.kratochvil@redhat.com>
284 * linux-nat.c: Include cli/cli-utils.h.
285 (enum info_proc_what): New.
286 (linux_nat_info_proc_cmd): Rename to ...
287 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
288 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
289 status_f and stat_f from WHAT. Throw error on extra parameters.
290 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
291 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
292 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
293 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
294 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
295 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
296 `info proc cmdline', `info proc exe' and `info proc all' as real
297 subcommands of `info proc'.
299 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
301 * Makefile.in: (SFILES): Add skip.c.
302 (HFILES_NO_SRCDIR): Add skip.h.
303 (COMMON_OBS): Add skip.o.
304 * skip.h, skip.c: New.
305 * breakpoint.h (set_default_breakpoint): Remove.
306 (get_sal_arch): Declare.
307 * breakpoint.c: Remove default_breakpoint_valid,
308 default_breakpoint_address, default_breakpoint_symtab,
309 default_breakpoint_line, default_breakpoint_pspace variables.
310 (get_sal_arch): Make public.
311 (set_default_breakpoint): Remove.
312 (parse_breakpoint_sals, create_breakpoint, clear_command,
313 decode_line_spec_1): Remove uses of default_breakpoint variables;
314 replaced with function calls into stack.c.
315 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
316 * cli/cli-cmds.c: Add skiplist.
317 (init_cmd_lists): Initialize skiplist.
318 (init_cli_cmds): Fix comment (classes of commands appear in
320 * infrun.c (handle_inferior_event): Add check that we don't step into
321 a function whose pc is marked for skip.
322 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
323 last_displayed_addr, last_displayed_symtab, last_displayed_line
325 (set_last_displayed_sal): New static function.
326 (print_frame_info): Switch call to set_default_breakpoint to call to
327 set_last_displayed_sal.
328 (clear_last_displayed_sal, last_displayed_sal_is_valid,
329 get_last_displayed_pspace, get_last_displayed_addr,
330 get_last_displayed_symtab, get_last_displayed_line,
331 get_last_displayed_sal): New public functions.
332 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
333 get_last_displayed_pspace, get_last_displayed_addr,
334 get_last_displayed_symtab, get_last_displayed_line,
335 get_last_displayed_sal): Declare.
337 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
339 * MAINTAINERS (Write After Approval): Add myself to the list.
341 2011-10-29 Yao Qi <yao@codesourcery.com>
343 * infcmd.c (disconnect_command): Call disconnect_tracing.
345 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
348 * symtab.c (skip_prologue_sal): Code reformatting.
350 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
353 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
354 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
357 2011-10-28 Pedro Alves <pedro@codesourcery.com>
359 * linux-nat.c (linux_nat_filter_event): Remove `options'
360 parameter, and dead code that used it. If we're handling a
361 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
362 in our lwp list, re-add it.
363 (check_zombie_leaders): New.
364 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
365 wait for children with WNOHANG, and always wait for all children.
366 Don't check for no resumed children upfront. Simplify wait loop.
367 Check for zombie thread group leaders after handling all wait
368 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
369 unwaited-for children left.
370 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
371 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
372 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
373 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
375 2011-10-28 Sterling Augustine <saugustine@google.com>
377 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
378 * symtab.c (free_completion_list): New function.
379 (do_free_completion_list): Likewise.
380 (default_make_symbol_completion_list_break_on): New variable
381 back_to. Call make_cleanup and discard_cleanups.
382 (make_source_files_completion_list): Likewise.
384 2011-10-28 Paul Koning <paul_koning@dell.com>
386 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
387 * NEWS: Mention deep_items.
389 2011-10-28 Alen Skondro <askondro@gmail.com>
391 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
394 2011-10-27 Meador Inge <meadori@codesourcery.com>
396 * MAINTAINERS (Write After Approval): Add myself to the list.
398 2011-10-27 Joel Brobecker <brobecker@adacore.com>
400 * value.h (read_frame_register_value): Add declaration.
401 * findvar.c (read_frame_register_value): New function.
402 (value_from_register): Use read_frame_register_value
403 instead of get_frame_register_value + value_contents_copy
404 to get value contents.
406 2011-10-27 Doug Evans <dje@google.com>
408 * cli/cli-cmds.c (source_script_with_search): Pass full path to
409 source_script_from_stream if it may have been found on the search path.
410 * python/py-auto-load.c (source_section_scripts): Pass full path to
411 source_python_script_for_objfile.
412 * python/python.c (source_python_script): Delete stream parameter.
414 (source_python_script_for_objfile): Ditto.
415 * python/python-internal.h (source_python_script_for_objfile): Update.
416 * python/python.h (source_python_script): Update.
418 2011-10-27 Tom Tromey <tromey@redhat.com>
420 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
421 (ada_sals_for_line): Remove declarations.
423 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
425 Move unwind reasons to an external .def file
426 * frame.c (frame_stop_reason_string): Rewrite using
427 unwind_stop_reasons.def.
428 * frame.h (enum unwind_stop_reason): Likewise.
429 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
430 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
431 constants for bound-checking.
432 * unwind_stop_reasons.def: New file.
433 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
434 instead of a distinct value.
436 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
440 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
441 (convert_values_to_python): Return on Python tuple allocation
442 failure. Return NULL on value conversion error.
444 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
446 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
447 (bppy_set_task): Ditto.
448 (bppy_delete_breakpoint): Ditto.
449 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
450 (gdbpy_lookup_global_symbol): Ditto.
451 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
452 * python/py-frame.c (frapy_is_valid): Ditto.
453 (frame_info_to_frame_object): Ditto.
454 * python/py-type.c (typy_lookup_type): Ditto.
455 (typy_getitem): Ditto.
456 (typy_has_key): Ditto.
457 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
459 2011-10-26 Joel Brobecker <brobecker@adacore.com>
461 * gdbarch.h: Regenerate.
463 2011-10-26 Meador Inge <meadori@codesourcery.com>
465 * gdbarch.sh (function_list): Use 'pstring' when printing
467 * gdbarch.c: Regenerate.
469 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
471 * regcache.c (registers_changed_ptid): Invalidate thread architecture
472 and frame caches if PTID refers to all threads of a process.
474 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
476 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
477 to create_breakpoint.
479 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
481 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
482 (ppc_sysv_abi_push_dummy_call): Use it.
483 (do_ppc_sysv_return_value): Likewise.
484 (ppc64_sysv_abi_push_dummy_call): Likewise.
485 (ppc64_sysv_abi_return_value): Likewise.
487 2011-10-26 Paul Koning <paul_koning@dell.com>
489 * python/lib/gdb/types.py (deepitems): New function.
491 2011-10-25 Paul Koning <paul_koning@dell.com>
495 * python/py-value.c (value_to_value_object): Remove fetching of
496 the value if it was lazy.
497 (valpy_get_is_lazy): New function.
498 (valpy_fetch_lazy): New function.
500 2011-10-24 Joel Brobecker <brobecker@adacore.com>
502 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
503 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
505 2011-10-24 Pedro Alves <pedro@codesourcery.com>
507 * linux-nat.c (linux_handle_extended_wait): When handling a clone
508 event, in non-stop, if not stopping, make sure the new lwp has
509 last_resume_kind set to resume_continue. Assert that when we're
510 resuming the new lwp, its last_resume_kind is resume_continue.
512 2011-10-24 Pedro Alves <pedro@codesourcery.com>
514 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
515 already set when marking the event thread as not executing in
518 2011-10-24 Pedro Alves <pedro@codesourcery.com>
520 * infrun.c (handle_inferior_event): Add debug output for
521 TARGET_WAITKIND_NO_HISTORY.
523 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
525 * NEWS: Move set/show extended-prompt to "New Options". Expand
526 description. Fix typos.
528 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
532 * python/py-param.c (call_doc_function): Correctly deference on
535 2011-10-21 Joel Brobecker <brobecker@adacore.com>
537 * ada-tasks.c (print_ada_task_info): Fix computation of
538 number of tasks displayed in command output.
540 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
541 Ulrich Weigand <uweigand@de.ibm.com>
543 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
544 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
545 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
546 gdbarch_pc_regnum and frame_unwind_register_unsigned by
549 2011-10-20 Cary Coutant <ccoutant@google.com>
551 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
553 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
554 flag. Adjust all callers.
555 (process_psymtab_comp_unit): Remove adjustment for type section.
557 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
559 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
560 arguments by adding OBJFILE. Instead of getting objfile from
561 symbol's symtab, use new argument OBJFILE.
562 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
563 arguments by adding OBJFILE.
564 * gdb/dwarf2read.c (new_symbol_full): Change call to
565 cp_scan_for_anonymous_namespaces to match new signature.
566 * gdb/stabsread.c (define_symbol): Change call to
567 cp_scan_for_anonymous_namespaces to match new signature.
569 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
574 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
576 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
577 leak. Delete unused variables.
579 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
583 * python/py-frame.c (frapy_read_var): Use const struct *block.
584 * python/py-type.c (typy_lookup_typename): Likewise.
585 (typy_lookup_type): Likewise.
586 (typy_legacy_template_argument): Likewise.
587 (typy_template_argument): Likewise.
588 (gdbpy_lookup_type): Likewise.
589 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
590 * python/py-block.c (blpy_block_object): Likewise.
591 (blpy_iter): Likewise.
592 (blpy_get_start): Likewise.
593 (blpy_get_end): Likewise.
594 (blpy_get_function): Likewise.
595 (blpy_get_superblock): Likewise.
596 (set_block): Likewise.
597 (block_to_block_object): Likewise.
598 (block_object_to_block): Likewise.
599 (blpy_is_valid): Likewise.
600 (blpy_get_global_block): New function.
601 (blpy_get_static_block): New function.
602 (blpy_is_global): New function.
603 (blpy_is_static): New function.
604 * blockframe.c (block_innermost_frame): Likewise.
605 * valops.c (value_of_variable): Likewise.
606 * frame.h: Update prototypes.
607 * python/python-internal.h: Likewise.
610 2011-10-19 Cary Coutant <ccoutant@google.com>
612 * dwarf2read.c (create_debug_types_hash_table): Fix size of
615 2011-10-19 Cary Coutant <ccoutant@google.com>
617 * dwarf2read.c (peek_abbrev_code): New function.
618 (dw2_get_file_names): Check for dummy compilation units.
619 (create_debug_types_hash_table): Likewise.
620 (process_psymtab_comp_unit): Likewise.
621 (load_partial_comp_unit): Likewise.
622 (load_full_comp_unit): Likewise.
624 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
626 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
627 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
628 pt_phdr if PT_PHDR was found.
630 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
632 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
633 type or "<unnamed type"> when there is no name assigned.
634 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
635 avoid a sigint when no name is assigned.
637 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
640 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
641 * dwarf2expr.c (ctx_no_read_reg): New function.
642 * dwarf2expr.h (ctx_no_read_reg): New declaration.
643 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
644 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
645 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
647 2011-10-16 Doug Evans <dje@google.com>
649 * NEWS: Document python gdb.printing.register_pretty_printer's new
652 2011-10-14 Keith Seitz <keiths@redhat.com>
655 * eval.c (evaluate_subexp_standard): Do not construct
656 an array of types; pass the value array directly to
658 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
659 (rank_function): Take an array of values instead of types.
660 (rank_one_type): Add struct value * parameter.
661 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
662 (rank_function): For each argument, pass the argument's
663 value to rank_one_type.
664 (rank_one_type): Add VALUE parameter.
665 If the parameter type is a pointer and the argument type
666 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
668 Update all calls to rank_one_type, passing NULL for new
670 * valarith.c (value_user_defined_cpp_op): Do not construct
671 an array of types; pass the value array directly to
673 * valops.c (find_overload_method_list): Take an array of
674 values instead of types.
675 Save the type of OBJP for later use.
676 Update calls to find_oload_champ, and find_oload_champ_namespace.
677 (find_oload_champ_namespace): Take an array of values instead
679 (find_oload_champ_namespace_loop): Likewise.
680 (find_oload_champ): Likewise.
681 (classify_oload_match): Inspect all arguments
682 until INCOMPATIBLE is found. Return the worst badness found
684 (compare_parameters): Update call to rank_one_type.
685 * value.h (find_overload_match): Take an array of values instead
688 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
690 Drop lazy lm_info reading.
691 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
692 l_addr_inferior, l_ld, l_next, l_prev and l_name.
693 (lm_info_read): New function.
694 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
695 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
696 lm_dynamic_from_link_map.
697 (lm_next, lm_prev, lm_name): Remove.
698 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
699 initialization incl. read_memory. No longer use lm_name.
700 (svr4_free_so): Drop lm_info->lm freeing.
701 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
702 explicit lm_addr and lm initialization.
703 (svr4_read_so_list): Use lm_info_read, drop the initailization of
704 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
707 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
708 Paul Pluzhnikov <ppluzhnikov@google.com>
710 * defs.h (struct so_list): New forward declaration.
711 (make_cleanup_free_so): New declaration.
712 * solib-svr4.c (ignore_first_link_map_entry): Remove.
713 (svr4_free_so): Move the function here from downwards. Handle NULL
715 (svr4_free_library_list): New.
716 (svr4_read_so_list): New, moved here code from svr4_current_sos.
717 Use more cleanups. Use new parameter ignore_first instead of
718 ignore_first_link_map_entry.
719 (svr4_current_sos): New variable ignore_first, initialize it. New
720 variable back_to, use it for svr4_free_library_list protection.
721 (svr4_free_so): Remove - move upwards.
722 * utils.c: Include solist.h.
723 (do_free_so, make_cleanup_free_so): New functions.
725 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
727 Fix internal error regression.
728 * value.c (value_primitive_field): Handle value_optimized_out. Move
729 packed bitfields comment.
731 2011-10-13 Tom Tromey <tromey@redhat.com>
733 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
736 2011-10-13 Tom Tromey <tromey@redhat.com>
738 * python/py-type.c (typy_has_key): Make 'field' const.
740 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
742 * remote.c (remote_save_trace_data): Invert comparison.
744 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
746 * tracepoint.c (trace_save_command): Use filename instead of
749 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
751 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
754 2011-10-13 Yao Qi <yao@codesourcery.com>
757 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
758 whether insn is a 32-bit Thumb-2 instruction.
759 (thumb_in_function_epilogue_p): Likewise.
760 (thumb_get_next_pc_raw): Likewise.
761 (arm_breakpoint_from_pc): Likewise.
763 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
765 Fix empty DWARF expressions DATA vs. SIZE conditionals.
766 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
767 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
768 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
769 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
771 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
773 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
774 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
775 clear DATA on zero SIZE.
777 2011-10-12 Doug Evans <dje@google.com>
779 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
780 header->first_die_offset here. All callers updated.
782 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
784 Fix compatibility with texinfo versions older than 4.12.
785 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
786 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
787 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
788 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
789 * configure: Regenerate.
790 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
791 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
792 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
794 2011-10-12 Gary Benson <gbenson@redhat.com>
796 * breakpoint.h (pc_at_non_inline_function): Declare.
797 * breakpoint.c (is_non_inline_function,
798 pc_at_non_inline_function): New functions.
799 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
800 if the stop is at a location where functions cannot be inlined.
802 2011-10-12 Pedro Alves <pedro@codesourcery.com>
804 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
805 the core wanted them stopped, or if they now have a pending event
807 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
808 down to stop_and_resume_callback.
809 (linux_nat_wait_1): Always clear `options' when retrying. Handle
810 having new pending events after calling linux_nat_filter_event.
812 2011-10-11 Sterling Augustine <saugustine@google.com>
814 * dwarf2read.c: Undo inadvertent changes in previous commit.
816 2011-10-11 Sterling Augustine <saugustine@google.com>
818 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
821 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
823 * symfile.c (separate_debug_file_exists): Fix condition.
825 2011-10-11 David S. Miller <davem@davemloft.net>
827 * regcache.c (regcache_restore): Do not write unavailable regs, mark
829 * regcache.h (regcache_restore): Remove declaration.
831 * gdbarch.sh: New field 'long_long_align_bit'.
832 * gdbarch.c, gdbarch.h: Regenerate.
833 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
834 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
836 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
839 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
840 Support @entry in input expressions.
841 * c-exp.y (ENTRY, unknown_cpp_name): New.
842 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
843 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
844 (variable: name_not_typename '@' ENTRY, name: ENTRY)
845 (name_not_typename: ENTRY): New.
846 (yylex): Recognize ENTRY.
848 Reimplement @entry in input expressions.
849 * c-exp.y (ENTRY): New.
850 (variable: name_not_typename ENTRY): New.
851 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
853 2011-10-11 Pedro Alves <pedro@codesourcery.com>
855 * linux-nat.c (linux_handle_extended_wait): Always dump both the
856 parent and child's pids as soon as we detect a clone event.
857 Adjust another debug message.
859 2011-10-11 Pedro Alves <pedro@codesourcery.com>
861 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
862 not zombie instead of reading the whole file.
864 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
866 Fix separate debuginfo warning with "remote:" access.
867 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
868 * symfile.c (get_file_crc): New function with the code moved from ...
869 (separate_debug_file_exists): ... this function, specifically variables
870 buffer and count. New variable verified_as_different, set it. Remove
871 file_crc initialization. Verify also if both files are not the same
874 2011-10-11 Yao Qi <yao@codesourcery.com>
876 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
879 2011-10-10 Doug Evans <dje@google.com>
881 * linux-thread-db.c (thread_db_new_objfile): Only try to load
882 libthread_db when we load libpthread or the main symbol file.
883 (thread_db_inferior_created): New function.
884 (_initialize_thread_db): Attach inferior_created observer.
885 * linux-nat.c (linux_child_post_attach): Remove call to
887 (linux_child_post_startup_inferior): Ditto.
888 * objfiles.h (OBJF_MAINLINE): Define.
889 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
890 allocate_objfile when appropriate.
892 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
895 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
896 Remove unused variables.
897 (get_linux_version): Remove function.
898 (_initialize_arm_linux_nat): Do not call it.
900 2011-10-10 Pedro Alves <pedro@codesourcery.com>
902 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
903 new clone lwp if the core asked it to stop. Don't pass on
904 unexpected signals to the new clone; leave them pending instead.
906 2011-10-10 Pedro Alves <pedro@codesourcery.com>
908 * linux-nat.c (resume_lwp): Remove redundant debug output.
910 2011-10-10 Pedro Alves <pedro@codesourcery.com>
912 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
913 last_resume_kind before clearing it, and use the copy instead to
914 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
915 resume_clear_callback in the non-stop path too.
917 2011-10-09 Yao Qi <yao@codesourcery.com>
919 * valprint.c (value_check_printable): Add one parameter OPTIONS.
920 Honor OPTIONS and VAL's type.
921 (common_val_print, value_print): Update to pass one more parameter.
923 2011-10-09 Doug Evans <dje@google.com>
925 Add new "alias" command.
926 * NEWS: Mention new command.
927 * command.h (valid_user_defined_cmd_name_p): Declare.
928 * defs.h (make_cleanup_dyn_string_delete): Declare.
929 * utils.c: #include "dyn-string.h".
930 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
931 * cli/cli-cmds.c: #include "dyn-string.h".
932 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
933 (init_cli_cmds): Add new command.
934 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
936 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
938 Fix compatibility with older GCCs.
939 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
940 * stack.c (read_frame_arg): Initialize val_deref.
942 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
944 Entry values NEWS entries, DWARF disassembly support.
945 * NEWS: New entry values entry.
946 (set print entry-values, show print entry-values)
947 (set debug entry-values, show debug entry-values): New entries.
948 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
949 indent. Remove variable start. Move header printing out. Respect
950 INDENT. Support DW_OP_GNU_entry_value.
951 (locexpr_describe_location_1): Move the header printing here, extend
952 the disassemble_dwarf_expression passed parameters.
954 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
956 Display @entry parameter values even for references.
957 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
958 coerce_ref_if_computed.
959 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
960 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
961 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
962 existing push_dwarf_reg_entry_value call. Add new detection calling
963 dwarf_block_to_dwarf_reg_deref. Update the error message.
964 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
966 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
967 parameter deref_size, describe it in the comment.
968 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
969 (dwarf_block_to_dwarf_reg_deref): New declaration.
970 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
971 deref_size, describe it in the function comment. New variables
972 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
973 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
974 describe it in the function comment. Fetch the alternative block
975 accoring to DEREF_SIZE.
976 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
977 (entry_data_value_free_closure, entry_data_value_funcs): New.
978 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
979 outer_val, target_val, val and addr. Try to fetch and create also
980 referenced value content.
981 (pieced_value_funcs): NULL value for coerce_ref.
982 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
983 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
984 coerce_ref_if_computed.
985 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
986 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
987 * stack.c (read_frame_arg): Compare also dereferenced values.
988 * value.c (value_computed_funcs): Make the parameter v const, use
989 value_lval_const for it.
990 (value_lval_const, coerce_ref_if_computed): New function.
991 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
992 * value.h (struct lval_funcs): New field coerce_ref.
993 (value_computed_funcs): Make the parameter v const.
994 (value_lval_const, coerce_ref_if_computed): New declarations.
996 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
998 Support @entry in input expressions.
999 * c-exp.y (ENTRY, unknown_cpp_name): New.
1000 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1001 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1002 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1003 (name_not_typename: ENTRY): New.
1004 (yylex): Recognize ENTRY.
1005 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1006 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1008 * parse.c (operator_length_standard): Likewise.
1009 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1011 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1013 Display referenced values in backtraces.
1014 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1015 * stack.c (print_frame_arg): Likewise.
1017 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1019 Make some lval_funcs methods to default on NULL.
1020 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1022 (value_assign): Check if lval_computed write method is NULL.
1023 * value.h (struct lval_funcs): Comment NULL values for read and write
1026 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1028 Display @entry parameter values (without references).
1029 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1031 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1033 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1035 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1036 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1038 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1039 (loclist_read_variable_at_entry): New function.
1040 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1041 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1042 DW_AT_location, call dwarf_block_to_sp_offset for it.
1043 * frame.h (print_entry_values_no, print_entry_values_only)
1044 (print_entry_values_preferred, print_entry_values_if_needed)
1045 (print_entry_values_both, print_entry_values_compact)
1046 (print_entry_values_default, print_entry_values): New declarations.
1047 (struct frame_arg): New field entry_kind.
1048 (read_frame_arg): New parameter entryargp.
1049 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1050 arg->entry_kind. Optionally print the `@entry' suffix.
1051 (list_args_or_locals): New variable entryarg, initialize it.
1052 Initialize also entry_kind of arg and entryarg. Conditionalize
1053 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1054 xfree for entryarg.error.
1055 * stack.c (print_entry_values_no, print_entry_values_only)
1056 (print_entry_values_preferred, print_entry_values_if_needed)
1057 (print_entry_values_both, print_entry_values_compact)
1058 (print_entry_values_default, print_entry_values_choices)
1059 (print_entry_values): New variables.
1060 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1061 print the `@entry' suffix, possibly in combination for
1062 print_entry_values_compact.
1063 (read_frame_arg): New parameter entryargp, new variables entryval,
1064 entryval_error and val_equal. Read in also entryargp, respect
1065 print_entry_values, compare the values using val_equal, fill in also
1066 argp->entry_kind (together with entryargp->entry_kind).
1067 (print_frame_args): New variable entryarg, initialize it.
1068 Conditionalize print_frame_arg for arg, add print_frame_arg for
1069 entryarg. Call xfree for entryarg.error.
1070 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1071 * symtab.h (struct symbol_computed_ops): New field
1072 read_variable_at_entry.
1074 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1077 * frame.h (struct frame_arg): New definition.
1078 (read_frame_arg): New declaration.
1079 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1080 (list_args_or_locals): ... the code here. New variable arg, call
1081 read_frame_arg and list_arg_or_local with it. Unify the
1082 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1084 * stack.c (print_frame_arg): New functiom from the code of
1086 (read_frame_arg): New function.
1087 (print_frame_args): Remove variable val. New variable arg, call
1088 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1090 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1092 Protect entry values against self tail calls.
1093 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1094 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1096 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1098 Recognize virtual tail call frames.
1099 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1100 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1101 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1102 * dwarf2-frame-tailcall.c: New file.
1103 * dwarf2-frame-tailcall.h: New file.
1104 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1105 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1106 REGS.PREV only after CIE execution.
1107 (struct dwarf2_frame_cache): New field tailcall_cache.
1108 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1109 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1110 parts, try to find entry_cfa_sp_offset. Call
1111 dwarf2_tailcall_sniffer_first.
1112 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1114 (dwarf2_frame_dealloc_cache): New function.
1115 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1116 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1117 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1118 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1119 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1120 * dwarf2loc.c (func_addr_to_tail_call_list)
1121 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1122 (call_site_find_chain_1, call_site_find_chain): New.
1123 * dwarf2loc.h (struct call_site_chain): New.
1124 (call_site_find_chain): New declaration.
1125 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1126 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1127 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1128 * stack.c (frame_info): Support also TAILCALL_FRAME.
1130 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1132 Tail call sites reader implementation.
1133 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1134 fill in TYPE_TAIL_CALL_LIST.
1135 * gdbtypes.h (struct func_type): New field tail_call_list.
1136 (struct call_site): New field tail_call_next.
1137 (TYPE_TAIL_CALL_LIST): New definition.
1139 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1141 Implement basic support for DW_TAG_GNU_call_site.
1142 * block.c: Include gdbtypes.h and exceptions.h.
1143 (call_site_for_pc): New function.
1144 * block.h (call_site_for_pc): New declaration.
1145 * defs.h: Include hashtab.h.
1146 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1148 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1149 ctx_no_push_dwarf_reg_entry_value.
1150 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1151 (dwarf_block_to_dwarf_reg): New function.
1152 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1153 (ctx_no_push_dwarf_reg_entry_value): New function.
1154 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1155 push_dwarf_reg_entry_value.
1156 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1158 * dwarf2loc.c: Include gdbcmd.h.
1159 (dwarf_expr_ctx_funcs): New forward declaration.
1160 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1161 (dwarf_expr_reg_to_entry_parameter)
1162 (dwarf_expr_push_dwarf_reg_entry_value): New.
1163 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1164 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1165 (needs_dwarf_reg_entry_value): New function.
1166 (needs_frame_ctx_funcs): Install it.
1167 (_initialize_dwarf2loc): New function.
1168 * dwarf2loc.h (entry_values_debug): New declaration.
1169 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1170 (read_call_site_scope): New forward declaration.
1171 (process_full_comp_unit): Copy call_site_htab.
1172 (process_die): Support DW_TAG_GNU_call_site.
1173 (read_call_site_scope): New function.
1174 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1175 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1176 (cleanup_htab): Delete.
1177 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1178 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1179 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1180 FIELD_LOC_KIND_DWARF_BLOCK.
1181 * gdbtypes.h (enum field_loc_kind): New entry
1182 FIELD_LOC_KIND_DWARF_BLOCK.
1183 (struct main_type): New loc entry dwarf_block.
1184 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1185 (TYPE_FIELD_DWARF_BLOCK): New.
1186 * python/py-type.c: Include dwarf2loc.h.
1187 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1188 internal_error call on unknown FIELD_LOC_KIND.
1189 * symtab.h (struct symtab): New field call_site_htab.
1190 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1191 (core_addr_hash, core_addr_eq): New functions.
1193 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1196 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1197 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1198 calling_convention under func_stuff there.
1199 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1200 (init_type) <TYPE_CODE_FUNC>: Likewise.
1201 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1202 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1203 * gdbtypes.h (enum type_specific_kind): Change
1204 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1205 (struct main_type) <type_specific>: Change calling_convention to
1206 func_stuff. Move calling_convention to ...
1207 (struct func_type): ... this new struct.
1208 (INIT_FUNC_SPECIFIC): New #define.
1209 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1211 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1213 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1214 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1215 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1216 ctx->ref_addr_size. Handle its invalid value.
1217 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1219 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1220 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1221 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1222 (dwarf2_per_cu_ref_addr_size): New function.
1224 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1227 * dwarf2read.c (per_cu_header_read_in): New function.
1228 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1229 variables cu_header_local and cu_headerp.
1231 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 Fix initial language detection with -readnow.
1234 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1235 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1236 searches only for global symbols.
1238 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1240 Fix printed anonymous struct name.
1241 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1242 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1243 (anonymous_struct_prefix): New function.
1244 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1245 (dwarf2_name): Strip for anonymous structs any prefixes.
1247 2011-10-07 Doug Evans <dje@google.com>
1249 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1252 * python/lib/gdb/printing.py: Whitespace cleanup.
1254 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1257 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1259 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1260 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1261 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1262 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1263 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1264 (arm_linux_remove_watchpoint): Adjust.
1265 * i386-linux-nat.c (i386_linux_dr_set_control)
1266 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1267 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1268 (ia64_linux_remove_watchpoint): Adjust.
1269 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1270 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1271 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1272 (ppc_linux_insert_mask_watchpoint)
1273 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1274 (ppc_linux_remove_watchpoint): Adjust.
1275 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1278 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1280 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1281 (clear_win32_environment): New function for Cygwin to clear out
1283 (windows_create_inferior): Prepare new environment from in_env
1286 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1289 * python/py-value.c (valpy_call): Check that arguments are
1291 (is_intlike): Remove call to CHECK_TYPEDEF.
1292 (valpy_nonzero): Catch GDB exceptions.
1293 (valpy_absolute): Ditto.
1294 (valpy_lazy_string): Ditto.
1295 (valpy_call): Ditto.
1296 (valpy_get_is_optimized_out): Ditto.
1297 (valpy_long): Ditto.
1298 (valpy_float): Ditto.
1299 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1300 (valpy_richcompare): Ditto.
1302 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1304 * inferior.h (disable_randomization): Declare.
1305 * infrun.c (disable_randomization): New global variable.
1306 (show_disable_randomization): New function.
1307 (set_disable_randomization): Likewise.
1308 (_initialize_infrun): Install set/show disable-randomization
1310 * linux-nat.c (disable_randomization): Remove.
1311 (show_disable_randomization): Likewise.
1312 (set_disable_randomization): Likewise.
1313 (_initialize_linux_nat): No longer install set/show
1314 disable-randomization commands here.
1315 (linux_nat_supports_disable_randomization): New function.
1316 (linux_nat_add_target): Install it.
1317 * remote.c (PACKET_QDisableRandomization): New enum value.
1318 (remote_protocol_packets): Support QDisableRandomization.
1319 (_initialize_remote): Likewise.
1320 (remote_supports_disable_randomization): New function.
1321 (init_remote_ops): Install it.
1322 (extended_remote_supports_disable_randomization): New function.
1323 (init_extended_remote_ops): Install it.
1324 (extended_remote_disable_randomization): New function.
1325 (extended_remote_create_inferior_1): Call it.
1326 * target.h (struct target_ops): Add to_supports_disable_randomization.
1327 (target_supports_disable_randomization): Add prototype.
1328 * target.c (target_supports_disable_randomization): New function.
1329 (find_default_supports_disable_randomization): Likewise.
1330 (init_dummy_target): Install it.
1332 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1334 Allow Python notification of new object-file loadings.
1335 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1336 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1337 Add build rule for this file.
1338 * python/py-event.h (emit_new_objfile_event): New prototype.
1339 (newobjfile): New Python event emitter.
1340 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1341 Python event registry.
1342 * python/py-inferior.c: Include objfiles.h
1343 (python_new_objfile): New function.
1344 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1346 * python/py-newobjfileevent.c: New file.
1347 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1349 * python/python.c (_initialize_python): Add
1350 gdbpy_initialize_new_objfile_event call.
1351 * NEWS: Add item for new Python event "gdb.newobjfile"
1353 2011-10-05 Tristan Gingold <gingold@adacore.com>
1355 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1356 Extract the ravenscar task name from the symbol for the atcb.
1358 2011-10-04 Paul Koning <paul_koning@dell.com>
1360 * python/py-type.c (typy_make_iter): Add forward declaration.
1361 (typy_fields_items): Use the gdb.Type iterator.
1363 2011-10-04 Paul Koning <paul_koning@dell.com>
1365 * NEWS: Add entry for Python gdb.Type mapping methods.
1367 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1369 PR python/12691: Add the inferior to Python exited event
1370 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1372 * python/py-event.h (emit_exited_event): Likewise
1373 * python/-inferior.c (python_inferior_exit): Likewise
1375 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1377 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1378 in output of -ada-task-info GDB/MI command.
1380 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1382 * ada-lang.h (struct inferior): Declare.
1383 (print_ada_task_info): Add declaration.
1384 * ada-tasks.c (print_ada_task_info): Make non-static.
1385 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1386 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1387 * mi/mi-main.c: #include "ada-lang.h".
1388 (mi_cmd_list_features): Add "ada-task-info" to the list
1389 of supported features.
1390 (mi_cmd_ada_task_info): New function.
1392 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1394 * python/python.c (python_run_simple_file): New function.
1395 (source_python_script, source_python_script_for_objfile):
1396 Replace call to PyRun_SimpleFile by call to
1397 python_run_simple_file.
1399 2011-10-03 Paul Koning <paul_koning@dell.com>
1401 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1402 (value_to_value_object): Fetch value if it was lazy.
1404 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1408 Rearrange the code for it.
1410 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1412 * breakpoint.c (bkpt_print_recreate): Add call to
1413 print_recreate_thread.
1415 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1417 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1418 PTRACE_GETFDPIC_INTERP): Define.
1420 2011-09-28 Yao Qi <yao@codesourcery.com>
1422 * symfile.c (add_symbol_file_command): Update message on usage.
1424 2011-09-28 Paul Koning <paul_koning@dell.com>
1426 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1427 (typy_length, typy_get, typy_has_key, typy_make_iter)
1428 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1429 (typy_iterator_iter, typy_iterator_iternext)
1430 (typy_iterator_dealloc): New functions to implement standard
1431 Python mapping methods on gdb.Type object.
1432 (gdb.TypeIterator): New Python type.
1433 * python/python-internal.h (gdbpy_iter_kind): New enum.
1435 2011-09-28 David S. Miller <davem@davemloft.net>
1437 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1438 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1439 * sparc-tdep.c (sparc_complex_floating_p): New function.
1440 (sparc32_store_arguments): Handle complex floats.
1441 (sparc32_extract_return_value): Likewise.
1442 (sparc32_store_return_value): Likewise.
1443 (sparc32_stabs_argument_has_addr): Likewise.
1444 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1445 (sparc64_store_floating_fields): Handle complex floats.
1446 (sparc64_store_arguments): Likewise.
1447 (sparc64_store_return_value): Likewise.
1449 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1451 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1452 before the change on 2006-12-09.
1453 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1454 generates the environment block for CreateProcessA, modulo the
1455 Cygwin-specific parts that are not needed here.
1457 2011-09-27 Tristan Gingold <gingold@adacore.com>
1459 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1460 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1461 (darwin_solib_get_all_image_info_addr_at_init): New function.
1462 (darwin_solib_read_all_image_info_addr): Likewise.
1463 (darwin_solib_create_inferior_hook): Use the above two functions.
1464 * darwin-nat.c (darwin_execvp): Renames retval to res.
1465 (darwin_read_write_inferior): Update comment.
1466 (darwin_read_dyld_info): New function.
1467 (darwin_xfer_partial): Handle DYLD_INFO.
1469 2011-09-27 Stan Shebs <stan@codesourcery.com>
1471 Add return address collection for tracepoints.
1472 * tracepoint.c (encode_actions_1): Add case for $_ret.
1473 (validate_actionline): Check for $_ret.
1474 (trace_dump_actions): Ditto.
1475 * ax-gdb.h (gen_trace_for_return_address): Declare.
1476 * ax-gdb.c: Include arch-utils.h.
1477 (gen_trace_for_return_address): New function.
1478 (agent_command): Add return address special case.
1479 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1480 (amd64_gen_return_address): New function.
1481 (amd64_init_abi): Call it.
1482 * i386-tdep.c: Include ax.h and ax-gdb.h.
1483 (i386_gen_return_address): New function.
1484 (i386_init_abi): Call it.
1485 * arch-utils.h (default_gen_return_address): Declare.
1486 * arch-utils.c (default_gen_return_address): New function.
1487 * gdbarch.sh (gen_return_address): New method.
1488 * gdbarch.h, gdbarch.c: Regenerate.
1490 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1493 * i386-tdep.c (i386_frame_align): New.
1494 (i386_gdbarch_init): Use i386_frame_align.
1496 2011-09-23 Yao Qi <yao@codesourcery.com>
1498 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1501 2011-09-22 Tristan Gingold <gingold@adacore.com>
1503 * fork-child.c (fork_inferior): Add exec_fun parameter.
1504 Call exec_fun or execvp.
1505 * inferior.h: Adjust prototype.
1506 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1507 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1508 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1509 * procfs.c (procfs_create_inferior): Ditto.
1510 * darwin-nat.c (darwin_execvp): New function.
1511 (darwin_create_inferior): Use it.
1513 2011-09-22 Yao Qi <yao@codesourcery.com>
1515 * infrun.c (context_switch): Print debug message when switching to
1518 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1520 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1521 complex and vector types.
1522 (s390_return_value_convention): Likewise.
1524 (s390_value_from_register): Call check_typedef.
1525 (extend_simple_arg): Likewise.
1526 (alignment_of): Likewise.
1527 (s390_push_dummy_call): Likewise.
1528 (s390_return_value): Likewise.
1530 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1532 * event-top.c (async_disconnect): If an exception is thrown from
1533 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1535 * top.c (quit_cover): Return void and take no arguments.
1536 * top.h (quit_cover): Update prototype.
1538 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1540 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1541 current_uiout, not uiout.
1543 2011-09-19 Doug Evans <dje@google.com>
1545 * python/py-auto-load.c (source_section_scripts): Fix file
1547 * python/python.c (source_python_script_for_objfile): Tweak comments.
1549 2011-09-18 Yao Qi <yao@codesourcery.com>
1550 Ulrich Weigand <ulrich.weigand@linaro.org>
1552 Support displaced stepping for Thumb 16-bit insns.
1553 * arm-tdep.c (THUMB_NOP) Define.
1554 (thumb_copy_unmodified_16bit): New.
1555 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1556 (thumb_copy_alu_reg): New.
1557 (arm_copy_svc): Move some common code to ...
1558 (install_svc): ... here. New.
1559 (thumb_copy_svc): New.
1560 (install_pc_relative): New.
1561 (thumb_copy_pc_relative_16bit): New.
1562 (thumb_decode_pc_relative_16bit): New.
1563 (thumb_copy_16bit_ldr_literal): New.
1564 (thumb_copy_cbnz_cbz): New.
1565 (cleanup_pop_pc_16bit_all): New.
1566 (thumb_copy_pop_pc_16bit): New.
1567 (thumb_process_displaced_16bit_insn): New.
1568 (thumb_process_displaced_32bit_insn): New.
1569 (thumb_process_displaced_insn): process thumb instruction.
1571 Support displaced stepping for Thumb 32-bit insns.
1572 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1573 (thumb2_copy_preload): New.
1574 (thumb2_copy_copro_load_store): New.
1575 (thumb2_copy_b_bl_blx): New.
1576 (thumb2_copy_alu_imm): New.
1577 (thumb2_copy_load_reg_imm): New.
1578 (thumb2_copy_load_literal): New
1579 (thumb2_copy_block_xfer): New.
1580 (thumb_32bit_copy_undef): New.
1581 (thumb_32bit_copy_unpred): New.
1582 (thumb2_decode_ext_reg_ld_st): New.
1583 (thumb2_decode_svc_copro): New.
1584 (decode_thumb_32bit_store_single_data_item): New.
1585 (thumb_copy_pc_relative_32bit): New.
1586 (thumb_decode_pc_relative_32bit): New.
1587 (decode_thumb_32bit_ld_mem_hints): New.
1588 (thumb2_copy_table_branch): New
1589 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1592 2011-09-18 Yao Qi <yao@codesourcery.com>
1594 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1595 (install_b_bl_blx): Likewise.
1597 2011-09-17 Yao Qi <yao@codesourcery.com>
1599 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1600 (install_load_store): ... this. New.
1601 Change parameter BYTE to SIZE.
1602 (arm_copy_ldr_str_ldrb_strb): Update caller.
1603 (arm_decode_ld_st_word_ubyte): Update caller.
1605 2011-09-17 Yao Qi <yao@codesourcery.com>
1607 * infrun.c (displaced_step_fixup): Move some code ...
1608 (displaced_step_restore): ... here. New function.
1609 (handle_inferior_event): Cleanup displaced stepping state for both
1610 child and parent when get forked or vforked event.
1611 * regcache.c (get_thread_arch_aspace_regcache): New function.
1612 get_thread_arch_regcache (): Call it.
1614 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1616 * ada-tasks.c (print_ada_task_info): New function, merging
1617 short_task_info and info_tasks together. Reimplement using
1618 ui-out instead of printing to stdout directly. Move the code
1619 building and checking the task list here, instead of leaving it
1620 in info_tasks_command.
1621 (info_task): Move the code building and checking the task
1622 list here, instead of leaving it in info_tasks_command.
1623 (info_tasks_command): Delete code building and checking
1624 the task list - moved elsewhere. Update calls to info_tasks
1627 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1629 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1631 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1633 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1635 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1637 * ada-lang.h (ada_build_task_list): Remove parameter
1639 * ada-tasks.c (ada_build_task_list): Remove parameter
1640 `warn_if_null'. Adjust implementation and documentation.
1641 (valid_task_id, ada_get_environment_task)
1642 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1643 (info_tasks_command): Adjust implementation.
1644 (task_command): Likewise.
1645 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1646 to ada_build_task_list.
1648 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1650 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1651 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1652 (ada_tasks_inferior_data_handle): New static global.
1653 (get_ada_tasks_inferior_data): New function.
1654 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1655 (ada_get_environment_task, iterate_over_live_ada_tasks)
1656 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1658 (ada_set_current_inferior_known_tasks_addr): New function.
1659 (read_known_tasks, ada_build_task_list, short_task_info)
1660 (info_tasks, info_task, info_tasks_command, task_command_1)
1661 (task_command, ada_task_list_changed): Adjust.
1662 (ada_tasks_invalidate_inferior_data): New function.
1663 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1664 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1665 * ada-lang.h (struct inferior): Add declaration.
1666 (ada_task_list_changed): Update profile.
1667 * remote-wtx-pd.c: #include "inferior.h".
1668 (switch_to_pd_internal): Update call to ada_task_list_changed.
1670 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1672 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1673 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1674 (atcb_fieldno): Delete these static globals.
1675 (struct ada_tasks_pspace_data): New struct.
1676 (ada_tasks_pspace_data_handle): New static global.
1677 (get_ada_tasks_pspace_data): New function.
1678 (ada_tasks_invalidate_pspace_data): New function.
1679 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1680 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1681 (_initialize_tasks): Create this module's per-progspace
1684 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1686 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1688 2011-09-16 Tristan Gingold <gingold@adacore.com>
1690 * fork-child.c (fork_inferior): Update comment. Use alloca
1691 instead of xmalloc for argv. Move len and shell_command
1692 declarations in the block where they are used.
1693 Only call execvp. Factorize failure code.
1695 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1698 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1699 `exp_element' instead of an element of the same and make the function
1701 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1702 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1703 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1704 Change argument of `write_exp_elt' function call.
1705 Remove extra spaces from comments.
1706 * parser-defs.h (write_exp_elt): Remove prototype.
1708 2011-09-15 Paul Koning <paul_koning@dell.com>
1710 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1711 count of item appended to list.
1712 * python/py-type.c (typy_fields): Likewise.
1714 2011-09-15 Paul Koning <paul_koning@dell.com>
1716 * MAINTAINERS (Write After Approval): Add myself to the list.
1718 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1721 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1722 processes with multiple threads.
1723 (inf_has_multiple_thread_cb): New function.
1724 (inf_has_multiple_threads): New function.
1726 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1728 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1729 * python/py-inferior.c (GdbMethods): New Python method definition.
1731 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1733 Handle multiple breakpoint hits in Python interface:
1734 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1735 variable to breakpoints.
1736 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1737 bps instead of single breakpoint. Fix some space typos.
1738 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1739 variable to breakpoints.
1741 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1743 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1744 note if the breakpoint is internal.
1746 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1748 * MAINTAINERS (Write After Approval): Add myself to the list
1750 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1752 * infrun.c (prepare_for_detach, wait_for_inferior)
1753 (fetch_inferior_event): Don't flush the register cache.
1754 * remote.c (struct stop_reply) <regcache>: Add comment.
1756 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 Remove excessive DWARF expressions memory duplication.
1759 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1761 (indirect_pieced_value): Remove variable result. Remove variable
1762 back_to and its use for baton.data.
1763 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1765 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1766 Update the function comment.
1768 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1770 * inferior.h (ALL_INFERIORS): New.
1771 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1772 for a stopped thread.
1773 (thread_db_find_new_threads): Look for threads in all inferiors.
1775 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1777 * breakpoint.c (update_watchpoint): Handle the case of the
1778 watchpoint to update not being in the breakpoint list yet.
1779 (hw_watchpoint_use_count): New, factored out from
1780 hw_watchpoint_used_count.
1781 (hw_watchpoint_used_count): Rename to ...
1782 (hw_watchpoint_used_count_others): ... this. Add `except'
1783 parameter. Don't count resources of `except'. Use
1784 hw_watchpoint_use_count.
1786 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1788 * gdbthread.h (enum thread_state): Moved here.
1789 (struct thread_info): Rename `executing_' field to `executing' and
1790 `state_' to `state'.
1791 * thread.c (enum thread_state): Moved to gdbthread.h.
1792 (new_thread, add_thread_silent, delete_thread_1)
1793 (any_live_thread_of_process, thread_alive, set_running)
1794 (set_running, is_thread_state, any_running, is_executing)
1795 (set_executing, finish_thread_state, print_thread_info)
1796 (do_captured_thread_select): Adjust.
1798 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1800 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1801 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1803 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1804 Matt Rice <ratmice@gmail.com>
1808 * interps.c (struct interp) <interpreter_out>: Delete field.
1809 (interp_new): Remove the data and uiout parameters and adjust.
1810 (interp_set): Only set the current_uiout from the interpreter's
1811 uiout after initializing the interpreter. Adjust call to
1813 (interp_ui_out): Adjust to call procs->ui_out_proc.
1814 (interp_data, interp_name): New.
1815 * interps.h (interp_init_ftype): Add `self' parameter.
1816 (interp_ui_out_ftype): New typedef.
1817 (struct interp_procs) <ui_out_proc>: New method pointer.
1818 (interp_new): Remove the data and uiout parameters.
1819 (interp_data, interp_name): Declare.
1820 * tui/tui-interp.c (tui_init): Adjust prototype.
1822 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1823 tui_out here. Adjust call to interp_new.
1824 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1825 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1827 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1828 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1829 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1830 Initialize mi->uiout depending on the mi_version as extracted from
1831 the interpreter's name.
1833 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1834 interp_new. Don't allocate the ui_out's of the interpreters here.
1836 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1838 * solib.c (solib_used): New function.
1839 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1840 by another so_list object before freeing it.
1842 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1848 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1852 (amd64_skip_xmm_prologue): ... this new function. Describe its
1853 parameters. No longer use amd64_prologue_line_bug.
1854 * defs.h (producer_is_gcc_ge_4): New declaration.
1855 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1856 (process_full_comp_unit): Update its caller. Remove
1857 amd64_prologue_line_bug initialization.
1858 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1859 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1861 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1863 * linux-nat.h (enum resume_kind): New.
1864 (struct lwp_info) <last_resume_kind>: New field.
1865 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1866 resume_stop on the new lwp.
1867 (add_lwp): Set last_resume_kind as resume_continue by default.
1868 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1869 (resume_lwp): New, factored out from resume_callback. Also check
1870 for pending status in lp->waitstatus.
1871 (resume_callback): Reimplement.
1872 (resume_clear_callback): Set last_resume_kind as resume_stop.
1873 (resume_set_callback): Set last_resume_kind as resume_continue.
1874 (linux_nat_resume, linux_handle_extended_wait): Set
1876 (running_callback): Also check lp->waitstatus for pending events.
1877 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1879 (stop_and_resume_callback): Don't re-resume if the core wanted the
1880 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1881 using an invalidated pointer.
1882 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1883 SIGSTOPs if the core wanted the LWP to stop.
1884 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1885 wanted the lwp to stop. If the core wanted the lwp to stop, and
1886 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1887 of TARGET_SIGNAL_STOP.
1888 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1889 here. Instead, signal the lwp, and set the last_resume_kind to
1892 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1894 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1895 -1 (error), if the lwp exits right after attaching.
1897 2011-09-08 Doug Evans <dje@google.com>
1899 * py-cmd.c: Some minor formatting fixes.
1900 (gdbpy_parse_command_name): Rename text arg to name, make const.
1901 All callers updated.
1902 * python-internal.h (gdbpy_parse_command_name): Update.
1904 * cli/cli-decode.c (add_cmd): Add comment.
1906 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 PR breakpoints/12435
1909 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1910 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1911 * dwarf2read.c (process_full_comp_unit): Initialize
1912 amd64_prologue_line_bug.
1913 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1915 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 Fix TUI screen corruption.
1918 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1921 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1923 * findvar.c (read_var_value): Never return NULL, throw an error
1924 instead. Update the function comment. State symbol name in the error
1926 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1928 * stack.c (print_frame_args): Likewise.
1929 * valops.c (value_of_variable): Likewise.
1931 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 * stack.c (print_frame_args): New variable except. Wrap
1934 read_var_value and common_val_print into TRY_CATCH.
1936 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1938 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1939 caller to value_of_this.
1940 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1942 * valops.c (value_of_this): Remove parameter complain and variable ret.
1943 Update function comment. Never return NULL by this code.
1944 (value_of_this_silent): New function.
1945 * value.h (value_of_this): Remove parameter complain.
1946 (value_of_this_silent): New declaration.
1948 2011-09-07 Yao Qi <yao@codesourcery.com>
1950 * gdbthread.h (struct thread_info): Remove fields
1951 `stepping_through_solib_after_catch' and
1952 `stepping_through_solib_catchpoints'.
1953 * infrun.c (init_thread_stepping_state): Update.
1954 (process_event_stop_test, currently_stepping): Update.
1955 (currently_stepping_or_nexting_callback): Update.
1957 2011-09-07 Yao Qi <yao@codesourcery.com>
1959 * gdbthread.h (struct thread_info): Comment on field
1960 `step_after_step_resume_breakpoint'.
1962 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1964 * remote.c (remote_console_output): Reindent.
1966 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1968 * frame.c (has_stack_frames): Check for currently selected
1971 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1973 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1974 (set_async_annotation_level, set_async_prompt, pop_prompt)
1975 (push_prompt, new_async_prompt): Delete declarations.
1976 * top.h (get_prompt, set_prompt): Change prototype.
1977 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1979 * top.c (command_loop):
1980 (top_prompt): New global.
1981 (get_prefix, set_prefix, get_suffix, ): Delete.
1982 (get_prompt, set_prompt): Rewrite.
1983 (show_new_async_prompt): Rename to ...
1984 (show_prompt): ... this.
1985 (init_main): Adjust. Don't handle --annotate=2 here.
1986 * event-top.c (new_async_prompt): Delete.
1987 (the_prompts): Delete.
1988 (more_to_come): Make static.
1989 (display_gdb_prompt): Use top_level_prompt() to compute the top
1990 level prompt, and don't notify the before_prompt observers
1991 directly here. Always trick readline into not trying to display
1992 the prompt if sync_execution and displaying the primary prompt.
1993 If displaying a local/secondary prompt, always show it, even if
1994 sync_execution is set.
1995 (change_annotation_level): Delete.
1996 (top_level_prompt): New, based on change_annotation_level.
1997 (push_prompt, pop_prompt): Delete.
1998 (async_disable_stdin): No longer pushes prompt.
1999 (command_line_handler): No longer pushes or pops prompt. If more
2000 input is expected, call display_gdb_prompt with an explicit empty
2002 (async_stop_sig): Adjust.
2003 (set_async_annotation_level, set_async_prompt): Delete.
2004 * python/python.c (before_prompt_hook): Adjust.
2006 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2010 * infrun.c (fetch_inferior_event): Check if there's a selected
2011 thread before checking if the selected thread is executing.
2013 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2015 * inf-loop.c (execute_command): Don't check if the current thread
2016 if running before synchronously waiting for command completion.
2017 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2019 (normal_stop): Call async_enable_stdin here.
2020 * inf-loop.c (inferior_event_handler): Don't call
2021 async_enable_stdin, nor handle "set exec-done-display" here.
2023 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2027 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2029 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2031 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2033 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2035 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2039 2011-09-02 Matt Rice <ratmice@gmail.com>
2042 * event-top.c (cli_command_loop): Replace readline setup with
2043 direct call to display_gdb_prompt.
2044 (display_gdb_prompt): Do not call observer mechanism during
2045 synchronous execution.
2047 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2049 * linux-nat.c (in_pid_list_p): New.
2050 (linux_record_stopped_pid): Delete.
2051 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2052 already attached to the LWP. Return an indication if so.
2053 (linux_nat_filter_event): Adjust.
2054 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2055 returning an indication to ignore this thread.
2057 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2059 * top.c: Include interps.h.
2060 (execute_command): If the target can async, but the interpreter is
2061 in sync mode, synchronously wait for the command to finish before
2063 (execute_command_to_string): Force the interpreter to sync mode.
2064 * infrun.c: Include interps.h.
2065 (fetch_inferior_event): Don't restore the prompt yet if the
2066 interpreter is in sync mode.
2067 * interps.c (interpreter_async): New global.
2068 * interps.h (interpreter_async): Declare.
2069 * inf-loop.c: Include interps.h.
2070 (inferior_event_handler): Don't print the language change or run
2071 breakpoint commands yet if the interpreter in is sync mode.
2072 * main.c (captured_command_loop): Flip the interpreter to async
2074 * cli/cli-script.c: Include interps.h.
2075 (execute_user_command, while_command, if_command): Force the
2076 interpreter to sync mode.
2077 * python/python.c: Include interps.h.
2078 (python_command, execute_gdb_command): Force the interpreter to
2081 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2083 * value.c (show_convenience): Catch errors thrown while printing
2084 each internal variable.
2085 * infrun.c (validate_siginfo_access): New function.
2086 (siginfo_value_read, siginfo_value_write): Call it.
2088 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2091 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2092 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2095 2011-08-29 Yao Qi <yao@codesourcery.com>
2097 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2099 (enable_break2): Update caller.
2100 * solib-frv.c (bfd_lookup_symbol): Removed.
2102 (enable_break2): Update caller.
2103 * solib-pa64.c (bfd_lookup_symbol): Removed.
2105 * solib-svr4.c (bfd_lookup_symbol): Removed.
2106 (cmp_name_and_sec_flags): New.
2107 (enable_break): Update caller.
2108 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2109 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2110 (gdb_bfd_lookup_symbol): New.
2111 * solib.h: Functions declarations.
2113 2011-08-29 Yao Qi <yao@codesourcery.com>
2115 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2118 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2120 Fix TUI stepi on code without symbols.
2121 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2124 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2127 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2128 and the static keyword.
2129 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2130 Make prefix an array.
2131 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2132 * mi/mi-main.c (get_register): Remove stb initialization and the static
2135 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2137 Code cleanup - make mi_opt const.
2138 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2140 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2141 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2142 (mi_cmd_env_dir): Likewise.
2143 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2144 (mi_cmd_target_file_put): Likewise.
2145 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2146 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2147 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2148 (mi_valid_noargs): Make opts const.
2149 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2150 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2151 (mi_cmd_data_read_memory): Likewise.
2152 (mi_cmd_data_read_memory_bytes): Likewise.
2153 (mi_cmd_data_write_memory): Likewise.
2155 2011-08-26 Matt Rice <ratmice@gmail.com>
2157 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2158 bcache_xmalloc, replace bcache_xmalloc with call to
2159 psymbol_bcache_init for psymbol_cache.
2160 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2162 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2164 * inf-loop.c (inferior_event_handler): Add exception_print in
2167 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2169 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2170 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2171 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2172 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2173 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2174 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2175 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2176 * infrun.c (fetch_inferior_event): Call
2177 make_bpstat_clear_actions_cleanup.
2178 * top.c (execute_command): New variable cleanup_if_error, call
2179 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2180 * utils.c (do_bpstat_clear_actions_cleanup)
2181 (make_bpstat_clear_actions_cleanup): New functions.
2183 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2185 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2186 either the parent or the child forks. Rename a couple locals.
2188 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2190 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2191 library call. Avoid reading the `status' local if all waitpid
2194 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2196 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2197 opening /proc/PID/task always succeeds.
2199 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2201 * linespec.c (symtab_from_filename): Check for the end of string.
2203 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2206 * varobj.c (cplus_describe_child): Add the keyword
2207 'class' to the output of the method when dealing
2208 with a cast to a base class.
2210 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 No functionality change.
2213 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2214 function comment a reference, new variables tp and bs, move here code
2215 from throw_exception.
2216 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2217 describe it in the comment.
2218 * exceptions.c (throw_exception): Remove variable tp, move the code for
2219 bpstat_clear_actions to bpstat_clear_actions.
2221 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2223 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2224 * linux-nat.c: Include linux-procfs.h.
2225 (linux_proc_get_tgid): Move to ...
2226 * common/linux-procfs.c: ... here. New file.
2227 * common/linux-procfs.h: New file.
2228 * linux-thread-db.c: Include linux-procfs.h.
2229 * Makefile.in: Update dependencies.
2230 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2231 * config/arm/linux.mh: Likewise.
2232 * config/i386/linux.mh: Likewise.
2233 * config/i386/linux64.mh: Likewise.
2234 * config/ia64/linux.mh: Likewise.
2235 * config/m32r/linux.mh: Likewise.
2236 * config/m68k/linux.mh: Likewise.
2237 * config/mips/linux.mh: Likewise.
2238 * config/pa/linux.mh: Likewise.
2239 * config/pa/linux.mh: Likewise.
2240 * config/powerpc/linux.mh: Likewise.
2241 * config/powerpc/ppc64-linux.mh: Likewise.
2242 * config/powerpc/spu-linux.mh: Likewise.
2243 * config/sparc/linux.mh: Likewise.
2244 * config/sparc/linux64.mh: Likewise.
2245 * config/xtensa/linux.mh: Likewise.
2247 2011-08-24 Hui Zhu <teawater@gmail.com>
2249 * tracepoint.c (cond_string_is_same): New function.
2250 (find_matching_tracepoint): Add condition check
2251 by cond_string_is_same.
2253 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2255 Fix build error in Darwin port.
2256 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2258 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2261 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2262 (command_line_is_silent): New function.
2263 (bpstat_do_actions_1): No longer use commands_left, use
2264 command_line_is_silent for commands.
2265 (bpstat_alloc): Remove clearing of commands_left.
2266 (bpstat_stop_status): Remove initialization of commands_left, use
2267 command_line_is_silent.
2268 * breakpoint.h (struct bpstats): Remove commands_left.
2270 2011-08-18 Keith Seitz <keiths@redhat.com>
2273 * cp-name-parser.y (struct demangle_info): Remove unused
2276 (allocate_info): Change return type to struct demangle_info *.
2277 Always allocate a new demangle_info.
2278 Remove unused PREV pointer.
2279 (cp_new_demangle_parse_info): New function.
2280 (cp_demangled_name_parse_free): New function.
2281 (do_demangled_name_parse_free_cleanup): New function.
2282 (make_cleanup_cp_demangled_name_parse_free): New function.
2283 (cp_demangled_name_to_comp): Change return type to
2284 struct demangle_parse_info *.
2285 Allocate a new storage for each call.
2286 (main): Update usage for cp_demangled_name_to_comp
2288 * cp-support.h (struct demangle_parse_info): New structure.
2289 (cp_demangled_name_to_comp): Update API change for
2291 (cp_new_demangle_parse_info): Declare.
2292 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2293 (cp_demangled_name_parse_free): Declare.
2294 * cp-support.c (cp_canonicalize_string): Update API
2295 change for cp_demangled_name_to_comp.
2296 (mangled_name_to_comp): Likewise.
2297 Return struct demangle_parse_info, too.
2298 (cp_class_name_from_physname): Update mangled_name_to_comp
2300 (method_name_from_physname): Likewise.
2301 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2302 (cp_remove_params): Likewise.
2303 * python/py-type.c (typy_legacy_template_argument): Likewise.
2305 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2306 (cp_merge_demangle_parse_infos): Declare.
2307 * cp-support.c (ignore_typedefs): New file global.
2308 (copy_string_to_obstack): New function.
2309 (inspect_type): New function.
2310 (replace_typedefs): New function.
2311 (replace_typedefs_qualified_name): New function.
2312 (cp_canonicalize_string_no_typedefs): New function.
2313 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2314 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2315 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2316 instead of cp_canonicalize_string.
2317 (find_method): Likewise.
2318 (decode_compound): Before looking up the name, call
2319 cp_canonicalize_string_no_typedefs.
2320 (decode_variable): Likewise.
2322 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2323 Tom Tromey <tromey@redhat.com>
2324 Matt Rice <ratmice@gmail.com>
2326 * python/lib/gdb/prompt.py: New file.
2327 * python/lib/gdb/command/prompt.py: New file.
2328 * NEWS: Document set extended-prompt and gdb.prompt library
2330 2011-08-16 Yao Qi <yao@codesourcery.com>
2332 * tic6x-linux-tdep.c: Move const arrays definition from here...
2333 * tic6x-tdep.c: to here ...
2335 2011-08-14 Yao Qi <yao@codesourcery.com>
2337 * NEWS: New port to Texas Instruments TMS320C6x.
2339 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2340 Bernd Schmidt <bernds@codesourcery.com>
2341 Yao Qi <yao@codesourcery.com>
2343 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2344 * solib-dsbt.c: New file. Support DSBT shared object.
2345 * tic6x-linux-tdep.c: New file.
2346 * tic6x-tdep.c: New file.
2347 * tic6x-tdep.h: New file.
2349 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2350 Yao Qi <yao@codesourcery.com>
2352 * remote.c (PACKET_qXfer_fdpic): New enum value.
2353 (remote_protocol_features): Add qXfer:fdpic:read packet.
2354 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2355 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2356 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2358 2011-08-14 Yao Qi <yao@codesourcery.com>
2360 Target description for tic6x.
2361 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2362 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2363 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2364 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2365 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2366 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2367 * features/tic6x-c64xp-linux.xml: New.
2368 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2369 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2370 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2371 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2372 * regformats/tic6x-c64xp.dat,
2373 regformats/tic6x-c62x-linux.dat: Generated.
2374 * regformats/tic6x-c64x-linux.dat,
2375 regformats/tic6x-c64xp-linux.dat: Generated.
2376 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2377 features/tic6x-*.c files.
2378 Add regformats/tic6x-*.dat files.
2380 2011-08-12 Doug Evans <dje@google.com>
2382 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2383 * python/py-symbol.c (sympy_get_type): New function.
2384 (symbol_object_getset): Add "type".
2386 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2390 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2392 (tui_show_register_group): Don't store a byte buffer in the data
2394 (tui_register_format): Skip registers with an empty name.
2395 (tui_get_register): Store a struct value in the data element's
2396 value field instead of a byte buffer holding the raw register
2397 contents. Account for optimized-out and unavailable registers
2398 when comparing register contents.
2400 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2402 * printcmd.c (current_display_number): Update comment.
2403 (disable_current_display_cleanup): Delete.
2404 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2405 catch errors thrown while evaluating and printing the display.
2407 2011-08-09 Tom Tromey <tromey@redhat.com>
2409 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2411 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2413 * elfread.c (elf_symtab_read): Rework comments.
2414 * maint.c (maintenance_command): Ditto.
2415 * somread.c (som_symtab_read): Ditto.
2416 * solib.c (solib_find, solib_map_sections, update_solib_list)
2417 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2418 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2419 (sharedlibrary_command, no_shared_libraries): Ditto.
2420 * solib-irix.c (locate_base, disable_break, enable_break)
2421 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2422 (irix_current_sos, irix_open_symbol_file_object)
2423 (irix_special_symbol_handling): Ditto.
2424 * solib-sunos.c (locate_base, first_link_map_member)
2425 (sunos_current_sos, disable_break, enable_break)
2426 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2428 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2429 (open_symbol_file_object, svr4_current_sos, enable_break)
2430 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2432 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2433 (frv_current_sos, enable_break, frv_special_symbol_handling)
2434 (frv_solib_create_inferior_hook): Ditto.
2435 * solist.h (struct target_so_ops): Extend the comments of the
2436 special_symbol_handling, current_sos and open_symbol_file_object
2439 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2441 * python/lib/gdb/__init__.py: Auto-load files in command and
2442 function directories.
2443 * python/python.c (finish_python_initialization): Use
2445 * python/lib/gdb/command/pretty_printers.py: Self register
2447 * NEWS: Document auto-loading.
2449 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2452 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2453 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2455 2011-08-08 Tom Tromey <tromey@redhat.com>
2457 * breakpoint.c (clean_up_filters): Remove.
2458 (catch_syscall_split_args): Use VEC_cleanup.
2460 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2462 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2463 (main): Uncomment "Demangling error\n".
2465 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2467 * solib-target.c (segment_attributes): Make them static.
2468 (section_attributes, library_children, library_attributes): Likewise.
2469 (library_list_children, library_list_attributes): Likesise.
2470 (library_list_elements): Likewise.
2472 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2474 * exceptions.c (throw_exception): Don't disable the current
2476 * printcmd.c (disable_current_display_cleanup): New function.
2477 (do_one_display): Install a cleanup to disable the current display
2478 if doing the display throws.
2480 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2482 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2483 initialization of the tp_new member to the corresponding
2484 gdbpy_initialize_* function.
2485 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2486 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2487 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2488 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2489 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2491 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2493 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2494 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2495 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2496 references to current_uiout.
2498 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2500 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2501 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2502 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2503 * top.c (gdb_readline_wrapper): Adjust.
2504 * tui/tui-interp.c (tui_command_loop):
2505 (_initialize_tui_interp): Don't install it.
2507 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2509 * ui-out.h (uiout): Rename to ...
2510 (current_uiout): ... this.
2511 * ui-out.c (uiout): Rename to ...
2512 (current_uiout): ... this.
2513 * ada-lang.c (print_it_exception, print_one_exception)
2514 (print_mention_exception): Adjust.
2515 * breakpoint.c (watchpoint_check): Adjust.
2516 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2517 (default_collect_info, watchpoints_info, print_one_catch_fork)
2518 (print_one_catch_vfork, print_one_catch_syscall)
2519 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2520 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2521 (print_it_watchpoint, print_mention_watchpoint)
2522 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2523 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2524 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2525 (bkpt_print_mention, momentary_bkpt_print_it)
2526 (tracepoint_print_mention, update_static_tracepoint)
2527 (tracepoints_info, save_breakpoints): Adjust.
2528 * cli-out.c (field_separator): Adjust.
2529 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2530 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2531 * frame.c (get_current_frame): Adjust.
2532 * infcmd.c (run_command_1, print_return_value): Adjust.
2533 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2534 * infrun.c (print_end_stepping_range_reason): Adjust.
2535 (print_signal_exited_reason, print_exited_reason): Adjust.
2536 (print_signal_received_reason, print_no_history_reason): Adjust.
2537 * interps.c (interp_set): Adjust.
2538 * osdata.c (info_osdata_command): Adjust.
2539 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2540 * remote-fileio.c (remote_fileio_request): Adjust.
2541 * remote.c (show_remote_cmd): Adjust.
2542 * solib.c (info_sharedlibrary_command): Adjust.
2543 * source.c (print_source_lines_base): Adjust.
2544 * stack.c (print_stack_frame): Adjust.
2545 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2546 * symfile-mem.c (add_vsyscall_page): Adjust.
2547 * symfile.c (load_progress, generic_load)
2548 (print_transfer_performance): Adjust.
2549 * thread.c (info_threads_command, restore_selected_frame)
2550 (thread_command): Adjust.
2551 * top.c (make_cleanup_restore_ui_file): Adjust.
2552 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2553 (print_one_static_tracepoint_marker): Adjust.
2554 * cli/cli-cmds.c (print_disassembly): Adjust.
2555 * cli/cli-decode.c (print_doc_line): Adjust.
2556 * cli/cli-interp.c (safe_execute_command): Adjust.
2557 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2558 (handle_redirections): Adjust.
2559 * cli/cli-script.c (show_user_1): Adjust.
2560 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2561 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2562 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2563 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2564 (mi_cmd_env_dir): Adjust.
2565 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2566 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2567 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2568 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2569 (list_args_or_locals): Adjust.
2570 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2571 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2572 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2573 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2574 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2575 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2576 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2577 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2578 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2579 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2580 (list_available_thread_groups, mi_cmd_list_thread_groups)
2581 (mi_cmd_data_list_register_names)
2582 (mi_cmd_data_list_changed_registers)
2583 (mi_cmd_data_list_register_values, get_register)
2584 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2585 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2586 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2587 (mi_execute_command, mi_load_progress): Adjust.
2588 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2589 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2591 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2592 * tui/tui-interp.c (tui_command_loop): Adjust.
2593 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2595 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2597 * exceptions.c (struct catcher): Remove saved_uiout field.
2598 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2599 no longer save/resvore the global ui_out builder.
2600 (catch_exceptions_with_msg): Save/override/restore the global
2601 ui_out builder manually instead of relying on TRY_CATCH to do it.
2602 (catch_errors): Save/restore the global ui_out builder manually
2603 instead of relying on TRY_CATCH to do it.
2604 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2606 (TRY_CATCH): Adjust.
2607 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2608 the global ui_out builder manually instead of relying on TRY_CATCH
2611 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2613 * breakpoint.c (update_global_location_list): Ensure
2614 invariant 'first loc marked not duplicated and inserted,
2615 following locs marked duplicated/not inserted' is respected
2616 for multiple locations at the same address.
2617 (unduplicated_should_be_inserted) New function.
2618 (swap_insertion) New function.
2620 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2622 * stack.c (print_frame_arguments_choices): Comment typo fix.
2624 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2627 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2628 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2629 argument. Update callers.
2631 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2634 * doublest.c (convert_doublest_to_floatformat): Pass correct
2635 mantissa length to put_field.
2637 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2639 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2640 exception_print code path.
2641 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2642 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2643 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2645 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2648 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2649 Remove, merge them into ...
2650 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2651 variable args and its initialization.
2652 (struct print_args_args, print_args_stub): Remove, merge them into
2654 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2656 (do_gdb_disassembly): ... here. Remove variable args and its
2658 (print_frame): Remove variable args and its initialization, new
2659 variable gdbarch and numargs (from print_args_stub), inline here
2660 print_args_stub with a TRY_CATCH.
2661 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2663 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2664 New variable e, remove variable btargs and its initialization.
2666 2011-08-01 Tristan Gingold <gingold@adacore.com>
2668 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2670 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2672 * breakpoint.c (insert_bp_location): Document return value.
2673 (insert_breakpoint_locations): Fix documentation.
2674 (remove_breakpoints): Add documentation.
2676 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2678 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2679 argument. Update callers.
2681 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2683 * stack.c (print_frame_info): Comment typo fix.
2685 2011-07-29 Sterling Augustine <saugustine@google.com>
2687 * MAINTAINERS (Write After Approval): Add myself to the list.
2689 2011-07-29 Tom Tromey <tromey@redhat.com>
2691 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2692 (library_list_start_segment): Update.
2693 (library_list_start_section): Update.
2695 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2697 * varobj.c (value_get_print_value): Move hint check later into the
2698 function. Comment function. Free thevalue before reusing it.
2700 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2701 Pedro Alves <pedro@codesourcery.com>
2703 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2705 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2706 Assert the result kind.
2707 * value.h (value_one): Remove parameter lv.
2709 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2711 Fix crash on lval_computed values.
2712 * valops.c (value_zero): Use not_lval for lval_computed.
2714 2011-07-27 Tom Tromey <tromey@redhat.com>
2716 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2717 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2719 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2721 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2722 "ptype" by their typedefs difference.
2724 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2726 * dwarf2expr.c (ctx_no_read_reg): New function.
2727 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2728 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2729 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2730 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2732 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2735 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2737 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2738 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2739 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2740 (ctx_no_get_base_type): Move the functions here.
2741 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2742 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2743 (ctx_no_get_base_type): New declarations.
2745 2011-07-27 Tom Tromey <tromey@redhat.com>
2747 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2749 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2750 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2752 2011-07-26 Sterling Augustine <saugustine@google.com>
2754 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2756 (dump_bfd_file): Likewise.
2758 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2760 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2761 (remote_hw_watchpoint_length_limit): New variable.
2762 (_initialize_remote) add set,show cmds for this new variable.
2763 * gdb.texinfo: document these new commands.
2764 * NEWS: Mention these new commands.
2766 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2768 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2769 true for software watchpoints.
2771 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2775 2011-07-26 Tom Tromey <tromey@redhat.com>
2777 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2778 * dwarf2read.c (read_indirect_string_at_offset): New function.
2779 (read_indirect_string): Use it.
2780 (dwarf_decode_macro_bytes): New function, taken from
2781 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2782 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2783 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2785 (struct dwarf2_per_objfile) <macro>: New field.
2786 (dwarf2_elf_names): Add .debug_macro.
2787 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2788 (dwarf2_locate_sections): Handle new section.
2789 (read_file_scope): Handle DW_AT_GNU_macros.
2790 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2792 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2794 * NEWS: Mention dcache configuration.
2795 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2796 (dcache_size, dcache_line_size): New variables.
2797 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2798 (struct dcache_block): Make it expandable.
2799 (struct dcache_struct): New field.
2800 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2801 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2802 (dcache_poke_byte, dcache_print_line): Adjust.
2803 (set_dcache_size, set_dcache_line_size): New functions.
2804 (set_dcache_command, show_dcache_command): New functions.
2805 (_initialize_dcache): Add new commands.
2807 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2809 * progspace.h (struct program_space): Add solib_add_generation.
2810 * infcmd.c (post_create_inferior): Only call solib_add if not
2812 * solib.c (solib_add): Increment solib_add_generation.
2814 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2816 Fix implicit pointer offsets.
2817 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2820 2011-07-25 Tom Tromey <tromey@redhat.com>
2822 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2824 (ada_exception_sal): Make 'ops' const.
2825 (ada_decode_exception_location): Likewise.
2826 (ada_decode_assert_location): Likewise.
2827 (catch_assert_command): Update.
2828 (catch_ada_exception_command): Update.
2829 (create_ada_exception_catchpoint): Make 'ops' const.
2830 * breakpoint.c (set_raw_breakpoint_without_location)
2831 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2833 (create_internal_breakpoint): Update.
2834 (init_raw_breakpoint_without_location): Make 'ops' const.
2835 (init_raw_breakpoint, init_catchpoint)
2836 (create_fork_vfork_event_catchpoint)
2837 (create_syscall_event_catchpoint, init_breakpoint_sal)
2838 (create_breakpoint_sal, create_breakpoints_sal)
2839 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2840 * breakpoint.h (struct breakpoint) <ops>: Now const.
2841 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2844 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2846 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2848 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2850 * breakpoint.h (print_recreate_thread): Declare.
2851 (struct breakpoint): Move step_count, pass_count,
2852 number_on_target, static_trace_marker_id,
2853 static_trace_marker_id_idx ...
2854 (struct tracepoint): ... to this new struct.
2855 (get_tracepoint, get_tracepoint_by_number_on_target)
2856 (get_tracepoint_by_number): Change return type to struct
2858 * breakpoint.c (is_tracepoint_type): New, factored out from
2860 (is_tracepoint): Adjust.
2861 (print_one_breakpoint_location): Cast to struct tracepoint as
2862 necessary, and adjust.
2863 (print_recreate_catch_fork, print_recreate_catch_vfork)
2864 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2865 print_recreate_thread.
2866 (init_breakpoint_sal): New, factored out from
2867 create_breakpoint_sal.
2868 (create_breakpoint_sal): Reimplement.
2869 (create_breakpoint): Allocate a struct tracecepoint if the caller
2870 wanted a tracepoint. Use init_breakpoint_sal and
2872 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2873 (print_recreate_masked_watchpoint)
2874 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2875 (tracepoint_print_one_detail): Adjust.
2876 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2877 Dump the pass count here.
2878 (update_static_tracepoint): Adjust.
2879 (addr_string_to_sals): Adjust.
2880 (create_tracepoint_from_upload): Adjust. Change return type to
2881 struct tracepoint pointer.
2882 (trace_pass_set_count): Change parameter type to struct tracepoint
2883 pointer, and adjust.
2884 (trace_pass_command): Adjust.
2885 (get_tracepoint, get_tracepoint_by_number_on_target)
2886 (get_tracepoint_by_number): Change return type to struct
2887 tracepoint pointer, and adjust.
2888 (print_recreate_thread): New, factored out from save_breakpoints.
2889 (save_breakpoints): Don't print thread and task and passcount
2891 * remote.c (remote_download_tracepoint): Adjust.
2892 * tracepoint.c (trace_actions_command, validate_actionline)
2893 (start_tracing, tfind_1, trace_find_tracepoint_command)
2894 (trace_dump_command): Adjust.
2895 (find_matching_tracepoint): Change return type to struct
2896 tracepoint pointer, and adjust.
2897 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2898 (tfile_trace_find, tfile_fetch_registers): Adjust.
2899 * tracepoint.h (create_tracepoint_from_upload): Change return type
2900 to struct tracepoint pointer.
2901 * ada-lang.c (print_recreate_exception): Call
2902 print_recreate_thread.
2903 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2905 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2907 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2908 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2909 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2910 watchpoint_thread, watchpoint_triggered ...
2911 (struct watchpoint): ... to this new struct.
2912 (is_watchpoint): Declare.
2913 (install_breakpoint): Add new `internal' parameter.
2914 * breakpoint.c (is_watchpoint): Delete declaration.
2915 (set_breakpoint_condition): Handle watchpoints.
2916 (is_watchpoint): Make public.
2917 (watchpoint_in_thread_scope): Change parameter type to struct
2919 (watchpoint_del_at_next_stop): Change parameter type to struct
2920 watchpoint. Remove assertion. Adjust.
2921 (update_watchpoint): Ditto.
2922 (insert_breakpoints, breakpoint_init_inferior)
2923 (watchpoints_triggered, watchpoint_check)
2924 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2925 (bpstat_stop_status, print_one_breakpoint_location)
2926 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2927 to struct watchpoint as necessary, and adjust.
2928 (install_breakpoint): Add `internal' argument. If true, don't
2929 mention the new breakpoint. Use set_breakpoint_number.
2930 (create_fork_vfork_event_catchpoint)
2931 (create_syscall_event_catchpoint): Adjust.
2932 (dtor_watchpoint): New.
2933 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2934 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2935 (print_it_watchpoint, print_mention_watchpoint)
2936 (print_recreate_watchpoint, insert_masked_watchpoint)
2937 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2938 (print_one_detail_masked_watchpoint)
2939 (print_mention_masked_watchpoint)
2940 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2941 necessary, and adjust.
2942 (watch_command_1): Allocate and initialize a struct watchpoint
2943 instead of a struct breakpoint. Use install_breakpoint.
2944 (catch_exec_command_1): Adjust.
2945 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2947 (delete_breakpoint, enable_breakpoint_disp)
2948 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2949 as necessary, and adjust.
2950 (initialize_breakpoint_ops): Install dtor_watchpoint as
2951 watchpoints' dtor method.
2952 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2953 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2954 to struct watchpoint as necessary, and adjust.
2956 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2958 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2959 the the base class ops table.
2960 (catch_exception_breakpoint_ops)
2961 (catch_exception_unhandled_breakpoint_ops)
2962 (catch_assert_breakpoint_ops): Don't statically initialize.
2963 (initialize_ada_catchpoint_ops): New.
2964 (_initialize_ada_language): Call it.
2965 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2966 (bkpt_breakpoint_ops): Forward declare.
2967 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2968 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2969 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2970 (masked_watchpoint_breakpoint_ops)
2971 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2972 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2973 base class ops table.
2974 (null_re_set, null_check_status, null_works_in_software_mode)
2975 (null_resources_needed, null_print_one_detail): Delete.
2976 (bkpt_dtor): Rename to ...
2977 (base_breakpoint_dtor): ... this. Make static.
2978 (bkpt_allocate_location): Rename to ...
2979 (base_breakpoint_allocate_location): ... this. Make static.
2980 (base_breakpoint_re_set): New.
2981 (internal_error_pure_virtual_called): New.
2982 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2983 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2984 (base_breakpoint_works_in_software_mode)
2985 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2986 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2987 (base_breakpoint_print_recreate): New functions.
2988 (base_breakpoint_ops): New global.
2989 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2990 (bkpt_breakpoint_hit): Make static.
2991 (bkpt_check_status): Delete.
2992 (bkpt_resources_needed): Make static.
2993 (bkpt_works_in_software_mode): Delete.
2994 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2996 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2997 (momentary_breakpoint_ops): Don't statically initialize.
2998 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3000 (tracepoint_insert_location, tracepoint_remove_location)
3001 (tracepoint_check_status, tracepoint_works_in_software_mode)
3002 (tracepoint_print_it): Delete.
3003 (tracepoint_breakpoint_ops): Don't statically initialize.
3004 (initialize_breakpoint_ops): New.
3005 (_initialize_breakpoint): Call it.
3006 * breakpoint.h (null_re_set, null_works_in_software_mode)
3007 (null_resources_needed, null_check_status, null_print_one_detail):
3008 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3009 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3010 (bkpt_check_status, bkpt_resources_needed)
3011 (bkpt_works_in_software_mode, bkpt_print_it)
3012 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3013 Delete declarations.
3014 (initialize_breakpoint_ops): Declare.
3016 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3018 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3019 (momentary_bkpt_print_it): Simplify.
3021 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3023 Split internal, momentary and user breakpoints breakpoint_ops
3026 * breakpoint.c (internal_breakpoint_ops)
3027 (momentary_breakpoint_ops): Forward declare.
3028 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3029 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3030 (create_overlay_event_breakpoint)
3031 (create_std_terminate_master_breakpoint)
3032 (create_exception_master_breakpoint): Create breakpoints with
3033 internal_breakpoint_ops vtable.
3034 (set_longjmp_breakpoint): Create momentary breakpoints with
3035 momentary_breakpoint_ops vtable, using
3036 momentary_breakpoint_from_master.
3037 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3038 (create_solib_event_breakpoint): Create breakpoints with
3039 internal_breakpoint_ops vtable.
3040 (set_momentary_breakpoint): Create breakpoints with
3041 momentary_breakpoint_ops vtable.
3042 (momentary_breakpoint_from_master): New, factored out from
3043 clone_momentary_breakpoint.
3044 (clone_momentary_breakpoint): Adjust.
3045 (watch_command_1): Create scope breakpoints with
3046 momentary_breakpoint_ops vtable.
3047 (bkpt_re_set): Remove handling of internal and momentary
3049 (bkpt_print_mention, bkpt_print_recreate): New.
3050 (bkpt_breakpoint_ops): Adjust.
3051 (internal_bkpt_re_set, internal_bkpt_check_status)
3052 (internal_bkpt_print_it, internal_bkpt_print_mention)
3053 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3054 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3055 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3056 (momentary_bkpt_print_recreate): New.
3057 (momentary_breakpoint_ops): New.
3059 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3061 Implement most breakpoint_ops methods for all breakpoint types,
3062 and move the default handlings to the proper callbacks.
3064 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3065 works_in_software_mode method.
3066 (insert_bp_location): Go through breakpoint_ops->insert_location
3067 for software and hardware watchpoints.
3068 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3070 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3071 for software and hardware watchpoints.
3072 (print_it_typical): Delete.
3073 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3075 (watchpoint_check): Adjust comment.
3076 (bpstat_check_location): Simply always call the breakpoint's
3077 breakpoint_hit method.
3078 (bpstat_stop_status): Always call the breakpoint's check_status
3079 method. Remove special cases for watchpoints and internal event
3080 breakpoints from here (moved to the check_status implementations).
3081 (print_one_breakpoint_location): Assume b->ops is never NULL.
3082 Remove static tracepoint marker id printing from here (moved to
3083 the print_one_detail callback implementation of tracepoints).
3084 (init_bp_location): Assert OPS is never NULL.
3085 (allocate_bp_location): Always call the breakpoint's
3086 allocate_location method, and remove the default code from here.
3087 (free_bp_location): Always call the location's dtor method, and
3088 remove the default code from here.
3089 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3090 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3091 parameter. Pass it down.
3092 (set_raw_breakpoint): Ditto.
3093 (print_it_catch_fork): Adjust to take a bpstat as argument.
3094 (catch_fork_breakpoint_ops): Install methods.
3095 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3096 (catch_vfork_breakpoint_ops): Install methods.
3097 (dtor_catch_syscall): Call the base dtor.
3098 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3099 (catch_syscall_breakpoint_ops): Install methods.
3100 (dtor_catch_exec): Call the base dtor.
3101 (print_it_catch_exec): Adjust to take a bpstat as argument.
3102 (catch_exec_breakpoint_ops): Install methods.
3103 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3104 the breakpoint's resources_needed method, and remove the default
3106 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3108 (clone_momentary_breakpoint): Clone the original's ops.
3109 (mention): Always call the breakpoint's print_mention method, and
3110 remove the default code from here.
3111 (create_breakpoint_sal): Adjust to pass the ops to
3112 set_raw_breakpoint rather than setting it manually.
3113 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3114 ops to set_raw_breakpoint_without_location rather than setting it
3116 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3117 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3118 (ranged_breakpoint_ops): Install methods.
3119 (break_range_command): Adjust to pass the ops to
3120 set_raw_breakpoint rather than setting it manually.
3121 (re_set_watchpoint, breakpoint_hit_watchpoint)
3122 (check_status_watchpoint, resources_needed_watchpoint)
3123 (works_in_software_mode_watchpoint, print_it_watchpoint)
3124 (print_mention_watchpoint, print_recreate_watchpoint): New
3126 (watchpoint_breakpoint_ops): Install new methods.
3127 (print_it_masked_watchpoint): New function.
3128 (masked_watchpoint_breakpoint_ops): Install new methods.
3129 (watch_command_1): Adjust to pass the right breakpoint_ops to
3130 set_raw_breakpoint_without_location rather than setting it
3131 manually later. Record the current pspace.
3132 (print_it_exception_catchpoint): Adjust to take a bpstat as
3134 (gnu_v3_exception_catchpoint_ops): Install new methods.
3135 (say_where): New function.
3136 (null_re_set, null_check_status, null_works_in_software_mode)
3137 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3139 (bp_location_ops): New global.
3140 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3141 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3142 (bkpt_check_status, bkpt_resources_needed)
3143 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3144 (bkpt_print_recreate): New functions.
3145 (bkpt_breakpoint_ops): New global.
3146 (tracepoint_re_set, tracepoint_insert_location)
3147 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3148 (tracepoint_check_status, tracepoint_works_in_software_mode)
3149 (tracepoint_print_it, tracepoint_print_one_detail)
3150 (tracepoint_print_mention, tracepoint_print_recreate): New
3152 (tracepoint_breakpoint_ops): New global.
3153 (delete_breakpoint): Always call the breakpoint's dtor method, and
3154 remove the default handling from here.
3155 (breakpoint_re_set_default): Make static.
3156 (breakpoint_re_set_one): Always call the breakpoints re_set
3157 method, and remove the default handling from here.
3158 (trace_command, ftrace_command, strace_command)
3159 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3160 to create_breakpoint.
3161 (save_breakpoints): Always call the breakpoint's print_recreate
3162 method, and remove the default handling from here.
3164 * ada-lang.c (dtor_exception): Call the base dtor.
3165 (re_set_exception): Call the base method.
3166 (print_it_exception, print_it_catch_exception): Adjust to take a
3168 (catch_exception_breakpoint_ops): Install methods.
3169 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3171 (catch_exception_unhandled_breakpoint_ops): Install methods.
3172 (print_it_catch_assert): Adjust to take a bpstat as argument.
3173 (catch_assert_breakpoint_ops): Install methods.
3175 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3176 to take a bpstat as argument.
3177 (enum print_stop_action): Add describing comments to each enum
3179 (breakpoint_re_set_default): Delete declaration.
3180 (null_re_set, null_works_in_software_mode, null_resources_needed)
3181 (null_check_status, null_print_one_detail): Declare.
3182 (bkpt_breakpoint_ops): Declare.
3183 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3184 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3185 (bkpt_check_status, bkpt_resources_needed)
3186 (bkpt_works_in_software_mode, bkpt_print_it)
3187 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3190 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3191 bkpt_breakpoint_ops.
3192 * python/py-breakpoint.c (bppy_init): Ditto.
3194 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3196 * MAINTAINERS (Write After Approval): Add myself to the list.
3198 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3200 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3202 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3204 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3205 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3206 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3208 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3209 (struct i386_debug_reg_state): New.
3210 (i386_init_dregs): New.
3212 (i386_cleanup_dregs): Use i386_init_dregs.
3213 (i386_show_dr): Add state parameter and adjust.
3214 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3216 (i386_remove_aligned_watchpoint): Likewise.
3217 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3218 (i386_update_inferior_debug_regs): New.
3219 (i386_insert_watchpoint): Work on a local mirror of the debug
3220 registers, and only update the inferior on success.
3221 (i386_remove_watchpoint): Ditto.
3222 (i386_region_ok_for_watchpoint): Adjust.
3223 (i386_stopped_data_address): Adjust.
3224 (i386_insert_hw_breakpoint): Adjust.
3225 (i386_remove_hw_breakpoint): Adjust.
3227 2011-07-22 Tom Tromey <tromey@redhat.com>
3229 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3230 from amd64_pseudo_register_read. Change arguments. Call
3231 mark_value_bytes_unavailable when needed.
3232 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3233 set_gdbarch_pseudo_register_read.
3234 * sentinel-frame.c (sentinel_frame_prev_register): Use
3235 regcache_cooked_read_value.
3236 * regcache.h (regcache_cooked_read_value): Declare.
3237 * regcache.c (regcache_cooked_read_value): New function.
3238 (regcache_cooked_read): Call
3239 gdbarch_pseudo_register_read_value if available.
3240 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3241 (i386_pseudo_register_read): Remove.
3242 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3243 i386_pseudo_register_read. Change arguments. Call
3244 mark_value_bytes_unavailable when needed.
3245 (i386_pseudo_register_read_value): New function.
3246 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3247 not set_gdbarch_pseudo_register_read.
3248 * gdbarch.sh (pseudo_register_read_value): New method.
3249 * gdbarch.c, gdbarch.h: Rebuild.
3250 * findvar.c (value_from_register): Call get_frame_register_value.
3252 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3254 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3256 (display_gdb_prompt): Likewise.
3257 (change_annotation_level): Likewise.
3258 (push_prompt): Likewise.
3259 (pop_prompt): Likewise.
3260 (handle_stop_sig): Use get_prompt with a level.
3261 * top.c (command_loop): Use get_prompt with a level.
3262 (set_async_annotation_level): Use set_prompt with a level.
3263 (get_prefix): New function.
3264 (set_prefix): Ditto.
3265 (set_suffix): Ditto.
3266 (get_suffix): Ditto.
3267 (get_prompt): Accept a level argument.
3268 (set_prompt): Accept a level argument. Free old prompts. Set
3269 new_async_prompt if level is 0.
3270 (init_main): Use set_prompt with a level. Do not set
3272 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3273 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3274 Modify set_prompt, get_prompt to account for levels.
3275 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3277 * python/python.c (before_prompt_hook): Use set_prompt.
3279 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3281 * defs.h: Add guard against inclusion in gdbserver.
3282 (struct ptid, ptid_t): Move to common/ptid.h.
3283 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3284 xsnprintf, internal_error): Move to common/common-utils.h.
3286 * gdb_assert.h: Move into common/ sub-directory.
3287 * gdb_locale.h: Ditto.
3288 * gdb_dirent.h: Ditto.
3289 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3290 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3291 Move into common/ptid.h.
3292 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3293 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3294 Change nomem to malloc_failure.
3295 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3296 * utils.c (nomem): Rename to malloc_failure.
3297 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3298 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3299 (gdb_buildargv): Change nomem to malloc_failure.
3300 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3301 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3302 ptid_is_pid): Move into common/ptid.c.
3303 (initialize_infrun): Delete initialization of null_ptid and
3305 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3306 linux_common_xfer_osdata.
3307 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3308 common/ptid.c and common/buffer.c.
3309 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3310 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3311 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3312 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3314 * common/gdb_assert.h: New.
3315 * common/gdb_dirent.h: New.
3316 * common/gdb_locale.h: New.
3317 * common/buffer.c: New.
3318 * common/buffer.h: New.
3319 * common/ptid.c: New.
3320 * common/ptid.h: New.
3321 * common/xml-utils.c: New.
3322 * common/xml-utils.h: New.
3323 * common/common-utils.c: New.
3324 * common/common-utils.h: New.
3325 * common/linux-osdata.c: New.
3326 * common/linux-osdata.h: New.
3327 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3328 * config/arm/linux.mh (NATDEPFILES): Ditto.
3329 * config/i386/linux.mh (NATDEPFILES): Ditto.
3330 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3331 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3332 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3333 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3334 * config/mips/linux.mh (NATDEPFILES): Ditto.
3335 * config/pa/linux.mh (NATDEPFILES): Ditto.
3336 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3337 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3338 * config/s390/s390.mh (NATDEPFILES): Ditto.
3339 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3340 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3341 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3343 2011-07-21 Matt Rice <ratmice@gmail.com>
3345 * NEWS: Add info macros and info definitions commands.
3347 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3349 * NEWS: Document Python prompt substitution hook.
3351 2011-07-18 Matt Rice <ratmice@gmail.com>
3354 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3355 * macrotab.c (foreach_macro): Ditto.
3356 (foreach_macro_in_scope): Ditto.
3357 * macrocmd.c (print_macro_callback): New function.
3358 (info_macro_command): Move some code to print_macro_definition.
3359 (print_macro_definition): New function.
3360 (print_one_macro): Add new arguments to callback.
3361 (info_definitions_command): New function.
3362 (info_macros_command): Ditto.
3363 (_initialize_macrocmd): Add info macros and info definitions commands.
3364 * symtab.c (add_macro_name): Add new arguments to callback.
3366 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3367 Tom Tromey <tromey@redhat.com>
3369 * top.c (set_prompt): Rewrite to free previous prompt, free
3370 asynch_new_prompt and set both on new prompts.
3371 * event-top.c (display_gdb_prompt): Add prompt substitution
3373 * python/python.c (before_prompt_hook): New function.
3375 2011-07-20 Matt Rice <ratmice@gmail.com>
3377 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3378 arguments to store_unsigned_integer.
3380 2011-07-20 Tom Tromey <tromey@redhat.com>
3382 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3383 in some declaration-only cases.
3385 2011-07-18 Tom Tromey <tromey@redhat.com>
3388 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3389 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3390 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3391 <debug_type_section>: New field.
3392 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3393 (load_cu): Use appropriate section.
3394 (create_signatured_type_table_from_index): Add 'section'
3396 (dwarf2_read_index): Only allow a single .debug_types section.
3397 (dw2_get_file_names): Use appropriate section.
3398 (read_type_comp_unit_head): Add 'section' argument.
3399 (create_debug_types_hash_table): Loop over all .debug_types
3401 (init_cu_die_reader): Use appropriate section.
3402 (process_psymtab_comp_unit, load_partial_comp_unit)
3403 (load_full_comp_unit, read_die_and_children, find_partial_die)
3404 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3405 (lookup_signatured_type_at_offset): Add 'section' argument.
3406 (read_signatured_type_at_offset): Add 'sect' argument.
3407 (read_signatured_type): Use appropriate section.
3408 (set_die_type, get_die_type_at_offset): Update.
3409 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3411 (write_psymtabs_to_index): Don't allow index with more than one
3412 .debug_types section.
3414 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 Fix crash if referenced CU is aged out.
3417 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3418 xfree of block.data.
3419 (indirect_pieced_value): New variable back_to, use to for xfree of
3421 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3423 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3424 (load_cu): New function from ...
3425 (dw2_do_instantiate_symtab): ... the code here ...
3426 (process_full_comp_unit): ... and here.
3427 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3430 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3432 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3435 2011-07-19 Gary Benson <gbenson@redhat.com>
3437 * infrun.c (struct execution_control_state): New member
3438 stop_func_filled_in.
3439 (clear_stop_func, fill_in_stop_func): New functions.
3440 (handle_inferior_event): Call clear_stop_func rather than
3441 manipulating the execution control state directly.
3442 Call fill_in_stop_func lazily as required rather than
3443 directly calling find_pc_partial_function in all cases.
3445 2011-07-18 Tom Tromey <tromey@redhat.com>
3447 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3448 checking for variable-sized array.
3450 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3452 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3453 of supported languages.
3454 * varobj.c: Add top definitions and basic implementation of the
3455 following callbacks: ada_number_of_children, ada_name_of_variable,
3456 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3457 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3458 (languages): Register Ada-specific callbacks.
3459 (variable_language): Add the Ada case in the language setter switch.
3461 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3465 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3468 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3469 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3470 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3471 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3472 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3473 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3474 (struct dwarf_expr_context_funcs): New, move here methods from ...
3475 (struct dwarf_expr_context): ... here. New fields funcs.
3476 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3477 (dwarf_expr_ctx_funcs): New.
3478 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3479 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3480 (needs_frame_ctx_funcs): New.
3481 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3483 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3485 * MAINTAINERS (Write After Approval): Add myself to the list.
3487 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3489 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3490 that CIE pointer of an FDE really points to a CIE .
3492 2011-07-15 Hui Zhu <teawater@gmail.com>
3494 * remote.c (remote_get_trace_status): Add comments.
3496 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3498 Code cleanup - constify struct lval_funcs.
3499 * dwarf2loc.c (pieced_value_funcs): Make it const.
3500 * infrun.c (siginfo_value_funcs): Likewise.
3501 * opencl-lang.c (opencl_value_funcs): Likewise.
3502 * valops.c (value_assign, value_ind): Make the funcs variable const.
3503 * value.c (struct value): Make location.computed.funcs target const.
3504 Rearrange the comments.
3505 (allocate_computed_value): Make the funcs parameter target const.
3506 (value_computed_funcs): Return the funcs target const.
3507 (value_free, value_copy, set_value_component_location): Make the funcs
3509 * value.h (allocate_computed_value): Make the funcs parameter target
3511 (value_computed_funcs): Return the funcs target const.
3512 * windows-tdep.c (tlb_value_funcs): Make it const.
3514 2011-07-14 Hui Zhu <teawater@gmail.com>
3516 * remote.c (remote_get_trace_status): Initialize p.
3518 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 * remote.c (remote_get_trace_status): New variable ex. Put
3522 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3524 2011-07-13 Tom Tromey <tromey@redhat.com>
3526 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3527 value_from_contents for final conversion.
3529 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3532 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3533 Indent prototypes so they do not get into tags.
3535 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3537 Code cleanup making also optimized out values lazy.
3538 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3539 allocate_optimized_out_value. Twice.
3540 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3541 * findvar.c (read_var_value): Likewise.
3542 * value.c (allocate_optimized_out_value): New function.
3543 * value.h (allocate_optimized_out_value): New declaration.
3545 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 Fix occasional crash of CTRL-C during DWARF read in.
3548 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3550 2011-07-11 Tom Tromey <tromey@redhat.com>
3552 * regcache.c (struct regcache_descr): Fix typo.
3553 * i387-tdep.c (i387_supply_xsave): Fix typo.
3555 2011-07-11 Tom Tromey <tromey@redhat.com>
3557 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3558 (read_file_scope, read_type_unit_scope): Use it.
3560 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3562 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3565 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3568 * python/python.c: Set gdbpy_should_print_stack default to off.
3569 (set_python): Deprecate maint set python print-stack to
3571 (_initialize_python): Deprecate maint set/show python print-stack.
3572 Add new prefix command, python. Add new setting, print-backtrace.
3573 * NEWS: Document set python print-stack. Document default change.
3575 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3577 * python/py-inferior.c (infpy_dealloc): New function.
3578 (inferior_to_inferior_object): Return a new object, or a
3579 new reference to the existing object.
3580 (find_thread_object): Cleanup references to inferior.
3581 (delete_thread_object): Ditto.
3582 * python/py-infthread.c (create_thread_object): Do not increment
3583 inferior reference count.
3585 2011-07-08 Tom Tromey <tromey@redhat.com>
3587 * dwarf2loc.c (locexpr_regname): New function.
3588 (locexpr_describe_location_piece): Use it.
3589 (disassemble_dwarf_expression): Add per_cu argument. Use
3591 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3592 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3594 (locexpr_describe_location_1): Add per_cu argument.
3595 (locexpr_describe_location): Update.
3596 (loclist_describe_location): Update.
3598 2011-07-08 Tom Tromey <tromey@redhat.com>
3600 * dwarf2expr.c (execute_stack_op): Add QUIT.
3602 2011-07-07 Hui Zhu <teawater@gmail.com>
3605 2011-07-06 Hui Zhu <teawater@gmail.com>
3606 * remote.c (remote_start_remote): Add TRY_CATCH for
3607 remote_get_trace_status.
3608 * tracepoint.c (disconnect_tracing): Ditto.
3610 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3612 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3613 variables as signed, not unsigned.
3615 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3617 * jit.c (jit_inferior_init): Reformat forward declaration.
3619 2011-07-06 Matt Rice <ratmice@gmail.com>
3621 * MAINTAINERS (Write After Approval): Add myself to the list.
3623 2011-07-06 Hui Zhu <teawater@gmail.com>
3625 * remote.c (remote_start_remote): Add TRY_CATCH for
3626 remote_get_trace_status.
3627 * tracepoint.c (disconnect_tracing): Ditto.
3629 2011-07-05 Tom Tromey <tromey@redhat.com>
3631 * symtab.c (operator_chars): Now static.
3632 * linespec.c (operator_chars): Don't declare.
3634 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3636 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3638 2011-07-05 Tom Tromey <tromey@redhat.com>
3640 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3641 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3642 (TYPE_CPLUS_REALLY_JAVA): New macro.
3643 * dwarf2read.c (process_structure_scope): Set
3644 TYPE_CPLUS_REALLY_JAVA.
3646 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3648 * ada-lang.c: Fix typos.
3649 * amd64-tdep.c: Likewise.
3650 * breakpoint.c: Likewise.
3651 * cli/cli-decode.c: Likewise.
3652 * findcmd.c: Likewise.
3653 * inline-frame.c: Likewise.
3654 * mi/mi-main.c: Likewise.
3655 * minsyms.c: Likewise.
3656 * monitor.c: Likewise.
3657 * monitor.h: Likewise.
3658 * prologue-value.c: Likewise.
3659 * reverse.c: Likewise.
3660 * s390-tdep.c: Likewise.
3662 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3664 * jit.c (jit_inferior_init): Forward declare.
3665 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3667 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3669 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3671 2011-07-04 Tristan Gingold <gingold@adacore.com>
3673 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3674 (tcb_fieldno): Add activation_link field.
3675 (get_known_tasks_addr): Moved and rewritten.
3676 (get_tcb_types_info): Set activation_link field.
3677 (read_known_tasks_array): Add parameter. Rewritten.
3678 (read_known_tasks_list): New function.
3679 (read_known_tasks): New function.
3680 (ada_build_task_list): Call read_known_tasks instead of
3681 read_known_tasks_array.
3682 * ravenscar-thread.c: Add first_task_name constant.
3683 (has_ravenscar_runtime): Check for task list too.
3685 2011-07-04 Tristan Gingold <gingold@adacore.com>
3687 * ada-tasks.c: Renames fieldno to actb_fieldno.
3688 (ada_get_task_number): Indentation.
3689 (get_tcb_types_info): Remove all parameters. Write directly
3691 (ptid_from_atcb_common): Adjust.
3692 (read_atcb): Adjust.
3694 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3696 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3698 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3700 * ui-out.c (ui_out_field_core_addr): Mention that the function
3701 description is in the header file.
3702 * ui-out.h (ui_out_field_core_addr): Document function.
3704 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3706 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3707 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3709 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3711 * symtab.c (expand_line_sal): Remove empty line.
3713 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3715 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3716 same way as ELFOSABI_NONE.
3717 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3719 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3721 * breakpoint.c: Fix typos in comments.
3722 * linespec.c: Likewise.
3723 * symtab.c: Likewise.
3725 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3727 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3728 section in separate object files.
3730 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3732 Fix false GCC warning.
3733 * linespec.c (decode_line_1): Initialize values.
3735 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3737 * linespec.c (find_method): Accept the function type automatically only
3738 if it was specified with parameter types.
3740 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 Stop on first linespec terminator instead of eating what we can.
3743 * linespec.c (is_linespec_boundary): New function.
3744 (name_end): Remove function.
3745 (keep_name_info): New parameter on_boundary, replace the body.
3746 (decode_line_1): Provide the parameter to keep_name_info.
3747 (decode_compound): Likewise. Drop the trailing java return type
3750 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3752 Fall back linespec to minimal symbols.
3753 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3754 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3755 (find_method, symbol_found): Change error to cplusplus_error.
3757 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3759 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3761 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3762 Tom Tromey <tromey@redhat.com>
3764 * dwarf2read.c (check_physname): New variable.
3765 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3766 (show_check_physname): New function.
3767 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3769 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3771 * machoread.c (macho_symfile_read): Delete OBE comment.
3773 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3775 * machoread.c (struct macho_oso_data): Delete.
3776 (current_oso): Delete.
3777 (macho_relocate_common_syms): New function, mostly extracted
3779 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3780 Remove code that sets and unset current_oso.
3781 (macho_symfile_relocate): Delete handling of common symbols,
3782 now moved to macho_relocate_common_syms.
3784 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3786 * darwin-nat.c (darwin_ptrace): Add documentation.
3787 Set errno to zero before calling ptrace. If ptrace returns
3788 -1 and errno is zero, then change then return zero.
3789 (darwin_kill_inferior): Issue a warning instead of triggering
3790 a failed assertion when the PT_KILL ptrace operations returned
3793 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3795 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3796 only when inf->private->no_ptrace.
3798 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3800 * ada-lang.c (print_it_exception): Print temporary catchpoints
3801 as "Temporary catchpoint".
3802 (print_mention_exception): Likewise.
3804 2011-07-01 Tom Tromey <tromey@redhat.com>
3806 * jv-lang.c (java_language_defn): Use java_printchar,
3808 (java_get_encoding): New function.
3809 (java_emit_char): Use generic_emit_char.
3810 (java_printchar): New function.
3811 (java_printstr): Likewise.
3813 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3815 * ada-typeprint.c (print_record_type): If unable to decode
3816 the name of the parent type, use the encoded name.
3818 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3820 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3821 pointer to constrained packed array type output.
3822 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3823 packed array output.
3825 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3827 * ada-typeprint.c (print_array_type): removed if condition on show
3828 being negative for bounds printing.
3830 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3832 * ada-lang.c (ada_identical_enum_types_p): New function.
3833 (symbols_are_identical_enums): New function.
3834 (remove_extra_symbols): Do nothing if NSYMS < 2.
3835 Use symbols_are_identical_enums.
3837 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3839 * ada-valprint.c (ada_value_print): Handle typedefs.
3841 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3843 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3845 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3847 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3848 (decode_constrained_packed_array): Likewise.
3849 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3851 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3853 * ada-exp.y (convert_char_literal): Handle typedef types.
3855 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3857 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3859 2011-06-30 Tom Tromey <tromey@redhat.com>
3861 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3862 * valops.c (find_overload_match): Call do_cleanups on early exit
3864 * solib.c (solib_find): Call do_cleanups on early exit path.
3866 2011-06-30 Tom Tromey <tromey@redhat.com>
3868 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3869 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3870 return paths. Defer final do_cleanups until last return.
3871 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3874 2011-06-30 Tom Tromey <tromey@redhat.com>
3876 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3878 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3880 * MAINTAINERS (Write After Approval): Add myself to the list.
3882 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3884 Disable epilogue unwinders on recent GCCs.
3885 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3886 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3887 * dwarf2read.c (process_full_comp_unit): Initialize
3888 EPILOGUE_UNWIND_VALID.
3889 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3890 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3891 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3893 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3895 Code cleanup - reformatting.
3896 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3897 (producer_is_gcc_ge_4): ... here, change the return value.
3898 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3901 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3903 Fix non-only rename list for Fortran modules import.
3904 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3905 cp_add_using_directive caller.
3906 (cp_add_using_directive): New parameter excludes, describe it. New
3907 variables ix and param. Compare if also excludes match. Allocate NEW
3908 with variable size, initialize EXCLUDES there.
3909 (cp_lookup_symbol_imports): New variable excludep, test
3910 current->EXCLUDES with it.
3911 * cp-support.h: Include vec.h.
3912 (struct using_direct): New field excludes, describe it.
3913 (DEF_VEC_P (const_char_ptr)): New.
3914 (cp_add_using_directive): New parameter excludes.
3915 * defs.h (const_char_ptr): New typedef.
3916 * dwarf2read.c (read_import_statement): New variables child_die,
3917 excludes and cleanups, read in excludes.
3918 (read_namespace): Adjust the cp_add_using_directive caller.
3920 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3923 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3924 negative comparisons.
3926 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3928 * mi/mi-main.c (mi_cmd_list_features): Emit
3929 breakpoint-notifications.
3931 2011-06-29 Tom Tromey <tromey@redhat.com>
3934 * valprint.h (generic_emit_char, generic_printstr): Declare.
3935 * valprint.c (wchar_printable, append_string_as_wide)
3936 (print_wchar): Move from c-lang.c.
3937 (generic_emit_char): New function; mostly taken from c_emit_char.
3938 (generic_printstr): New function; mostly taken from c_printstr.
3939 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3940 represented as arrays.
3941 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3943 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3944 identically to TYPE_CODE_INT.
3945 * f-lang.c (f_get_encoding): New function.
3946 (f_emit_char): Use generic_emit_char.
3947 (f_printchar): Replace comment.
3948 (f_printstr): Use generic_printstr.
3949 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3950 "character" types specially.
3951 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3953 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3955 (c_emit_char): Call generic_emit_char.
3956 (c_printstr): Call generic_printstr.
3958 2011-06-29 Gary Benson <gbenson@redhat.com>
3960 * breakpoint.c (bpstat_what): Removed duplicated case.
3962 2011-06-28 Tom Tromey <tromey@redhat.com>
3964 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3966 2011-06-27 Tom Tromey <tromey@redhat.com>
3968 * valops.c (find_overload_match): Call do_cleanups before early
3970 * top.c (execute_command): Call do_cleanups before early return.
3971 (command_loop): Likewise.
3972 * stack.c (backtrace_command): Make a null cleanup early. Don't
3973 conditionally call do_cleanups.
3974 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3976 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3977 so cleanups are always run.
3978 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3979 * findcmd.c (parse_find_args): Call do_cleanups on early return
3981 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3982 Don't conditionally call do_cleanups.
3983 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3986 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3988 * MAINTAINERS (Write After Approval): Use default email address.
3990 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3992 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3994 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3996 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3997 saved_regs_mask and copied_regs_mask fields.
3998 (sparc_record_save_insn): New prototype.
3999 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4000 (sparc_record_save_insn): New function.
4001 (sparc_analyze_prologue): Add head comment. Recognize store insns
4002 of call-saved registers. Use OFFSET consistently. Recognize flat
4003 frames and cache their settings.
4004 (sparc32_skip_prologue): Handle flat frames.
4005 (sparc_frame_cache): Add frame_offset to the base address.
4006 (sparc32_frame_cache): Adjust to new frame description.
4007 (sparc32_frame_prev_register): Likewise.
4008 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4009 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4010 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4011 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4012 frame by calling sparc_record_save_insn.
4013 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4014 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4015 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4017 2011-06-27 Tristan Gingold <gingold@adacore.com>
4019 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4020 field by map_addr and map_len.
4021 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4022 (munmap_section_buffer): Likewise.
4024 2011-06-24 Tom Tromey <tromey@redhat.com>
4026 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4027 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4028 * python/python.c (gdbpy_parameter): Make 'arg' const.
4029 (execute_gdb_command): Likewise.
4030 (gdbpy_decode_line): Likewise. Copy it.
4031 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4032 (gdbpy_write): Make 'arg' const.
4033 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4035 (gdbpy_lookup_type): Likewise.
4036 * python/py-prettyprint.c (print_children): Make 'name' const.
4037 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4038 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4040 * python/py-function.c (fnpy_init): Make 'name' const.
4041 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4042 (gdbpy_string_to_argv): Make 'input' const.
4043 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4045 * gdbtypes.h (lookup_typename): Update.
4046 * gdbtypes.c (lookup_typename): Make 'name' const.
4047 (lookup_struct): Likewise.
4048 (lookup_union): Likewise.
4049 (lookup_enum): Likewise.
4051 2011-06-24 Tom Tromey <tromey@redhat.com>
4053 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4054 gdb_thread_db.h. Move all common/ entries to be together.
4055 (TAGS): Don't depend on DEPFILES.
4057 2011-06-23 Yao Qi <yao@codesourcery.com>
4059 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4060 * remote.c (remote_start_remote): ... here.
4061 * monitor.c (monitor_open): ... here.
4063 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4065 * gdbtypes.c (append_composite_type_field_aligned): Fix
4066 calculation of bit position based on alignment.
4068 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4070 * breakpoint.c (bpstat_stop_status): Call the check_status
4071 breakpoint_ops method.
4072 (print_one_breakpoint_location): Also print the condition for Ada
4073 exception catchpoints.
4074 (allocate_bp_location): New, factored out from
4075 allocate_bp_location.
4076 (allocate_bp_location): Adjust. Call the owner breakpoint's
4077 allocate_location method, if there is one.
4078 (free_bp_location): Call the locations's dtor method, if there is
4080 (init_raw_breakpoint_without_location): New breakpoint_ops
4082 (set_raw_breakpoint_without_location): Adjust.
4083 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4084 (set_raw_breakpoint): Adjust.
4085 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4086 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4087 re_set and check_status methods.
4088 (init_catchpoint): Don't memset, initialize thread, addr_string
4089 and enable_state. Pass the ops down to init_raw_breakpoint.
4090 (install_catchpoint): Rename to ...
4091 (install_breakpoint): ... this, and make extern.
4092 (create_fork_vfork_event_catchpoint): Adjust.
4093 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4094 re_set and check_status methods.
4095 (create_syscall_event_catchpoint): Adjust.
4096 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4097 (masked_watchpoint_breakpoint_ops): Install NULL
4098 allocate_location, re_set and check_status methods.
4099 (catch_exec_command_1): Adjust.
4100 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4101 re_set and check_status methods.
4102 (create_ada_exception_breakpoint): Rename to ...
4103 (init_ada_exception_breakpoint): ... this. Add a struct
4104 breakpoint parameter, and delete the exp_string, cond_string and
4105 cond parameters. Use init_raw_breakpoint, and don't install or
4106 mention the breakpoint yet. Don't clear breakpoint fields that
4107 init_raw_breakpoint already clears.
4108 (re_set_breakpoint): Delete, split into ...
4109 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4111 (breakpoint_re_set_one): Call the breakpoint's
4112 breakpoint_ops->re_set implementation, if there's one. Adjust.
4113 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4114 (struct bp_location_ops): New type.
4115 (struct bp_location): New field `ops'.
4116 (struct breakpoint_ops): New `allocate_location', `re_set' and
4117 `check_status' fields. Make `breakpoint_hit''s description match
4119 (init_bp_location): Declare.
4120 (breakpoint_re_set_default): Declare.
4121 (create_ada_exception_breakpoint): Rename to ...
4122 (init_ada_exception_breakpoint): ... this. Add a struct
4123 breakpoint parameter, and delete the exp_string, cond_string and
4125 (install_breakpoint): Declare.
4126 * ada-lang.c: Include exceptions.h.
4127 <Ada exceptions description>: Update.
4128 (struct ada_catchpoint_location): New type.
4129 (ada_catchpoint_location_dtor): New function.
4130 (ada_catchpoint_location_ops): New global.
4131 (ada_catchpoint): New type.
4132 (create_excep_cond_exprs): New function.
4133 (dtor_exception, allocate_location_exception, re_set_exception)
4134 (should_stop_exception, check_status_exception): New functions.
4135 (print_one_exception, print_mention_exception)
4136 (print_recreate_exception): Adjust.
4137 (dtor_catch_exception, allocate_location_catch_exception)
4138 (re_set_catch_exception, check_status_catch_exception): New
4140 (catch_exception_breakpoint_ops): Install them.
4141 (dtor_catch_exception_unhandled)
4142 (allocate_location_catch_exception_unhandled)
4143 (re_set_catch_exception_unhandled)
4144 (check_status_catch_exception_unhandled): New functions.
4145 (catch_exception_unhandled_breakpoint_ops): Install them.
4146 (dtor_catch_assert, allocate_location_catch_assert)
4147 (re_set_catch_assert, check_status_catch_assert): New functions.
4148 (catch_assert_breakpoint_ops): Install them.
4149 (ada_exception_catchpoint_p): Delete.
4150 (catch_ada_exception_command_split)
4151 (ada_exception_catchpoint_cond_string): Rename exp_string
4152 parameter to excep_string. Adjust.
4153 (ada_parse_catchpoint_condition): Delete.
4154 (ada_exception_sal): Rename the exp_string parameter to
4155 excep_string. Delete the cond_string and cond parameters.
4157 (ada_decode_exception_location): Rename the exp_string parameter
4158 to excep_string. Delete the cond_string and cond parameters.
4160 (create_ada_exception_catchpoint): New function.
4161 (catch_ada_exception_command, ada_decode_assert_location)
4162 (catch_assert_command): Adjust.
4163 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4165 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4167 * ada-lang.c: Include arch-utils.h.
4168 (ada_decode_exception_location): Make static.
4169 (catch_ada_exception_command): Moved here from breakpoint.c.
4170 (ada_decode_assert_location): Make static.
4171 (catch_assert_command): Moved here from breakpoint.c.
4172 (_initialize_ada_lang): Install the exception and assert
4173 catchpoint commands here.
4174 * ada-lang.h (ada_decode_exception_location)
4175 (ada_decode_assert_location): Delete declarations.
4176 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4178 (create_ada_exception_breakpoint): Make extern.
4179 (catch_ada_exception_command, catch_assert_command): Moved to
4181 (add_catch_command): Make extern.
4182 (_initilize_breakpoint): Don't install the exception and assert
4183 catchpoint commands here.
4184 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4186 (add_catch_command, create_ada_exception_breakpoint): Declare.
4188 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4190 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4191 the breakpoint to the breakpoint chain here.
4192 (set_raw_breakpoint_without_location): Add the breakpoint to the
4193 breakpoint chain here.
4194 (init_raw_breakpoint): Adjust comments.
4195 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4197 (init_catchpoint): Don't set the catchpoint's breakpoint number
4199 (install_catchpoint): New function.
4200 (create_fork_vfork_event_catchpoint)
4201 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4202 use install_catchpoint.
4204 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4206 * breakpoint.c (create_catchpoint_without_mention)
4207 (create_catchpoint): Delete.
4209 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4211 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4212 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4213 reference to exec_pathname.
4214 (struct exec_catchpoint): New type.
4215 (dtor_catch_exec): New function.
4216 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4217 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4218 (catch_exec_command_1): Adjust to use init_catchpoint.
4219 (delete_breakpoint): Remove reference to exec_pathname.
4221 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4223 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4224 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4225 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4226 reference to syscalls_to_be_caught.
4227 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4229 (struct syscall_catchpoint): New type.
4230 (dtor_catch_syscall): New function.
4231 (insert_catch_syscall, remove_catch_syscall)
4232 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4233 (print_recreate_catch_syscall): Adjust.
4234 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4235 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4236 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4237 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4238 (masked_watchpoint_breakpoint_ops)
4239 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4240 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4241 there is one. Remove references to syscalls_to_be_caught.
4242 (catching_syscall_number): Adjust.
4243 * ada-lang.c (catch_exception_breakpoint_ops)
4244 (catch_exception_unhandled_breakpoint_ops)
4245 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4247 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4249 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4251 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4252 reference to forked_inferior_pid.
4253 (struct fork_catchpoint): New type.
4254 (breakpoint_hit_catch_fork, print_it_catch_fork)
4255 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4256 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4257 (create_fork_vfork_event_catchpoint): Adjust to use
4260 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4262 * breakpoint.c (add_to_breakpoint_chain)
4263 (init_raw_breakpoint_without_location): New functions, factored
4265 (set_raw_breakpoint_without_location): ... this one.
4266 (init_raw_breakpoint): New function, factored out from
4267 set_raw_breakpoint and adjusted to use
4268 init_raw_breakpoint_without_location.
4269 (set_raw_breakpoint): Adjust.
4270 (init_catchpoint): New function, factored out from
4271 create_catchpoint_without_mention and adjusted to use
4272 init_raw_breakpoint.
4273 (create_catchpoint_without_mention): Adjust.
4275 2011-06-22 Tom Tromey <tromey@redhat.com>
4277 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4278 argument of 0 specially.
4280 2011-06-22 Yao Qi <yao@codesourcery.com>
4282 * infrun.c (handle_inferior_event): Remove write-only local variable
4283 `sw_single_step_trap_p'.
4285 2011-06-20 Tom Tromey <tromey@redhat.com>
4287 * symtab.c (lookup_language_this): End loop if block is NULL.
4289 2011-06-17 Tom Tromey <tromey@redhat.com>
4291 * valops.c (value_of_this): Use lookup_language_this.
4292 * symtab.h (lookup_language_this): Declare.
4293 * symtab.c (lookup_language_this): New function.
4294 (lookup_symbol_aux): Use lookup_language_this.
4295 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4297 2011-06-17 Tom Tromey <tromey@redhat.com>
4299 * value.h (value_of_this): Update.
4300 (value_of_local): Remove.
4301 * valops.c (value_of_this): Rename from value_of_local. Change
4303 * p-exp.y (exp): Update.
4304 (variable): Likewise.
4305 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4307 2011-06-17 Tom Tromey <tromey@redhat.com>
4309 * valops.c (value_of_local): Complain if NAME is NULL.
4310 * std-operator.def (OP_OBJC_SELF): Remove.
4311 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4312 * objc-exp.y (name_not_typename): Use OP_THIS.
4313 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4315 <OP_OBJC_SELF>: Remove.
4316 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4318 2011-06-16 Tristan Gingold <gingold@adacore.com>
4320 * python/py-events.h (gdb_py_events): Make it extern.
4321 * python/py-evtregistry.c (gdb_py_events): Declare.
4323 2011-06-16 Hui Zhu <teawater@gmail.com>
4325 * remote.c (remote_trace_set_readonly_regions): Add check for
4326 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4329 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4331 * arm-linux-tdep.c: Include "auxv.h".
4333 (ARM_LINUX_SIZEOF_VFP): Define.
4334 (arm_linux_supply_vfp): New function.
4335 (arm_linux_collect_vfp): Likewise.
4336 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4337 (arm_linux_fpa_regset_sections): New variable.
4338 (arm_linux_vfp_regset_sections): Likewise.
4339 (arm_linux_core_read_description): New function.
4340 (arm_linux_init_abi): Install arm_linux_core_read_description and
4341 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4342 appropriate for the architecture.
4343 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4344 (tdesc_arm_with_m): Declare.
4345 (tdesc_arm_with_iwmmxt): Likewise.
4346 (tdesc_arm_with_vfpv2): Likewise.
4347 (tdesc_arm_with_vfpv3): Likewise.
4348 (tdesc_arm_with_neon): Likewise.
4349 * arm-linux-nat.c: Move features/*.c includes ...
4350 * arm-tdep.c: ... here.
4351 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4352 target description data structures ...
4353 * arm-tdep.c (_initialize_arm_tdep): ... here.
4354 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4355 HWCAP_VFPv3D16): Move definitions ...
4356 * arm-linux-tdep.h: ... here.
4358 2011-06-15 Hui Zhu <teawater@gmail.com>
4360 * remote.c (remote_trace_set_readonly_regions): Add a check for
4363 2011-06-14 Tom Tromey <tromey@redhat.com>
4365 * coffread.c (coffread_objfile): Rename from current_objfile.
4366 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4367 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4369 2011-06-14 Tom Tromey <tromey@redhat.com>
4371 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4372 (class_symtab): Remove.
4373 (jv_dynamics_progspace_key): New global.
4374 (jv_per_objfile_free): Reset program space data. Update assert.
4375 Don't clear globals.
4376 (get_dynamics_objfile): Use and set program space data.
4377 (get_java_class_symtab): Use get_dynamics_objfile.
4378 (add_class_symbol): Likewise.
4379 (java_link_class_type): Likewise.
4380 (java_object_type, jv_clear_object_type, set_java_object_type):
4382 (get_java_object_type): Update. Don't cache result.
4383 (is_object_type): Don't call set_java_object_type.
4384 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4385 initialize jv_dynamics_progspace_key.
4387 2011-06-14 Tom Tromey <tromey@redhat.com>
4389 * symtab.h (current_objfile): Don't declare.
4390 * objfiles.h (current_objfile): Don't declare.
4391 * objfiles.c (current_objfile): Remove.
4392 * mdebugread.c (current_objfile): New file-scope global.
4393 * dbxread.c (current_objfile): New file-scope global.
4394 * coffread.c (current_objfile): New file-scope global.
4396 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4398 * top.h (line): Rename to ...
4399 (saved_command_line): ... this.
4400 (linesize): Rename to ...
4401 (saved_command_line_size): ... this.
4402 * top.c (line): Rename to ...
4403 (saved_command_line): ... this.
4404 (linesize): Rename to ...
4405 (saved_command_line_size): ... this.
4406 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4407 * event-top.c (command_line_handler): Adjust.
4408 * main.c (captured_main): Adjust.
4410 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4412 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4413 get_frame_func instead of get_frame_pc to determine the code
4414 address used to construct the frame ID.
4415 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4416 (i386_epilogue_frame_this_id): Likewise.
4417 (i386_epilogue_frame_prev_register): New function.
4418 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4419 (i386_stack_tramp_frame_sniffer): Fix coding style.
4420 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4421 (i386_gdbarch_init): Fix comments.
4423 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4425 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4426 instruction when walking back through the instruction stream.
4428 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4430 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4431 fullname parameters order.
4433 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4436 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4438 * psymtab.c (map_symbol_filenames_psymtab)
4439 (map_partial_symbol_filenames): Likewise.
4440 * psymtab.h: Include symfile.h.
4441 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4442 * symfile.h (symbol_filename_ftype): New.
4443 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4444 map_symbol_filenames, clarify more the naming in comment.
4446 2011-06-07 Doug Evans <dje@google.com>
4448 * cc-with-index.sh: Fix typos in comment.
4449 Look for ../../gdb, for fullname.exp.
4451 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4452 Pedro Alves <pedro@codesourcery.com>
4454 * cli/cli-cmds.c (shell_escape): Use waitpid.
4455 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4457 2011-06-07 Tristan Gingold <gingold@adacore.com>
4459 * xcoffread.c (dwarf2_xcoff_names): New variable.
4460 (aix_process_linenos): Add a guard.
4461 (xcoff_symfile_finish): Free dwarf2.
4462 (xcoff_initial_scan): Add dwarf2 support.
4464 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4466 * infcall.c (run_inferior_call): Don't mask async. Instead force
4467 a synchronous wait, if the target can async.
4469 * target.h (struct target_ops): Delete to_async_mask.
4470 (target_async_mask): Delete.
4471 * target.c (update_current_target): Delete references to to_async_mask.
4472 * linux-nat.c (linux_nat_async_mask_value): Delete.
4473 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4474 to linux_nat_async_mask_value.
4475 (linux_nat_async_mask): Delete.
4476 (linux_nat_async, linux_nat_close): Remove references to
4477 linux_nat_async_mask_value.
4478 * record.c (record_async_mask_value): Delete.
4479 (record_async): Remove references to record_async_mask_value.
4480 (record_async_mask): Delete.
4481 (record_can_async_p, record_is_async_p): Remove references to
4482 record_async_mask_value.
4483 (init_record_ops, init_record_core_ops): Remove references to
4485 * remote.c (remote_async_mask_value): Delete.
4486 (init_remote_ops): Remove reference to remote_async_mask.
4487 (remote_can_async_p, remote_is_async_p): Remove references to
4488 remote_async_mask_value.
4489 (remote_async): Remove references to remote_async_mask_value.
4490 (remote_async_mask): Delete.
4492 * infrun.c (fetch_inferior_event): Don't claim registers changed
4493 if the current thread is already not executing.
4495 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4497 From Stephen Kitt <steve@sk2.org>
4498 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4499 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4501 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4503 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4504 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4506 2011-06-03 Tom Tromey <tromey@redhat.com>
4508 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4510 * python/py-exitedevent.c (create_exited_event_object): Change
4511 type of 'exit_code'. Optionally add exit_code attribute.
4512 (emit_exited_event): Change type of 'exit_code'.
4513 * python/py-event.h (emit_exited_event): Update.
4514 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4515 * infrun.c (handle_inferior_event): Set exit code fields on
4517 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4519 * inferior.c (exit_inferior_1): Initialize new fields.
4521 2011-06-03 Tom Tromey <tromey@redhat.com>
4523 * dwarf2expr.c (get_signed_type): New function.
4524 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4526 2011-06-02 Keith Seitz <keiths@redhat.com>
4528 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4530 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4532 * top.h (simplified_command_loop): Delete declaration.
4534 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4536 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4537 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4539 2011-06-01 Yao Qi <yao@codesourcery.com>
4541 * objfiles.h (obj_section_addr): Update reference to objfile from
4543 (obj_section_endaddr): Likewise.
4545 2011-06-01 Daniel Jacobowitz <drow@false.org>
4547 * MAINTAINERS: Update my email address and affiliation. Also
4548 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4550 2010-05-31 Keith Seitz <keiths@redhat.com>
4553 * linespec.c (get_search_block): New function.
4554 (find_methods): Add FILE_SYMTATB parameter and use it and
4555 get_search_block to pass an appropriate block to
4556 lookup_symbol_in_namespace.
4557 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4558 Check if *ARGPTR starts with a filename first.
4559 If it does, call locate_first_half again to locate the next
4560 "first half" of the linespec.
4561 Pass FILE_SYMTATB to decode_objc and decode_compound.
4562 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4563 (locate_first_half): Stop on the first colon seen.
4564 (decode_compound): Add FILE_SYMTAB parameter.
4565 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4566 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4567 get_search_block with lookup_symbol.
4568 (find_method): Add FILE_SYMTAB parameter and pass it to
4570 (decode_objc): Use get_search_block.
4572 2010-05-31 Keith Seitz <keiths@redhat.com>
4575 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4576 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4577 and CP_ANONYMOUS_NAMESPACE_LEN.
4578 (cp_is_anonymous): Likewise.
4579 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4580 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4581 * dwarf2read.c (namespace_name): Likewise.
4582 (fixup_partial_die): Likewise.
4583 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4584 seen in the input, keep it.
4586 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4588 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4589 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4590 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4591 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4592 * remote.c (_initialize_remote): Register
4593 async_remote_interrupt_twice directly as
4594 sigint_remote_twice_token event.
4596 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4598 * target.h (enum inferior_event_type): Delete INF_ERROR.
4599 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4601 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4603 * interps.c (interp_set): Don't cancel continuations.
4605 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4607 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4609 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4611 * continuations.h (continuation_ftype): Add `err' parameter.
4612 Document parameters.
4613 (do_all_continuations, do_all_continuations_thread)
4614 (do_all_intermediate_continuations)
4615 (do_all_intermediate_continuations_thread)
4616 (do_all_inferior_continuations): Add `err' parameter.
4617 * continuations.c (do_my_continuations_1, do_my_continuations)
4618 (do_all_inferior_continuations, do_all_continuations_ptid)
4619 (do_all_continuations_thread_callback)
4620 (do_all_continuations_thread, do_all_continuations)
4621 (do_all_intermediate_continuations_thread_callback)
4622 (do_all_intermediate_continuations_thread)
4623 (do_all_intermediate_continuations): Add `err' parameter, and pass
4624 it down all the way to the continuations proper.
4625 * inf-loop.c (inferior_event_handler): If fetching an inferior
4626 event throws an error, don't pop the target, and still call the
4627 continuations, but with `err' set. Adjust all other continuation
4629 * breakpoint.c (until_break_command_continuation): Add `err'
4631 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4632 issue another step if `err' is set.
4633 (struct until_next_continuation_args): New.
4634 (until_next_continuation): Add `err' parameter. Adjust.
4635 (until_next_command): Adjust.
4636 (struct finish_command_continuation_args): Add `thread' field.
4637 (finish_command_continuation): Add `err' parameter. Handle it.
4638 (finish_forward): Adjust.
4639 (attach_command_continuation): Add `err' parameter. Handle it.
4640 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4641 cancel the continuations.
4642 * interps.c (interp_set): Adjust to cancel the continuations.
4643 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4644 continuations rather than discarding.
4645 (free_thread): Don't clear thread inferior resources here.
4646 (delete_thread_1): Do it here instead. And do it before removing
4647 the thread from the threads list. Tag the thread as exited before
4648 clearing thread inferior resources.
4650 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4652 * infcall.c (call_function_by_hand): Rephrase error message.
4654 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4656 * defs.h (struct thread_info, struct inferior): Delete forward
4658 * breakpoint.h (struct thread_info): New forward declaration.
4659 * observer.sh (struct inferior): New forward declaration.
4660 * python/python-internal.h (struct inferior): New forward
4663 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4665 * defs.h (struct continuation, continuation_ftype)
4666 (continuation_free_arg_ftype, add_continuation)
4667 (do_all_continuations, do_all_continuations_thread)
4668 (discard_all_continuations, discard_all_continuations_thread)
4669 (add_intermediate_continuation, do_all_intermediate_continuations)
4670 (do_all_intermediate_continuations_thread)
4671 (discard_all_intermediate_continuations)
4672 (discard_all_intermediate_continuations_thread)
4673 (add_inferior_continuation, do_all_inferior_continuations)
4674 (discard_all_inferior_continuations): Move to ...
4675 * continuations.h: ... this new file.
4676 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4677 infcmd.c, inferior.c, infrun.c, interps.c: Include
4680 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4681 Doug Evans <dje@google.com>
4683 Fix PR 10970, PR 12702.
4684 * linux-nat.c (linux_lwp_is_zombie): New function.
4685 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4686 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4688 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4690 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4692 (add_continuation, add_intermediate_continuation)
4693 (add_inferior_continuation): Use them.
4694 * continuations.c (struct continuation): Use them.
4695 (make_continuation_ftype): Delete.
4696 (make_continuation, add_inferior_continuation, add_continuation)
4697 (add_intermediate_continuation): Use continuation_ftype and
4698 continuation_free_arg_ftype. Rename parameters to shorter names.
4700 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4702 * continuations.c (make_continuation): Make it return void.
4703 (do_my_continuations): Rename to ...
4704 (do_my_continuations_1): ... this. Remove old_chain parameter and
4706 (do_my_continuations): New.
4707 (discard_my_continuations): Rename to ...
4708 (discard_my_continuations_1): ... this. Remove old_chain
4709 parameter and adjust.
4710 (discard_my_continuations): New.
4711 (add_inferior_continuation): Simplify.
4712 (do_all_inferior_continuations): Reimplement on top
4713 do_my_continuations.
4714 (discard_all_inferior_continuations): Simplify.
4715 (add_continuation): Simplify.
4716 (do_all_continuations_ptid): Simplify.
4717 (discard_all_continuations_thread_callback): Simplify.
4718 (add_intermediate_continuation): Simplify.
4719 (discard_all_intermediate_continuations_thread_callback):
4722 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4724 * utils.c (struct continuation, add_continuation)
4725 (add_inferior_continuation)
4726 (do_all_inferior_continuations, discard_all_inferior_continuations)
4727 (restore_thread_cleanup, do_all_continuations_ptid)
4728 (do_all_continuations_thread_callback)
4729 (do_all_continuations_thread, do_all_continuations)
4730 (discard_all_continuations_thread_callback)
4731 (discard_all_continuations_thread, discard_all_continuations)
4732 (add_intermediate_continuation)
4733 (do_all_intermediate_continuations_thread_callback)
4734 (do_all_intermediate_continuations_thread)
4735 (do_all_intermediate_continuations)
4736 (discard_all_intermediate_continuations_thread_callback)
4737 (discard_all_intermediate_continuations_thread)
4738 (discard_all_intermediate_continuations): Move to ...
4739 * continuations.c: ... this new file, and adjust to no longer
4740 implement continuations on top of cleanups.
4741 * Makefile.in (SFILES): Add continuations.c.
4742 (COMMON_OBS): Add continuations.o.
4744 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4746 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4747 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4748 Internal error on invalid values.
4749 * reverse.c: Don't handle EXEC_ERROR.
4750 * mi/mi-main.c: Don't handle EXEC_ERROR.
4752 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4754 * record.c: Include event-loop.h, inf-loop.h.
4755 (record_beneath_to_async): New global.
4756 (tmp_to_async): New global.
4757 (record_async_inferior_event_token): New global.
4758 (record_open_1): Don't error out if async is enabled.
4759 (record_open): Handle to_async. Create an async event source in
4761 (record_close): Delete the async event source.
4762 (record_resumed): New global.
4763 (record_execution_dir): New global.
4764 (record_resume, record_core_resume): Set them. Register the
4765 target on the event loop.
4766 (record_wait): Rename to ...
4767 (record_wait_1): ... this. Add more debug output. Handle
4768 TARGET_WNOHANG, and the target beneath returning
4769 TARGET_WAITKIND_IGNORE.
4770 (record_wait): Reimplement on top of record_wait_1.
4771 (record_async_mask_value): New global.
4772 (record_async, record_async_mask, record_can_async_p)
4773 (record_is_async_p, record_execution_direction): New functions.
4774 (init_record_ops, init_record_core_ops): Install new methods.
4775 * infrun.c (fetch_inferior_event): Temporarily switch the global
4776 execution direction to the direction the target was going.
4777 (execution_direction): Change type to int.
4778 * target.c (default_execution_direction): New function.
4779 (update_current_target): Inherit and de_fault
4780 to_execution_direction.
4781 * target.h (struct target_ops) <to_execution_direction>: New
4783 (target_execution_direction): New macro.
4784 * inferior.h (execution_direction): Change type to int.
4786 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4788 * infcall.c (call_function_by_hand): Don't allow calling functions
4789 in reverse execution mode.
4791 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4793 * infcmd.c (finish_command): Allow async finish in reverse.
4795 2011-05-26 Yao Qi <yao@codesourcery.com>
4797 * gdb_thread_db.h: Delete. Move to ...
4798 * common/gdb_thread_db.h: ... here.
4800 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4802 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4803 function's entry point instead of a manually managed momentary
4804 breakpoint, and only ever issue one proceed call.
4805 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4806 doing a reverse-finish, switch to stepi mode, to do another step.
4807 (insert_step_resume_breakpoint_at_sal): Make public.
4808 (normal_stop): No need to save function value return registers if
4810 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4812 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4814 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4815 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4816 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4818 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4819 step-resume breakpoints.
4820 (print_it_typical): Handle bp_hp_step_resume.
4821 (bpstat_what): Ditto.
4822 (bptype_string): Ditto.
4823 (print_one_breakpoint_location): Ditto.
4824 (allocate_bp_location): Ditto.
4826 (breakpoint_re_set_one): Ditto.
4827 * infrun.c (handle_inferior_event): Adjust. Split
4828 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4829 BPSTAT_WHAT_HP_STEP_RESUME.
4830 (insert_step_resume_breakpoint_at_sal): Rename to ...
4831 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4832 parameter. Handle it.
4833 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4834 insert_step_resume_breakpoint_at_sal_1.
4835 (insert_step_resume_breakpoint_at_frame): Rename to ...
4836 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4837 set a high-priority step-resume breakpoint.
4838 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4839 (insert_step_resume_breakpoint_at_caller): Ditto.
4841 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4843 * breakpoint.c (iterate_over_related_breakpoints): New.
4844 (do_map_delete_breakpoint): New.
4845 (delete_command): Pass do_map_delete_breakpoint to
4846 map_breakpoint_numbers.
4847 (do_disable_breakpoint): New.
4848 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4850 (do_enable_breakpoint): Rename to ...
4851 (enable_breakpoint_disp): ... this.
4852 (enable_breakpoint): Adjust.
4853 (do_enable_breakpoint): New.
4854 (enable_once_breakpoint): Delete.
4855 (do_map_enable_breakpoint): New.
4856 (do_map_enable_once_breakpoint): New.
4857 (enable_once_command, enable_delete_command)
4858 (delete_trace_command): Iterate over the breakpoint's related
4861 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4863 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4864 for ALPHA_ZERO_REGNUM.
4865 (alpha_supply_int_regs): Explicitly supply zero as the value for
4866 ALPHA_ZERO_REGNUM in the register cache.
4867 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4869 2011-05-26 Yao Qi <yao@codesourcery.com>
4871 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4873 2011-05-26 Tristan Gingold <gingold@adacore.com>
4875 * symfile.h (struct dwarf2_section_names): New type.
4876 (struct dwarf2_debug_sections): New type.
4877 (dwarf2_has_info): Add parameter.
4878 * dwarf2read.c (dwarf2_elf_names): New variable.
4879 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4880 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4881 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4882 (dwarf2_has_info): Add names parameter. Pass names
4883 to dwarf2_locate_sections.
4884 (section_is_p): Rewrite using the names parameter.
4885 (dwarf2_locate_sections): Use section names from the names parameter.
4886 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4887 * elfread.c (read_psyms): Ditto.
4888 * machoread.c (macho_symfile_read): Ditto.
4890 2011-05-25 Andreas Schwab <schwab@redhat.com>
4893 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4895 2011-05-24 Keith Seitz <keiths@redhat.com>
4898 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4899 (decode_compound): Unconditionally call keep_name_info.
4901 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4903 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4904 scope, clear its command list.
4905 (map_breakpoint_numbers): Don't walk the related breakpoints list
4908 2011-05-24 Tom Tromey <tromey@redhat.com>
4910 * MAINTAINERS: Move Jim Blandy to past maintainers.
4912 2011-05-24 Tristan Gingold <gingold@adacore.com>
4914 * symfile.h (enum dwarf2_section_enum): New type.
4915 (dwarf2_get_section_info): New prototype.
4916 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4917 section_name by sect. Use a switch to select the info.
4918 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4919 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4921 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4923 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4924 shared library event breakpoint if there's no execution.
4926 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4928 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4929 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4931 2011-05-23 Tom Tromey <tromey@redhat.com>
4933 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4936 2011-05-23 Doug Evans <dje@google.com>
4938 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4939 entry for RuntimeError to doc string.
4941 2011-05-23 Jerome Guitton <guitton@adacore.com>
4943 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4944 sequence for probing loops.
4946 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4948 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4951 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4953 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4954 zero as the value for %g0 in the register cache.
4955 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4956 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4958 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4960 * infrun.c (proceed): Set previous_inferior_ptid here.
4961 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4962 inferior_ptid, not null_ptid.
4963 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4964 (fetch_inferior_event): Nor here.
4966 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4968 * inf-loop.c (inferior_event_handler): Only output a message if
4971 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4973 * MAINTAINERS: Update my e-mail address.
4975 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4977 * infrun.c (proceed): Switch the inferior event loop to
4978 INF_EXEC_COMPLETE if the target refused to resume from a
4981 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4983 * infcmd.c: Include "inf-loop.h".
4984 (step_once): When stepping into an inline subroutine, pretend the
4985 target has run. If the target can async, switch the inferior
4986 event loop to INF_EXEC_COMPLETE.
4987 * inferior.h (user_visible_resume_ptid): Declare.
4988 * infrun.c (user_visible_resume_ptid): New function, factored out
4991 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4992 that the current thread is running. Merge async and sync
4995 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4997 * infcmd.c (step_1): Simplify synchronous case.
4999 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5001 * tracepoint.c: Include exceptions.h.
5002 (TFILE_PID): Move higher in file.
5003 (tfile_open): Delay pushing the tfile target until we're assured
5004 the tfile header is present in the file. Wrap reading the initial
5005 newline-terminated lines in TRY_CATCH. Pop the target if the
5006 initial setup failed. Add the tfile's thread immediately
5007 aftwards, before any non-essential setup. Don't skip
5008 post_create_inferior if there are no traceframes present in the
5010 (tfile_close): Remove redundant check for null before xfree call.
5011 (tfile_thread_alive): New function.
5012 (init_tfile_ops): Register it as to_thread_alive callback.
5014 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5016 * tracepoint.c (tfile_open): Delete #if 0'd code.
5018 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5020 Fix -readnow for -gdwarf-4 unused type units.
5021 * dwarf2read.c (struct signatured_type): Remove the field offset.
5022 (create_signatured_type_table_from_index): Remove its initialization.
5023 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5024 instead. Add a complaint call.
5025 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5026 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5027 (lookup_signatured_type_at_offset, read_signatured_type)
5028 (write_one_signatured_type): Update the field for per_cu.
5030 2011-05-19 Tom Tromey <tromey@redhat.com>
5032 * python/py-inferior.c (python_inferior_exit): Use
5034 (python_on_resume): Likewise.
5036 2011-05-19 Matt Rice <ratmice@gmail.com>
5038 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5040 2011-05-19 Hui Zhu <teawater@gmail.com>
5042 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5044 2011-05-19 Hui Zhu <teawater@gmail.com>
5046 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5048 2011-05-18 Tom Tromey <tromey@redhat.com>
5050 * dwarf2read.c (dwarf2_add_field): Constify.
5051 * value.c (value_static_field): Constify.
5052 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5054 * ax-gdb.c (gen_static_field): Constify
5056 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5058 * linux-nat.c (kill_callback): Use SIGKILL first.
5060 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5062 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5064 2011-05-18 Tom Tromey <tromey@redhat.com>
5066 * value.c (value_fn_field): Constify.
5067 * symtab.c (gdb_mangle_name): Constify.
5068 * stabsread.c (update_method_name_from_physname): Make 'physname'
5070 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5071 const. Use explicit fputc_filtered loop.
5072 (pascal_type_print_base): Constify.
5073 * p-lang.h (pascal_type_print_method_args): Update.
5074 * linespec.c (add_matching_methods): Constify.
5075 (add_constructors): Likewise.
5076 * jv-typeprint.c (java_type_print_base): Constify.
5077 * gdbtypes.h (struct cplus_struct_type)
5078 <fn_fieldlist.fn_field.physname>: Now const.
5079 * dwarf2read.c (compute_delayed_physnames): Constify.
5080 (dwarf2_add_member_fn): Likewise.
5081 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5083 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5085 * infrun.c (resume): Mention which is the current thread, and its
5086 current PC in debug output.
5087 (prepare_to_proceed): Mention the thread switching in debug
5090 2011-05-18 Tom Tromey <tromey@redhat.com>
5092 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5093 path check. Use xmalloc and cleanups.
5094 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5096 2011-05-17 Tom Tromey <tromey@redhat.com>
5098 * cp-valprint.c (cp_print_value_fields): Catch errors from
5101 2011-05-17 Tom Tromey <tromey@redhat.com>
5103 * dwarf2read.c (dwarf2_get_die_type): Call
5104 get_die_type_at_offset.
5105 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5106 get_base_type function.
5108 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5110 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5113 2011-05-16 Doug Evans <dje@google.com>
5115 * python/py-auto-load.c (source_section_scripts): Mention objfile
5118 2011-05-15 Doug Evans <dje@google.com>
5120 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5121 (try_thread_db_load_from_pdir): Call it. If unable to find
5122 libthread_db in directory of libpthread, see if we're looking at
5123 the separate-debug-info copy.
5125 * python/py-autoload.c (print_script): Print "Missing" instead of
5126 "No" for missing scripts.
5127 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5129 2011-05-13 Doug Evans <dje@google.com>
5131 * ui-file.c (stdio_file_write_async_safe): Add comment.
5133 2011-05-14 Hui Zhu <teawater@gmail.com>
5135 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5137 2011-05-13 Doug Evans <dje@google.com>
5139 Support $pdir and $sdir in libthread-db-search-path.
5140 * NEWS: Mention $sdir,$pdir.
5141 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5142 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5143 (try_thread_db_load_from_sdir): New function.
5144 (try_thread_db_load_from_dir): New function.
5145 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5146 system directories if search of libthread-db-search-path fails,
5147 that is now done via $sdir.
5148 (has_libpthread): New function.
5149 (thread_db_load): Remove search for libthread_db in directory of
5150 libpthread, that is now done via $pdir.
5152 * NEWS: Mention "info auto-load-scripts".
5153 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5154 script_not_found_warning_printed.
5155 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5156 all callers updated. Initialize script_not_found_warning_printed.
5157 (get_auto_load_pspace_data_for_loading): New function.
5158 (maybe_add_script): New function.
5159 (source_section_scripts): Simplify. Only print one warning regardless
5160 of the number of auto-load scripts not found.
5161 (clear_section_scripts): Clear script_not_found_warning_printed.
5162 (auto_load_objfile_script): Record script in hash table.
5163 (count_matching_scripts): New function.
5164 (maybe_print_script): Renamed from maybe_print_section_script, all
5165 callers updated. Rewrite to use ui_out_*.
5166 (info_auto_load_scripts): Renamed from
5167 maintenance_print_section_scripts, all callers updated.
5168 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5169 renamed as "info auto-load-scripts".
5171 2011-05-13 Tom Tromey <tromey@redhat.com>
5173 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5174 (read_sleb128): Likewise.
5176 2011-05-13 Tom Tromey <tromey@redhat.com>
5178 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5181 2011-05-13 Doug Evans <dje@google.com>
5183 * linux-nat.c (debug_linux_nat_async): Delete.
5184 Replace all references to use debug_linux_nat instead.
5185 (show_debug_linux_nat_async): Delete.
5186 (sigchld_handler): Call ui_file_write_async_safe instead of
5188 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5189 * ui-file.c (struct ui_file): New member to_write_async_safe.
5190 (null_file_write_async_safe): New function.
5191 (ui_file_write_async_safe): New function.
5192 (set_ui_file_write_async_safe): New function.
5193 (ui_file_new): Initialize to_write_async_safe.
5194 (stdio_file_write_async_safe): New function.
5195 (struct stdio_file): New member fd.
5196 (stdio_file_new): Initialize to_write_async_safe, fd.
5197 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5199 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5200 (set_ui_file_write_async_safe): Declare.
5201 (ui_file_write_async_safe): Declare.
5203 2011-05-13 Tom Tromey <tromey@redhat.com>
5205 * utils.c (do_value_free): New function.
5206 (make_cleanup_value_free): Likewise.
5207 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5209 (dwarf2_loc_desc_needs_frame): Call
5210 make_cleanup_value_free_to_mark.
5211 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5212 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5214 (new_dwarf_expr_context): Don't call value_mark.
5215 * dwarf2-frame.c (execute_stack_op): Call
5216 make_cleanup_value_free_to_mark.
5217 * defs.h (make_cleanup_value_free): Declare.
5219 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5221 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5222 prepare_execute_command.
5223 * top.c (prepare_execute_command): Return cleanup.
5224 (execute_command): Use cleanup from prepare_execute_command.
5225 * top.h (prepare_execute_command): Change prototype to return
5227 * defs.h (struct value): Add opaque declaration.
5228 (make_cleanup_value_free_to_mark): Add prototype.
5229 * utils.c (do_value_free_to_mark): New function.
5230 (make_cleanup_value_free_to_mark): Likewise.
5232 2011-05-12 Tom Tromey <tromey@redhat.com>
5234 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5235 cast left-hand-side to unsigned.
5237 2011-05-12 Tom Tromey <tromey@redhat.com>
5240 * value.h (value_from_contents): Declare.
5241 * value.c (value_from_contents): New function.
5242 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5243 (dwarf2_get_die_type): New function.
5244 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5245 (allocate_piece_closure): Acquire reference to values.
5246 (read_pieced_value): Update for value-based expressions.
5247 (write_pieced_value): Likewise.
5248 (free_pieced_value_closure): Call value_free as needed.
5249 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5250 Update for value-based expressions.
5251 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5252 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5253 <get_base_type>: New field.
5254 (struct dwarf_expr_piece) <v.value>: Change type.
5255 <v.regno>: New field.
5256 (struct dwarf_expr_context) <mark>: New field.
5257 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5258 (dwarf_expr_pop, dwarf_expr_push): Remove.
5259 (dwarf_expr_push_address): Declare.
5260 * dwarf2expr.c (dwarf_arch_cookie): New global.
5261 (struct dwarf_gdbarch_types): New.
5262 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5264 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5266 (dwarf_expr_push_address): New function.
5267 (dwarf_expr_pop): Now static.
5268 (dwarf_expr_fetch): Change return type.
5269 (dwarf_require_integral): New function.
5270 (dwarf_expr_fetch): Simplify.
5271 (add_piece): Update.
5272 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5274 (execute_stack_op) <sign_ext>: Remove.
5275 Use values for DWARF stack.
5276 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5277 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5279 (_initialize_dwarf2expr): New function.
5280 (add_piece): Update.
5281 (new_dwarf_expr_context): Set new field.
5282 (free_dwarf_expr_context): Call value_free_to_mark.
5283 * dwarf2-frame.c (no_base_type): New function.
5284 (execute_stack_op): Set get_base_type field. Update.
5286 2011-05-12 Tom Tromey <tromey@redhat.com>
5288 * dwarf2read.c (read_common_block): Fix formatting.
5290 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5292 * breakpoint.c (disable_breakpoint): Disable all locations
5293 associated with a tracepoint on target if a trace experiment is
5295 (disable_command): Disable a specific tracepoint location on target if
5296 a trace experiment is running.
5297 (do_enable_breakpoint): Enable all locations associated with a
5298 tracepoint on target if a trace experiment is running.
5299 (enable_command) Enable a specific tracepoint location on target if a
5300 trace experiment is running.
5301 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5302 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5303 to_disable_tracepoint.
5304 * target.h: Add declaration of struct bp_location.
5305 (struct target_ops): Add new functions
5306 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5307 to_disable_tracepoint to target operations.
5308 (target_supports_enable_disable_tracepoint): New macro.
5309 (target_enable_tracepoint): New macro.
5310 (target_disable_tracepoint): New macro.
5311 * remote.c (struct remote_state): Add new field.
5312 (remote_enable_disable_tracepoint_feature): New.
5313 (remote_protocol_features): Add new entry.
5314 (remote_supports_enable_disable_tracepoint): New.
5315 (remote_enable_tracepoint): New.
5316 (remote_disable_tracepoint): New.
5317 (init_remote_ops): Add remote_enable_tracepoint,
5318 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5319 to remote operations.
5320 * tracepoint.c (start_tracing): Allow tracing to start without any
5321 tracepoints enabled with just a warning if they can be re-enabled
5323 * NEWS: Add news item for the new behaviour of the enable and disable
5324 GDB commands when applied to tracepoints.
5325 Add news items for the new remote packets QTEnable and QTDisable.
5327 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5329 * config.in: Regenerate.
5330 * configure: Regenerate.
5331 * configure.ac <--with-system-readline> (for readline_echoing_p):
5333 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5334 (tui_old_rl_echoing_p): ... here.
5335 (tui_setup_io): Rename extern declaration readline_echoing_p to
5336 _rl_echoing_p. Adjust assignments for the both renames.
5338 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5340 * symtab.c (lookup_symtab): Run cleanup before returning.
5342 2011-05-11 Tom Tromey <tromey@redhat.com>
5344 * dwarf2read.c (handle_data_member_location): New function.
5345 (dwarf2_add_field): Use it.
5346 (read_common_block): Likewise.
5348 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5350 Make addrs->SECTINDEX always defined.
5351 * symfile.c (relative_addr_info_to_section_offsets): Check for
5352 SECTINDEX -1, not for zero ADDR.
5353 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5354 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5355 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5358 2011-05-10 Doug Evans <dje@google.com>
5360 * linux-thread-db.c: Whitespace cleanup.
5361 (try_thread_db_load_1): Fix comment.
5363 * linux-thread-db.c (set_libthread_db_search_path): New function.
5364 (_initialize_thread_db): Add setter for libthread-db-search-path.
5366 2011-05-09 Doug Evans <dje@google.com>
5368 * NEWS: Mention --with-iconv-bin.
5369 * configure.ac: New option --with-iconv-bin.
5370 * configure: Regenerate.
5371 * config.in: Regenerate.
5372 * defs.h (relocate_gdb_directory): Declare.
5373 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5374 removed progname parameter, and exported. All callers updated.
5375 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5377 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5378 adding missing call to restore_child_signals_mask.
5380 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5382 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5384 * infrun.c (proceed, start_remote): Adjust.
5385 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5386 and adjust to not handle it.
5387 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5388 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5389 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5390 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5391 * windows-nat.c (do_initial_windows_stuff): Adjust.
5392 * infcmd.c (attach_command): Adjust.
5393 (notice_new_inferior): Adjust.
5395 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5397 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5398 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5399 * spu-tdep.c (op_selb): Use correct value.
5401 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5403 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5404 "parent" parameter to symbol_file_add_from_bfd call.
5406 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5407 Thiago Jung Bauermann <bauerman@br.ibm.com>
5409 Implement support for PowerPC BookE masked watchpoints.
5410 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5412 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5413 method. Initialize to NULL in all existing breakpoint_ops instances.
5414 (struct breakpoint) <hw_wp_mask>: New field.
5415 * breakpoint.c (is_masked_watchpoint): Add prototype.
5416 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5417 breakpoint's breakpoint_ops.works_in_software_mode if available.
5418 (watchpoints_triggered): Handle the case of a hardware masked
5420 (watchpoint_check): Likewise.
5421 (works_in_software_mode_watchpoint): New function.
5422 (insert_masked_watchpoint, remove_masked_watchpoint)
5423 (resources_needed_masked_watchpoint)
5424 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5425 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5426 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5428 (masked_watchpoint_breakpoint_ops): New structure.
5429 (watch_command_1): Check for the existence of the `mask' parameter.
5430 Set b->ops according to the type of hardware watchpoint being created.
5431 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5432 (ppc_linux_remove_mask_watchpoint)
5433 (ppc_linux_masked_watch_num_registers): New functions.
5434 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5435 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5436 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5437 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5438 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5439 (target_masked_watch_num_registers): New functions.
5440 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5441 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5443 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5444 (target_masked_watch_num_registers): Add prototypes.
5446 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5449 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5450 (producer_is_gcc_ge_4_0): New function.
5451 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5452 symtab->language code.
5453 (var_decode_location): Set cu->has_loclist.
5454 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5455 skip. Intialize force_skip from locations_valid. Move the prologue
5456 skipping code into two passes.
5457 * symtab.h (struct symtab): Make the primary field a bitfield. New
5458 field locations_valid.
5460 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5462 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5463 (classify_inner_name): Call cp_lookup_nested_type with
5465 * cp-namespace.c (cp_lookup_nested_type): New variable
5466 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5467 type_name_no_tag_or_error with saved_parent_type.
5468 * dwarf2read.c (load_partial_dies): Read in any children of
5469 DW_TAG_typedef with complaint in such case.
5470 * gdbtypes.c (type_name_no_tag_or_error): New function.
5471 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5472 * valops.c (destructor_name_p): New comment for parameter type. Remove
5473 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5474 * value.h (destructor_name_p): Remove type const.
5476 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5478 * symtab.c (compare_symbol_name): New function.
5479 (completion_list_add_name, expand_partial_symbol_name): Call it,
5480 remove the variable ncmp.
5481 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5484 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5486 Demote to sw watchpoint only in update_watchpoint.
5487 * breakpoint.c (update_watchpoint): Change between software and
5488 hardware watchpoint for all kinds of watchpoints, not just
5489 read/write ones. Determine b->exact value here instead of
5490 in watch_command_1. Error out if there are not enough resources
5491 for a read or access hardware watchpoint.
5492 (watch_command_1): Remove logic of checking whether there are
5493 enough resources available, since update_watchpoint will do that
5494 work now. Don't set b->exact here. Catch exceptions thrown by
5495 update_watchpoint and delete the watchpoint.
5496 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5497 Use target_exact_watchpoints instead.
5498 (delete_breakpoint): Notify observers only if deleted watchpoint
5499 has a breakpoint number assigned to it.
5501 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5503 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5505 2011-05-05 Jerome Guitton <guitton@adacore.com>
5507 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5509 (i386_stack_tramp_frame_unwind): New static global.
5510 (i386_match_pattern): New function, extracted from i386_match_insn.
5511 (i386_match_insn): Use i386_match_pattern.
5512 (i386_match_insn_block): New function.
5513 (i386_tramp_chain_in_reg_insns)
5514 (i386_tramp_chain_on_stack_insns): New static variables.
5515 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5518 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5520 * configure.host (xscale*): Don't handle target.
5521 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5524 2011-05-04 Yao Qi <yao@codesourcery.com>
5526 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5528 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5531 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5532 | * elfread.c (elf_symtab_read): Stop memory leak.
5534 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5536 * nto-tdep.c (nto_target): Replace deprecated call to
5537 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5539 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5541 Fix false GCC warning.
5542 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5544 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5546 * breakpoint.c (update_watchpoint): Move code to change
5547 the enable state of breakpoint from here ...
5548 (do_enable_breakpoint): ... to here.
5550 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5552 * valprint.c (val_print_array_elements): Fixed poor performance
5553 of printing very large arrays with repeat_count_threshold set
5554 to unlimited. New comment.
5556 2011-04-29 Tom Tromey <tromey@redhat.com>
5558 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5559 (mi_parse): Likewise.
5560 * breakpoint.c (break_range_command): Use sizeof char*, not
5562 (create_breakpoint): Likewise.
5563 (parse_breakpoint_sals): Likewise.
5565 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5567 * linux-nat.c (linux_child_remove_fork_catchpoint)
5568 (linux_child_remove_vfork_catchpoint)
5569 (linux_child_remove_exec_catchpoint): New functions.
5570 (linux_target_install_ops): Install them.
5572 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5576 * varobj.c (install_default_visualizer): Do not install a
5577 visualizer if the varobj is CPLUS_FAKE_CHILD.
5578 (construct_visualizer): Likewise.
5580 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5582 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5583 case insensitive comparison.
5585 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5587 * infrun.c (proceed): Revert previous change.
5588 (resume): Instead, handle the case of signal delivery while stepping
5589 off a breakpoint location here, and only if software single-stepping
5590 is used. Handle nested signals.
5592 2011-04-28 Yao Qi <yao@codesourcery.com>
5594 * arm-tdep.c (copy_unmodified): Rename to ...
5595 (arm_copy_unmodified): .. this. New.
5596 (copy_preload): Move common part to ...
5597 (install_preload): .. this. New.
5598 (arm_copy_preload): New.
5599 (copy_preload_reg): Move common part to ...
5600 (install_preload_reg): ... this. New.
5601 (arm_copy_preload_reg): New.
5602 (copy_b_bl_blx): Move common part to ...
5603 (install_b_bl_blx): .. this. New.
5604 (arm_copy_b_bl_blx): New.
5605 (copy_bx_blx_reg): Move common part to ...
5606 (install_bx_blx_reg): ... this. New.
5607 (arm_copy_bx_blx_reg): New.
5608 (copy_alu_reg): Move common part to ...
5609 (install_alu_reg): ... this. New.
5610 (arm_copy_alu_reg): New.
5611 (copy_alu_shifted_reg): Move common part to ...
5612 (install_alu_shifted_reg): ... this. New.
5613 (copy_ldr_str_ldrb_strb): Move common part to ...
5614 (install_ldr_str_ldrb_strb): ... this. New.
5615 (arm_copy_ldr_str_ldrb_strb): New.
5616 (copy_copro_load_store): Move some common part to ...
5617 (install_copy_copro_load_store): ... this. New.
5618 (arm_copy_copro_load_store): New.
5620 (arm_copy_svc): Renamed from copy_svc.
5621 (copy_undef): Delete.
5622 (arm_copy_undef): Renamed from copy_undef.
5623 (decode_ext_reg_ld_st): Delete.
5624 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5625 (decode_svc_copro): Delete.
5626 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5627 (copy_copro_load_store, copy_alu_imm): update callers.
5628 (copy_extra_ld_st, copy_block_xfer): Likewise.
5629 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5630 (decode_miscellaneous, decode_dp_misc): Likewise.
5631 (decode_ld_st_word_ubyte, decode_media): Likewise.
5632 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5633 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5634 (decode_unconditional, decode_miscellaneous): Likewise.
5635 (decode_media, decode_b_bl_ldmstm): Likewise.
5636 (arm_process_displaced_insn): Likewise..
5637 (decode_misc_memhint_neon): Delete.
5638 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5639 (decode_miscellaneous): Delete.
5640 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5641 (decode_dp_misc): Delete.
5642 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5643 (decode_ld_st_word_ubyte): Delete.
5644 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5645 (decode_media): Delete.
5646 (arm_decode_media): Renamed from decode_media.
5647 (decode_b_bl_ldmstm): Delete.
5648 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5649 (decode_ext_reg_ld_st): Delete.
5650 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5651 (decode_unconditional): Delete.
5652 (arm_decode_unconditional): Renamed from decode_unconditional.
5654 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5656 Case insensitive lookups implementation.
5657 * dwarf2read.c: Include ctype.h.
5658 (struct mapped_index): New field version.
5659 (mapped_index_string_hash): New parameter index_version. New comment
5660 for it. Call tolower appropriately.
5661 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5662 Choose the right index version for mapped_index_string_hash.
5663 (dwarf2_read_index): Support also the index version 5. Initialize the
5664 new struct mapped_index field version.
5665 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5666 (find_slot): Explain the version needs. Pass INT_MAX for the new
5668 (write_psymtabs_to_index): Produce version 5.
5669 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5670 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5671 * psymtab.c (lookup_partial_symbol): Find the
5672 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5674 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5676 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5677 (completion_list_add_name): New variable ncmp, initialize it, use it.
5678 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5679 * utils.c (strcmp_iw): Support case_sensitive_off.
5680 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5681 New function comment part. New variables saved_string1,
5682 saved_string2 and case_pass. Add a proper second pass.
5684 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5686 Replace re_comp/re_exec by regcomp/regexec.
5687 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5688 (search_symbols_name_matches): Use them, use regexec.
5689 (search_symbols): New variable retval_chain, adjust the use of
5690 old_chain against it. Replace re_comp by regcomp. Use the new struct
5691 search_symbols_data fields, use regexec instead of re_exec.
5693 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 Format the code for the next patch.
5696 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5697 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5698 New variables c1 and c2.
5700 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5702 * infrun.c (proceed): Do not single-step into signal delivery
5703 when stepping off a breakpoint location.
5704 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5705 (insert_step_resume_breakpoint_at_caller): Likewise.
5706 (insert_step_resume_breakpoint_at_sal): Likewise.
5707 (insert_longjmp_resume_breakpoint): Likewise.
5709 2011-04-27 Yao Qi <yao@codesourcery.com>
5711 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5713 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5715 * procfs.c (procfs_pass_signals): Fix advance declaration.
5717 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5719 * target.h (struct target_ops): Remove to_notice_signals;
5720 add to_pass_signals.
5721 (target_notice_signals): Remove.
5722 (target_pass_signals): Add prototype.
5723 * target.c (update_current_target): Remove to_notice_signals;
5724 mention to_pass_signals.
5725 (target_pass_signals): New function.
5726 (debug_to_notice_signals): Remove.
5727 (setup_target_debug): Do not install debug_to_notice_signals.
5729 * infrun.c (signal_pass): New global.
5730 (resume): Call target_pass_signals.
5731 (handle_inferior_event): Report all signals while stepping over
5732 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5733 are re-inserted when stepping over a signal handler.
5734 (signal_cache_update): New function.
5735 (signal_stop_update): Call it.
5736 (signal_print_update): Likewise.
5737 (signal_pass_update): Likewise.
5738 (handle_command): Call signal_cache_update and target_pass_signals
5739 instead of target_notice_signals.
5740 (_initialize_infrun): Initialize signal_pass.
5742 * linux-nat.c (pass_mask): New global.
5743 (linux_nat_pass_signals): New function.
5744 (linux_nat_create_inferior): Report all signals initially.
5745 (linux_nat_attach): Likewise.
5746 (linux_nat_resume): Use pass_mask to decide whether to directly
5747 handle an inferior signal.
5748 (linux_nat_wait_1): Likewise.
5749 (linux_nat_add_target): Install to_pass_signals callback.
5751 * nto-procfs.c (notice_signals): Remove.
5752 (procfs_resume): Do not call notice_signals.
5753 (procfs_notice_signals): Remove.
5754 (procfs_pass_signals): New function.
5755 (init_procfs_ops): Install to_pass_signals callback instead of
5756 to_notice_signals callback.
5757 (_initialize_procfs): Report all signals initially.
5759 * procfs.c (procfs_notice_signals): Remove.
5760 (procfs_pass_signals): New function.
5761 (procfs_target): Install to_pass_signals callback instead of
5762 to_notice_signals callback.
5763 (register_gdb_signals): Remove.
5764 (procfs_debug_inferior): Report all signals initially.
5765 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5767 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5768 parameters; use them instead of calling signal_..._state routines.
5769 (remote_notice_signals): Remove.
5770 (remote_start_remote): Report all signals initially.
5771 (remote_resume): Do not call remote_pass_signals.
5772 (_initialize_remote): Install to_pass_signals callback instead of
5773 to_notice_signals callback.
5775 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5777 * breakpoint.c (user_settable_breakpoint): Delete.
5778 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5779 (delete_command): Check user_breakpoint_p instead of looking at
5780 the breakpoint's type.
5781 (disable_command): Ditto.
5782 (enable_command): Ditto.
5783 (delete_trace_command): Use user_breakpoint_p instead of looking
5784 at the breakpoint number directly. When checking if there are
5785 user visible tracepoints, in order to know whether to ask the user
5786 for confirmation, check whether the breakpoint is actually a
5789 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5791 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5794 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5796 MI breakpoint notifications.
5798 * annotate.c (breakpoint_changed): Adjust parameter type.
5799 * breakpoint.c (set_breakpoint_condition): Adjust to change
5800 in breakpoint_modified type.
5801 (breakpoint_set_commands): Likewise.
5802 (do_map_commands_command): Likewise.
5803 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5804 changed after bumping hit count.
5805 (bpstat_stop_status): Likewise.
5806 (print_one_breakpoint_location): Don't wrap in tuple here.
5807 (print_one_breakpoint): Always print individual locations.
5808 For locations, use unnamed tuple.
5809 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5811 (create_catchpoint, create_syscall_event_catchpoint): Call
5812 breakpoint_created obsever.
5813 (mention): Don't call breakpoint_created observer.
5814 (create_breakpoint_sal): Call breakpoint_created observer.
5815 (create_breakpoint, watch_command_1): Likewise.
5816 (create_ada_exception_breakpoint): Likewise.
5817 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5818 (locations_are_equal): New.
5819 (update_breakpoint_locations): If locations were changed, notify.
5820 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5821 Call breakpoint_modified observer.
5823 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5824 (mi_cmd_break_insert): Don't set observers for modify and delete.
5825 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5826 (mi_breakpoint_created, mi_breakpoint_deleted)
5827 (mi_breakpoint_modified): New.
5828 (mi_interpreter_init): Hook the above.
5829 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5830 while -break-* commands are executing.
5831 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5832 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5834 (mi_ui_out_impl): Hook in mi_redirect.
5835 (mi_field_skip): True to the name, skip the field, don't output
5836 a field with an empty value.
5838 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5839 (gdbpy_breakpoint_deleted): Adjust.
5840 * tui/tui-hooks.c (tui_event_create_breakpoint)
5841 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5843 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5845 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5846 (procfs_remove_hw_watchpoint): Likewise.
5848 2011-04-26 Michael Walle <michael@walle.cc>
5850 * remote.c (remote_start_remote): Ack packet after sending the
5853 2011-04-26 Yao Qi <yao@codesourcery.com>
5855 * linux-nat.c: Move common macros to ...
5856 Include linux-ptrace.h.
5857 * common/linux-ptrace.h: ... here. New.
5859 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5861 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5862 !objfile_has_partial_symbols. New comment.
5863 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5864 SYM_READ_PSYMBOLS is not present. Extend the comment.
5865 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5867 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5869 * defs.h (ENUM_BITFIELD): Remove.
5871 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5872 Eli Zaretskii <eliz@gnu.org>
5874 * NEWS: Document the new gdbserver --once option.
5876 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5878 * MAINTAINERS: Update my email address.
5880 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5882 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5883 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5884 function call if __STDC_ISO_10646__ macro is defined.
5885 (intermediate_encoding): New prototype.
5886 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5887 to generate compile time error for unsupported gdb_wchar_t size.
5888 (ENDIAN_SUFFIX): New macro.
5889 (intermediate_encoding): New function.
5891 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5893 * ada-lang.c (struct add_partial_datum): Update the comment for
5894 expand_partial_symbol_name.
5895 (ada_add_partial_symbol_completions): Rename to ...
5896 (ada_expand_partial_symbol_name): ... here, change return type, update
5897 function comment, call symbol_completion_match instead of
5898 symbol_completion_add.
5899 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5900 and ada_expand_partial_symbol_name.
5901 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5903 (dw2_map_symbol_names): Remove.
5904 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5905 * psymtab.c (map_symbol_names_psymtab): Remove.
5906 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5907 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5909 (psym_functions): Unlist map_symbol_names_psymtab.
5910 (map_partial_symbol_names): Rename to ...
5911 (expand_partial_symbol_names): ... here, change the FUN type, call
5912 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5913 * psymtab.h (map_partial_symbol_names): Rename to ...
5914 (expand_partial_symbol_names): ... here, change the FUN type.
5915 * symfile.h (struct quick_symbol_functions): Update the description of
5916 expand_symtabs_matching. Remove map_symbol_names.
5917 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5918 (struct add_name_data): Update the comment for
5919 expand_partial_symbol_name.
5920 (add_partial_symbol_name): Rename to ...
5921 (expand_partial_symbol_name): ... here. Replace
5922 completion_list_add_name call by strncmp.
5923 (default_make_symbol_completion_list_break_on): Use now
5924 expand_partial_symbol_names and expand_partial_symbol_name.
5925 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5927 2011-04-20 Tom Tromey <tromey@redhat.com>
5929 * dwarf2read.c (save_gdb_index_command): Replace format
5930 documentation with a pointer to the manual.
5932 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5934 * regcache.c: Include remote.h.
5935 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5936 (regcache_dump): Handle regcache_dump_remote.
5937 (maintenance_print_remote_registers): New function.
5938 (_initialize_regcache): Install "maint print remote-registers"
5940 * remote.c (map_regcache_remote_table): New function, factored out
5942 (init_remote_state): ... here.
5943 (remote_register_number_and_offset): New.
5944 * remote.h (remote_register_number_and_offset): Declare.
5946 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5948 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5949 null_ptid, assume and allow a NULL address space, instead of
5950 asking the target for the ptid's address space.
5951 * infrun.c (ptid_is_pid): Remove assertion.
5953 2011-04-19 Tom Tromey <tromey@redhat.com>
5955 * windows-tdep.c (windows_xfer_shared_library):
5956 * windows-nat.c (get_module_name, windows_make_so):
5957 * v850-tdep.c (v850_handle_pushm):
5958 * utils.c (null_cleanup, gdb_realpath):
5959 * ui-out.c (get_next_header):
5960 * tracepoint.c (clear_traceframe_info):
5961 * symtab.c (lookup_symtab):
5962 * serial.h (struct serial_ops):
5963 * mipsread.c (read_alphacoff_dynamic_symtab):
5964 * infcmd.c (print_return_value):
5965 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5966 * f-exp.y (parse_number):
5967 * exceptions.c (catch_exceptions):
5968 * dummy-frame.c (dummy_frame_this_id):
5969 * defs.h (struct cleanup):
5970 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5971 * arm-tdep.c (arm_push_dummy_call):
5972 * amd64-tdep.h (amd64_collect_xsave):
5973 * amd64-tdep.c (amd64_collect_xsave):
5974 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5975 * README (typing): Remove duplicate words.
5976 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5977 * infrun.c (siginfo_value_read): Fix typo.
5978 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5979 * top.c (source_line_number): Add comma.
5981 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5983 * thread.c (any_live_thread_of_process): Prioritize threads
5984 that are not executing.
5985 * gdbthread.h (any_live_thread_of_process): Update comment
5986 as per above change.
5988 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5990 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5991 (scan_xcoff_symtab): Likewise.
5993 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5995 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5998 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5999 Pedro Alves <pedro@codesourcery.com>
6001 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6002 variables to simplify code and avoid == operator at end of
6003 line as this is against GNU coding standards.
6005 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6007 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6008 lm_name to name_lm to avoid conflict with lm_name function.
6010 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6012 ARI fixes: Use only lowercase function name for static functions.
6013 * nto-tdep.c (LM_ADDR): Rename to...
6014 (lm_addr): New function name.
6015 (nto_relocate_section_addresses): Adapt to change above.
6016 * solib-sunos.c (LM_ADDR): Rename to...
6017 (lm_addr): New function name.
6018 (LM_NEXT): Rename to...
6019 (lm_next): New function name.
6020 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6021 function name changes above.
6022 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6023 (lm_addr_from_link_map): New function name.
6024 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6025 (has_lm_dynamic_from_link_map): New function name.
6026 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6027 (lm_dynamic_from_link_map): New function name.
6028 (LM_ADDR_CHECK): Rename to...
6029 (lm_addr_check): New function name.
6030 (LM_NEXT): Rename to...
6031 (lm_next): New function name.
6032 (LM_PREV): Rename to...
6033 (lm_prev): New function name.
6034 (LM_NAME): Rename to...
6035 (lm_name): New function name.
6036 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6037 (ignore_first_link_map_entry): New function name.
6038 (svr4_keep_data_in_core): Adapt to function name changes above.
6039 (svr4_current_sos): Likewise.
6040 (enable_break): Likewise.
6041 (svr4_relocate_section_addresses): Likewise.
6043 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6046 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6047 sprintf. Simplify code and avoid loosing memory.
6048 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6049 (call0_frame_cache): Remove && operator from end of line.
6051 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6053 Fix libraries displacement if they change whether they were prelinked.
6054 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6055 does not match. Comment why.
6057 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6059 * corelow.c: Include wrapper.h.
6060 (core_open): Call now gdb_target_find_new_threads.
6061 * wrapper.c: Include target.h.
6062 (gdb_target_find_new_threads): New.
6063 * wrapper.h (gdb_target_find_new_threads): New declaration.
6065 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6067 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6068 even if !TARGET_HAS_EXECUTION.
6070 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6072 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6073 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6074 bfd_get_synthetic_symtab.
6075 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6076 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6077 parameter parent, remove the call to add_separate_debug_objfile.
6078 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6079 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6080 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6081 parent, new comment for it, call add_separate_debug_objfile for it.
6082 (symbol_file_add_separate): Pass objfile as the parameter parent,
6083 remove the call to add_separate_debug_objfile.
6084 (symbol_file_add_from_bfd): New parameter parent, pass it.
6085 (symbol_file_add): Pass NULL to the new parameter parent.
6086 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6088 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6090 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6093 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6095 Fix Python access to inlined frames.
6096 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6097 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6099 2011-04-15 Tom Tromey <tromey@redhat.com>
6101 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6103 2011-04-15 Gary Benson <gbenson@redhat.com>
6105 * MAINTAINERS: Add myself to write-after-approval section.
6107 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6109 * remote-sim.c (sim_command_completer): New function.
6110 (_initialize_remote_sim): Set completer to sim_command_completer.
6112 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6114 * breakpoint.c (print_exception_catchpoint): Rename to ...
6115 (print_it_exception_catchpoint): ... this.
6116 (gnu_v3_exception_catchpoint_ops): Update with new name
6117 for print_it_exception_catchpoint.
6119 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6121 * MAINTAINERS: Add myself for write after approval privileges.
6123 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6125 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6127 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6129 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6131 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6133 * breakpoint.c (save_breakpoints): Verify whether
6134 breakpoint_ops.print_recreate is defined before calling it.
6136 2011-04-11 Gary Benson <gbenson@redhat.com>
6138 Fix failure with --enable-maintainer-mode.
6139 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6141 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6144 * symtab.c (search_symbols): Reorder the KIND description in the
6145 function comment. Remove the unused 4th element of types, types2,
6146 types3 and types4. New gdb_assert on KIND.
6147 (symtab_symbol_info): Remove the unused 4th element of classnames.
6148 New gdb_assert on KIND.
6149 * symtab.h (enum search_domain): New warning in the enum comment.
6150 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6153 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6155 Fix crash of gdb save-index on a STABS file.
6156 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6159 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6161 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6162 * dwarf2read.c: Include ctype.h.
6163 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6165 (dwarf2_add_field): Fix new_field->accessibility by calling
6166 dwarf2_default_access_attribute. Restructure setting accessibility
6168 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6169 is_private and is_protected by calling
6170 dwarf2_default_access_attribute.
6172 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6174 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6175 to the initialization.
6177 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6179 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6182 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6184 Remove support for old Cygwin 1.5 versions.
6185 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6186 function on old Cygwin version.
6187 * windows-nat.c: Remove cygwin version check and always define
6188 __USEWIDE for Cygwin compilation.
6190 2011-04-07 Yao Qi <yao@codesourcery.com>
6192 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6194 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6195 (arm_copy_svc): Remove parameters INSN and TO.
6196 (decode_svc_copro): Update caller.
6197 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6198 from function pointer `copy_svc_os'.
6200 2011-04-07 Yao Qi <yao@codesourcery.com>
6202 * arm-tdep.c (cleanup_branch): Set a correct return address in
6203 LR for ARM and Thumb.
6205 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6208 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6209 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6210 in the function comment, a new note on values compatibility.
6211 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6212 * symtab.h (SYMBOL_HASH_NEXT): New.
6214 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6216 * ppc-linux-nat.c (check_condition): Add len output parameter.
6217 Set it based on the memory region referenced in the condition
6218 expression. Update all callers.
6220 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6222 Fix crash regression on systems featuring .gdb_index.
6223 * objfiles.c (free_objfile): Move the
6224 forget_cached_source_info_for_objfile call earlier. Comment it.
6225 Extend the comment for objfile_free_data.
6227 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6229 Fix regression of displaying the debug format.
6230 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6233 2011-04-04 Tom Tromey <tromey@redhat.com>
6235 * cli/cli-interp.c (struct captured_execute_command_args):
6237 (do_captured_execute_command): Remove.
6238 (safe_execute_command): Use TRY_CATCH.
6239 * cli/cli-script.c (struct wrapped_read_command_file_args):
6241 (wrapped_read_command_file): Remove.
6242 (script_from_file): Use TRY_CATCH.
6243 * exceptions.c (catch_exception): Remove.
6244 * exceptions.h (catch_exception): Remove.
6245 (deprecated_throw_reason): Update comment.
6246 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6247 argument to 'context'.
6248 (mi_execute_command): Use TRY_CATCH.
6249 * remote.c (struct start_remote_args): Remove.
6250 (remote_start_remote): Update; change arguments.
6251 (remote_open_1): Use TRY_CATCH.
6253 2011-04-04 Tom Tromey <tromey@redhat.com>
6255 * tracepoint.c (scope_info): Update.
6256 * symtab.c (decode_line_spec): Update.
6257 * python/python.c (gdbpy_decode_line): Update.
6258 * linespec.h (decode_line_1): Update.
6259 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6260 (decode_compound, find_method, symtab_from_filename)
6261 (decode_variable): Likewise.
6262 * cli/cli-cmds.c (edit_command): Update.
6263 (list_command): Update.
6264 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6266 (create_breakpoint): Update.
6267 (until_break_command): Update.
6268 (addr_string_to_sals): Update.
6269 (decode_line_spec_1): Update.
6271 2011-04-04 Tom Tromey <tromey@redhat.com>
6273 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6274 (do_captured_parse_breakpoint): Remove.
6275 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6276 Use TRY_CATCH directly.
6278 2011-04-04 Tom Tromey <tromey@redhat.com>
6280 * symtab.h (free_symtab): Remove.
6281 (forget_cached_source_info_for_objfile): Declare.
6282 * symmisc.c (free_symtab): Remove.
6283 * source.c (forget_cached_source_info_for_objfile): New function.
6284 (forget_cached_source_info): Use it.
6285 * objfiles.c (free_objfile): Simplify check before calling
6286 clear_current_source_symtab_and_line. Call
6287 forget_cached_source_info_for_objfile.
6289 2011-04-04 Tom Tromey <tromey@redhat.com>
6291 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6292 (new_symtab): Don't set `free_code' on symtab.
6293 (new_linetable): Properly handle size==0.
6294 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6295 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6297 * jv-lang.c (struct jv_per_objfile_data): New.
6298 (jv_per_objfile_free): Free the data.
6299 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6300 (get_java_class_symtab): Set the `dict' field on the
6301 jv_per_objfile_data.
6302 (free_class_block): Remove.
6303 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6306 2011-04-04 Tom Tromey <tromey@redhat.com>
6308 * symfile.c (reread_symbols): Update.
6309 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6311 * objfiles.c (allocate_objfile): Update.
6312 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6314 * cp-namespace.c (lookup_symbol_file): Don't call
6315 lookup_possible_namespace_symbol.
6316 (initialize_namespace_symtab, get_possible_namespace_block)
6317 (free_namespace_block, cp_check_possible_namespace_symbols)
6318 (check_possible_namespace_symbols_loop)
6319 (check_one_possible_namespace_symbol)
6320 (lookup_possible_namespace_symbol): Remove.
6321 (maintenance_cplus_namespace): Replace with notice.
6322 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6324 2011-04-04 Tom Tromey <tromey@redhat.com>
6326 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6327 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6328 * symmisc.c (free_symtab): Don't free debugformat.
6329 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6330 (record_debugformat, record_producer): Document.
6331 * buildsym.c (end_symtab): Don't save debugformat and producer
6333 (end_symtab): Don't free debugformat and producer fields.
6334 (record_debugformat): Don't call xstrdup.
6335 (record_producer): Likewise.
6337 2011-04-04 Tom Tromey <tromey@redhat.com>
6339 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6340 (source_line_charpos, source_charpos_line): Remove.
6342 2011-04-04 Tom Tromey <tromey@redhat.com>
6344 * symtab.h (domain_enum): Split in two...
6345 (enum search_domain): New.
6346 (search_symbols): Update.
6347 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6348 redundant declarations.
6349 (search_symbols): Change 'kind' argument to search_domain.
6351 (print_symbol_info): Likewise.
6352 (symtab_symbol_info): Likewise.
6353 * symfile.h (struct quick_symbol_functions)
6354 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6355 <expand_symtabs_matching>: Likewise.
6356 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6357 (expand_symtabs_matching_via_partial): Update.
6358 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6359 (dw2_expand_symtabs_for_function): Update.
6360 * block.h: Moved anonymous enum...
6361 * defs.h (enum block_enum): ... here. Now named.
6363 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6365 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6366 * version.in: Bump version to 7.3.50.20110403-cvs.
6368 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6370 * NEWS: Create a new section for the next release branch.
6371 Rename the section of the current branch, now that it has
6374 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6376 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6377 for "fpscr" in target description.
6379 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6381 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6382 initialize it. Delay HASH initialization. Strip the part after open
6383 parenthesis for languages with qualifiers. Call do_cleanups.
6385 2011-04-01 Tom Tromey <tromey@redhat.com>
6387 * utils.c (report_command_stats): Don't print `-' for negative
6390 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6392 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6393 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6396 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6398 * breakpoint.h (bpdisp_text): Add declaration.
6399 * breakpoint.c (bpdisp_text): Make non-static.
6400 * ada-lang.c: #include "mi/mi-common.h".
6401 (print_it_exception): Rewrite to improve GDB/MI output.
6403 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6405 * arm-tdep.h (struct address_space): Add forward declaration.
6407 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6409 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6410 * arm-tdep.c (arm_override_mode): New global.
6411 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6412 execution mode heuristics.
6413 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6414 second single-step breakpoint if needed, using
6415 arm_insert_single_step_breakpoint.
6416 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6417 ARM execution mode, do not call thumb_get_next_pc_raw.
6418 (arm_get_next_pc): Encode execution mode in return value. Call
6419 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6420 (arm_insert_single_step_breakpoint): New function.
6421 (arm_software_single_step): Call it.
6422 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6423 argument to return execution mode of sigreturn target.
6424 (arm_linux_syscall_next_pc): Use it.
6425 (arm_linux_copy_svc): Update call.
6426 (arm_linux_software_single_step): Call
6427 arm_insert_single_step_breakpoint.
6429 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6431 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6434 2011-03-31 Tom Tromey <tromey@redhat.com>
6436 * varobj.c (update_dynamic_varobj_children): Properly handle
6437 errors from iterator.
6439 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6441 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6442 struct linkage name twice.
6444 2011-03-31 Tom Tromey <tromey@redhat.com>
6446 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6447 missing ">" to message.
6449 2011-03-31 Tom Tromey <tromey@redhat.com>
6451 * varobj.c (instantiate_pretty_printer): Remove duplicate
6454 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6456 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6457 if neither saved value nor register available (e.g. signal frame).
6459 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6461 * macroexp.c (expand): Avoid uninitialized variable
6464 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6466 * breakpoint.c (break_range_command): Fix typo in comment.
6468 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6469 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6471 Implement support for PowerPC BookE ranged breakpoints.
6472 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6473 * breakpoint.h (struct bp_target_info) <length>: New member
6475 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6476 instead of struct breakpoint as argument, and also add ASPACE
6477 and BP_ADDR arguments. Update all callers.
6478 (struct breakpoint_ops) <print_one_detail>: New method.
6479 (struct breakpoint) <addr_string_range_end>: New member variable.
6480 * breakpoint.c (breakpoint_location_address_match): Add function
6482 (insert_bp_location): Set bl->target_info.length.
6483 (breakpoint_here_p): Call breakpoint_location_address_match.
6484 (moribund_breakpoint_here_p): Likewise.
6485 (regular_breakpoint_inserted_here_p): Likewise.
6486 (breakpoint_thread_match): Likewise.
6487 (bpstat_stop_status): Likewise.
6488 (bpstat_check_location): Move call to
6489 breakpoint_ops.breakpoint_hit to the top.
6490 (print_one_breakpoint_location): Call
6491 breakpoint_ops.print_one_detail if available.
6492 (breakpoint_address_match_range): New function.
6493 (breakpoint_location_address_match): Likewise.
6494 (breakpoint_locations_match): Compare the length field of the
6496 (hw_breakpoint_used_count): Count resources used by all locations
6497 in a breakpoint, and use breakpoint_ops.resources_needed if
6499 (breakpoint_hit_ranged_breakpoint): New function.
6500 (resources_needed_ranged_breakpoint): Likewise.
6501 (print_it_ranged_breakpoint): Likewise.
6502 (print_one_ranged_breakpoint): Likewise.
6503 (print_one_detail_ranged_breakpoint): Likewise.
6504 (print_mention_ranged_breakpoint): Likewise.
6505 (print_recreate_ranged_breakpoint): Likewise.
6506 (ranged_breakpoint_ops): New structure.
6507 (find_breakpoint_range_end): New function.
6508 (break_range_command): Likewise.
6509 (delete_breakpoint): Free addr_string_range_end.
6510 (update_breakpoint_locations): Add SALS_END argument. Update
6511 all callers. Calculate breakpoint length if a non-zero SALS_END
6512 is given. Call breakpoint_locations_match instead of
6513 breakpoint_address_match.
6514 (reset_breakpoint): Find SaL of the end of the range if B is a
6516 (_initialize_breakpoint): Register break-range command.
6517 * defs.h (print_core_address): Add function prototype.
6518 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6520 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6521 (ppc_linux_remove_hw_breakpoint): Likewise.
6522 (_initialize_ppc_linux_nat): Initialize
6523 to_ranged_break_num_registers.
6524 * target.c (update_current_target): Add comment about
6525 to_ranged_break_num_registers.
6526 (target_ranged_break_num_registers): New function.
6527 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6529 (target_ranged_break_num_registers): Add function prototype.
6530 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6531 * utils.c (print_core_address): ... here.
6533 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6535 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6536 variable compiler warning.
6538 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6540 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6542 (re_set_breakpoint): ... to here ...
6543 (addr_string_to_sals): ... and here.
6545 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6547 * Makefile.in (SFILES): Add missing C sources.
6548 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6549 Add missing headers.
6551 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6553 * .gitignore: New file.
6555 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6557 * NEWS: Mention new cfi device simulation.
6559 2011-03-29 Tom Tromey <tromey@redhat.com>
6561 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6562 otherwise anonymous types.
6563 (dwarf2_name): Likewise.
6564 * valops.c (value_struct_elt_for_reference): Refine artificial
6565 type logic. Call error if j==-1.
6567 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6569 Fix false GCC warning.
6570 * infcall.c (find_function_addr): Initialize funaddr.
6572 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6574 Fix mingw compilation with --enable-targets=all.
6575 * remote-mips.c (gdb_usleep.h): Include header.
6576 (mips_enter_debug): Use gdb_usleep instead of sleep.
6578 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6580 Support resolution of STT_GNU_IFUNC via breakpoints.
6581 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6582 bp_gnu_ifunc_resolver_return.
6583 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6584 the loop. Support bp_gnu_ifunc_resolver and
6585 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6586 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6588 (bptype_string, print_one_breakpoint_location): Support
6589 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6590 (user_settable_breakpoint): Return true also for
6591 bp_gnu_ifunc_resolver.
6592 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6593 bp_gnu_ifunc_resolver_return.
6594 (set_breakpoint_location_function): New parameter explicit_loc,
6595 describe it. Call find_pc_partial_function_gnu_ifunc with new
6596 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6597 EXPLICIT_LOC is not set.
6598 (set_raw_breakpoint): Set EXPLICIT_LOC for
6599 set_breakpoint_location_function.
6600 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6601 set_breakpoint_location_function.
6602 (mention): Support bp_gnu_ifunc_resolver and
6603 bp_gnu_ifunc_resolver_return.
6604 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6605 set_breakpoint_location_function.
6606 (update_breakpoint_locations): Remove static.
6607 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6608 bp_gnu_ifunc_resolver_return.
6609 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6610 bp_gnu_ifunc_resolver_return.
6611 (update_breakpoint_locations): New declaration.
6612 * elfread.c: Include gdbthread.h and regcache.h.
6613 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6615 (elf_gnu_ifunc_fns): Install them.
6616 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6617 (stub_gnu_ifunc_resolver_return_stop): New functions.
6618 (stub_gnu_ifunc_fns): Install them.
6619 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6620 and gnu_ifunc_resolver_return_stop.
6621 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6623 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6625 STT_GNU_IFUNC reader implementation.
6626 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6627 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6628 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6629 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6630 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6631 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6632 (elf_gnu_ifunc_resolve_addr): New.
6633 (elf_symfile_read): Call elf_rel_plt_read.
6634 (elf_gnu_ifunc_fns): New.
6635 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6636 Install elf_gnu_ifunc_fns.
6637 * infcall.c (find_function_return_type): New function.
6638 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6639 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6640 (stub_gnu_ifunc_resolve_name): New functions.
6641 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6642 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6643 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6645 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6647 Code cleanup for later STT_GNU_IFUNC support.
6648 * infcall.c (find_function_addr): Remove variable code, use explicit
6649 dereferences for it. Move VALUE_TYPE initialization later.
6651 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6653 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6654 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6655 (clear_pc_function_cache): Clear it.
6656 (find_pc_partial_function): Rename to ...
6657 (find_pc_partial_function_gnu_ifunc): ... this function. New
6658 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6659 (find_pc_partial_function): New wrapper for this function.
6660 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6662 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 GDB internal type support for STT_GNU_IFUNC.
6665 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6666 (elf_symtab_read): Set mst_text_gnu_ifunc for
6667 BSF_GNU_INDIRECT_FUNCTION.
6668 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6669 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6670 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6671 nodebug_got_plt_symbol.
6672 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6673 (TYPE_GNU_IFUNC): New.
6674 (struct main_type): New field flag_gnu_ifunc.
6675 (struct builtin_type): New field builtin_func_func.
6676 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6677 nodebug_got_plt_symbol.
6678 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6679 (in_gnu_ifunc_stub): New.
6680 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6682 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6683 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6684 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6686 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6687 * symtab.c (search_symbols): Likewise.
6688 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6689 and mst_slot_got_plt.
6690 (in_gnu_ifunc_stub): New declaration.
6692 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6694 Support a ring of related breakpoints.
6695 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6696 other functions, add gdb_assert.
6697 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6698 watchpoint_del_at_next_stop.
6699 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6700 (bpstat_stop_status): Handle ring in related_breakpoint.
6701 (set_raw_breakpoint_without_location): Initialize ring in
6703 (delete_breakpoint): Handle ring in related_breakpoint, use
6704 watchpoint_del_at_next_stop.
6705 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6707 2011-03-28 Tom Tromey <tromey@redhat.com>
6710 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6711 with `language_minimal'.
6713 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6715 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6716 instead of checking for STT_ARM_TFUNC symbol type.
6718 2011-03-25 Tom Tromey <tromey@redhat.com>
6720 * linespec.c (symbol_found): Restore line-based result for
6721 non-LOC_LABEL symbols.
6723 2011-03-25 Kai Tietz <ktietz@redhat.com>
6725 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6726 instead of strcmp for comparison.
6727 (tui_source_is_displayed): Likewise.
6728 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6730 2011-03-24 Mark Wielaard <mjw@redhat.com>
6732 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6734 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6735 (find_partial_die_in_comp_unit): Likewise in comment.
6736 (read_attribute_value): Likewise.
6737 (lookup_die_type): Likewise.
6738 (dwarf_form_name): Likewise.
6739 (dump_die_shallow): Likewise.
6740 (follow_die_ref_or_sig): Likewise.
6742 2011-03-24 Tom Tromey <tromey@redhat.com>
6744 PR breakpoints/11816:
6745 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6746 (decode_compound): Update.
6747 (find_function_symbol): New function.
6748 (decode_dollar): Update.
6749 (decode_label): Add 'function_symbol' parameter. Handle
6750 function-relative labels.
6751 (decode_variable): Update.
6752 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6753 not its line. Set `special_display' and canonical name for
6756 2011-03-24 Tom Tromey <tromey@redhat.com>
6758 * linespec.h (struct linespec_result) <special_display>: New
6760 * breakpoint.h (struct breakpoint) <display_canonical>: New
6762 * breakpoint.c (print_breakpoint_location): Respect
6764 (create_breakpoint_sal): Add 'display_canonical' parameter.
6765 (create_breakpoints_sal): Update.
6766 (create_breakpoint): Update.
6768 2011-03-24 Tom Tromey <tromey@redhat.com>
6770 * symtab.c (decode_line_spec): Update.
6771 * linespec.c (build_canonical_line_spec): Change type of
6773 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6774 (find_method, decode_all_digits, decode_dollar, decode_label)
6775 (symbol_found): Likewise.
6776 (init_linespec_result): New function.
6777 * breakpoint.c (struct captured_parse_breakpoint_args)
6778 <canonical_p>: New field, replaces addr_string_p.
6779 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6781 (parse_breakpoint_sals): Likewise.
6782 (do_captured_parse_breakpoint): Update.
6783 (create_breakpoint): Use struct linespec_result.
6784 (until_break_command): Update.
6785 (breakpoint_re_set_one): Update.
6786 (decode_line_spec_1): Update.
6787 * linespec.h (struct linespec_result): New.
6788 (init_linespec_result): Declare.
6790 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6792 * regcache.c (regcache_raw_read): If the target didn't supply a
6793 given raw register, mark it as unavailable.
6795 2011-03-23 Kai Tietz <ktietz@redhat.com>
6797 * breakpoint.c (clear_command): Use filename_cmp
6798 instead of strcmp for comparison.
6799 * buildsym.c (watch_main_source_file_lossage): Likewise.
6800 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6801 checking just for slash.
6802 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6803 strrchr and filename_cmp instead of strcmp for filenames.
6804 (add_old_header_file): Use filename_cmp
6805 instead of strcmp for comparison.
6806 * exec.c (exec_set_section_address): Likewise.
6807 * macrotab.c (macro_lookup_inclusion): Likewise.
6808 (macro_lookup_inclusion): Likewise.
6809 * elfread.c (_initialize_elfread): Likewise.
6810 (elfstab_offset_sections): Likewise.
6811 (elfstab_offset_sections): Use lbasename instead of
6813 * mdebugread.c (parse_partial_symbols): Likewise.
6814 (arse_partial_symbols): Use filename_(n)cmp instead of
6815 str(n)cmp for comparison.
6816 * minsyms.c (lookup_minimal_symbol): Likewise.
6817 * psymtab.c (read_psymtabs_with_filename): Likewise.
6818 * solib.c (solib_read_symbols): Likewise.
6819 (reload_shared_libraries_1): Likewise.
6820 * symmisc.c (maintenance_print_symbols): Likewise.
6821 * symfile.c (separate_debug_file_exists): Likewise.
6822 (reread_symbols): Likewise.
6823 (find_separate_debug_file_by_debuglink): Likewise.
6824 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6825 * source.c (add_path): Likewise.
6826 * symtab.c (filename_seen): Likewise.
6827 (file_matches): Likewise.
6828 (print_symbol_info): Likewise.
6829 (maybe_add_partial_symtab_filename): Likewise.
6830 (make_source_files_completion_list): Likewise.
6831 * xml-syscall.c (init_sysinfo): Likewise.
6832 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6833 IS_DIR_SEPARATOR for checking for trailing path separator.
6835 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6838 label abort_expression.
6839 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6840 DWARF_VALUE_OPTIMIZED_OUT.
6842 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6845 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6846 to linkage_name. Invert its value. Update the function comment.
6847 (c_type_print_varspec_suffix): Invert it at the caller.
6848 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6850 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6852 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6853 errors when reading the `stop_pc'.
6854 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6857 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6859 * NEWS: Document gdb.Write stream keyword.
6861 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6864 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6865 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6866 (dwarf2_add_field): Fix new_field->accessibility for
6867 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6869 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6873 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6874 other error classes. Do not print stack trace.
6876 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6878 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6879 (dwarf2_add_field): Fix new_field->accessibility for
6880 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6882 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6884 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6885 encountering a load via a non-SP register.
6887 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6889 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6890 field in returned unwinder.
6892 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6894 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6896 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6898 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6901 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6903 * frame.c (frame_unwind_register): Throw an error if unwinding the
6905 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6906 an unwind stop reason.
6907 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6908 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6909 UNWIND_UNAVAILABLE>: New.
6910 * inline-frame.c (inline_frame_unwind): Install
6911 default_frame_unwind_stop_reason.
6912 * frame-unwind.c: Include "exceptions.h".
6913 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6914 (default_frame_unwind_stop_reason): New.
6915 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6916 (default_frame_unwind_stop_reason): Declare.
6917 (struct frame_unwind) <stop_reason>: New function pointer.
6919 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6920 * dwarf2-frame.c: Include exceptions.h.
6921 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6922 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6923 computing the CFA. If such an error was thrown, set
6924 unavailable_retaddr.
6925 (dwarf2_frame_unwind_stop_reason): New.
6926 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6928 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6929 (dwarf2_signal_frame_unwind): Ditto.
6931 * amd64-tdep.c: Include "exceptions.h".
6932 (struct amd64_frame_cache): New field "base_p".
6933 (amd64_init_frame_cache): Clear it.
6934 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6935 Avoid reading registers with functions that throw if the register
6936 is not necessary to compute the frame base.
6937 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6938 swallowing NOT_AVAILABLE_ERROR.
6939 (amd64_frame_unwind_stop_reason): New.
6940 (amd64_frame_this_id): Don't build a frame id if the frame base
6942 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6943 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6944 base_p if the frame base was computable.
6945 (amd64_sigtramp_frame_unwind_stop_reason): New.
6946 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6947 frame base was unavailable.
6948 (amd64_sigtramp_frame_unwind): Install
6949 amd64_sigtramp_frame_unwind_stop_reason.
6950 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6951 base_p if the frame base was computable.
6952 (amd64_epilogue_frame_unwind_stop_reason): New.
6953 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6954 frame base was unavailable.
6955 (amd64_epilogue_frame_unwind): Install
6956 amd64_epilogue_frame_unwind_stop_reason.
6957 * i386-tdep.c: Include "exceptions.h".
6958 (struct i386_frame_cache): New field "base_p".
6959 (i386_init_frame_cache): Clear it.
6960 (i386_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 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6964 swallowing NOT_AVAILABLE_ERROR.
6965 (i386_frame_unwind_stop_reason): New.
6966 (i386_frame_this_id): Don't build a frame id if the frame base was
6968 (i386_frame_prev_register): Handle unavailable SP.
6969 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6970 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6971 base_p if the frame base was computable.
6972 (i386_epilogue_frame_unwind_stop_reason): New.
6973 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6974 base was unavailable.
6975 (i386_epilogue_frame_unwind): Install
6976 i386_epilogue_frame_unwind_stop_reason.
6977 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6978 base_p if the frame base was computable.
6979 (i386_sigtramp_frame_unwind_stop_reason): New.
6980 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6981 base was unavailable.
6982 (i386_sigtramp_frame_unwind): Install
6983 i386_sigtramp_frame_unwind_stop_reason.
6984 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6985 type's size, not the register's.
6986 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6988 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6989 default_frame_unwind_stop_reason.
6990 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6991 (alpha_heuristic_frame_unwind): Ditto.
6992 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6993 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6994 * avr-tdep.c (avr_frame_unwind): Ditto.
6995 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6997 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6998 * frv-tdep.c (frv_frame_unwind): Ditto.
6999 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7000 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7001 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7002 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7003 (hppa_stub_frame_unwind): Ditto.
7004 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7005 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7006 (ia64_libunwind_frame_unwind)
7007 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7008 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7009 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7010 * m32c-tdep.c (m32c_unwind): Ditto.
7011 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7012 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7013 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7014 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7015 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7016 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7017 * mep-tdep.c (mep_frame_unwind): Ditto.
7018 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7019 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7020 (mips_stub_frame_unwind): Ditto.
7021 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7022 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7023 * mt-tdep.c (mt_frame_unwind): Ditto.
7024 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7025 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7026 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7027 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7028 (s390_sigtramp_frame_unwind): Ditto.
7029 * score-tdep.c (score_prologue_unwind): Ditto.
7030 * sh-tdep.c (sh_frame_unwind): Ditto.
7031 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7032 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7033 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7034 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7035 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7036 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7037 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7038 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7039 (sparc64obsd_trapframe_unwind): Ditto.
7040 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7041 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7042 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7043 * v850-tdep.c (v850_frame_unwind): Ditto.
7044 * vax-tdep.c (vax_frame_unwind): Ditto.
7045 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7046 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7047 * xtensa-tdep.c (xtensa_unwind): Ditto.
7049 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7051 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7052 there's always a frame. Use get_frame_pc_if_available instead of
7053 get_frame_pc, and if there's no PC available, don't look up a
7056 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7058 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7061 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7063 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7066 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7068 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7069 * frame.c (frame_unwind_caller_pc_if_available): New.
7070 * stack.c (frame_info): Handle unavailable PC.
7072 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7074 * frame.c (frame_unwind_pc): Rename to ...
7075 (frame_unwind_pc_if_available): ... this. New `pc' output
7076 parameter. Change return type to int. Gracefully handle
7077 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7078 happened, or 1 otherwise.
7079 (frame_unwind_pc): Reimplement on top of
7080 frame_unwind_pc_if_available.
7081 (get_frame_func): Rename to ...
7082 (get_frame_func_if_available): New `pc' output parameter. Change
7083 return type to int. Gracefully handle the PC not being available.
7084 (get_frame_func): Reimplement on top of
7085 get_frame_func_if_available.
7086 (select_frame): Handle the PC being unavailable.
7087 (get_prev_frame): Handle the PC being unavailable.
7088 (get_frame_pc_if_available): New.
7089 (get_frame_address_in_block_if_available): New.
7090 (find_frame_sal): Handle the frame PC not being available.
7091 * frame.h (get_frame_pc_if_available): Declare.
7092 (get_frame_address_in_block_if_available): Declare.
7093 (get_frame_func_if_available): Declare.
7094 * stack.c (print_frame_info): Handle the PC being unavailable.
7095 (find_frame_funname): Ditto.
7096 (print_frame): Handle the PC being unavailable.
7097 (get_frame_language): Ditto.
7098 * blockframe.c (get_frame_block): Ditto.
7099 * macroscope.c (default_macro_scope): Ditto.
7100 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7102 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7104 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7105 NOT_AVAILABLE_ERROR when evaluating the location expression.
7107 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7109 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7110 returning that the register piece is unavailable/optimized out.
7111 (write_pieced_value): Handle get_frame_register_bytes returning
7112 that the register piece is unavailable/optimized out when doing a
7113 read-modify write of a bitfield.
7114 * findvar.c (value_from_register): Handle get_frame_register_bytes
7115 returning that the register piece is unavailable/optimized out.
7116 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7117 and `unavailablep'. Throw error on bad debug info. Use
7118 frame_register instead of frame_register_read, to fill in the new
7120 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7122 * valops.c: (value_assign): Adjust, and handle
7123 get_frame_register_bytes failing.
7124 * spu-tdep.c: Include exceptions.h.
7125 (spu_software_single_step): Adjust, and handle
7126 get_frame_register_bytes failing.
7127 (spu_get_longjmp_target): Ditto.
7128 * gdbarch.sh (register_to_value): Change to return int. New
7129 parameters `optimizedp' and `unavailablep'.
7130 * gdbarch.h, gdbarch.c: Regenerate.
7131 * i386-tdep.c (i386_register_to_value): Adjust to new
7132 gdbarch_register_to_value interface.
7133 * i387-tdep.c (i387_register_to_value): Ditto.
7134 * i387-tdep.h (i387_register_to_value): Ditto.
7135 * alpha-tdep.c (alpha_register_to_value): Ditto.
7136 * ia64-tdep.c (ia64_register_to_value): Ditto.
7137 * m68k-tdep.c (m68k_register_to_value): Ditto.
7138 * mips-tdep.c (mips_register_to_value): Ditto.
7139 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7141 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7143 * findvar.c (value_of_register): Mark the value as unavailable, if
7144 the register is unavailable.
7145 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7146 (frame_register): New `unavailablep' parameter.
7147 (frame_register_read): Update comment.
7148 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7149 Set it if the register is unavailable. If the register is
7150 unavailable, clear the output buffer.
7151 (frame_register): New `unavailablep' parameter. Pass it down.
7152 (frame_unwind_register): Adjust.
7153 (put_frame_register): Adjust.
7154 (frame_register_read): Adjust. Also return false if the register
7156 (frame_register_unwind_location): Adjust.
7157 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7158 is unavailable, mark the value accordingly.
7159 * stack.c (frame_info): Handle unavailable registers.
7161 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7163 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7164 simplify, using regcache_cooked_read.
7166 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7168 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7169 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7170 (regcache_raw_read_unsigned, regcache_raw_read_part)
7171 (regcache_cooked_read, regcache_cooked_read_signed)
7172 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7173 (regcache_cooked_read_ftype): Change return to enum
7175 * regcache.c: Include exceptions.h
7176 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7177 (do_cooked_read): Change return to enum register_status. Always
7178 forward to regcache_cooked_read.
7179 (regcache_raw_read): Change return to enum register_status. If
7180 the register is not REG_VALID, memset the buffer. Return the
7182 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7183 return the register's status.
7184 (regcache_raw_read_unsigned): Ditto.
7185 (regcache_cooked_read): Change return to enum register_status.
7186 Assert that with read-only regcaches, the register's status must
7187 be known. If the regcache is read-only, and the register is not
7188 REG_VALID, memset the buffer. Return the register's status.
7189 (regcache_cooked_read_signed): Change return to enum
7190 register_status. Handle non-REG_VALID registers and return the
7192 (regcache_cooked_read_unsigned): Change return to enum
7193 register_status. Handle non-REG_VALID registers and return the
7195 (regcache_xfer_part, regcache_raw_read_part)
7196 (regcache_cooked_read_part): Change return to enum
7197 register_status. Return the register's status.
7198 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7200 (regcache_dump): Handle unavailable cooked registers.
7201 * frame.c (do_frame_register_read): Adjust interface to match
7202 regcache_cooked_read_ftype.
7203 * gdbarch.sh (pseudo_register_read): Change return to enum
7205 * gdbarch.h, gdbarch.c: Regenerate.
7207 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7209 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7210 register_status. If reading a raw register indicates the raw
7211 register is not valid, return the raw register's status,
7212 otherwise, return REG_VALID.
7213 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7214 register_status. Handle non-REG_VALID raw registers and return
7215 the register's status.
7216 * arm-tdep.c (arm_neon_quad_read)
7217 (arm_pseudo_read): Change return to enum register_status. Handle
7218 non-REG_VALID raw registers and return the register's status.
7219 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7220 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7221 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7222 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7223 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7225 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7226 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7227 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7228 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7229 (m32c_pseudo_register_read): Change return to enum
7230 register_status. Adjust.
7231 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7232 enum register_status. Return the register's status.
7233 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7234 register_status. Return the register's status.
7235 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7236 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7237 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7238 * rs6000-tdep.c (move_ev_register_func): New typedef.
7239 (e500_move_ev_register): Use it. Change return to enum
7240 register_status. Return the register's status.
7241 (do_regcache_raw_read): New function.
7242 (do_regcache_raw_write): New function.
7243 (e500_pseudo_register_read): Change return to enum
7244 register_status. Return the register's status. Use
7245 do_regcache_raw_read.
7246 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7247 (dfp_pseudo_register_read): Change return to enum register_status.
7248 Return the register's status.
7249 (vsx_pseudo_register_read): Ditto.
7250 (efpr_pseudo_register_read): Ditto.
7251 (rs6000_pseudo_register_read): Ditto.
7252 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7253 register_status. Return the register's status.
7254 * sh64-tdep.c (pseudo_register_read_portions): New function.
7255 (sh64_pseudo_register_read): Change return to enum
7256 register_status. Use pseudo_register_read_portions. Return the
7258 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7259 register_status. Return the register's status.
7260 * sh-tdep.c (pseudo_register_read_portions): New function.
7261 (sh_pseudo_register_read): Change return to enum register_status.
7262 Use pseudo_register_read_portions. Return the register's status.
7263 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7264 enum register_status. Return the register's status.
7265 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7266 * spu-tdep.c (spu_pseudo_register_read_spu)
7267 (spu_pseudo_register_read): Ditto.
7268 * xtensa-tdep.c (xtensa_register_read_masked)
7269 (xtensa_pseudo_register_read): Ditto.
7270 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7272 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7274 * python/py-value.c (valpy_getitem): Fix formatting of error function
7277 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7279 ARI fixes: Add missing internationalization markups throughout
7281 * darwin-nat-info.c: Ditto.
7284 * mi/mi-main.c: Ditto.
7286 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7288 ARI fixes: Add missing internationalization markups throughout
7291 * cp-name-parser.y: Ditto.
7294 * objc-exp.y: Ditto.
7297 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7299 ARI fixes: Messages should have no trailing new lines.
7300 * darwin-nat.c (mach_check_error): Remove trailing new line from
7301 warning function call message.
7302 * record.c (bfdcore_read): Idem for error call.
7304 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7306 * common/signals.c (target_signal_from_host): Add _ markup to error
7307 function call message.
7308 (target_signal_to_host): Add _ markup and remove trailing new line
7309 from warning call message.
7310 (target_signal_from_command): Add _ markup to error function call
7313 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7317 * python/python.c (gdbpy_write): Accept a stream argument and
7318 operate to the appropriate stream.
7319 (gdbpy_flush): Likewise.
7320 (_initialize_python): Add stream constants.
7321 (finish_python_initialization): Add GdbOutputErrorFile class.
7323 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7325 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7327 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7329 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7330 to store_signed_integer. Add debug message when relocating CALL
7331 instructions. Fix formatting of debug message.
7332 * i386-tdep.c (i386_relocate_instruction): Ditto.
7334 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7336 * target.h (struct target_ops): Remove to_lookup_symbol field.
7337 (target_lookup_symbol): Delete macro.
7338 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7339 (update_current_target, setup_target_debug): Remove handling
7340 of to_lookup_symbol target_ops field.
7341 * ada-tasks.c (get_known_tasks_addr): Remove use of
7342 target_lookup_symbol.
7343 * coffread.c (coff_symtab_read): Likewise.
7344 * dbxread.c (read_dbx_symtab): Ditto.
7346 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7349 * configure.ac: Add getthrds declaration check.
7350 * configure, config.in: Regenerate.
7351 * aix-thread.c (getthrds): Declare only if not already declared
7352 in procinfo.h. More declaration out of get_signaled_thread to
7355 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7357 * python/py-symtab.c: Populate symtab_object_methods,
7359 (stpy_is_valid): New function.
7360 (salpy_is_valid): Ditto.
7361 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7362 (sympy_is_valid): New function.
7363 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7364 (objfpy_is_valid): New function.
7365 * python/py-inferior.c: Populate inferior_object_methods.
7366 (infpy_is_valid): New function.
7367 * python/py-infthread.c: Populate thread_object_methods.
7368 (thpy_is_valid): New function.
7369 * python/py-block.c: Declare block_object_methods. Populate. Declare
7370 block_iterator_object_methods. Populate.
7371 (blpy_is_valid): New function.
7372 (blpy_iter_is_valid): Ditto.
7374 2011-03-16 Keith Seitz <keiths@redhat.com>
7376 * linespec.c (find_methods): Canonicalize NAME before looking
7378 (name_end): New function.
7379 (keep_name_info): New function.
7380 (decode_line_1): Use keep_name_info.
7381 (decode_compound): Likewise.
7382 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7383 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7386 * linespec.c (locate_first_half): Keep overload information, too.
7387 (decode_compound): Use a string to represent break characters
7389 If P points to a break character, do not increment it.
7390 For C++ and Java, keep overload information and relevant keywords.
7391 If we cannot find a symbol, search the minimal symbols.
7394 * linespec.c (decode_compound): Rename SAVED_ARG to
7396 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7398 Pass a valid block to lookup_symbol.
7399 (lookup_prefix_sym): Likewise.
7400 (find_method): Construct search name based on SYM_CLASS instead
7402 * psymtab.c (lookup_partial_symbol): Add language parameter.
7403 (lookup_symbol_aux_psymtabs): Likewise.
7404 Don't assume that the psymtab we found was the right one. Search
7405 for the desired symbol in the symtab to be certain.
7406 (psymtab_search_name): New function.
7407 (lookup_partial_symbol): Use psymtab_search_name.
7408 Add language parameter.
7409 (read_symtabs_for_function): Add language parameter and pass to
7410 lookup_partial_symbol.
7411 (find_symbol_file_from_partial): Likewise.
7413 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7416 * dwarf2read.c (noop_record_line): New function.
7417 (dwarf_decode_lines): Ignore line tables for GCd functions.
7419 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7421 Fix ARI warnings about new lines at the end of messages, which
7422 are unneeded as there is a new line added at the end of the message
7424 * darwin-nat.c (darwin_stop_inferior): Ditto.
7425 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7426 * dfp.c (decimal_to_number): Ditto.
7427 * exec.c (print_section_info): Ditto.
7428 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7429 * osdata.c (get_osdata): Ditto.
7430 * record.c (bfdcore_write): Ditto.
7431 * remote-mips.c (mips_readchar): Ditto.
7432 * remote.c (read_ptid): Ditto.
7433 * ser-mingw.c (ser_windows_raw): Ditto.
7434 * tracepoint.c (add_local_symbols): Ditto.
7435 * windows-nat.c (fake_create_process): Ditto.
7437 2011-03-16 Tom Tromey <tromey@redhat.com>
7439 * tracepoint.c (stop_tracing): Don't declare.
7440 * event-top.c (after_char_processing_hook): Add `(void)'.
7442 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7444 * NEWS: Add Parameter sub-classing description.
7446 2011-03-16 Kai Tietz <ktietz@redhat.com>
7448 * MAINTAINERS: Update my e-mail address.
7450 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7452 * MAINTAINERS: Add myself for write after approval privileges.
7454 2011-03-15 Michael Snyder <msnyder@vmware.com>
7456 * frame.c (find_frame_sal): Assert sym is not null.
7458 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7460 * objc-lang.c (selectors_info): Check strchr for null result.
7462 * stabsread.c (define_symbol): Guard against bad stabstring input.
7464 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7466 Remove trailing spaces and tabulations from pascal language
7471 p-valprint.c: Ditto.
7473 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7475 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7476 than LOW. Comment it.
7477 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7478 HIGHPC not strictly higher than LOWPC.
7480 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7482 Fix formatting of function declarations returning a pointer in
7484 * varobj.c (varobj_add_child): Ditto.
7485 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7486 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7488 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7490 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7491 for the "generic" vector ABI used with GCC 4.3 and later.
7492 (ppc64_sysv_abi_return_value): Likewise.
7494 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7496 * infcall.c (call_function_by_hand): Function return value is
7497 always a non_lval, even when using struct_return.
7499 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7501 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7502 (map_display_numbers): New.
7503 (do_delete_display): New.
7504 (undisplay_command): Use map_display_numbers.
7505 (do_enable_disable_display): New.
7506 (enable_disable_display_command): New function.
7507 (enable_display): Delete.
7508 (enable_display_command): New.
7509 (disable_display_command): Reimplement.
7510 (_initialize_printcmd): Adjust "enable display" command to use
7511 `enable_display_command' as callback.
7513 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7515 * NEWS: Add Python breakpoint 'stop' operation.
7517 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7519 * NEWS: Delete duplicate entry. Fix typo.
7521 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7523 Fix ARI warning about function names in first column.
7524 Put prototype declaration on same line as return type.
7525 * objc-exp.y: Ditto.
7527 * python/py-stopevent.h: Ditto.
7528 For long function names, split parameters to
7529 allow function name on same line as return type.
7530 * solib-pa64.c: Ditto.
7533 For long function declaration, use single line.
7534 * hppa-tdep.h: Ditto.
7535 * inferior.h: Ditto.
7537 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7539 * python/python.h: Declare gdbpy_should_stop and
7540 gdbpy_breakpoint_has_py_cond.
7541 * python/python.c: Add python.h to includes. Remove python.h from
7542 HAVE_PYTHON definition
7543 (gdbpy_should_stop): New dummy function.
7544 (gdbpy_breakpoint_has_py_cond): New dummy function.
7545 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7546 sub-classing capabilities.
7547 (gdbpy_should_stop): New function.
7548 (gdbpy_breakpoint_has_py_cond): New function.
7549 (local_setattro): New function.
7550 * breakpoint.c (condition_command): Add check for Python 'stop'
7552 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7553 operation function as part of stop/continue tests.
7555 2011-03-14 Tom Tromey <tromey@redhat.com>
7558 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7559 (needs_frame_dwarf_call): Likewise.
7561 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7563 Fix ARI warning about functions without parameters that do not
7565 * breakpoint.c (all_tracepoints): Replace () by (void).
7566 * f-exp.y (match_string_literal): Ditto.
7568 * m2-exp.y (yylex): Ditto.
7569 * mep-tdep.c (current_me_module): Ditto.
7570 (current_options): Ditto.
7571 (current_cop_data_bus_width): Ditto.
7572 (current_cr_names): Ditto.
7573 (current_cr_is_float): Ditto.
7574 (current_ccr_names): Ditto.
7575 * objc-exp.y (yylex): Ditto.
7576 * p-exp.y (yylex): Ditto.
7577 * remote.c (send_interrupt_sequence): Ditto.
7578 * tracepoint.c (current_trace_status): Ditto.
7579 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7580 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7582 2011-03-11 Michael Snyder <msnyder@vmware.com>
7584 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7585 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7586 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7587 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7588 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7590 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7591 (delete_async_event_handler): Ditto.
7593 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7595 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7597 * top.c (set_verbose): Assert showcmd was found.
7599 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7601 * xtensa-tdep.c (warning_once): Correct style issues.
7603 2011-03-11 Yao Qi <yao@codesourcery.com>
7605 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7607 2011-03-11 Andreas Schwab <schwab@redhat.com>
7609 * common/aclocal.m4: Remove.
7611 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7613 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7614 (xtensa_write_register, xtensa_read_register): Likewise.
7615 (xtensa_hextochar): Removed.
7616 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7618 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7620 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7621 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7622 (xtensa_alloc_frame_cache): Add initialization for new fields.
7623 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7624 (warning_once): New function.
7625 (xtensa_insn_kind): New item c0opc_and.
7626 (call0_classify_opcode): Add the case for AND instruction.
7627 (call0_track_op): Change arguments. New local variable litbase.
7628 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7629 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7631 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7632 (call0_analyze_prologue): Update the comments. Change arguments.
7633 Add the variety of updates to handle extended prologues, which now can
7634 conduct dynamic stack adjustments.
7635 (call0_frame_cache): Likewise.
7636 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7637 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7639 2011-03-10 Michael Snyder <msnyder@vmware.com>
7641 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7642 (cmd_qtframe): Ditto.
7643 (cmd_qtbuffer): Ditto.
7644 (cmd_bigqtbuffer): Ditto.
7646 2011-03-10 Tom Tromey <tromey@redhat.com>
7648 * tracepoint.c (trace_actions_command): Update.
7649 * thread.c (thread_apply_command): Update.
7650 * reverse.c (delete_bookmark_command): Update.
7651 (bookmarks_info): Update.
7652 * printcmd.c (undisplay_command): Update.
7653 * memattr.c (mem_enable_command): Update.
7654 (mem_disable_command): Update.
7655 (mem_delete_command): Update.
7656 * inferior.c (detach_inferior_command): Update.
7657 (kill_inferior_command): Update.
7658 (remove_inferior_command): Update.
7659 * cli/cli-utils.h (struct get_number_or_range_state): New.
7660 (init_number_or_range): Declare.
7661 (get_number_or_range): Update.
7662 * cli/cli-utils.c (init_number_or_range): New function.
7663 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7665 (number_is_in_list): Update.
7666 * breakpoint.h (get_tracepoint_by_number): Update.
7667 * breakpoint.c (map_breakpoint_numbers): Update for change to
7668 get_number_or_range.
7669 (find_location_by_number): Use get_number, not
7670 get_number_or_range.
7671 (trace_pass_set_count): New function.
7672 (trace_pass_command): Update for change to get_number_or_range.
7674 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7677 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7679 * python/py-param.c (add_setshow_generic): Add set/show callback
7680 parameters. Register Python object context.
7681 (get_show_value): New function.
7682 (get_set_value): New function.
7683 (call_doc_function): New function.
7684 (get_doc_string): Move behind get_show_value/get_set_value.
7686 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7688 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7690 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7692 * xtensa-tdep.c (xtensa_read_register): Add comment.
7693 (xtensa_write_register): Likewise.
7694 (xtensa_hextochar): Add comment and update to match coding conventions.
7695 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7696 (execute_l32e, execute_s32e, execute_code): Update comments.
7697 (xtensa_exception_handler_t): Update to match coding conventions.
7698 (xtensa_insn_kind): Likewise.
7700 2011-03-09 Michael Snyder <msnyder@vmware.com>
7702 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7704 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7706 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7708 2011-03-09 Tom Tromey <tromey@redhat.com>
7710 * thread.c (restore_selected_frame): Handle frame_level == -1.
7711 (make_cleanup_restore_current_thread): Use
7712 get_selected_frame_if_set.
7713 * frame.h (get_selected_frame_if_set): Declare.
7714 * frame.c (get_selected_frame_if_set): New function.
7716 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7718 * cli/cli-cmds.c (shell_escape): Use lbasename.
7719 * coffread.c (coff_start_symtab): Constify parameter.
7720 (complete_symtab): Constify `name' parameter.
7721 (coff_symtab_read): Constify `filestring' local.
7722 (coff_getfilename): Constify return and `result' local.
7724 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7725 * linux-fork.c (info_checkpoints_command): Use lbasename.
7726 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7727 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7728 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7729 * procfs.c (procfs_make_note_section): Use lbasename.
7730 * tui/tui-io.c (printable_part): Constity return and parameter.
7732 (print_filename): Constify parameters, and local `s'.
7733 (tui_rl_display_match_list): Constify local `temp'.
7735 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7738 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7739 Fix DWARF-3+ DW_AT_accessibility default assumption.
7740 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7741 cu->header.version >= 3.
7743 2011-03-09 Yao Qi <yao@codesourcery.com>
7745 * common/Makefile.in: Remove.
7746 * common/configure: Remove.
7747 * common/configure.ac: Remove.
7749 2011-03-09 Yao Qi <yao@codesourcery.com>
7752 2011-02-11 Yao Qi <yao@codesourcery.com>
7754 * common/Makefile.in: Add copyright header.
7756 2011-02-11 Yao Qi <yao@codesourcery.com>
7758 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7760 * configure.ac: Add common to sub dir.
7761 * configure: Regenerate.
7763 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7765 * xtensa-tdep.c (call0_ret): New function.
7766 (xtensa_skip_prologue): Speed up analysis.
7768 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7770 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7771 while executing MI command -data-list-changed-registers.
7773 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7775 * xtensa-tdep.c (xtensa_read_register): New function.
7776 (xtensa_write_register): New function.
7777 (xtensa_find_register_by_name): New function.
7778 (xtensa_windowed_frame_cache): Update comments in type description.
7779 (xtensa_frame_cache): Likewise.
7780 (xtensa_window_interrupt_insn): New function.
7781 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7782 (xtensa_insn_kind): Add new instructions.
7783 (rwx_special_register): New function.
7784 (call0_classify_opcode): Add new instructions to the analysis.
7785 (a0_saved, a7_saved, a11_saved): New variables.
7786 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7787 (execute_l32e): New function.
7788 (execute_s32e): New function.
7789 (xtensa_exception_handler_t): New type.
7790 (execute_code): New function.
7791 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7792 analysis for Xtensa Window Exception handlers.
7794 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7796 * xtensa-tdep.c (TX_PS): New.
7797 (windowing_enabled): Update to count for Call0 ABI.
7798 (xtensa_hextochar): New.
7799 (xtensa_init_reggroups): Make algorithm generic.
7800 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7802 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7804 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7806 2011-03-08 Michael Snyder <msnyder@vmware.com>
7808 * i386-tdep.c (i386_follow_jump): Check return value of
7810 (i386_analyze_struct_return): Ditto.
7811 (i386_skip_probe): Ditto.
7812 (i386_match_insn): Ditto.
7813 (i386_skip_noop): Ditto.
7814 (i386_analyze_frame_setup): Ditto.
7815 (i386_analyze_register_saves): Ditto.
7816 (i386_skip_prologue): Ditto.
7817 (i386_skip_main_prologue): Ditto.
7819 * target.c (read_whatever_is_readable): Fix memory leak.
7821 * i386-tdep.c (i386_process_record): Document fall through.
7823 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7825 Fix DWARF-3+ DW_AT_accessibility default assumption.
7826 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7827 cu->header.version >= 3.
7829 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7831 * remote.c (remote_check_symbols): Skip if the target has no
7834 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7836 * target.c (read_whatever_is_readable): Reformat comment,
7837 with a minor typo fix. Minor reformatting of the code.
7839 2011-03-08 Yao Qi <yao@codesourcery.com>
7841 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7842 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7843 Use cached result instead of calling displaced_in_arm_mode again.
7844 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7845 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7846 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7847 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7848 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7849 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7850 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7851 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7852 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7853 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7854 (arm_catch_kernel_helper_return): Likewise.
7855 * gdb/arm-tdep.h : Update function declarations.
7857 2011-03-07 Michael Snyder <msnyder@vmware.com>
7859 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7861 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7863 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7865 * elfread.c (elf_symtab_read): Stop memory leak.
7867 * main.c (captured_main): Fix memory leak.
7869 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7871 * ada-lang.c (compare_names): Call is_name_suffix with string1
7874 2011-03-07 Tom Tromey <tromey@redhat.com>
7876 * xcoffread.c (xcoff_sym_fns): Update.
7877 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7878 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7879 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7880 (symbol_file_add_with_addrs_or_offsets): Likewise.
7881 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7882 * somread.c (som_sym_fns): Update.
7883 * psymtab.h (require_partial_symbols): Declare.
7884 * psymtab.c (require_partial_symbols): New function.
7885 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7886 (ALL_OBJFILE_PSYMTABS): Undef.
7887 (ALL_PSYMTABS): Move from psympriv.h.
7888 (lookup_partial_symtab, find_pc_sect_psymtab)
7889 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7890 (find_last_source_symtab_from_partial)
7891 (forget_cached_source_info_partial)
7892 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7893 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7894 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7895 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7896 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7897 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7898 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7899 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7900 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7902 * mipsread.c (ecoff_sym_fns): Update.
7903 * machoread.c (macho_sym_fns): Update.
7904 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7905 (read_psyms): New function.
7906 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7907 (elf_sym_fns_lazy_psyms): New global.
7908 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7909 dwarf2_build_psymtabs.
7910 * dbxread.c (aout_sym_fns): Update.
7911 * coffread.c (coff_sym_fns): Update.
7913 2011-03-07 Tom Tromey <tromey@redhat.com>
7915 * infrun.c (print_exited_reason): Include inferior id and pid in
7918 2011-03-07 Tom Tromey <tromey@redhat.com>
7920 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7922 (target_has_execution_1): Update.
7923 (target_has_execution_current): Declare.
7924 (target_has_execution): Call target_has_execution_current.
7925 (default_child_has_execution): Update.
7926 * target.c (default_child_has_execution): Add 'the_ptid'
7928 (target_has_execution_1): Likewise.
7929 (target_has_execution_current): New function.
7930 (add_target): Update.
7931 (init_dummy_target): Update.
7932 * remote-m32r-sdi.c (m32r_has_execution): New function.
7933 (init_m32r_ops): Use it.
7934 * record.c (record_core_has_execution): Now static. Add
7935 'the_ptid' parameter.
7936 * inferior.c (have_live_inferiors): Don't save current thread.
7937 Use target_has_execution_1.
7939 2011-03-07 Yao Qi <yao@codesourcery.com>
7941 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7943 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7945 * elfread.c (elf_symtab_read): Minor reformatting.
7947 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7949 * objc-lang.c (selectors_info): Minor reformatting.
7951 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7953 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7955 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7956 Michael Snyder <msnyder@vmware.com>
7958 * ada-valprint.c (ada_val_print_array): Move the declaration of
7959 "byte_order" and "elttype" inside the block where these variables
7960 are actually used. Remove some special handling for the case
7961 where "elttype" and "eltlen" are null. Replace by a comment
7962 and a couple of assertion checks.
7964 2011-03-05 Michael Snyder <msnyder@vmware.com>
7966 * source.c (add_path): Replace semicolon at end of block.
7967 * dwarf2expr.c (execute_stack_op): Ditto.
7969 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7971 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7972 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7973 (bfin-*-*): Likewise.
7975 2011-03-05 Michael Snyder <msnyder@vmware.com>
7977 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7978 * mdebugread.c (parse_symbol): Ditto.
7979 * parse.c (parse_exp_in_context): Ditto.
7980 * source.c (add_path): Ditto.
7981 * utils.c (gnu_debuglink_crc32): Ditto.
7982 * varobj.c (variable_language): Ditto.
7984 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7986 2011-03-04 Michael Snyder <msnyder@vmware.com>
7988 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7990 * symfile.c (simple_overlay_update): Check for null return value
7991 from lookup_minimal_symbol.
7993 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7995 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7997 * eval.c (parse_and_eval_address_1): Remove function.
7998 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7999 instead of parse_and_eval_address_1.
8000 * value.h (parse_and_eval_address_1): Remove prototype.
8002 2011-03-04 Michael Snyder <msnyder@vmware.com>
8004 * remote.c (putpkt_binary): Document that case stmt falls through.
8006 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8008 * breakpointc (print_it_typical): Move NULL check from here...
8009 (print_bp_stop_message): ... to here.
8011 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8013 * breakpoint.c (enable_command): Use break instead of continue,
8014 and fill in a missing break.
8015 (disable_command): Ditto.
8017 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8019 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8020 (terminal_save_ours): Remove misleading comment.
8021 (inflow_inferior_data_cleanup): Free ttystate.
8022 (inflow_inferior_exit): Likewise.
8023 (copy_terminal_info): Copy ttystate.
8025 * serial.c (serial_copy_tty_state): New function.
8026 * serial.h (serial_copy_tty_state): Add prototype.
8027 (struct serial_ops): Add copy_tty_state callback.
8028 * ser-base.c (ser_base_copy_tty_state): New function.
8029 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8030 * ser-go32.c (dos_copy_tty_state): New function.
8031 (dos_ops): Install copy_tty_state callback.
8032 * ser-mingw.c (_initialize_ser_windows): Likewise.
8033 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8034 * ser-unix.c (hardwire_copy_tty_state): New function.
8035 (_initialize_ser_hardwire): Install it.
8037 2011-03-04 Michael Snyder <msnyder@vmware.com>
8039 * breakpoint.c (create_breakpoint): Add missing break statement.
8041 Reverting this patch:
8042 * infcall.c (call_function_by_hand): Add break statements for lint.
8044 Reverting this patch:
8045 * cli/cli-script.c (script_from_file): Add break for lint.
8047 2011-03-04 Michael Snyder <msnyder@vmware.com>
8049 * solib.c (reload_shared_libraries_1): Close memory leak.
8051 2011-03-03 Tom Tromey <tromey@redhat.com>
8054 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8057 2011-03-03 Michael Snyder <msnyder@vmware.com>
8059 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8060 fields of struct 'st' to zero.
8062 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8063 sal.pspace before calling set_current_source_symtab_and_line.
8065 2011-03-03 Yao Qi <yao@codesourcery.com>
8067 * Makefile.in (configure-common): Remove. Let Makefile
8068 in dir common to rebuild itself.
8069 (common/Makefile): Likewise.
8071 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8073 * utils.c (parse_escape): Add i18n markup in error message.
8075 2011-03-03 Yao Qi <yao@codesourcery.com>
8077 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8079 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8080 (displaced_write_reg, displaced_read_reg): Likewise.
8081 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8082 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8083 (cleanup_branch): Replace magic number 14 and 15 with
8084 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8086 2011-03-02 Michael Snyder <msnyder@vmware.com>
8088 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8090 * cli/cli-script.c (script_from_file): Add break for lint.
8092 * mdebugread.c (parse_partial_symbols): Fix indent.
8094 * target-descriptions.c (tdesc_gdb_type): No need to call
8095 xstrdup, callee saves a copy.
8097 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8099 * infcall.c (call_function_by_hand): Add break statements for lint.
8101 * utils.c (parse_escape): Escape the escape char.
8103 * python/py-inferior.c (build_inferior_list): Error out if
8104 PyList_Append fails.
8105 (gdbpy_inferiors): Error out if build_inferior_list fails.
8107 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8110 * record.c (record_restore): Move printf to before error return.
8112 2011-03-02 Yao Qi <yao@codesourcery.com>
8114 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8115 is_thumb and insn_size.
8116 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8117 on both ARM and Thumb mode.
8118 (arm_process_displaced_insn): Set is_thumb and insn_size.
8119 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8120 (arm_displaced_step_fixup): Likewise.
8122 2011-03-01 Michael Snyder <msnyder@vmware.com>
8124 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8126 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8128 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8130 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8132 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8135 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8136 which shadows function parameter.
8138 * tracepoint.c (create_tsv_from_upload): Superfluous call
8139 to xstrdup. Callee already calls xstrdup.
8141 * linespec.c (decode_line_1): Remove unnecessary null check.
8143 * tracepoint.c (scope_info): Fix mem leak, remove underused
8146 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8147 superfluous null check.
8149 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8150 (value_of_builtin_frame_fp_reg): Ditto.
8152 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8154 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8157 * linespec.c (decode_line_1): Check for null before dereference.
8159 * reverse.c (record_restore): Move null-check to before pointer
8162 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8164 * objc-lang.c (selectors_info): Add explanitory comment.
8165 (classes_info): Ditto.
8167 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8169 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8170 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8171 versions of the trampoline. Handle Thumb vs. ARM addresses.
8172 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8173 (arm_linux_init_abi): Install it.
8174 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8175 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8177 2011-02-28 Michael Snyder <msnyder@vmware.com>
8179 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8180 a little bigger, to avoid possibility of an overflow.
8182 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8183 buffers a little bigger, to avoid possibility of an overflow.
8185 * coffread.c (coff_getfilename): Add check to avoid overflow.
8187 * objc-lang.c (selectors_info): Add a small safety margin to
8189 (classes_info): Error out on too long REGEXP.
8191 * infrun.c (handle_inferior_event): Remove unused function call.
8193 * fork-child.c (fork_inferior): Remove ifdef'd code and
8196 * linux-thread-db.c (attach_thread): Discard unused value.
8198 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8200 * remote.c (remote_get_noisy_reply): Discard unused value.
8201 (remote_vcont_resume): Ditto.
8202 (remote_stop_ns): Ditto.
8204 * linespec.c (decode_objc): Delete unused variable.
8206 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8208 * dwarf2read.c (add_partial_symbol): Discard unused values.
8209 (read_base_type): Delete unused variable.
8211 * dbxread.c (read_dbx_symtab): Discard unused value.
8213 * eval.c (evaluate_subexp_standard): Delete unused variable,
8214 and discard unused values.
8216 * infcmd.c (_initialize_infcmd): Discard unused values.
8218 * stabsread.c (rs6000_builtin_type): Missing break statement.
8220 * dbxread.c (process_one_symbol): Discard unused value.
8222 * coffread.c (coff_end_symtab): Delete unused variable.
8224 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8225 (dwarf2_add_typedef): Delete unused variable.
8226 (read_namespace): Ditto.
8227 (dwarf_decode_macros): Ditto.
8229 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8231 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8233 * p-valprint.c (pascal_val_print): Discard unused value.
8235 * utils.c (nquery): Call va_end before return;
8239 * proc-service.c (ps_plog): Call va_end before return.
8241 2011-02-28 Tom Tromey <tromey@redhat.com>
8243 * python/python.c (gdbpy_value_cst): New global.
8244 (_initialize_python): Initialize it.
8245 * python/python-internal.h (gdbpy_value_cst): Declare.
8246 * python/py-value.c (convert_value_from_python): Use
8249 2011-02-28 Michael Snyder <msnyder@vmware.com>
8251 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8253 * breakpoint.c (catch_syscall_completer): Free malloced list.
8255 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8257 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8258 (lval_func_check_synthetic_pointer): Ditto.
8259 (lval_func_free_closure): Fix use-after-free.
8261 2011-02-28 Tom Tromey <tromey@redhat.com>
8263 * psymtab.c (expand_partial_symbol_tables): Use
8264 ALL_OBJFILE_PSYMTABS.
8266 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8268 * objc-lang.c (selectors_info): Error on too long REGEXP.
8270 2011-02-28 Michael Snyder <msnyder@vmware.com>
8272 * python/py-param.c (set_parameter_value): Add missing
8275 * linux-record.c (record_linux_system_call): Add missing
8278 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8280 * breakpoint.c (print_one_breakpoint_location): Remove unused
8281 argument PRINT_ADDRESS_BITS. Update callers.
8282 (print_one_breakpoint): Likewise.
8284 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8286 * breakpoint.c (wrap_indent_at_field): New function.
8287 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8288 Allocate ui_stream locally instead of using STB argument.
8289 (print_one_breakpoint_location): Update call.
8290 * ui-out.c (ui_out_query_field): New function.
8291 * ui-out.h (ui_out_query_field): Add prototype.
8293 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8295 From Michael Snyder <msnyder@vmware.com>
8296 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8298 2011-02-27 Michael Snyder <msnyder@vmware.com>
8300 * objc-lang.c (selectors_info): Prevent string overrun.
8302 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8305 * symtab.c (rbreak_command): Move variable 'file_name' to
8308 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8309 param with a local variable of the same name.
8311 2011-02-27 Michael Snyder <msnyder@vmware.com>
8313 * value.c (value_from_history_ref): New function.
8314 * value.h (value_from_history_ref): Export.
8315 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8316 to parse value history references.
8317 * cli/cli-utils.h (get_number_trailer): Update comment.
8319 2011-02-27 Michael Snyder <msnyder@vmware.com>
8321 * inferior.c (detach_inferior_command): Use get_number_or_range.
8322 (kill_inferior_command): Ditto.
8323 (remove_inferior_command): Ditto.
8324 (initialize_inferiors): Make command names plural.
8325 Update help strings.
8327 2011-02-27 Michael Snyder <msnyder@vmware.com>
8329 * darwin-nat-info.c: Fix comment typo.
8330 * dwarf2expr.h: Ditto.
8331 * fbsd-nat.c: Ditto.
8332 * fbsd-nat.h: Ditto.
8333 * frame-unwind.h: Ditto.
8335 * hppa-hpux-tdep.c: Ditto.
8336 * i386-linux-nat.c: Ditto.
8337 * linux-nat.c: Ditto.
8338 * nbsd-nat.c: Ditto.
8339 * nbsd-nat.h: Ditto.
8340 * ppc-linux-tdep.c: Ditto.
8343 * tui/tui-winsource.c: Ditto.
8345 2011-02-26 Michael Snyder <msnyder@vmware.com>
8347 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8349 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8351 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8352 with a local variable of the same name.
8354 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8355 param with a local variable of the same name.
8356 (i387_supply_xsave): Ditto.
8358 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8359 that it does not shadow a function parameter.
8361 * i386-nat.c (i386_length_and_rw_bits): Document that case
8362 statement is meant to fall through.
8364 * expprint.c (dump_subexp_body_standard): Document that case
8365 statement is meant to fall through.
8367 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8368 dead if statement. Condition can't be false.
8370 2011-02-25 Michael Snyder <msnyder@vmware.com>
8372 * arm-tdep.c: Fix typos in comments.
8373 * bsd-uthread.c: Ditto.
8374 * completer.c: Ditto.
8376 * cp-namespace.c: Ditto.
8377 * cp-support.c: Ditto.
8378 * cris-tdep.c: Ditto.
8380 * dwarf2read.c: Ditto.
8382 * gdbtypes.h: Ditto.
8383 * inferior.h: Ditto.
8384 * mdebugread.c: Ditto.
8385 * mips-tdep.c: Ditto.
8386 * ppc-linux-nat.c: Ditto.
8387 * ppc-linux-tdep.c: Ditto.
8388 * printcmd.c: Ditto.
8389 * sol-thread.c: Ditto.
8390 * solib-frv.c: Ditto.
8392 * sparc64-tdep.c: Ditto.
8393 * spu-tdep.c: Ditto.
8394 * stabsread.c: Ditto.
8399 * python/py-block.c: Ditto.
8400 * python/py-symbol.c: Ditto.
8401 * python/py-symtab.c: Ditto.
8402 * python/py-value.c: Ditto.
8403 * tui/tui-win.c: Ditto.
8405 2011-02-25 Michael Snyder <msnyder@vmware.com>
8407 * inferior.c (print_inferior): Accept a string instead of an int
8408 for requested_inferiors, and use get_number_or_range to parse it.
8409 (info_inferiors_command): Pass args string to print_inferior.
8410 (initialize_inferiors): Change help string for info inferiors.
8411 * inferior.h (print_inferior): Export prototype change.
8413 2011-02-25 Tom Tromey <tromey@redhat.com>
8415 * common/ax.def (invalid2): Set to 0x31.
8417 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8419 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8421 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8423 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8425 2011-02-24 Michael Snyder <msnyder@vmware.com>
8427 * Makefile.in (clean): Make clean should remove generated files
8428 observer.h and observer.inc.
8430 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8432 Revert the following patch (not approved yet):
8433 2011-02-21 Hui Zhu <teawater@gmail.com>
8434 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8435 * ax-gdb.c (gen_printf_expr_callback): New function.
8436 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8437 * ax-general.c (ax_memcpy): New function.
8438 (ax_print): Handle "printf".
8440 * ax.h (ax_memcpy): Forward declare.
8441 * common/ax.def (invalid2): Removed.
8442 (printf): New entry.
8443 * printcmd.c (printcmd.h): New include.
8444 (string_printf): New function.
8445 (ui_printf): Removed.
8446 (printf_command): Remove static. Call string_printf.
8447 (eval_command): Call string_printf.
8448 * printcmd.h: New file.
8449 * tracepoint.c (validate_actionline,
8450 encode_actions_1): handle printf_command.
8452 2011-02-23 Tom Tromey <tromey@redhat.com>
8454 * ax-general.c (ax_pick): Add missing newline.
8456 2011-02-23 Michael Snyder <msnyder@vmware.com>
8458 * breakpoint.c (breakpoint_1): Change first argument from an int
8459 to a char pointer, so that the function now accepts a list of
8460 breakpoints rather than just one. Use new function
8461 'number_is_in_list' to implement.
8462 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8463 (watchpoints_info): Ditto.
8464 (tracepoints_info): Ditto.
8465 (maintenance_info_breakpoints): Ditto.
8466 (_initialize_breakpoint): Update help strings to reflect the fact
8467 that these functions can now take more than one argument.
8468 * cli/cli-utils.c (number_is_in_list): New function.
8469 * cli/cli-utils.h (number_is_in_list): Export.
8471 2011-02-23 Michael Snyder <msnyder@vmware.com>
8473 * memattr.c (mem_enable_command): Use get_number_or_range.
8474 (mem_disable_command): Ditto.
8475 (mem_delete_command): Ditto.
8476 (_initialize_mem): Tweak usage message to reflect multiple
8479 2011-02-22 Doug Evans <dje@google.com>
8481 Add gdb.lookup_global_symbol python function.
8483 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8484 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8485 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8487 2011-02-22 Tom Tromey <tromey@redhat.com>
8489 * language.c (language_class_name_from_physname): Rename
8490 'curr_language' argument to 'lang'; use in body.
8492 2011-02-22 Michael Snyder <msnyder@vmware.com>
8494 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8496 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8498 * frame-unwind.h: Fix comment to mention the this frame, not the
8501 2011-02-22 Tom Tromey <tromey@redhat.com>
8503 * symfile.c (auto_solib_limit): Remove.
8504 * symfile.h (auto_solib_limit): Remove.
8506 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8508 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8510 2011-02-21 Michael Snyder <msnyder@vmware.com>
8512 * gdbthread.h (print_thread_info): Change prototype.
8513 * thread.c (print_thread_info): Accept char* instead of int for
8514 requested_threads argument. Use new function number_is_in_list
8515 to determine which threads to list.
8516 (info_threads_command): Pass char* to print_thread_info.
8517 * cli/cli-utils.c (number_is_in_list): New function.
8518 * cli/cli-utils.h (number_is_in_list): Export.
8519 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8521 (print_one_inferior): Ditto.
8522 (mi_cmd_list_thread_groups): Ditto.
8524 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8526 * common/Makefile.in (CFLAGS): New.
8527 (COMPILE): Add $(CFLAGS).
8529 2011-02-21 Tom Tromey <tromey@redhat.com>
8531 * breakpoint.c (catch_syscall_command_1): Fix typo.
8533 2011-02-21 Tom Tromey <tromey@redhat.com>
8535 * reverse.c: Include cli-utils.h.
8536 * printcmd.c: Include cli-utils.h.
8537 (string_printf): Use skip_spaces.
8538 * cli/cli-utils.h: New file.
8539 * cli/cli-utils.c: New file.
8540 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8541 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8542 * breakpoint.h (get_number, get_number_or_range): Move to
8544 * breakpoint.c: Include cli-utils.h.
8545 (get_number_trailer, get_number, get_number_or_range)
8546 (ep_skip_leading_whitespace): Move to cli-utils.c.
8547 (create_breakpoint_sal, find_condition_and_thread)
8548 (decode_static_tracepoint_spec, watch_command_1)
8549 (watch_maybe_just_location, ep_parse_optional_if_clause)
8550 (catch_fork_command_1, catch_exec_command_1)
8551 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8552 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8553 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8554 (HFILES_NO_SRCDIR): Add cli-utils.h.
8555 (cli-utils.o): New target.
8557 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8559 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8560 before calling discard_all_inferiors.
8562 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8564 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8565 (struct builtin_opencl_type): Remove.
8566 (builtin_opencl_type): Change return type to "struct type **".
8567 (lookup_opencl_vector_type): Update caller.
8568 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8569 (build_opencl_types): Install plain array of "struct type *"
8570 instead of "struct builtin_opencl_type".
8572 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8573 Ulrich Weigand <uweigand@de.ibm.com>
8575 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8576 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8577 (struct arm_linux_hwbp_cap): New type.
8578 (arm_linux_get_hwbp_cap): New function.
8579 (arm_linux_get_hw_breakpoint_count): Likewise.
8580 (arm_linux_get_hw_watchpoint_count): Likewise.
8581 (arm_linux_can_use_hw_breakpoint): Likewise.
8582 (arm_hwbp_type): New type.
8583 (arm_hwbp_control_t): Likewise.
8584 (struct arm_linux_hw_breakpoint): Likewise.
8585 (struct arm_linux_thread_points): Likewise.
8586 (arm_threads): New global variable.
8587 (arm_linux_find_breakpoints_by_tid): New function.
8588 (arm_hwbp_control_initialize): Likewise.
8589 (arm_hwbp_control_is_enabled): Likewise.
8590 (arm_hwbp_control_disable): Likewise.
8591 (arm_linux_hw_breakpoint_initialize): Likewise.
8592 (arm_linux_get_hwbp_type): Likewise.
8593 (arm_linux_hw_watchpoint_initialize): Likewise.
8594 (arm_linux_hw_breakpoint_equal): Likewise.
8595 (arm_linux_insert_hw_breakpoint1): Likewise.
8596 (arm_linux_remove_hw_breakpoint1): Likewise.
8597 (arm_linux_insert_hw_breakpoint): Likewise.
8598 (arm_linux_remove_hw_breakpoint): Likewise.
8599 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8600 (arm_linux_insert_watchpoint): Likewise.
8601 (arm_linux_remove_watchpoint): Likewise.
8602 (arm_linux_stopped_data_address): Likewise.
8603 (arm_linux_stopped_by_watchpoint): Likewise.
8604 (arm_linux_watchpoint_addr_within_range): Likewise.
8605 (arm_linux_new_thread): Likewise.
8606 (arm_linux_thread_exit): Likewise.
8607 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8608 related target callbacks. Register arm_linux_new_thread and
8609 arm_linux_thread_exit.
8610 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8611 * arm-tdep.c (arm_pc_is_thumb): Make global.
8612 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8614 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8616 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8617 per-frame locations while within a function epilogue.
8619 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8621 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8622 to GNU coding standards.
8624 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8626 Allow use of mingw native on Windows 95 OS.
8627 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8628 (ser_windows_close): Only call CancelIo if function exists.
8629 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8630 to check for existence of CancelIo function in kernel32 DLL.
8632 2011-02-21 Hui Zhu <teawater@gmail.com>
8634 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8635 * ax-gdb.c (gen_printf_expr_callback): New function.
8636 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8637 * ax-general.c (ax_memcpy): New function.
8638 (ax_print): Handle "printf".
8640 * ax.h (ax_memcpy): Forward declare.
8641 * common/ax.def (invalid2): Removed.
8642 (printf): New entry.
8643 * printcmd.c (printcmd.h): New include.
8644 (string_printf): New function.
8645 (ui_printf): Removed.
8646 (printf_command): Remove static. Call string_printf.
8647 (eval_command): Call string_printf.
8648 * printcmd.h: New file.
8649 * tracepoint.c (validate_actionline,
8650 encode_actions_1): handle printf_command.
8652 2011-02-19 Michael Snyder <msnyder@vmware.com>
8654 * reverse.c (delete_one_bookmark): Argument is now bookmark
8655 id rather than pointer to bookmark struct.
8656 (delete_bookmark_command): Use get_number_or_range.
8657 (goto_bookmark_command): Parse with get_number instead of strtoul.
8658 (bookmark_1): New function. Print info for one bookmark.
8659 (bookmarks_info): Use get_number_or_range and bookmark_1.
8661 2011-02-18 Michael Snyder <msnyder@vmware.com>
8663 * thread.c (info_threads_command): Re-implement using
8664 get_number_or_range.
8665 (thread_apply_command): Ditto.
8667 2011-02-18 Tom Tromey <tromey@redhat.com>
8669 * common/ax.def: New file.
8670 * ax.h (enum agent_op): Use ax.def.
8671 * ax-general.c (aop_map): Use ax.def.
8673 2011-02-18 Tom Tromey <tromey@redhat.com>
8675 * ax-general.c (aop_map): Add pick and rot.
8676 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8677 <DW_OP_rot>: Implement.
8678 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8680 * ax-general.c (ax_pick): New function.
8682 2011-02-18 Tom Tromey <tromey@redhat.com>
8684 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8686 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8687 Tom Tromey <tromey@redhat.com>
8689 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8690 make_symbol_overload_list_block with NULL BLOCK.
8691 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8693 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8695 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8696 * breakpoint.h (get_number_or_range): Declare.
8697 * printcmd.c (ALL_DISPLAYS): Declare.
8698 (delete_display): Reimplement taking a display pointer.
8699 (undisplay_command): Accept a range of displays to delete, using
8700 get_number_or_range.
8702 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8704 * c-valprint.c (c_val_print): Add embedded_offset to address
8705 for arrays of unspecified length.
8706 * p-valprint.c (pascal_val_print): Likewise.
8708 2011-02-18 Yao Qi <yao@codesourcery.com>
8710 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8711 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8712 (thumb_process_displaced_insn): New.
8713 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8714 call to arm_process_displaced_insn.
8715 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8717 2011-02-17 Tom Tromey <tromey@redhat.com>
8719 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8720 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8721 compile_dwarf_to_ax. No longer static. Call
8722 dwarf2_compile_cfa_to_ax.
8723 (locexpr_tracepoint_var_ref): Update.
8724 (loclist_tracepoint_var_ref): Update.
8725 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8726 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8727 argument; add 'gdbarch' and 'pc'.
8728 (dwarf2_compile_cfa_to_ax): New function.
8729 (dwarf2_frame_cache): Update.
8731 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8733 * ada-lang.c (ada_type_of_array): Fix the size of the array
8734 in the case of an unconstrained packed array.
8736 2011-02-17 Yao Qi <yao@codesourcery.com>
8738 * common/Makefile.in: Add more targets for make.
8740 2011-02-16 Tom Tromey <tromey@redhat.com>
8742 * dwarf2loc.c (unimplemented): Fix typo.
8744 2011-02-16 Tom Tromey <tromey@redhat.com>
8746 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8747 (compile_dwarf_to_ax) <default>: Use unimplemented.
8748 <DW_OP_deref>: Update.
8749 (disassemble_dwarf_expression): Update.
8750 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8751 (decode_locdesc): Update.
8752 * dwarf2expr.h (dwarf_stack_op_name): Update.
8754 2011-02-16 Tom Tromey <tromey@redhat.com>
8756 * ax.h (struct aop_map) <name>: Now const.
8758 2011-02-16 Tom Tromey <tromey@redhat.com>
8760 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8763 2011-02-16 Yao Qi <yao@codesourcery.com>
8765 * infrun.c (get_displaced_step_closure_by_addr): New.
8766 * inferior.h: Declare it.
8767 * arm-tdep.c: (arm_pc_is_thumb): Call
8768 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8771 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8772 Jan Kratochvil <jan.kratochvil@redhat.com>
8775 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8777 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8778 Jan Kratochvil <jan.kratochvil@redhat.com>
8780 * value.c (value_contents_copy_raw): Extend describing comment.
8781 Assert that the destination contents we're overwriting are wholly
8783 (value_contents_copy): Extend describing comment.
8785 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8786 Jan Kratochvil <jan.kratochvil@redhat.com>
8788 * value.c (value_available_contents_eq): Remove redundant local
8789 variables. Fix available contents comparision.
8790 * value.h (value_available_contents_eq): Extend describing
8793 2011-02-16 Yao Qi <yao@codesourcery.com>
8795 * thread.c (info_threads_command): Add missing i18n markup and remove
8798 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8800 * breakpoint.c (longjmp_names): New variable.
8801 (struct breakpoint_objfile_data): New type.
8802 (breakpoint_objfile_key): New variable.
8803 (msym_not_found): New variable.
8804 (msym_not_found_p): New predicate.
8805 (get_breakpoint_objfile_data): New function.
8806 (create_overlay_event_breakpoint): Check per-objfile cache for
8808 (create_longjmp_master_breakpoint): Likewise.
8809 (create_std_terminate_master_breakpoint): Likewise.
8810 (create_exception_master_breakpoint): Likewise.
8811 (_initialize_breakpoint): Register per-objfile data key.
8813 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8815 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8817 (create_longjmp_master_breakpoint): Loop over longjmp names.
8818 (create_std_terminate_master_breakpoint): Const-propagate parameter
8820 (update_breakpoints_after_exec): Adjust.
8821 (breakpoint_re_set): Adjust.
8823 2011-02-15 Michael Snyder <msnyder@vmware.com>
8825 * thread.c (info_threads_command): Process arg as thread id,
8826 or list of thread ids.
8827 (thread_find_command): New command.
8828 (_initialize_thread): Document argument for info threads.
8829 Document 'thread find' command.
8830 * NEWS: Document new command "thread find".
8832 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8834 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8835 * aclocal.m4: Regenerated with aclocal-1.11.1.
8836 * common/configure: Regenerate with autoconf-2.64.
8838 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8840 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8841 bool data type to a size of one byte.
8843 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8844 Jan Kratochvil <jan.kratochvil@redhat.com>
8846 * target.c (memory_xfer_live_readonly_partial): Document where to
8847 look for interface description.
8849 2011-02-15 Yao Qi <yao@codesourcery.com>
8852 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8853 order to store PC value on stack instead of text section.
8855 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8857 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8858 the EFP register set size.
8859 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8860 data from the VMX register.
8861 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8862 and write data from/to the VMX register.
8864 2011-02-14 Michael Snyder <msnyder@vmware.com>
8866 * command.h (enum command_class): New class 'no_set_class', for
8867 "show" commands without a corresponding "set" command.
8868 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8869 * copying.c (_initialize_copying): Ditto for "show copying" and
8871 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8873 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8874 which there is no corresponding "set" command (eg. "show copying").
8876 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8877 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 * exec.c (section_table_available_memory): Change `len' parameter
8881 * exec.h (section_table_available_memory): Ditto.
8882 * value.h (read_value_memory): Rename the `offset' parameter to
8885 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8886 Jan Kratochvil <jan.kratochvil@redhat.com>
8888 * memrange.c (compare_mem_ranges): Mention sort order in
8890 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8891 * tracepoint.c (traceframe_available_memory): Extend comment to
8892 mention what happens to RESULT when the target does not support
8895 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8896 Jan Kratochvil <jan.kratochvil@redhat.com>
8898 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8901 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8903 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8904 No longer handle NULL values.
8906 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8908 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8909 * value.c: Include "exceptions.h".
8910 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8912 * cp-abi.c: Include gdb_assert.h.
8913 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8914 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8916 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8917 parameters. No longer returns -1 on error.
8918 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8920 * cp-valprint.c: Include exceptions.h.
8921 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8922 the baseclass_offset. Handle unavailable base classes. Use
8923 val_print_invalid_address.
8924 * p-valprint.c: Include exceptions.h.
8925 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8926 when fetching the baseclass_offset. No longer expect
8927 baseclass_offset returning -1. Handle unavailable base classes.
8928 Use val_print_invalid_address.
8929 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8930 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8931 `embedded_offset' and `val' parameters. Adjust.
8932 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8933 parameter, and change its type to gdb_byte pointer. Add
8934 `embedded_offset' and `val' parameters. Adjust. No longer expect
8935 baseclass_offset returning -1.
8936 (value_dynamic_cast): Use value_contents_for_printing rather than
8937 value_contents. Adjust.
8938 (search_struct_field): No longer expect baseclass_offset returning
8940 (search_struct_method): If reading memory from the target is
8941 necessary, wrap it in a new value to pass to baseclass_offset. No
8942 longer expect baseclass_offset returning -1.
8943 (find_method_list): No longer expect baseclass_offset returning
8944 -1. Use value_contents_for_printing rather than value_contents.
8945 * valprint.c (val_print_invalid_address): New function.
8946 * valprint.h (val_print_invalid_address): Declare.
8947 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8948 and `val' parameters. No longer expect baseclass_offset returning
8950 * gnu-v2-abi.c: Include "exceptions.h".
8951 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8952 parameters. Handle unavailable memory. Recurse through
8953 gnuv2_baseclass_offset directly, rather than through
8954 baseclass_offset. No longer returns -1 on not found, instead
8956 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8957 `val' parameters. Adjust.
8959 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8961 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8962 almost but not quite adjacent.
8964 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8966 * value.h (value_entirely_available): Declare.
8967 * value.c (value_entirely_available): New function.
8968 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8969 real type if the pointer is unavailable.
8971 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8973 * valops.c (value_repeat): Use read_value_memory instead of
8976 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8978 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8979 * value.c (value_contents_copy_raw, value_contents_copy): New
8981 (value_primitive_field): Use value_contents_copy_raw instead of
8983 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8985 (value_array, value_slice): Ditto.
8986 * valarith.c (value_subscripted_rvalue): Use
8987 value_contents_copy_raw instead of memcpy.
8989 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8991 <unavailable> references.
8993 * valops.c (get_value_at): Use value_from_contents_and_address,
8994 avoiding read_memory.
8996 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8998 * c-valprint.c (c_val_print): Print a string with unavailable
8999 contents as an array.
9001 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9003 * value.h (unpack_bits_as_long): Delete declaration.
9004 (unpack_value_bits_as_long): Declare.
9005 (unpack_value_field_as_long): Declare.
9006 (value_field_bitfield): Declare.
9007 * value.c (unpack_bits_as_long): Rename to...
9008 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9009 value parameters. Return the extracted result in a new output
9010 parameter. If the value contents are unavailable, return false,
9011 otherwise return true.
9012 (unpack_value_bits_as_long): New.
9013 (unpack_field_as_long): Rename to...
9014 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9015 Add embedded_offset and value parameters. Return the extracted
9016 result in a new output parameter. If the value contents are
9017 unavailable, return false, otherwise return true.
9018 (unpack_value_field_as_long): New.
9019 (unpack_field_as_long_1): New.
9020 (unpack_field_as_long): Reimplement as wrapper around
9021 unpack_value_field_as_long_1.
9022 (value_field_bitfield): New function.
9023 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9024 unpack_value_bits_as_long. Mark the value as unavailable, if it
9026 * jv-valprint.c (java_print_value_fields): Use
9027 value_field_bitfield.
9028 * p-valprint.c (pascal_object_print_value_fields): Use
9029 value_field_bitfield.
9030 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9032 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9034 * value.c (get_internalvar_integer): Also return the int value of
9035 TYPE_CODE_INT INTERNALVAR_VALUE values.
9036 (set_internalvar): Don't special case TYPE_CODE_INT.
9038 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9040 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9041 INTERNALVAR_POINTER.
9043 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9044 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9045 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9047 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9049 * value.h (value_available_contents_eq): Declare.
9050 * value.c (find_first_range_overlap): New function.
9051 (value_available_contents_eq): New function.
9052 * valprint.c (val_print_array_elements): Use
9053 value_available_contents_eq.
9054 * ada-valprint.c (val_print_packed_array_elements): Use
9055 value_available_contents_eq.
9056 * jv-valprint.c (java_value_print): Use
9057 value_available_contents_eq.
9059 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9061 * target.c (target_read_live_memory): New function.
9062 (memory_xfer_live_readonly_partial): New.
9063 (memory_xfer_partial): If reading from a traceframe, fallback to
9064 reading unavailable read-only memory from read-only regions of
9066 * tracepoint.c (disconnect_tracing): Adjust.
9067 (set_current_traceframe): New, factored out from
9068 set_traceframe_number.
9069 (set_traceframe_number): Reimplement to only change the traceframe
9070 number on the GDB side.
9071 (do_restore_current_traceframe_cleanup): Adjust.
9072 (make_cleanup_restore_traceframe_number): New.
9073 (cur_traceframe_number): New global.
9074 (tfile_open): Set cur_traceframe_number to no traceframe.
9075 (set_tfile_traceframe): New function.
9076 (tfile_trace_find): If looking up a traceframe using any method
9077 other than by number, make sure the current tfile traceframe
9078 matches gdb's current traceframe. Update the current tfile
9079 traceframe if the lookup succeeded.
9080 (tfile_fetch_registers, tfile_xfer_partial)
9081 (tfile_get_trace_state_variable_value): Make sure the remote
9082 traceframe matches gdb's current traceframe.
9083 * remote.c (remote_traceframe_number): New global.
9084 (remote_open_1): Set it to -1.
9085 (set_remote_traceframe): New function.
9086 (remote_fetch_registers, remote_store_registers)
9087 (remote_xfer_memory, remote_xfer_partial)
9088 (remote_get_trace_state_variable_value): Make sure the remote
9089 traceframe matches gdb's current traceframe.
9090 (remote_trace_find): If looking up a traceframe using any method
9091 other than by number, make sure the current remote traceframe
9092 matches gdb's current traceframe. Update the current remote
9093 traceframe if the lookup succeeded.
9094 * infrun.c (fetch_inferior_event): Adjust.
9095 * tracepoint.h (set_current_traceframe): Declare.
9096 (get_traceframe_number, set_traceframe_number): Add describing
9099 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9101 Mark pieces of values as unavailable if the corresponding memory
9104 * valops.c: Include tracepoint.h.
9105 (value_fetch_lazy): Use read_value_memory.
9106 (read_value_memory): New.
9107 * value.h (read_value_memory): Declare.
9108 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9109 * exec.c (section_table_available_memory): New function.
9110 * exec.h (section_table_available_memory): Declare.
9112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9114 * Makefile.in (SFILES): Add memrange.c.
9115 (HFILES_NO_SRCDIR): Add memrange.h.
9116 (COMMON_OBS): Add memrange.o.
9117 * memrange.c: New file.
9118 * memrange.h: New file.
9119 * tracepoint.c: Include memrange.h.
9120 (struct mem_range): Delete.
9121 (mem_range_s): Delete.
9122 (traceframe_available_memory): New function.
9123 * tracepoint.h (traceframe_available_memory): Declare.
9125 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9127 * target.h (struct traceframe_info): Forward declare.
9128 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9129 (struct target_ops) <to_traceframe_info>: New field.
9130 (target_traceframe_info): New.
9131 * target.c (update_current_target): Inherit and default
9133 * remote.c (PACKET_qXfer_traceframe_info): New.
9134 (remote_protocol_features): Register qXfer:traceframe-info:read.
9135 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9136 (remote_traceframe_info): New.
9137 (init_remote_ops): Install it.
9138 (_initialize_remote): Install "set/show remote traceframe-info"
9140 * tracepoint.h (parse_traceframe_info): Declare.
9141 * tracepoint.c (struct mem_range): New.
9142 (mem_range_s): New typedef.
9143 (struct traceframe_info): New.
9144 (traceframe_info): New global.
9145 (free_traceframe_info): New function.
9146 (clear_traceframe_info): New function.
9147 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9149 (build_traceframe_info): New function.
9150 (tfile_traceframe_info): New function.
9151 (init_tfile_ops): Install tfile_traceframe_info.
9152 (traceframe_info_start_memory, free_result): New functions.
9153 (memory_attributes, traceframe_info_elements): New globals.
9154 (parse_traceframe_info, get_traceframe_info): New functions.
9155 * features/traceframe-info.dtd: New file.
9156 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9158 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9160 Base support for <unavailable> value contents.
9162 * value.h (value_bytes_available): Declare.
9163 (mark_value_bytes_unavailable): Declare.
9164 * value.c (struct range): New struct.
9165 (range_s): New typedef.
9166 (ranges_overlap): New function.
9167 (range_lessthan): New function.
9168 (ranges_contain_p): New function.
9169 (struct value) <unavailable>: New field.
9170 (value_bytes_available): New function.
9171 (mark_value_bytes_unavailable): New function.
9172 (require_not_optimized_out): Constify parameter.
9173 (require_available): New function.
9174 (value_contents_all, value_contents): Require all bytes be
9176 (value_free): Free `unavailable'.
9177 (value_copy): Copy `unavailable'.
9178 * valprint.h (val_print_unavailable): Declare.
9179 * valprint.c (valprint_check_validity): Rename `offset' parameter
9180 to `embedded_offset'. If printing a scalar, check whether the
9181 value chunk is available.
9182 (val_print_unavailable): New.
9183 (val_print_scalar_formatted): Check whether the value is
9185 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9186 pretty-printing unavailable values.
9188 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9190 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9191 * c-typeprint.c (c_type_print_args): Update the function comment. New
9192 variable param_type, initialize it. Remove const/volatile qualifiers
9193 for language_cplus and !show_artificial. Use param_type.
9195 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9197 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9198 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9199 * symtab.h (struct symtab) <next>: Comment extension.
9201 2011-02-12 Yao Qi <yao@codesourcery.com>
9203 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9205 2011-02-11 Yao Qi <yao@codesourcery.com>
9207 * common/Makefile.in: Add copyright header.
9209 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9211 * infrun.c (proceed): Move switching out and in of tfind mode from
9213 (fetch_inferior_event): ... to here.
9215 2011-02-11 Yao Qi <yao@codesourcery.com>
9217 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9219 * configure.ac: Add common to sub dir.
9220 * configure: Regenerate.
9222 2011-02-11 Yao Qi <yao@codesourcery.com>
9226 * common/Makefile.in: New.
9227 * common/configure.ac: New.
9228 * common/aclocal.m4: New.
9229 * common/configure: Generate.
9231 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9233 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9234 side of the parenthesis.
9237 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9238 * vec.h (VEC_block_remove): Fix comment.
9240 2011-02-08 Michael Snyder <msnyder@vmware.com>
9242 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9244 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9246 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9247 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9250 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9253 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9255 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9256 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9258 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9260 * dwarf2read.c (read_subroutine_type): Set special calling
9261 convention flag for functions compiled by IBM XL C for OpenCL.
9262 * ppc-sysv-tdep.c: Include "dwarf2.h"
9263 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9265 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9266 IBM OpenCL vector types calling convention.
9267 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9268 (ppc_sysv_abi_broken_return_value): Likewise.
9269 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9270 types calling convention.
9271 (ppc64_sysv_abi_return_value): Likewise.
9272 * spu-tdep.c: Include "dwarf2.h"
9273 (spu_return_value): Implement IBM OpenCL vector types calling
9276 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9278 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9279 correct ABI for AltiVec vector arguments.
9281 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9283 * valprint.c (val_print): Extend comment.
9284 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9285 interface explanation to val_print.
9286 (ada_val_print_array): Adjust comment to current interface.
9287 (print_field_values): Adjust comment to current interface.
9288 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9289 explanation to val_print.
9290 * f-valprint.c (f_val_print): Ditto.
9291 * jv-valprint.c (java_val_print): Ditto.
9292 * m2-valprint.c (m2_val_print): Ditto.
9293 * p-valprint.c (pascal_val_print): Ditto.
9295 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9297 * breakpoint.c (parse_breakpoint_sals): Fix description.
9299 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9300 Oguz Kayral <oguzkayral@gmail.com>
9302 * python/py-inferior.c (python_on_normal_stop): New function.
9303 (python_on_resume): New function.
9304 (python_inferior_exit): New function.
9305 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9306 inferior_exit observers.
9307 * python/py-evtregistry.c: New file.
9308 * python/py-threadevent.c : New file.
9309 * python/py-event.c: New file.
9310 * python/py-evts.c: New file.
9311 * python/py-continueevent.c: New file.
9312 * python/py-bpevent.c: New file.
9313 * python/py-signalevent.c: New file.
9314 * python/py-exetiedevent.c: New file.
9315 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9316 Move struct breakpoint_object from here...
9317 * python/python-internal.h: ... to here.
9318 * python/py-event.h: New file.
9319 * python/py-events.h: New file.
9320 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9321 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9322 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9323 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9324 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9325 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9326 Add build rules for all the above.
9328 2011-02-04 Tom Tromey <tromey@redhat.com>
9330 * dwarf2read.c (dwarf2_section_empty_p): New function.
9331 (dwarf2_read_section): Use dwarf2_section_empty_p.
9332 (dwarf2_section_size): New function.
9333 (dwarf2_get_section_info): Unconditionally read section.
9334 (dwarf2_read_index): Use dwarf2_section_empty_p.
9335 (partial_read_comp_unit_head): Use dwarf2_section_size.
9336 (dwarf2_symbol_mark_computed): Likewise.
9338 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9340 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9342 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9344 * mips-linux-tdep.c: Include xml-syscall.h.
9345 (mips_linux_get_syscall_number): New function.
9346 (mips_linux_init_abi): Add calls to
9347 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9348 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9349 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9350 * syscalls/mips-n32-linux.xml: New file.
9351 * syscalls/mips-n64-linux.xml: New file.
9352 * syscalls/mips-o32-linux.xml: New file.
9354 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9356 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9357 Complain about inverted range entries.
9358 (dwarf2_record_block_ranges): Likewise.
9360 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9363 * breakpoint.c (update_watchpoint): Fix name of the
9364 update_global_location_list function.
9365 (print_one_breakpoint): Fix typo.
9366 (_initialize_breakpoint): Remove extra space in hbreak help
9368 * breakpoint.h (struct bp_location) <length>: Fix field
9371 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9373 * regcache.c (registers_changed_ptid): Don't explictly always
9374 clear `current_regcache'. Only clear current_thread_ptid and
9375 current_thread_arch when PTID matches. Only reinit the frame
9376 cache if PTID matches the current inferior_ptid. Move alloca(0)
9378 (registers_changed): ... here.
9380 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9382 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9383 starts with __stack_chk_guard as stack guard symbol.
9385 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9387 * disasm.c (compare_lines): Handle the end of sequence markers
9388 within the line table to better support disassembling over
9389 compilation unit boundaries.
9391 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9393 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9394 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9395 implementation even if no symbols are available.
9396 (thumb_analyze_prologue): Update call to skip_prologue_function.
9397 (arm_analyze_prologue): Likewise.
9399 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9401 * arm-tdep.c: Include "observer.h".
9402 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9403 (arm_exidx_data_key): New static variable.
9404 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9405 (struct arm_exidx_data): Likewise.
9406 (arm_exidx_data_free): New function.
9407 (arm_compare_exidx_entries): Likewise.
9408 (arm_obj_section_from_vma): Likewise.
9409 (arm_exidx_new_objfile): Likewise.
9410 (arm_find_exidx_entry): Likewise.
9411 (arm_exidx_fill_cache): Likewise.
9412 (arm_exidx_unwind_sniffer): Likewise.
9413 (arm_exidx_unwind): New global variable.
9414 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9415 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9416 observer. Register arm_exidx_data_key as objfile data.
9418 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9420 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9421 due to accessing uninitialized variable. Fix indentation.
9423 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9425 * c-valprint.c (c_value_print): When doing virtual base pointer
9426 adjustment, create a new value with adjusted contents rather than
9427 changing the contents of the value being printed (and getting it
9430 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9432 * xml-support.c (xml_find_attribute): New.
9433 (xinclude_start_include): Use it.
9434 * xml-support.h (xml_find_attribute): Declare.
9435 * memory-map.c (memory_map_start_memory)
9436 (memory_map_start_property): Use xml_find_attribute.
9437 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9439 * remote.c (start_thread): Use xml_find_attribute.
9440 * solib-target.c (library_list_start_segment)
9441 (library_list_start_section, library_list_start_library)
9442 (library_list_start_list): Use xml_find_attribute.
9443 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9444 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9445 (tdesc_start_field): Use xml_find_attribute.
9447 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9449 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9450 (BUILD_OCL_VTYPES): Update.
9452 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9454 * configure.ac: Work around non-GNU sed limitation when computing
9455 python version number.
9456 * configure: Regenerate.
9458 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9460 Fix debug printing of TYPE_INSTANCE.
9461 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9462 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9464 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9466 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9467 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9468 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9469 * ada-operator.inc: Rename the file to ...
9470 * ada-operator.def: ... here, wrap all the entries by macro OP.
9471 * expprint.c (op_name_standard): Remove all the entries. Include
9472 "std-operator.def" instead.
9473 * expression.h (enum exp_opcode): Include "std-operator.def" and
9474 "ada-operator.def". Move all the entries ...
9475 * std-operator.def: ... here, wrap all the entries by macro OP.
9477 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9479 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9480 * breakpoint.c (remove_jit_event_breakpoints): New function.
9481 * jit.c (jit_descriptor_addr): Delete.
9482 (registering_code): Delete.
9483 (clear_int): Delete.
9484 (jit_inferior_data): New variable.
9485 (struct jit_inferior_data): New type.
9486 (get_jit_inferior_data): New function.
9487 (jit_inferior_data_cleanup): New function.
9488 (jit_read_descriptor): Adjust.
9489 (jit_register_code): Adjust.
9490 (jit_breakpoint_re_set_internal): New function; move code here ...
9491 (jit_inferior_init): ... from here.
9492 (jit_breakpoint_re_set): Adjust.
9493 (jit_reset_inferior_data_and_breakpoints): New function.
9494 (jit_inferior_created_observer): Adjust.
9495 (jit_inferior_exit_hook): Adjust.
9496 (jit_executable_changed_observer): New function.
9497 (jit_event_handler): Adjust.
9498 (_initialize_jit): Adjust.
9500 2011-01-31 Michael Snyder <msnyder@vmware.com>
9502 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9505 2011-01-31 Tom Tromey <tromey@redhat.com>
9508 * python/python.c (execute_gdb_command): Call
9509 prevent_dont_repeat.
9510 * top.c (suppress_dont_repeat): New global.
9511 (dont_repeat): Use it.
9512 (prevent_dont_repeat): New function.
9513 * command.h (prevent_dont_repeat): Declare.
9515 2011-01-31 Tom Tromey <tromey@redhat.com>
9517 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9518 * python/py-breakpoint.c (bppy_set_silent): Use
9519 breakpoint_set_silent.
9520 (bppy_set_thread): Use breakpoint_set_thread.
9521 (bppy_set_task): Use breakpoint_set_task.
9522 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9523 (breakpoint_set_task): Declare.
9524 (make_breakpoint_silent): Remove.
9525 * breakpoint.c (breakpoint_set_silent): New function.
9526 (breakpoint_set_thread): Likewise.
9527 (breakpoint_set_task): Likewise.
9528 (make_breakpoint_silent): Remove.
9530 2011-01-31 Tom Tromey <tromey@redhat.com>
9532 * breakpoint.h (user_breakpoint_p): Declare.
9533 * breakpoint.c (user_breakpoint_p): New function.
9534 (breakpoint_1): Use it.
9535 (save_breakpoints): Likewise.
9537 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9539 * configure.ac: Add handling of Python distribution on Windows.
9540 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9541 sysconfig variables are not defined, then do not use them.
9542 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9543 instead. On Windows, return all paths using forward-slashes
9544 rather than backslashes.
9546 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9548 * configure.ac: Remove fallback behavior for building
9549 against Python. Remove tweaking of Python include path.
9550 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9551 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9552 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9553 Always restore CPPFLAGS and LIBS after linking test.
9554 * configure: Regenerated.
9555 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9556 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9557 * python/python-internal.h: Adjust includes of Python .h files.
9559 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9561 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9564 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9566 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9569 2011-01-31 Yao Qi <yao@codesourcery.com>
9571 * arm-linux-nat.c: Update calls to regcache_register_status
9572 instead of regcache_valid_p.
9573 * aix-thread.c: Likewise.
9574 * i386gnu-nat.c: Likewise.
9576 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9579 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9580 touching TYPE_FIELD_ARTIFICIAL.
9582 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9584 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9587 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9589 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9590 selected, don't try iterating over the traceframe's blocks.
9591 (tfile_has_stack): If there's no traceframe selected, then there's
9593 (tfile_has_registers): If there's no traceframe selected, then
9594 there's no registers.
9596 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9598 * target.c (memory_xfer_partial): No need to restore shadows if we
9599 haven't read anything.
9601 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9603 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9604 and val_print_scalar_formatted.
9606 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9608 * tracepoint.c (tfile_read): New.
9609 (tfile_open): Use it.
9610 (tfile_get_traceframe_address): Use it.
9611 (tfile_trace_find): Use it.
9612 (walk_blocks_callback_func): New typedef.
9613 (match_blocktype): New function.
9614 (traceframe_walk_blocks): New function.
9615 (traceframe_find_block_type): New function.
9616 (tfile_fetch_registers, tfile_xfer_partial)
9617 (tfile_get_trace_state_variable_value): Use
9618 traceframe_find_block_type and tfile_read.
9620 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9622 * remote-mips.c: Add internationalization mark ups. Remove
9623 trailing \n from already marked up strings.
9625 2011-01-26 Tom Tromey <tromey@redhat.com>
9627 * python/py-prettyprint.c (print_string_repr): Clear
9628 'addressprint' option when calling val_print_string.
9629 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9630 option when calling val_print_string.
9632 2011-01-26 Tom Tromey <tromey@redhat.com>
9634 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9636 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9638 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9639 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9640 (gdb_py_long_as_ulongest): New defines.
9641 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9642 (gdb_py_int_as_long): Declare.
9643 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9644 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9645 (valpy_long): Add comment.
9646 * python/py-utils.c (get_addr_from_python): Use
9647 gdb_py_long_as_ulongest. Handle overflow properly.
9648 (gdb_py_object_from_longest): New function.
9649 (gdb_py_object_from_ulongest): Likewise.
9650 (gdb_py_int_as_long): Likewise.
9651 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9652 * python/py-symtab.c (salpy_get_pc): Use
9653 gdb_py_long_from_ulongest.
9654 (salpy_get_line): Use PyInt_FromLong.
9655 * python/py-param.c (set_parameter_value): Use
9657 * python/py-lazy-string.c (stpy_get_address): Use
9658 gdb_py_long_from_ulongest.
9659 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9660 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9661 * python/py-breakpoint.c (bppy_set_thread): Use
9663 (bppy_set_task): Likewise.
9664 (bppy_set_ignore_count): Likewise.
9665 (bppy_set_hit_count): Likewise.
9666 * python/py-block.c (blpy_get_start): Use
9667 gdb_py_object_from_ulongest.
9668 (blpy_get_end): Likewise.
9669 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9671 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9674 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9675 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9676 equality test for objfile, initialize addr_low if needed.
9678 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9680 * tui/tui-regs.c (tui_register_format): Remove dead code.
9682 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9684 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9685 instead of print_scalar_formatted.
9686 (print_scalar_formatted): Don't handle 's' format strings here,
9687 and add an assertion that we never see such format here.
9688 * valprint.h (val_print_scalar_formatted): Declare.
9689 * valprint.c (val_print_scalar_formatted): New.
9690 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9691 instead of print_scalar_formatted.
9692 * jv-valprint.c (java_val_print): Ditto.
9693 * p-valprint.c (pascal_val_print): Ditto.
9694 * ada-valprint.c (ada_val_print_1): Ditto.
9695 * f-valprint.c (f_val_print): Ditto.
9696 * infcmd.c (registers_info): Ditto.
9697 * m2-valprint.c (m2_val_print): Ditto.
9699 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9701 * m2-valprint.c (print_unbounded_array): Pass
9702 value_contents_for_printing rather than value_contents, to
9703 m2_print_array_contents. Also pass in the value.
9705 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9707 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9708 (save_gdb_index_command): Switch to .gdb_index version 4.
9710 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9712 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9713 than frame_register, and always pass a valid value to val_print.
9715 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9717 Centralize printing "<optimized out>".
9719 * valprint.h (val_print_optimized_out): Declare.
9720 * cp-valprint.c (cp_print_value_fields): Use
9721 val_print_optimized_out.
9722 * jv-valprint.c (java_print_value_fields): Ditto.
9723 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9724 * printcmd.c (print_formatted): Ditto.
9725 * valprint.c (valprint_check_validity): Ditto.
9726 (value_check_printable): Ditto.
9727 (val_print_optimized_out): New.
9729 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9731 * infcmd.c (default_print_registers_info): Allocate values so to
9732 never pass a NULL value to val_print.
9734 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9736 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9737 boolean. Make sure to always pass a value that matches the
9738 contents buffer to callees. Preserve `address' for following
9740 * value.c (value_contents_for_printing_const): New.
9741 (value_address): Constify value argument.
9742 * value.h (value_contents_for_printing_const): Declare.
9743 (value_address): Constify value argument.
9745 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9747 * regcache.c (struct regcache_descr): Rename
9748 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9749 and sizeof_cooked_register_valid_p to
9750 sizeof_cooked_register_status.
9751 (init_regcache_descr): Adjust.
9752 (struct regcache): Rename register_valid_p field to
9754 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9755 (do_cooked_read): Adjust.
9756 (regcache_valid_p): Rename to ...
9757 (regcache_register_status): ... this. Adjust.
9758 (regcache_invalidate): Adjust.
9759 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9761 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9762 as unavailable, not valid.
9763 (regcache_dump): Adjust.
9764 * regcache.h (enum register_status): New.
9765 (regcache_register_status): Declare.
9766 (regcache_invalidate): Delete declaration.
9767 * corelow.c (get_core_registers): Adjust.
9768 * tracepoint.c (tfile_fetch_registers): Adjust.
9769 * trad-frame.c (REG_VALUE): Rename to ...
9770 (TF_REG_VALUE): ... this.
9771 (REG_UNKNOWN): Rename to ...
9772 (TF_REG_UNKNOWN): ... this.
9773 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9774 * mi/mi-main.c (register_changed_p): Adjust.
9776 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9778 * regcache.c (struct regcache_descr): Remove outdated comment.
9779 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9781 (regcache_xmalloc): Rename to ...
9782 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9783 Allocate the regcache type accordingly.
9784 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9785 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9786 cooked registers, not raw.
9787 (regcache_dup_no_passthrough): Delete.
9788 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9789 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9790 mention obsolete write_register_bytes.
9791 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9793 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9795 Stop remote_read_bytes from handling partial reads itself.
9797 * remote-fileio.c: Include target.h.
9798 (remote_fileio_write_bytes): Delete.
9799 (remote_fileio_func_open, remote_fileio_func_write)
9800 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9802 (remote_fileio_func_stat): Use target_read_memory and
9803 target_write_memory.
9804 (remote_fileio_func_gettimeofday): Use target_write_memory.
9805 (remote_fileio_func_system): Use target_read_memory.
9806 * remote.c (remote_write_bytes): Make it static.
9807 (remote_read_bytes): Don't handle partial reads here.
9808 * remote.h (remote_read_bytes): Delete declaration.
9810 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9812 Simplify XML parsing a bit.
9814 * xml-support.h (gdb_xml_parse_quick): Declare.
9815 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9816 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9818 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9819 gdb_xml_create_parser_and_cleanup_1.
9820 (gdb_xml_parse_quick): New.
9821 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9822 * osdata.c (osdata_parse): Ditto.
9823 * remote.c (remote_threads_info): Ditto.
9824 * solib-target.c (solib_target_parse_libraries): Ditto.
9825 * xml-syscall.c (syscall_parse_xml): Ditto.
9826 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9828 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9830 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9831 with remote-mips.o added to gdb_target_obs.
9832 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9834 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9836 * ada-valprint.c (val_print_packed_array_elements): Pass the
9837 correct struct value to val_print.
9838 (ada_val_print_1): Ditto.
9840 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9842 Don't lose embedded_offset in printing routines throughout.
9844 * valprint.h (val_print_array_elements): Change prototype.
9845 * valprint.c (val_print_array_elements): Add `embedded_offset'
9846 parameter, and adjust to pass it down to val_print, while passing
9847 `valaddr' or `address' unmodified. Take embedded_offset into
9848 account when checking repetitions.
9849 * c-valprint.c (c_val_print): Pass embedded_offset to
9850 val_print_array_elements instead of adjusting `valaddr' and
9852 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9853 embedded_offset to val_print_array_elements instead of adjusting
9855 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9856 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9857 val_print_array_elements and pascal_object_print_value_fields
9858 instead of adjusting `valaddr'.
9859 (pascal_object_print_value_fields): Add `offset' parameter, and
9861 (pascal_object_print_value): Add `offset' parameter, and adjust to
9863 (pascal_object_print_static_field): Use
9864 value_contents_for_printing/value_embedded_offset, rather than
9866 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9867 parameter, and adjust to use it. Use
9868 value_contents_for_printing/value_embedded_offset, rather than
9870 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9871 (ada_val_print_array): Add `offset' parameter, and adjust to use
9873 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9874 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9875 Instead work with offsets. Use
9876 value_contents_for_printing/value_embedded_offset, rather than
9877 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9878 and use value_from_pointer to extract a target pointer, rather
9879 than value_from_longest.
9880 (print_variant_part): Add `offset' parameter. Replace
9881 `outer_valaddr' parameter by a new `outer_offset' parameter.
9882 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9883 (ada_value_print): Use
9884 value_contents_for_printing/value_embedded_offset, rather than
9886 (print_record): Add `offset' parameter, and adjust to pass it
9888 (print_field_values): Add `offset' parameter. Replace
9889 `outer_valaddr' parameter by a new `outer_offset' parameter.
9890 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9891 Use value_contents_for_printing/value_embedded_offset, rather than
9893 * d-valprint.c (dynamic_array_type): Use
9894 value_contents_for_printing/value_embedded_offset, rather than
9896 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9897 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9898 (java_print_value_fields): Take `offset' into account. Don't
9899 re-adjust `valaddr'. Instead pass down adjusted offsets.
9900 (java_val_print): Take `embedded_offset' into account. Pass it to
9901 java_print_value_fields.
9902 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9903 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9904 down adjusted offsets.
9905 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9906 (f_val_print): Take `embedded_offset' into account.
9908 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9910 * inflow.c: Include "gdbcmd.h".
9911 (interactive_mode): New static global, moved here from top.c.
9912 (show_interactive_mode): New function, moved here from top.c.
9913 use gdb_has_a_terminal instead of input_from_terminal_p to
9914 determine the current mode.
9915 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9917 (_initialize_inflow): Add the "set/show interactive-mode"
9918 commands. Moved here from top.c, after having adjusted slightly
9920 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9922 (input_from_terminal_p): Remove handling of "interactive-mode"
9923 setting, moved to infow.c.
9924 (init_main): Remove creation of the "set/show interactive-mode"
9925 commands, moved to inflow.c.
9927 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9929 * NEWS: Add entry for native ia64-hpux support.
9931 2011-01-19 Tom Tromey <tromey@redhat.com>
9934 * thread.c (free_thread): Free 'name'.
9935 (print_thread_info): Emit thread name. Change CLI output.
9936 (thread_name_command): New function.
9937 (do_captured_thread_select): Emit newline.
9938 (_initialize_thread): Register 'thread name' command.
9939 * target.h (struct target_ops) <to_thread_name>: New field.
9940 (target_thread_name): New macro.
9941 * target.c (update_current_target): Handle to_thread_name.
9942 * python/py-infthread.c (thpy_get_name): New function.
9943 (thpy_set_name): Likewise.
9944 (thread_object_getset): Add "name".
9945 * linux-nat.c (linux_nat_thread_name): New function.
9946 (linux_nat_add_target): Set to_thread_name.
9947 * gdbthread.h (struct thread_info) <name>: New field.
9949 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9951 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9952 (ada_val_print_1): Likewise.
9954 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9956 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9957 upper limit address is not greater than the function end address
9958 when the upper limit could not be computed using the debugging
9961 2011-01-17 Tom Tromey <tromey@redhat.com>
9963 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9965 * utils.c: Include gdb_regex.h.
9966 (do_regfree_cleanup): New function.
9967 (make_regfree_cleanup): Likewise.
9968 (get_regcomp_error): Likewise.
9969 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9971 2011-01-17 Tom Tromey <tromey@redhat.com>
9973 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9976 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9978 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9979 for internal variables.
9980 (last_was_structop): New static variable.
9981 (COMPLETE): New token.
9982 (field_exp): New rule to group all '.' suffix handling.
9983 Add mark_struct_expression calls when approriate to be able
9984 to correctly find fields for completion.
9985 (yylex): Adapt to handle field completion and set INTVAR when
9988 2011-01-14 Yao Qi <yao@codesourcery.com>
9990 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9991 save_reggroup, restore_reggroup and all_reggroup.
9993 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9995 * ada-valprint. (ada_printchar): Use the correct type length
9996 in call to ada_emit_char.
9997 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9999 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10001 * solib-som.h (hpux_major_release): Declare variable here.
10002 * solib-som.c: Remove <sys/utsname.h> header.
10003 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10004 (hpux_major_release): Make global, change default value to
10005 DEFAULT_HPUX_MAJOR_RELEASE.
10006 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10007 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10008 Add "solib-som.h" header.
10009 (set_hpux_major_release): New function.
10010 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10012 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10014 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10016 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10018 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10019 new-line at end of warning message.
10020 (ia64_hpux_store_register): Remove trailing new-line at end of
10022 * ia64-hpux-tdep.c: Rephrase comment.
10023 * solib-ia64-hpux.c (struct dld_info): Change type of field
10024 dld_flags from "long long" to ULONGEST.
10026 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10028 * target.h (deprecated_child_ops): Delete declaration.
10029 * target.c (deprecated_child_ops): Delete definition.
10031 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10033 * Makefile.in (hpux-thread.o): Delete rule.
10034 * configure.ac: Don't check for HPUX DCE threads support.
10035 * configure, config.in: Regenerate.
10036 * hppa-hpux-nat.c (child_suppress_run): Delete.
10037 (hppa_hpux_child_can_run): Delete.
10038 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10039 * hpux-thread.c: Delete.
10041 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10043 * hpux-thread.c (hpux_pid_to_str): Delete.
10045 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10047 * ada-valprint.c (ada_emit_char): Remove strange code.
10048 Check that c is <= UCHAR_MAX before passing it to isascii.
10049 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10051 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10053 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10054 to the case where instream is stdin.
10056 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10058 * ia64-tdep.h (struct regcache): Forward declare.
10059 (struct ia64_infcall_ops): New struct type.
10060 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10062 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10063 Renames ia64_find_global_pointer.
10064 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10065 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10066 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10068 (ia64_infcall_ops): New static global constant.
10069 (ia64_gdbarch_init): Set tdep->infcall_ops.
10070 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10071 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10072 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10073 (ia64_hpux_dummy_code): New static global constant.
10074 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10075 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10076 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10078 (ia64_hpux_infcall_ops): New static global constant.
10079 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10080 for inferior function calls to work properly on ia64-hpux.
10082 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10084 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10085 * ia64-tdep.h (struct frame_info): forward declaration.
10086 (struct gdbarch_tdep): Add field size_of_register_frame.
10087 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10088 to determine the size of the register frame.
10089 (ia64_size_of_register_frame): New function.
10090 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10091 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10092 (IA64_HPUX_UREG_REASON): New macro.
10093 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10095 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10096 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10097 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10100 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10102 Add support for ia64-hpux.
10103 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10104 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10106 * configure.host: Add handling for ia64-hpux hosts. Add associated
10108 * configure.tgt: Add handling for ia64-hpux targets.
10109 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10110 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10111 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10113 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10115 [ttrace] Compute thread list immediately after attach.
10116 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10118 (inf_ttrace_attach): Use it.
10120 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10122 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10123 if we could not determine the frame's function address. Instead,
10124 use the frame's PC, and then continue.
10126 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10128 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10129 not already defined.
10131 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10133 * ia64-tdep.c (ia64_struct_type_p): New function.
10134 (ia64_extract_return_value): Handle integral values that are
10135 less than 8 bytes long.
10136 (ia64_push_dummy_call): Likewise.
10138 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10140 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10141 floatformat_ia64_ext.
10142 (floatformat_ia64_ext_big): New static const.
10143 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10145 2011-01-12 Tom Tromey <tromey@redhat.com>
10147 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10149 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10150 (mi_cmd_thread_list_ids): Likewise.
10151 (mi_cmd_data_list_changed_registers): Likewise.
10152 (mi_cmd_data_list_register_values): Likewise.
10153 (mi_cmd_data_write_register_values): Likewise.
10154 (mi_cmd_data_evaluate_expression): Likewise.
10155 (mi_cmd_data_read_memory): Likewise.
10156 (mi_cmd_data_read_memory_bytes): Likewise.
10157 (mi_cmd_data_write_memory): Likewise.
10158 (mi_cmd_enable_timings): Likewise.
10159 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10160 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10161 (mi_cmd_var_delete): Likewise.
10162 (mi_cmd_var_set_format): Likewise.
10163 (mi_cmd_var_show_format): Likewise.
10164 (mi_cmd_var_info_num_children): Likewise.
10165 (mi_cmd_var_list_children): Likewise.
10166 (mi_cmd_var_info_type): Likewise.
10167 (mi_cmd_var_info_expression): Likewise.
10168 (mi_cmd_var_show_attributes): Likewise.
10169 (mi_cmd_var_assign): Likewise.
10170 (mi_cmd_var_update): Likewise.
10171 (mi_cmd_enable_pretty_printing): Likewise.
10172 (mi_cmd_var_set_update_range): Likewise.
10173 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10175 (mi_cmd_target_file_put): Likewise.
10176 (mi_cmd_target_file_delete): Likewise.
10177 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10179 (mi_cmd_stack_info_depth): Likewise.
10180 (mi_cmd_stack_list_locals): Likewise.
10181 (mi_cmd_stack_list_args): Likewise.
10182 (mi_cmd_stack_select_frame): Likewise.
10183 (mi_cmd_stack_select_frame): Likewise.
10184 (mi_cmd_stack_info_frame): Likewise.
10185 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10187 (mi_cmd_file_list_exec_source_files): Likewise.
10188 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10189 (mi_cmd_env_cd): Likewise.
10190 (mi_cmd_env_path): Likewise.
10191 (mi_cmd_env_dir): Likewise.
10192 (mi_cmd_inferior_tty_show): Likewise.
10193 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10194 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10195 (mi_cmd_break_watch): Likewise.
10197 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10199 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10200 (ppc_linux_insert_hw_breakpoint): Likewise.
10201 (ppc_linux_remove_hw_breakpoint): Likewise.
10202 (ppc_linux_insert_watchpoint): Likewise.
10204 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10205 Jan Kratochvil <jan.kratochvil@redhat.com>
10207 PR fortran/11104 and DWARF unbound arrays detection.
10208 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10209 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10210 unspecified upper bound.
10211 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10212 variables array_size_array, tmp_type and offset_item. New variable
10213 array. Remove call to f77_get_upperbound. New variables array_type
10214 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10215 the final call to deprecated_set_value_type.
10217 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 Make value allocations more lazy.
10220 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10221 instead of allocate_value and set_value_lazy when possible.
10222 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10223 instead of allocate_value and set_value_lazy.
10224 * findvar.c (value_of_register_lazy): Likewise.
10225 (read_var_value): Remove V preallocation, call just check_typedef in
10226 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10227 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10228 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10229 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10230 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10231 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10232 the end, remove set_value_lazy there.
10233 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10234 instead of allocate_value and set_value_lazy when possible.
10235 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10236 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10237 of allocate_value and set_value_lazy.
10238 (value_from_contents_and_address): Use allocate_value_lazy instead of
10239 allocate_value and set_value_lazy when possible.
10241 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10243 * disasm.c (dump_insns): Support dumping opcodes for MI.
10244 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10245 dumping of instruction opcodes.
10247 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10249 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10252 2011-01-11 Tom Tromey <tromey@redhat.com>
10254 * thread.c (do_captured_thread_select): Emit newline before
10257 2011-01-11 Michael Snyder <msnyder@vmware.com>
10259 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10260 * score-tdep.c: Ditto.
10261 * score-tdep.h: Ditto.
10262 * ser-base.c: Ditto.
10263 * ser-go32.c: Ditto.
10266 * ser-mingw.c: Ditto.
10267 * ser-pipe.c: Ditto.
10268 * ser-tcp.c: Ditto.
10269 * ser-unix.c: Ditto.
10270 * sh64-tdep.c: Ditto.
10271 * shnbsd-nat.c: Ditto.
10272 * sh-tdep.c: Ditto.
10273 * sh-tdep.h: Ditto.
10275 * solib-darwin.c: Ditto.
10276 * solib-frv.c: Ditto.
10278 * solib-irix.c: Ditto.
10279 * solib-osf.c: Ditto.
10280 * solib-pa64.c: Ditto.
10281 * solib-som.c: Ditto.
10282 * solib-spu.c: Ditto.
10283 * solib-sunos.c: Ditto.
10284 * solib-svr4.c: Ditto.
10286 * sol-thread.c: Ditto.
10287 * somread.c: Ditto.
10290 * sparc64-linux-tdep.c: Ditto.
10291 * sparc64-tdep.c: Ditto.
10292 * sparc-linux-nat.c: Ditto.
10293 * sparc-linux-tdep.c: Ditto.
10294 * sparc-sol2-nat.c: Ditto.
10295 * sparc-sol2-tdep.c: Ditto.
10296 * sparc-tdep.c: Ditto.
10297 * sparc-tdep.h: Ditto.
10298 * spu-tdep.c: Ditto.
10299 * stabsread.c: Ditto.
10300 * stabsread.h: Ditto.
10302 * symfile.c: Ditto.
10303 * symfile.h: Ditto.
10304 * symmisc.c: Ditto.
10308 * target-descriptions.c: Ditto.
10309 * target-descriptions.h: Ditto.
10311 * target-memory.c: Ditto.
10312 * terminal.h: Ditto.
10315 * tracepoint.c: Ditto.
10316 * tracepoint.h: Ditto.
10317 * trad-frame.h: Ditto.
10318 * typeprint.c: Ditto.
10320 2011-01-11 Michael Snyder <msnyder@vmware.com>
10322 * ui-file.c: Comment cleanup, mostly periods and spaces.
10323 * ui-file.h: Ditto.
10327 * v850-tdep.c: Ditto.
10328 * valarith.c: Ditto.
10330 * valprint.c: Ditto.
10331 * valprint.h: Ditto.
10336 * vax-tdep.c: Ditto.
10339 * version.h: Ditto.
10340 * windows-nat.c: Ditto.
10341 * windows-tdep.c: Ditto.
10342 * xcoffread.c: Ditto.
10343 * xcoffsolib.c: Ditto.
10344 * xml-support.c: Ditto.
10345 * xstormy16-tdep.c: Ditto.
10346 * xtensa-tdep.c: Ditto.
10347 * xtensa-tdep.h: Ditto.
10349 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10351 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10352 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10354 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10355 Thiago Jung Bauermann <bauerman@br.ibm.com>
10357 Implement support for PowerPC BookE ranged watchpoints.
10359 (struct breakpoint_ops) <resources_needed>: New method.
10360 Initialize to NULL in all existing breakpoint_ops instances.
10361 (struct breakpoint) <exact>: New field.
10362 (target_exact_watchpoints): Declare external global.
10363 * breakpoint.c (target_exact_watchpoints): New global flag.
10364 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10365 b->enable_state to bp_enabled before calling
10366 hw_watchpoint_used_count.
10367 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10368 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10370 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10371 if the watchpoint is exact.
10372 (resources_needed_watchpoint): New function.
10373 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10374 (watch_command_1): Set b->exact if the user asked for an exact
10375 watchpoint and one can be set.
10376 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10377 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10378 the user asks for an exact watchpoint and one can be set. Return
10379 number of needed debug registers to watch the expression.
10380 * gdbtypes.c (is_scalar_type): New function, based on
10381 valprint.c:scalar_type_p.
10382 (is_scalar_type_recursive): New function.
10383 * gdbtypes.h (is_scalar_type_recursive): Declare.
10384 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10385 handle regions when ranged watchpoints are available.
10386 (create_watchpoint_request): New function.
10387 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10388 create_watchpoint_request.
10389 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10390 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10391 `set powerpc' and `show powerpc' commands.
10392 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10393 Mention documentation comment in the target macro.
10394 (target_region_ok_for_hw_watchpoint): Document return value.
10396 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10398 * breakpoint.c (update_watchpoint): Decide on using a software or
10399 hardware watchpoint after the bp_locations are created.
10401 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10403 Convert hardware watchpoints to use breakpoint_ops.
10404 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10405 <insert_location>: ... this. Return int instead of void.
10406 Accept pointer to struct bp_location instead of pointer to
10407 struct breakpoint. Adapt all implementations.
10408 (breakpoint_ops) <remove>: Rename to...
10409 <remove_location>: ... this. Accept pointer to struct bp_location
10410 instead of pointer to struct breakpoint. Adapt all implementations.
10411 * breakpoint.c (insert_catchpoint): Delete function.
10412 (insert_bp_location): Call the watchpoint or catchpoint's
10413 breakpoint_ops.insert method.
10414 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10415 breakpoint_ops.remove method.
10416 (insert_watchpoint, remove_watchpoint): New functions.
10417 (watchpoint_breakpoint_ops): New structure.
10418 (watch_command_1): Initialize the OPS field.
10419 * inf-child.c (inf_child_insert_fork_catchpoint)
10420 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10421 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10422 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10424 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10425 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10426 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10427 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10428 * target.c (update_current_target): Change default implementation of
10429 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10430 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10431 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10432 to_set_syscall_catchpoint to return_one.
10433 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10434 (debug_to_insert_exec_catchpoint): Report return value.
10435 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10436 (to_insert_exec_catchpoint): Change declaration to return int instead
10439 2011-01-11 Michael Snyder <msnyder@vmware.com>
10441 * arm-tdep.c: Internationalization.
10443 * charset.c: Ditto.
10444 * fork-child.c: Ditto.
10445 * nto-procfs.c: Ditto.
10446 * ppc-sysv-tdep.c: Ditto.
10448 * remote-mips.c: Ditto.
10450 * rs6000-nat.c: Ditto.
10451 * rs6000-tdep.c: Ditto.
10455 * xml-support.c: Ditto.
10456 * mi/mi-cmd-break.c: Ditto.
10457 * mi/mi-cmd-var.c: Ditto.
10458 * mi/mi-interp.c: Ditto.
10459 * mi/mi-main.c: Ditto.
10461 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10463 * remote-sim.c (gdbsim_store_register): Update API to
10464 sim_store_register to check more error conditions.
10466 2011-01-10 Michael Snyder <msnyder@vmware.com>
10468 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10469 * nto-tdep.c: Ditto.
10470 * nto-tdep.h: Ditto.
10471 * objc-exp.y: Ditto.
10472 * objc-lang.c: Ditto.
10473 * objfiles.c: Ditto.
10474 * objfiles.h: Ditto.
10475 * observer.c: Ditto.
10476 * opencl-lang.c: Ditto.
10479 * parser-defs.h: Ditto.
10482 * posix-hdep.c: Ditto.
10483 * ppcbug-rom.c: Ditto.
10484 * ppc-linux-nat.c: Ditto.
10485 * ppc-linux-tdep.c: Ditto.
10486 * ppc-linux-tdep.h: Ditto.
10487 * ppcnbsd-tdep.c: Ditto.
10488 * ppcobsd-tdep.c: Ditto.
10489 * ppcobsd-tdep.h: Ditto.
10490 * ppc-sysv-tdep.c: Ditto.
10491 * ppc-tdep.h: Ditto.
10492 * printcmd.c: Ditto.
10493 * proc-abi.c: Ditto.
10494 * proc-flags.c: Ditto.
10496 * proc-utils.h: Ditto.
10497 * progspace.h: Ditto.
10498 * prologue-value.c: Ditto.
10499 * prologue-value.h: Ditto.
10500 * psympriv.h: Ditto.
10501 * psymtab.c: Ditto.
10502 * p-typeprint.c: Ditto.
10503 * p-valprint.c: Ditto.
10504 * ravenscar-sparc-thread.c: Ditto.
10505 * ravenscar-thread.c: Ditto.
10506 * ravenscar-thread.h: Ditto.
10508 * regcache.c: Ditto.
10509 * regcache.h: Ditto.
10511 * remote-fileio.c: Ditto.
10512 * remote-fileio.h: Ditto.
10514 * remote-m32r-sdi.c: Ditto.
10515 * remote-mips.c: Ditto.
10516 * remote-sim.c: Ditto.
10517 * rs6000-aix-tdep.c: Ditto.
10518 * rs6000-nat.c: Ditto.
10519 * rs6000-tdep.c: Ditto.
10521 2011-01-10 Michael Snyder <msnyder@vmware.com>
10523 * charset.c (validate): Internationalization.
10524 * coffread.c (read_one_sym): Ditto.
10525 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10526 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10527 * inflow.c (new_tty): Ditto.
10528 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10529 * m32c-tdep.c (m32c_return_value): Ditto.
10530 * mep-tdep.c (mep_store_return_value): Ditto.
10531 * score-tdep.c (score7_fetch_insn): Ditto.
10532 * ser-mingw.c (pipe_windows_open): Ditto.
10533 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10534 * spu-tdep.c (spu_register_type): Ditto.
10535 * tracepoint.c (trace_find_command): Ditto.
10536 * valarith.c (value_pos): Ditto.
10538 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10540 * ada-valprint.c (printstr): Minor comment reformatting.
10542 2011-01-08 Michael Snyder <msnyder@vmware.com>
10544 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10547 2011-01-08 Michael Snyder <msnyder@vmware.com>
10549 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10550 * hppa-hpux-tdep.c: Ditto.
10551 * hppa-linux-nat.c: Ditto.
10552 * hppa-linux-tdep.c: Ditto.
10553 * hppanbsd-tdep.c: Ditto.
10554 * hppa-tdep.c: Ditto.
10555 * hppa-tdep.h: Ditto.
10556 * hpux-thread.c: Ditto.
10557 * i386-cygwin-tdep.c: Ditto.
10558 * i386-darwin-nat.c: Ditto.
10559 * i386gnu-nat.c: Ditto.
10560 * i386-linux-nat.c: Ditto.
10561 * i386-linux-tdep.c: Ditto.
10562 * i386-nat.c: Ditto.
10563 * i386-nat.h: Ditto.
10564 * i386nbsd-tdep.c: Ditto.
10565 * i386-sol2-nat.c: Ditto.
10566 * i386-stub.c: Ditto.
10567 * i386-tdep.c: Ditto.
10568 * i386-tdep.h: Ditto.
10569 * i387-tdep.c: Ditto.
10570 * ia64-linux-nat.c: Ditto.
10571 * ia64-linux-tdep.c: Ditto.
10572 * ia64-tdep.c: Ditto.
10573 * infcall.c: Ditto.
10574 * infcall.h: Ditto.
10576 * inferior.c: Ditto.
10577 * inferior.h: Ditto.
10578 * infloop.c: Ditto.
10581 * interps.c: Ditto.
10582 * interps.h: Ditto.
10583 * iq2000-tdep.c: Ditto.
10584 * irix5-nat.c: Ditto.
10588 * jv-lang.c: Ditto.
10589 * jv-lang.h: Ditto.
10590 * jv-typeprint.c: Ditto.
10591 * jv-valprint.c: Ditto.
10592 * language.c: Ditto.
10593 * language.h: Ditto.
10594 * linespec.c: Ditto.
10595 * linux-fork.c: Ditto.
10596 * linux-nat.c: Ditto.
10597 * linux-thread-db.c: Ditto.
10598 * lm32-tdep.c: Ditto.
10600 2011-01-08 Michael Snyder <msnyder@vmware.com>
10602 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10603 * m2-lang.c: Ditto.
10604 * m2-typeprint.c: Ditto.
10605 * m2-valprint.c: Ditto.
10606 * m32c-tdep.c: Ditto.
10607 * m32r-linux-nat.c: Ditto.
10608 * m32r-rom.c: Ditto.
10609 * m32r-tdep.c: Ditto.
10610 * m32r-tdep.h: Ditto.
10611 * m68hc11-tdep.c: Ditto.
10612 * m58klinux-nat.c: Ditto.
10613 * m68k-tdep.c: Ditto.
10614 * m88k-tdep.c: Ditto.
10615 * m88k-tdep.h: Ditto.
10616 * machoread.c: Ditto.
10617 * macrocmd.c: Ditto.
10618 * macroexp.c: Ditto.
10619 * macrotab.c: Ditto.
10622 * mdebugread.c: Ditto.
10623 * mdebugread.h: Ditto.
10624 * memattr.c: Ditto.
10625 * memattr.h: Ditto.
10626 * memory-map.h: Ditto.
10627 * mep-tdep.c: Ditto.
10628 * microblaze-rom.c: Ditto.
10629 * microblaze-tdep.c: Ditto.
10630 * minsyms.c: Ditto.
10631 * mips-irix-tdep.c: Ditto.
10632 * mips-linux-nat.c: Ditto.
10633 * mips-linux-tdep.c: Ditto.
10634 * mips-linux-tdep.h: Ditto.
10635 * mipsnbsd-nat.c: Ditto.
10636 * mipsnbsd-tdep.c: Ditto.
10637 * mipsread.c: Ditto.
10638 * mips-tdep.c: Ditto.
10639 * mips-tdep.h: Ditto.
10640 * mn10300-linux-tdep.c: Ditto.
10641 * mn10300-tdep.c: Ditto.
10642 * mn10300-tdep.h: Ditto.
10643 * monitor.c: Ditto.
10644 * monitor.h: Ditto.
10645 * moxie-tdep.c: Ditto.
10646 * moxie-tdep.h: Ditto.
10647 * mt-tdep.c: Ditto.
10649 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10651 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10653 2011-01-08 Robert Millan <rmh@gnu.org>
10655 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10657 2011-01-07 Michael Snyder <msnyder@vmware.com>
10659 * charset.c (_initialize_charset): Fix typo in string.
10661 2011-01-07 Michael Snyder <msnyder@vmware.com>
10663 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10665 * tui/tui-layout.c (tui_set_layout_for_display_command):
10666 Split line so that operator goes to beginning of line.
10667 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10668 assignment out of if statement.
10670 2011-01-07 Michael Snyder <msnyder@vmware.com>
10672 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10673 * ada-lang.h: Ditto.
10674 * ada-tasks.c: Ditto.
10675 * ada-valprint.c: Ditto.
10676 * aix-threads.c: Ditto.
10677 * alpha-linux-nat.c: Ditto.
10678 * alpha-linux-tdep.c: Ditto.
10679 * alpha-mdebug-tdep.c: Ditto.
10680 * alpha-nat.c: Ditto.
10681 * alpha-osf1-tdep.c: Ditto.
10682 * alpha-tdep.c: Ditto.
10683 * alphabsd-nat.c: Ditto.
10684 * alphabsd-tdep.c: Ditto.
10685 * amd64-darwin-tdep.c: Ditto.
10686 * amd64-linux-nat.c: Ditto.
10687 * amd64-linux-tdep.c: Ditto.
10688 * amd64-sol2-tdep.c: Ditto.
10689 * amd64-tdep.c: Ditto.
10690 * amd64-fbsd-tdep.c: Ditto.
10691 * amd64-nbsd-tdep.c: Ditto.
10692 * amd64-obsd-tdep.c: Ditto.
10693 * amd64-linux-nat.c: Ditto.
10694 * amd64-linux-tdep.c: Ditto.
10695 * arm-tdep.c: Ditto.
10696 * arm-tdep.h: Ditto.
10697 * armnbsd-nat.c: Ditto.
10698 * avr-tdep.c: Ditto.
10699 * bfin-tdep.c: Ditto.
10700 * bsd-kvm.c: Ditto.
10701 * c-typeprintc: Ditto.
10702 * c-valprint.c: Ditto.
10703 * coff-pe-read.h: Ditto.
10704 * coffreead.c: Ditto.
10705 * cris-tdep.c: Ditto.
10707 * darwin-nat-info.c: Ditto.
10708 * darwin-nat.c: Ditto.
10709 * dbug-rom.c: Ditto.
10710 * dbxread.c: Ditto.
10713 * dec-thread.c: Ditto.
10715 * demangle.c: Ditto.
10716 * dicos-tdep.c: Ditto.
10717 * dictionary.c: Ditto.
10718 * dictionary.h: Ditto.
10719 * dink32-rom.c: Ditto.
10721 * doublest.c: Ditto.
10723 * dummy-frame.c: Ditto.
10724 * dwarf2-frame.c: Ditto.
10725 * dwarf2expr.c: Ditto.
10726 * dwarf2loc.c: Ditto.
10727 * dwarf2read.c: Ditto.
10728 * elfread.c: Ditto.
10729 * environ.c: Ditto.
10731 * event-top.h: Ditto.
10732 * exceptions.c: Ditto.
10733 * exceptions.h: Ditto.
10735 * expprint.c: Ditto.
10736 * expression.h: Ditto.
10740 * f-typeprint.c: Ditto.
10741 * f-valprint.c: Ditto.
10742 * fbsd-nat.c: Ditto.
10743 * findvar.c: Ditto.
10744 * fork-child.c: Ditto.
10747 * frv-linux-tdep.c: Ditto.
10748 * frv-tdep.c: Ditto.
10750 * gdb-stabs.h: Ditto.
10751 * gdb_assert.h: Ditto.
10752 * gdb_string.h: Ditto.
10753 * gdb_thread_db.h: Ditto.
10754 * gdb_wait.h: Ditto.
10755 * gdbarch.sh: Ditto.
10756 * gdbcore.h: Ditto.
10757 * gdbthread.h: Ditto.
10758 * gdbtypes.c: Ditto.
10759 * gdbtypes.h: Ditto.
10760 * gnu-nat.c: Ditto.
10761 * gnu-nat.h: Ditto.
10762 * gnu-v2-abi.c: Ditto.
10763 * gnu-v3-abi.c: Ditto.
10764 * go32-nat.c: Ditto.
10765 * gdbarch.c: Regenerate.
10766 * gdbarch.h: Regenerate.
10768 2011-01-07 Michael Snyder <msnyder@vmware.com>
10770 * ax-gdb.c: Adjust some long output strings.
10771 * breakpoint.c: Ditto.
10772 * charset.c: Ditto.
10774 * infcall.c: Ditto.
10776 * linux-nat.c: Ditto.
10777 * solib-pa64.c: Ditto.
10778 * solib-som.c: Ditto.
10780 2011-01-06 Tom Tromey <tromey@redhat.com>
10784 * python/python.c (GdbMethods): Add "newest_frame" method.
10785 * python/python-internal.h (gdbpy_newest_frame): Declare.
10786 * python/py-frame.c (gdbpy_newest_frame): New function.
10788 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10790 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10791 * jit.c (jit_debug): New variable.
10792 (show_jit_debug): New function.
10793 (struct target_buffer): Use ULONGEST.
10794 (bfd_open_from_target_memory): Likewise.
10795 (jit_register_code, jit_inferior_init): Add debug output.
10796 (_initialize_jit): Register "debug jit" command.
10798 2011-01-06 Tom Tromey <tromey@redhat.com>
10800 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10801 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10804 2011-01-06 Tom Tromey <tromey@redhat.com>
10806 * python/py-frame.c (frapy_block): Use get_frame_block.
10808 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10810 Do not stop on SIGPRIO signals by default
10811 * infrun.c (_initialize_infrun): Unset signal_stop and
10812 signal_print for TARGET_SIGNAL_PRIO.
10814 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10816 * ada-tasks.c: Fix style violation in comment.
10818 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10820 * linespec.c (decode_compound, find_method): Remove trailing \n
10821 at end of error string.
10822 * solib-irix.c (irix_current_sos): Likewise.
10823 * varobj.c (uninstall_variable): Likewise.
10825 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10827 * copyright.py: New script.
10828 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10829 Launch emacs without exec'ing. Call copyright.py afterwards.
10831 2011-01-05 Michael Snyder <msnyder@vmware.com>
10833 * addrmap.c: Shorten lines of >= 80 columns.
10834 * arch-utils.c: Ditto.
10835 * arch-utils.h: Ditto.
10837 * ax-general.c: Ditto.
10839 * blockframe.c: Ditto.
10840 * breakpoint.c: Ditto.
10841 * buildsym.c: Ditto.
10843 * c-typeprint.c: Ditto.
10844 * charset.c: Ditto.
10845 * coffread.c: Ditto.
10846 * command.h: Ditto.
10847 * corelow.c: Ditto.
10849 * cp-namespace.c: Ditto.
10850 * cp-support.c: Ditto.
10851 * dbug-rom.c: Ditto.
10852 * dbxread.c: Ditto.
10856 * dictionary.c: Ditto.
10858 * doublest.c: Ditto.
10859 * dwarf2-frame.c: Ditto.
10860 * dwarf2expr.c: Ditto.
10861 * dwarf2loc.c: Ditto.
10862 * dwarf2read.c: Ditto.
10863 * elfread.c: Ditto.
10865 * event-loop.c: Ditto.
10866 * event-loop.h: Ditto.
10867 * exceptions.h: Ditto.
10869 * expprint.c: Ditto.
10870 * expression.h: Ditto.
10872 * f-valprint.c: Ditto.
10873 * findcmd.c: Ditto.
10874 * frame-base.c: Ditto.
10875 * frame-unwind.c: Ditto.
10876 * frame-unwind.h: Ditto.
10880 * gdb-stabs.h: Ditto.
10881 * gdb_assert.h: Ditto.
10882 * gdb_dirent.h: Ditto.
10883 * gdb_obstack.h: Ditto.
10884 * gdbcore.h: Ditto.
10885 * gdbtypes.c: Ditto.
10886 * gdbtypes.h: Ditto.
10887 * inf-ttrace.c: Ditto.
10888 * infcall.c: Ditto.
10892 * inline-frame.h: Ditto.
10893 * language.c: Ditto.
10894 * language.h: Ditto.
10895 * libunwind-frame.c: Ditto.
10896 * libunwind-frame.h: Ditto.
10897 * linespec.c: Ditto.
10898 * linux-nat.c: Ditto.
10899 * linux-nat.h: Ditto.
10900 * linux-thread-db.c: Ditto.
10901 * machoread.c: Ditto.
10902 * macroexp.c: Ditto.
10903 * macrotab.c: Ditto.
10906 * mdebugread.c: Ditto.
10907 * memattr.c: Ditto.
10908 * minsyms.c: Ditto.
10909 * monitor.c: Ditto.
10910 * monitor.h: Ditto.
10911 * objfiles.c: Ditto.
10912 * objfiles.h: Ditto.
10914 * p-typeprint.c: Ditto.
10915 * p-valprint.c: Ditto.
10917 * printcmd.c: Ditto.
10918 * proc-events.c: Ditto.
10920 * progspace.c: Ditto.
10921 * progspace.h: Ditto.
10922 * psympriv.h: Ditto.
10923 * psymtab.c: Ditto.
10925 * regcache.c: Ditto.
10926 * regcache.h: Ditto.
10927 * remote-fileio.c: Ditto.
10929 * ser-mingw.c: Ditto.
10930 * ser-tcp.c: Ditto.
10931 * ser-unix.c: Ditto.
10934 * solib-frv.c: Ditto.
10935 * solib-irix.c: Ditto.
10936 * solib-osf.c: Ditto.
10937 * solib-pa64.c: Ditto.
10938 * solib-som.c: Ditto.
10939 * solib-sunos.c: Ditto.
10940 * solib-svr4.c: Ditto.
10941 * solib-target.c: Ditto.
10943 * somread.c: Ditto.
10945 * stabsread.c: Ditto.
10946 * stabsread.c: Ditto.
10949 * symfile-mem.c: Ditto.
10950 * symfile.c: Ditto.
10951 * symfile.h: Ditto.
10952 * symmisc.c: Ditto.
10955 * target-descriptions.c: Ditto.
10956 * target-memory.c: Ditto.
10959 * terminal.h: Ditto.
10962 * tracepoint.c: Ditto.
10963 * tracepoint.h: Ditto.
10964 * ui-file.c: Ditto.
10965 * ui-file.h: Ditto.
10967 * user-regs.c: Ditto.
10968 * user-regs.h: Ditto.
10970 * valarith.c: Ditto.
10972 * valprint.c: Ditto.
10973 * valprint.h: Ditto.
10978 * xcoffread.c: Ditto.
10979 * xcoffsolib.c: Ditto.
10980 * xcoffsolib.h: Ditto.
10981 * xml-syscall.c: Ditto.
10982 * xml-tdesc.c: Ditto.
10984 2011-01-05 Michael Snyder <msnyder@vmware.com>
10986 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10987 * cli/cli-decode.c: Ditto.
10988 * cli/cli-dump.c: Ditto.
10989 * cli/cli-logging.c: Ditto.
10990 * cli/cli-script.c: Ditto.
10991 * cli/cli-setshow.c: Ditto.
10992 * common/signals.c: Ditto.
10993 * mi/mi-cmd-break.c: Ditto.
10994 * mi/mi-cmd-disas.c: Ditto.
10995 * mi/mi-cmd-stack.c: Ditto.
10996 * mi/mi-cmd-var.c: Ditto.
10997 * mi/mi-cmds.c: Ditto.
10998 * mi/mi-common.h: Ditto.
10999 * mi/mi-console.c: Ditto.
11000 * mi/mi-interp.c: Ditto.
11001 * mi/mi-main.c: Ditto.
11002 * osf-share/cma_attr.c: Ditto.
11003 * osf-share/cma_deb_core.h: Ditto.
11004 * osf-share/cma_debug_client.h: Ditto.
11005 * osf-share/cma_handle.h: Ditto.
11006 * osf-share/cma_mutex.h: Ditto.
11007 * osf-share/cma_stack_int.h: Ditto.
11008 * osf-share/cma_tcb_defs.h: Ditto.
11009 * python/py-auto-load.c: Ditto.
11010 * python/py-breakpoint.c: Ditto.
11011 * python/py-cmd.c: Ditto.
11012 * python/py-frame.c: Ditto.
11013 * python/py-objfile.c: Ditto.
11014 * python/py-param.c: Ditto.
11015 * python/py-progspace.c: Ditto.
11016 * python/py-symbol.c: Ditto.
11017 * python/py-value.c: Ditto.
11018 * python/python-internal.h: Ditto.
11019 * python/python.c: Ditto.
11020 * tui/tui-data.c: Ditto.
11021 * tui/tui-disasm.c: Ditto.
11022 * tui/tui-hooks.c: Ditto.
11023 * tui/tui-io.c: Ditto.
11024 * tui/tui-layout.c: Ditto.
11025 * tui/tui-regs.c: Ditto.
11026 * tui/tui-source.c: Ditto.
11027 * tui/tui-stack.c: Ditto.
11028 * tui/tui-win.c: Ditto.
11029 * tui/tui-windata.c: Ditto.
11030 * tui/tui-winsource.c: Ditto.
11032 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11034 * configure.ac, gdb.1: Copyright year update.
11036 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11038 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11039 this_pc_in_block, morestack_msym and morestack_name. Check for
11040 "__morestack" minimal symbol there.
11042 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11044 * symfile.c (find_sym_fns): Add call to dont_repeat.
11046 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11048 Copyright year update in most files (performed by copyright.sh).
11050 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11052 * top.c (print_gdb_version): Update copyright year in version output.
11054 For older changes see ChangeLog-2010.
11060 version-control: never