1 2011-11-20 Sanjoy Das <sdas@igalia.com>
3 * Makefile.in: Add jit-reader.h as a header. Have it installed in
5 * configure.ac: Generate a correct value for TARGET_PTR for
6 jit-reader.h. Tell configure to generate jit-reader.h from
8 * configure: Re-generated by autoconf.
9 * jit-reader.in: New file.
10 * jit.c: Include jit-reader.h.
12 2011-11-20 Sanjoy Das <sdas@igalia.com>
14 * MAINTAINERS (Write After Approval): Add myself to the list.
16 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
18 * findvar.c (read_frame_register_value): Respect value_offset
19 of the register value. Remove big-endian special case.
21 2011-11-18 Tom Tromey <tromey@redhat.com>
24 * remote.c (putpkt_for_catch_errors): New function.
25 (remote_kill): Use it.
27 2011-11-18 Yao Qi <yao@codesourcery.com>
29 * breakpoint.c (create_breakpoint): Produce query message according to
31 Allocate tracepoint per correct type.
32 Don't check SALs for pending fast tracepoints.
33 * tracepoint.c (process_tracepoint_on_disconnect): New.
34 (disconnect_tracing): Call process_tracepoint_on_disconnect.
36 2011-11-18 Yao Qi <yao@codesourcery.com>
38 * breakpoint.c (install_breakpoint): Add one more parameter so that
39 update_global_location_list is called conditionally.
40 (create_fork_vfork_event_catchpoint): Update.
41 (create_syscall_event_catchpoint): Update.
42 (create_breakpoint_sal): Update.
43 (create_breakpoint_sal): Update. Call do_cleanups before
45 * ada-lang.c (create_ada_exception_catchpoint): Update.
46 * breakpoint.h (install_breakpoint): Update declaration.
48 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
50 * spu-tdep.c (spu_return_value): Fix handling of
51 TYPE_CALLING_CONVENTION annotation.
53 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
55 * skip.c (skip_function_command): Work around uninitialized
58 2011-11-16 David S. Miller <davem@davemloft.net>
60 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
61 'tv_usec' to long for printf since these fields have a type which
64 2011-11-15 Doug Evans <dje@google.com>
66 * buildsym.c (add_symbol_to_list): Delete outdated comment.
68 2011-11-15 Paul Koning <paul_koning@dell.com>
70 * python/py-type.c (typy_get_composite): New function.
71 (typy_nonzero): New function.
72 (typy_values): Rename from typy_fields.
73 (typy_fields): New function.
74 (typy_length): Raise exception if not struct, union, or enum type.
75 (typy_getitem): Ditto.
76 (typy_has_key): Ditto.
77 (typy_make_iter): Ditto.
79 2011-11-15 Doug Evans <dje@google.com>
81 * NEWS: Mention new parameter basenames-may-differ.
82 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
83 ! basenames_may_differ.
84 * psymtab.c (lookup_partial_symtab): Ditto.
85 * symtab.c (lookup_symtab): Ditto.
86 (basenames_may_differ): New global.
87 (_initialize_symtab): New parameter basenames-may-differ.
88 * symtab.h (basenames_may_differ): Declare.
90 2011-11-15 Pedro Alves <pedro@codesourcery.com>
91 Luis Machado <lgustavo@codesourcery.com>
93 * auxv.c: Include observer.h.
94 (auxv_inferior_data_cleanup): New.
95 (invalidate_auxv_cache_inf): New.
96 (invalidate_auxv_cache): New.
97 (get_auxv_inferior_data): New.
98 (auxv_inferior_data): New static global.
99 (auxv_info): New structure.
100 (target_auxv_search): Use get_auxv_inferior_data instead of
101 target_read_alloc and don't free cached buffers.
102 (fprint_target_auxv): Likewise
103 (_initialize_auxv): Register per-inferior auxv cache and register
104 observers to invalidate auxv cache when needed.
106 2011-11-14 Doug Evans <dje@google.com>
108 Make "!" an alias for "shell".
110 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
111 adding "!" command, always add it.
112 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
113 command of length one.
115 2011-11-14 Stan Shebs <stan@codesourcery.com>
116 Kwok Cheung Yeung <kcy@codesourcery.com>
118 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
119 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
120 the minimum instruction size for fast tracepoints.
121 * target.h (struct target_ops): Add new method
122 to_get_min_fast_tracepoint_insn_len.
123 (target_get_min_fast_tracepoint_insn_len): New.
124 * target.c (update_current_target): Set up new target operation.
125 * remote.c (remote_write_bytes_aux): Fix typo.
126 (remote_get_min_fast_tracepoint_insn_len): New.
127 (init_remote_ops): Initialize new field.
129 2011-11-14 Tom Tromey <tromey@redhat.com>
131 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
132 (encode_actions): Likewise.
134 2011-11-14 Yao Qi <yao@codesourcery.com>
136 * remote.c (struct remote_state): <install_in_trace> new field.
137 (PACKET_InstallInTrace): New enum value.
138 (remote_install_in_trace_feature): Support InstallInTrace.
139 (remote_supports_install_in_trace): Likewise.
140 (remote_protocol_features): Likewise.
141 (_initialize_remote): Likewise.
142 (remote_can_download_tracepoint): New.
143 * target.h (struct target): New field
144 `to_can_download_tracepoint'.
145 (target_can_download_tracepoint): New macro.
146 * target.c (update_current_target): Update.
147 * breakpoint.h (struct bp_location): Add comment on field
149 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
151 (remove_breakpoints): Don't remove tracepoints.
152 (tracepoint_locations_match ): New.
153 (breakpoint_locations_match): Call it.
154 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
155 (download_tracepoint_locations): New.
156 (update_global_location_list): Call it.
157 * tracepoint.c (find_matching_tracepoint): Delete.
158 (find_matching_tracepoint_location): Renamed from
159 find_matching_tracepoint. Return bp_location rather than
161 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
164 2011-11-14 Yao Qi <yao@codesourcery.com>
166 * target.h (struct target): <to_download_tracepoint> Change type
167 of parameter from tracepoint to bp_location.
168 * target.c (update_current_target): Update.
169 * tracepoint.c (start_tracing): Update.
170 * remote.c (remote_download_tracepoint): Remove loop for each location
173 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
175 * i386-nat.c (i386_insert_hw_breakpoint): Call
176 i386_update_inferior_debug_regs.
177 (i386_remove_hw_breakpoint): Likewise.
179 2011-11-14 Yao Qi <yao@codesourcery.com>
181 * breakpoint.c (init_raw_breakpoint): Call
182 add_location_to_breakpoint to replace duplicated code.
183 (add_location_to_breakpoint): Adjust the breakpoint's
184 address prior to allocating a location.
186 2011-11-12 Matt Rice <ratmice@gmail.com>
188 * macrocmd.c (macro_no_macro_info): New function.
189 (macro_expand_command): Use macro_no_macro_info.
190 (macro_expand_once_command): Ditto.
191 (info_macro_command): Add argument processing,
192 move info_definitions_command here.
193 (_initialize_macrocmd): Remove info definitions command.
194 Add arguments to info macro help text.
195 * NEWS: Replace info definitions command with new info macro options.
197 2011-11-11 Keith Seitz <keiths@redhat.com>
200 * linespec.c (locate_first_half): Keep ':' if it looks
201 like it could be part of a Windows path starting with
204 2011-11-10 Pedro Alves <pedro@codesourcery.com>
206 * linux-nat.c (linux_nat_wait): Don't force waking up the event
207 loop when returning a TARGET_WAITKIND_NO_RESUMED.
209 2011-11-10 Pedro Alves <pedro@codesourcery.com>
211 * target.c (target_waitstatus_to_string): Handle
212 TARGET_WAITKIND_NO_RESUMED.
214 2011-11-10 Doug Evans <dje@google.com>
216 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
218 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
219 (map_partial_symbol_filenames): Ditto. All callers updated.
220 * psymtab.h (map_partial_symbol_filenames): Update prototype.
221 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
222 parameter need_fullname.
224 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
225 * source.c (symtab_to_fullname): Ditto.
227 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
228 * gdb-demangle.h: ... here. New file.
229 * demangle.c: #include "gdb-demangle.h".
230 (_initialize_demangler): Use initialize_file_ftype for prototype.
231 Move "set demangle" and "set asm-demangle" parameters here from utils.c
232 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
234 * utils.c: Update. #include "gdb-demangle.h".
235 * symtab.h (asm_demangle): Delete.
236 (demangle): Move declaration next to use.
237 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
238 * dwarf2read.c: #include "gdb-demangle.h".
239 * gnu-v2-abi.c: Ditto.
240 * jv-typeprint.c: Ditto.
241 * mdebugread.c: Ditto.
242 * p-typeprint.c: Ditto.
243 * stabsread.c: Ditto.
245 (asm_demangle): Delete declaration.
246 * tui/tui-stack.c: #include "gdb-demangle.h".
248 * python/py-type.c (typy_fields_items): Call check_typedef.
250 2011-11-10 Joel Brobecker <brobecker@adacore.com>
252 * findvar.c (read_frame_register_value): Read the correct bytes
253 from registers on big-endian architectures.
255 2011-11-10 Tom Tromey <tromey@redhat.com>
257 * procfs.c (load_syscalls): Make a cleanup.
258 (open_procinfo_files): fd==0 is ok.
260 2011-11-10 Joel Brobecker <brobecker@adacore.com>
262 * procfs.c (iterate_over_mappings): Call do_cleanups before
265 2011-11-09 Doug Evans <dje@google.com>
267 * gdbtypes.c (check_typedef): Document that this function can
270 2011-11-09 Tom Tromey <tromey@redhat.com>
273 * valops.c (value_full_object): Return early if real type is
274 smaller than the enclosing type.
276 2011-11-08 Yao Qi <yao@codesourcery.com>
278 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
280 2011-11-08 Meador Inge <meadori@codesourcery.com>
282 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
283 register when the frame can't be determined.
284 * arm-tdep.c (arm_analyze_prologue): Ditto.
286 2011-11-07 Stan Shebs <stan@codesourcery.com>
288 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
290 2011-11-07 Joel Brobecker <brobecker@adacore.com>
292 * infrun.c (handle_inferior_event): Minor reformatting.
294 2011-11-05 Doug Evans <dje@google.com>
296 * source.c (forget_cached_source_info_for_objfile): Move call to
297 objfile->sf->qf->forget_cached_source_info outside of
298 ALL_OBJFILE_SYMTABS loop.
299 (forget_cached_source_info): Delete unused variable `s'.
301 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
303 * i386-nat.c (dr_ref_count): Remove unused variable.
305 2011-11-05 Doug Evans <dje@google.com>
307 * main.c (captured_main): Set lim_at_start before calling
308 make_command_stats_cleanup.
310 2011-11-04 Doug Evans <dje@google.com>
312 * utils.c: #include "timeval-utils.h".
313 (cmd_stats): Rename start_time to start_cpu_time.
314 New member start_wall_time.
315 (report_command_stats): Report wall time.
316 (make_command_stats_cleanup): Record start wall time.
318 2011-11-04 Tom Tromey <tromey@redhat.com>
320 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
322 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
324 * coff-pe-read.c: Include defs.h before bfd.h.
326 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
330 * python/python.c (python_run_simple_file): Expand tilde in path.
332 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
336 * python/py-type.c (typy_lookup_type): Do not return a type in
337 an exception handler.
339 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
340 Eli Zaretskii <eliz@gnu.org>
342 * linux-nat.c (_initialize_linux_nat): Improve help
343 for `info proc stat', `info proc status', `info proc cwd',
344 `info proc cmdline' and `info proc exe'.
346 2011-11-02 Stan Shebs <stan@codesourcery.com>
348 String collection for tracepoints.
349 * NEWS: Mention string collection.
350 * common/ax.def (tracenz): New bytecode.
351 * ax-gdb.h (trace_string_kludge): Declare.
352 * ax-gdb.c: Include valprint.h and c-lang.h.
353 (trace_string_kludge): New global.
354 (gen_traced_pop): Add string case.
355 (agent_command): Add string case.
356 * tracepoint.h (decode_agent_options): Declare.
357 * tracepoint.c: Include cli-utils.h.
358 (decode_agent_options): New function.
359 (validate_actionline): Call it.
360 (encode_actions_1): Ditto.
361 * target.h (struct target_ops): New method to_supports_string_tracing.
362 (target_supports_string_tracing): New macro.
363 * target.c (update_current_target): Add to_supports_string_tracing.
364 * remote.c (struct remote_state): New field string_tracing.
365 (remote_string_tracing_feature): New function.
366 (remote_protocol_features): New feature tracenz.
367 (remote_supports_string_tracing): New function.
368 (init_remote_ops): Set to_supports_string_tracing.
370 2011-11-02 Pedro Alves <pedro@codesourcery.com>
371 Jan Kratochvil <jan.kratochvil@redhat.com>
373 * linux-nat.c: Include cli/cli-utils.h.
374 (enum info_proc_what): New.
375 (linux_nat_info_proc_cmd): Rename to ...
376 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
377 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
378 status_f and stat_f from WHAT. Throw error on extra parameters.
379 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
380 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
381 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
382 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
383 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
384 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
385 `info proc cmdline', `info proc exe' and `info proc all' as real
386 subcommands of `info proc'.
388 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
390 * Makefile.in: (SFILES): Add skip.c.
391 (HFILES_NO_SRCDIR): Add skip.h.
392 (COMMON_OBS): Add skip.o.
393 * skip.h, skip.c: New.
394 * breakpoint.h (set_default_breakpoint): Remove.
395 (get_sal_arch): Declare.
396 * breakpoint.c: Remove default_breakpoint_valid,
397 default_breakpoint_address, default_breakpoint_symtab,
398 default_breakpoint_line, default_breakpoint_pspace variables.
399 (get_sal_arch): Make public.
400 (set_default_breakpoint): Remove.
401 (parse_breakpoint_sals, create_breakpoint, clear_command,
402 decode_line_spec_1): Remove uses of default_breakpoint variables;
403 replaced with function calls into stack.c.
404 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
405 * cli/cli-cmds.c: Add skiplist.
406 (init_cmd_lists): Initialize skiplist.
407 (init_cli_cmds): Fix comment (classes of commands appear in
409 * infrun.c (handle_inferior_event): Add check that we don't step into
410 a function whose pc is marked for skip.
411 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
412 last_displayed_addr, last_displayed_symtab, last_displayed_line
414 (set_last_displayed_sal): New static function.
415 (print_frame_info): Switch call to set_default_breakpoint to call to
416 set_last_displayed_sal.
417 (clear_last_displayed_sal, last_displayed_sal_is_valid,
418 get_last_displayed_pspace, get_last_displayed_addr,
419 get_last_displayed_symtab, get_last_displayed_line,
420 get_last_displayed_sal): New public functions.
421 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
422 get_last_displayed_pspace, get_last_displayed_addr,
423 get_last_displayed_symtab, get_last_displayed_line,
424 get_last_displayed_sal): Declare.
426 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
428 * MAINTAINERS (Write After Approval): Add myself to the list.
430 2011-10-29 Yao Qi <yao@codesourcery.com>
432 * infcmd.c (disconnect_command): Call disconnect_tracing.
434 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
437 * symtab.c (skip_prologue_sal): Code reformatting.
439 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
442 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
443 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
446 2011-10-28 Pedro Alves <pedro@codesourcery.com>
448 * linux-nat.c (linux_nat_filter_event): Remove `options'
449 parameter, and dead code that used it. If we're handling a
450 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
451 in our lwp list, re-add it.
452 (check_zombie_leaders): New.
453 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
454 wait for children with WNOHANG, and always wait for all children.
455 Don't check for no resumed children upfront. Simplify wait loop.
456 Check for zombie thread group leaders after handling all wait
457 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
458 unwaited-for children left.
459 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
460 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
461 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
462 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
464 2011-10-28 Sterling Augustine <saugustine@google.com>
466 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
467 * symtab.c (free_completion_list): New function.
468 (do_free_completion_list): Likewise.
469 (default_make_symbol_completion_list_break_on): New variable
470 back_to. Call make_cleanup and discard_cleanups.
471 (make_source_files_completion_list): Likewise.
473 2011-10-28 Paul Koning <paul_koning@dell.com>
475 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
476 * NEWS: Mention deep_items.
478 2011-10-28 Alen Skondro <askondro@gmail.com>
480 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
483 2011-10-27 Meador Inge <meadori@codesourcery.com>
485 * MAINTAINERS (Write After Approval): Add myself to the list.
487 2011-10-27 Joel Brobecker <brobecker@adacore.com>
489 * value.h (read_frame_register_value): Add declaration.
490 * findvar.c (read_frame_register_value): New function.
491 (value_from_register): Use read_frame_register_value
492 instead of get_frame_register_value + value_contents_copy
493 to get value contents.
495 2011-10-27 Doug Evans <dje@google.com>
497 * cli/cli-cmds.c (source_script_with_search): Pass full path to
498 source_script_from_stream if it may have been found on the search path.
499 * python/py-auto-load.c (source_section_scripts): Pass full path to
500 source_python_script_for_objfile.
501 * python/python.c (source_python_script): Delete stream parameter.
503 (source_python_script_for_objfile): Ditto.
504 * python/python-internal.h (source_python_script_for_objfile): Update.
505 * python/python.h (source_python_script): Update.
507 2011-10-27 Tom Tromey <tromey@redhat.com>
509 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
510 (ada_sals_for_line): Remove declarations.
512 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
514 Move unwind reasons to an external .def file
515 * frame.c (frame_stop_reason_string): Rewrite using
516 unwind_stop_reasons.def.
517 * frame.h (enum unwind_stop_reason): Likewise.
518 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
519 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
520 constants for bound-checking.
521 * unwind_stop_reasons.def: New file.
522 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
523 instead of a distinct value.
525 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
529 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
530 (convert_values_to_python): Return on Python tuple allocation
531 failure. Return NULL on value conversion error.
533 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
535 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
536 (bppy_set_task): Ditto.
537 (bppy_delete_breakpoint): Ditto.
538 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
539 (gdbpy_lookup_global_symbol): Ditto.
540 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
541 * python/py-frame.c (frapy_is_valid): Ditto.
542 (frame_info_to_frame_object): Ditto.
543 * python/py-type.c (typy_lookup_type): Ditto.
544 (typy_getitem): Ditto.
545 (typy_has_key): Ditto.
546 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
548 2011-10-26 Joel Brobecker <brobecker@adacore.com>
550 * gdbarch.h: Regenerate.
552 2011-10-26 Meador Inge <meadori@codesourcery.com>
554 * gdbarch.sh (function_list): Use 'pstring' when printing
556 * gdbarch.c: Regenerate.
558 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
560 * regcache.c (registers_changed_ptid): Invalidate thread architecture
561 and frame caches if PTID refers to all threads of a process.
563 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
565 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
566 to create_breakpoint.
568 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
570 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
571 (ppc_sysv_abi_push_dummy_call): Use it.
572 (do_ppc_sysv_return_value): Likewise.
573 (ppc64_sysv_abi_push_dummy_call): Likewise.
574 (ppc64_sysv_abi_return_value): Likewise.
576 2011-10-26 Paul Koning <paul_koning@dell.com>
578 * python/lib/gdb/types.py (deepitems): New function.
580 2011-10-25 Paul Koning <paul_koning@dell.com>
584 * python/py-value.c (value_to_value_object): Remove fetching of
585 the value if it was lazy.
586 (valpy_get_is_lazy): New function.
587 (valpy_fetch_lazy): New function.
589 2011-10-24 Joel Brobecker <brobecker@adacore.com>
591 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
592 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
594 2011-10-24 Pedro Alves <pedro@codesourcery.com>
596 * linux-nat.c (linux_handle_extended_wait): When handling a clone
597 event, in non-stop, if not stopping, make sure the new lwp has
598 last_resume_kind set to resume_continue. Assert that when we're
599 resuming the new lwp, its last_resume_kind is resume_continue.
601 2011-10-24 Pedro Alves <pedro@codesourcery.com>
603 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
604 already set when marking the event thread as not executing in
607 2011-10-24 Pedro Alves <pedro@codesourcery.com>
609 * infrun.c (handle_inferior_event): Add debug output for
610 TARGET_WAITKIND_NO_HISTORY.
612 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
614 * NEWS: Move set/show extended-prompt to "New Options". Expand
615 description. Fix typos.
617 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
621 * python/py-param.c (call_doc_function): Correctly deference on
624 2011-10-21 Joel Brobecker <brobecker@adacore.com>
626 * ada-tasks.c (print_ada_task_info): Fix computation of
627 number of tasks displayed in command output.
629 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
630 Ulrich Weigand <uweigand@de.ibm.com>
632 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
633 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
634 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
635 gdbarch_pc_regnum and frame_unwind_register_unsigned by
638 2011-10-20 Cary Coutant <ccoutant@google.com>
640 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
642 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
643 flag. Adjust all callers.
644 (process_psymtab_comp_unit): Remove adjustment for type section.
646 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
648 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
649 arguments by adding OBJFILE. Instead of getting objfile from
650 symbol's symtab, use new argument OBJFILE.
651 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
652 arguments by adding OBJFILE.
653 * gdb/dwarf2read.c (new_symbol_full): Change call to
654 cp_scan_for_anonymous_namespaces to match new signature.
655 * gdb/stabsread.c (define_symbol): Change call to
656 cp_scan_for_anonymous_namespaces to match new signature.
658 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
663 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
665 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
666 leak. Delete unused variables.
668 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
672 * python/py-frame.c (frapy_read_var): Use const struct *block.
673 * python/py-type.c (typy_lookup_typename): Likewise.
674 (typy_lookup_type): Likewise.
675 (typy_legacy_template_argument): Likewise.
676 (typy_template_argument): Likewise.
677 (gdbpy_lookup_type): Likewise.
678 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
679 * python/py-block.c (blpy_block_object): Likewise.
680 (blpy_iter): Likewise.
681 (blpy_get_start): Likewise.
682 (blpy_get_end): Likewise.
683 (blpy_get_function): Likewise.
684 (blpy_get_superblock): Likewise.
685 (set_block): Likewise.
686 (block_to_block_object): Likewise.
687 (block_object_to_block): Likewise.
688 (blpy_is_valid): Likewise.
689 (blpy_get_global_block): New function.
690 (blpy_get_static_block): New function.
691 (blpy_is_global): New function.
692 (blpy_is_static): New function.
693 * blockframe.c (block_innermost_frame): Likewise.
694 * valops.c (value_of_variable): Likewise.
695 * frame.h: Update prototypes.
696 * python/python-internal.h: Likewise.
699 2011-10-19 Cary Coutant <ccoutant@google.com>
701 * dwarf2read.c (create_debug_types_hash_table): Fix size of
704 2011-10-19 Cary Coutant <ccoutant@google.com>
706 * dwarf2read.c (peek_abbrev_code): New function.
707 (dw2_get_file_names): Check for dummy compilation units.
708 (create_debug_types_hash_table): Likewise.
709 (process_psymtab_comp_unit): Likewise.
710 (load_partial_comp_unit): Likewise.
711 (load_full_comp_unit): Likewise.
713 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
715 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
716 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
717 pt_phdr if PT_PHDR was found.
719 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
721 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
722 type or "<unnamed type"> when there is no name assigned.
723 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
724 avoid a sigint when no name is assigned.
726 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
729 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
730 * dwarf2expr.c (ctx_no_read_reg): New function.
731 * dwarf2expr.h (ctx_no_read_reg): New declaration.
732 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
733 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
734 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
736 2011-10-16 Doug Evans <dje@google.com>
738 * NEWS: Document python gdb.printing.register_pretty_printer's new
741 2011-10-14 Keith Seitz <keiths@redhat.com>
744 * eval.c (evaluate_subexp_standard): Do not construct
745 an array of types; pass the value array directly to
747 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
748 (rank_function): Take an array of values instead of types.
749 (rank_one_type): Add struct value * parameter.
750 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
751 (rank_function): For each argument, pass the argument's
752 value to rank_one_type.
753 (rank_one_type): Add VALUE parameter.
754 If the parameter type is a pointer and the argument type
755 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
757 Update all calls to rank_one_type, passing NULL for new
759 * valarith.c (value_user_defined_cpp_op): Do not construct
760 an array of types; pass the value array directly to
762 * valops.c (find_overload_method_list): Take an array of
763 values instead of types.
764 Save the type of OBJP for later use.
765 Update calls to find_oload_champ, and find_oload_champ_namespace.
766 (find_oload_champ_namespace): Take an array of values instead
768 (find_oload_champ_namespace_loop): Likewise.
769 (find_oload_champ): Likewise.
770 (classify_oload_match): Inspect all arguments
771 until INCOMPATIBLE is found. Return the worst badness found
773 (compare_parameters): Update call to rank_one_type.
774 * value.h (find_overload_match): Take an array of values instead
777 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
779 Drop lazy lm_info reading.
780 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
781 l_addr_inferior, l_ld, l_next, l_prev and l_name.
782 (lm_info_read): New function.
783 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
784 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
785 lm_dynamic_from_link_map.
786 (lm_next, lm_prev, lm_name): Remove.
787 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
788 initialization incl. read_memory. No longer use lm_name.
789 (svr4_free_so): Drop lm_info->lm freeing.
790 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
791 explicit lm_addr and lm initialization.
792 (svr4_read_so_list): Use lm_info_read, drop the initailization of
793 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
796 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
797 Paul Pluzhnikov <ppluzhnikov@google.com>
799 * defs.h (struct so_list): New forward declaration.
800 (make_cleanup_free_so): New declaration.
801 * solib-svr4.c (ignore_first_link_map_entry): Remove.
802 (svr4_free_so): Move the function here from downwards. Handle NULL
804 (svr4_free_library_list): New.
805 (svr4_read_so_list): New, moved here code from svr4_current_sos.
806 Use more cleanups. Use new parameter ignore_first instead of
807 ignore_first_link_map_entry.
808 (svr4_current_sos): New variable ignore_first, initialize it. New
809 variable back_to, use it for svr4_free_library_list protection.
810 (svr4_free_so): Remove - move upwards.
811 * utils.c: Include solist.h.
812 (do_free_so, make_cleanup_free_so): New functions.
814 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
816 Fix internal error regression.
817 * value.c (value_primitive_field): Handle value_optimized_out. Move
818 packed bitfields comment.
820 2011-10-13 Tom Tromey <tromey@redhat.com>
822 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
825 2011-10-13 Tom Tromey <tromey@redhat.com>
827 * python/py-type.c (typy_has_key): Make 'field' const.
829 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
831 * remote.c (remote_save_trace_data): Invert comparison.
833 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
835 * tracepoint.c (trace_save_command): Use filename instead of
838 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
840 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
843 2011-10-13 Yao Qi <yao@codesourcery.com>
846 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
847 whether insn is a 32-bit Thumb-2 instruction.
848 (thumb_in_function_epilogue_p): Likewise.
849 (thumb_get_next_pc_raw): Likewise.
850 (arm_breakpoint_from_pc): Likewise.
852 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
854 Fix empty DWARF expressions DATA vs. SIZE conditionals.
855 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
856 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
857 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
858 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
860 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
862 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
863 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
864 clear DATA on zero SIZE.
866 2011-10-12 Doug Evans <dje@google.com>
868 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
869 header->first_die_offset here. All callers updated.
871 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
873 Fix compatibility with texinfo versions older than 4.12.
874 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
875 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
876 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
877 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
878 * configure: Regenerate.
879 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
880 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
881 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
883 2011-10-12 Gary Benson <gbenson@redhat.com>
885 * breakpoint.h (pc_at_non_inline_function): Declare.
886 * breakpoint.c (is_non_inline_function,
887 pc_at_non_inline_function): New functions.
888 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
889 if the stop is at a location where functions cannot be inlined.
891 2011-10-12 Pedro Alves <pedro@codesourcery.com>
893 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
894 the core wanted them stopped, or if they now have a pending event
896 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
897 down to stop_and_resume_callback.
898 (linux_nat_wait_1): Always clear `options' when retrying. Handle
899 having new pending events after calling linux_nat_filter_event.
901 2011-10-11 Sterling Augustine <saugustine@google.com>
903 * dwarf2read.c: Undo inadvertent changes in previous commit.
905 2011-10-11 Sterling Augustine <saugustine@google.com>
907 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
910 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
912 * symfile.c (separate_debug_file_exists): Fix condition.
914 2011-10-11 David S. Miller <davem@davemloft.net>
916 * regcache.c (regcache_restore): Do not write unavailable regs, mark
918 * regcache.h (regcache_restore): Remove declaration.
920 * gdbarch.sh: New field 'long_long_align_bit'.
921 * gdbarch.c, gdbarch.h: Regenerate.
922 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
923 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
925 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
928 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
929 Support @entry in input expressions.
930 * c-exp.y (ENTRY, unknown_cpp_name): New.
931 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
932 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
933 (variable: name_not_typename '@' ENTRY, name: ENTRY)
934 (name_not_typename: ENTRY): New.
935 (yylex): Recognize ENTRY.
937 Reimplement @entry in input expressions.
938 * c-exp.y (ENTRY): New.
939 (variable: name_not_typename ENTRY): New.
940 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
942 2011-10-11 Pedro Alves <pedro@codesourcery.com>
944 * linux-nat.c (linux_handle_extended_wait): Always dump both the
945 parent and child's pids as soon as we detect a clone event.
946 Adjust another debug message.
948 2011-10-11 Pedro Alves <pedro@codesourcery.com>
950 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
951 not zombie instead of reading the whole file.
953 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
955 Fix separate debuginfo warning with "remote:" access.
956 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
957 * symfile.c (get_file_crc): New function with the code moved from ...
958 (separate_debug_file_exists): ... this function, specifically variables
959 buffer and count. New variable verified_as_different, set it. Remove
960 file_crc initialization. Verify also if both files are not the same
963 2011-10-11 Yao Qi <yao@codesourcery.com>
965 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
968 2011-10-10 Doug Evans <dje@google.com>
970 * linux-thread-db.c (thread_db_new_objfile): Only try to load
971 libthread_db when we load libpthread or the main symbol file.
972 (thread_db_inferior_created): New function.
973 (_initialize_thread_db): Attach inferior_created observer.
974 * linux-nat.c (linux_child_post_attach): Remove call to
976 (linux_child_post_startup_inferior): Ditto.
977 * objfiles.h (OBJF_MAINLINE): Define.
978 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
979 allocate_objfile when appropriate.
981 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
984 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
985 Remove unused variables.
986 (get_linux_version): Remove function.
987 (_initialize_arm_linux_nat): Do not call it.
989 2011-10-10 Pedro Alves <pedro@codesourcery.com>
991 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
992 new clone lwp if the core asked it to stop. Don't pass on
993 unexpected signals to the new clone; leave them pending instead.
995 2011-10-10 Pedro Alves <pedro@codesourcery.com>
997 * linux-nat.c (resume_lwp): Remove redundant debug output.
999 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1001 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1002 last_resume_kind before clearing it, and use the copy instead to
1003 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1004 resume_clear_callback in the non-stop path too.
1006 2011-10-09 Yao Qi <yao@codesourcery.com>
1008 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1009 Honor OPTIONS and VAL's type.
1010 (common_val_print, value_print): Update to pass one more parameter.
1012 2011-10-09 Doug Evans <dje@google.com>
1014 Add new "alias" command.
1015 * NEWS: Mention new command.
1016 * command.h (valid_user_defined_cmd_name_p): Declare.
1017 * defs.h (make_cleanup_dyn_string_delete): Declare.
1018 * utils.c: #include "dyn-string.h".
1019 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1020 * cli/cli-cmds.c: #include "dyn-string.h".
1021 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1022 (init_cli_cmds): Add new command.
1023 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1025 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1027 Fix compatibility with older GCCs.
1028 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1029 * stack.c (read_frame_arg): Initialize val_deref.
1031 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 Entry values NEWS entries, DWARF disassembly support.
1034 * NEWS: New entry values entry.
1035 (set print entry-values, show print entry-values)
1036 (set debug entry-values, show debug entry-values): New entries.
1037 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1038 indent. Remove variable start. Move header printing out. Respect
1039 INDENT. Support DW_OP_GNU_entry_value.
1040 (locexpr_describe_location_1): Move the header printing here, extend
1041 the disassemble_dwarf_expression passed parameters.
1043 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1045 Display @entry parameter values even for references.
1046 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1047 coerce_ref_if_computed.
1048 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1049 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1050 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1051 existing push_dwarf_reg_entry_value call. Add new detection calling
1052 dwarf_block_to_dwarf_reg_deref. Update the error message.
1053 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1055 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1056 parameter deref_size, describe it in the comment.
1057 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1058 (dwarf_block_to_dwarf_reg_deref): New declaration.
1059 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1060 deref_size, describe it in the function comment. New variables
1061 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1062 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1063 describe it in the function comment. Fetch the alternative block
1064 accoring to DEREF_SIZE.
1065 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1066 (entry_data_value_free_closure, entry_data_value_funcs): New.
1067 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1068 outer_val, target_val, val and addr. Try to fetch and create also
1069 referenced value content.
1070 (pieced_value_funcs): NULL value for coerce_ref.
1071 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1072 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1073 coerce_ref_if_computed.
1074 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1075 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1076 * stack.c (read_frame_arg): Compare also dereferenced values.
1077 * value.c (value_computed_funcs): Make the parameter v const, use
1078 value_lval_const for it.
1079 (value_lval_const, coerce_ref_if_computed): New function.
1080 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1081 * value.h (struct lval_funcs): New field coerce_ref.
1082 (value_computed_funcs): Make the parameter v const.
1083 (value_lval_const, coerce_ref_if_computed): New declarations.
1085 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1087 Support @entry in input expressions.
1088 * c-exp.y (ENTRY, unknown_cpp_name): New.
1089 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1090 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1091 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1092 (name_not_typename: ENTRY): New.
1093 (yylex): Recognize ENTRY.
1094 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1095 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1097 * parse.c (operator_length_standard): Likewise.
1098 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1100 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1102 Display referenced values in backtraces.
1103 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1104 * stack.c (print_frame_arg): Likewise.
1106 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1108 Make some lval_funcs methods to default on NULL.
1109 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1111 (value_assign): Check if lval_computed write method is NULL.
1112 * value.h (struct lval_funcs): Comment NULL values for read and write
1115 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 Display @entry parameter values (without references).
1118 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1120 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1122 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1124 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1125 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1127 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1128 (loclist_read_variable_at_entry): New function.
1129 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1130 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1131 DW_AT_location, call dwarf_block_to_sp_offset for it.
1132 * frame.h (print_entry_values_no, print_entry_values_only)
1133 (print_entry_values_preferred, print_entry_values_if_needed)
1134 (print_entry_values_both, print_entry_values_compact)
1135 (print_entry_values_default, print_entry_values): New declarations.
1136 (struct frame_arg): New field entry_kind.
1137 (read_frame_arg): New parameter entryargp.
1138 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1139 arg->entry_kind. Optionally print the `@entry' suffix.
1140 (list_args_or_locals): New variable entryarg, initialize it.
1141 Initialize also entry_kind of arg and entryarg. Conditionalize
1142 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1143 xfree for entryarg.error.
1144 * stack.c (print_entry_values_no, print_entry_values_only)
1145 (print_entry_values_preferred, print_entry_values_if_needed)
1146 (print_entry_values_both, print_entry_values_compact)
1147 (print_entry_values_default, print_entry_values_choices)
1148 (print_entry_values): New variables.
1149 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1150 print the `@entry' suffix, possibly in combination for
1151 print_entry_values_compact.
1152 (read_frame_arg): New parameter entryargp, new variables entryval,
1153 entryval_error and val_equal. Read in also entryargp, respect
1154 print_entry_values, compare the values using val_equal, fill in also
1155 argp->entry_kind (together with entryargp->entry_kind).
1156 (print_frame_args): New variable entryarg, initialize it.
1157 Conditionalize print_frame_arg for arg, add print_frame_arg for
1158 entryarg. Call xfree for entryarg.error.
1159 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1160 * symtab.h (struct symbol_computed_ops): New field
1161 read_variable_at_entry.
1163 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1166 * frame.h (struct frame_arg): New definition.
1167 (read_frame_arg): New declaration.
1168 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1169 (list_args_or_locals): ... the code here. New variable arg, call
1170 read_frame_arg and list_arg_or_local with it. Unify the
1171 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1173 * stack.c (print_frame_arg): New functiom from the code of
1175 (read_frame_arg): New function.
1176 (print_frame_args): Remove variable val. New variable arg, call
1177 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1179 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1181 Protect entry values against self tail calls.
1182 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1183 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1185 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1187 Recognize virtual tail call frames.
1188 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1189 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1190 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1191 * dwarf2-frame-tailcall.c: New file.
1192 * dwarf2-frame-tailcall.h: New file.
1193 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1194 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1195 REGS.PREV only after CIE execution.
1196 (struct dwarf2_frame_cache): New field tailcall_cache.
1197 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1198 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1199 parts, try to find entry_cfa_sp_offset. Call
1200 dwarf2_tailcall_sniffer_first.
1201 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1203 (dwarf2_frame_dealloc_cache): New function.
1204 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1205 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1206 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1207 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1208 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1209 * dwarf2loc.c (func_addr_to_tail_call_list)
1210 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1211 (call_site_find_chain_1, call_site_find_chain): New.
1212 * dwarf2loc.h (struct call_site_chain): New.
1213 (call_site_find_chain): New declaration.
1214 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1215 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1216 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1217 * stack.c (frame_info): Support also TAILCALL_FRAME.
1219 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1221 Tail call sites reader implementation.
1222 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1223 fill in TYPE_TAIL_CALL_LIST.
1224 * gdbtypes.h (struct func_type): New field tail_call_list.
1225 (struct call_site): New field tail_call_next.
1226 (TYPE_TAIL_CALL_LIST): New definition.
1228 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1230 Implement basic support for DW_TAG_GNU_call_site.
1231 * block.c: Include gdbtypes.h and exceptions.h.
1232 (call_site_for_pc): New function.
1233 * block.h (call_site_for_pc): New declaration.
1234 * defs.h: Include hashtab.h.
1235 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1237 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1238 ctx_no_push_dwarf_reg_entry_value.
1239 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1240 (dwarf_block_to_dwarf_reg): New function.
1241 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1242 (ctx_no_push_dwarf_reg_entry_value): New function.
1243 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1244 push_dwarf_reg_entry_value.
1245 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1247 * dwarf2loc.c: Include gdbcmd.h.
1248 (dwarf_expr_ctx_funcs): New forward declaration.
1249 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1250 (dwarf_expr_reg_to_entry_parameter)
1251 (dwarf_expr_push_dwarf_reg_entry_value): New.
1252 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1253 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1254 (needs_dwarf_reg_entry_value): New function.
1255 (needs_frame_ctx_funcs): Install it.
1256 (_initialize_dwarf2loc): New function.
1257 * dwarf2loc.h (entry_values_debug): New declaration.
1258 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1259 (read_call_site_scope): New forward declaration.
1260 (process_full_comp_unit): Copy call_site_htab.
1261 (process_die): Support DW_TAG_GNU_call_site.
1262 (read_call_site_scope): New function.
1263 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1264 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1265 (cleanup_htab): Delete.
1266 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1267 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1268 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1269 FIELD_LOC_KIND_DWARF_BLOCK.
1270 * gdbtypes.h (enum field_loc_kind): New entry
1271 FIELD_LOC_KIND_DWARF_BLOCK.
1272 (struct main_type): New loc entry dwarf_block.
1273 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1274 (TYPE_FIELD_DWARF_BLOCK): New.
1275 * python/py-type.c: Include dwarf2loc.h.
1276 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1277 internal_error call on unknown FIELD_LOC_KIND.
1278 * symtab.h (struct symtab): New field call_site_htab.
1279 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1280 (core_addr_hash, core_addr_eq): New functions.
1282 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1285 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1286 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1287 calling_convention under func_stuff there.
1288 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1289 (init_type) <TYPE_CODE_FUNC>: Likewise.
1290 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1291 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1292 * gdbtypes.h (enum type_specific_kind): Change
1293 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1294 (struct main_type) <type_specific>: Change calling_convention to
1295 func_stuff. Move calling_convention to ...
1296 (struct func_type): ... this new struct.
1297 (INIT_FUNC_SPECIFIC): New #define.
1298 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1300 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1303 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1304 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1305 ctx->ref_addr_size. Handle its invalid value.
1306 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1307 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1308 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1309 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1310 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1311 (dwarf2_per_cu_ref_addr_size): New function.
1313 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 * dwarf2read.c (per_cu_header_read_in): New function.
1317 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1318 variables cu_header_local and cu_headerp.
1320 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1322 Fix initial language detection with -readnow.
1323 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1324 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1325 searches only for global symbols.
1327 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 Fix printed anonymous struct name.
1330 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1331 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1332 (anonymous_struct_prefix): New function.
1333 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1334 (dwarf2_name): Strip for anonymous structs any prefixes.
1336 2011-10-07 Doug Evans <dje@google.com>
1338 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1341 * python/lib/gdb/printing.py: Whitespace cleanup.
1343 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1346 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1348 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1349 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1350 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1351 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1352 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1353 (arm_linux_remove_watchpoint): Adjust.
1354 * i386-linux-nat.c (i386_linux_dr_set_control)
1355 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1356 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1357 (ia64_linux_remove_watchpoint): Adjust.
1358 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1359 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1360 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1361 (ppc_linux_insert_mask_watchpoint)
1362 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1363 (ppc_linux_remove_watchpoint): Adjust.
1364 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1367 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1369 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1370 (clear_win32_environment): New function for Cygwin to clear out
1372 (windows_create_inferior): Prepare new environment from in_env
1375 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1378 * python/py-value.c (valpy_call): Check that arguments are
1380 (is_intlike): Remove call to CHECK_TYPEDEF.
1381 (valpy_nonzero): Catch GDB exceptions.
1382 (valpy_absolute): Ditto.
1383 (valpy_lazy_string): Ditto.
1384 (valpy_call): Ditto.
1385 (valpy_get_is_optimized_out): Ditto.
1386 (valpy_long): Ditto.
1387 (valpy_float): Ditto.
1388 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1389 (valpy_richcompare): Ditto.
1391 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1393 * inferior.h (disable_randomization): Declare.
1394 * infrun.c (disable_randomization): New global variable.
1395 (show_disable_randomization): New function.
1396 (set_disable_randomization): Likewise.
1397 (_initialize_infrun): Install set/show disable-randomization
1399 * linux-nat.c (disable_randomization): Remove.
1400 (show_disable_randomization): Likewise.
1401 (set_disable_randomization): Likewise.
1402 (_initialize_linux_nat): No longer install set/show
1403 disable-randomization commands here.
1404 (linux_nat_supports_disable_randomization): New function.
1405 (linux_nat_add_target): Install it.
1406 * remote.c (PACKET_QDisableRandomization): New enum value.
1407 (remote_protocol_packets): Support QDisableRandomization.
1408 (_initialize_remote): Likewise.
1409 (remote_supports_disable_randomization): New function.
1410 (init_remote_ops): Install it.
1411 (extended_remote_supports_disable_randomization): New function.
1412 (init_extended_remote_ops): Install it.
1413 (extended_remote_disable_randomization): New function.
1414 (extended_remote_create_inferior_1): Call it.
1415 * target.h (struct target_ops): Add to_supports_disable_randomization.
1416 (target_supports_disable_randomization): Add prototype.
1417 * target.c (target_supports_disable_randomization): New function.
1418 (find_default_supports_disable_randomization): Likewise.
1419 (init_dummy_target): Install it.
1421 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1423 Allow Python notification of new object-file loadings.
1424 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1425 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1426 Add build rule for this file.
1427 * python/py-event.h (emit_new_objfile_event): New prototype.
1428 (newobjfile): New Python event emitter.
1429 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1430 Python event registry.
1431 * python/py-inferior.c: Include objfiles.h
1432 (python_new_objfile): New function.
1433 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1435 * python/py-newobjfileevent.c: New file.
1436 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1438 * python/python.c (_initialize_python): Add
1439 gdbpy_initialize_new_objfile_event call.
1440 * NEWS: Add item for new Python event "gdb.newobjfile"
1442 2011-10-05 Tristan Gingold <gingold@adacore.com>
1444 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1445 Extract the ravenscar task name from the symbol for the atcb.
1447 2011-10-04 Paul Koning <paul_koning@dell.com>
1449 * python/py-type.c (typy_make_iter): Add forward declaration.
1450 (typy_fields_items): Use the gdb.Type iterator.
1452 2011-10-04 Paul Koning <paul_koning@dell.com>
1454 * NEWS: Add entry for Python gdb.Type mapping methods.
1456 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1458 PR python/12691: Add the inferior to Python exited event
1459 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1461 * python/py-event.h (emit_exited_event): Likewise
1462 * python/-inferior.c (python_inferior_exit): Likewise
1464 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1466 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1467 in output of -ada-task-info GDB/MI command.
1469 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1471 * ada-lang.h (struct inferior): Declare.
1472 (print_ada_task_info): Add declaration.
1473 * ada-tasks.c (print_ada_task_info): Make non-static.
1474 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1475 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1476 * mi/mi-main.c: #include "ada-lang.h".
1477 (mi_cmd_list_features): Add "ada-task-info" to the list
1478 of supported features.
1479 (mi_cmd_ada_task_info): New function.
1481 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1483 * python/python.c (python_run_simple_file): New function.
1484 (source_python_script, source_python_script_for_objfile):
1485 Replace call to PyRun_SimpleFile by call to
1486 python_run_simple_file.
1488 2011-10-03 Paul Koning <paul_koning@dell.com>
1490 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1491 (value_to_value_object): Fetch value if it was lazy.
1493 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1496 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1497 Rearrange the code for it.
1499 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1501 * breakpoint.c (bkpt_print_recreate): Add call to
1502 print_recreate_thread.
1504 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1506 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1507 PTRACE_GETFDPIC_INTERP): Define.
1509 2011-09-28 Yao Qi <yao@codesourcery.com>
1511 * symfile.c (add_symbol_file_command): Update message on usage.
1513 2011-09-28 Paul Koning <paul_koning@dell.com>
1515 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1516 (typy_length, typy_get, typy_has_key, typy_make_iter)
1517 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1518 (typy_iterator_iter, typy_iterator_iternext)
1519 (typy_iterator_dealloc): New functions to implement standard
1520 Python mapping methods on gdb.Type object.
1521 (gdb.TypeIterator): New Python type.
1522 * python/python-internal.h (gdbpy_iter_kind): New enum.
1524 2011-09-28 David S. Miller <davem@davemloft.net>
1526 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1527 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1528 * sparc-tdep.c (sparc_complex_floating_p): New function.
1529 (sparc32_store_arguments): Handle complex floats.
1530 (sparc32_extract_return_value): Likewise.
1531 (sparc32_store_return_value): Likewise.
1532 (sparc32_stabs_argument_has_addr): Likewise.
1533 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1534 (sparc64_store_floating_fields): Handle complex floats.
1535 (sparc64_store_arguments): Likewise.
1536 (sparc64_store_return_value): Likewise.
1538 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1540 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1541 before the change on 2006-12-09.
1542 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1543 generates the environment block for CreateProcessA, modulo the
1544 Cygwin-specific parts that are not needed here.
1546 2011-09-27 Tristan Gingold <gingold@adacore.com>
1548 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1549 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1550 (darwin_solib_get_all_image_info_addr_at_init): New function.
1551 (darwin_solib_read_all_image_info_addr): Likewise.
1552 (darwin_solib_create_inferior_hook): Use the above two functions.
1553 * darwin-nat.c (darwin_execvp): Renames retval to res.
1554 (darwin_read_write_inferior): Update comment.
1555 (darwin_read_dyld_info): New function.
1556 (darwin_xfer_partial): Handle DYLD_INFO.
1558 2011-09-27 Stan Shebs <stan@codesourcery.com>
1560 Add return address collection for tracepoints.
1561 * tracepoint.c (encode_actions_1): Add case for $_ret.
1562 (validate_actionline): Check for $_ret.
1563 (trace_dump_actions): Ditto.
1564 * ax-gdb.h (gen_trace_for_return_address): Declare.
1565 * ax-gdb.c: Include arch-utils.h.
1566 (gen_trace_for_return_address): New function.
1567 (agent_command): Add return address special case.
1568 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1569 (amd64_gen_return_address): New function.
1570 (amd64_init_abi): Call it.
1571 * i386-tdep.c: Include ax.h and ax-gdb.h.
1572 (i386_gen_return_address): New function.
1573 (i386_init_abi): Call it.
1574 * arch-utils.h (default_gen_return_address): Declare.
1575 * arch-utils.c (default_gen_return_address): New function.
1576 * gdbarch.sh (gen_return_address): New method.
1577 * gdbarch.h, gdbarch.c: Regenerate.
1579 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1582 * i386-tdep.c (i386_frame_align): New.
1583 (i386_gdbarch_init): Use i386_frame_align.
1585 2011-09-23 Yao Qi <yao@codesourcery.com>
1587 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1590 2011-09-22 Tristan Gingold <gingold@adacore.com>
1592 * fork-child.c (fork_inferior): Add exec_fun parameter.
1593 Call exec_fun or execvp.
1594 * inferior.h: Adjust prototype.
1595 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1596 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1597 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1598 * procfs.c (procfs_create_inferior): Ditto.
1599 * darwin-nat.c (darwin_execvp): New function.
1600 (darwin_create_inferior): Use it.
1602 2011-09-22 Yao Qi <yao@codesourcery.com>
1604 * infrun.c (context_switch): Print debug message when switching to
1607 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1609 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1610 complex and vector types.
1611 (s390_return_value_convention): Likewise.
1613 (s390_value_from_register): Call check_typedef.
1614 (extend_simple_arg): Likewise.
1615 (alignment_of): Likewise.
1616 (s390_push_dummy_call): Likewise.
1617 (s390_return_value): Likewise.
1619 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1621 * event-top.c (async_disconnect): If an exception is thrown from
1622 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1624 * top.c (quit_cover): Return void and take no arguments.
1625 * top.h (quit_cover): Update prototype.
1627 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1629 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1630 current_uiout, not uiout.
1632 2011-09-19 Doug Evans <dje@google.com>
1634 * python/py-auto-load.c (source_section_scripts): Fix file
1636 * python/python.c (source_python_script_for_objfile): Tweak comments.
1638 2011-09-18 Yao Qi <yao@codesourcery.com>
1639 Ulrich Weigand <ulrich.weigand@linaro.org>
1641 Support displaced stepping for Thumb 16-bit insns.
1642 * arm-tdep.c (THUMB_NOP) Define.
1643 (thumb_copy_unmodified_16bit): New.
1644 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1645 (thumb_copy_alu_reg): New.
1646 (arm_copy_svc): Move some common code to ...
1647 (install_svc): ... here. New.
1648 (thumb_copy_svc): New.
1649 (install_pc_relative): New.
1650 (thumb_copy_pc_relative_16bit): New.
1651 (thumb_decode_pc_relative_16bit): New.
1652 (thumb_copy_16bit_ldr_literal): New.
1653 (thumb_copy_cbnz_cbz): New.
1654 (cleanup_pop_pc_16bit_all): New.
1655 (thumb_copy_pop_pc_16bit): New.
1656 (thumb_process_displaced_16bit_insn): New.
1657 (thumb_process_displaced_32bit_insn): New.
1658 (thumb_process_displaced_insn): process thumb instruction.
1660 Support displaced stepping for Thumb 32-bit insns.
1661 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1662 (thumb2_copy_preload): New.
1663 (thumb2_copy_copro_load_store): New.
1664 (thumb2_copy_b_bl_blx): New.
1665 (thumb2_copy_alu_imm): New.
1666 (thumb2_copy_load_reg_imm): New.
1667 (thumb2_copy_load_literal): New
1668 (thumb2_copy_block_xfer): New.
1669 (thumb_32bit_copy_undef): New.
1670 (thumb_32bit_copy_unpred): New.
1671 (thumb2_decode_ext_reg_ld_st): New.
1672 (thumb2_decode_svc_copro): New.
1673 (decode_thumb_32bit_store_single_data_item): New.
1674 (thumb_copy_pc_relative_32bit): New.
1675 (thumb_decode_pc_relative_32bit): New.
1676 (decode_thumb_32bit_ld_mem_hints): New.
1677 (thumb2_copy_table_branch): New
1678 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1681 2011-09-18 Yao Qi <yao@codesourcery.com>
1683 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1684 (install_b_bl_blx): Likewise.
1686 2011-09-17 Yao Qi <yao@codesourcery.com>
1688 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1689 (install_load_store): ... this. New.
1690 Change parameter BYTE to SIZE.
1691 (arm_copy_ldr_str_ldrb_strb): Update caller.
1692 (arm_decode_ld_st_word_ubyte): Update caller.
1694 2011-09-17 Yao Qi <yao@codesourcery.com>
1696 * infrun.c (displaced_step_fixup): Move some code ...
1697 (displaced_step_restore): ... here. New function.
1698 (handle_inferior_event): Cleanup displaced stepping state for both
1699 child and parent when get forked or vforked event.
1700 * regcache.c (get_thread_arch_aspace_regcache): New function.
1701 get_thread_arch_regcache (): Call it.
1703 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1705 * ada-tasks.c (print_ada_task_info): New function, merging
1706 short_task_info and info_tasks together. Reimplement using
1707 ui-out instead of printing to stdout directly. Move the code
1708 building and checking the task list here, instead of leaving it
1709 in info_tasks_command.
1710 (info_task): Move the code building and checking the task
1711 list here, instead of leaving it in info_tasks_command.
1712 (info_tasks_command): Delete code building and checking
1713 the task list - moved elsewhere. Update calls to info_tasks
1716 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1718 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1720 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1722 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1724 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1726 * ada-lang.h (ada_build_task_list): Remove parameter
1728 * ada-tasks.c (ada_build_task_list): Remove parameter
1729 `warn_if_null'. Adjust implementation and documentation.
1730 (valid_task_id, ada_get_environment_task)
1731 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1732 (info_tasks_command): Adjust implementation.
1733 (task_command): Likewise.
1734 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1735 to ada_build_task_list.
1737 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1739 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1740 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1741 (ada_tasks_inferior_data_handle): New static global.
1742 (get_ada_tasks_inferior_data): New function.
1743 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1744 (ada_get_environment_task, iterate_over_live_ada_tasks)
1745 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1747 (ada_set_current_inferior_known_tasks_addr): New function.
1748 (read_known_tasks, ada_build_task_list, short_task_info)
1749 (info_tasks, info_task, info_tasks_command, task_command_1)
1750 (task_command, ada_task_list_changed): Adjust.
1751 (ada_tasks_invalidate_inferior_data): New function.
1752 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1753 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1754 * ada-lang.h (struct inferior): Add declaration.
1755 (ada_task_list_changed): Update profile.
1756 * remote-wtx-pd.c: #include "inferior.h".
1757 (switch_to_pd_internal): Update call to ada_task_list_changed.
1759 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1761 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1762 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1763 (atcb_fieldno): Delete these static globals.
1764 (struct ada_tasks_pspace_data): New struct.
1765 (ada_tasks_pspace_data_handle): New static global.
1766 (get_ada_tasks_pspace_data): New function.
1767 (ada_tasks_invalidate_pspace_data): New function.
1768 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1769 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1770 (_initialize_tasks): Create this module's per-progspace
1773 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1775 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1777 2011-09-16 Tristan Gingold <gingold@adacore.com>
1779 * fork-child.c (fork_inferior): Update comment. Use alloca
1780 instead of xmalloc for argv. Move len and shell_command
1781 declarations in the block where they are used.
1782 Only call execvp. Factorize failure code.
1784 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1787 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1788 `exp_element' instead of an element of the same and make the function
1790 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1791 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1792 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1793 Change argument of `write_exp_elt' function call.
1794 Remove extra spaces from comments.
1795 * parser-defs.h (write_exp_elt): Remove prototype.
1797 2011-09-15 Paul Koning <paul_koning@dell.com>
1799 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1800 count of item appended to list.
1801 * python/py-type.c (typy_fields): Likewise.
1803 2011-09-15 Paul Koning <paul_koning@dell.com>
1805 * MAINTAINERS (Write After Approval): Add myself to the list.
1807 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1810 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1811 processes with multiple threads.
1812 (inf_has_multiple_thread_cb): New function.
1813 (inf_has_multiple_threads): New function.
1815 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1817 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1818 * python/py-inferior.c (GdbMethods): New Python method definition.
1820 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1822 Handle multiple breakpoint hits in Python interface:
1823 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1824 variable to breakpoints.
1825 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1826 bps instead of single breakpoint. Fix some space typos.
1827 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1828 variable to breakpoints.
1830 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1832 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1833 note if the breakpoint is internal.
1835 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1837 * MAINTAINERS (Write After Approval): Add myself to the list
1839 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1841 * infrun.c (prepare_for_detach, wait_for_inferior)
1842 (fetch_inferior_event): Don't flush the register cache.
1843 * remote.c (struct stop_reply) <regcache>: Add comment.
1845 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1847 Remove excessive DWARF expressions memory duplication.
1848 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1850 (indirect_pieced_value): Remove variable result. Remove variable
1851 back_to and its use for baton.data.
1852 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1854 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1855 Update the function comment.
1857 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1859 * inferior.h (ALL_INFERIORS): New.
1860 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1861 for a stopped thread.
1862 (thread_db_find_new_threads): Look for threads in all inferiors.
1864 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1866 * breakpoint.c (update_watchpoint): Handle the case of the
1867 watchpoint to update not being in the breakpoint list yet.
1868 (hw_watchpoint_use_count): New, factored out from
1869 hw_watchpoint_used_count.
1870 (hw_watchpoint_used_count): Rename to ...
1871 (hw_watchpoint_used_count_others): ... this. Add `except'
1872 parameter. Don't count resources of `except'. Use
1873 hw_watchpoint_use_count.
1875 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1877 * gdbthread.h (enum thread_state): Moved here.
1878 (struct thread_info): Rename `executing_' field to `executing' and
1879 `state_' to `state'.
1880 * thread.c (enum thread_state): Moved to gdbthread.h.
1881 (new_thread, add_thread_silent, delete_thread_1)
1882 (any_live_thread_of_process, thread_alive, set_running)
1883 (set_running, is_thread_state, any_running, is_executing)
1884 (set_executing, finish_thread_state, print_thread_info)
1885 (do_captured_thread_select): Adjust.
1887 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1890 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1892 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1893 Matt Rice <ratmice@gmail.com>
1897 * interps.c (struct interp) <interpreter_out>: Delete field.
1898 (interp_new): Remove the data and uiout parameters and adjust.
1899 (interp_set): Only set the current_uiout from the interpreter's
1900 uiout after initializing the interpreter. Adjust call to
1902 (interp_ui_out): Adjust to call procs->ui_out_proc.
1903 (interp_data, interp_name): New.
1904 * interps.h (interp_init_ftype): Add `self' parameter.
1905 (interp_ui_out_ftype): New typedef.
1906 (struct interp_procs) <ui_out_proc>: New method pointer.
1907 (interp_new): Remove the data and uiout parameters.
1908 (interp_data, interp_name): Declare.
1909 * tui/tui-interp.c (tui_init): Adjust prototype.
1911 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1912 tui_out here. Adjust call to interp_new.
1913 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1914 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1916 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1917 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1918 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1919 Initialize mi->uiout depending on the mi_version as extracted from
1920 the interpreter's name.
1922 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1923 interp_new. Don't allocate the ui_out's of the interpreters here.
1925 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1927 * solib.c (solib_used): New function.
1928 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1929 by another so_list object before freeing it.
1931 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1937 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1940 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1941 (amd64_skip_xmm_prologue): ... this new function. Describe its
1942 parameters. No longer use amd64_prologue_line_bug.
1943 * defs.h (producer_is_gcc_ge_4): New declaration.
1944 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1945 (process_full_comp_unit): Update its caller. Remove
1946 amd64_prologue_line_bug initialization.
1947 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1948 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1950 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1952 * linux-nat.h (enum resume_kind): New.
1953 (struct lwp_info) <last_resume_kind>: New field.
1954 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1955 resume_stop on the new lwp.
1956 (add_lwp): Set last_resume_kind as resume_continue by default.
1957 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1958 (resume_lwp): New, factored out from resume_callback. Also check
1959 for pending status in lp->waitstatus.
1960 (resume_callback): Reimplement.
1961 (resume_clear_callback): Set last_resume_kind as resume_stop.
1962 (resume_set_callback): Set last_resume_kind as resume_continue.
1963 (linux_nat_resume, linux_handle_extended_wait): Set
1965 (running_callback): Also check lp->waitstatus for pending events.
1966 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1968 (stop_and_resume_callback): Don't re-resume if the core wanted the
1969 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1970 using an invalidated pointer.
1971 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1972 SIGSTOPs if the core wanted the LWP to stop.
1973 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1974 wanted the lwp to stop. If the core wanted the lwp to stop, and
1975 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1976 of TARGET_SIGNAL_STOP.
1977 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1978 here. Instead, signal the lwp, and set the last_resume_kind to
1981 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1983 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1984 -1 (error), if the lwp exits right after attaching.
1986 2011-09-08 Doug Evans <dje@google.com>
1988 * py-cmd.c: Some minor formatting fixes.
1989 (gdbpy_parse_command_name): Rename text arg to name, make const.
1990 All callers updated.
1991 * python-internal.h (gdbpy_parse_command_name): Update.
1993 * cli/cli-decode.c (add_cmd): Add comment.
1995 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1997 PR breakpoints/12435
1998 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1999 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2000 * dwarf2read.c (process_full_comp_unit): Initialize
2001 amd64_prologue_line_bug.
2002 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2004 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2006 Fix TUI screen corruption.
2007 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2010 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2012 * findvar.c (read_var_value): Never return NULL, throw an error
2013 instead. Update the function comment. State symbol name in the error
2015 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2017 * stack.c (print_frame_args): Likewise.
2018 * valops.c (value_of_variable): Likewise.
2020 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2022 * stack.c (print_frame_args): New variable except. Wrap
2023 read_var_value and common_val_print into TRY_CATCH.
2025 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2027 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2028 caller to value_of_this.
2029 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2031 * valops.c (value_of_this): Remove parameter complain and variable ret.
2032 Update function comment. Never return NULL by this code.
2033 (value_of_this_silent): New function.
2034 * value.h (value_of_this): Remove parameter complain.
2035 (value_of_this_silent): New declaration.
2037 2011-09-07 Yao Qi <yao@codesourcery.com>
2039 * gdbthread.h (struct thread_info): Remove fields
2040 `stepping_through_solib_after_catch' and
2041 `stepping_through_solib_catchpoints'.
2042 * infrun.c (init_thread_stepping_state): Update.
2043 (process_event_stop_test, currently_stepping): Update.
2044 (currently_stepping_or_nexting_callback): Update.
2046 2011-09-07 Yao Qi <yao@codesourcery.com>
2048 * gdbthread.h (struct thread_info): Comment on field
2049 `step_after_step_resume_breakpoint'.
2051 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2053 * remote.c (remote_console_output): Reindent.
2055 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2057 * frame.c (has_stack_frames): Check for currently selected
2060 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2062 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2063 (set_async_annotation_level, set_async_prompt, pop_prompt)
2064 (push_prompt, new_async_prompt): Delete declarations.
2065 * top.h (get_prompt, set_prompt): Change prototype.
2066 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2068 * top.c (command_loop):
2069 (top_prompt): New global.
2070 (get_prefix, set_prefix, get_suffix, ): Delete.
2071 (get_prompt, set_prompt): Rewrite.
2072 (show_new_async_prompt): Rename to ...
2073 (show_prompt): ... this.
2074 (init_main): Adjust. Don't handle --annotate=2 here.
2075 * event-top.c (new_async_prompt): Delete.
2076 (the_prompts): Delete.
2077 (more_to_come): Make static.
2078 (display_gdb_prompt): Use top_level_prompt() to compute the top
2079 level prompt, and don't notify the before_prompt observers
2080 directly here. Always trick readline into not trying to display
2081 the prompt if sync_execution and displaying the primary prompt.
2082 If displaying a local/secondary prompt, always show it, even if
2083 sync_execution is set.
2084 (change_annotation_level): Delete.
2085 (top_level_prompt): New, based on change_annotation_level.
2086 (push_prompt, pop_prompt): Delete.
2087 (async_disable_stdin): No longer pushes prompt.
2088 (command_line_handler): No longer pushes or pops prompt. If more
2089 input is expected, call display_gdb_prompt with an explicit empty
2091 (async_stop_sig): Adjust.
2092 (set_async_annotation_level, set_async_prompt): Delete.
2093 * python/python.c (before_prompt_hook): Adjust.
2095 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2099 * infrun.c (fetch_inferior_event): Check if there's a selected
2100 thread before checking if the selected thread is executing.
2102 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2104 * inf-loop.c (execute_command): Don't check if the current thread
2105 if running before synchronously waiting for command completion.
2106 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2108 (normal_stop): Call async_enable_stdin here.
2109 * inf-loop.c (inferior_event_handler): Don't call
2110 async_enable_stdin, nor handle "set exec-done-display" here.
2112 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2116 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2118 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2120 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2122 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2124 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2128 2011-09-02 Matt Rice <ratmice@gmail.com>
2131 * event-top.c (cli_command_loop): Replace readline setup with
2132 direct call to display_gdb_prompt.
2133 (display_gdb_prompt): Do not call observer mechanism during
2134 synchronous execution.
2136 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2138 * linux-nat.c (in_pid_list_p): New.
2139 (linux_record_stopped_pid): Delete.
2140 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2141 already attached to the LWP. Return an indication if so.
2142 (linux_nat_filter_event): Adjust.
2143 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2144 returning an indication to ignore this thread.
2146 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2148 * top.c: Include interps.h.
2149 (execute_command): If the target can async, but the interpreter is
2150 in sync mode, synchronously wait for the command to finish before
2152 (execute_command_to_string): Force the interpreter to sync mode.
2153 * infrun.c: Include interps.h.
2154 (fetch_inferior_event): Don't restore the prompt yet if the
2155 interpreter is in sync mode.
2156 * interps.c (interpreter_async): New global.
2157 * interps.h (interpreter_async): Declare.
2158 * inf-loop.c: Include interps.h.
2159 (inferior_event_handler): Don't print the language change or run
2160 breakpoint commands yet if the interpreter in is sync mode.
2161 * main.c (captured_command_loop): Flip the interpreter to async
2163 * cli/cli-script.c: Include interps.h.
2164 (execute_user_command, while_command, if_command): Force the
2165 interpreter to sync mode.
2166 * python/python.c: Include interps.h.
2167 (python_command, execute_gdb_command): Force the interpreter to
2170 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2172 * value.c (show_convenience): Catch errors thrown while printing
2173 each internal variable.
2174 * infrun.c (validate_siginfo_access): New function.
2175 (siginfo_value_read, siginfo_value_write): Call it.
2177 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2180 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2181 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2184 2011-08-29 Yao Qi <yao@codesourcery.com>
2186 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2188 (enable_break2): Update caller.
2189 * solib-frv.c (bfd_lookup_symbol): Removed.
2191 (enable_break2): Update caller.
2192 * solib-pa64.c (bfd_lookup_symbol): Removed.
2194 * solib-svr4.c (bfd_lookup_symbol): Removed.
2195 (cmp_name_and_sec_flags): New.
2196 (enable_break): Update caller.
2197 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2198 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2199 (gdb_bfd_lookup_symbol): New.
2200 * solib.h: Functions declarations.
2202 2011-08-29 Yao Qi <yao@codesourcery.com>
2204 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2207 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 Fix TUI stepi on code without symbols.
2210 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2213 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2216 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2217 and the static keyword.
2218 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2219 Make prefix an array.
2220 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2221 * mi/mi-main.c (get_register): Remove stb initialization and the static
2224 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2226 Code cleanup - make mi_opt const.
2227 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2229 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2230 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2231 (mi_cmd_env_dir): Likewise.
2232 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2233 (mi_cmd_target_file_put): Likewise.
2234 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2235 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2236 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2237 (mi_valid_noargs): Make opts const.
2238 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2239 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2240 (mi_cmd_data_read_memory): Likewise.
2241 (mi_cmd_data_read_memory_bytes): Likewise.
2242 (mi_cmd_data_write_memory): Likewise.
2244 2011-08-26 Matt Rice <ratmice@gmail.com>
2246 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2247 bcache_xmalloc, replace bcache_xmalloc with call to
2248 psymbol_bcache_init for psymbol_cache.
2249 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2251 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2253 * inf-loop.c (inferior_event_handler): Add exception_print in
2256 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2259 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2260 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2261 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2262 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2263 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2264 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2265 * infrun.c (fetch_inferior_event): Call
2266 make_bpstat_clear_actions_cleanup.
2267 * top.c (execute_command): New variable cleanup_if_error, call
2268 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2269 * utils.c (do_bpstat_clear_actions_cleanup)
2270 (make_bpstat_clear_actions_cleanup): New functions.
2272 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2274 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2275 either the parent or the child forks. Rename a couple locals.
2277 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2279 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2280 library call. Avoid reading the `status' local if all waitpid
2283 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2285 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2286 opening /proc/PID/task always succeeds.
2288 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2290 * linespec.c (symtab_from_filename): Check for the end of string.
2292 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2295 * varobj.c (cplus_describe_child): Add the keyword
2296 'class' to the output of the method when dealing
2297 with a cast to a base class.
2299 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2301 No functionality change.
2302 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2303 function comment a reference, new variables tp and bs, move here code
2304 from throw_exception.
2305 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2306 describe it in the comment.
2307 * exceptions.c (throw_exception): Remove variable tp, move the code for
2308 bpstat_clear_actions to bpstat_clear_actions.
2310 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2312 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2313 * linux-nat.c: Include linux-procfs.h.
2314 (linux_proc_get_tgid): Move to ...
2315 * common/linux-procfs.c: ... here. New file.
2316 * common/linux-procfs.h: New file.
2317 * linux-thread-db.c: Include linux-procfs.h.
2318 * Makefile.in: Update dependencies.
2319 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2320 * config/arm/linux.mh: Likewise.
2321 * config/i386/linux.mh: Likewise.
2322 * config/i386/linux64.mh: Likewise.
2323 * config/ia64/linux.mh: Likewise.
2324 * config/m32r/linux.mh: Likewise.
2325 * config/m68k/linux.mh: Likewise.
2326 * config/mips/linux.mh: Likewise.
2327 * config/pa/linux.mh: Likewise.
2328 * config/pa/linux.mh: Likewise.
2329 * config/powerpc/linux.mh: Likewise.
2330 * config/powerpc/ppc64-linux.mh: Likewise.
2331 * config/powerpc/spu-linux.mh: Likewise.
2332 * config/sparc/linux.mh: Likewise.
2333 * config/sparc/linux64.mh: Likewise.
2334 * config/xtensa/linux.mh: Likewise.
2336 2011-08-24 Hui Zhu <teawater@gmail.com>
2338 * tracepoint.c (cond_string_is_same): New function.
2339 (find_matching_tracepoint): Add condition check
2340 by cond_string_is_same.
2342 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2344 Fix build error in Darwin port.
2345 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2347 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2350 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2351 (command_line_is_silent): New function.
2352 (bpstat_do_actions_1): No longer use commands_left, use
2353 command_line_is_silent for commands.
2354 (bpstat_alloc): Remove clearing of commands_left.
2355 (bpstat_stop_status): Remove initialization of commands_left, use
2356 command_line_is_silent.
2357 * breakpoint.h (struct bpstats): Remove commands_left.
2359 2011-08-18 Keith Seitz <keiths@redhat.com>
2362 * cp-name-parser.y (struct demangle_info): Remove unused
2365 (allocate_info): Change return type to struct demangle_info *.
2366 Always allocate a new demangle_info.
2367 Remove unused PREV pointer.
2368 (cp_new_demangle_parse_info): New function.
2369 (cp_demangled_name_parse_free): New function.
2370 (do_demangled_name_parse_free_cleanup): New function.
2371 (make_cleanup_cp_demangled_name_parse_free): New function.
2372 (cp_demangled_name_to_comp): Change return type to
2373 struct demangle_parse_info *.
2374 Allocate a new storage for each call.
2375 (main): Update usage for cp_demangled_name_to_comp
2377 * cp-support.h (struct demangle_parse_info): New structure.
2378 (cp_demangled_name_to_comp): Update API change for
2380 (cp_new_demangle_parse_info): Declare.
2381 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2382 (cp_demangled_name_parse_free): Declare.
2383 * cp-support.c (cp_canonicalize_string): Update API
2384 change for cp_demangled_name_to_comp.
2385 (mangled_name_to_comp): Likewise.
2386 Return struct demangle_parse_info, too.
2387 (cp_class_name_from_physname): Update mangled_name_to_comp
2389 (method_name_from_physname): Likewise.
2390 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2391 (cp_remove_params): Likewise.
2392 * python/py-type.c (typy_legacy_template_argument): Likewise.
2394 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2395 (cp_merge_demangle_parse_infos): Declare.
2396 * cp-support.c (ignore_typedefs): New file global.
2397 (copy_string_to_obstack): New function.
2398 (inspect_type): New function.
2399 (replace_typedefs): New function.
2400 (replace_typedefs_qualified_name): New function.
2401 (cp_canonicalize_string_no_typedefs): New function.
2402 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2403 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2404 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2405 instead of cp_canonicalize_string.
2406 (find_method): Likewise.
2407 (decode_compound): Before looking up the name, call
2408 cp_canonicalize_string_no_typedefs.
2409 (decode_variable): Likewise.
2411 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2412 Tom Tromey <tromey@redhat.com>
2413 Matt Rice <ratmice@gmail.com>
2415 * python/lib/gdb/prompt.py: New file.
2416 * python/lib/gdb/command/prompt.py: New file.
2417 * NEWS: Document set extended-prompt and gdb.prompt library
2419 2011-08-16 Yao Qi <yao@codesourcery.com>
2421 * tic6x-linux-tdep.c: Move const arrays definition from here...
2422 * tic6x-tdep.c: to here ...
2424 2011-08-14 Yao Qi <yao@codesourcery.com>
2426 * NEWS: New port to Texas Instruments TMS320C6x.
2428 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2429 Bernd Schmidt <bernds@codesourcery.com>
2430 Yao Qi <yao@codesourcery.com>
2432 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2433 * solib-dsbt.c: New file. Support DSBT shared object.
2434 * tic6x-linux-tdep.c: New file.
2435 * tic6x-tdep.c: New file.
2436 * tic6x-tdep.h: New file.
2438 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2439 Yao Qi <yao@codesourcery.com>
2441 * remote.c (PACKET_qXfer_fdpic): New enum value.
2442 (remote_protocol_features): Add qXfer:fdpic:read packet.
2443 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2444 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2445 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2447 2011-08-14 Yao Qi <yao@codesourcery.com>
2449 Target description for tic6x.
2450 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2451 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2452 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2453 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2454 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2455 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2456 * features/tic6x-c64xp-linux.xml: New.
2457 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2458 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2459 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2460 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2461 * regformats/tic6x-c64xp.dat,
2462 regformats/tic6x-c62x-linux.dat: Generated.
2463 * regformats/tic6x-c64x-linux.dat,
2464 regformats/tic6x-c64xp-linux.dat: Generated.
2465 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2466 features/tic6x-*.c files.
2467 Add regformats/tic6x-*.dat files.
2469 2011-08-12 Doug Evans <dje@google.com>
2471 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2472 * python/py-symbol.c (sympy_get_type): New function.
2473 (symbol_object_getset): Add "type".
2475 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2479 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2481 (tui_show_register_group): Don't store a byte buffer in the data
2483 (tui_register_format): Skip registers with an empty name.
2484 (tui_get_register): Store a struct value in the data element's
2485 value field instead of a byte buffer holding the raw register
2486 contents. Account for optimized-out and unavailable registers
2487 when comparing register contents.
2489 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2491 * printcmd.c (current_display_number): Update comment.
2492 (disable_current_display_cleanup): Delete.
2493 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2494 catch errors thrown while evaluating and printing the display.
2496 2011-08-09 Tom Tromey <tromey@redhat.com>
2498 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2500 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2502 * elfread.c (elf_symtab_read): Rework comments.
2503 * maint.c (maintenance_command): Ditto.
2504 * somread.c (som_symtab_read): Ditto.
2505 * solib.c (solib_find, solib_map_sections, update_solib_list)
2506 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2507 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2508 (sharedlibrary_command, no_shared_libraries): Ditto.
2509 * solib-irix.c (locate_base, disable_break, enable_break)
2510 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2511 (irix_current_sos, irix_open_symbol_file_object)
2512 (irix_special_symbol_handling): Ditto.
2513 * solib-sunos.c (locate_base, first_link_map_member)
2514 (sunos_current_sos, disable_break, enable_break)
2515 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2517 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2518 (open_symbol_file_object, svr4_current_sos, enable_break)
2519 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2521 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2522 (frv_current_sos, enable_break, frv_special_symbol_handling)
2523 (frv_solib_create_inferior_hook): Ditto.
2524 * solist.h (struct target_so_ops): Extend the comments of the
2525 special_symbol_handling, current_sos and open_symbol_file_object
2528 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2530 * python/lib/gdb/__init__.py: Auto-load files in command and
2531 function directories.
2532 * python/python.c (finish_python_initialization): Use
2534 * python/lib/gdb/command/pretty_printers.py: Self register
2536 * NEWS: Document auto-loading.
2538 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2540 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2541 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2542 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2544 2011-08-08 Tom Tromey <tromey@redhat.com>
2546 * breakpoint.c (clean_up_filters): Remove.
2547 (catch_syscall_split_args): Use VEC_cleanup.
2549 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2551 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2552 (main): Uncomment "Demangling error\n".
2554 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2556 * solib-target.c (segment_attributes): Make them static.
2557 (section_attributes, library_children, library_attributes): Likewise.
2558 (library_list_children, library_list_attributes): Likesise.
2559 (library_list_elements): Likewise.
2561 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2563 * exceptions.c (throw_exception): Don't disable the current
2565 * printcmd.c (disable_current_display_cleanup): New function.
2566 (do_one_display): Install a cleanup to disable the current display
2567 if doing the display throws.
2569 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2571 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2572 initialization of the tp_new member to the corresponding
2573 gdbpy_initialize_* function.
2574 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2575 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2576 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2577 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2578 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2580 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2582 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2583 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2584 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2585 references to current_uiout.
2587 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2589 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2590 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2591 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2592 * top.c (gdb_readline_wrapper): Adjust.
2593 * tui/tui-interp.c (tui_command_loop):
2594 (_initialize_tui_interp): Don't install it.
2596 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2598 * ui-out.h (uiout): Rename to ...
2599 (current_uiout): ... this.
2600 * ui-out.c (uiout): Rename to ...
2601 (current_uiout): ... this.
2602 * ada-lang.c (print_it_exception, print_one_exception)
2603 (print_mention_exception): Adjust.
2604 * breakpoint.c (watchpoint_check): Adjust.
2605 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2606 (default_collect_info, watchpoints_info, print_one_catch_fork)
2607 (print_one_catch_vfork, print_one_catch_syscall)
2608 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2609 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2610 (print_it_watchpoint, print_mention_watchpoint)
2611 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2612 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2613 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2614 (bkpt_print_mention, momentary_bkpt_print_it)
2615 (tracepoint_print_mention, update_static_tracepoint)
2616 (tracepoints_info, save_breakpoints): Adjust.
2617 * cli-out.c (field_separator): Adjust.
2618 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2619 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2620 * frame.c (get_current_frame): Adjust.
2621 * infcmd.c (run_command_1, print_return_value): Adjust.
2622 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2623 * infrun.c (print_end_stepping_range_reason): Adjust.
2624 (print_signal_exited_reason, print_exited_reason): Adjust.
2625 (print_signal_received_reason, print_no_history_reason): Adjust.
2626 * interps.c (interp_set): Adjust.
2627 * osdata.c (info_osdata_command): Adjust.
2628 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2629 * remote-fileio.c (remote_fileio_request): Adjust.
2630 * remote.c (show_remote_cmd): Adjust.
2631 * solib.c (info_sharedlibrary_command): Adjust.
2632 * source.c (print_source_lines_base): Adjust.
2633 * stack.c (print_stack_frame): Adjust.
2634 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2635 * symfile-mem.c (add_vsyscall_page): Adjust.
2636 * symfile.c (load_progress, generic_load)
2637 (print_transfer_performance): Adjust.
2638 * thread.c (info_threads_command, restore_selected_frame)
2639 (thread_command): Adjust.
2640 * top.c (make_cleanup_restore_ui_file): Adjust.
2641 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2642 (print_one_static_tracepoint_marker): Adjust.
2643 * cli/cli-cmds.c (print_disassembly): Adjust.
2644 * cli/cli-decode.c (print_doc_line): Adjust.
2645 * cli/cli-interp.c (safe_execute_command): Adjust.
2646 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2647 (handle_redirections): Adjust.
2648 * cli/cli-script.c (show_user_1): Adjust.
2649 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2650 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2651 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2652 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2653 (mi_cmd_env_dir): Adjust.
2654 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2655 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2656 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2657 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2658 (list_args_or_locals): Adjust.
2659 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2660 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2661 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2662 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2663 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2664 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2665 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2666 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2667 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2668 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2669 (list_available_thread_groups, mi_cmd_list_thread_groups)
2670 (mi_cmd_data_list_register_names)
2671 (mi_cmd_data_list_changed_registers)
2672 (mi_cmd_data_list_register_values, get_register)
2673 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2674 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2675 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2676 (mi_execute_command, mi_load_progress): Adjust.
2677 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2678 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2680 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2681 * tui/tui-interp.c (tui_command_loop): Adjust.
2682 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2684 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2686 * exceptions.c (struct catcher): Remove saved_uiout field.
2687 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2688 no longer save/resvore the global ui_out builder.
2689 (catch_exceptions_with_msg): Save/override/restore the global
2690 ui_out builder manually instead of relying on TRY_CATCH to do it.
2691 (catch_errors): Save/restore the global ui_out builder manually
2692 instead of relying on TRY_CATCH to do it.
2693 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2695 (TRY_CATCH): Adjust.
2696 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2697 the global ui_out builder manually instead of relying on TRY_CATCH
2700 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2702 * breakpoint.c (update_global_location_list): Ensure
2703 invariant 'first loc marked not duplicated and inserted,
2704 following locs marked duplicated/not inserted' is respected
2705 for multiple locations at the same address.
2706 (unduplicated_should_be_inserted) New function.
2707 (swap_insertion) New function.
2709 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2711 * stack.c (print_frame_arguments_choices): Comment typo fix.
2713 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2716 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2717 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2718 argument. Update callers.
2720 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2723 * doublest.c (convert_doublest_to_floatformat): Pass correct
2724 mantissa length to put_field.
2726 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2728 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2729 exception_print code path.
2730 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2731 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2732 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2734 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2737 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2738 Remove, merge them into ...
2739 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2740 variable args and its initialization.
2741 (struct print_args_args, print_args_stub): Remove, merge them into
2743 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2745 (do_gdb_disassembly): ... here. Remove variable args and its
2747 (print_frame): Remove variable args and its initialization, new
2748 variable gdbarch and numargs (from print_args_stub), inline here
2749 print_args_stub with a TRY_CATCH.
2750 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2752 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2753 New variable e, remove variable btargs and its initialization.
2755 2011-08-01 Tristan Gingold <gingold@adacore.com>
2757 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2759 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2761 * breakpoint.c (insert_bp_location): Document return value.
2762 (insert_breakpoint_locations): Fix documentation.
2763 (remove_breakpoints): Add documentation.
2765 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2767 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2768 argument. Update callers.
2770 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 * stack.c (print_frame_info): Comment typo fix.
2774 2011-07-29 Sterling Augustine <saugustine@google.com>
2776 * MAINTAINERS (Write After Approval): Add myself to the list.
2778 2011-07-29 Tom Tromey <tromey@redhat.com>
2780 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2781 (library_list_start_segment): Update.
2782 (library_list_start_section): Update.
2784 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2786 * varobj.c (value_get_print_value): Move hint check later into the
2787 function. Comment function. Free thevalue before reusing it.
2789 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 Pedro Alves <pedro@codesourcery.com>
2792 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2794 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2795 Assert the result kind.
2796 * value.h (value_one): Remove parameter lv.
2798 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2800 Fix crash on lval_computed values.
2801 * valops.c (value_zero): Use not_lval for lval_computed.
2803 2011-07-27 Tom Tromey <tromey@redhat.com>
2805 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2806 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2808 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2810 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2811 "ptype" by their typedefs difference.
2813 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2815 * dwarf2expr.c (ctx_no_read_reg): New function.
2816 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2817 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2818 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2819 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2821 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2823 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2824 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2826 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2827 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2828 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2829 (ctx_no_get_base_type): Move the functions here.
2830 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2831 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2832 (ctx_no_get_base_type): New declarations.
2834 2011-07-27 Tom Tromey <tromey@redhat.com>
2836 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2838 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2839 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2841 2011-07-26 Sterling Augustine <saugustine@google.com>
2843 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2845 (dump_bfd_file): Likewise.
2847 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2849 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2850 (remote_hw_watchpoint_length_limit): New variable.
2851 (_initialize_remote) add set,show cmds for this new variable.
2852 * gdb.texinfo: document these new commands.
2853 * NEWS: Mention these new commands.
2855 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2857 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2858 true for software watchpoints.
2860 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2864 2011-07-26 Tom Tromey <tromey@redhat.com>
2866 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2867 * dwarf2read.c (read_indirect_string_at_offset): New function.
2868 (read_indirect_string): Use it.
2869 (dwarf_decode_macro_bytes): New function, taken from
2870 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2871 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2872 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2874 (struct dwarf2_per_objfile) <macro>: New field.
2875 (dwarf2_elf_names): Add .debug_macro.
2876 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2877 (dwarf2_locate_sections): Handle new section.
2878 (read_file_scope): Handle DW_AT_GNU_macros.
2879 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2881 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2883 * NEWS: Mention dcache configuration.
2884 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2885 (dcache_size, dcache_line_size): New variables.
2886 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2887 (struct dcache_block): Make it expandable.
2888 (struct dcache_struct): New field.
2889 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2890 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2891 (dcache_poke_byte, dcache_print_line): Adjust.
2892 (set_dcache_size, set_dcache_line_size): New functions.
2893 (set_dcache_command, show_dcache_command): New functions.
2894 (_initialize_dcache): Add new commands.
2896 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2898 * progspace.h (struct program_space): Add solib_add_generation.
2899 * infcmd.c (post_create_inferior): Only call solib_add if not
2901 * solib.c (solib_add): Increment solib_add_generation.
2903 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2905 Fix implicit pointer offsets.
2906 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2909 2011-07-25 Tom Tromey <tromey@redhat.com>
2911 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2913 (ada_exception_sal): Make 'ops' const.
2914 (ada_decode_exception_location): Likewise.
2915 (ada_decode_assert_location): Likewise.
2916 (catch_assert_command): Update.
2917 (catch_ada_exception_command): Update.
2918 (create_ada_exception_catchpoint): Make 'ops' const.
2919 * breakpoint.c (set_raw_breakpoint_without_location)
2920 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2922 (create_internal_breakpoint): Update.
2923 (init_raw_breakpoint_without_location): Make 'ops' const.
2924 (init_raw_breakpoint, init_catchpoint)
2925 (create_fork_vfork_event_catchpoint)
2926 (create_syscall_event_catchpoint, init_breakpoint_sal)
2927 (create_breakpoint_sal, create_breakpoints_sal)
2928 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2929 * breakpoint.h (struct breakpoint) <ops>: Now const.
2930 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2933 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2935 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2937 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2939 * breakpoint.h (print_recreate_thread): Declare.
2940 (struct breakpoint): Move step_count, pass_count,
2941 number_on_target, static_trace_marker_id,
2942 static_trace_marker_id_idx ...
2943 (struct tracepoint): ... to this new struct.
2944 (get_tracepoint, get_tracepoint_by_number_on_target)
2945 (get_tracepoint_by_number): Change return type to struct
2947 * breakpoint.c (is_tracepoint_type): New, factored out from
2949 (is_tracepoint): Adjust.
2950 (print_one_breakpoint_location): Cast to struct tracepoint as
2951 necessary, and adjust.
2952 (print_recreate_catch_fork, print_recreate_catch_vfork)
2953 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2954 print_recreate_thread.
2955 (init_breakpoint_sal): New, factored out from
2956 create_breakpoint_sal.
2957 (create_breakpoint_sal): Reimplement.
2958 (create_breakpoint): Allocate a struct tracecepoint if the caller
2959 wanted a tracepoint. Use init_breakpoint_sal and
2961 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2962 (print_recreate_masked_watchpoint)
2963 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2964 (tracepoint_print_one_detail): Adjust.
2965 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2966 Dump the pass count here.
2967 (update_static_tracepoint): Adjust.
2968 (addr_string_to_sals): Adjust.
2969 (create_tracepoint_from_upload): Adjust. Change return type to
2970 struct tracepoint pointer.
2971 (trace_pass_set_count): Change parameter type to struct tracepoint
2972 pointer, and adjust.
2973 (trace_pass_command): Adjust.
2974 (get_tracepoint, get_tracepoint_by_number_on_target)
2975 (get_tracepoint_by_number): Change return type to struct
2976 tracepoint pointer, and adjust.
2977 (print_recreate_thread): New, factored out from save_breakpoints.
2978 (save_breakpoints): Don't print thread and task and passcount
2980 * remote.c (remote_download_tracepoint): Adjust.
2981 * tracepoint.c (trace_actions_command, validate_actionline)
2982 (start_tracing, tfind_1, trace_find_tracepoint_command)
2983 (trace_dump_command): Adjust.
2984 (find_matching_tracepoint): Change return type to struct
2985 tracepoint pointer, and adjust.
2986 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2987 (tfile_trace_find, tfile_fetch_registers): Adjust.
2988 * tracepoint.h (create_tracepoint_from_upload): Change return type
2989 to struct tracepoint pointer.
2990 * ada-lang.c (print_recreate_exception): Call
2991 print_recreate_thread.
2992 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2994 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2996 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2997 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2998 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2999 watchpoint_thread, watchpoint_triggered ...
3000 (struct watchpoint): ... to this new struct.
3001 (is_watchpoint): Declare.
3002 (install_breakpoint): Add new `internal' parameter.
3003 * breakpoint.c (is_watchpoint): Delete declaration.
3004 (set_breakpoint_condition): Handle watchpoints.
3005 (is_watchpoint): Make public.
3006 (watchpoint_in_thread_scope): Change parameter type to struct
3008 (watchpoint_del_at_next_stop): Change parameter type to struct
3009 watchpoint. Remove assertion. Adjust.
3010 (update_watchpoint): Ditto.
3011 (insert_breakpoints, breakpoint_init_inferior)
3012 (watchpoints_triggered, watchpoint_check)
3013 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3014 (bpstat_stop_status, print_one_breakpoint_location)
3015 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3016 to struct watchpoint as necessary, and adjust.
3017 (install_breakpoint): Add `internal' argument. If true, don't
3018 mention the new breakpoint. Use set_breakpoint_number.
3019 (create_fork_vfork_event_catchpoint)
3020 (create_syscall_event_catchpoint): Adjust.
3021 (dtor_watchpoint): New.
3022 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3023 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3024 (print_it_watchpoint, print_mention_watchpoint)
3025 (print_recreate_watchpoint, insert_masked_watchpoint)
3026 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3027 (print_one_detail_masked_watchpoint)
3028 (print_mention_masked_watchpoint)
3029 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3030 necessary, and adjust.
3031 (watch_command_1): Allocate and initialize a struct watchpoint
3032 instead of a struct breakpoint. Use install_breakpoint.
3033 (catch_exec_command_1): Adjust.
3034 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3036 (delete_breakpoint, enable_breakpoint_disp)
3037 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3038 as necessary, and adjust.
3039 (initialize_breakpoint_ops): Install dtor_watchpoint as
3040 watchpoints' dtor method.
3041 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3042 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3043 to struct watchpoint as necessary, and adjust.
3045 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3047 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3048 the the base class ops table.
3049 (catch_exception_breakpoint_ops)
3050 (catch_exception_unhandled_breakpoint_ops)
3051 (catch_assert_breakpoint_ops): Don't statically initialize.
3052 (initialize_ada_catchpoint_ops): New.
3053 (_initialize_ada_language): Call it.
3054 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3055 (bkpt_breakpoint_ops): Forward declare.
3056 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3057 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3058 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3059 (masked_watchpoint_breakpoint_ops)
3060 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3061 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3062 base class ops table.
3063 (null_re_set, null_check_status, null_works_in_software_mode)
3064 (null_resources_needed, null_print_one_detail): Delete.
3065 (bkpt_dtor): Rename to ...
3066 (base_breakpoint_dtor): ... this. Make static.
3067 (bkpt_allocate_location): Rename to ...
3068 (base_breakpoint_allocate_location): ... this. Make static.
3069 (base_breakpoint_re_set): New.
3070 (internal_error_pure_virtual_called): New.
3071 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3072 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3073 (base_breakpoint_works_in_software_mode)
3074 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3075 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3076 (base_breakpoint_print_recreate): New functions.
3077 (base_breakpoint_ops): New global.
3078 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3079 (bkpt_breakpoint_hit): Make static.
3080 (bkpt_check_status): Delete.
3081 (bkpt_resources_needed): Make static.
3082 (bkpt_works_in_software_mode): Delete.
3083 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3085 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3086 (momentary_breakpoint_ops): Don't statically initialize.
3087 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3089 (tracepoint_insert_location, tracepoint_remove_location)
3090 (tracepoint_check_status, tracepoint_works_in_software_mode)
3091 (tracepoint_print_it): Delete.
3092 (tracepoint_breakpoint_ops): Don't statically initialize.
3093 (initialize_breakpoint_ops): New.
3094 (_initialize_breakpoint): Call it.
3095 * breakpoint.h (null_re_set, null_works_in_software_mode)
3096 (null_resources_needed, null_check_status, null_print_one_detail):
3097 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3098 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3099 (bkpt_check_status, bkpt_resources_needed)
3100 (bkpt_works_in_software_mode, bkpt_print_it)
3101 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3102 Delete declarations.
3103 (initialize_breakpoint_ops): Declare.
3105 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3107 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3108 (momentary_bkpt_print_it): Simplify.
3110 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3112 Split internal, momentary and user breakpoints breakpoint_ops
3115 * breakpoint.c (internal_breakpoint_ops)
3116 (momentary_breakpoint_ops): Forward declare.
3117 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3118 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3119 (create_overlay_event_breakpoint)
3120 (create_std_terminate_master_breakpoint)
3121 (create_exception_master_breakpoint): Create breakpoints with
3122 internal_breakpoint_ops vtable.
3123 (set_longjmp_breakpoint): Create momentary breakpoints with
3124 momentary_breakpoint_ops vtable, using
3125 momentary_breakpoint_from_master.
3126 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3127 (create_solib_event_breakpoint): Create breakpoints with
3128 internal_breakpoint_ops vtable.
3129 (set_momentary_breakpoint): Create breakpoints with
3130 momentary_breakpoint_ops vtable.
3131 (momentary_breakpoint_from_master): New, factored out from
3132 clone_momentary_breakpoint.
3133 (clone_momentary_breakpoint): Adjust.
3134 (watch_command_1): Create scope breakpoints with
3135 momentary_breakpoint_ops vtable.
3136 (bkpt_re_set): Remove handling of internal and momentary
3138 (bkpt_print_mention, bkpt_print_recreate): New.
3139 (bkpt_breakpoint_ops): Adjust.
3140 (internal_bkpt_re_set, internal_bkpt_check_status)
3141 (internal_bkpt_print_it, internal_bkpt_print_mention)
3142 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3143 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3144 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3145 (momentary_bkpt_print_recreate): New.
3146 (momentary_breakpoint_ops): New.
3148 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3150 Implement most breakpoint_ops methods for all breakpoint types,
3151 and move the default handlings to the proper callbacks.
3153 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3154 works_in_software_mode method.
3155 (insert_bp_location): Go through breakpoint_ops->insert_location
3156 for software and hardware watchpoints.
3157 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3159 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3160 for software and hardware watchpoints.
3161 (print_it_typical): Delete.
3162 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3164 (watchpoint_check): Adjust comment.
3165 (bpstat_check_location): Simply always call the breakpoint's
3166 breakpoint_hit method.
3167 (bpstat_stop_status): Always call the breakpoint's check_status
3168 method. Remove special cases for watchpoints and internal event
3169 breakpoints from here (moved to the check_status implementations).
3170 (print_one_breakpoint_location): Assume b->ops is never NULL.
3171 Remove static tracepoint marker id printing from here (moved to
3172 the print_one_detail callback implementation of tracepoints).
3173 (init_bp_location): Assert OPS is never NULL.
3174 (allocate_bp_location): Always call the breakpoint's
3175 allocate_location method, and remove the default code from here.
3176 (free_bp_location): Always call the location's dtor method, and
3177 remove the default code from here.
3178 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3179 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3180 parameter. Pass it down.
3181 (set_raw_breakpoint): Ditto.
3182 (print_it_catch_fork): Adjust to take a bpstat as argument.
3183 (catch_fork_breakpoint_ops): Install methods.
3184 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3185 (catch_vfork_breakpoint_ops): Install methods.
3186 (dtor_catch_syscall): Call the base dtor.
3187 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3188 (catch_syscall_breakpoint_ops): Install methods.
3189 (dtor_catch_exec): Call the base dtor.
3190 (print_it_catch_exec): Adjust to take a bpstat as argument.
3191 (catch_exec_breakpoint_ops): Install methods.
3192 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3193 the breakpoint's resources_needed method, and remove the default
3195 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3197 (clone_momentary_breakpoint): Clone the original's ops.
3198 (mention): Always call the breakpoint's print_mention method, and
3199 remove the default code from here.
3200 (create_breakpoint_sal): Adjust to pass the ops to
3201 set_raw_breakpoint rather than setting it manually.
3202 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3203 ops to set_raw_breakpoint_without_location rather than setting it
3205 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3206 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3207 (ranged_breakpoint_ops): Install methods.
3208 (break_range_command): Adjust to pass the ops to
3209 set_raw_breakpoint rather than setting it manually.
3210 (re_set_watchpoint, breakpoint_hit_watchpoint)
3211 (check_status_watchpoint, resources_needed_watchpoint)
3212 (works_in_software_mode_watchpoint, print_it_watchpoint)
3213 (print_mention_watchpoint, print_recreate_watchpoint): New
3215 (watchpoint_breakpoint_ops): Install new methods.
3216 (print_it_masked_watchpoint): New function.
3217 (masked_watchpoint_breakpoint_ops): Install new methods.
3218 (watch_command_1): Adjust to pass the right breakpoint_ops to
3219 set_raw_breakpoint_without_location rather than setting it
3220 manually later. Record the current pspace.
3221 (print_it_exception_catchpoint): Adjust to take a bpstat as
3223 (gnu_v3_exception_catchpoint_ops): Install new methods.
3224 (say_where): New function.
3225 (null_re_set, null_check_status, null_works_in_software_mode)
3226 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3228 (bp_location_ops): New global.
3229 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3230 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3231 (bkpt_check_status, bkpt_resources_needed)
3232 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3233 (bkpt_print_recreate): New functions.
3234 (bkpt_breakpoint_ops): New global.
3235 (tracepoint_re_set, tracepoint_insert_location)
3236 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3237 (tracepoint_check_status, tracepoint_works_in_software_mode)
3238 (tracepoint_print_it, tracepoint_print_one_detail)
3239 (tracepoint_print_mention, tracepoint_print_recreate): New
3241 (tracepoint_breakpoint_ops): New global.
3242 (delete_breakpoint): Always call the breakpoint's dtor method, and
3243 remove the default handling from here.
3244 (breakpoint_re_set_default): Make static.
3245 (breakpoint_re_set_one): Always call the breakpoints re_set
3246 method, and remove the default handling from here.
3247 (trace_command, ftrace_command, strace_command)
3248 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3249 to create_breakpoint.
3250 (save_breakpoints): Always call the breakpoint's print_recreate
3251 method, and remove the default handling from here.
3253 * ada-lang.c (dtor_exception): Call the base dtor.
3254 (re_set_exception): Call the base method.
3255 (print_it_exception, print_it_catch_exception): Adjust to take a
3257 (catch_exception_breakpoint_ops): Install methods.
3258 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3260 (catch_exception_unhandled_breakpoint_ops): Install methods.
3261 (print_it_catch_assert): Adjust to take a bpstat as argument.
3262 (catch_assert_breakpoint_ops): Install methods.
3264 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3265 to take a bpstat as argument.
3266 (enum print_stop_action): Add describing comments to each enum
3268 (breakpoint_re_set_default): Delete declaration.
3269 (null_re_set, null_works_in_software_mode, null_resources_needed)
3270 (null_check_status, null_print_one_detail): Declare.
3271 (bkpt_breakpoint_ops): Declare.
3272 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3273 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3274 (bkpt_check_status, bkpt_resources_needed)
3275 (bkpt_works_in_software_mode, bkpt_print_it)
3276 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3279 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3280 bkpt_breakpoint_ops.
3281 * python/py-breakpoint.c (bppy_init): Ditto.
3283 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3285 * MAINTAINERS (Write After Approval): Add myself to the list.
3287 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3289 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3291 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3293 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3294 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3295 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3297 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3298 (struct i386_debug_reg_state): New.
3299 (i386_init_dregs): New.
3301 (i386_cleanup_dregs): Use i386_init_dregs.
3302 (i386_show_dr): Add state parameter and adjust.
3303 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3305 (i386_remove_aligned_watchpoint): Likewise.
3306 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3307 (i386_update_inferior_debug_regs): New.
3308 (i386_insert_watchpoint): Work on a local mirror of the debug
3309 registers, and only update the inferior on success.
3310 (i386_remove_watchpoint): Ditto.
3311 (i386_region_ok_for_watchpoint): Adjust.
3312 (i386_stopped_data_address): Adjust.
3313 (i386_insert_hw_breakpoint): Adjust.
3314 (i386_remove_hw_breakpoint): Adjust.
3316 2011-07-22 Tom Tromey <tromey@redhat.com>
3318 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3319 from amd64_pseudo_register_read. Change arguments. Call
3320 mark_value_bytes_unavailable when needed.
3321 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3322 set_gdbarch_pseudo_register_read.
3323 * sentinel-frame.c (sentinel_frame_prev_register): Use
3324 regcache_cooked_read_value.
3325 * regcache.h (regcache_cooked_read_value): Declare.
3326 * regcache.c (regcache_cooked_read_value): New function.
3327 (regcache_cooked_read): Call
3328 gdbarch_pseudo_register_read_value if available.
3329 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3330 (i386_pseudo_register_read): Remove.
3331 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3332 i386_pseudo_register_read. Change arguments. Call
3333 mark_value_bytes_unavailable when needed.
3334 (i386_pseudo_register_read_value): New function.
3335 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3336 not set_gdbarch_pseudo_register_read.
3337 * gdbarch.sh (pseudo_register_read_value): New method.
3338 * gdbarch.c, gdbarch.h: Rebuild.
3339 * findvar.c (value_from_register): Call get_frame_register_value.
3341 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3343 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3345 (display_gdb_prompt): Likewise.
3346 (change_annotation_level): Likewise.
3347 (push_prompt): Likewise.
3348 (pop_prompt): Likewise.
3349 (handle_stop_sig): Use get_prompt with a level.
3350 * top.c (command_loop): Use get_prompt with a level.
3351 (set_async_annotation_level): Use set_prompt with a level.
3352 (get_prefix): New function.
3353 (set_prefix): Ditto.
3354 (set_suffix): Ditto.
3355 (get_suffix): Ditto.
3356 (get_prompt): Accept a level argument.
3357 (set_prompt): Accept a level argument. Free old prompts. Set
3358 new_async_prompt if level is 0.
3359 (init_main): Use set_prompt with a level. Do not set
3361 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3362 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3363 Modify set_prompt, get_prompt to account for levels.
3364 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3366 * python/python.c (before_prompt_hook): Use set_prompt.
3368 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3370 * defs.h: Add guard against inclusion in gdbserver.
3371 (struct ptid, ptid_t): Move to common/ptid.h.
3372 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3373 xsnprintf, internal_error): Move to common/common-utils.h.
3375 * gdb_assert.h: Move into common/ sub-directory.
3376 * gdb_locale.h: Ditto.
3377 * gdb_dirent.h: Ditto.
3378 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3379 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3380 Move into common/ptid.h.
3381 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3382 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3383 Change nomem to malloc_failure.
3384 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3385 * utils.c (nomem): Rename to malloc_failure.
3386 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3387 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3388 (gdb_buildargv): Change nomem to malloc_failure.
3389 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3390 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3391 ptid_is_pid): Move into common/ptid.c.
3392 (initialize_infrun): Delete initialization of null_ptid and
3394 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3395 linux_common_xfer_osdata.
3396 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3397 common/ptid.c and common/buffer.c.
3398 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3399 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3400 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3401 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3403 * common/gdb_assert.h: New.
3404 * common/gdb_dirent.h: New.
3405 * common/gdb_locale.h: New.
3406 * common/buffer.c: New.
3407 * common/buffer.h: New.
3408 * common/ptid.c: New.
3409 * common/ptid.h: New.
3410 * common/xml-utils.c: New.
3411 * common/xml-utils.h: New.
3412 * common/common-utils.c: New.
3413 * common/common-utils.h: New.
3414 * common/linux-osdata.c: New.
3415 * common/linux-osdata.h: New.
3416 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3417 * config/arm/linux.mh (NATDEPFILES): Ditto.
3418 * config/i386/linux.mh (NATDEPFILES): Ditto.
3419 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3420 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3421 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3422 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3423 * config/mips/linux.mh (NATDEPFILES): Ditto.
3424 * config/pa/linux.mh (NATDEPFILES): Ditto.
3425 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3426 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3427 * config/s390/s390.mh (NATDEPFILES): Ditto.
3428 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3429 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3430 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3432 2011-07-21 Matt Rice <ratmice@gmail.com>
3434 * NEWS: Add info macros and info definitions commands.
3436 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3438 * NEWS: Document Python prompt substitution hook.
3440 2011-07-18 Matt Rice <ratmice@gmail.com>
3443 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3444 * macrotab.c (foreach_macro): Ditto.
3445 (foreach_macro_in_scope): Ditto.
3446 * macrocmd.c (print_macro_callback): New function.
3447 (info_macro_command): Move some code to print_macro_definition.
3448 (print_macro_definition): New function.
3449 (print_one_macro): Add new arguments to callback.
3450 (info_definitions_command): New function.
3451 (info_macros_command): Ditto.
3452 (_initialize_macrocmd): Add info macros and info definitions commands.
3453 * symtab.c (add_macro_name): Add new arguments to callback.
3455 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3456 Tom Tromey <tromey@redhat.com>
3458 * top.c (set_prompt): Rewrite to free previous prompt, free
3459 asynch_new_prompt and set both on new prompts.
3460 * event-top.c (display_gdb_prompt): Add prompt substitution
3462 * python/python.c (before_prompt_hook): New function.
3464 2011-07-20 Matt Rice <ratmice@gmail.com>
3466 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3467 arguments to store_unsigned_integer.
3469 2011-07-20 Tom Tromey <tromey@redhat.com>
3471 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3472 in some declaration-only cases.
3474 2011-07-18 Tom Tromey <tromey@redhat.com>
3477 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3478 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3479 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3480 <debug_type_section>: New field.
3481 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3482 (load_cu): Use appropriate section.
3483 (create_signatured_type_table_from_index): Add 'section'
3485 (dwarf2_read_index): Only allow a single .debug_types section.
3486 (dw2_get_file_names): Use appropriate section.
3487 (read_type_comp_unit_head): Add 'section' argument.
3488 (create_debug_types_hash_table): Loop over all .debug_types
3490 (init_cu_die_reader): Use appropriate section.
3491 (process_psymtab_comp_unit, load_partial_comp_unit)
3492 (load_full_comp_unit, read_die_and_children, find_partial_die)
3493 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3494 (lookup_signatured_type_at_offset): Add 'section' argument.
3495 (read_signatured_type_at_offset): Add 'sect' argument.
3496 (read_signatured_type): Use appropriate section.
3497 (set_die_type, get_die_type_at_offset): Update.
3498 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3500 (write_psymtabs_to_index): Don't allow index with more than one
3501 .debug_types section.
3503 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 Fix crash if referenced CU is aged out.
3506 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3507 xfree of block.data.
3508 (indirect_pieced_value): New variable back_to, use to for xfree of
3510 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3512 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3513 (load_cu): New function from ...
3514 (dw2_do_instantiate_symtab): ... the code here ...
3515 (process_full_comp_unit): ... and here.
3516 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3519 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3524 2011-07-19 Gary Benson <gbenson@redhat.com>
3526 * infrun.c (struct execution_control_state): New member
3527 stop_func_filled_in.
3528 (clear_stop_func, fill_in_stop_func): New functions.
3529 (handle_inferior_event): Call clear_stop_func rather than
3530 manipulating the execution control state directly.
3531 Call fill_in_stop_func lazily as required rather than
3532 directly calling find_pc_partial_function in all cases.
3534 2011-07-18 Tom Tromey <tromey@redhat.com>
3536 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3537 checking for variable-sized array.
3539 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3541 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3542 of supported languages.
3543 * varobj.c: Add top definitions and basic implementation of the
3544 following callbacks: ada_number_of_children, ada_name_of_variable,
3545 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3546 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3547 (languages): Register Ada-specific callbacks.
3548 (variable_language): Add the Ada case in the language setter switch.
3550 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3554 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3557 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3558 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3559 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3560 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3561 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3562 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3563 (struct dwarf_expr_context_funcs): New, move here methods from ...
3564 (struct dwarf_expr_context): ... here. New fields funcs.
3565 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3566 (dwarf_expr_ctx_funcs): New.
3567 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3568 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3569 (needs_frame_ctx_funcs): New.
3570 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3572 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3574 * MAINTAINERS (Write After Approval): Add myself to the list.
3576 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3578 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3579 that CIE pointer of an FDE really points to a CIE .
3581 2011-07-15 Hui Zhu <teawater@gmail.com>
3583 * remote.c (remote_get_trace_status): Add comments.
3585 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3587 Code cleanup - constify struct lval_funcs.
3588 * dwarf2loc.c (pieced_value_funcs): Make it const.
3589 * infrun.c (siginfo_value_funcs): Likewise.
3590 * opencl-lang.c (opencl_value_funcs): Likewise.
3591 * valops.c (value_assign, value_ind): Make the funcs variable const.
3592 * value.c (struct value): Make location.computed.funcs target const.
3593 Rearrange the comments.
3594 (allocate_computed_value): Make the funcs parameter target const.
3595 (value_computed_funcs): Return the funcs target const.
3596 (value_free, value_copy, set_value_component_location): Make the funcs
3598 * value.h (allocate_computed_value): Make the funcs parameter target
3600 (value_computed_funcs): Return the funcs target const.
3601 * windows-tdep.c (tlb_value_funcs): Make it const.
3603 2011-07-14 Hui Zhu <teawater@gmail.com>
3605 * remote.c (remote_get_trace_status): Initialize p.
3607 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3610 * remote.c (remote_get_trace_status): New variable ex. Put
3611 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3613 2011-07-13 Tom Tromey <tromey@redhat.com>
3615 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3616 value_from_contents for final conversion.
3618 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3622 Indent prototypes so they do not get into tags.
3624 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3626 Code cleanup making also optimized out values lazy.
3627 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3628 allocate_optimized_out_value. Twice.
3629 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3630 * findvar.c (read_var_value): Likewise.
3631 * value.c (allocate_optimized_out_value): New function.
3632 * value.h (allocate_optimized_out_value): New declaration.
3634 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3636 Fix occasional crash of CTRL-C during DWARF read in.
3637 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3639 2011-07-11 Tom Tromey <tromey@redhat.com>
3641 * regcache.c (struct regcache_descr): Fix typo.
3642 * i387-tdep.c (i387_supply_xsave): Fix typo.
3644 2011-07-11 Tom Tromey <tromey@redhat.com>
3646 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3647 (read_file_scope, read_type_unit_scope): Use it.
3649 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3651 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3654 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3657 * python/python.c: Set gdbpy_should_print_stack default to off.
3658 (set_python): Deprecate maint set python print-stack to
3660 (_initialize_python): Deprecate maint set/show python print-stack.
3661 Add new prefix command, python. Add new setting, print-backtrace.
3662 * NEWS: Document set python print-stack. Document default change.
3664 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3666 * python/py-inferior.c (infpy_dealloc): New function.
3667 (inferior_to_inferior_object): Return a new object, or a
3668 new reference to the existing object.
3669 (find_thread_object): Cleanup references to inferior.
3670 (delete_thread_object): Ditto.
3671 * python/py-infthread.c (create_thread_object): Do not increment
3672 inferior reference count.
3674 2011-07-08 Tom Tromey <tromey@redhat.com>
3676 * dwarf2loc.c (locexpr_regname): New function.
3677 (locexpr_describe_location_piece): Use it.
3678 (disassemble_dwarf_expression): Add per_cu argument. Use
3680 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3681 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3683 (locexpr_describe_location_1): Add per_cu argument.
3684 (locexpr_describe_location): Update.
3685 (loclist_describe_location): Update.
3687 2011-07-08 Tom Tromey <tromey@redhat.com>
3689 * dwarf2expr.c (execute_stack_op): Add QUIT.
3691 2011-07-07 Hui Zhu <teawater@gmail.com>
3694 2011-07-06 Hui Zhu <teawater@gmail.com>
3695 * remote.c (remote_start_remote): Add TRY_CATCH for
3696 remote_get_trace_status.
3697 * tracepoint.c (disconnect_tracing): Ditto.
3699 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3701 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3702 variables as signed, not unsigned.
3704 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3706 * jit.c (jit_inferior_init): Reformat forward declaration.
3708 2011-07-06 Matt Rice <ratmice@gmail.com>
3710 * MAINTAINERS (Write After Approval): Add myself to the list.
3712 2011-07-06 Hui Zhu <teawater@gmail.com>
3714 * remote.c (remote_start_remote): Add TRY_CATCH for
3715 remote_get_trace_status.
3716 * tracepoint.c (disconnect_tracing): Ditto.
3718 2011-07-05 Tom Tromey <tromey@redhat.com>
3720 * symtab.c (operator_chars): Now static.
3721 * linespec.c (operator_chars): Don't declare.
3723 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3725 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3727 2011-07-05 Tom Tromey <tromey@redhat.com>
3729 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3730 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3731 (TYPE_CPLUS_REALLY_JAVA): New macro.
3732 * dwarf2read.c (process_structure_scope): Set
3733 TYPE_CPLUS_REALLY_JAVA.
3735 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3737 * ada-lang.c: Fix typos.
3738 * amd64-tdep.c: Likewise.
3739 * breakpoint.c: Likewise.
3740 * cli/cli-decode.c: Likewise.
3741 * findcmd.c: Likewise.
3742 * inline-frame.c: Likewise.
3743 * mi/mi-main.c: Likewise.
3744 * minsyms.c: Likewise.
3745 * monitor.c: Likewise.
3746 * monitor.h: Likewise.
3747 * prologue-value.c: Likewise.
3748 * reverse.c: Likewise.
3749 * s390-tdep.c: Likewise.
3751 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3753 * jit.c (jit_inferior_init): Forward declare.
3754 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3756 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3758 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3760 2011-07-04 Tristan Gingold <gingold@adacore.com>
3762 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3763 (tcb_fieldno): Add activation_link field.
3764 (get_known_tasks_addr): Moved and rewritten.
3765 (get_tcb_types_info): Set activation_link field.
3766 (read_known_tasks_array): Add parameter. Rewritten.
3767 (read_known_tasks_list): New function.
3768 (read_known_tasks): New function.
3769 (ada_build_task_list): Call read_known_tasks instead of
3770 read_known_tasks_array.
3771 * ravenscar-thread.c: Add first_task_name constant.
3772 (has_ravenscar_runtime): Check for task list too.
3774 2011-07-04 Tristan Gingold <gingold@adacore.com>
3776 * ada-tasks.c: Renames fieldno to actb_fieldno.
3777 (ada_get_task_number): Indentation.
3778 (get_tcb_types_info): Remove all parameters. Write directly
3780 (ptid_from_atcb_common): Adjust.
3781 (read_atcb): Adjust.
3783 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3785 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3787 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3789 * ui-out.c (ui_out_field_core_addr): Mention that the function
3790 description is in the header file.
3791 * ui-out.h (ui_out_field_core_addr): Document function.
3793 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3795 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3796 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3798 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3800 * symtab.c (expand_line_sal): Remove empty line.
3802 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3804 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3805 same way as ELFOSABI_NONE.
3806 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3808 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3810 * breakpoint.c: Fix typos in comments.
3811 * linespec.c: Likewise.
3812 * symtab.c: Likewise.
3814 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3816 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3817 section in separate object files.
3819 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3821 Fix false GCC warning.
3822 * linespec.c (decode_line_1): Initialize values.
3824 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3826 * linespec.c (find_method): Accept the function type automatically only
3827 if it was specified with parameter types.
3829 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3831 Stop on first linespec terminator instead of eating what we can.
3832 * linespec.c (is_linespec_boundary): New function.
3833 (name_end): Remove function.
3834 (keep_name_info): New parameter on_boundary, replace the body.
3835 (decode_line_1): Provide the parameter to keep_name_info.
3836 (decode_compound): Likewise. Drop the trailing java return type
3839 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3841 Fall back linespec to minimal symbols.
3842 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3843 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3844 (find_method, symbol_found): Change error to cplusplus_error.
3846 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3848 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3850 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3851 Tom Tromey <tromey@redhat.com>
3853 * dwarf2read.c (check_physname): New variable.
3854 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3855 (show_check_physname): New function.
3856 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3858 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3860 * machoread.c (macho_symfile_read): Delete OBE comment.
3862 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3864 * machoread.c (struct macho_oso_data): Delete.
3865 (current_oso): Delete.
3866 (macho_relocate_common_syms): New function, mostly extracted
3868 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3869 Remove code that sets and unset current_oso.
3870 (macho_symfile_relocate): Delete handling of common symbols,
3871 now moved to macho_relocate_common_syms.
3873 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3875 * darwin-nat.c (darwin_ptrace): Add documentation.
3876 Set errno to zero before calling ptrace. If ptrace returns
3877 -1 and errno is zero, then change then return zero.
3878 (darwin_kill_inferior): Issue a warning instead of triggering
3879 a failed assertion when the PT_KILL ptrace operations returned
3882 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3884 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3885 only when inf->private->no_ptrace.
3887 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3889 * ada-lang.c (print_it_exception): Print temporary catchpoints
3890 as "Temporary catchpoint".
3891 (print_mention_exception): Likewise.
3893 2011-07-01 Tom Tromey <tromey@redhat.com>
3895 * jv-lang.c (java_language_defn): Use java_printchar,
3897 (java_get_encoding): New function.
3898 (java_emit_char): Use generic_emit_char.
3899 (java_printchar): New function.
3900 (java_printstr): Likewise.
3902 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3904 * ada-typeprint.c (print_record_type): If unable to decode
3905 the name of the parent type, use the encoded name.
3907 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3909 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3910 pointer to constrained packed array type output.
3911 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3912 packed array output.
3914 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3916 * ada-typeprint.c (print_array_type): removed if condition on show
3917 being negative for bounds printing.
3919 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3921 * ada-lang.c (ada_identical_enum_types_p): New function.
3922 (symbols_are_identical_enums): New function.
3923 (remove_extra_symbols): Do nothing if NSYMS < 2.
3924 Use symbols_are_identical_enums.
3926 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3928 * ada-valprint.c (ada_value_print): Handle typedefs.
3930 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3932 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3934 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3936 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3937 (decode_constrained_packed_array): Likewise.
3938 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3940 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3942 * ada-exp.y (convert_char_literal): Handle typedef types.
3944 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3946 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3948 2011-06-30 Tom Tromey <tromey@redhat.com>
3950 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3951 * valops.c (find_overload_match): Call do_cleanups on early exit
3953 * solib.c (solib_find): Call do_cleanups on early exit path.
3955 2011-06-30 Tom Tromey <tromey@redhat.com>
3957 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3958 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3959 return paths. Defer final do_cleanups until last return.
3960 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3963 2011-06-30 Tom Tromey <tromey@redhat.com>
3965 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3967 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3969 * MAINTAINERS (Write After Approval): Add myself to the list.
3971 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3973 Disable epilogue unwinders on recent GCCs.
3974 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3975 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3976 * dwarf2read.c (process_full_comp_unit): Initialize
3977 EPILOGUE_UNWIND_VALID.
3978 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3979 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3980 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3982 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3984 Code cleanup - reformatting.
3985 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3986 (producer_is_gcc_ge_4): ... here, change the return value.
3987 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3990 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 Fix non-only rename list for Fortran modules import.
3993 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3994 cp_add_using_directive caller.
3995 (cp_add_using_directive): New parameter excludes, describe it. New
3996 variables ix and param. Compare if also excludes match. Allocate NEW
3997 with variable size, initialize EXCLUDES there.
3998 (cp_lookup_symbol_imports): New variable excludep, test
3999 current->EXCLUDES with it.
4000 * cp-support.h: Include vec.h.
4001 (struct using_direct): New field excludes, describe it.
4002 (DEF_VEC_P (const_char_ptr)): New.
4003 (cp_add_using_directive): New parameter excludes.
4004 * defs.h (const_char_ptr): New typedef.
4005 * dwarf2read.c (read_import_statement): New variables child_die,
4006 excludes and cleanups, read in excludes.
4007 (read_namespace): Adjust the cp_add_using_directive caller.
4009 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4012 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4013 negative comparisons.
4015 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4017 * mi/mi-main.c (mi_cmd_list_features): Emit
4018 breakpoint-notifications.
4020 2011-06-29 Tom Tromey <tromey@redhat.com>
4023 * valprint.h (generic_emit_char, generic_printstr): Declare.
4024 * valprint.c (wchar_printable, append_string_as_wide)
4025 (print_wchar): Move from c-lang.c.
4026 (generic_emit_char): New function; mostly taken from c_emit_char.
4027 (generic_printstr): New function; mostly taken from c_printstr.
4028 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4029 represented as arrays.
4030 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4032 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4033 identically to TYPE_CODE_INT.
4034 * f-lang.c (f_get_encoding): New function.
4035 (f_emit_char): Use generic_emit_char.
4036 (f_printchar): Replace comment.
4037 (f_printstr): Use generic_printstr.
4038 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4039 "character" types specially.
4040 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4042 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4044 (c_emit_char): Call generic_emit_char.
4045 (c_printstr): Call generic_printstr.
4047 2011-06-29 Gary Benson <gbenson@redhat.com>
4049 * breakpoint.c (bpstat_what): Removed duplicated case.
4051 2011-06-28 Tom Tromey <tromey@redhat.com>
4053 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4055 2011-06-27 Tom Tromey <tromey@redhat.com>
4057 * valops.c (find_overload_match): Call do_cleanups before early
4059 * top.c (execute_command): Call do_cleanups before early return.
4060 (command_loop): Likewise.
4061 * stack.c (backtrace_command): Make a null cleanup early. Don't
4062 conditionally call do_cleanups.
4063 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4065 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4066 so cleanups are always run.
4067 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4068 * findcmd.c (parse_find_args): Call do_cleanups on early return
4070 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4071 Don't conditionally call do_cleanups.
4072 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4075 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4077 * MAINTAINERS (Write After Approval): Use default email address.
4079 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4081 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4083 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4085 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4086 saved_regs_mask and copied_regs_mask fields.
4087 (sparc_record_save_insn): New prototype.
4088 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4089 (sparc_record_save_insn): New function.
4090 (sparc_analyze_prologue): Add head comment. Recognize store insns
4091 of call-saved registers. Use OFFSET consistently. Recognize flat
4092 frames and cache their settings.
4093 (sparc32_skip_prologue): Handle flat frames.
4094 (sparc_frame_cache): Add frame_offset to the base address.
4095 (sparc32_frame_cache): Adjust to new frame description.
4096 (sparc32_frame_prev_register): Likewise.
4097 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4098 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4099 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4100 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4101 frame by calling sparc_record_save_insn.
4102 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4103 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4104 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4106 2011-06-27 Tristan Gingold <gingold@adacore.com>
4108 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4109 field by map_addr and map_len.
4110 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4111 (munmap_section_buffer): Likewise.
4113 2011-06-24 Tom Tromey <tromey@redhat.com>
4115 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4116 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4117 * python/python.c (gdbpy_parameter): Make 'arg' const.
4118 (execute_gdb_command): Likewise.
4119 (gdbpy_decode_line): Likewise. Copy it.
4120 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4121 (gdbpy_write): Make 'arg' const.
4122 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4124 (gdbpy_lookup_type): Likewise.
4125 * python/py-prettyprint.c (print_children): Make 'name' const.
4126 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4127 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4129 * python/py-function.c (fnpy_init): Make 'name' const.
4130 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4131 (gdbpy_string_to_argv): Make 'input' const.
4132 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4134 * gdbtypes.h (lookup_typename): Update.
4135 * gdbtypes.c (lookup_typename): Make 'name' const.
4136 (lookup_struct): Likewise.
4137 (lookup_union): Likewise.
4138 (lookup_enum): Likewise.
4140 2011-06-24 Tom Tromey <tromey@redhat.com>
4142 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4143 gdb_thread_db.h. Move all common/ entries to be together.
4144 (TAGS): Don't depend on DEPFILES.
4146 2011-06-23 Yao Qi <yao@codesourcery.com>
4148 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4149 * remote.c (remote_start_remote): ... here.
4150 * monitor.c (monitor_open): ... here.
4152 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4154 * gdbtypes.c (append_composite_type_field_aligned): Fix
4155 calculation of bit position based on alignment.
4157 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4159 * breakpoint.c (bpstat_stop_status): Call the check_status
4160 breakpoint_ops method.
4161 (print_one_breakpoint_location): Also print the condition for Ada
4162 exception catchpoints.
4163 (allocate_bp_location): New, factored out from
4164 allocate_bp_location.
4165 (allocate_bp_location): Adjust. Call the owner breakpoint's
4166 allocate_location method, if there is one.
4167 (free_bp_location): Call the locations's dtor method, if there is
4169 (init_raw_breakpoint_without_location): New breakpoint_ops
4171 (set_raw_breakpoint_without_location): Adjust.
4172 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4173 (set_raw_breakpoint): Adjust.
4174 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4175 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4176 re_set and check_status methods.
4177 (init_catchpoint): Don't memset, initialize thread, addr_string
4178 and enable_state. Pass the ops down to init_raw_breakpoint.
4179 (install_catchpoint): Rename to ...
4180 (install_breakpoint): ... this, and make extern.
4181 (create_fork_vfork_event_catchpoint): Adjust.
4182 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4183 re_set and check_status methods.
4184 (create_syscall_event_catchpoint): Adjust.
4185 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4186 (masked_watchpoint_breakpoint_ops): Install NULL
4187 allocate_location, re_set and check_status methods.
4188 (catch_exec_command_1): Adjust.
4189 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4190 re_set and check_status methods.
4191 (create_ada_exception_breakpoint): Rename to ...
4192 (init_ada_exception_breakpoint): ... this. Add a struct
4193 breakpoint parameter, and delete the exp_string, cond_string and
4194 cond parameters. Use init_raw_breakpoint, and don't install or
4195 mention the breakpoint yet. Don't clear breakpoint fields that
4196 init_raw_breakpoint already clears.
4197 (re_set_breakpoint): Delete, split into ...
4198 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4200 (breakpoint_re_set_one): Call the breakpoint's
4201 breakpoint_ops->re_set implementation, if there's one. Adjust.
4202 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4203 (struct bp_location_ops): New type.
4204 (struct bp_location): New field `ops'.
4205 (struct breakpoint_ops): New `allocate_location', `re_set' and
4206 `check_status' fields. Make `breakpoint_hit''s description match
4208 (init_bp_location): Declare.
4209 (breakpoint_re_set_default): Declare.
4210 (create_ada_exception_breakpoint): Rename to ...
4211 (init_ada_exception_breakpoint): ... this. Add a struct
4212 breakpoint parameter, and delete the exp_string, cond_string and
4214 (install_breakpoint): Declare.
4215 * ada-lang.c: Include exceptions.h.
4216 <Ada exceptions description>: Update.
4217 (struct ada_catchpoint_location): New type.
4218 (ada_catchpoint_location_dtor): New function.
4219 (ada_catchpoint_location_ops): New global.
4220 (ada_catchpoint): New type.
4221 (create_excep_cond_exprs): New function.
4222 (dtor_exception, allocate_location_exception, re_set_exception)
4223 (should_stop_exception, check_status_exception): New functions.
4224 (print_one_exception, print_mention_exception)
4225 (print_recreate_exception): Adjust.
4226 (dtor_catch_exception, allocate_location_catch_exception)
4227 (re_set_catch_exception, check_status_catch_exception): New
4229 (catch_exception_breakpoint_ops): Install them.
4230 (dtor_catch_exception_unhandled)
4231 (allocate_location_catch_exception_unhandled)
4232 (re_set_catch_exception_unhandled)
4233 (check_status_catch_exception_unhandled): New functions.
4234 (catch_exception_unhandled_breakpoint_ops): Install them.
4235 (dtor_catch_assert, allocate_location_catch_assert)
4236 (re_set_catch_assert, check_status_catch_assert): New functions.
4237 (catch_assert_breakpoint_ops): Install them.
4238 (ada_exception_catchpoint_p): Delete.
4239 (catch_ada_exception_command_split)
4240 (ada_exception_catchpoint_cond_string): Rename exp_string
4241 parameter to excep_string. Adjust.
4242 (ada_parse_catchpoint_condition): Delete.
4243 (ada_exception_sal): Rename the exp_string parameter to
4244 excep_string. Delete the cond_string and cond parameters.
4246 (ada_decode_exception_location): Rename the exp_string parameter
4247 to excep_string. Delete the cond_string and cond parameters.
4249 (create_ada_exception_catchpoint): New function.
4250 (catch_ada_exception_command, ada_decode_assert_location)
4251 (catch_assert_command): Adjust.
4252 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4254 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4256 * ada-lang.c: Include arch-utils.h.
4257 (ada_decode_exception_location): Make static.
4258 (catch_ada_exception_command): Moved here from breakpoint.c.
4259 (ada_decode_assert_location): Make static.
4260 (catch_assert_command): Moved here from breakpoint.c.
4261 (_initialize_ada_lang): Install the exception and assert
4262 catchpoint commands here.
4263 * ada-lang.h (ada_decode_exception_location)
4264 (ada_decode_assert_location): Delete declarations.
4265 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4267 (create_ada_exception_breakpoint): Make extern.
4268 (catch_ada_exception_command, catch_assert_command): Moved to
4270 (add_catch_command): Make extern.
4271 (_initilize_breakpoint): Don't install the exception and assert
4272 catchpoint commands here.
4273 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4275 (add_catch_command, create_ada_exception_breakpoint): Declare.
4277 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4279 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4280 the breakpoint to the breakpoint chain here.
4281 (set_raw_breakpoint_without_location): Add the breakpoint to the
4282 breakpoint chain here.
4283 (init_raw_breakpoint): Adjust comments.
4284 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4286 (init_catchpoint): Don't set the catchpoint's breakpoint number
4288 (install_catchpoint): New function.
4289 (create_fork_vfork_event_catchpoint)
4290 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4291 use install_catchpoint.
4293 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4295 * breakpoint.c (create_catchpoint_without_mention)
4296 (create_catchpoint): Delete.
4298 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4300 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4301 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4302 reference to exec_pathname.
4303 (struct exec_catchpoint): New type.
4304 (dtor_catch_exec): New function.
4305 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4306 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4307 (catch_exec_command_1): Adjust to use init_catchpoint.
4308 (delete_breakpoint): Remove reference to exec_pathname.
4310 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4312 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4313 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4314 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4315 reference to syscalls_to_be_caught.
4316 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4318 (struct syscall_catchpoint): New type.
4319 (dtor_catch_syscall): New function.
4320 (insert_catch_syscall, remove_catch_syscall)
4321 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4322 (print_recreate_catch_syscall): Adjust.
4323 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4324 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4325 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4326 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4327 (masked_watchpoint_breakpoint_ops)
4328 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4329 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4330 there is one. Remove references to syscalls_to_be_caught.
4331 (catching_syscall_number): Adjust.
4332 * ada-lang.c (catch_exception_breakpoint_ops)
4333 (catch_exception_unhandled_breakpoint_ops)
4334 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4336 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4338 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4340 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4341 reference to forked_inferior_pid.
4342 (struct fork_catchpoint): New type.
4343 (breakpoint_hit_catch_fork, print_it_catch_fork)
4344 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4345 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4346 (create_fork_vfork_event_catchpoint): Adjust to use
4349 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4351 * breakpoint.c (add_to_breakpoint_chain)
4352 (init_raw_breakpoint_without_location): New functions, factored
4354 (set_raw_breakpoint_without_location): ... this one.
4355 (init_raw_breakpoint): New function, factored out from
4356 set_raw_breakpoint and adjusted to use
4357 init_raw_breakpoint_without_location.
4358 (set_raw_breakpoint): Adjust.
4359 (init_catchpoint): New function, factored out from
4360 create_catchpoint_without_mention and adjusted to use
4361 init_raw_breakpoint.
4362 (create_catchpoint_without_mention): Adjust.
4364 2011-06-22 Tom Tromey <tromey@redhat.com>
4366 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4367 argument of 0 specially.
4369 2011-06-22 Yao Qi <yao@codesourcery.com>
4371 * infrun.c (handle_inferior_event): Remove write-only local variable
4372 `sw_single_step_trap_p'.
4374 2011-06-20 Tom Tromey <tromey@redhat.com>
4376 * symtab.c (lookup_language_this): End loop if block is NULL.
4378 2011-06-17 Tom Tromey <tromey@redhat.com>
4380 * valops.c (value_of_this): Use lookup_language_this.
4381 * symtab.h (lookup_language_this): Declare.
4382 * symtab.c (lookup_language_this): New function.
4383 (lookup_symbol_aux): Use lookup_language_this.
4384 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4386 2011-06-17 Tom Tromey <tromey@redhat.com>
4388 * value.h (value_of_this): Update.
4389 (value_of_local): Remove.
4390 * valops.c (value_of_this): Rename from value_of_local. Change
4392 * p-exp.y (exp): Update.
4393 (variable): Likewise.
4394 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4396 2011-06-17 Tom Tromey <tromey@redhat.com>
4398 * valops.c (value_of_local): Complain if NAME is NULL.
4399 * std-operator.def (OP_OBJC_SELF): Remove.
4400 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4401 * objc-exp.y (name_not_typename): Use OP_THIS.
4402 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4404 <OP_OBJC_SELF>: Remove.
4405 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4407 2011-06-16 Tristan Gingold <gingold@adacore.com>
4409 * python/py-events.h (gdb_py_events): Make it extern.
4410 * python/py-evtregistry.c (gdb_py_events): Declare.
4412 2011-06-16 Hui Zhu <teawater@gmail.com>
4414 * remote.c (remote_trace_set_readonly_regions): Add check for
4415 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4418 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4420 * arm-linux-tdep.c: Include "auxv.h".
4422 (ARM_LINUX_SIZEOF_VFP): Define.
4423 (arm_linux_supply_vfp): New function.
4424 (arm_linux_collect_vfp): Likewise.
4425 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4426 (arm_linux_fpa_regset_sections): New variable.
4427 (arm_linux_vfp_regset_sections): Likewise.
4428 (arm_linux_core_read_description): New function.
4429 (arm_linux_init_abi): Install arm_linux_core_read_description and
4430 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4431 appropriate for the architecture.
4432 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4433 (tdesc_arm_with_m): Declare.
4434 (tdesc_arm_with_iwmmxt): Likewise.
4435 (tdesc_arm_with_vfpv2): Likewise.
4436 (tdesc_arm_with_vfpv3): Likewise.
4437 (tdesc_arm_with_neon): Likewise.
4438 * arm-linux-nat.c: Move features/*.c includes ...
4439 * arm-tdep.c: ... here.
4440 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4441 target description data structures ...
4442 * arm-tdep.c (_initialize_arm_tdep): ... here.
4443 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4444 HWCAP_VFPv3D16): Move definitions ...
4445 * arm-linux-tdep.h: ... here.
4447 2011-06-15 Hui Zhu <teawater@gmail.com>
4449 * remote.c (remote_trace_set_readonly_regions): Add a check for
4452 2011-06-14 Tom Tromey <tromey@redhat.com>
4454 * coffread.c (coffread_objfile): Rename from current_objfile.
4455 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4456 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4458 2011-06-14 Tom Tromey <tromey@redhat.com>
4460 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4461 (class_symtab): Remove.
4462 (jv_dynamics_progspace_key): New global.
4463 (jv_per_objfile_free): Reset program space data. Update assert.
4464 Don't clear globals.
4465 (get_dynamics_objfile): Use and set program space data.
4466 (get_java_class_symtab): Use get_dynamics_objfile.
4467 (add_class_symbol): Likewise.
4468 (java_link_class_type): Likewise.
4469 (java_object_type, jv_clear_object_type, set_java_object_type):
4471 (get_java_object_type): Update. Don't cache result.
4472 (is_object_type): Don't call set_java_object_type.
4473 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4474 initialize jv_dynamics_progspace_key.
4476 2011-06-14 Tom Tromey <tromey@redhat.com>
4478 * symtab.h (current_objfile): Don't declare.
4479 * objfiles.h (current_objfile): Don't declare.
4480 * objfiles.c (current_objfile): Remove.
4481 * mdebugread.c (current_objfile): New file-scope global.
4482 * dbxread.c (current_objfile): New file-scope global.
4483 * coffread.c (current_objfile): New file-scope global.
4485 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4487 * top.h (line): Rename to ...
4488 (saved_command_line): ... this.
4489 (linesize): Rename to ...
4490 (saved_command_line_size): ... this.
4491 * top.c (line): Rename to ...
4492 (saved_command_line): ... this.
4493 (linesize): Rename to ...
4494 (saved_command_line_size): ... this.
4495 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4496 * event-top.c (command_line_handler): Adjust.
4497 * main.c (captured_main): Adjust.
4499 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4501 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4502 get_frame_func instead of get_frame_pc to determine the code
4503 address used to construct the frame ID.
4504 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4505 (i386_epilogue_frame_this_id): Likewise.
4506 (i386_epilogue_frame_prev_register): New function.
4507 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4508 (i386_stack_tramp_frame_sniffer): Fix coding style.
4509 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4510 (i386_gdbarch_init): Fix comments.
4512 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4514 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4515 instruction when walking back through the instruction stream.
4517 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4519 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4520 fullname parameters order.
4522 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4525 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4527 * psymtab.c (map_symbol_filenames_psymtab)
4528 (map_partial_symbol_filenames): Likewise.
4529 * psymtab.h: Include symfile.h.
4530 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4531 * symfile.h (symbol_filename_ftype): New.
4532 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4533 map_symbol_filenames, clarify more the naming in comment.
4535 2011-06-07 Doug Evans <dje@google.com>
4537 * cc-with-index.sh: Fix typos in comment.
4538 Look for ../../gdb, for fullname.exp.
4540 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4541 Pedro Alves <pedro@codesourcery.com>
4543 * cli/cli-cmds.c (shell_escape): Use waitpid.
4544 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4546 2011-06-07 Tristan Gingold <gingold@adacore.com>
4548 * xcoffread.c (dwarf2_xcoff_names): New variable.
4549 (aix_process_linenos): Add a guard.
4550 (xcoff_symfile_finish): Free dwarf2.
4551 (xcoff_initial_scan): Add dwarf2 support.
4553 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4555 * infcall.c (run_inferior_call): Don't mask async. Instead force
4556 a synchronous wait, if the target can async.
4558 * target.h (struct target_ops): Delete to_async_mask.
4559 (target_async_mask): Delete.
4560 * target.c (update_current_target): Delete references to to_async_mask.
4561 * linux-nat.c (linux_nat_async_mask_value): Delete.
4562 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4563 to linux_nat_async_mask_value.
4564 (linux_nat_async_mask): Delete.
4565 (linux_nat_async, linux_nat_close): Remove references to
4566 linux_nat_async_mask_value.
4567 * record.c (record_async_mask_value): Delete.
4568 (record_async): Remove references to record_async_mask_value.
4569 (record_async_mask): Delete.
4570 (record_can_async_p, record_is_async_p): Remove references to
4571 record_async_mask_value.
4572 (init_record_ops, init_record_core_ops): Remove references to
4574 * remote.c (remote_async_mask_value): Delete.
4575 (init_remote_ops): Remove reference to remote_async_mask.
4576 (remote_can_async_p, remote_is_async_p): Remove references to
4577 remote_async_mask_value.
4578 (remote_async): Remove references to remote_async_mask_value.
4579 (remote_async_mask): Delete.
4581 * infrun.c (fetch_inferior_event): Don't claim registers changed
4582 if the current thread is already not executing.
4584 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4586 From Stephen Kitt <steve@sk2.org>
4587 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4588 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4590 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4592 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4593 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4595 2011-06-03 Tom Tromey <tromey@redhat.com>
4597 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4599 * python/py-exitedevent.c (create_exited_event_object): Change
4600 type of 'exit_code'. Optionally add exit_code attribute.
4601 (emit_exited_event): Change type of 'exit_code'.
4602 * python/py-event.h (emit_exited_event): Update.
4603 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4604 * infrun.c (handle_inferior_event): Set exit code fields on
4606 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4608 * inferior.c (exit_inferior_1): Initialize new fields.
4610 2011-06-03 Tom Tromey <tromey@redhat.com>
4612 * dwarf2expr.c (get_signed_type): New function.
4613 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4615 2011-06-02 Keith Seitz <keiths@redhat.com>
4617 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4619 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4621 * top.h (simplified_command_loop): Delete declaration.
4623 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4625 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4626 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4628 2011-06-01 Yao Qi <yao@codesourcery.com>
4630 * objfiles.h (obj_section_addr): Update reference to objfile from
4632 (obj_section_endaddr): Likewise.
4634 2011-06-01 Daniel Jacobowitz <drow@false.org>
4636 * MAINTAINERS: Update my email address and affiliation. Also
4637 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4639 2010-05-31 Keith Seitz <keiths@redhat.com>
4642 * linespec.c (get_search_block): New function.
4643 (find_methods): Add FILE_SYMTATB parameter and use it and
4644 get_search_block to pass an appropriate block to
4645 lookup_symbol_in_namespace.
4646 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4647 Check if *ARGPTR starts with a filename first.
4648 If it does, call locate_first_half again to locate the next
4649 "first half" of the linespec.
4650 Pass FILE_SYMTATB to decode_objc and decode_compound.
4651 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4652 (locate_first_half): Stop on the first colon seen.
4653 (decode_compound): Add FILE_SYMTAB parameter.
4654 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4655 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4656 get_search_block with lookup_symbol.
4657 (find_method): Add FILE_SYMTAB parameter and pass it to
4659 (decode_objc): Use get_search_block.
4661 2010-05-31 Keith Seitz <keiths@redhat.com>
4664 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4665 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4666 and CP_ANONYMOUS_NAMESPACE_LEN.
4667 (cp_is_anonymous): Likewise.
4668 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4669 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4670 * dwarf2read.c (namespace_name): Likewise.
4671 (fixup_partial_die): Likewise.
4672 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4673 seen in the input, keep it.
4675 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4677 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4678 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4679 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4680 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4681 * remote.c (_initialize_remote): Register
4682 async_remote_interrupt_twice directly as
4683 sigint_remote_twice_token event.
4685 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4687 * target.h (enum inferior_event_type): Delete INF_ERROR.
4688 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4690 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4692 * interps.c (interp_set): Don't cancel continuations.
4694 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4696 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4698 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4700 * continuations.h (continuation_ftype): Add `err' parameter.
4701 Document parameters.
4702 (do_all_continuations, do_all_continuations_thread)
4703 (do_all_intermediate_continuations)
4704 (do_all_intermediate_continuations_thread)
4705 (do_all_inferior_continuations): Add `err' parameter.
4706 * continuations.c (do_my_continuations_1, do_my_continuations)
4707 (do_all_inferior_continuations, do_all_continuations_ptid)
4708 (do_all_continuations_thread_callback)
4709 (do_all_continuations_thread, do_all_continuations)
4710 (do_all_intermediate_continuations_thread_callback)
4711 (do_all_intermediate_continuations_thread)
4712 (do_all_intermediate_continuations): Add `err' parameter, and pass
4713 it down all the way to the continuations proper.
4714 * inf-loop.c (inferior_event_handler): If fetching an inferior
4715 event throws an error, don't pop the target, and still call the
4716 continuations, but with `err' set. Adjust all other continuation
4718 * breakpoint.c (until_break_command_continuation): Add `err'
4720 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4721 issue another step if `err' is set.
4722 (struct until_next_continuation_args): New.
4723 (until_next_continuation): Add `err' parameter. Adjust.
4724 (until_next_command): Adjust.
4725 (struct finish_command_continuation_args): Add `thread' field.
4726 (finish_command_continuation): Add `err' parameter. Handle it.
4727 (finish_forward): Adjust.
4728 (attach_command_continuation): Add `err' parameter. Handle it.
4729 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4730 cancel the continuations.
4731 * interps.c (interp_set): Adjust to cancel the continuations.
4732 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4733 continuations rather than discarding.
4734 (free_thread): Don't clear thread inferior resources here.
4735 (delete_thread_1): Do it here instead. And do it before removing
4736 the thread from the threads list. Tag the thread as exited before
4737 clearing thread inferior resources.
4739 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4741 * infcall.c (call_function_by_hand): Rephrase error message.
4743 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4745 * defs.h (struct thread_info, struct inferior): Delete forward
4747 * breakpoint.h (struct thread_info): New forward declaration.
4748 * observer.sh (struct inferior): New forward declaration.
4749 * python/python-internal.h (struct inferior): New forward
4752 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4754 * defs.h (struct continuation, continuation_ftype)
4755 (continuation_free_arg_ftype, add_continuation)
4756 (do_all_continuations, do_all_continuations_thread)
4757 (discard_all_continuations, discard_all_continuations_thread)
4758 (add_intermediate_continuation, do_all_intermediate_continuations)
4759 (do_all_intermediate_continuations_thread)
4760 (discard_all_intermediate_continuations)
4761 (discard_all_intermediate_continuations_thread)
4762 (add_inferior_continuation, do_all_inferior_continuations)
4763 (discard_all_inferior_continuations): Move to ...
4764 * continuations.h: ... this new file.
4765 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4766 infcmd.c, inferior.c, infrun.c, interps.c: Include
4769 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4770 Doug Evans <dje@google.com>
4772 Fix PR 10970, PR 12702.
4773 * linux-nat.c (linux_lwp_is_zombie): New function.
4774 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4775 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4777 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4779 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4781 (add_continuation, add_intermediate_continuation)
4782 (add_inferior_continuation): Use them.
4783 * continuations.c (struct continuation): Use them.
4784 (make_continuation_ftype): Delete.
4785 (make_continuation, add_inferior_continuation, add_continuation)
4786 (add_intermediate_continuation): Use continuation_ftype and
4787 continuation_free_arg_ftype. Rename parameters to shorter names.
4789 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4791 * continuations.c (make_continuation): Make it return void.
4792 (do_my_continuations): Rename to ...
4793 (do_my_continuations_1): ... this. Remove old_chain parameter and
4795 (do_my_continuations): New.
4796 (discard_my_continuations): Rename to ...
4797 (discard_my_continuations_1): ... this. Remove old_chain
4798 parameter and adjust.
4799 (discard_my_continuations): New.
4800 (add_inferior_continuation): Simplify.
4801 (do_all_inferior_continuations): Reimplement on top
4802 do_my_continuations.
4803 (discard_all_inferior_continuations): Simplify.
4804 (add_continuation): Simplify.
4805 (do_all_continuations_ptid): Simplify.
4806 (discard_all_continuations_thread_callback): Simplify.
4807 (add_intermediate_continuation): Simplify.
4808 (discard_all_intermediate_continuations_thread_callback):
4811 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4813 * utils.c (struct continuation, add_continuation)
4814 (add_inferior_continuation)
4815 (do_all_inferior_continuations, discard_all_inferior_continuations)
4816 (restore_thread_cleanup, do_all_continuations_ptid)
4817 (do_all_continuations_thread_callback)
4818 (do_all_continuations_thread, do_all_continuations)
4819 (discard_all_continuations_thread_callback)
4820 (discard_all_continuations_thread, discard_all_continuations)
4821 (add_intermediate_continuation)
4822 (do_all_intermediate_continuations_thread_callback)
4823 (do_all_intermediate_continuations_thread)
4824 (do_all_intermediate_continuations)
4825 (discard_all_intermediate_continuations_thread_callback)
4826 (discard_all_intermediate_continuations_thread)
4827 (discard_all_intermediate_continuations): Move to ...
4828 * continuations.c: ... this new file, and adjust to no longer
4829 implement continuations on top of cleanups.
4830 * Makefile.in (SFILES): Add continuations.c.
4831 (COMMON_OBS): Add continuations.o.
4833 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4835 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4836 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4837 Internal error on invalid values.
4838 * reverse.c: Don't handle EXEC_ERROR.
4839 * mi/mi-main.c: Don't handle EXEC_ERROR.
4841 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4843 * record.c: Include event-loop.h, inf-loop.h.
4844 (record_beneath_to_async): New global.
4845 (tmp_to_async): New global.
4846 (record_async_inferior_event_token): New global.
4847 (record_open_1): Don't error out if async is enabled.
4848 (record_open): Handle to_async. Create an async event source in
4850 (record_close): Delete the async event source.
4851 (record_resumed): New global.
4852 (record_execution_dir): New global.
4853 (record_resume, record_core_resume): Set them. Register the
4854 target on the event loop.
4855 (record_wait): Rename to ...
4856 (record_wait_1): ... this. Add more debug output. Handle
4857 TARGET_WNOHANG, and the target beneath returning
4858 TARGET_WAITKIND_IGNORE.
4859 (record_wait): Reimplement on top of record_wait_1.
4860 (record_async_mask_value): New global.
4861 (record_async, record_async_mask, record_can_async_p)
4862 (record_is_async_p, record_execution_direction): New functions.
4863 (init_record_ops, init_record_core_ops): Install new methods.
4864 * infrun.c (fetch_inferior_event): Temporarily switch the global
4865 execution direction to the direction the target was going.
4866 (execution_direction): Change type to int.
4867 * target.c (default_execution_direction): New function.
4868 (update_current_target): Inherit and de_fault
4869 to_execution_direction.
4870 * target.h (struct target_ops) <to_execution_direction>: New
4872 (target_execution_direction): New macro.
4873 * inferior.h (execution_direction): Change type to int.
4875 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4877 * infcall.c (call_function_by_hand): Don't allow calling functions
4878 in reverse execution mode.
4880 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4882 * infcmd.c (finish_command): Allow async finish in reverse.
4884 2011-05-26 Yao Qi <yao@codesourcery.com>
4886 * gdb_thread_db.h: Delete. Move to ...
4887 * common/gdb_thread_db.h: ... here.
4889 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4891 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4892 function's entry point instead of a manually managed momentary
4893 breakpoint, and only ever issue one proceed call.
4894 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4895 doing a reverse-finish, switch to stepi mode, to do another step.
4896 (insert_step_resume_breakpoint_at_sal): Make public.
4897 (normal_stop): No need to save function value return registers if
4899 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4901 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4903 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4904 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4905 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4907 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4908 step-resume breakpoints.
4909 (print_it_typical): Handle bp_hp_step_resume.
4910 (bpstat_what): Ditto.
4911 (bptype_string): Ditto.
4912 (print_one_breakpoint_location): Ditto.
4913 (allocate_bp_location): Ditto.
4915 (breakpoint_re_set_one): Ditto.
4916 * infrun.c (handle_inferior_event): Adjust. Split
4917 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4918 BPSTAT_WHAT_HP_STEP_RESUME.
4919 (insert_step_resume_breakpoint_at_sal): Rename to ...
4920 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4921 parameter. Handle it.
4922 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4923 insert_step_resume_breakpoint_at_sal_1.
4924 (insert_step_resume_breakpoint_at_frame): Rename to ...
4925 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4926 set a high-priority step-resume breakpoint.
4927 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4928 (insert_step_resume_breakpoint_at_caller): Ditto.
4930 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4932 * breakpoint.c (iterate_over_related_breakpoints): New.
4933 (do_map_delete_breakpoint): New.
4934 (delete_command): Pass do_map_delete_breakpoint to
4935 map_breakpoint_numbers.
4936 (do_disable_breakpoint): New.
4937 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4939 (do_enable_breakpoint): Rename to ...
4940 (enable_breakpoint_disp): ... this.
4941 (enable_breakpoint): Adjust.
4942 (do_enable_breakpoint): New.
4943 (enable_once_breakpoint): Delete.
4944 (do_map_enable_breakpoint): New.
4945 (do_map_enable_once_breakpoint): New.
4946 (enable_once_command, enable_delete_command)
4947 (delete_trace_command): Iterate over the breakpoint's related
4950 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4952 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4953 for ALPHA_ZERO_REGNUM.
4954 (alpha_supply_int_regs): Explicitly supply zero as the value for
4955 ALPHA_ZERO_REGNUM in the register cache.
4956 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4958 2011-05-26 Yao Qi <yao@codesourcery.com>
4960 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4962 2011-05-26 Tristan Gingold <gingold@adacore.com>
4964 * symfile.h (struct dwarf2_section_names): New type.
4965 (struct dwarf2_debug_sections): New type.
4966 (dwarf2_has_info): Add parameter.
4967 * dwarf2read.c (dwarf2_elf_names): New variable.
4968 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4969 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4970 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4971 (dwarf2_has_info): Add names parameter. Pass names
4972 to dwarf2_locate_sections.
4973 (section_is_p): Rewrite using the names parameter.
4974 (dwarf2_locate_sections): Use section names from the names parameter.
4975 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4976 * elfread.c (read_psyms): Ditto.
4977 * machoread.c (macho_symfile_read): Ditto.
4979 2011-05-25 Andreas Schwab <schwab@redhat.com>
4982 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4984 2011-05-24 Keith Seitz <keiths@redhat.com>
4987 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4988 (decode_compound): Unconditionally call keep_name_info.
4990 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4992 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4993 scope, clear its command list.
4994 (map_breakpoint_numbers): Don't walk the related breakpoints list
4997 2011-05-24 Tom Tromey <tromey@redhat.com>
4999 * MAINTAINERS: Move Jim Blandy to past maintainers.
5001 2011-05-24 Tristan Gingold <gingold@adacore.com>
5003 * symfile.h (enum dwarf2_section_enum): New type.
5004 (dwarf2_get_section_info): New prototype.
5005 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5006 section_name by sect. Use a switch to select the info.
5007 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5008 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5010 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5012 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5013 shared library event breakpoint if there's no execution.
5015 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5017 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5018 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5020 2011-05-23 Tom Tromey <tromey@redhat.com>
5022 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5025 2011-05-23 Doug Evans <dje@google.com>
5027 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5028 entry for RuntimeError to doc string.
5030 2011-05-23 Jerome Guitton <guitton@adacore.com>
5032 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5033 sequence for probing loops.
5035 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5037 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5040 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5042 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5043 zero as the value for %g0 in the register cache.
5044 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5045 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5047 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5049 * infrun.c (proceed): Set previous_inferior_ptid here.
5050 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5051 inferior_ptid, not null_ptid.
5052 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5053 (fetch_inferior_event): Nor here.
5055 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5057 * inf-loop.c (inferior_event_handler): Only output a message if
5060 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5062 * MAINTAINERS: Update my e-mail address.
5064 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5066 * infrun.c (proceed): Switch the inferior event loop to
5067 INF_EXEC_COMPLETE if the target refused to resume from a
5070 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5072 * infcmd.c: Include "inf-loop.h".
5073 (step_once): When stepping into an inline subroutine, pretend the
5074 target has run. If the target can async, switch the inferior
5075 event loop to INF_EXEC_COMPLETE.
5076 * inferior.h (user_visible_resume_ptid): Declare.
5077 * infrun.c (user_visible_resume_ptid): New function, factored out
5080 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5081 that the current thread is running. Merge async and sync
5084 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5086 * infcmd.c (step_1): Simplify synchronous case.
5088 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5090 * tracepoint.c: Include exceptions.h.
5091 (TFILE_PID): Move higher in file.
5092 (tfile_open): Delay pushing the tfile target until we're assured
5093 the tfile header is present in the file. Wrap reading the initial
5094 newline-terminated lines in TRY_CATCH. Pop the target if the
5095 initial setup failed. Add the tfile's thread immediately
5096 aftwards, before any non-essential setup. Don't skip
5097 post_create_inferior if there are no traceframes present in the
5099 (tfile_close): Remove redundant check for null before xfree call.
5100 (tfile_thread_alive): New function.
5101 (init_tfile_ops): Register it as to_thread_alive callback.
5103 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5105 * tracepoint.c (tfile_open): Delete #if 0'd code.
5107 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5109 Fix -readnow for -gdwarf-4 unused type units.
5110 * dwarf2read.c (struct signatured_type): Remove the field offset.
5111 (create_signatured_type_table_from_index): Remove its initialization.
5112 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5113 instead. Add a complaint call.
5114 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5115 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5116 (lookup_signatured_type_at_offset, read_signatured_type)
5117 (write_one_signatured_type): Update the field for per_cu.
5119 2011-05-19 Tom Tromey <tromey@redhat.com>
5121 * python/py-inferior.c (python_inferior_exit): Use
5123 (python_on_resume): Likewise.
5125 2011-05-19 Matt Rice <ratmice@gmail.com>
5127 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5129 2011-05-19 Hui Zhu <teawater@gmail.com>
5131 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5133 2011-05-19 Hui Zhu <teawater@gmail.com>
5135 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5137 2011-05-18 Tom Tromey <tromey@redhat.com>
5139 * dwarf2read.c (dwarf2_add_field): Constify.
5140 * value.c (value_static_field): Constify.
5141 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5143 * ax-gdb.c (gen_static_field): Constify
5145 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5147 * linux-nat.c (kill_callback): Use SIGKILL first.
5149 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5151 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5153 2011-05-18 Tom Tromey <tromey@redhat.com>
5155 * value.c (value_fn_field): Constify.
5156 * symtab.c (gdb_mangle_name): Constify.
5157 * stabsread.c (update_method_name_from_physname): Make 'physname'
5159 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5160 const. Use explicit fputc_filtered loop.
5161 (pascal_type_print_base): Constify.
5162 * p-lang.h (pascal_type_print_method_args): Update.
5163 * linespec.c (add_matching_methods): Constify.
5164 (add_constructors): Likewise.
5165 * jv-typeprint.c (java_type_print_base): Constify.
5166 * gdbtypes.h (struct cplus_struct_type)
5167 <fn_fieldlist.fn_field.physname>: Now const.
5168 * dwarf2read.c (compute_delayed_physnames): Constify.
5169 (dwarf2_add_member_fn): Likewise.
5170 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5172 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5174 * infrun.c (resume): Mention which is the current thread, and its
5175 current PC in debug output.
5176 (prepare_to_proceed): Mention the thread switching in debug
5179 2011-05-18 Tom Tromey <tromey@redhat.com>
5181 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5182 path check. Use xmalloc and cleanups.
5183 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5185 2011-05-17 Tom Tromey <tromey@redhat.com>
5187 * cp-valprint.c (cp_print_value_fields): Catch errors from
5190 2011-05-17 Tom Tromey <tromey@redhat.com>
5192 * dwarf2read.c (dwarf2_get_die_type): Call
5193 get_die_type_at_offset.
5194 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5195 get_base_type function.
5197 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5199 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5202 2011-05-16 Doug Evans <dje@google.com>
5204 * python/py-auto-load.c (source_section_scripts): Mention objfile
5207 2011-05-15 Doug Evans <dje@google.com>
5209 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5210 (try_thread_db_load_from_pdir): Call it. If unable to find
5211 libthread_db in directory of libpthread, see if we're looking at
5212 the separate-debug-info copy.
5214 * python/py-autoload.c (print_script): Print "Missing" instead of
5215 "No" for missing scripts.
5216 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5218 2011-05-13 Doug Evans <dje@google.com>
5220 * ui-file.c (stdio_file_write_async_safe): Add comment.
5222 2011-05-14 Hui Zhu <teawater@gmail.com>
5224 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5226 2011-05-13 Doug Evans <dje@google.com>
5228 Support $pdir and $sdir in libthread-db-search-path.
5229 * NEWS: Mention $sdir,$pdir.
5230 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5231 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5232 (try_thread_db_load_from_sdir): New function.
5233 (try_thread_db_load_from_dir): New function.
5234 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5235 system directories if search of libthread-db-search-path fails,
5236 that is now done via $sdir.
5237 (has_libpthread): New function.
5238 (thread_db_load): Remove search for libthread_db in directory of
5239 libpthread, that is now done via $pdir.
5241 * NEWS: Mention "info auto-load-scripts".
5242 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5243 script_not_found_warning_printed.
5244 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5245 all callers updated. Initialize script_not_found_warning_printed.
5246 (get_auto_load_pspace_data_for_loading): New function.
5247 (maybe_add_script): New function.
5248 (source_section_scripts): Simplify. Only print one warning regardless
5249 of the number of auto-load scripts not found.
5250 (clear_section_scripts): Clear script_not_found_warning_printed.
5251 (auto_load_objfile_script): Record script in hash table.
5252 (count_matching_scripts): New function.
5253 (maybe_print_script): Renamed from maybe_print_section_script, all
5254 callers updated. Rewrite to use ui_out_*.
5255 (info_auto_load_scripts): Renamed from
5256 maintenance_print_section_scripts, all callers updated.
5257 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5258 renamed as "info auto-load-scripts".
5260 2011-05-13 Tom Tromey <tromey@redhat.com>
5262 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5263 (read_sleb128): Likewise.
5265 2011-05-13 Tom Tromey <tromey@redhat.com>
5267 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5270 2011-05-13 Doug Evans <dje@google.com>
5272 * linux-nat.c (debug_linux_nat_async): Delete.
5273 Replace all references to use debug_linux_nat instead.
5274 (show_debug_linux_nat_async): Delete.
5275 (sigchld_handler): Call ui_file_write_async_safe instead of
5277 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5278 * ui-file.c (struct ui_file): New member to_write_async_safe.
5279 (null_file_write_async_safe): New function.
5280 (ui_file_write_async_safe): New function.
5281 (set_ui_file_write_async_safe): New function.
5282 (ui_file_new): Initialize to_write_async_safe.
5283 (stdio_file_write_async_safe): New function.
5284 (struct stdio_file): New member fd.
5285 (stdio_file_new): Initialize to_write_async_safe, fd.
5286 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5288 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5289 (set_ui_file_write_async_safe): Declare.
5290 (ui_file_write_async_safe): Declare.
5292 2011-05-13 Tom Tromey <tromey@redhat.com>
5294 * utils.c (do_value_free): New function.
5295 (make_cleanup_value_free): Likewise.
5296 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5298 (dwarf2_loc_desc_needs_frame): Call
5299 make_cleanup_value_free_to_mark.
5300 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5301 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5303 (new_dwarf_expr_context): Don't call value_mark.
5304 * dwarf2-frame.c (execute_stack_op): Call
5305 make_cleanup_value_free_to_mark.
5306 * defs.h (make_cleanup_value_free): Declare.
5308 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5310 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5311 prepare_execute_command.
5312 * top.c (prepare_execute_command): Return cleanup.
5313 (execute_command): Use cleanup from prepare_execute_command.
5314 * top.h (prepare_execute_command): Change prototype to return
5316 * defs.h (struct value): Add opaque declaration.
5317 (make_cleanup_value_free_to_mark): Add prototype.
5318 * utils.c (do_value_free_to_mark): New function.
5319 (make_cleanup_value_free_to_mark): Likewise.
5321 2011-05-12 Tom Tromey <tromey@redhat.com>
5323 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5324 cast left-hand-side to unsigned.
5326 2011-05-12 Tom Tromey <tromey@redhat.com>
5329 * value.h (value_from_contents): Declare.
5330 * value.c (value_from_contents): New function.
5331 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5332 (dwarf2_get_die_type): New function.
5333 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5334 (allocate_piece_closure): Acquire reference to values.
5335 (read_pieced_value): Update for value-based expressions.
5336 (write_pieced_value): Likewise.
5337 (free_pieced_value_closure): Call value_free as needed.
5338 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5339 Update for value-based expressions.
5340 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5341 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5342 <get_base_type>: New field.
5343 (struct dwarf_expr_piece) <v.value>: Change type.
5344 <v.regno>: New field.
5345 (struct dwarf_expr_context) <mark>: New field.
5346 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5347 (dwarf_expr_pop, dwarf_expr_push): Remove.
5348 (dwarf_expr_push_address): Declare.
5349 * dwarf2expr.c (dwarf_arch_cookie): New global.
5350 (struct dwarf_gdbarch_types): New.
5351 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5353 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5355 (dwarf_expr_push_address): New function.
5356 (dwarf_expr_pop): Now static.
5357 (dwarf_expr_fetch): Change return type.
5358 (dwarf_require_integral): New function.
5359 (dwarf_expr_fetch): Simplify.
5360 (add_piece): Update.
5361 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5363 (execute_stack_op) <sign_ext>: Remove.
5364 Use values for DWARF stack.
5365 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5366 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5368 (_initialize_dwarf2expr): New function.
5369 (add_piece): Update.
5370 (new_dwarf_expr_context): Set new field.
5371 (free_dwarf_expr_context): Call value_free_to_mark.
5372 * dwarf2-frame.c (no_base_type): New function.
5373 (execute_stack_op): Set get_base_type field. Update.
5375 2011-05-12 Tom Tromey <tromey@redhat.com>
5377 * dwarf2read.c (read_common_block): Fix formatting.
5379 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5381 * breakpoint.c (disable_breakpoint): Disable all locations
5382 associated with a tracepoint on target if a trace experiment is
5384 (disable_command): Disable a specific tracepoint location on target if
5385 a trace experiment is running.
5386 (do_enable_breakpoint): Enable all locations associated with a
5387 tracepoint on target if a trace experiment is running.
5388 (enable_command) Enable a specific tracepoint location on target if a
5389 trace experiment is running.
5390 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5391 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5392 to_disable_tracepoint.
5393 * target.h: Add declaration of struct bp_location.
5394 (struct target_ops): Add new functions
5395 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5396 to_disable_tracepoint to target operations.
5397 (target_supports_enable_disable_tracepoint): New macro.
5398 (target_enable_tracepoint): New macro.
5399 (target_disable_tracepoint): New macro.
5400 * remote.c (struct remote_state): Add new field.
5401 (remote_enable_disable_tracepoint_feature): New.
5402 (remote_protocol_features): Add new entry.
5403 (remote_supports_enable_disable_tracepoint): New.
5404 (remote_enable_tracepoint): New.
5405 (remote_disable_tracepoint): New.
5406 (init_remote_ops): Add remote_enable_tracepoint,
5407 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5408 to remote operations.
5409 * tracepoint.c (start_tracing): Allow tracing to start without any
5410 tracepoints enabled with just a warning if they can be re-enabled
5412 * NEWS: Add news item for the new behaviour of the enable and disable
5413 GDB commands when applied to tracepoints.
5414 Add news items for the new remote packets QTEnable and QTDisable.
5416 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5418 * config.in: Regenerate.
5419 * configure: Regenerate.
5420 * configure.ac <--with-system-readline> (for readline_echoing_p):
5422 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5423 (tui_old_rl_echoing_p): ... here.
5424 (tui_setup_io): Rename extern declaration readline_echoing_p to
5425 _rl_echoing_p. Adjust assignments for the both renames.
5427 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5429 * symtab.c (lookup_symtab): Run cleanup before returning.
5431 2011-05-11 Tom Tromey <tromey@redhat.com>
5433 * dwarf2read.c (handle_data_member_location): New function.
5434 (dwarf2_add_field): Use it.
5435 (read_common_block): Likewise.
5437 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5439 Make addrs->SECTINDEX always defined.
5440 * symfile.c (relative_addr_info_to_section_offsets): Check for
5441 SECTINDEX -1, not for zero ADDR.
5442 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5443 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5444 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5447 2011-05-10 Doug Evans <dje@google.com>
5449 * linux-thread-db.c: Whitespace cleanup.
5450 (try_thread_db_load_1): Fix comment.
5452 * linux-thread-db.c (set_libthread_db_search_path): New function.
5453 (_initialize_thread_db): Add setter for libthread-db-search-path.
5455 2011-05-09 Doug Evans <dje@google.com>
5457 * NEWS: Mention --with-iconv-bin.
5458 * configure.ac: New option --with-iconv-bin.
5459 * configure: Regenerate.
5460 * config.in: Regenerate.
5461 * defs.h (relocate_gdb_directory): Declare.
5462 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5463 removed progname parameter, and exported. All callers updated.
5464 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5466 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5467 adding missing call to restore_child_signals_mask.
5469 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5471 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5473 * infrun.c (proceed, start_remote): Adjust.
5474 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5475 and adjust to not handle it.
5476 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5477 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5478 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5479 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5480 * windows-nat.c (do_initial_windows_stuff): Adjust.
5481 * infcmd.c (attach_command): Adjust.
5482 (notice_new_inferior): Adjust.
5484 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5486 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5487 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5488 * spu-tdep.c (op_selb): Use correct value.
5490 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5492 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5493 "parent" parameter to symbol_file_add_from_bfd call.
5495 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5496 Thiago Jung Bauermann <bauerman@br.ibm.com>
5498 Implement support for PowerPC BookE masked watchpoints.
5499 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5501 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5502 method. Initialize to NULL in all existing breakpoint_ops instances.
5503 (struct breakpoint) <hw_wp_mask>: New field.
5504 * breakpoint.c (is_masked_watchpoint): Add prototype.
5505 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5506 breakpoint's breakpoint_ops.works_in_software_mode if available.
5507 (watchpoints_triggered): Handle the case of a hardware masked
5509 (watchpoint_check): Likewise.
5510 (works_in_software_mode_watchpoint): New function.
5511 (insert_masked_watchpoint, remove_masked_watchpoint)
5512 (resources_needed_masked_watchpoint)
5513 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5514 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5515 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5517 (masked_watchpoint_breakpoint_ops): New structure.
5518 (watch_command_1): Check for the existence of the `mask' parameter.
5519 Set b->ops according to the type of hardware watchpoint being created.
5520 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5521 (ppc_linux_remove_mask_watchpoint)
5522 (ppc_linux_masked_watch_num_registers): New functions.
5523 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5524 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5525 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5526 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5527 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5528 (target_masked_watch_num_registers): New functions.
5529 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5530 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5532 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5533 (target_masked_watch_num_registers): Add prototypes.
5535 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5538 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5539 (producer_is_gcc_ge_4_0): New function.
5540 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5541 symtab->language code.
5542 (var_decode_location): Set cu->has_loclist.
5543 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5544 skip. Intialize force_skip from locations_valid. Move the prologue
5545 skipping code into two passes.
5546 * symtab.h (struct symtab): Make the primary field a bitfield. New
5547 field locations_valid.
5549 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5551 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5552 (classify_inner_name): Call cp_lookup_nested_type with
5554 * cp-namespace.c (cp_lookup_nested_type): New variable
5555 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5556 type_name_no_tag_or_error with saved_parent_type.
5557 * dwarf2read.c (load_partial_dies): Read in any children of
5558 DW_TAG_typedef with complaint in such case.
5559 * gdbtypes.c (type_name_no_tag_or_error): New function.
5560 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5561 * valops.c (destructor_name_p): New comment for parameter type. Remove
5562 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5563 * value.h (destructor_name_p): Remove type const.
5565 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5567 * symtab.c (compare_symbol_name): New function.
5568 (completion_list_add_name, expand_partial_symbol_name): Call it,
5569 remove the variable ncmp.
5570 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5573 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5575 Demote to sw watchpoint only in update_watchpoint.
5576 * breakpoint.c (update_watchpoint): Change between software and
5577 hardware watchpoint for all kinds of watchpoints, not just
5578 read/write ones. Determine b->exact value here instead of
5579 in watch_command_1. Error out if there are not enough resources
5580 for a read or access hardware watchpoint.
5581 (watch_command_1): Remove logic of checking whether there are
5582 enough resources available, since update_watchpoint will do that
5583 work now. Don't set b->exact here. Catch exceptions thrown by
5584 update_watchpoint and delete the watchpoint.
5585 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5586 Use target_exact_watchpoints instead.
5587 (delete_breakpoint): Notify observers only if deleted watchpoint
5588 has a breakpoint number assigned to it.
5590 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5592 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5594 2011-05-05 Jerome Guitton <guitton@adacore.com>
5596 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5598 (i386_stack_tramp_frame_unwind): New static global.
5599 (i386_match_pattern): New function, extracted from i386_match_insn.
5600 (i386_match_insn): Use i386_match_pattern.
5601 (i386_match_insn_block): New function.
5602 (i386_tramp_chain_in_reg_insns)
5603 (i386_tramp_chain_on_stack_insns): New static variables.
5604 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5607 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5609 * configure.host (xscale*): Don't handle target.
5610 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5613 2011-05-04 Yao Qi <yao@codesourcery.com>
5615 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5617 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5620 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5621 | * elfread.c (elf_symtab_read): Stop memory leak.
5623 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5625 * nto-tdep.c (nto_target): Replace deprecated call to
5626 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5628 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5630 Fix false GCC warning.
5631 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5633 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5635 * breakpoint.c (update_watchpoint): Move code to change
5636 the enable state of breakpoint from here ...
5637 (do_enable_breakpoint): ... to here.
5639 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5641 * valprint.c (val_print_array_elements): Fixed poor performance
5642 of printing very large arrays with repeat_count_threshold set
5643 to unlimited. New comment.
5645 2011-04-29 Tom Tromey <tromey@redhat.com>
5647 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5648 (mi_parse): Likewise.
5649 * breakpoint.c (break_range_command): Use sizeof char*, not
5651 (create_breakpoint): Likewise.
5652 (parse_breakpoint_sals): Likewise.
5654 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5656 * linux-nat.c (linux_child_remove_fork_catchpoint)
5657 (linux_child_remove_vfork_catchpoint)
5658 (linux_child_remove_exec_catchpoint): New functions.
5659 (linux_target_install_ops): Install them.
5661 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5665 * varobj.c (install_default_visualizer): Do not install a
5666 visualizer if the varobj is CPLUS_FAKE_CHILD.
5667 (construct_visualizer): Likewise.
5669 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5671 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5672 case insensitive comparison.
5674 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5676 * infrun.c (proceed): Revert previous change.
5677 (resume): Instead, handle the case of signal delivery while stepping
5678 off a breakpoint location here, and only if software single-stepping
5679 is used. Handle nested signals.
5681 2011-04-28 Yao Qi <yao@codesourcery.com>
5683 * arm-tdep.c (copy_unmodified): Rename to ...
5684 (arm_copy_unmodified): .. this. New.
5685 (copy_preload): Move common part to ...
5686 (install_preload): .. this. New.
5687 (arm_copy_preload): New.
5688 (copy_preload_reg): Move common part to ...
5689 (install_preload_reg): ... this. New.
5690 (arm_copy_preload_reg): New.
5691 (copy_b_bl_blx): Move common part to ...
5692 (install_b_bl_blx): .. this. New.
5693 (arm_copy_b_bl_blx): New.
5694 (copy_bx_blx_reg): Move common part to ...
5695 (install_bx_blx_reg): ... this. New.
5696 (arm_copy_bx_blx_reg): New.
5697 (copy_alu_reg): Move common part to ...
5698 (install_alu_reg): ... this. New.
5699 (arm_copy_alu_reg): New.
5700 (copy_alu_shifted_reg): Move common part to ...
5701 (install_alu_shifted_reg): ... this. New.
5702 (copy_ldr_str_ldrb_strb): Move common part to ...
5703 (install_ldr_str_ldrb_strb): ... this. New.
5704 (arm_copy_ldr_str_ldrb_strb): New.
5705 (copy_copro_load_store): Move some common part to ...
5706 (install_copy_copro_load_store): ... this. New.
5707 (arm_copy_copro_load_store): New.
5709 (arm_copy_svc): Renamed from copy_svc.
5710 (copy_undef): Delete.
5711 (arm_copy_undef): Renamed from copy_undef.
5712 (decode_ext_reg_ld_st): Delete.
5713 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5714 (decode_svc_copro): Delete.
5715 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5716 (copy_copro_load_store, copy_alu_imm): update callers.
5717 (copy_extra_ld_st, copy_block_xfer): Likewise.
5718 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5719 (decode_miscellaneous, decode_dp_misc): Likewise.
5720 (decode_ld_st_word_ubyte, decode_media): Likewise.
5721 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5722 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5723 (decode_unconditional, decode_miscellaneous): Likewise.
5724 (decode_media, decode_b_bl_ldmstm): Likewise.
5725 (arm_process_displaced_insn): Likewise..
5726 (decode_misc_memhint_neon): Delete.
5727 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5728 (decode_miscellaneous): Delete.
5729 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5730 (decode_dp_misc): Delete.
5731 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5732 (decode_ld_st_word_ubyte): Delete.
5733 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5734 (decode_media): Delete.
5735 (arm_decode_media): Renamed from decode_media.
5736 (decode_b_bl_ldmstm): Delete.
5737 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5738 (decode_ext_reg_ld_st): Delete.
5739 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5740 (decode_unconditional): Delete.
5741 (arm_decode_unconditional): Renamed from decode_unconditional.
5743 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5745 Case insensitive lookups implementation.
5746 * dwarf2read.c: Include ctype.h.
5747 (struct mapped_index): New field version.
5748 (mapped_index_string_hash): New parameter index_version. New comment
5749 for it. Call tolower appropriately.
5750 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5751 Choose the right index version for mapped_index_string_hash.
5752 (dwarf2_read_index): Support also the index version 5. Initialize the
5753 new struct mapped_index field version.
5754 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5755 (find_slot): Explain the version needs. Pass INT_MAX for the new
5757 (write_psymtabs_to_index): Produce version 5.
5758 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5759 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5760 * psymtab.c (lookup_partial_symbol): Find the
5761 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5763 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5765 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5766 (completion_list_add_name): New variable ncmp, initialize it, use it.
5767 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5768 * utils.c (strcmp_iw): Support case_sensitive_off.
5769 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5770 New function comment part. New variables saved_string1,
5771 saved_string2 and case_pass. Add a proper second pass.
5773 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5775 Replace re_comp/re_exec by regcomp/regexec.
5776 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5777 (search_symbols_name_matches): Use them, use regexec.
5778 (search_symbols): New variable retval_chain, adjust the use of
5779 old_chain against it. Replace re_comp by regcomp. Use the new struct
5780 search_symbols_data fields, use regexec instead of re_exec.
5782 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5784 Format the code for the next patch.
5785 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5786 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5787 New variables c1 and c2.
5789 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5791 * infrun.c (proceed): Do not single-step into signal delivery
5792 when stepping off a breakpoint location.
5793 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5794 (insert_step_resume_breakpoint_at_caller): Likewise.
5795 (insert_step_resume_breakpoint_at_sal): Likewise.
5796 (insert_longjmp_resume_breakpoint): Likewise.
5798 2011-04-27 Yao Qi <yao@codesourcery.com>
5800 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5802 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5804 * procfs.c (procfs_pass_signals): Fix advance declaration.
5806 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5808 * target.h (struct target_ops): Remove to_notice_signals;
5809 add to_pass_signals.
5810 (target_notice_signals): Remove.
5811 (target_pass_signals): Add prototype.
5812 * target.c (update_current_target): Remove to_notice_signals;
5813 mention to_pass_signals.
5814 (target_pass_signals): New function.
5815 (debug_to_notice_signals): Remove.
5816 (setup_target_debug): Do not install debug_to_notice_signals.
5818 * infrun.c (signal_pass): New global.
5819 (resume): Call target_pass_signals.
5820 (handle_inferior_event): Report all signals while stepping over
5821 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5822 are re-inserted when stepping over a signal handler.
5823 (signal_cache_update): New function.
5824 (signal_stop_update): Call it.
5825 (signal_print_update): Likewise.
5826 (signal_pass_update): Likewise.
5827 (handle_command): Call signal_cache_update and target_pass_signals
5828 instead of target_notice_signals.
5829 (_initialize_infrun): Initialize signal_pass.
5831 * linux-nat.c (pass_mask): New global.
5832 (linux_nat_pass_signals): New function.
5833 (linux_nat_create_inferior): Report all signals initially.
5834 (linux_nat_attach): Likewise.
5835 (linux_nat_resume): Use pass_mask to decide whether to directly
5836 handle an inferior signal.
5837 (linux_nat_wait_1): Likewise.
5838 (linux_nat_add_target): Install to_pass_signals callback.
5840 * nto-procfs.c (notice_signals): Remove.
5841 (procfs_resume): Do not call notice_signals.
5842 (procfs_notice_signals): Remove.
5843 (procfs_pass_signals): New function.
5844 (init_procfs_ops): Install to_pass_signals callback instead of
5845 to_notice_signals callback.
5846 (_initialize_procfs): Report all signals initially.
5848 * procfs.c (procfs_notice_signals): Remove.
5849 (procfs_pass_signals): New function.
5850 (procfs_target): Install to_pass_signals callback instead of
5851 to_notice_signals callback.
5852 (register_gdb_signals): Remove.
5853 (procfs_debug_inferior): Report all signals initially.
5854 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5856 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5857 parameters; use them instead of calling signal_..._state routines.
5858 (remote_notice_signals): Remove.
5859 (remote_start_remote): Report all signals initially.
5860 (remote_resume): Do not call remote_pass_signals.
5861 (_initialize_remote): Install to_pass_signals callback instead of
5862 to_notice_signals callback.
5864 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5866 * breakpoint.c (user_settable_breakpoint): Delete.
5867 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5868 (delete_command): Check user_breakpoint_p instead of looking at
5869 the breakpoint's type.
5870 (disable_command): Ditto.
5871 (enable_command): Ditto.
5872 (delete_trace_command): Use user_breakpoint_p instead of looking
5873 at the breakpoint number directly. When checking if there are
5874 user visible tracepoints, in order to know whether to ask the user
5875 for confirmation, check whether the breakpoint is actually a
5878 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5880 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5883 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5885 MI breakpoint notifications.
5887 * annotate.c (breakpoint_changed): Adjust parameter type.
5888 * breakpoint.c (set_breakpoint_condition): Adjust to change
5889 in breakpoint_modified type.
5890 (breakpoint_set_commands): Likewise.
5891 (do_map_commands_command): Likewise.
5892 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5893 changed after bumping hit count.
5894 (bpstat_stop_status): Likewise.
5895 (print_one_breakpoint_location): Don't wrap in tuple here.
5896 (print_one_breakpoint): Always print individual locations.
5897 For locations, use unnamed tuple.
5898 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5900 (create_catchpoint, create_syscall_event_catchpoint): Call
5901 breakpoint_created obsever.
5902 (mention): Don't call breakpoint_created observer.
5903 (create_breakpoint_sal): Call breakpoint_created observer.
5904 (create_breakpoint, watch_command_1): Likewise.
5905 (create_ada_exception_breakpoint): Likewise.
5906 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5907 (locations_are_equal): New.
5908 (update_breakpoint_locations): If locations were changed, notify.
5909 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5910 Call breakpoint_modified observer.
5912 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5913 (mi_cmd_break_insert): Don't set observers for modify and delete.
5914 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5915 (mi_breakpoint_created, mi_breakpoint_deleted)
5916 (mi_breakpoint_modified): New.
5917 (mi_interpreter_init): Hook the above.
5918 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5919 while -break-* commands are executing.
5920 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5921 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5923 (mi_ui_out_impl): Hook in mi_redirect.
5924 (mi_field_skip): True to the name, skip the field, don't output
5925 a field with an empty value.
5927 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5928 (gdbpy_breakpoint_deleted): Adjust.
5929 * tui/tui-hooks.c (tui_event_create_breakpoint)
5930 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5932 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5934 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5935 (procfs_remove_hw_watchpoint): Likewise.
5937 2011-04-26 Michael Walle <michael@walle.cc>
5939 * remote.c (remote_start_remote): Ack packet after sending the
5942 2011-04-26 Yao Qi <yao@codesourcery.com>
5944 * linux-nat.c: Move common macros to ...
5945 Include linux-ptrace.h.
5946 * common/linux-ptrace.h: ... here. New.
5948 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5950 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5951 !objfile_has_partial_symbols. New comment.
5952 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5953 SYM_READ_PSYMBOLS is not present. Extend the comment.
5954 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5956 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5958 * defs.h (ENUM_BITFIELD): Remove.
5960 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5961 Eli Zaretskii <eliz@gnu.org>
5963 * NEWS: Document the new gdbserver --once option.
5965 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5967 * MAINTAINERS: Update my email address.
5969 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5971 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5972 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5973 function call if __STDC_ISO_10646__ macro is defined.
5974 (intermediate_encoding): New prototype.
5975 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5976 to generate compile time error for unsupported gdb_wchar_t size.
5977 (ENDIAN_SUFFIX): New macro.
5978 (intermediate_encoding): New function.
5980 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 * ada-lang.c (struct add_partial_datum): Update the comment for
5983 expand_partial_symbol_name.
5984 (ada_add_partial_symbol_completions): Rename to ...
5985 (ada_expand_partial_symbol_name): ... here, change return type, update
5986 function comment, call symbol_completion_match instead of
5987 symbol_completion_add.
5988 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5989 and ada_expand_partial_symbol_name.
5990 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5992 (dw2_map_symbol_names): Remove.
5993 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5994 * psymtab.c (map_symbol_names_psymtab): Remove.
5995 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5996 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5998 (psym_functions): Unlist map_symbol_names_psymtab.
5999 (map_partial_symbol_names): Rename to ...
6000 (expand_partial_symbol_names): ... here, change the FUN type, call
6001 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6002 * psymtab.h (map_partial_symbol_names): Rename to ...
6003 (expand_partial_symbol_names): ... here, change the FUN type.
6004 * symfile.h (struct quick_symbol_functions): Update the description of
6005 expand_symtabs_matching. Remove map_symbol_names.
6006 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6007 (struct add_name_data): Update the comment for
6008 expand_partial_symbol_name.
6009 (add_partial_symbol_name): Rename to ...
6010 (expand_partial_symbol_name): ... here. Replace
6011 completion_list_add_name call by strncmp.
6012 (default_make_symbol_completion_list_break_on): Use now
6013 expand_partial_symbol_names and expand_partial_symbol_name.
6014 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6016 2011-04-20 Tom Tromey <tromey@redhat.com>
6018 * dwarf2read.c (save_gdb_index_command): Replace format
6019 documentation with a pointer to the manual.
6021 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6023 * regcache.c: Include remote.h.
6024 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6025 (regcache_dump): Handle regcache_dump_remote.
6026 (maintenance_print_remote_registers): New function.
6027 (_initialize_regcache): Install "maint print remote-registers"
6029 * remote.c (map_regcache_remote_table): New function, factored out
6031 (init_remote_state): ... here.
6032 (remote_register_number_and_offset): New.
6033 * remote.h (remote_register_number_and_offset): Declare.
6035 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6037 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6038 null_ptid, assume and allow a NULL address space, instead of
6039 asking the target for the ptid's address space.
6040 * infrun.c (ptid_is_pid): Remove assertion.
6042 2011-04-19 Tom Tromey <tromey@redhat.com>
6044 * windows-tdep.c (windows_xfer_shared_library):
6045 * windows-nat.c (get_module_name, windows_make_so):
6046 * v850-tdep.c (v850_handle_pushm):
6047 * utils.c (null_cleanup, gdb_realpath):
6048 * ui-out.c (get_next_header):
6049 * tracepoint.c (clear_traceframe_info):
6050 * symtab.c (lookup_symtab):
6051 * serial.h (struct serial_ops):
6052 * mipsread.c (read_alphacoff_dynamic_symtab):
6053 * infcmd.c (print_return_value):
6054 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6055 * f-exp.y (parse_number):
6056 * exceptions.c (catch_exceptions):
6057 * dummy-frame.c (dummy_frame_this_id):
6058 * defs.h (struct cleanup):
6059 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6060 * arm-tdep.c (arm_push_dummy_call):
6061 * amd64-tdep.h (amd64_collect_xsave):
6062 * amd64-tdep.c (amd64_collect_xsave):
6063 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6064 * README (typing): Remove duplicate words.
6065 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6066 * infrun.c (siginfo_value_read): Fix typo.
6067 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6068 * top.c (source_line_number): Add comma.
6070 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6072 * thread.c (any_live_thread_of_process): Prioritize threads
6073 that are not executing.
6074 * gdbthread.h (any_live_thread_of_process): Update comment
6075 as per above change.
6077 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6079 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6080 (scan_xcoff_symtab): Likewise.
6082 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6084 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6087 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6088 Pedro Alves <pedro@codesourcery.com>
6090 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6091 variables to simplify code and avoid == operator at end of
6092 line as this is against GNU coding standards.
6094 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6096 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6097 lm_name to name_lm to avoid conflict with lm_name function.
6099 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6101 ARI fixes: Use only lowercase function name for static functions.
6102 * nto-tdep.c (LM_ADDR): Rename to...
6103 (lm_addr): New function name.
6104 (nto_relocate_section_addresses): Adapt to change above.
6105 * solib-sunos.c (LM_ADDR): Rename to...
6106 (lm_addr): New function name.
6107 (LM_NEXT): Rename to...
6108 (lm_next): New function name.
6109 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6110 function name changes above.
6111 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6112 (lm_addr_from_link_map): New function name.
6113 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6114 (has_lm_dynamic_from_link_map): New function name.
6115 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6116 (lm_dynamic_from_link_map): New function name.
6117 (LM_ADDR_CHECK): Rename to...
6118 (lm_addr_check): New function name.
6119 (LM_NEXT): Rename to...
6120 (lm_next): New function name.
6121 (LM_PREV): Rename to...
6122 (lm_prev): New function name.
6123 (LM_NAME): Rename to...
6124 (lm_name): New function name.
6125 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6126 (ignore_first_link_map_entry): New function name.
6127 (svr4_keep_data_in_core): Adapt to function name changes above.
6128 (svr4_current_sos): Likewise.
6129 (enable_break): Likewise.
6130 (svr4_relocate_section_addresses): Likewise.
6132 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6135 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6136 sprintf. Simplify code and avoid loosing memory.
6137 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6138 (call0_frame_cache): Remove && operator from end of line.
6140 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6142 Fix libraries displacement if they change whether they were prelinked.
6143 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6144 does not match. Comment why.
6146 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6148 * corelow.c: Include wrapper.h.
6149 (core_open): Call now gdb_target_find_new_threads.
6150 * wrapper.c: Include target.h.
6151 (gdb_target_find_new_threads): New.
6152 * wrapper.h (gdb_target_find_new_threads): New declaration.
6154 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6156 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6157 even if !TARGET_HAS_EXECUTION.
6159 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6161 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6162 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6163 bfd_get_synthetic_symtab.
6164 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6165 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6166 parameter parent, remove the call to add_separate_debug_objfile.
6167 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6168 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6169 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6170 parent, new comment for it, call add_separate_debug_objfile for it.
6171 (symbol_file_add_separate): Pass objfile as the parameter parent,
6172 remove the call to add_separate_debug_objfile.
6173 (symbol_file_add_from_bfd): New parameter parent, pass it.
6174 (symbol_file_add): Pass NULL to the new parameter parent.
6175 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6177 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6179 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6182 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6184 Fix Python access to inlined frames.
6185 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6186 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6188 2011-04-15 Tom Tromey <tromey@redhat.com>
6190 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6192 2011-04-15 Gary Benson <gbenson@redhat.com>
6194 * MAINTAINERS: Add myself to write-after-approval section.
6196 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6198 * remote-sim.c (sim_command_completer): New function.
6199 (_initialize_remote_sim): Set completer to sim_command_completer.
6201 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6203 * breakpoint.c (print_exception_catchpoint): Rename to ...
6204 (print_it_exception_catchpoint): ... this.
6205 (gnu_v3_exception_catchpoint_ops): Update with new name
6206 for print_it_exception_catchpoint.
6208 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6210 * MAINTAINERS: Add myself for write after approval privileges.
6212 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6214 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6216 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6218 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6220 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6222 * breakpoint.c (save_breakpoints): Verify whether
6223 breakpoint_ops.print_recreate is defined before calling it.
6225 2011-04-11 Gary Benson <gbenson@redhat.com>
6227 Fix failure with --enable-maintainer-mode.
6228 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6230 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6233 * symtab.c (search_symbols): Reorder the KIND description in the
6234 function comment. Remove the unused 4th element of types, types2,
6235 types3 and types4. New gdb_assert on KIND.
6236 (symtab_symbol_info): Remove the unused 4th element of classnames.
6237 New gdb_assert on KIND.
6238 * symtab.h (enum search_domain): New warning in the enum comment.
6239 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6242 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6244 Fix crash of gdb save-index on a STABS file.
6245 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6248 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6250 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6251 * dwarf2read.c: Include ctype.h.
6252 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6254 (dwarf2_add_field): Fix new_field->accessibility by calling
6255 dwarf2_default_access_attribute. Restructure setting accessibility
6257 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6258 is_private and is_protected by calling
6259 dwarf2_default_access_attribute.
6261 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6263 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6264 to the initialization.
6266 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6268 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6271 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6273 Remove support for old Cygwin 1.5 versions.
6274 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6275 function on old Cygwin version.
6276 * windows-nat.c: Remove cygwin version check and always define
6277 __USEWIDE for Cygwin compilation.
6279 2011-04-07 Yao Qi <yao@codesourcery.com>
6281 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6283 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6284 (arm_copy_svc): Remove parameters INSN and TO.
6285 (decode_svc_copro): Update caller.
6286 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6287 from function pointer `copy_svc_os'.
6289 2011-04-07 Yao Qi <yao@codesourcery.com>
6291 * arm-tdep.c (cleanup_branch): Set a correct return address in
6292 LR for ARM and Thumb.
6294 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6297 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6298 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6299 in the function comment, a new note on values compatibility.
6300 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6301 * symtab.h (SYMBOL_HASH_NEXT): New.
6303 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6305 * ppc-linux-nat.c (check_condition): Add len output parameter.
6306 Set it based on the memory region referenced in the condition
6307 expression. Update all callers.
6309 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6311 Fix crash regression on systems featuring .gdb_index.
6312 * objfiles.c (free_objfile): Move the
6313 forget_cached_source_info_for_objfile call earlier. Comment it.
6314 Extend the comment for objfile_free_data.
6316 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6318 Fix regression of displaying the debug format.
6319 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6322 2011-04-04 Tom Tromey <tromey@redhat.com>
6324 * cli/cli-interp.c (struct captured_execute_command_args):
6326 (do_captured_execute_command): Remove.
6327 (safe_execute_command): Use TRY_CATCH.
6328 * cli/cli-script.c (struct wrapped_read_command_file_args):
6330 (wrapped_read_command_file): Remove.
6331 (script_from_file): Use TRY_CATCH.
6332 * exceptions.c (catch_exception): Remove.
6333 * exceptions.h (catch_exception): Remove.
6334 (deprecated_throw_reason): Update comment.
6335 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6336 argument to 'context'.
6337 (mi_execute_command): Use TRY_CATCH.
6338 * remote.c (struct start_remote_args): Remove.
6339 (remote_start_remote): Update; change arguments.
6340 (remote_open_1): Use TRY_CATCH.
6342 2011-04-04 Tom Tromey <tromey@redhat.com>
6344 * tracepoint.c (scope_info): Update.
6345 * symtab.c (decode_line_spec): Update.
6346 * python/python.c (gdbpy_decode_line): Update.
6347 * linespec.h (decode_line_1): Update.
6348 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6349 (decode_compound, find_method, symtab_from_filename)
6350 (decode_variable): Likewise.
6351 * cli/cli-cmds.c (edit_command): Update.
6352 (list_command): Update.
6353 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6355 (create_breakpoint): Update.
6356 (until_break_command): Update.
6357 (addr_string_to_sals): Update.
6358 (decode_line_spec_1): Update.
6360 2011-04-04 Tom Tromey <tromey@redhat.com>
6362 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6363 (do_captured_parse_breakpoint): Remove.
6364 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6365 Use TRY_CATCH directly.
6367 2011-04-04 Tom Tromey <tromey@redhat.com>
6369 * symtab.h (free_symtab): Remove.
6370 (forget_cached_source_info_for_objfile): Declare.
6371 * symmisc.c (free_symtab): Remove.
6372 * source.c (forget_cached_source_info_for_objfile): New function.
6373 (forget_cached_source_info): Use it.
6374 * objfiles.c (free_objfile): Simplify check before calling
6375 clear_current_source_symtab_and_line. Call
6376 forget_cached_source_info_for_objfile.
6378 2011-04-04 Tom Tromey <tromey@redhat.com>
6380 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6381 (new_symtab): Don't set `free_code' on symtab.
6382 (new_linetable): Properly handle size==0.
6383 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6384 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6386 * jv-lang.c (struct jv_per_objfile_data): New.
6387 (jv_per_objfile_free): Free the data.
6388 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6389 (get_java_class_symtab): Set the `dict' field on the
6390 jv_per_objfile_data.
6391 (free_class_block): Remove.
6392 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6395 2011-04-04 Tom Tromey <tromey@redhat.com>
6397 * symfile.c (reread_symbols): Update.
6398 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6400 * objfiles.c (allocate_objfile): Update.
6401 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6403 * cp-namespace.c (lookup_symbol_file): Don't call
6404 lookup_possible_namespace_symbol.
6405 (initialize_namespace_symtab, get_possible_namespace_block)
6406 (free_namespace_block, cp_check_possible_namespace_symbols)
6407 (check_possible_namespace_symbols_loop)
6408 (check_one_possible_namespace_symbol)
6409 (lookup_possible_namespace_symbol): Remove.
6410 (maintenance_cplus_namespace): Replace with notice.
6411 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6413 2011-04-04 Tom Tromey <tromey@redhat.com>
6415 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6416 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6417 * symmisc.c (free_symtab): Don't free debugformat.
6418 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6419 (record_debugformat, record_producer): Document.
6420 * buildsym.c (end_symtab): Don't save debugformat and producer
6422 (end_symtab): Don't free debugformat and producer fields.
6423 (record_debugformat): Don't call xstrdup.
6424 (record_producer): Likewise.
6426 2011-04-04 Tom Tromey <tromey@redhat.com>
6428 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6429 (source_line_charpos, source_charpos_line): Remove.
6431 2011-04-04 Tom Tromey <tromey@redhat.com>
6433 * symtab.h (domain_enum): Split in two...
6434 (enum search_domain): New.
6435 (search_symbols): Update.
6436 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6437 redundant declarations.
6438 (search_symbols): Change 'kind' argument to search_domain.
6440 (print_symbol_info): Likewise.
6441 (symtab_symbol_info): Likewise.
6442 * symfile.h (struct quick_symbol_functions)
6443 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6444 <expand_symtabs_matching>: Likewise.
6445 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6446 (expand_symtabs_matching_via_partial): Update.
6447 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6448 (dw2_expand_symtabs_for_function): Update.
6449 * block.h: Moved anonymous enum...
6450 * defs.h (enum block_enum): ... here. Now named.
6452 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6454 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6455 * version.in: Bump version to 7.3.50.20110403-cvs.
6457 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6459 * NEWS: Create a new section for the next release branch.
6460 Rename the section of the current branch, now that it has
6463 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6465 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6466 for "fpscr" in target description.
6468 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6470 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6471 initialize it. Delay HASH initialization. Strip the part after open
6472 parenthesis for languages with qualifiers. Call do_cleanups.
6474 2011-04-01 Tom Tromey <tromey@redhat.com>
6476 * utils.c (report_command_stats): Don't print `-' for negative
6479 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6481 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6482 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6485 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6487 * breakpoint.h (bpdisp_text): Add declaration.
6488 * breakpoint.c (bpdisp_text): Make non-static.
6489 * ada-lang.c: #include "mi/mi-common.h".
6490 (print_it_exception): Rewrite to improve GDB/MI output.
6492 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6494 * arm-tdep.h (struct address_space): Add forward declaration.
6496 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6498 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6499 * arm-tdep.c (arm_override_mode): New global.
6500 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6501 execution mode heuristics.
6502 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6503 second single-step breakpoint if needed, using
6504 arm_insert_single_step_breakpoint.
6505 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6506 ARM execution mode, do not call thumb_get_next_pc_raw.
6507 (arm_get_next_pc): Encode execution mode in return value. Call
6508 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6509 (arm_insert_single_step_breakpoint): New function.
6510 (arm_software_single_step): Call it.
6511 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6512 argument to return execution mode of sigreturn target.
6513 (arm_linux_syscall_next_pc): Use it.
6514 (arm_linux_copy_svc): Update call.
6515 (arm_linux_software_single_step): Call
6516 arm_insert_single_step_breakpoint.
6518 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6520 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6523 2011-03-31 Tom Tromey <tromey@redhat.com>
6525 * varobj.c (update_dynamic_varobj_children): Properly handle
6526 errors from iterator.
6528 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6530 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6531 struct linkage name twice.
6533 2011-03-31 Tom Tromey <tromey@redhat.com>
6535 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6536 missing ">" to message.
6538 2011-03-31 Tom Tromey <tromey@redhat.com>
6540 * varobj.c (instantiate_pretty_printer): Remove duplicate
6543 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6545 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6546 if neither saved value nor register available (e.g. signal frame).
6548 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6550 * macroexp.c (expand): Avoid uninitialized variable
6553 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6555 * breakpoint.c (break_range_command): Fix typo in comment.
6557 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6558 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6560 Implement support for PowerPC BookE ranged breakpoints.
6561 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6562 * breakpoint.h (struct bp_target_info) <length>: New member
6564 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6565 instead of struct breakpoint as argument, and also add ASPACE
6566 and BP_ADDR arguments. Update all callers.
6567 (struct breakpoint_ops) <print_one_detail>: New method.
6568 (struct breakpoint) <addr_string_range_end>: New member variable.
6569 * breakpoint.c (breakpoint_location_address_match): Add function
6571 (insert_bp_location): Set bl->target_info.length.
6572 (breakpoint_here_p): Call breakpoint_location_address_match.
6573 (moribund_breakpoint_here_p): Likewise.
6574 (regular_breakpoint_inserted_here_p): Likewise.
6575 (breakpoint_thread_match): Likewise.
6576 (bpstat_stop_status): Likewise.
6577 (bpstat_check_location): Move call to
6578 breakpoint_ops.breakpoint_hit to the top.
6579 (print_one_breakpoint_location): Call
6580 breakpoint_ops.print_one_detail if available.
6581 (breakpoint_address_match_range): New function.
6582 (breakpoint_location_address_match): Likewise.
6583 (breakpoint_locations_match): Compare the length field of the
6585 (hw_breakpoint_used_count): Count resources used by all locations
6586 in a breakpoint, and use breakpoint_ops.resources_needed if
6588 (breakpoint_hit_ranged_breakpoint): New function.
6589 (resources_needed_ranged_breakpoint): Likewise.
6590 (print_it_ranged_breakpoint): Likewise.
6591 (print_one_ranged_breakpoint): Likewise.
6592 (print_one_detail_ranged_breakpoint): Likewise.
6593 (print_mention_ranged_breakpoint): Likewise.
6594 (print_recreate_ranged_breakpoint): Likewise.
6595 (ranged_breakpoint_ops): New structure.
6596 (find_breakpoint_range_end): New function.
6597 (break_range_command): Likewise.
6598 (delete_breakpoint): Free addr_string_range_end.
6599 (update_breakpoint_locations): Add SALS_END argument. Update
6600 all callers. Calculate breakpoint length if a non-zero SALS_END
6601 is given. Call breakpoint_locations_match instead of
6602 breakpoint_address_match.
6603 (reset_breakpoint): Find SaL of the end of the range if B is a
6605 (_initialize_breakpoint): Register break-range command.
6606 * defs.h (print_core_address): Add function prototype.
6607 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6609 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6610 (ppc_linux_remove_hw_breakpoint): Likewise.
6611 (_initialize_ppc_linux_nat): Initialize
6612 to_ranged_break_num_registers.
6613 * target.c (update_current_target): Add comment about
6614 to_ranged_break_num_registers.
6615 (target_ranged_break_num_registers): New function.
6616 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6618 (target_ranged_break_num_registers): Add function prototype.
6619 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6620 * utils.c (print_core_address): ... here.
6622 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6624 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6625 variable compiler warning.
6627 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6629 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6631 (re_set_breakpoint): ... to here ...
6632 (addr_string_to_sals): ... and here.
6634 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6636 * Makefile.in (SFILES): Add missing C sources.
6637 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6638 Add missing headers.
6640 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6642 * .gitignore: New file.
6644 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6646 * NEWS: Mention new cfi device simulation.
6648 2011-03-29 Tom Tromey <tromey@redhat.com>
6650 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6651 otherwise anonymous types.
6652 (dwarf2_name): Likewise.
6653 * valops.c (value_struct_elt_for_reference): Refine artificial
6654 type logic. Call error if j==-1.
6656 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6658 Fix false GCC warning.
6659 * infcall.c (find_function_addr): Initialize funaddr.
6661 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6663 Fix mingw compilation with --enable-targets=all.
6664 * remote-mips.c (gdb_usleep.h): Include header.
6665 (mips_enter_debug): Use gdb_usleep instead of sleep.
6667 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6669 Support resolution of STT_GNU_IFUNC via breakpoints.
6670 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6671 bp_gnu_ifunc_resolver_return.
6672 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6673 the loop. Support bp_gnu_ifunc_resolver and
6674 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6675 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6677 (bptype_string, print_one_breakpoint_location): Support
6678 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6679 (user_settable_breakpoint): Return true also for
6680 bp_gnu_ifunc_resolver.
6681 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6682 bp_gnu_ifunc_resolver_return.
6683 (set_breakpoint_location_function): New parameter explicit_loc,
6684 describe it. Call find_pc_partial_function_gnu_ifunc with new
6685 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6686 EXPLICIT_LOC is not set.
6687 (set_raw_breakpoint): Set EXPLICIT_LOC for
6688 set_breakpoint_location_function.
6689 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6690 set_breakpoint_location_function.
6691 (mention): Support bp_gnu_ifunc_resolver and
6692 bp_gnu_ifunc_resolver_return.
6693 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6694 set_breakpoint_location_function.
6695 (update_breakpoint_locations): Remove static.
6696 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6697 bp_gnu_ifunc_resolver_return.
6698 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6699 bp_gnu_ifunc_resolver_return.
6700 (update_breakpoint_locations): New declaration.
6701 * elfread.c: Include gdbthread.h and regcache.h.
6702 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6704 (elf_gnu_ifunc_fns): Install them.
6705 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6706 (stub_gnu_ifunc_resolver_return_stop): New functions.
6707 (stub_gnu_ifunc_fns): Install them.
6708 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6709 and gnu_ifunc_resolver_return_stop.
6710 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6712 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6714 STT_GNU_IFUNC reader implementation.
6715 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6716 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6717 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6718 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6719 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6720 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6721 (elf_gnu_ifunc_resolve_addr): New.
6722 (elf_symfile_read): Call elf_rel_plt_read.
6723 (elf_gnu_ifunc_fns): New.
6724 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6725 Install elf_gnu_ifunc_fns.
6726 * infcall.c (find_function_return_type): New function.
6727 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6728 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6729 (stub_gnu_ifunc_resolve_name): New functions.
6730 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6731 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6732 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6734 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6736 Code cleanup for later STT_GNU_IFUNC support.
6737 * infcall.c (find_function_addr): Remove variable code, use explicit
6738 dereferences for it. Move VALUE_TYPE initialization later.
6740 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6742 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6743 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6744 (clear_pc_function_cache): Clear it.
6745 (find_pc_partial_function): Rename to ...
6746 (find_pc_partial_function_gnu_ifunc): ... this function. New
6747 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6748 (find_pc_partial_function): New wrapper for this function.
6749 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6751 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6753 GDB internal type support for STT_GNU_IFUNC.
6754 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6755 (elf_symtab_read): Set mst_text_gnu_ifunc for
6756 BSF_GNU_INDIRECT_FUNCTION.
6757 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6758 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6759 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6760 nodebug_got_plt_symbol.
6761 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6762 (TYPE_GNU_IFUNC): New.
6763 (struct main_type): New field flag_gnu_ifunc.
6764 (struct builtin_type): New field builtin_func_func.
6765 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6766 nodebug_got_plt_symbol.
6767 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6768 (in_gnu_ifunc_stub): New.
6769 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6771 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6772 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6773 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6775 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6776 * symtab.c (search_symbols): Likewise.
6777 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6778 and mst_slot_got_plt.
6779 (in_gnu_ifunc_stub): New declaration.
6781 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6783 Support a ring of related breakpoints.
6784 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6785 other functions, add gdb_assert.
6786 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6787 watchpoint_del_at_next_stop.
6788 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6789 (bpstat_stop_status): Handle ring in related_breakpoint.
6790 (set_raw_breakpoint_without_location): Initialize ring in
6792 (delete_breakpoint): Handle ring in related_breakpoint, use
6793 watchpoint_del_at_next_stop.
6794 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6796 2011-03-28 Tom Tromey <tromey@redhat.com>
6799 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6800 with `language_minimal'.
6802 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6804 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6805 instead of checking for STT_ARM_TFUNC symbol type.
6807 2011-03-25 Tom Tromey <tromey@redhat.com>
6809 * linespec.c (symbol_found): Restore line-based result for
6810 non-LOC_LABEL symbols.
6812 2011-03-25 Kai Tietz <ktietz@redhat.com>
6814 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6815 instead of strcmp for comparison.
6816 (tui_source_is_displayed): Likewise.
6817 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6819 2011-03-24 Mark Wielaard <mjw@redhat.com>
6821 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6823 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6824 (find_partial_die_in_comp_unit): Likewise in comment.
6825 (read_attribute_value): Likewise.
6826 (lookup_die_type): Likewise.
6827 (dwarf_form_name): Likewise.
6828 (dump_die_shallow): Likewise.
6829 (follow_die_ref_or_sig): Likewise.
6831 2011-03-24 Tom Tromey <tromey@redhat.com>
6833 PR breakpoints/11816:
6834 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6835 (decode_compound): Update.
6836 (find_function_symbol): New function.
6837 (decode_dollar): Update.
6838 (decode_label): Add 'function_symbol' parameter. Handle
6839 function-relative labels.
6840 (decode_variable): Update.
6841 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6842 not its line. Set `special_display' and canonical name for
6845 2011-03-24 Tom Tromey <tromey@redhat.com>
6847 * linespec.h (struct linespec_result) <special_display>: New
6849 * breakpoint.h (struct breakpoint) <display_canonical>: New
6851 * breakpoint.c (print_breakpoint_location): Respect
6853 (create_breakpoint_sal): Add 'display_canonical' parameter.
6854 (create_breakpoints_sal): Update.
6855 (create_breakpoint): Update.
6857 2011-03-24 Tom Tromey <tromey@redhat.com>
6859 * symtab.c (decode_line_spec): Update.
6860 * linespec.c (build_canonical_line_spec): Change type of
6862 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6863 (find_method, decode_all_digits, decode_dollar, decode_label)
6864 (symbol_found): Likewise.
6865 (init_linespec_result): New function.
6866 * breakpoint.c (struct captured_parse_breakpoint_args)
6867 <canonical_p>: New field, replaces addr_string_p.
6868 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6870 (parse_breakpoint_sals): Likewise.
6871 (do_captured_parse_breakpoint): Update.
6872 (create_breakpoint): Use struct linespec_result.
6873 (until_break_command): Update.
6874 (breakpoint_re_set_one): Update.
6875 (decode_line_spec_1): Update.
6876 * linespec.h (struct linespec_result): New.
6877 (init_linespec_result): Declare.
6879 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6881 * regcache.c (regcache_raw_read): If the target didn't supply a
6882 given raw register, mark it as unavailable.
6884 2011-03-23 Kai Tietz <ktietz@redhat.com>
6886 * breakpoint.c (clear_command): Use filename_cmp
6887 instead of strcmp for comparison.
6888 * buildsym.c (watch_main_source_file_lossage): Likewise.
6889 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6890 checking just for slash.
6891 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6892 strrchr and filename_cmp instead of strcmp for filenames.
6893 (add_old_header_file): Use filename_cmp
6894 instead of strcmp for comparison.
6895 * exec.c (exec_set_section_address): Likewise.
6896 * macrotab.c (macro_lookup_inclusion): Likewise.
6897 (macro_lookup_inclusion): Likewise.
6898 * elfread.c (_initialize_elfread): Likewise.
6899 (elfstab_offset_sections): Likewise.
6900 (elfstab_offset_sections): Use lbasename instead of
6902 * mdebugread.c (parse_partial_symbols): Likewise.
6903 (arse_partial_symbols): Use filename_(n)cmp instead of
6904 str(n)cmp for comparison.
6905 * minsyms.c (lookup_minimal_symbol): Likewise.
6906 * psymtab.c (read_psymtabs_with_filename): Likewise.
6907 * solib.c (solib_read_symbols): Likewise.
6908 (reload_shared_libraries_1): Likewise.
6909 * symmisc.c (maintenance_print_symbols): Likewise.
6910 * symfile.c (separate_debug_file_exists): Likewise.
6911 (reread_symbols): Likewise.
6912 (find_separate_debug_file_by_debuglink): Likewise.
6913 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6914 * source.c (add_path): Likewise.
6915 * symtab.c (filename_seen): Likewise.
6916 (file_matches): Likewise.
6917 (print_symbol_info): Likewise.
6918 (maybe_add_partial_symtab_filename): Likewise.
6919 (make_source_files_completion_list): Likewise.
6920 * xml-syscall.c (init_sysinfo): Likewise.
6921 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6922 IS_DIR_SEPARATOR for checking for trailing path separator.
6924 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6926 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6927 label abort_expression.
6928 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6929 DWARF_VALUE_OPTIMIZED_OUT.
6931 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6934 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6935 to linkage_name. Invert its value. Update the function comment.
6936 (c_type_print_varspec_suffix): Invert it at the caller.
6937 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6939 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6941 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6942 errors when reading the `stop_pc'.
6943 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6946 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6948 * NEWS: Document gdb.Write stream keyword.
6950 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6953 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6954 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6955 (dwarf2_add_field): Fix new_field->accessibility for
6956 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6958 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6962 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6963 other error classes. Do not print stack trace.
6965 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6967 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6968 (dwarf2_add_field): Fix new_field->accessibility for
6969 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6971 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6973 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6974 encountering a load via a non-SP register.
6976 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6978 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6979 field in returned unwinder.
6981 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6983 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6985 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6987 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6990 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6992 * frame.c (frame_unwind_register): Throw an error if unwinding the
6994 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6995 an unwind stop reason.
6996 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6997 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6998 UNWIND_UNAVAILABLE>: New.
6999 * inline-frame.c (inline_frame_unwind): Install
7000 default_frame_unwind_stop_reason.
7001 * frame-unwind.c: Include "exceptions.h".
7002 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7003 (default_frame_unwind_stop_reason): New.
7004 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7005 (default_frame_unwind_stop_reason): Declare.
7006 (struct frame_unwind) <stop_reason>: New function pointer.
7008 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7009 * dwarf2-frame.c: Include exceptions.h.
7010 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7011 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7012 computing the CFA. If such an error was thrown, set
7013 unavailable_retaddr.
7014 (dwarf2_frame_unwind_stop_reason): New.
7015 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7017 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7018 (dwarf2_signal_frame_unwind): Ditto.
7020 * amd64-tdep.c: Include "exceptions.h".
7021 (struct amd64_frame_cache): New field "base_p".
7022 (amd64_init_frame_cache): Clear it.
7023 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7024 Avoid reading registers with functions that throw if the register
7025 is not necessary to compute the frame base.
7026 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7027 swallowing NOT_AVAILABLE_ERROR.
7028 (amd64_frame_unwind_stop_reason): New.
7029 (amd64_frame_this_id): Don't build a frame id if the frame base
7031 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7032 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7033 base_p if the frame base was computable.
7034 (amd64_sigtramp_frame_unwind_stop_reason): New.
7035 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7036 frame base was unavailable.
7037 (amd64_sigtramp_frame_unwind): Install
7038 amd64_sigtramp_frame_unwind_stop_reason.
7039 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7040 base_p if the frame base was computable.
7041 (amd64_epilogue_frame_unwind_stop_reason): New.
7042 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7043 frame base was unavailable.
7044 (amd64_epilogue_frame_unwind): Install
7045 amd64_epilogue_frame_unwind_stop_reason.
7046 * i386-tdep.c: Include "exceptions.h".
7047 (struct i386_frame_cache): New field "base_p".
7048 (i386_init_frame_cache): Clear it.
7049 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7050 Avoid reading registers with functions that throw if the register
7051 is not necessary to compute the frame base.
7052 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7053 swallowing NOT_AVAILABLE_ERROR.
7054 (i386_frame_unwind_stop_reason): New.
7055 (i386_frame_this_id): Don't build a frame id if the frame base was
7057 (i386_frame_prev_register): Handle unavailable SP.
7058 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7059 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7060 base_p if the frame base was computable.
7061 (i386_epilogue_frame_unwind_stop_reason): New.
7062 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7063 base was unavailable.
7064 (i386_epilogue_frame_unwind): Install
7065 i386_epilogue_frame_unwind_stop_reason.
7066 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7067 base_p if the frame base was computable.
7068 (i386_sigtramp_frame_unwind_stop_reason): New.
7069 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7070 base was unavailable.
7071 (i386_sigtramp_frame_unwind): Install
7072 i386_sigtramp_frame_unwind_stop_reason.
7073 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7074 type's size, not the register's.
7075 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7077 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7078 default_frame_unwind_stop_reason.
7079 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7080 (alpha_heuristic_frame_unwind): Ditto.
7081 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7082 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7083 * avr-tdep.c (avr_frame_unwind): Ditto.
7084 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7086 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7087 * frv-tdep.c (frv_frame_unwind): Ditto.
7088 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7089 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7090 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7091 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7092 (hppa_stub_frame_unwind): Ditto.
7093 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7094 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7095 (ia64_libunwind_frame_unwind)
7096 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7097 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7098 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7099 * m32c-tdep.c (m32c_unwind): Ditto.
7100 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7101 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7102 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7103 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7104 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7105 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7106 * mep-tdep.c (mep_frame_unwind): Ditto.
7107 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7108 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7109 (mips_stub_frame_unwind): Ditto.
7110 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7111 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7112 * mt-tdep.c (mt_frame_unwind): Ditto.
7113 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7114 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7115 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7116 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7117 (s390_sigtramp_frame_unwind): Ditto.
7118 * score-tdep.c (score_prologue_unwind): Ditto.
7119 * sh-tdep.c (sh_frame_unwind): Ditto.
7120 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7121 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7122 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7123 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7124 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7125 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7126 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7127 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7128 (sparc64obsd_trapframe_unwind): Ditto.
7129 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7130 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7131 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7132 * v850-tdep.c (v850_frame_unwind): Ditto.
7133 * vax-tdep.c (vax_frame_unwind): Ditto.
7134 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7135 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7136 * xtensa-tdep.c (xtensa_unwind): Ditto.
7138 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7140 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7141 there's always a frame. Use get_frame_pc_if_available instead of
7142 get_frame_pc, and if there's no PC available, don't look up a
7145 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7147 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7150 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7152 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7155 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7157 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7158 * frame.c (frame_unwind_caller_pc_if_available): New.
7159 * stack.c (frame_info): Handle unavailable PC.
7161 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7163 * frame.c (frame_unwind_pc): Rename to ...
7164 (frame_unwind_pc_if_available): ... this. New `pc' output
7165 parameter. Change return type to int. Gracefully handle
7166 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7167 happened, or 1 otherwise.
7168 (frame_unwind_pc): Reimplement on top of
7169 frame_unwind_pc_if_available.
7170 (get_frame_func): Rename to ...
7171 (get_frame_func_if_available): New `pc' output parameter. Change
7172 return type to int. Gracefully handle the PC not being available.
7173 (get_frame_func): Reimplement on top of
7174 get_frame_func_if_available.
7175 (select_frame): Handle the PC being unavailable.
7176 (get_prev_frame): Handle the PC being unavailable.
7177 (get_frame_pc_if_available): New.
7178 (get_frame_address_in_block_if_available): New.
7179 (find_frame_sal): Handle the frame PC not being available.
7180 * frame.h (get_frame_pc_if_available): Declare.
7181 (get_frame_address_in_block_if_available): Declare.
7182 (get_frame_func_if_available): Declare.
7183 * stack.c (print_frame_info): Handle the PC being unavailable.
7184 (find_frame_funname): Ditto.
7185 (print_frame): Handle the PC being unavailable.
7186 (get_frame_language): Ditto.
7187 * blockframe.c (get_frame_block): Ditto.
7188 * macroscope.c (default_macro_scope): Ditto.
7189 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7191 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7193 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7194 NOT_AVAILABLE_ERROR when evaluating the location expression.
7196 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7198 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7199 returning that the register piece is unavailable/optimized out.
7200 (write_pieced_value): Handle get_frame_register_bytes returning
7201 that the register piece is unavailable/optimized out when doing a
7202 read-modify write of a bitfield.
7203 * findvar.c (value_from_register): Handle get_frame_register_bytes
7204 returning that the register piece is unavailable/optimized out.
7205 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7206 and `unavailablep'. Throw error on bad debug info. Use
7207 frame_register instead of frame_register_read, to fill in the new
7209 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7211 * valops.c: (value_assign): Adjust, and handle
7212 get_frame_register_bytes failing.
7213 * spu-tdep.c: Include exceptions.h.
7214 (spu_software_single_step): Adjust, and handle
7215 get_frame_register_bytes failing.
7216 (spu_get_longjmp_target): Ditto.
7217 * gdbarch.sh (register_to_value): Change to return int. New
7218 parameters `optimizedp' and `unavailablep'.
7219 * gdbarch.h, gdbarch.c: Regenerate.
7220 * i386-tdep.c (i386_register_to_value): Adjust to new
7221 gdbarch_register_to_value interface.
7222 * i387-tdep.c (i387_register_to_value): Ditto.
7223 * i387-tdep.h (i387_register_to_value): Ditto.
7224 * alpha-tdep.c (alpha_register_to_value): Ditto.
7225 * ia64-tdep.c (ia64_register_to_value): Ditto.
7226 * m68k-tdep.c (m68k_register_to_value): Ditto.
7227 * mips-tdep.c (mips_register_to_value): Ditto.
7228 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7230 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7232 * findvar.c (value_of_register): Mark the value as unavailable, if
7233 the register is unavailable.
7234 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7235 (frame_register): New `unavailablep' parameter.
7236 (frame_register_read): Update comment.
7237 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7238 Set it if the register is unavailable. If the register is
7239 unavailable, clear the output buffer.
7240 (frame_register): New `unavailablep' parameter. Pass it down.
7241 (frame_unwind_register): Adjust.
7242 (put_frame_register): Adjust.
7243 (frame_register_read): Adjust. Also return false if the register
7245 (frame_register_unwind_location): Adjust.
7246 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7247 is unavailable, mark the value accordingly.
7248 * stack.c (frame_info): Handle unavailable registers.
7250 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7252 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7253 simplify, using regcache_cooked_read.
7255 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7257 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7258 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7259 (regcache_raw_read_unsigned, regcache_raw_read_part)
7260 (regcache_cooked_read, regcache_cooked_read_signed)
7261 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7262 (regcache_cooked_read_ftype): Change return to enum
7264 * regcache.c: Include exceptions.h
7265 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7266 (do_cooked_read): Change return to enum register_status. Always
7267 forward to regcache_cooked_read.
7268 (regcache_raw_read): Change return to enum register_status. If
7269 the register is not REG_VALID, memset the buffer. Return the
7271 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7272 return the register's status.
7273 (regcache_raw_read_unsigned): Ditto.
7274 (regcache_cooked_read): Change return to enum register_status.
7275 Assert that with read-only regcaches, the register's status must
7276 be known. If the regcache is read-only, and the register is not
7277 REG_VALID, memset the buffer. Return the register's status.
7278 (regcache_cooked_read_signed): Change return to enum
7279 register_status. Handle non-REG_VALID registers and return the
7281 (regcache_cooked_read_unsigned): Change return to enum
7282 register_status. Handle non-REG_VALID registers and return the
7284 (regcache_xfer_part, regcache_raw_read_part)
7285 (regcache_cooked_read_part): Change return to enum
7286 register_status. Return the register's status.
7287 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7289 (regcache_dump): Handle unavailable cooked registers.
7290 * frame.c (do_frame_register_read): Adjust interface to match
7291 regcache_cooked_read_ftype.
7292 * gdbarch.sh (pseudo_register_read): Change return to enum
7294 * gdbarch.h, gdbarch.c: Regenerate.
7296 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7298 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7299 register_status. If reading a raw register indicates the raw
7300 register is not valid, return the raw register's status,
7301 otherwise, return REG_VALID.
7302 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7303 register_status. Handle non-REG_VALID raw registers and return
7304 the register's status.
7305 * arm-tdep.c (arm_neon_quad_read)
7306 (arm_pseudo_read): Change return to enum register_status. Handle
7307 non-REG_VALID raw registers and return the register's status.
7308 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7309 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7310 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7311 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7312 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7314 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7315 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7316 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7317 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7318 (m32c_pseudo_register_read): Change return to enum
7319 register_status. Adjust.
7320 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7321 enum register_status. Return the register's status.
7322 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7323 register_status. Return the register's status.
7324 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7325 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7326 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7327 * rs6000-tdep.c (move_ev_register_func): New typedef.
7328 (e500_move_ev_register): Use it. Change return to enum
7329 register_status. Return the register's status.
7330 (do_regcache_raw_read): New function.
7331 (do_regcache_raw_write): New function.
7332 (e500_pseudo_register_read): Change return to enum
7333 register_status. Return the register's status. Use
7334 do_regcache_raw_read.
7335 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7336 (dfp_pseudo_register_read): Change return to enum register_status.
7337 Return the register's status.
7338 (vsx_pseudo_register_read): Ditto.
7339 (efpr_pseudo_register_read): Ditto.
7340 (rs6000_pseudo_register_read): Ditto.
7341 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7342 register_status. Return the register's status.
7343 * sh64-tdep.c (pseudo_register_read_portions): New function.
7344 (sh64_pseudo_register_read): Change return to enum
7345 register_status. Use pseudo_register_read_portions. Return the
7347 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7348 register_status. Return the register's status.
7349 * sh-tdep.c (pseudo_register_read_portions): New function.
7350 (sh_pseudo_register_read): Change return to enum register_status.
7351 Use pseudo_register_read_portions. Return the register's status.
7352 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7353 enum register_status. Return the register's status.
7354 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7355 * spu-tdep.c (spu_pseudo_register_read_spu)
7356 (spu_pseudo_register_read): Ditto.
7357 * xtensa-tdep.c (xtensa_register_read_masked)
7358 (xtensa_pseudo_register_read): Ditto.
7359 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7361 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7363 * python/py-value.c (valpy_getitem): Fix formatting of error function
7366 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7368 ARI fixes: Add missing internationalization markups throughout
7370 * darwin-nat-info.c: Ditto.
7373 * mi/mi-main.c: Ditto.
7375 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7377 ARI fixes: Add missing internationalization markups throughout
7380 * cp-name-parser.y: Ditto.
7383 * objc-exp.y: Ditto.
7386 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7388 ARI fixes: Messages should have no trailing new lines.
7389 * darwin-nat.c (mach_check_error): Remove trailing new line from
7390 warning function call message.
7391 * record.c (bfdcore_read): Idem for error call.
7393 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7395 * common/signals.c (target_signal_from_host): Add _ markup to error
7396 function call message.
7397 (target_signal_to_host): Add _ markup and remove trailing new line
7398 from warning call message.
7399 (target_signal_from_command): Add _ markup to error function call
7402 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7406 * python/python.c (gdbpy_write): Accept a stream argument and
7407 operate to the appropriate stream.
7408 (gdbpy_flush): Likewise.
7409 (_initialize_python): Add stream constants.
7410 (finish_python_initialization): Add GdbOutputErrorFile class.
7412 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7414 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7416 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7418 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7419 to store_signed_integer. Add debug message when relocating CALL
7420 instructions. Fix formatting of debug message.
7421 * i386-tdep.c (i386_relocate_instruction): Ditto.
7423 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7425 * target.h (struct target_ops): Remove to_lookup_symbol field.
7426 (target_lookup_symbol): Delete macro.
7427 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7428 (update_current_target, setup_target_debug): Remove handling
7429 of to_lookup_symbol target_ops field.
7430 * ada-tasks.c (get_known_tasks_addr): Remove use of
7431 target_lookup_symbol.
7432 * coffread.c (coff_symtab_read): Likewise.
7433 * dbxread.c (read_dbx_symtab): Ditto.
7435 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7438 * configure.ac: Add getthrds declaration check.
7439 * configure, config.in: Regenerate.
7440 * aix-thread.c (getthrds): Declare only if not already declared
7441 in procinfo.h. More declaration out of get_signaled_thread to
7444 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7446 * python/py-symtab.c: Populate symtab_object_methods,
7448 (stpy_is_valid): New function.
7449 (salpy_is_valid): Ditto.
7450 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7451 (sympy_is_valid): New function.
7452 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7453 (objfpy_is_valid): New function.
7454 * python/py-inferior.c: Populate inferior_object_methods.
7455 (infpy_is_valid): New function.
7456 * python/py-infthread.c: Populate thread_object_methods.
7457 (thpy_is_valid): New function.
7458 * python/py-block.c: Declare block_object_methods. Populate. Declare
7459 block_iterator_object_methods. Populate.
7460 (blpy_is_valid): New function.
7461 (blpy_iter_is_valid): Ditto.
7463 2011-03-16 Keith Seitz <keiths@redhat.com>
7465 * linespec.c (find_methods): Canonicalize NAME before looking
7467 (name_end): New function.
7468 (keep_name_info): New function.
7469 (decode_line_1): Use keep_name_info.
7470 (decode_compound): Likewise.
7471 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7472 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7475 * linespec.c (locate_first_half): Keep overload information, too.
7476 (decode_compound): Use a string to represent break characters
7478 If P points to a break character, do not increment it.
7479 For C++ and Java, keep overload information and relevant keywords.
7480 If we cannot find a symbol, search the minimal symbols.
7483 * linespec.c (decode_compound): Rename SAVED_ARG to
7485 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7487 Pass a valid block to lookup_symbol.
7488 (lookup_prefix_sym): Likewise.
7489 (find_method): Construct search name based on SYM_CLASS instead
7491 * psymtab.c (lookup_partial_symbol): Add language parameter.
7492 (lookup_symbol_aux_psymtabs): Likewise.
7493 Don't assume that the psymtab we found was the right one. Search
7494 for the desired symbol in the symtab to be certain.
7495 (psymtab_search_name): New function.
7496 (lookup_partial_symbol): Use psymtab_search_name.
7497 Add language parameter.
7498 (read_symtabs_for_function): Add language parameter and pass to
7499 lookup_partial_symbol.
7500 (find_symbol_file_from_partial): Likewise.
7502 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7505 * dwarf2read.c (noop_record_line): New function.
7506 (dwarf_decode_lines): Ignore line tables for GCd functions.
7508 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7510 Fix ARI warnings about new lines at the end of messages, which
7511 are unneeded as there is a new line added at the end of the message
7513 * darwin-nat.c (darwin_stop_inferior): Ditto.
7514 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7515 * dfp.c (decimal_to_number): Ditto.
7516 * exec.c (print_section_info): Ditto.
7517 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7518 * osdata.c (get_osdata): Ditto.
7519 * record.c (bfdcore_write): Ditto.
7520 * remote-mips.c (mips_readchar): Ditto.
7521 * remote.c (read_ptid): Ditto.
7522 * ser-mingw.c (ser_windows_raw): Ditto.
7523 * tracepoint.c (add_local_symbols): Ditto.
7524 * windows-nat.c (fake_create_process): Ditto.
7526 2011-03-16 Tom Tromey <tromey@redhat.com>
7528 * tracepoint.c (stop_tracing): Don't declare.
7529 * event-top.c (after_char_processing_hook): Add `(void)'.
7531 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7533 * NEWS: Add Parameter sub-classing description.
7535 2011-03-16 Kai Tietz <ktietz@redhat.com>
7537 * MAINTAINERS: Update my e-mail address.
7539 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7541 * MAINTAINERS: Add myself for write after approval privileges.
7543 2011-03-15 Michael Snyder <msnyder@vmware.com>
7545 * frame.c (find_frame_sal): Assert sym is not null.
7547 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7549 * objc-lang.c (selectors_info): Check strchr for null result.
7551 * stabsread.c (define_symbol): Guard against bad stabstring input.
7553 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7555 Remove trailing spaces and tabulations from pascal language
7560 p-valprint.c: Ditto.
7562 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7564 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7565 than LOW. Comment it.
7566 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7567 HIGHPC not strictly higher than LOWPC.
7569 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7571 Fix formatting of function declarations returning a pointer in
7573 * varobj.c (varobj_add_child): Ditto.
7574 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7575 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7577 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7579 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7580 for the "generic" vector ABI used with GCC 4.3 and later.
7581 (ppc64_sysv_abi_return_value): Likewise.
7583 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7585 * infcall.c (call_function_by_hand): Function return value is
7586 always a non_lval, even when using struct_return.
7588 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7590 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7591 (map_display_numbers): New.
7592 (do_delete_display): New.
7593 (undisplay_command): Use map_display_numbers.
7594 (do_enable_disable_display): New.
7595 (enable_disable_display_command): New function.
7596 (enable_display): Delete.
7597 (enable_display_command): New.
7598 (disable_display_command): Reimplement.
7599 (_initialize_printcmd): Adjust "enable display" command to use
7600 `enable_display_command' as callback.
7602 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7604 * NEWS: Add Python breakpoint 'stop' operation.
7606 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7608 * NEWS: Delete duplicate entry. Fix typo.
7610 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7612 Fix ARI warning about function names in first column.
7613 Put prototype declaration on same line as return type.
7614 * objc-exp.y: Ditto.
7616 * python/py-stopevent.h: Ditto.
7617 For long function names, split parameters to
7618 allow function name on same line as return type.
7619 * solib-pa64.c: Ditto.
7622 For long function declaration, use single line.
7623 * hppa-tdep.h: Ditto.
7624 * inferior.h: Ditto.
7626 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7628 * python/python.h: Declare gdbpy_should_stop and
7629 gdbpy_breakpoint_has_py_cond.
7630 * python/python.c: Add python.h to includes. Remove python.h from
7631 HAVE_PYTHON definition
7632 (gdbpy_should_stop): New dummy function.
7633 (gdbpy_breakpoint_has_py_cond): New dummy function.
7634 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7635 sub-classing capabilities.
7636 (gdbpy_should_stop): New function.
7637 (gdbpy_breakpoint_has_py_cond): New function.
7638 (local_setattro): New function.
7639 * breakpoint.c (condition_command): Add check for Python 'stop'
7641 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7642 operation function as part of stop/continue tests.
7644 2011-03-14 Tom Tromey <tromey@redhat.com>
7647 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7648 (needs_frame_dwarf_call): Likewise.
7650 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7652 Fix ARI warning about functions without parameters that do not
7654 * breakpoint.c (all_tracepoints): Replace () by (void).
7655 * f-exp.y (match_string_literal): Ditto.
7657 * m2-exp.y (yylex): Ditto.
7658 * mep-tdep.c (current_me_module): Ditto.
7659 (current_options): Ditto.
7660 (current_cop_data_bus_width): Ditto.
7661 (current_cr_names): Ditto.
7662 (current_cr_is_float): Ditto.
7663 (current_ccr_names): Ditto.
7664 * objc-exp.y (yylex): Ditto.
7665 * p-exp.y (yylex): Ditto.
7666 * remote.c (send_interrupt_sequence): Ditto.
7667 * tracepoint.c (current_trace_status): Ditto.
7668 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7669 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7671 2011-03-11 Michael Snyder <msnyder@vmware.com>
7673 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7674 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7675 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7676 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7677 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7679 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7680 (delete_async_event_handler): Ditto.
7682 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7684 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7686 * top.c (set_verbose): Assert showcmd was found.
7688 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7690 * xtensa-tdep.c (warning_once): Correct style issues.
7692 2011-03-11 Yao Qi <yao@codesourcery.com>
7694 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7696 2011-03-11 Andreas Schwab <schwab@redhat.com>
7698 * common/aclocal.m4: Remove.
7700 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7702 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7703 (xtensa_write_register, xtensa_read_register): Likewise.
7704 (xtensa_hextochar): Removed.
7705 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7707 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7709 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7710 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7711 (xtensa_alloc_frame_cache): Add initialization for new fields.
7712 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7713 (warning_once): New function.
7714 (xtensa_insn_kind): New item c0opc_and.
7715 (call0_classify_opcode): Add the case for AND instruction.
7716 (call0_track_op): Change arguments. New local variable litbase.
7717 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7718 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7720 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7721 (call0_analyze_prologue): Update the comments. Change arguments.
7722 Add the variety of updates to handle extended prologues, which now can
7723 conduct dynamic stack adjustments.
7724 (call0_frame_cache): Likewise.
7725 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7726 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7728 2011-03-10 Michael Snyder <msnyder@vmware.com>
7730 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7731 (cmd_qtframe): Ditto.
7732 (cmd_qtbuffer): Ditto.
7733 (cmd_bigqtbuffer): Ditto.
7735 2011-03-10 Tom Tromey <tromey@redhat.com>
7737 * tracepoint.c (trace_actions_command): Update.
7738 * thread.c (thread_apply_command): Update.
7739 * reverse.c (delete_bookmark_command): Update.
7740 (bookmarks_info): Update.
7741 * printcmd.c (undisplay_command): Update.
7742 * memattr.c (mem_enable_command): Update.
7743 (mem_disable_command): Update.
7744 (mem_delete_command): Update.
7745 * inferior.c (detach_inferior_command): Update.
7746 (kill_inferior_command): Update.
7747 (remove_inferior_command): Update.
7748 * cli/cli-utils.h (struct get_number_or_range_state): New.
7749 (init_number_or_range): Declare.
7750 (get_number_or_range): Update.
7751 * cli/cli-utils.c (init_number_or_range): New function.
7752 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7754 (number_is_in_list): Update.
7755 * breakpoint.h (get_tracepoint_by_number): Update.
7756 * breakpoint.c (map_breakpoint_numbers): Update for change to
7757 get_number_or_range.
7758 (find_location_by_number): Use get_number, not
7759 get_number_or_range.
7760 (trace_pass_set_count): New function.
7761 (trace_pass_command): Update for change to get_number_or_range.
7763 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7766 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7768 * python/py-param.c (add_setshow_generic): Add set/show callback
7769 parameters. Register Python object context.
7770 (get_show_value): New function.
7771 (get_set_value): New function.
7772 (call_doc_function): New function.
7773 (get_doc_string): Move behind get_show_value/get_set_value.
7775 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7777 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7779 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7781 * xtensa-tdep.c (xtensa_read_register): Add comment.
7782 (xtensa_write_register): Likewise.
7783 (xtensa_hextochar): Add comment and update to match coding conventions.
7784 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7785 (execute_l32e, execute_s32e, execute_code): Update comments.
7786 (xtensa_exception_handler_t): Update to match coding conventions.
7787 (xtensa_insn_kind): Likewise.
7789 2011-03-09 Michael Snyder <msnyder@vmware.com>
7791 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7793 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7795 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7797 2011-03-09 Tom Tromey <tromey@redhat.com>
7799 * thread.c (restore_selected_frame): Handle frame_level == -1.
7800 (make_cleanup_restore_current_thread): Use
7801 get_selected_frame_if_set.
7802 * frame.h (get_selected_frame_if_set): Declare.
7803 * frame.c (get_selected_frame_if_set): New function.
7805 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7807 * cli/cli-cmds.c (shell_escape): Use lbasename.
7808 * coffread.c (coff_start_symtab): Constify parameter.
7809 (complete_symtab): Constify `name' parameter.
7810 (coff_symtab_read): Constify `filestring' local.
7811 (coff_getfilename): Constify return and `result' local.
7813 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7814 * linux-fork.c (info_checkpoints_command): Use lbasename.
7815 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7816 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7817 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7818 * procfs.c (procfs_make_note_section): Use lbasename.
7819 * tui/tui-io.c (printable_part): Constity return and parameter.
7821 (print_filename): Constify parameters, and local `s'.
7822 (tui_rl_display_match_list): Constify local `temp'.
7824 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7827 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7828 Fix DWARF-3+ DW_AT_accessibility default assumption.
7829 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7830 cu->header.version >= 3.
7832 2011-03-09 Yao Qi <yao@codesourcery.com>
7834 * common/Makefile.in: Remove.
7835 * common/configure: Remove.
7836 * common/configure.ac: Remove.
7838 2011-03-09 Yao Qi <yao@codesourcery.com>
7841 2011-02-11 Yao Qi <yao@codesourcery.com>
7843 * common/Makefile.in: Add copyright header.
7845 2011-02-11 Yao Qi <yao@codesourcery.com>
7847 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7849 * configure.ac: Add common to sub dir.
7850 * configure: Regenerate.
7852 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7854 * xtensa-tdep.c (call0_ret): New function.
7855 (xtensa_skip_prologue): Speed up analysis.
7857 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7859 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7860 while executing MI command -data-list-changed-registers.
7862 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7864 * xtensa-tdep.c (xtensa_read_register): New function.
7865 (xtensa_write_register): New function.
7866 (xtensa_find_register_by_name): New function.
7867 (xtensa_windowed_frame_cache): Update comments in type description.
7868 (xtensa_frame_cache): Likewise.
7869 (xtensa_window_interrupt_insn): New function.
7870 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7871 (xtensa_insn_kind): Add new instructions.
7872 (rwx_special_register): New function.
7873 (call0_classify_opcode): Add new instructions to the analysis.
7874 (a0_saved, a7_saved, a11_saved): New variables.
7875 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7876 (execute_l32e): New function.
7877 (execute_s32e): New function.
7878 (xtensa_exception_handler_t): New type.
7879 (execute_code): New function.
7880 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7881 analysis for Xtensa Window Exception handlers.
7883 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7885 * xtensa-tdep.c (TX_PS): New.
7886 (windowing_enabled): Update to count for Call0 ABI.
7887 (xtensa_hextochar): New.
7888 (xtensa_init_reggroups): Make algorithm generic.
7889 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7891 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7893 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7895 2011-03-08 Michael Snyder <msnyder@vmware.com>
7897 * i386-tdep.c (i386_follow_jump): Check return value of
7899 (i386_analyze_struct_return): Ditto.
7900 (i386_skip_probe): Ditto.
7901 (i386_match_insn): Ditto.
7902 (i386_skip_noop): Ditto.
7903 (i386_analyze_frame_setup): Ditto.
7904 (i386_analyze_register_saves): Ditto.
7905 (i386_skip_prologue): Ditto.
7906 (i386_skip_main_prologue): Ditto.
7908 * target.c (read_whatever_is_readable): Fix memory leak.
7910 * i386-tdep.c (i386_process_record): Document fall through.
7912 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7914 Fix DWARF-3+ DW_AT_accessibility default assumption.
7915 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7916 cu->header.version >= 3.
7918 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7920 * remote.c (remote_check_symbols): Skip if the target has no
7923 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7925 * target.c (read_whatever_is_readable): Reformat comment,
7926 with a minor typo fix. Minor reformatting of the code.
7928 2011-03-08 Yao Qi <yao@codesourcery.com>
7930 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7931 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7932 Use cached result instead of calling displaced_in_arm_mode again.
7933 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7934 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7935 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7936 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7937 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7938 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7939 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7940 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7941 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7942 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7943 (arm_catch_kernel_helper_return): Likewise.
7944 * gdb/arm-tdep.h : Update function declarations.
7946 2011-03-07 Michael Snyder <msnyder@vmware.com>
7948 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7950 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7952 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7954 * elfread.c (elf_symtab_read): Stop memory leak.
7956 * main.c (captured_main): Fix memory leak.
7958 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7960 * ada-lang.c (compare_names): Call is_name_suffix with string1
7963 2011-03-07 Tom Tromey <tromey@redhat.com>
7965 * xcoffread.c (xcoff_sym_fns): Update.
7966 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7967 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7968 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7969 (symbol_file_add_with_addrs_or_offsets): Likewise.
7970 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7971 * somread.c (som_sym_fns): Update.
7972 * psymtab.h (require_partial_symbols): Declare.
7973 * psymtab.c (require_partial_symbols): New function.
7974 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7975 (ALL_OBJFILE_PSYMTABS): Undef.
7976 (ALL_PSYMTABS): Move from psympriv.h.
7977 (lookup_partial_symtab, find_pc_sect_psymtab)
7978 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7979 (find_last_source_symtab_from_partial)
7980 (forget_cached_source_info_partial)
7981 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7982 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7983 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7984 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7985 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7986 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7987 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7988 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7989 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7991 * mipsread.c (ecoff_sym_fns): Update.
7992 * machoread.c (macho_sym_fns): Update.
7993 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7994 (read_psyms): New function.
7995 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7996 (elf_sym_fns_lazy_psyms): New global.
7997 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7998 dwarf2_build_psymtabs.
7999 * dbxread.c (aout_sym_fns): Update.
8000 * coffread.c (coff_sym_fns): Update.
8002 2011-03-07 Tom Tromey <tromey@redhat.com>
8004 * infrun.c (print_exited_reason): Include inferior id and pid in
8007 2011-03-07 Tom Tromey <tromey@redhat.com>
8009 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8011 (target_has_execution_1): Update.
8012 (target_has_execution_current): Declare.
8013 (target_has_execution): Call target_has_execution_current.
8014 (default_child_has_execution): Update.
8015 * target.c (default_child_has_execution): Add 'the_ptid'
8017 (target_has_execution_1): Likewise.
8018 (target_has_execution_current): New function.
8019 (add_target): Update.
8020 (init_dummy_target): Update.
8021 * remote-m32r-sdi.c (m32r_has_execution): New function.
8022 (init_m32r_ops): Use it.
8023 * record.c (record_core_has_execution): Now static. Add
8024 'the_ptid' parameter.
8025 * inferior.c (have_live_inferiors): Don't save current thread.
8026 Use target_has_execution_1.
8028 2011-03-07 Yao Qi <yao@codesourcery.com>
8030 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8032 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8034 * elfread.c (elf_symtab_read): Minor reformatting.
8036 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8038 * objc-lang.c (selectors_info): Minor reformatting.
8040 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8042 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8044 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8045 Michael Snyder <msnyder@vmware.com>
8047 * ada-valprint.c (ada_val_print_array): Move the declaration of
8048 "byte_order" and "elttype" inside the block where these variables
8049 are actually used. Remove some special handling for the case
8050 where "elttype" and "eltlen" are null. Replace by a comment
8051 and a couple of assertion checks.
8053 2011-03-05 Michael Snyder <msnyder@vmware.com>
8055 * source.c (add_path): Replace semicolon at end of block.
8056 * dwarf2expr.c (execute_stack_op): Ditto.
8058 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8060 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8061 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8062 (bfin-*-*): Likewise.
8064 2011-03-05 Michael Snyder <msnyder@vmware.com>
8066 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8067 * mdebugread.c (parse_symbol): Ditto.
8068 * parse.c (parse_exp_in_context): Ditto.
8069 * source.c (add_path): Ditto.
8070 * utils.c (gnu_debuglink_crc32): Ditto.
8071 * varobj.c (variable_language): Ditto.
8073 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8075 2011-03-04 Michael Snyder <msnyder@vmware.com>
8077 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8079 * symfile.c (simple_overlay_update): Check for null return value
8080 from lookup_minimal_symbol.
8082 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8084 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8086 * eval.c (parse_and_eval_address_1): Remove function.
8087 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8088 instead of parse_and_eval_address_1.
8089 * value.h (parse_and_eval_address_1): Remove prototype.
8091 2011-03-04 Michael Snyder <msnyder@vmware.com>
8093 * remote.c (putpkt_binary): Document that case stmt falls through.
8095 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8097 * breakpointc (print_it_typical): Move NULL check from here...
8098 (print_bp_stop_message): ... to here.
8100 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8102 * breakpoint.c (enable_command): Use break instead of continue,
8103 and fill in a missing break.
8104 (disable_command): Ditto.
8106 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8108 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8109 (terminal_save_ours): Remove misleading comment.
8110 (inflow_inferior_data_cleanup): Free ttystate.
8111 (inflow_inferior_exit): Likewise.
8112 (copy_terminal_info): Copy ttystate.
8114 * serial.c (serial_copy_tty_state): New function.
8115 * serial.h (serial_copy_tty_state): Add prototype.
8116 (struct serial_ops): Add copy_tty_state callback.
8117 * ser-base.c (ser_base_copy_tty_state): New function.
8118 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8119 * ser-go32.c (dos_copy_tty_state): New function.
8120 (dos_ops): Install copy_tty_state callback.
8121 * ser-mingw.c (_initialize_ser_windows): Likewise.
8122 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8123 * ser-unix.c (hardwire_copy_tty_state): New function.
8124 (_initialize_ser_hardwire): Install it.
8126 2011-03-04 Michael Snyder <msnyder@vmware.com>
8128 * breakpoint.c (create_breakpoint): Add missing break statement.
8130 Reverting this patch:
8131 * infcall.c (call_function_by_hand): Add break statements for lint.
8133 Reverting this patch:
8134 * cli/cli-script.c (script_from_file): Add break for lint.
8136 2011-03-04 Michael Snyder <msnyder@vmware.com>
8138 * solib.c (reload_shared_libraries_1): Close memory leak.
8140 2011-03-03 Tom Tromey <tromey@redhat.com>
8143 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8146 2011-03-03 Michael Snyder <msnyder@vmware.com>
8148 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8149 fields of struct 'st' to zero.
8151 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8152 sal.pspace before calling set_current_source_symtab_and_line.
8154 2011-03-03 Yao Qi <yao@codesourcery.com>
8156 * Makefile.in (configure-common): Remove. Let Makefile
8157 in dir common to rebuild itself.
8158 (common/Makefile): Likewise.
8160 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8162 * utils.c (parse_escape): Add i18n markup in error message.
8164 2011-03-03 Yao Qi <yao@codesourcery.com>
8166 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8168 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8169 (displaced_write_reg, displaced_read_reg): Likewise.
8170 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8171 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8172 (cleanup_branch): Replace magic number 14 and 15 with
8173 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8175 2011-03-02 Michael Snyder <msnyder@vmware.com>
8177 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8179 * cli/cli-script.c (script_from_file): Add break for lint.
8181 * mdebugread.c (parse_partial_symbols): Fix indent.
8183 * target-descriptions.c (tdesc_gdb_type): No need to call
8184 xstrdup, callee saves a copy.
8186 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8188 * infcall.c (call_function_by_hand): Add break statements for lint.
8190 * utils.c (parse_escape): Escape the escape char.
8192 * python/py-inferior.c (build_inferior_list): Error out if
8193 PyList_Append fails.
8194 (gdbpy_inferiors): Error out if build_inferior_list fails.
8196 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8199 * record.c (record_restore): Move printf to before error return.
8201 2011-03-02 Yao Qi <yao@codesourcery.com>
8203 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8204 is_thumb and insn_size.
8205 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8206 on both ARM and Thumb mode.
8207 (arm_process_displaced_insn): Set is_thumb and insn_size.
8208 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8209 (arm_displaced_step_fixup): Likewise.
8211 2011-03-01 Michael Snyder <msnyder@vmware.com>
8213 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8215 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8217 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8219 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8221 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8224 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8225 which shadows function parameter.
8227 * tracepoint.c (create_tsv_from_upload): Superfluous call
8228 to xstrdup. Callee already calls xstrdup.
8230 * linespec.c (decode_line_1): Remove unnecessary null check.
8232 * tracepoint.c (scope_info): Fix mem leak, remove underused
8235 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8236 superfluous null check.
8238 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8239 (value_of_builtin_frame_fp_reg): Ditto.
8241 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8243 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8246 * linespec.c (decode_line_1): Check for null before dereference.
8248 * reverse.c (record_restore): Move null-check to before pointer
8251 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8253 * objc-lang.c (selectors_info): Add explanitory comment.
8254 (classes_info): Ditto.
8256 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8258 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8259 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8260 versions of the trampoline. Handle Thumb vs. ARM addresses.
8261 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8262 (arm_linux_init_abi): Install it.
8263 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8264 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8266 2011-02-28 Michael Snyder <msnyder@vmware.com>
8268 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8269 a little bigger, to avoid possibility of an overflow.
8271 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8272 buffers a little bigger, to avoid possibility of an overflow.
8274 * coffread.c (coff_getfilename): Add check to avoid overflow.
8276 * objc-lang.c (selectors_info): Add a small safety margin to
8278 (classes_info): Error out on too long REGEXP.
8280 * infrun.c (handle_inferior_event): Remove unused function call.
8282 * fork-child.c (fork_inferior): Remove ifdef'd code and
8285 * linux-thread-db.c (attach_thread): Discard unused value.
8287 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8289 * remote.c (remote_get_noisy_reply): Discard unused value.
8290 (remote_vcont_resume): Ditto.
8291 (remote_stop_ns): Ditto.
8293 * linespec.c (decode_objc): Delete unused variable.
8295 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8297 * dwarf2read.c (add_partial_symbol): Discard unused values.
8298 (read_base_type): Delete unused variable.
8300 * dbxread.c (read_dbx_symtab): Discard unused value.
8302 * eval.c (evaluate_subexp_standard): Delete unused variable,
8303 and discard unused values.
8305 * infcmd.c (_initialize_infcmd): Discard unused values.
8307 * stabsread.c (rs6000_builtin_type): Missing break statement.
8309 * dbxread.c (process_one_symbol): Discard unused value.
8311 * coffread.c (coff_end_symtab): Delete unused variable.
8313 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8314 (dwarf2_add_typedef): Delete unused variable.
8315 (read_namespace): Ditto.
8316 (dwarf_decode_macros): Ditto.
8318 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8320 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8322 * p-valprint.c (pascal_val_print): Discard unused value.
8324 * utils.c (nquery): Call va_end before return;
8328 * proc-service.c (ps_plog): Call va_end before return.
8330 2011-02-28 Tom Tromey <tromey@redhat.com>
8332 * python/python.c (gdbpy_value_cst): New global.
8333 (_initialize_python): Initialize it.
8334 * python/python-internal.h (gdbpy_value_cst): Declare.
8335 * python/py-value.c (convert_value_from_python): Use
8338 2011-02-28 Michael Snyder <msnyder@vmware.com>
8340 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8342 * breakpoint.c (catch_syscall_completer): Free malloced list.
8344 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8346 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8347 (lval_func_check_synthetic_pointer): Ditto.
8348 (lval_func_free_closure): Fix use-after-free.
8350 2011-02-28 Tom Tromey <tromey@redhat.com>
8352 * psymtab.c (expand_partial_symbol_tables): Use
8353 ALL_OBJFILE_PSYMTABS.
8355 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8357 * objc-lang.c (selectors_info): Error on too long REGEXP.
8359 2011-02-28 Michael Snyder <msnyder@vmware.com>
8361 * python/py-param.c (set_parameter_value): Add missing
8364 * linux-record.c (record_linux_system_call): Add missing
8367 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8369 * breakpoint.c (print_one_breakpoint_location): Remove unused
8370 argument PRINT_ADDRESS_BITS. Update callers.
8371 (print_one_breakpoint): Likewise.
8373 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8375 * breakpoint.c (wrap_indent_at_field): New function.
8376 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8377 Allocate ui_stream locally instead of using STB argument.
8378 (print_one_breakpoint_location): Update call.
8379 * ui-out.c (ui_out_query_field): New function.
8380 * ui-out.h (ui_out_query_field): Add prototype.
8382 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8384 From Michael Snyder <msnyder@vmware.com>
8385 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8387 2011-02-27 Michael Snyder <msnyder@vmware.com>
8389 * objc-lang.c (selectors_info): Prevent string overrun.
8391 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8394 * symtab.c (rbreak_command): Move variable 'file_name' to
8397 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8398 param with a local variable of the same name.
8400 2011-02-27 Michael Snyder <msnyder@vmware.com>
8402 * value.c (value_from_history_ref): New function.
8403 * value.h (value_from_history_ref): Export.
8404 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8405 to parse value history references.
8406 * cli/cli-utils.h (get_number_trailer): Update comment.
8408 2011-02-27 Michael Snyder <msnyder@vmware.com>
8410 * inferior.c (detach_inferior_command): Use get_number_or_range.
8411 (kill_inferior_command): Ditto.
8412 (remove_inferior_command): Ditto.
8413 (initialize_inferiors): Make command names plural.
8414 Update help strings.
8416 2011-02-27 Michael Snyder <msnyder@vmware.com>
8418 * darwin-nat-info.c: Fix comment typo.
8419 * dwarf2expr.h: Ditto.
8420 * fbsd-nat.c: Ditto.
8421 * fbsd-nat.h: Ditto.
8422 * frame-unwind.h: Ditto.
8424 * hppa-hpux-tdep.c: Ditto.
8425 * i386-linux-nat.c: Ditto.
8426 * linux-nat.c: Ditto.
8427 * nbsd-nat.c: Ditto.
8428 * nbsd-nat.h: Ditto.
8429 * ppc-linux-tdep.c: Ditto.
8432 * tui/tui-winsource.c: Ditto.
8434 2011-02-26 Michael Snyder <msnyder@vmware.com>
8436 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8438 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8440 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8441 with a local variable of the same name.
8443 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8444 param with a local variable of the same name.
8445 (i387_supply_xsave): Ditto.
8447 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8448 that it does not shadow a function parameter.
8450 * i386-nat.c (i386_length_and_rw_bits): Document that case
8451 statement is meant to fall through.
8453 * expprint.c (dump_subexp_body_standard): Document that case
8454 statement is meant to fall through.
8456 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8457 dead if statement. Condition can't be false.
8459 2011-02-25 Michael Snyder <msnyder@vmware.com>
8461 * arm-tdep.c: Fix typos in comments.
8462 * bsd-uthread.c: Ditto.
8463 * completer.c: Ditto.
8465 * cp-namespace.c: Ditto.
8466 * cp-support.c: Ditto.
8467 * cris-tdep.c: Ditto.
8469 * dwarf2read.c: Ditto.
8471 * gdbtypes.h: Ditto.
8472 * inferior.h: Ditto.
8473 * mdebugread.c: Ditto.
8474 * mips-tdep.c: Ditto.
8475 * ppc-linux-nat.c: Ditto.
8476 * ppc-linux-tdep.c: Ditto.
8477 * printcmd.c: Ditto.
8478 * sol-thread.c: Ditto.
8479 * solib-frv.c: Ditto.
8481 * sparc64-tdep.c: Ditto.
8482 * spu-tdep.c: Ditto.
8483 * stabsread.c: Ditto.
8488 * python/py-block.c: Ditto.
8489 * python/py-symbol.c: Ditto.
8490 * python/py-symtab.c: Ditto.
8491 * python/py-value.c: Ditto.
8492 * tui/tui-win.c: Ditto.
8494 2011-02-25 Michael Snyder <msnyder@vmware.com>
8496 * inferior.c (print_inferior): Accept a string instead of an int
8497 for requested_inferiors, and use get_number_or_range to parse it.
8498 (info_inferiors_command): Pass args string to print_inferior.
8499 (initialize_inferiors): Change help string for info inferiors.
8500 * inferior.h (print_inferior): Export prototype change.
8502 2011-02-25 Tom Tromey <tromey@redhat.com>
8504 * common/ax.def (invalid2): Set to 0x31.
8506 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8508 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8510 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8512 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8514 2011-02-24 Michael Snyder <msnyder@vmware.com>
8516 * Makefile.in (clean): Make clean should remove generated files
8517 observer.h and observer.inc.
8519 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8521 Revert the following patch (not approved yet):
8522 2011-02-21 Hui Zhu <teawater@gmail.com>
8523 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8524 * ax-gdb.c (gen_printf_expr_callback): New function.
8525 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8526 * ax-general.c (ax_memcpy): New function.
8527 (ax_print): Handle "printf".
8529 * ax.h (ax_memcpy): Forward declare.
8530 * common/ax.def (invalid2): Removed.
8531 (printf): New entry.
8532 * printcmd.c (printcmd.h): New include.
8533 (string_printf): New function.
8534 (ui_printf): Removed.
8535 (printf_command): Remove static. Call string_printf.
8536 (eval_command): Call string_printf.
8537 * printcmd.h: New file.
8538 * tracepoint.c (validate_actionline,
8539 encode_actions_1): handle printf_command.
8541 2011-02-23 Tom Tromey <tromey@redhat.com>
8543 * ax-general.c (ax_pick): Add missing newline.
8545 2011-02-23 Michael Snyder <msnyder@vmware.com>
8547 * breakpoint.c (breakpoint_1): Change first argument from an int
8548 to a char pointer, so that the function now accepts a list of
8549 breakpoints rather than just one. Use new function
8550 'number_is_in_list' to implement.
8551 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8552 (watchpoints_info): Ditto.
8553 (tracepoints_info): Ditto.
8554 (maintenance_info_breakpoints): Ditto.
8555 (_initialize_breakpoint): Update help strings to reflect the fact
8556 that these functions can now take more than one argument.
8557 * cli/cli-utils.c (number_is_in_list): New function.
8558 * cli/cli-utils.h (number_is_in_list): Export.
8560 2011-02-23 Michael Snyder <msnyder@vmware.com>
8562 * memattr.c (mem_enable_command): Use get_number_or_range.
8563 (mem_disable_command): Ditto.
8564 (mem_delete_command): Ditto.
8565 (_initialize_mem): Tweak usage message to reflect multiple
8568 2011-02-22 Doug Evans <dje@google.com>
8570 Add gdb.lookup_global_symbol python function.
8572 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8573 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8574 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8576 2011-02-22 Tom Tromey <tromey@redhat.com>
8578 * language.c (language_class_name_from_physname): Rename
8579 'curr_language' argument to 'lang'; use in body.
8581 2011-02-22 Michael Snyder <msnyder@vmware.com>
8583 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8585 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8587 * frame-unwind.h: Fix comment to mention the this frame, not the
8590 2011-02-22 Tom Tromey <tromey@redhat.com>
8592 * symfile.c (auto_solib_limit): Remove.
8593 * symfile.h (auto_solib_limit): Remove.
8595 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8597 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8599 2011-02-21 Michael Snyder <msnyder@vmware.com>
8601 * gdbthread.h (print_thread_info): Change prototype.
8602 * thread.c (print_thread_info): Accept char* instead of int for
8603 requested_threads argument. Use new function number_is_in_list
8604 to determine which threads to list.
8605 (info_threads_command): Pass char* to print_thread_info.
8606 * cli/cli-utils.c (number_is_in_list): New function.
8607 * cli/cli-utils.h (number_is_in_list): Export.
8608 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8610 (print_one_inferior): Ditto.
8611 (mi_cmd_list_thread_groups): Ditto.
8613 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8615 * common/Makefile.in (CFLAGS): New.
8616 (COMPILE): Add $(CFLAGS).
8618 2011-02-21 Tom Tromey <tromey@redhat.com>
8620 * breakpoint.c (catch_syscall_command_1): Fix typo.
8622 2011-02-21 Tom Tromey <tromey@redhat.com>
8624 * reverse.c: Include cli-utils.h.
8625 * printcmd.c: Include cli-utils.h.
8626 (string_printf): Use skip_spaces.
8627 * cli/cli-utils.h: New file.
8628 * cli/cli-utils.c: New file.
8629 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8630 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8631 * breakpoint.h (get_number, get_number_or_range): Move to
8633 * breakpoint.c: Include cli-utils.h.
8634 (get_number_trailer, get_number, get_number_or_range)
8635 (ep_skip_leading_whitespace): Move to cli-utils.c.
8636 (create_breakpoint_sal, find_condition_and_thread)
8637 (decode_static_tracepoint_spec, watch_command_1)
8638 (watch_maybe_just_location, ep_parse_optional_if_clause)
8639 (catch_fork_command_1, catch_exec_command_1)
8640 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8641 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8642 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8643 (HFILES_NO_SRCDIR): Add cli-utils.h.
8644 (cli-utils.o): New target.
8646 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8648 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8649 before calling discard_all_inferiors.
8651 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8653 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8654 (struct builtin_opencl_type): Remove.
8655 (builtin_opencl_type): Change return type to "struct type **".
8656 (lookup_opencl_vector_type): Update caller.
8657 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8658 (build_opencl_types): Install plain array of "struct type *"
8659 instead of "struct builtin_opencl_type".
8661 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8662 Ulrich Weigand <uweigand@de.ibm.com>
8664 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8665 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8666 (struct arm_linux_hwbp_cap): New type.
8667 (arm_linux_get_hwbp_cap): New function.
8668 (arm_linux_get_hw_breakpoint_count): Likewise.
8669 (arm_linux_get_hw_watchpoint_count): Likewise.
8670 (arm_linux_can_use_hw_breakpoint): Likewise.
8671 (arm_hwbp_type): New type.
8672 (arm_hwbp_control_t): Likewise.
8673 (struct arm_linux_hw_breakpoint): Likewise.
8674 (struct arm_linux_thread_points): Likewise.
8675 (arm_threads): New global variable.
8676 (arm_linux_find_breakpoints_by_tid): New function.
8677 (arm_hwbp_control_initialize): Likewise.
8678 (arm_hwbp_control_is_enabled): Likewise.
8679 (arm_hwbp_control_disable): Likewise.
8680 (arm_linux_hw_breakpoint_initialize): Likewise.
8681 (arm_linux_get_hwbp_type): Likewise.
8682 (arm_linux_hw_watchpoint_initialize): Likewise.
8683 (arm_linux_hw_breakpoint_equal): Likewise.
8684 (arm_linux_insert_hw_breakpoint1): Likewise.
8685 (arm_linux_remove_hw_breakpoint1): Likewise.
8686 (arm_linux_insert_hw_breakpoint): Likewise.
8687 (arm_linux_remove_hw_breakpoint): Likewise.
8688 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8689 (arm_linux_insert_watchpoint): Likewise.
8690 (arm_linux_remove_watchpoint): Likewise.
8691 (arm_linux_stopped_data_address): Likewise.
8692 (arm_linux_stopped_by_watchpoint): Likewise.
8693 (arm_linux_watchpoint_addr_within_range): Likewise.
8694 (arm_linux_new_thread): Likewise.
8695 (arm_linux_thread_exit): Likewise.
8696 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8697 related target callbacks. Register arm_linux_new_thread and
8698 arm_linux_thread_exit.
8699 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8700 * arm-tdep.c (arm_pc_is_thumb): Make global.
8701 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8703 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8705 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8706 per-frame locations while within a function epilogue.
8708 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8710 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8711 to GNU coding standards.
8713 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8715 Allow use of mingw native on Windows 95 OS.
8716 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8717 (ser_windows_close): Only call CancelIo if function exists.
8718 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8719 to check for existence of CancelIo function in kernel32 DLL.
8721 2011-02-21 Hui Zhu <teawater@gmail.com>
8723 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8724 * ax-gdb.c (gen_printf_expr_callback): New function.
8725 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8726 * ax-general.c (ax_memcpy): New function.
8727 (ax_print): Handle "printf".
8729 * ax.h (ax_memcpy): Forward declare.
8730 * common/ax.def (invalid2): Removed.
8731 (printf): New entry.
8732 * printcmd.c (printcmd.h): New include.
8733 (string_printf): New function.
8734 (ui_printf): Removed.
8735 (printf_command): Remove static. Call string_printf.
8736 (eval_command): Call string_printf.
8737 * printcmd.h: New file.
8738 * tracepoint.c (validate_actionline,
8739 encode_actions_1): handle printf_command.
8741 2011-02-19 Michael Snyder <msnyder@vmware.com>
8743 * reverse.c (delete_one_bookmark): Argument is now bookmark
8744 id rather than pointer to bookmark struct.
8745 (delete_bookmark_command): Use get_number_or_range.
8746 (goto_bookmark_command): Parse with get_number instead of strtoul.
8747 (bookmark_1): New function. Print info for one bookmark.
8748 (bookmarks_info): Use get_number_or_range and bookmark_1.
8750 2011-02-18 Michael Snyder <msnyder@vmware.com>
8752 * thread.c (info_threads_command): Re-implement using
8753 get_number_or_range.
8754 (thread_apply_command): Ditto.
8756 2011-02-18 Tom Tromey <tromey@redhat.com>
8758 * common/ax.def: New file.
8759 * ax.h (enum agent_op): Use ax.def.
8760 * ax-general.c (aop_map): Use ax.def.
8762 2011-02-18 Tom Tromey <tromey@redhat.com>
8764 * ax-general.c (aop_map): Add pick and rot.
8765 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8766 <DW_OP_rot>: Implement.
8767 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8769 * ax-general.c (ax_pick): New function.
8771 2011-02-18 Tom Tromey <tromey@redhat.com>
8773 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8775 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8776 Tom Tromey <tromey@redhat.com>
8778 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8779 make_symbol_overload_list_block with NULL BLOCK.
8780 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8782 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8784 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8785 * breakpoint.h (get_number_or_range): Declare.
8786 * printcmd.c (ALL_DISPLAYS): Declare.
8787 (delete_display): Reimplement taking a display pointer.
8788 (undisplay_command): Accept a range of displays to delete, using
8789 get_number_or_range.
8791 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8793 * c-valprint.c (c_val_print): Add embedded_offset to address
8794 for arrays of unspecified length.
8795 * p-valprint.c (pascal_val_print): Likewise.
8797 2011-02-18 Yao Qi <yao@codesourcery.com>
8799 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8800 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8801 (thumb_process_displaced_insn): New.
8802 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8803 call to arm_process_displaced_insn.
8804 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8806 2011-02-17 Tom Tromey <tromey@redhat.com>
8808 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8809 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8810 compile_dwarf_to_ax. No longer static. Call
8811 dwarf2_compile_cfa_to_ax.
8812 (locexpr_tracepoint_var_ref): Update.
8813 (loclist_tracepoint_var_ref): Update.
8814 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8815 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8816 argument; add 'gdbarch' and 'pc'.
8817 (dwarf2_compile_cfa_to_ax): New function.
8818 (dwarf2_frame_cache): Update.
8820 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8822 * ada-lang.c (ada_type_of_array): Fix the size of the array
8823 in the case of an unconstrained packed array.
8825 2011-02-17 Yao Qi <yao@codesourcery.com>
8827 * common/Makefile.in: Add more targets for make.
8829 2011-02-16 Tom Tromey <tromey@redhat.com>
8831 * dwarf2loc.c (unimplemented): Fix typo.
8833 2011-02-16 Tom Tromey <tromey@redhat.com>
8835 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8836 (compile_dwarf_to_ax) <default>: Use unimplemented.
8837 <DW_OP_deref>: Update.
8838 (disassemble_dwarf_expression): Update.
8839 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8840 (decode_locdesc): Update.
8841 * dwarf2expr.h (dwarf_stack_op_name): Update.
8843 2011-02-16 Tom Tromey <tromey@redhat.com>
8845 * ax.h (struct aop_map) <name>: Now const.
8847 2011-02-16 Tom Tromey <tromey@redhat.com>
8849 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8852 2011-02-16 Yao Qi <yao@codesourcery.com>
8854 * infrun.c (get_displaced_step_closure_by_addr): New.
8855 * inferior.h: Declare it.
8856 * arm-tdep.c: (arm_pc_is_thumb): Call
8857 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8860 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8861 Jan Kratochvil <jan.kratochvil@redhat.com>
8864 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8866 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8867 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 * value.c (value_contents_copy_raw): Extend describing comment.
8870 Assert that the destination contents we're overwriting are wholly
8872 (value_contents_copy): Extend describing comment.
8874 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8875 Jan Kratochvil <jan.kratochvil@redhat.com>
8877 * value.c (value_available_contents_eq): Remove redundant local
8878 variables. Fix available contents comparision.
8879 * value.h (value_available_contents_eq): Extend describing
8882 2011-02-16 Yao Qi <yao@codesourcery.com>
8884 * thread.c (info_threads_command): Add missing i18n markup and remove
8887 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8889 * breakpoint.c (longjmp_names): New variable.
8890 (struct breakpoint_objfile_data): New type.
8891 (breakpoint_objfile_key): New variable.
8892 (msym_not_found): New variable.
8893 (msym_not_found_p): New predicate.
8894 (get_breakpoint_objfile_data): New function.
8895 (create_overlay_event_breakpoint): Check per-objfile cache for
8897 (create_longjmp_master_breakpoint): Likewise.
8898 (create_std_terminate_master_breakpoint): Likewise.
8899 (create_exception_master_breakpoint): Likewise.
8900 (_initialize_breakpoint): Register per-objfile data key.
8902 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8904 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8906 (create_longjmp_master_breakpoint): Loop over longjmp names.
8907 (create_std_terminate_master_breakpoint): Const-propagate parameter
8909 (update_breakpoints_after_exec): Adjust.
8910 (breakpoint_re_set): Adjust.
8912 2011-02-15 Michael Snyder <msnyder@vmware.com>
8914 * thread.c (info_threads_command): Process arg as thread id,
8915 or list of thread ids.
8916 (thread_find_command): New command.
8917 (_initialize_thread): Document argument for info threads.
8918 Document 'thread find' command.
8919 * NEWS: Document new command "thread find".
8921 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8923 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8924 * aclocal.m4: Regenerated with aclocal-1.11.1.
8925 * common/configure: Regenerate with autoconf-2.64.
8927 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8929 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8930 bool data type to a size of one byte.
8932 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8933 Jan Kratochvil <jan.kratochvil@redhat.com>
8935 * target.c (memory_xfer_live_readonly_partial): Document where to
8936 look for interface description.
8938 2011-02-15 Yao Qi <yao@codesourcery.com>
8941 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8942 order to store PC value on stack instead of text section.
8944 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8946 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8947 the EFP register set size.
8948 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8949 data from the VMX register.
8950 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8951 and write data from/to the VMX register.
8953 2011-02-14 Michael Snyder <msnyder@vmware.com>
8955 * command.h (enum command_class): New class 'no_set_class', for
8956 "show" commands without a corresponding "set" command.
8957 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8958 * copying.c (_initialize_copying): Ditto for "show copying" and
8960 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8962 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8963 which there is no corresponding "set" command (eg. "show copying").
8965 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8966 Jan Kratochvil <jan.kratochvil@redhat.com>
8968 * exec.c (section_table_available_memory): Change `len' parameter
8970 * exec.h (section_table_available_memory): Ditto.
8971 * value.h (read_value_memory): Rename the `offset' parameter to
8974 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8975 Jan Kratochvil <jan.kratochvil@redhat.com>
8977 * memrange.c (compare_mem_ranges): Mention sort order in
8979 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8980 * tracepoint.c (traceframe_available_memory): Extend comment to
8981 mention what happens to RESULT when the target does not support
8984 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8985 Jan Kratochvil <jan.kratochvil@redhat.com>
8987 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8990 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8992 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8993 No longer handle NULL values.
8995 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8997 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8998 * value.c: Include "exceptions.h".
8999 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9001 * cp-abi.c: Include gdb_assert.h.
9002 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9003 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9005 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9006 parameters. No longer returns -1 on error.
9007 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9009 * cp-valprint.c: Include exceptions.h.
9010 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9011 the baseclass_offset. Handle unavailable base classes. Use
9012 val_print_invalid_address.
9013 * p-valprint.c: Include exceptions.h.
9014 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9015 when fetching the baseclass_offset. No longer expect
9016 baseclass_offset returning -1. Handle unavailable base classes.
9017 Use val_print_invalid_address.
9018 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9019 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9020 `embedded_offset' and `val' parameters. Adjust.
9021 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9022 parameter, and change its type to gdb_byte pointer. Add
9023 `embedded_offset' and `val' parameters. Adjust. No longer expect
9024 baseclass_offset returning -1.
9025 (value_dynamic_cast): Use value_contents_for_printing rather than
9026 value_contents. Adjust.
9027 (search_struct_field): No longer expect baseclass_offset returning
9029 (search_struct_method): If reading memory from the target is
9030 necessary, wrap it in a new value to pass to baseclass_offset. No
9031 longer expect baseclass_offset returning -1.
9032 (find_method_list): No longer expect baseclass_offset returning
9033 -1. Use value_contents_for_printing rather than value_contents.
9034 * valprint.c (val_print_invalid_address): New function.
9035 * valprint.h (val_print_invalid_address): Declare.
9036 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9037 and `val' parameters. No longer expect baseclass_offset returning
9039 * gnu-v2-abi.c: Include "exceptions.h".
9040 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9041 parameters. Handle unavailable memory. Recurse through
9042 gnuv2_baseclass_offset directly, rather than through
9043 baseclass_offset. No longer returns -1 on not found, instead
9045 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9046 `val' parameters. Adjust.
9048 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9050 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9051 almost but not quite adjacent.
9053 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9055 * value.h (value_entirely_available): Declare.
9056 * value.c (value_entirely_available): New function.
9057 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9058 real type if the pointer is unavailable.
9060 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9062 * valops.c (value_repeat): Use read_value_memory instead of
9065 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9067 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9068 * value.c (value_contents_copy_raw, value_contents_copy): New
9070 (value_primitive_field): Use value_contents_copy_raw instead of
9072 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9074 (value_array, value_slice): Ditto.
9075 * valarith.c (value_subscripted_rvalue): Use
9076 value_contents_copy_raw instead of memcpy.
9078 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9080 <unavailable> references.
9082 * valops.c (get_value_at): Use value_from_contents_and_address,
9083 avoiding read_memory.
9085 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9087 * c-valprint.c (c_val_print): Print a string with unavailable
9088 contents as an array.
9090 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9092 * value.h (unpack_bits_as_long): Delete declaration.
9093 (unpack_value_bits_as_long): Declare.
9094 (unpack_value_field_as_long): Declare.
9095 (value_field_bitfield): Declare.
9096 * value.c (unpack_bits_as_long): Rename to...
9097 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9098 value parameters. Return the extracted result in a new output
9099 parameter. If the value contents are unavailable, return false,
9100 otherwise return true.
9101 (unpack_value_bits_as_long): New.
9102 (unpack_field_as_long): Rename to...
9103 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9104 Add embedded_offset and value parameters. Return the extracted
9105 result in a new output parameter. If the value contents are
9106 unavailable, return false, otherwise return true.
9107 (unpack_value_field_as_long): New.
9108 (unpack_field_as_long_1): New.
9109 (unpack_field_as_long): Reimplement as wrapper around
9110 unpack_value_field_as_long_1.
9111 (value_field_bitfield): New function.
9112 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9113 unpack_value_bits_as_long. Mark the value as unavailable, if it
9115 * jv-valprint.c (java_print_value_fields): Use
9116 value_field_bitfield.
9117 * p-valprint.c (pascal_object_print_value_fields): Use
9118 value_field_bitfield.
9119 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9121 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9123 * value.c (get_internalvar_integer): Also return the int value of
9124 TYPE_CODE_INT INTERNALVAR_VALUE values.
9125 (set_internalvar): Don't special case TYPE_CODE_INT.
9127 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9129 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9130 INTERNALVAR_POINTER.
9132 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9133 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9134 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9136 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9138 * value.h (value_available_contents_eq): Declare.
9139 * value.c (find_first_range_overlap): New function.
9140 (value_available_contents_eq): New function.
9141 * valprint.c (val_print_array_elements): Use
9142 value_available_contents_eq.
9143 * ada-valprint.c (val_print_packed_array_elements): Use
9144 value_available_contents_eq.
9145 * jv-valprint.c (java_value_print): Use
9146 value_available_contents_eq.
9148 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9150 * target.c (target_read_live_memory): New function.
9151 (memory_xfer_live_readonly_partial): New.
9152 (memory_xfer_partial): If reading from a traceframe, fallback to
9153 reading unavailable read-only memory from read-only regions of
9155 * tracepoint.c (disconnect_tracing): Adjust.
9156 (set_current_traceframe): New, factored out from
9157 set_traceframe_number.
9158 (set_traceframe_number): Reimplement to only change the traceframe
9159 number on the GDB side.
9160 (do_restore_current_traceframe_cleanup): Adjust.
9161 (make_cleanup_restore_traceframe_number): New.
9162 (cur_traceframe_number): New global.
9163 (tfile_open): Set cur_traceframe_number to no traceframe.
9164 (set_tfile_traceframe): New function.
9165 (tfile_trace_find): If looking up a traceframe using any method
9166 other than by number, make sure the current tfile traceframe
9167 matches gdb's current traceframe. Update the current tfile
9168 traceframe if the lookup succeeded.
9169 (tfile_fetch_registers, tfile_xfer_partial)
9170 (tfile_get_trace_state_variable_value): Make sure the remote
9171 traceframe matches gdb's current traceframe.
9172 * remote.c (remote_traceframe_number): New global.
9173 (remote_open_1): Set it to -1.
9174 (set_remote_traceframe): New function.
9175 (remote_fetch_registers, remote_store_registers)
9176 (remote_xfer_memory, remote_xfer_partial)
9177 (remote_get_trace_state_variable_value): Make sure the remote
9178 traceframe matches gdb's current traceframe.
9179 (remote_trace_find): If looking up a traceframe using any method
9180 other than by number, make sure the current remote traceframe
9181 matches gdb's current traceframe. Update the current remote
9182 traceframe if the lookup succeeded.
9183 * infrun.c (fetch_inferior_event): Adjust.
9184 * tracepoint.h (set_current_traceframe): Declare.
9185 (get_traceframe_number, set_traceframe_number): Add describing
9188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9190 Mark pieces of values as unavailable if the corresponding memory
9193 * valops.c: Include tracepoint.h.
9194 (value_fetch_lazy): Use read_value_memory.
9195 (read_value_memory): New.
9196 * value.h (read_value_memory): Declare.
9197 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9198 * exec.c (section_table_available_memory): New function.
9199 * exec.h (section_table_available_memory): Declare.
9201 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9203 * Makefile.in (SFILES): Add memrange.c.
9204 (HFILES_NO_SRCDIR): Add memrange.h.
9205 (COMMON_OBS): Add memrange.o.
9206 * memrange.c: New file.
9207 * memrange.h: New file.
9208 * tracepoint.c: Include memrange.h.
9209 (struct mem_range): Delete.
9210 (mem_range_s): Delete.
9211 (traceframe_available_memory): New function.
9212 * tracepoint.h (traceframe_available_memory): Declare.
9214 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9216 * target.h (struct traceframe_info): Forward declare.
9217 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9218 (struct target_ops) <to_traceframe_info>: New field.
9219 (target_traceframe_info): New.
9220 * target.c (update_current_target): Inherit and default
9222 * remote.c (PACKET_qXfer_traceframe_info): New.
9223 (remote_protocol_features): Register qXfer:traceframe-info:read.
9224 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9225 (remote_traceframe_info): New.
9226 (init_remote_ops): Install it.
9227 (_initialize_remote): Install "set/show remote traceframe-info"
9229 * tracepoint.h (parse_traceframe_info): Declare.
9230 * tracepoint.c (struct mem_range): New.
9231 (mem_range_s): New typedef.
9232 (struct traceframe_info): New.
9233 (traceframe_info): New global.
9234 (free_traceframe_info): New function.
9235 (clear_traceframe_info): New function.
9236 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9238 (build_traceframe_info): New function.
9239 (tfile_traceframe_info): New function.
9240 (init_tfile_ops): Install tfile_traceframe_info.
9241 (traceframe_info_start_memory, free_result): New functions.
9242 (memory_attributes, traceframe_info_elements): New globals.
9243 (parse_traceframe_info, get_traceframe_info): New functions.
9244 * features/traceframe-info.dtd: New file.
9245 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9247 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9249 Base support for <unavailable> value contents.
9251 * value.h (value_bytes_available): Declare.
9252 (mark_value_bytes_unavailable): Declare.
9253 * value.c (struct range): New struct.
9254 (range_s): New typedef.
9255 (ranges_overlap): New function.
9256 (range_lessthan): New function.
9257 (ranges_contain_p): New function.
9258 (struct value) <unavailable>: New field.
9259 (value_bytes_available): New function.
9260 (mark_value_bytes_unavailable): New function.
9261 (require_not_optimized_out): Constify parameter.
9262 (require_available): New function.
9263 (value_contents_all, value_contents): Require all bytes be
9265 (value_free): Free `unavailable'.
9266 (value_copy): Copy `unavailable'.
9267 * valprint.h (val_print_unavailable): Declare.
9268 * valprint.c (valprint_check_validity): Rename `offset' parameter
9269 to `embedded_offset'. If printing a scalar, check whether the
9270 value chunk is available.
9271 (val_print_unavailable): New.
9272 (val_print_scalar_formatted): Check whether the value is
9274 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9275 pretty-printing unavailable values.
9277 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9279 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9280 * c-typeprint.c (c_type_print_args): Update the function comment. New
9281 variable param_type, initialize it. Remove const/volatile qualifiers
9282 for language_cplus and !show_artificial. Use param_type.
9284 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9286 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9287 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9288 * symtab.h (struct symtab) <next>: Comment extension.
9290 2011-02-12 Yao Qi <yao@codesourcery.com>
9292 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9294 2011-02-11 Yao Qi <yao@codesourcery.com>
9296 * common/Makefile.in: Add copyright header.
9298 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9300 * infrun.c (proceed): Move switching out and in of tfind mode from
9302 (fetch_inferior_event): ... to here.
9304 2011-02-11 Yao Qi <yao@codesourcery.com>
9306 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9308 * configure.ac: Add common to sub dir.
9309 * configure: Regenerate.
9311 2011-02-11 Yao Qi <yao@codesourcery.com>
9315 * common/Makefile.in: New.
9316 * common/configure.ac: New.
9317 * common/aclocal.m4: New.
9318 * common/configure: Generate.
9320 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9322 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9323 side of the parenthesis.
9326 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9327 * vec.h (VEC_block_remove): Fix comment.
9329 2011-02-08 Michael Snyder <msnyder@vmware.com>
9331 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9333 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9335 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9336 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9339 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9344 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9345 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9347 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9349 * dwarf2read.c (read_subroutine_type): Set special calling
9350 convention flag for functions compiled by IBM XL C for OpenCL.
9351 * ppc-sysv-tdep.c: Include "dwarf2.h"
9352 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9354 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9355 IBM OpenCL vector types calling convention.
9356 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9357 (ppc_sysv_abi_broken_return_value): Likewise.
9358 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9359 types calling convention.
9360 (ppc64_sysv_abi_return_value): Likewise.
9361 * spu-tdep.c: Include "dwarf2.h"
9362 (spu_return_value): Implement IBM OpenCL vector types calling
9365 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9368 correct ABI for AltiVec vector arguments.
9370 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9372 * valprint.c (val_print): Extend comment.
9373 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9374 interface explanation to val_print.
9375 (ada_val_print_array): Adjust comment to current interface.
9376 (print_field_values): Adjust comment to current interface.
9377 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9378 explanation to val_print.
9379 * f-valprint.c (f_val_print): Ditto.
9380 * jv-valprint.c (java_val_print): Ditto.
9381 * m2-valprint.c (m2_val_print): Ditto.
9382 * p-valprint.c (pascal_val_print): Ditto.
9384 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9386 * breakpoint.c (parse_breakpoint_sals): Fix description.
9388 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9389 Oguz Kayral <oguzkayral@gmail.com>
9391 * python/py-inferior.c (python_on_normal_stop): New function.
9392 (python_on_resume): New function.
9393 (python_inferior_exit): New function.
9394 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9395 inferior_exit observers.
9396 * python/py-evtregistry.c: New file.
9397 * python/py-threadevent.c : New file.
9398 * python/py-event.c: New file.
9399 * python/py-evts.c: New file.
9400 * python/py-continueevent.c: New file.
9401 * python/py-bpevent.c: New file.
9402 * python/py-signalevent.c: New file.
9403 * python/py-exetiedevent.c: New file.
9404 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9405 Move struct breakpoint_object from here...
9406 * python/python-internal.h: ... to here.
9407 * python/py-event.h: New file.
9408 * python/py-events.h: New file.
9409 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9410 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9411 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9412 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9413 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9414 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9415 Add build rules for all the above.
9417 2011-02-04 Tom Tromey <tromey@redhat.com>
9419 * dwarf2read.c (dwarf2_section_empty_p): New function.
9420 (dwarf2_read_section): Use dwarf2_section_empty_p.
9421 (dwarf2_section_size): New function.
9422 (dwarf2_get_section_info): Unconditionally read section.
9423 (dwarf2_read_index): Use dwarf2_section_empty_p.
9424 (partial_read_comp_unit_head): Use dwarf2_section_size.
9425 (dwarf2_symbol_mark_computed): Likewise.
9427 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9429 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9431 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9433 * mips-linux-tdep.c: Include xml-syscall.h.
9434 (mips_linux_get_syscall_number): New function.
9435 (mips_linux_init_abi): Add calls to
9436 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9437 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9438 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9439 * syscalls/mips-n32-linux.xml: New file.
9440 * syscalls/mips-n64-linux.xml: New file.
9441 * syscalls/mips-o32-linux.xml: New file.
9443 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9445 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9446 Complain about inverted range entries.
9447 (dwarf2_record_block_ranges): Likewise.
9449 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9452 * breakpoint.c (update_watchpoint): Fix name of the
9453 update_global_location_list function.
9454 (print_one_breakpoint): Fix typo.
9455 (_initialize_breakpoint): Remove extra space in hbreak help
9457 * breakpoint.h (struct bp_location) <length>: Fix field
9460 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9462 * regcache.c (registers_changed_ptid): Don't explictly always
9463 clear `current_regcache'. Only clear current_thread_ptid and
9464 current_thread_arch when PTID matches. Only reinit the frame
9465 cache if PTID matches the current inferior_ptid. Move alloca(0)
9467 (registers_changed): ... here.
9469 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9471 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9472 starts with __stack_chk_guard as stack guard symbol.
9474 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9476 * disasm.c (compare_lines): Handle the end of sequence markers
9477 within the line table to better support disassembling over
9478 compilation unit boundaries.
9480 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9482 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9483 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9484 implementation even if no symbols are available.
9485 (thumb_analyze_prologue): Update call to skip_prologue_function.
9486 (arm_analyze_prologue): Likewise.
9488 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9490 * arm-tdep.c: Include "observer.h".
9491 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9492 (arm_exidx_data_key): New static variable.
9493 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9494 (struct arm_exidx_data): Likewise.
9495 (arm_exidx_data_free): New function.
9496 (arm_compare_exidx_entries): Likewise.
9497 (arm_obj_section_from_vma): Likewise.
9498 (arm_exidx_new_objfile): Likewise.
9499 (arm_find_exidx_entry): Likewise.
9500 (arm_exidx_fill_cache): Likewise.
9501 (arm_exidx_unwind_sniffer): Likewise.
9502 (arm_exidx_unwind): New global variable.
9503 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9504 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9505 observer. Register arm_exidx_data_key as objfile data.
9507 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9509 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9510 due to accessing uninitialized variable. Fix indentation.
9512 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9514 * c-valprint.c (c_value_print): When doing virtual base pointer
9515 adjustment, create a new value with adjusted contents rather than
9516 changing the contents of the value being printed (and getting it
9519 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9521 * xml-support.c (xml_find_attribute): New.
9522 (xinclude_start_include): Use it.
9523 * xml-support.h (xml_find_attribute): Declare.
9524 * memory-map.c (memory_map_start_memory)
9525 (memory_map_start_property): Use xml_find_attribute.
9526 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9528 * remote.c (start_thread): Use xml_find_attribute.
9529 * solib-target.c (library_list_start_segment)
9530 (library_list_start_section, library_list_start_library)
9531 (library_list_start_list): Use xml_find_attribute.
9532 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9533 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9534 (tdesc_start_field): Use xml_find_attribute.
9536 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9538 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9539 (BUILD_OCL_VTYPES): Update.
9541 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9543 * configure.ac: Work around non-GNU sed limitation when computing
9544 python version number.
9545 * configure: Regenerate.
9547 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9549 Fix debug printing of TYPE_INSTANCE.
9550 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9551 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9553 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9555 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9556 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9557 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9558 * ada-operator.inc: Rename the file to ...
9559 * ada-operator.def: ... here, wrap all the entries by macro OP.
9560 * expprint.c (op_name_standard): Remove all the entries. Include
9561 "std-operator.def" instead.
9562 * expression.h (enum exp_opcode): Include "std-operator.def" and
9563 "ada-operator.def". Move all the entries ...
9564 * std-operator.def: ... here, wrap all the entries by macro OP.
9566 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9568 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9569 * breakpoint.c (remove_jit_event_breakpoints): New function.
9570 * jit.c (jit_descriptor_addr): Delete.
9571 (registering_code): Delete.
9572 (clear_int): Delete.
9573 (jit_inferior_data): New variable.
9574 (struct jit_inferior_data): New type.
9575 (get_jit_inferior_data): New function.
9576 (jit_inferior_data_cleanup): New function.
9577 (jit_read_descriptor): Adjust.
9578 (jit_register_code): Adjust.
9579 (jit_breakpoint_re_set_internal): New function; move code here ...
9580 (jit_inferior_init): ... from here.
9581 (jit_breakpoint_re_set): Adjust.
9582 (jit_reset_inferior_data_and_breakpoints): New function.
9583 (jit_inferior_created_observer): Adjust.
9584 (jit_inferior_exit_hook): Adjust.
9585 (jit_executable_changed_observer): New function.
9586 (jit_event_handler): Adjust.
9587 (_initialize_jit): Adjust.
9589 2011-01-31 Michael Snyder <msnyder@vmware.com>
9591 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9594 2011-01-31 Tom Tromey <tromey@redhat.com>
9597 * python/python.c (execute_gdb_command): Call
9598 prevent_dont_repeat.
9599 * top.c (suppress_dont_repeat): New global.
9600 (dont_repeat): Use it.
9601 (prevent_dont_repeat): New function.
9602 * command.h (prevent_dont_repeat): Declare.
9604 2011-01-31 Tom Tromey <tromey@redhat.com>
9606 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9607 * python/py-breakpoint.c (bppy_set_silent): Use
9608 breakpoint_set_silent.
9609 (bppy_set_thread): Use breakpoint_set_thread.
9610 (bppy_set_task): Use breakpoint_set_task.
9611 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9612 (breakpoint_set_task): Declare.
9613 (make_breakpoint_silent): Remove.
9614 * breakpoint.c (breakpoint_set_silent): New function.
9615 (breakpoint_set_thread): Likewise.
9616 (breakpoint_set_task): Likewise.
9617 (make_breakpoint_silent): Remove.
9619 2011-01-31 Tom Tromey <tromey@redhat.com>
9621 * breakpoint.h (user_breakpoint_p): Declare.
9622 * breakpoint.c (user_breakpoint_p): New function.
9623 (breakpoint_1): Use it.
9624 (save_breakpoints): Likewise.
9626 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9628 * configure.ac: Add handling of Python distribution on Windows.
9629 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9630 sysconfig variables are not defined, then do not use them.
9631 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9632 instead. On Windows, return all paths using forward-slashes
9633 rather than backslashes.
9635 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9637 * configure.ac: Remove fallback behavior for building
9638 against Python. Remove tweaking of Python include path.
9639 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9640 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9641 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9642 Always restore CPPFLAGS and LIBS after linking test.
9643 * configure: Regenerated.
9644 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9645 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9646 * python/python-internal.h: Adjust includes of Python .h files.
9648 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9650 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9653 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9655 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9658 2011-01-31 Yao Qi <yao@codesourcery.com>
9660 * arm-linux-nat.c: Update calls to regcache_register_status
9661 instead of regcache_valid_p.
9662 * aix-thread.c: Likewise.
9663 * i386gnu-nat.c: Likewise.
9665 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9668 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9669 touching TYPE_FIELD_ARTIFICIAL.
9671 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9673 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9676 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9678 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9679 selected, don't try iterating over the traceframe's blocks.
9680 (tfile_has_stack): If there's no traceframe selected, then there's
9682 (tfile_has_registers): If there's no traceframe selected, then
9683 there's no registers.
9685 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9687 * target.c (memory_xfer_partial): No need to restore shadows if we
9688 haven't read anything.
9690 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9692 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9693 and val_print_scalar_formatted.
9695 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9697 * tracepoint.c (tfile_read): New.
9698 (tfile_open): Use it.
9699 (tfile_get_traceframe_address): Use it.
9700 (tfile_trace_find): Use it.
9701 (walk_blocks_callback_func): New typedef.
9702 (match_blocktype): New function.
9703 (traceframe_walk_blocks): New function.
9704 (traceframe_find_block_type): New function.
9705 (tfile_fetch_registers, tfile_xfer_partial)
9706 (tfile_get_trace_state_variable_value): Use
9707 traceframe_find_block_type and tfile_read.
9709 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9711 * remote-mips.c: Add internationalization mark ups. Remove
9712 trailing \n from already marked up strings.
9714 2011-01-26 Tom Tromey <tromey@redhat.com>
9716 * python/py-prettyprint.c (print_string_repr): Clear
9717 'addressprint' option when calling val_print_string.
9718 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9719 option when calling val_print_string.
9721 2011-01-26 Tom Tromey <tromey@redhat.com>
9723 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9725 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9727 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9728 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9729 (gdb_py_long_as_ulongest): New defines.
9730 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9731 (gdb_py_int_as_long): Declare.
9732 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9733 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9734 (valpy_long): Add comment.
9735 * python/py-utils.c (get_addr_from_python): Use
9736 gdb_py_long_as_ulongest. Handle overflow properly.
9737 (gdb_py_object_from_longest): New function.
9738 (gdb_py_object_from_ulongest): Likewise.
9739 (gdb_py_int_as_long): Likewise.
9740 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9741 * python/py-symtab.c (salpy_get_pc): Use
9742 gdb_py_long_from_ulongest.
9743 (salpy_get_line): Use PyInt_FromLong.
9744 * python/py-param.c (set_parameter_value): Use
9746 * python/py-lazy-string.c (stpy_get_address): Use
9747 gdb_py_long_from_ulongest.
9748 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9749 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9750 * python/py-breakpoint.c (bppy_set_thread): Use
9752 (bppy_set_task): Likewise.
9753 (bppy_set_ignore_count): Likewise.
9754 (bppy_set_hit_count): Likewise.
9755 * python/py-block.c (blpy_get_start): Use
9756 gdb_py_object_from_ulongest.
9757 (blpy_get_end): Likewise.
9758 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9760 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9763 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9764 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9765 equality test for objfile, initialize addr_low if needed.
9767 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9769 * tui/tui-regs.c (tui_register_format): Remove dead code.
9771 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9773 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9774 instead of print_scalar_formatted.
9775 (print_scalar_formatted): Don't handle 's' format strings here,
9776 and add an assertion that we never see such format here.
9777 * valprint.h (val_print_scalar_formatted): Declare.
9778 * valprint.c (val_print_scalar_formatted): New.
9779 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9780 instead of print_scalar_formatted.
9781 * jv-valprint.c (java_val_print): Ditto.
9782 * p-valprint.c (pascal_val_print): Ditto.
9783 * ada-valprint.c (ada_val_print_1): Ditto.
9784 * f-valprint.c (f_val_print): Ditto.
9785 * infcmd.c (registers_info): Ditto.
9786 * m2-valprint.c (m2_val_print): Ditto.
9788 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9790 * m2-valprint.c (print_unbounded_array): Pass
9791 value_contents_for_printing rather than value_contents, to
9792 m2_print_array_contents. Also pass in the value.
9794 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9796 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9797 (save_gdb_index_command): Switch to .gdb_index version 4.
9799 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9801 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9802 than frame_register, and always pass a valid value to val_print.
9804 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9806 Centralize printing "<optimized out>".
9808 * valprint.h (val_print_optimized_out): Declare.
9809 * cp-valprint.c (cp_print_value_fields): Use
9810 val_print_optimized_out.
9811 * jv-valprint.c (java_print_value_fields): Ditto.
9812 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9813 * printcmd.c (print_formatted): Ditto.
9814 * valprint.c (valprint_check_validity): Ditto.
9815 (value_check_printable): Ditto.
9816 (val_print_optimized_out): New.
9818 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9820 * infcmd.c (default_print_registers_info): Allocate values so to
9821 never pass a NULL value to val_print.
9823 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9825 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9826 boolean. Make sure to always pass a value that matches the
9827 contents buffer to callees. Preserve `address' for following
9829 * value.c (value_contents_for_printing_const): New.
9830 (value_address): Constify value argument.
9831 * value.h (value_contents_for_printing_const): Declare.
9832 (value_address): Constify value argument.
9834 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9836 * regcache.c (struct regcache_descr): Rename
9837 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9838 and sizeof_cooked_register_valid_p to
9839 sizeof_cooked_register_status.
9840 (init_regcache_descr): Adjust.
9841 (struct regcache): Rename register_valid_p field to
9843 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9844 (do_cooked_read): Adjust.
9845 (regcache_valid_p): Rename to ...
9846 (regcache_register_status): ... this. Adjust.
9847 (regcache_invalidate): Adjust.
9848 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9850 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9851 as unavailable, not valid.
9852 (regcache_dump): Adjust.
9853 * regcache.h (enum register_status): New.
9854 (regcache_register_status): Declare.
9855 (regcache_invalidate): Delete declaration.
9856 * corelow.c (get_core_registers): Adjust.
9857 * tracepoint.c (tfile_fetch_registers): Adjust.
9858 * trad-frame.c (REG_VALUE): Rename to ...
9859 (TF_REG_VALUE): ... this.
9860 (REG_UNKNOWN): Rename to ...
9861 (TF_REG_UNKNOWN): ... this.
9862 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9863 * mi/mi-main.c (register_changed_p): Adjust.
9865 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9867 * regcache.c (struct regcache_descr): Remove outdated comment.
9868 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9870 (regcache_xmalloc): Rename to ...
9871 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9872 Allocate the regcache type accordingly.
9873 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9874 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9875 cooked registers, not raw.
9876 (regcache_dup_no_passthrough): Delete.
9877 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9878 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9879 mention obsolete write_register_bytes.
9880 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9882 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9884 Stop remote_read_bytes from handling partial reads itself.
9886 * remote-fileio.c: Include target.h.
9887 (remote_fileio_write_bytes): Delete.
9888 (remote_fileio_func_open, remote_fileio_func_write)
9889 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9891 (remote_fileio_func_stat): Use target_read_memory and
9892 target_write_memory.
9893 (remote_fileio_func_gettimeofday): Use target_write_memory.
9894 (remote_fileio_func_system): Use target_read_memory.
9895 * remote.c (remote_write_bytes): Make it static.
9896 (remote_read_bytes): Don't handle partial reads here.
9897 * remote.h (remote_read_bytes): Delete declaration.
9899 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9901 Simplify XML parsing a bit.
9903 * xml-support.h (gdb_xml_parse_quick): Declare.
9904 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9905 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9907 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9908 gdb_xml_create_parser_and_cleanup_1.
9909 (gdb_xml_parse_quick): New.
9910 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9911 * osdata.c (osdata_parse): Ditto.
9912 * remote.c (remote_threads_info): Ditto.
9913 * solib-target.c (solib_target_parse_libraries): Ditto.
9914 * xml-syscall.c (syscall_parse_xml): Ditto.
9915 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9917 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9919 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9920 with remote-mips.o added to gdb_target_obs.
9921 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9923 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9925 * ada-valprint.c (val_print_packed_array_elements): Pass the
9926 correct struct value to val_print.
9927 (ada_val_print_1): Ditto.
9929 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9931 Don't lose embedded_offset in printing routines throughout.
9933 * valprint.h (val_print_array_elements): Change prototype.
9934 * valprint.c (val_print_array_elements): Add `embedded_offset'
9935 parameter, and adjust to pass it down to val_print, while passing
9936 `valaddr' or `address' unmodified. Take embedded_offset into
9937 account when checking repetitions.
9938 * c-valprint.c (c_val_print): Pass embedded_offset to
9939 val_print_array_elements instead of adjusting `valaddr' and
9941 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9942 embedded_offset to val_print_array_elements instead of adjusting
9944 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9945 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9946 val_print_array_elements and pascal_object_print_value_fields
9947 instead of adjusting `valaddr'.
9948 (pascal_object_print_value_fields): Add `offset' parameter, and
9950 (pascal_object_print_value): Add `offset' parameter, and adjust to
9952 (pascal_object_print_static_field): Use
9953 value_contents_for_printing/value_embedded_offset, rather than
9955 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9956 parameter, and adjust to use it. Use
9957 value_contents_for_printing/value_embedded_offset, rather than
9959 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9960 (ada_val_print_array): Add `offset' parameter, and adjust to use
9962 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9963 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9964 Instead work with offsets. Use
9965 value_contents_for_printing/value_embedded_offset, rather than
9966 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9967 and use value_from_pointer to extract a target pointer, rather
9968 than value_from_longest.
9969 (print_variant_part): Add `offset' parameter. Replace
9970 `outer_valaddr' parameter by a new `outer_offset' parameter.
9971 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9972 (ada_value_print): Use
9973 value_contents_for_printing/value_embedded_offset, rather than
9975 (print_record): Add `offset' parameter, and adjust to pass it
9977 (print_field_values): Add `offset' parameter. Replace
9978 `outer_valaddr' parameter by a new `outer_offset' parameter.
9979 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9980 Use value_contents_for_printing/value_embedded_offset, rather than
9982 * d-valprint.c (dynamic_array_type): Use
9983 value_contents_for_printing/value_embedded_offset, rather than
9985 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9986 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9987 (java_print_value_fields): Take `offset' into account. Don't
9988 re-adjust `valaddr'. Instead pass down adjusted offsets.
9989 (java_val_print): Take `embedded_offset' into account. Pass it to
9990 java_print_value_fields.
9991 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9992 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9993 down adjusted offsets.
9994 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9995 (f_val_print): Take `embedded_offset' into account.
9997 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9999 * inflow.c: Include "gdbcmd.h".
10000 (interactive_mode): New static global, moved here from top.c.
10001 (show_interactive_mode): New function, moved here from top.c.
10002 use gdb_has_a_terminal instead of input_from_terminal_p to
10003 determine the current mode.
10004 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10006 (_initialize_inflow): Add the "set/show interactive-mode"
10007 commands. Moved here from top.c, after having adjusted slightly
10009 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10011 (input_from_terminal_p): Remove handling of "interactive-mode"
10012 setting, moved to infow.c.
10013 (init_main): Remove creation of the "set/show interactive-mode"
10014 commands, moved to inflow.c.
10016 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10018 * NEWS: Add entry for native ia64-hpux support.
10020 2011-01-19 Tom Tromey <tromey@redhat.com>
10023 * thread.c (free_thread): Free 'name'.
10024 (print_thread_info): Emit thread name. Change CLI output.
10025 (thread_name_command): New function.
10026 (do_captured_thread_select): Emit newline.
10027 (_initialize_thread): Register 'thread name' command.
10028 * target.h (struct target_ops) <to_thread_name>: New field.
10029 (target_thread_name): New macro.
10030 * target.c (update_current_target): Handle to_thread_name.
10031 * python/py-infthread.c (thpy_get_name): New function.
10032 (thpy_set_name): Likewise.
10033 (thread_object_getset): Add "name".
10034 * linux-nat.c (linux_nat_thread_name): New function.
10035 (linux_nat_add_target): Set to_thread_name.
10036 * gdbthread.h (struct thread_info) <name>: New field.
10038 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10040 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10041 (ada_val_print_1): Likewise.
10043 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10045 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10046 upper limit address is not greater than the function end address
10047 when the upper limit could not be computed using the debugging
10050 2011-01-17 Tom Tromey <tromey@redhat.com>
10052 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10054 * utils.c: Include gdb_regex.h.
10055 (do_regfree_cleanup): New function.
10056 (make_regfree_cleanup): Likewise.
10057 (get_regcomp_error): Likewise.
10058 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10060 2011-01-17 Tom Tromey <tromey@redhat.com>
10062 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10063 re_compile_fastmap.
10065 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10067 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10068 for internal variables.
10069 (last_was_structop): New static variable.
10070 (COMPLETE): New token.
10071 (field_exp): New rule to group all '.' suffix handling.
10072 Add mark_struct_expression calls when approriate to be able
10073 to correctly find fields for completion.
10074 (yylex): Adapt to handle field completion and set INTVAR when
10077 2011-01-14 Yao Qi <yao@codesourcery.com>
10079 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10080 save_reggroup, restore_reggroup and all_reggroup.
10082 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10084 * ada-valprint. (ada_printchar): Use the correct type length
10085 in call to ada_emit_char.
10086 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10088 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10090 * solib-som.h (hpux_major_release): Declare variable here.
10091 * solib-som.c: Remove <sys/utsname.h> header.
10092 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10093 (hpux_major_release): Make global, change default value to
10094 DEFAULT_HPUX_MAJOR_RELEASE.
10095 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10096 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10097 Add "solib-som.h" header.
10098 (set_hpux_major_release): New function.
10099 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10101 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10103 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10105 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10107 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10108 new-line at end of warning message.
10109 (ia64_hpux_store_register): Remove trailing new-line at end of
10111 * ia64-hpux-tdep.c: Rephrase comment.
10112 * solib-ia64-hpux.c (struct dld_info): Change type of field
10113 dld_flags from "long long" to ULONGEST.
10115 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10117 * target.h (deprecated_child_ops): Delete declaration.
10118 * target.c (deprecated_child_ops): Delete definition.
10120 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10122 * Makefile.in (hpux-thread.o): Delete rule.
10123 * configure.ac: Don't check for HPUX DCE threads support.
10124 * configure, config.in: Regenerate.
10125 * hppa-hpux-nat.c (child_suppress_run): Delete.
10126 (hppa_hpux_child_can_run): Delete.
10127 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10128 * hpux-thread.c: Delete.
10130 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10132 * hpux-thread.c (hpux_pid_to_str): Delete.
10134 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10136 * ada-valprint.c (ada_emit_char): Remove strange code.
10137 Check that c is <= UCHAR_MAX before passing it to isascii.
10138 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10140 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10142 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10143 to the case where instream is stdin.
10145 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10147 * ia64-tdep.h (struct regcache): Forward declare.
10148 (struct ia64_infcall_ops): New struct type.
10149 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10151 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10152 Renames ia64_find_global_pointer.
10153 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10154 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10155 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10157 (ia64_infcall_ops): New static global constant.
10158 (ia64_gdbarch_init): Set tdep->infcall_ops.
10159 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10160 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10161 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10162 (ia64_hpux_dummy_code): New static global constant.
10163 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10164 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10165 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10167 (ia64_hpux_infcall_ops): New static global constant.
10168 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10169 for inferior function calls to work properly on ia64-hpux.
10171 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10173 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10174 * ia64-tdep.h (struct frame_info): forward declaration.
10175 (struct gdbarch_tdep): Add field size_of_register_frame.
10176 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10177 to determine the size of the register frame.
10178 (ia64_size_of_register_frame): New function.
10179 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10180 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10181 (IA64_HPUX_UREG_REASON): New macro.
10182 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10184 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10185 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10186 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10189 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10191 Add support for ia64-hpux.
10192 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10193 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10195 * configure.host: Add handling for ia64-hpux hosts. Add associated
10197 * configure.tgt: Add handling for ia64-hpux targets.
10198 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10199 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10200 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10202 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10204 [ttrace] Compute thread list immediately after attach.
10205 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10207 (inf_ttrace_attach): Use it.
10209 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10211 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10212 if we could not determine the frame's function address. Instead,
10213 use the frame's PC, and then continue.
10215 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10217 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10218 not already defined.
10220 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10222 * ia64-tdep.c (ia64_struct_type_p): New function.
10223 (ia64_extract_return_value): Handle integral values that are
10224 less than 8 bytes long.
10225 (ia64_push_dummy_call): Likewise.
10227 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10229 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10230 floatformat_ia64_ext.
10231 (floatformat_ia64_ext_big): New static const.
10232 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10234 2011-01-12 Tom Tromey <tromey@redhat.com>
10236 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10238 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10239 (mi_cmd_thread_list_ids): Likewise.
10240 (mi_cmd_data_list_changed_registers): Likewise.
10241 (mi_cmd_data_list_register_values): Likewise.
10242 (mi_cmd_data_write_register_values): Likewise.
10243 (mi_cmd_data_evaluate_expression): Likewise.
10244 (mi_cmd_data_read_memory): Likewise.
10245 (mi_cmd_data_read_memory_bytes): Likewise.
10246 (mi_cmd_data_write_memory): Likewise.
10247 (mi_cmd_enable_timings): Likewise.
10248 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10249 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10250 (mi_cmd_var_delete): Likewise.
10251 (mi_cmd_var_set_format): Likewise.
10252 (mi_cmd_var_show_format): Likewise.
10253 (mi_cmd_var_info_num_children): Likewise.
10254 (mi_cmd_var_list_children): Likewise.
10255 (mi_cmd_var_info_type): Likewise.
10256 (mi_cmd_var_info_expression): Likewise.
10257 (mi_cmd_var_show_attributes): Likewise.
10258 (mi_cmd_var_assign): Likewise.
10259 (mi_cmd_var_update): Likewise.
10260 (mi_cmd_enable_pretty_printing): Likewise.
10261 (mi_cmd_var_set_update_range): Likewise.
10262 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10264 (mi_cmd_target_file_put): Likewise.
10265 (mi_cmd_target_file_delete): Likewise.
10266 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10268 (mi_cmd_stack_info_depth): Likewise.
10269 (mi_cmd_stack_list_locals): Likewise.
10270 (mi_cmd_stack_list_args): Likewise.
10271 (mi_cmd_stack_select_frame): Likewise.
10272 (mi_cmd_stack_select_frame): Likewise.
10273 (mi_cmd_stack_info_frame): Likewise.
10274 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10276 (mi_cmd_file_list_exec_source_files): Likewise.
10277 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10278 (mi_cmd_env_cd): Likewise.
10279 (mi_cmd_env_path): Likewise.
10280 (mi_cmd_env_dir): Likewise.
10281 (mi_cmd_inferior_tty_show): Likewise.
10282 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10283 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10284 (mi_cmd_break_watch): Likewise.
10286 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10288 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10289 (ppc_linux_insert_hw_breakpoint): Likewise.
10290 (ppc_linux_remove_hw_breakpoint): Likewise.
10291 (ppc_linux_insert_watchpoint): Likewise.
10293 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10294 Jan Kratochvil <jan.kratochvil@redhat.com>
10296 PR fortran/11104 and DWARF unbound arrays detection.
10297 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10298 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10299 unspecified upper bound.
10300 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10301 variables array_size_array, tmp_type and offset_item. New variable
10302 array. Remove call to f77_get_upperbound. New variables array_type
10303 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10304 the final call to deprecated_set_value_type.
10306 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10308 Make value allocations more lazy.
10309 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10310 instead of allocate_value and set_value_lazy when possible.
10311 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10312 instead of allocate_value and set_value_lazy.
10313 * findvar.c (value_of_register_lazy): Likewise.
10314 (read_var_value): Remove V preallocation, call just check_typedef in
10315 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10316 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10317 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10318 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10319 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10320 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10321 the end, remove set_value_lazy there.
10322 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10323 instead of allocate_value and set_value_lazy when possible.
10324 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10325 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10326 of allocate_value and set_value_lazy.
10327 (value_from_contents_and_address): Use allocate_value_lazy instead of
10328 allocate_value and set_value_lazy when possible.
10330 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10332 * disasm.c (dump_insns): Support dumping opcodes for MI.
10333 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10334 dumping of instruction opcodes.
10336 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10338 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10341 2011-01-11 Tom Tromey <tromey@redhat.com>
10343 * thread.c (do_captured_thread_select): Emit newline before
10346 2011-01-11 Michael Snyder <msnyder@vmware.com>
10348 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10349 * score-tdep.c: Ditto.
10350 * score-tdep.h: Ditto.
10351 * ser-base.c: Ditto.
10352 * ser-go32.c: Ditto.
10355 * ser-mingw.c: Ditto.
10356 * ser-pipe.c: Ditto.
10357 * ser-tcp.c: Ditto.
10358 * ser-unix.c: Ditto.
10359 * sh64-tdep.c: Ditto.
10360 * shnbsd-nat.c: Ditto.
10361 * sh-tdep.c: Ditto.
10362 * sh-tdep.h: Ditto.
10364 * solib-darwin.c: Ditto.
10365 * solib-frv.c: Ditto.
10367 * solib-irix.c: Ditto.
10368 * solib-osf.c: Ditto.
10369 * solib-pa64.c: Ditto.
10370 * solib-som.c: Ditto.
10371 * solib-spu.c: Ditto.
10372 * solib-sunos.c: Ditto.
10373 * solib-svr4.c: Ditto.
10375 * sol-thread.c: Ditto.
10376 * somread.c: Ditto.
10379 * sparc64-linux-tdep.c: Ditto.
10380 * sparc64-tdep.c: Ditto.
10381 * sparc-linux-nat.c: Ditto.
10382 * sparc-linux-tdep.c: Ditto.
10383 * sparc-sol2-nat.c: Ditto.
10384 * sparc-sol2-tdep.c: Ditto.
10385 * sparc-tdep.c: Ditto.
10386 * sparc-tdep.h: Ditto.
10387 * spu-tdep.c: Ditto.
10388 * stabsread.c: Ditto.
10389 * stabsread.h: Ditto.
10391 * symfile.c: Ditto.
10392 * symfile.h: Ditto.
10393 * symmisc.c: Ditto.
10397 * target-descriptions.c: Ditto.
10398 * target-descriptions.h: Ditto.
10400 * target-memory.c: Ditto.
10401 * terminal.h: Ditto.
10404 * tracepoint.c: Ditto.
10405 * tracepoint.h: Ditto.
10406 * trad-frame.h: Ditto.
10407 * typeprint.c: Ditto.
10409 2011-01-11 Michael Snyder <msnyder@vmware.com>
10411 * ui-file.c: Comment cleanup, mostly periods and spaces.
10412 * ui-file.h: Ditto.
10416 * v850-tdep.c: Ditto.
10417 * valarith.c: Ditto.
10419 * valprint.c: Ditto.
10420 * valprint.h: Ditto.
10425 * vax-tdep.c: Ditto.
10428 * version.h: Ditto.
10429 * windows-nat.c: Ditto.
10430 * windows-tdep.c: Ditto.
10431 * xcoffread.c: Ditto.
10432 * xcoffsolib.c: Ditto.
10433 * xml-support.c: Ditto.
10434 * xstormy16-tdep.c: Ditto.
10435 * xtensa-tdep.c: Ditto.
10436 * xtensa-tdep.h: Ditto.
10438 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10440 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10441 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10443 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10444 Thiago Jung Bauermann <bauerman@br.ibm.com>
10446 Implement support for PowerPC BookE ranged watchpoints.
10448 (struct breakpoint_ops) <resources_needed>: New method.
10449 Initialize to NULL in all existing breakpoint_ops instances.
10450 (struct breakpoint) <exact>: New field.
10451 (target_exact_watchpoints): Declare external global.
10452 * breakpoint.c (target_exact_watchpoints): New global flag.
10453 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10454 b->enable_state to bp_enabled before calling
10455 hw_watchpoint_used_count.
10456 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10457 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10459 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10460 if the watchpoint is exact.
10461 (resources_needed_watchpoint): New function.
10462 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10463 (watch_command_1): Set b->exact if the user asked for an exact
10464 watchpoint and one can be set.
10465 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10466 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10467 the user asks for an exact watchpoint and one can be set. Return
10468 number of needed debug registers to watch the expression.
10469 * gdbtypes.c (is_scalar_type): New function, based on
10470 valprint.c:scalar_type_p.
10471 (is_scalar_type_recursive): New function.
10472 * gdbtypes.h (is_scalar_type_recursive): Declare.
10473 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10474 handle regions when ranged watchpoints are available.
10475 (create_watchpoint_request): New function.
10476 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10477 create_watchpoint_request.
10478 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10479 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10480 `set powerpc' and `show powerpc' commands.
10481 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10482 Mention documentation comment in the target macro.
10483 (target_region_ok_for_hw_watchpoint): Document return value.
10485 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10487 * breakpoint.c (update_watchpoint): Decide on using a software or
10488 hardware watchpoint after the bp_locations are created.
10490 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10492 Convert hardware watchpoints to use breakpoint_ops.
10493 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10494 <insert_location>: ... this. Return int instead of void.
10495 Accept pointer to struct bp_location instead of pointer to
10496 struct breakpoint. Adapt all implementations.
10497 (breakpoint_ops) <remove>: Rename to...
10498 <remove_location>: ... this. Accept pointer to struct bp_location
10499 instead of pointer to struct breakpoint. Adapt all implementations.
10500 * breakpoint.c (insert_catchpoint): Delete function.
10501 (insert_bp_location): Call the watchpoint or catchpoint's
10502 breakpoint_ops.insert method.
10503 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10504 breakpoint_ops.remove method.
10505 (insert_watchpoint, remove_watchpoint): New functions.
10506 (watchpoint_breakpoint_ops): New structure.
10507 (watch_command_1): Initialize the OPS field.
10508 * inf-child.c (inf_child_insert_fork_catchpoint)
10509 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10510 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10511 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10513 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10514 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10515 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10516 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10517 * target.c (update_current_target): Change default implementation of
10518 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10519 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10520 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10521 to_set_syscall_catchpoint to return_one.
10522 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10523 (debug_to_insert_exec_catchpoint): Report return value.
10524 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10525 (to_insert_exec_catchpoint): Change declaration to return int instead
10528 2011-01-11 Michael Snyder <msnyder@vmware.com>
10530 * arm-tdep.c: Internationalization.
10532 * charset.c: Ditto.
10533 * fork-child.c: Ditto.
10534 * nto-procfs.c: Ditto.
10535 * ppc-sysv-tdep.c: Ditto.
10537 * remote-mips.c: Ditto.
10539 * rs6000-nat.c: Ditto.
10540 * rs6000-tdep.c: Ditto.
10544 * xml-support.c: Ditto.
10545 * mi/mi-cmd-break.c: Ditto.
10546 * mi/mi-cmd-var.c: Ditto.
10547 * mi/mi-interp.c: Ditto.
10548 * mi/mi-main.c: Ditto.
10550 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10552 * remote-sim.c (gdbsim_store_register): Update API to
10553 sim_store_register to check more error conditions.
10555 2011-01-10 Michael Snyder <msnyder@vmware.com>
10557 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10558 * nto-tdep.c: Ditto.
10559 * nto-tdep.h: Ditto.
10560 * objc-exp.y: Ditto.
10561 * objc-lang.c: Ditto.
10562 * objfiles.c: Ditto.
10563 * objfiles.h: Ditto.
10564 * observer.c: Ditto.
10565 * opencl-lang.c: Ditto.
10568 * parser-defs.h: Ditto.
10571 * posix-hdep.c: Ditto.
10572 * ppcbug-rom.c: Ditto.
10573 * ppc-linux-nat.c: Ditto.
10574 * ppc-linux-tdep.c: Ditto.
10575 * ppc-linux-tdep.h: Ditto.
10576 * ppcnbsd-tdep.c: Ditto.
10577 * ppcobsd-tdep.c: Ditto.
10578 * ppcobsd-tdep.h: Ditto.
10579 * ppc-sysv-tdep.c: Ditto.
10580 * ppc-tdep.h: Ditto.
10581 * printcmd.c: Ditto.
10582 * proc-abi.c: Ditto.
10583 * proc-flags.c: Ditto.
10585 * proc-utils.h: Ditto.
10586 * progspace.h: Ditto.
10587 * prologue-value.c: Ditto.
10588 * prologue-value.h: Ditto.
10589 * psympriv.h: Ditto.
10590 * psymtab.c: Ditto.
10591 * p-typeprint.c: Ditto.
10592 * p-valprint.c: Ditto.
10593 * ravenscar-sparc-thread.c: Ditto.
10594 * ravenscar-thread.c: Ditto.
10595 * ravenscar-thread.h: Ditto.
10597 * regcache.c: Ditto.
10598 * regcache.h: Ditto.
10600 * remote-fileio.c: Ditto.
10601 * remote-fileio.h: Ditto.
10603 * remote-m32r-sdi.c: Ditto.
10604 * remote-mips.c: Ditto.
10605 * remote-sim.c: Ditto.
10606 * rs6000-aix-tdep.c: Ditto.
10607 * rs6000-nat.c: Ditto.
10608 * rs6000-tdep.c: Ditto.
10610 2011-01-10 Michael Snyder <msnyder@vmware.com>
10612 * charset.c (validate): Internationalization.
10613 * coffread.c (read_one_sym): Ditto.
10614 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10615 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10616 * inflow.c (new_tty): Ditto.
10617 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10618 * m32c-tdep.c (m32c_return_value): Ditto.
10619 * mep-tdep.c (mep_store_return_value): Ditto.
10620 * score-tdep.c (score7_fetch_insn): Ditto.
10621 * ser-mingw.c (pipe_windows_open): Ditto.
10622 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10623 * spu-tdep.c (spu_register_type): Ditto.
10624 * tracepoint.c (trace_find_command): Ditto.
10625 * valarith.c (value_pos): Ditto.
10627 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10629 * ada-valprint.c (printstr): Minor comment reformatting.
10631 2011-01-08 Michael Snyder <msnyder@vmware.com>
10633 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10636 2011-01-08 Michael Snyder <msnyder@vmware.com>
10638 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10639 * hppa-hpux-tdep.c: Ditto.
10640 * hppa-linux-nat.c: Ditto.
10641 * hppa-linux-tdep.c: Ditto.
10642 * hppanbsd-tdep.c: Ditto.
10643 * hppa-tdep.c: Ditto.
10644 * hppa-tdep.h: Ditto.
10645 * hpux-thread.c: Ditto.
10646 * i386-cygwin-tdep.c: Ditto.
10647 * i386-darwin-nat.c: Ditto.
10648 * i386gnu-nat.c: Ditto.
10649 * i386-linux-nat.c: Ditto.
10650 * i386-linux-tdep.c: Ditto.
10651 * i386-nat.c: Ditto.
10652 * i386-nat.h: Ditto.
10653 * i386nbsd-tdep.c: Ditto.
10654 * i386-sol2-nat.c: Ditto.
10655 * i386-stub.c: Ditto.
10656 * i386-tdep.c: Ditto.
10657 * i386-tdep.h: Ditto.
10658 * i387-tdep.c: Ditto.
10659 * ia64-linux-nat.c: Ditto.
10660 * ia64-linux-tdep.c: Ditto.
10661 * ia64-tdep.c: Ditto.
10662 * infcall.c: Ditto.
10663 * infcall.h: Ditto.
10665 * inferior.c: Ditto.
10666 * inferior.h: Ditto.
10667 * infloop.c: Ditto.
10670 * interps.c: Ditto.
10671 * interps.h: Ditto.
10672 * iq2000-tdep.c: Ditto.
10673 * irix5-nat.c: Ditto.
10677 * jv-lang.c: Ditto.
10678 * jv-lang.h: Ditto.
10679 * jv-typeprint.c: Ditto.
10680 * jv-valprint.c: Ditto.
10681 * language.c: Ditto.
10682 * language.h: Ditto.
10683 * linespec.c: Ditto.
10684 * linux-fork.c: Ditto.
10685 * linux-nat.c: Ditto.
10686 * linux-thread-db.c: Ditto.
10687 * lm32-tdep.c: Ditto.
10689 2011-01-08 Michael Snyder <msnyder@vmware.com>
10691 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10692 * m2-lang.c: Ditto.
10693 * m2-typeprint.c: Ditto.
10694 * m2-valprint.c: Ditto.
10695 * m32c-tdep.c: Ditto.
10696 * m32r-linux-nat.c: Ditto.
10697 * m32r-rom.c: Ditto.
10698 * m32r-tdep.c: Ditto.
10699 * m32r-tdep.h: Ditto.
10700 * m68hc11-tdep.c: Ditto.
10701 * m58klinux-nat.c: Ditto.
10702 * m68k-tdep.c: Ditto.
10703 * m88k-tdep.c: Ditto.
10704 * m88k-tdep.h: Ditto.
10705 * machoread.c: Ditto.
10706 * macrocmd.c: Ditto.
10707 * macroexp.c: Ditto.
10708 * macrotab.c: Ditto.
10711 * mdebugread.c: Ditto.
10712 * mdebugread.h: Ditto.
10713 * memattr.c: Ditto.
10714 * memattr.h: Ditto.
10715 * memory-map.h: Ditto.
10716 * mep-tdep.c: Ditto.
10717 * microblaze-rom.c: Ditto.
10718 * microblaze-tdep.c: Ditto.
10719 * minsyms.c: Ditto.
10720 * mips-irix-tdep.c: Ditto.
10721 * mips-linux-nat.c: Ditto.
10722 * mips-linux-tdep.c: Ditto.
10723 * mips-linux-tdep.h: Ditto.
10724 * mipsnbsd-nat.c: Ditto.
10725 * mipsnbsd-tdep.c: Ditto.
10726 * mipsread.c: Ditto.
10727 * mips-tdep.c: Ditto.
10728 * mips-tdep.h: Ditto.
10729 * mn10300-linux-tdep.c: Ditto.
10730 * mn10300-tdep.c: Ditto.
10731 * mn10300-tdep.h: Ditto.
10732 * monitor.c: Ditto.
10733 * monitor.h: Ditto.
10734 * moxie-tdep.c: Ditto.
10735 * moxie-tdep.h: Ditto.
10736 * mt-tdep.c: Ditto.
10738 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10740 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10742 2011-01-08 Robert Millan <rmh@gnu.org>
10744 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10746 2011-01-07 Michael Snyder <msnyder@vmware.com>
10748 * charset.c (_initialize_charset): Fix typo in string.
10750 2011-01-07 Michael Snyder <msnyder@vmware.com>
10752 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10754 * tui/tui-layout.c (tui_set_layout_for_display_command):
10755 Split line so that operator goes to beginning of line.
10756 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10757 assignment out of if statement.
10759 2011-01-07 Michael Snyder <msnyder@vmware.com>
10761 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10762 * ada-lang.h: Ditto.
10763 * ada-tasks.c: Ditto.
10764 * ada-valprint.c: Ditto.
10765 * aix-threads.c: Ditto.
10766 * alpha-linux-nat.c: Ditto.
10767 * alpha-linux-tdep.c: Ditto.
10768 * alpha-mdebug-tdep.c: Ditto.
10769 * alpha-nat.c: Ditto.
10770 * alpha-osf1-tdep.c: Ditto.
10771 * alpha-tdep.c: Ditto.
10772 * alphabsd-nat.c: Ditto.
10773 * alphabsd-tdep.c: Ditto.
10774 * amd64-darwin-tdep.c: Ditto.
10775 * amd64-linux-nat.c: Ditto.
10776 * amd64-linux-tdep.c: Ditto.
10777 * amd64-sol2-tdep.c: Ditto.
10778 * amd64-tdep.c: Ditto.
10779 * amd64-fbsd-tdep.c: Ditto.
10780 * amd64-nbsd-tdep.c: Ditto.
10781 * amd64-obsd-tdep.c: Ditto.
10782 * amd64-linux-nat.c: Ditto.
10783 * amd64-linux-tdep.c: Ditto.
10784 * arm-tdep.c: Ditto.
10785 * arm-tdep.h: Ditto.
10786 * armnbsd-nat.c: Ditto.
10787 * avr-tdep.c: Ditto.
10788 * bfin-tdep.c: Ditto.
10789 * bsd-kvm.c: Ditto.
10790 * c-typeprintc: Ditto.
10791 * c-valprint.c: Ditto.
10792 * coff-pe-read.h: Ditto.
10793 * coffreead.c: Ditto.
10794 * cris-tdep.c: Ditto.
10796 * darwin-nat-info.c: Ditto.
10797 * darwin-nat.c: Ditto.
10798 * dbug-rom.c: Ditto.
10799 * dbxread.c: Ditto.
10802 * dec-thread.c: Ditto.
10804 * demangle.c: Ditto.
10805 * dicos-tdep.c: Ditto.
10806 * dictionary.c: Ditto.
10807 * dictionary.h: Ditto.
10808 * dink32-rom.c: Ditto.
10810 * doublest.c: Ditto.
10812 * dummy-frame.c: Ditto.
10813 * dwarf2-frame.c: Ditto.
10814 * dwarf2expr.c: Ditto.
10815 * dwarf2loc.c: Ditto.
10816 * dwarf2read.c: Ditto.
10817 * elfread.c: Ditto.
10818 * environ.c: Ditto.
10820 * event-top.h: Ditto.
10821 * exceptions.c: Ditto.
10822 * exceptions.h: Ditto.
10824 * expprint.c: Ditto.
10825 * expression.h: Ditto.
10829 * f-typeprint.c: Ditto.
10830 * f-valprint.c: Ditto.
10831 * fbsd-nat.c: Ditto.
10832 * findvar.c: Ditto.
10833 * fork-child.c: Ditto.
10836 * frv-linux-tdep.c: Ditto.
10837 * frv-tdep.c: Ditto.
10839 * gdb-stabs.h: Ditto.
10840 * gdb_assert.h: Ditto.
10841 * gdb_string.h: Ditto.
10842 * gdb_thread_db.h: Ditto.
10843 * gdb_wait.h: Ditto.
10844 * gdbarch.sh: Ditto.
10845 * gdbcore.h: Ditto.
10846 * gdbthread.h: Ditto.
10847 * gdbtypes.c: Ditto.
10848 * gdbtypes.h: Ditto.
10849 * gnu-nat.c: Ditto.
10850 * gnu-nat.h: Ditto.
10851 * gnu-v2-abi.c: Ditto.
10852 * gnu-v3-abi.c: Ditto.
10853 * go32-nat.c: Ditto.
10854 * gdbarch.c: Regenerate.
10855 * gdbarch.h: Regenerate.
10857 2011-01-07 Michael Snyder <msnyder@vmware.com>
10859 * ax-gdb.c: Adjust some long output strings.
10860 * breakpoint.c: Ditto.
10861 * charset.c: Ditto.
10863 * infcall.c: Ditto.
10865 * linux-nat.c: Ditto.
10866 * solib-pa64.c: Ditto.
10867 * solib-som.c: Ditto.
10869 2011-01-06 Tom Tromey <tromey@redhat.com>
10873 * python/python.c (GdbMethods): Add "newest_frame" method.
10874 * python/python-internal.h (gdbpy_newest_frame): Declare.
10875 * python/py-frame.c (gdbpy_newest_frame): New function.
10877 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10879 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10880 * jit.c (jit_debug): New variable.
10881 (show_jit_debug): New function.
10882 (struct target_buffer): Use ULONGEST.
10883 (bfd_open_from_target_memory): Likewise.
10884 (jit_register_code, jit_inferior_init): Add debug output.
10885 (_initialize_jit): Register "debug jit" command.
10887 2011-01-06 Tom Tromey <tromey@redhat.com>
10889 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10890 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10893 2011-01-06 Tom Tromey <tromey@redhat.com>
10895 * python/py-frame.c (frapy_block): Use get_frame_block.
10897 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10899 Do not stop on SIGPRIO signals by default
10900 * infrun.c (_initialize_infrun): Unset signal_stop and
10901 signal_print for TARGET_SIGNAL_PRIO.
10903 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10905 * ada-tasks.c: Fix style violation in comment.
10907 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10909 * linespec.c (decode_compound, find_method): Remove trailing \n
10910 at end of error string.
10911 * solib-irix.c (irix_current_sos): Likewise.
10912 * varobj.c (uninstall_variable): Likewise.
10914 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10916 * copyright.py: New script.
10917 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10918 Launch emacs without exec'ing. Call copyright.py afterwards.
10920 2011-01-05 Michael Snyder <msnyder@vmware.com>
10922 * addrmap.c: Shorten lines of >= 80 columns.
10923 * arch-utils.c: Ditto.
10924 * arch-utils.h: Ditto.
10926 * ax-general.c: Ditto.
10928 * blockframe.c: Ditto.
10929 * breakpoint.c: Ditto.
10930 * buildsym.c: Ditto.
10932 * c-typeprint.c: Ditto.
10933 * charset.c: Ditto.
10934 * coffread.c: Ditto.
10935 * command.h: Ditto.
10936 * corelow.c: Ditto.
10938 * cp-namespace.c: Ditto.
10939 * cp-support.c: Ditto.
10940 * dbug-rom.c: Ditto.
10941 * dbxread.c: Ditto.
10945 * dictionary.c: Ditto.
10947 * doublest.c: Ditto.
10948 * dwarf2-frame.c: Ditto.
10949 * dwarf2expr.c: Ditto.
10950 * dwarf2loc.c: Ditto.
10951 * dwarf2read.c: Ditto.
10952 * elfread.c: Ditto.
10954 * event-loop.c: Ditto.
10955 * event-loop.h: Ditto.
10956 * exceptions.h: Ditto.
10958 * expprint.c: Ditto.
10959 * expression.h: Ditto.
10961 * f-valprint.c: Ditto.
10962 * findcmd.c: Ditto.
10963 * frame-base.c: Ditto.
10964 * frame-unwind.c: Ditto.
10965 * frame-unwind.h: Ditto.
10969 * gdb-stabs.h: Ditto.
10970 * gdb_assert.h: Ditto.
10971 * gdb_dirent.h: Ditto.
10972 * gdb_obstack.h: Ditto.
10973 * gdbcore.h: Ditto.
10974 * gdbtypes.c: Ditto.
10975 * gdbtypes.h: Ditto.
10976 * inf-ttrace.c: Ditto.
10977 * infcall.c: Ditto.
10981 * inline-frame.h: Ditto.
10982 * language.c: Ditto.
10983 * language.h: Ditto.
10984 * libunwind-frame.c: Ditto.
10985 * libunwind-frame.h: Ditto.
10986 * linespec.c: Ditto.
10987 * linux-nat.c: Ditto.
10988 * linux-nat.h: Ditto.
10989 * linux-thread-db.c: Ditto.
10990 * machoread.c: Ditto.
10991 * macroexp.c: Ditto.
10992 * macrotab.c: Ditto.
10995 * mdebugread.c: Ditto.
10996 * memattr.c: Ditto.
10997 * minsyms.c: Ditto.
10998 * monitor.c: Ditto.
10999 * monitor.h: Ditto.
11000 * objfiles.c: Ditto.
11001 * objfiles.h: Ditto.
11003 * p-typeprint.c: Ditto.
11004 * p-valprint.c: Ditto.
11006 * printcmd.c: Ditto.
11007 * proc-events.c: Ditto.
11009 * progspace.c: Ditto.
11010 * progspace.h: Ditto.
11011 * psympriv.h: Ditto.
11012 * psymtab.c: Ditto.
11014 * regcache.c: Ditto.
11015 * regcache.h: Ditto.
11016 * remote-fileio.c: Ditto.
11018 * ser-mingw.c: Ditto.
11019 * ser-tcp.c: Ditto.
11020 * ser-unix.c: Ditto.
11023 * solib-frv.c: Ditto.
11024 * solib-irix.c: Ditto.
11025 * solib-osf.c: Ditto.
11026 * solib-pa64.c: Ditto.
11027 * solib-som.c: Ditto.
11028 * solib-sunos.c: Ditto.
11029 * solib-svr4.c: Ditto.
11030 * solib-target.c: Ditto.
11032 * somread.c: Ditto.
11034 * stabsread.c: Ditto.
11035 * stabsread.c: Ditto.
11038 * symfile-mem.c: Ditto.
11039 * symfile.c: Ditto.
11040 * symfile.h: Ditto.
11041 * symmisc.c: Ditto.
11044 * target-descriptions.c: Ditto.
11045 * target-memory.c: Ditto.
11048 * terminal.h: Ditto.
11051 * tracepoint.c: Ditto.
11052 * tracepoint.h: Ditto.
11053 * ui-file.c: Ditto.
11054 * ui-file.h: Ditto.
11056 * user-regs.c: Ditto.
11057 * user-regs.h: Ditto.
11059 * valarith.c: Ditto.
11061 * valprint.c: Ditto.
11062 * valprint.h: Ditto.
11067 * xcoffread.c: Ditto.
11068 * xcoffsolib.c: Ditto.
11069 * xcoffsolib.h: Ditto.
11070 * xml-syscall.c: Ditto.
11071 * xml-tdesc.c: Ditto.
11073 2011-01-05 Michael Snyder <msnyder@vmware.com>
11075 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11076 * cli/cli-decode.c: Ditto.
11077 * cli/cli-dump.c: Ditto.
11078 * cli/cli-logging.c: Ditto.
11079 * cli/cli-script.c: Ditto.
11080 * cli/cli-setshow.c: Ditto.
11081 * common/signals.c: Ditto.
11082 * mi/mi-cmd-break.c: Ditto.
11083 * mi/mi-cmd-disas.c: Ditto.
11084 * mi/mi-cmd-stack.c: Ditto.
11085 * mi/mi-cmd-var.c: Ditto.
11086 * mi/mi-cmds.c: Ditto.
11087 * mi/mi-common.h: Ditto.
11088 * mi/mi-console.c: Ditto.
11089 * mi/mi-interp.c: Ditto.
11090 * mi/mi-main.c: Ditto.
11091 * osf-share/cma_attr.c: Ditto.
11092 * osf-share/cma_deb_core.h: Ditto.
11093 * osf-share/cma_debug_client.h: Ditto.
11094 * osf-share/cma_handle.h: Ditto.
11095 * osf-share/cma_mutex.h: Ditto.
11096 * osf-share/cma_stack_int.h: Ditto.
11097 * osf-share/cma_tcb_defs.h: Ditto.
11098 * python/py-auto-load.c: Ditto.
11099 * python/py-breakpoint.c: Ditto.
11100 * python/py-cmd.c: Ditto.
11101 * python/py-frame.c: Ditto.
11102 * python/py-objfile.c: Ditto.
11103 * python/py-param.c: Ditto.
11104 * python/py-progspace.c: Ditto.
11105 * python/py-symbol.c: Ditto.
11106 * python/py-value.c: Ditto.
11107 * python/python-internal.h: Ditto.
11108 * python/python.c: Ditto.
11109 * tui/tui-data.c: Ditto.
11110 * tui/tui-disasm.c: Ditto.
11111 * tui/tui-hooks.c: Ditto.
11112 * tui/tui-io.c: Ditto.
11113 * tui/tui-layout.c: Ditto.
11114 * tui/tui-regs.c: Ditto.
11115 * tui/tui-source.c: Ditto.
11116 * tui/tui-stack.c: Ditto.
11117 * tui/tui-win.c: Ditto.
11118 * tui/tui-windata.c: Ditto.
11119 * tui/tui-winsource.c: Ditto.
11121 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11123 * configure.ac, gdb.1: Copyright year update.
11125 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11127 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11128 this_pc_in_block, morestack_msym and morestack_name. Check for
11129 "__morestack" minimal symbol there.
11131 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11133 * symfile.c (find_sym_fns): Add call to dont_repeat.
11135 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11137 Copyright year update in most files (performed by copyright.sh).
11139 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11141 * top.c (print_gdb_version): Update copyright year in version output.
11143 For older changes see ChangeLog-2010.
11149 version-control: never