1 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3 * target.h (enum inferior_event_type): Delete INF_ERROR.
4 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6 2011-05-30 Pedro Alves <pedro@codesourcery.com>
8 * interps.c (interp_set): Don't cancel continuations.
10 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
14 2011-05-30 Pedro Alves <pedro@codesourcery.com>
16 * continuations.h (continuation_ftype): Add `err' parameter.
18 (do_all_continuations, do_all_continuations_thread)
19 (do_all_intermediate_continuations)
20 (do_all_intermediate_continuations_thread)
21 (do_all_inferior_continuations): Add `err' parameter.
22 * continuations.c (do_my_continuations_1, do_my_continuations)
23 (do_all_inferior_continuations, do_all_continuations_ptid)
24 (do_all_continuations_thread_callback)
25 (do_all_continuations_thread, do_all_continuations)
26 (do_all_intermediate_continuations_thread_callback)
27 (do_all_intermediate_continuations_thread)
28 (do_all_intermediate_continuations): Add `err' parameter, and pass
29 it down all the way to the continuations proper.
30 * inf-loop.c (inferior_event_handler): If fetching an inferior
31 event throws an error, don't pop the target, and still call the
32 continuations, but with `err' set. Adjust all other continuation
34 * breakpoint.c (until_break_command_continuation): Add `err'
36 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
37 issue another step if `err' is set.
38 (struct until_next_continuation_args): New.
39 (until_next_continuation): Add `err' parameter. Adjust.
40 (until_next_command): Adjust.
41 (struct finish_command_continuation_args): Add `thread' field.
42 (finish_command_continuation): Add `err' parameter. Handle it.
43 (finish_forward): Adjust.
44 (attach_command_continuation): Add `err' parameter. Handle it.
45 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
46 cancel the continuations.
47 * interps.c (interp_set): Adjust to cancel the continuations.
48 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
49 continuations rather than discarding.
50 (free_thread): Don't clear thread inferior resources here.
51 (delete_thread_1): Do it here instead. And do it before removing
52 the thread from the threads list. Tag the thread as exited before
53 clearing thread inferior resources.
55 2011-05-30 Joel Brobecker <brobecker@adacore.com>
57 * infcall.c (call_function_by_hand): Rephrase error message.
59 2011-05-27 Pedro Alves <pedro@codesourcery.com>
61 * defs.h (struct thread_info, struct inferior): Delete forward
63 * breakpoint.h (struct thread_info): New forward declaration.
64 * observer.sh (struct inferior): New forward declaration.
65 * python/python-internal.h (struct inferior): New forward
68 2011-05-27 Pedro Alves <pedro@codesourcery.com>
70 * defs.h (struct continuation, continuation_ftype)
71 (continuation_free_arg_ftype, add_continuation)
72 (do_all_continuations, do_all_continuations_thread)
73 (discard_all_continuations, discard_all_continuations_thread)
74 (add_intermediate_continuation, do_all_intermediate_continuations)
75 (do_all_intermediate_continuations_thread)
76 (discard_all_intermediate_continuations)
77 (discard_all_intermediate_continuations_thread)
78 (add_inferior_continuation, do_all_inferior_continuations)
79 (discard_all_inferior_continuations): Move to ...
80 * continuations.h: ... this new file.
81 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
82 infcmd.c, inferior.c, infrun.c, interps.c: Include
85 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
86 Doug Evans <dje@google.com>
88 Fix PR 10970, PR 12702.
89 * linux-nat.c (linux_lwp_is_zombie): New function.
90 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
91 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
93 2011-05-27 Pedro Alves <pedro@codesourcery.com>
95 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
97 (add_continuation, add_intermediate_continuation)
98 (add_inferior_continuation): Use them.
99 * continuations.c (struct continuation): Use them.
100 (make_continuation_ftype): Delete.
101 (make_continuation, add_inferior_continuation, add_continuation)
102 (add_intermediate_continuation): Use continuation_ftype and
103 continuation_free_arg_ftype. Rename parameters to shorter names.
105 2011-05-27 Pedro Alves <pedro@codesourcery.com>
107 * continuations.c (make_continuation): Make it return void.
108 (do_my_continuations): Rename to ...
109 (do_my_continuations_1): ... this. Remove old_chain parameter and
111 (do_my_continuations): New.
112 (discard_my_continuations): Rename to ...
113 (discard_my_continuations_1): ... this. Remove old_chain
114 parameter and adjust.
115 (discard_my_continuations): New.
116 (add_inferior_continuation): Simplify.
117 (do_all_inferior_continuations): Reimplement on top
119 (discard_all_inferior_continuations): Simplify.
120 (add_continuation): Simplify.
121 (do_all_continuations_ptid): Simplify.
122 (discard_all_continuations_thread_callback): Simplify.
123 (add_intermediate_continuation): Simplify.
124 (discard_all_intermediate_continuations_thread_callback):
127 2011-05-27 Pedro Alves <pedro@codesourcery.com>
129 * utils.c (struct continuation, add_continuation)
130 (add_inferior_continuation)
131 (do_all_inferior_continuations, discard_all_inferior_continuations)
132 (restore_thread_cleanup, do_all_continuations_ptid)
133 (do_all_continuations_thread_callback)
134 (do_all_continuations_thread, do_all_continuations)
135 (discard_all_continuations_thread_callback)
136 (discard_all_continuations_thread, discard_all_continuations)
137 (add_intermediate_continuation)
138 (do_all_intermediate_continuations_thread_callback)
139 (do_all_intermediate_continuations_thread)
140 (do_all_intermediate_continuations)
141 (discard_all_intermediate_continuations_thread_callback)
142 (discard_all_intermediate_continuations_thread)
143 (discard_all_intermediate_continuations): Move to ...
144 * continuations.c: ... this new file, and adjust to no longer
145 implement continuations on top of cleanups.
146 * Makefile.in (SFILES): Add continuations.c.
147 (COMMON_OBS): Add continuations.o.
149 2011-05-26 Pedro Alves <pedro@codesourcery.com>
151 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
152 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
153 Internal error on invalid values.
154 * reverse.c: Don't handle EXEC_ERROR.
155 * mi/mi-main.c: Don't handle EXEC_ERROR.
157 2011-05-26 Pedro Alves <pedro@codesourcery.com>
159 * record.c: Include event-loop.h, inf-loop.h.
160 (record_beneath_to_async): New global.
161 (tmp_to_async): New global.
162 (record_async_inferior_event_token): New global.
163 (record_open_1): Don't error out if async is enabled.
164 (record_open): Handle to_async. Create an async event source in
166 (record_close): Delete the async event source.
167 (record_resumed): New global.
168 (record_execution_dir): New global.
169 (record_resume, record_core_resume): Set them. Register the
170 target on the event loop.
171 (record_wait): Rename to ...
172 (record_wait_1): ... this. Add more debug output. Handle
173 TARGET_WNOHANG, and the target beneath returning
174 TARGET_WAITKIND_IGNORE.
175 (record_wait): Reimplement on top of record_wait_1.
176 (record_async_mask_value): New global.
177 (record_async, record_async_mask, record_can_async_p)
178 (record_is_async_p, record_execution_direction): New functions.
179 (init_record_ops, init_record_core_ops): Install new methods.
180 * infrun.c (fetch_inferior_event): Temporarily switch the global
181 execution direction to the direction the target was going.
182 (execution_direction): Change type to int.
183 * target.c (default_execution_direction): New function.
184 (update_current_target): Inherit and de_fault
185 to_execution_direction.
186 * target.h (struct target_ops) <to_execution_direction>: New
188 (target_execution_direction): New macro.
189 * inferior.h (execution_direction): Change type to int.
191 2011-05-26 Pedro Alves <pedro@codesourcery.com>
193 * infcall.c (call_function_by_hand): Don't allow calling functions
194 in reverse execution mode.
196 2011-05-26 Pedro Alves <pedro@codesourcery.com>
198 * infcmd.c (finish_command): Allow async finish in reverse.
200 2011-05-26 Yao Qi <yao@codesourcery.com>
202 * gdb_thread_db.h: Delete. Move to ...
203 * common/gdb_thread_db.h: ... here.
205 2011-05-26 Pedro Alves <pedro@codesourcery.com>
207 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
208 function's entry point instead of a manually managed momentary
209 breakpoint, and only ever issue one proceed call.
210 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
211 doing a reverse-finish, switch to stepi mode, to do another step.
212 (insert_step_resume_breakpoint_at_sal): Make public.
213 (normal_stop): No need to save function value return registers if
215 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
217 2011-05-26 Pedro Alves <pedro@codesourcery.com>
219 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
220 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
221 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
223 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
224 step-resume breakpoints.
225 (print_it_typical): Handle bp_hp_step_resume.
226 (bpstat_what): Ditto.
227 (bptype_string): Ditto.
228 (print_one_breakpoint_location): Ditto.
229 (allocate_bp_location): Ditto.
231 (breakpoint_re_set_one): Ditto.
232 * infrun.c (handle_inferior_event): Adjust. Split
233 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
234 BPSTAT_WHAT_HP_STEP_RESUME.
235 (insert_step_resume_breakpoint_at_sal): Rename to ...
236 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
237 parameter. Handle it.
238 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
239 insert_step_resume_breakpoint_at_sal_1.
240 (insert_step_resume_breakpoint_at_frame): Rename to ...
241 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
242 set a high-priority step-resume breakpoint.
243 (insert_step_resume_breakpoint_at_frame): Adjust comment.
244 (insert_step_resume_breakpoint_at_caller): Ditto.
246 2011-05-26 Pedro Alves <pedro@codesourcery.com>
248 * breakpoint.c (iterate_over_related_breakpoints): New.
249 (do_map_delete_breakpoint): New.
250 (delete_command): Pass do_map_delete_breakpoint to
251 map_breakpoint_numbers.
252 (do_disable_breakpoint): New.
253 (do_map_disable_breakpoint): Iterate over the breakpoint's related
255 (do_enable_breakpoint): Rename to ...
256 (enable_breakpoint_disp): ... this.
257 (enable_breakpoint): Adjust.
258 (do_enable_breakpoint): New.
259 (enable_once_breakpoint): Delete.
260 (do_map_enable_breakpoint): New.
261 (do_map_enable_once_breakpoint): New.
262 (enable_once_command, enable_delete_command)
263 (delete_trace_command): Iterate over the breakpoint's related
266 2011-05-26 Pedro Alves <pedro@codesourcery.com>
268 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
269 for ALPHA_ZERO_REGNUM.
270 (alpha_supply_int_regs): Explicitly supply zero as the value for
271 ALPHA_ZERO_REGNUM in the register cache.
272 * alpha-nat.c (fetch_osf_core_registers): Ditto.
274 2011-05-26 Yao Qi <yao@codesourcery.com>
276 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
278 2011-05-26 Tristan Gingold <gingold@adacore.com>
280 * symfile.h (struct dwarf2_section_names): New type.
281 (struct dwarf2_debug_sections): New type.
282 (dwarf2_has_info): Add parameter.
283 * dwarf2read.c (dwarf2_elf_names): New variable.
284 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
285 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
286 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
287 (dwarf2_has_info): Add names parameter. Pass names
288 to dwarf2_locate_sections.
289 (section_is_p): Rewrite using the names parameter.
290 (dwarf2_locate_sections): Use section names from the names parameter.
291 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
292 * elfread.c (read_psyms): Ditto.
293 * machoread.c (macho_symfile_read): Ditto.
295 2011-05-25 Andreas Schwab <schwab@redhat.com>
298 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
300 2011-05-24 Keith Seitz <keiths@redhat.com>
303 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
304 (decode_compound): Unconditionally call keep_name_info.
306 2011-05-24 Pedro Alves <pedro@codesourcery.com>
308 * breakpoint.c (watchpoint_check): If the watchpoint went out of
309 scope, clear its command list.
310 (map_breakpoint_numbers): Don't walk the related breakpoints list
313 2011-05-24 Tom Tromey <tromey@redhat.com>
315 * MAINTAINERS: Move Jim Blandy to past maintainers.
317 2011-05-24 Tristan Gingold <gingold@adacore.com>
319 * symfile.h (enum dwarf2_section_enum): New type.
320 (dwarf2_get_section_info): New prototype.
321 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
322 section_name by sect. Use a switch to select the info.
323 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
324 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
326 2011-05-24 Pedro Alves <pedro@codesourcery.com>
328 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
329 shared library event breakpoint if there's no execution.
331 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
333 * breakpont.c (remove_hw_watchpoints): Remove unused function.
334 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
336 2011-05-23 Tom Tromey <tromey@redhat.com>
338 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
341 2011-05-23 Doug Evans <dje@google.com>
343 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
344 entry for RuntimeError to doc string.
346 2011-05-23 Jerome Guitton <guitton@adacore.com>
348 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
349 sequence for probing loops.
351 2011-05-23 Pedro Alves <pedro@codesourcery.com>
353 * infrun.c (user_visible_resume_ptid): Fix typos in describing
356 2011-05-21 Mark Kettenis <kettenis@gnu.org>
358 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
359 zero as the value for %g0 in the register cache.
360 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
361 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
363 2011-05-20 Pedro Alves <pedro@codesourcery.com>
365 * infrun.c (proceed): Set previous_inferior_ptid here.
366 (init_wait_for_inferior): Initialize previous_inferior_ptid from
367 inferior_ptid, not null_ptid.
368 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
369 (fetch_inferior_event): Nor here.
371 2011-05-20 Pedro Alves <pedro@codesourcery.com>
373 * inf-loop.c (inferior_event_handler): Only output a message if
376 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
378 * MAINTAINERS: Update my e-mail address.
380 2011-05-20 Pedro Alves <pedro@codesourcery.com>
382 * infrun.c (proceed): Switch the inferior event loop to
383 INF_EXEC_COMPLETE if the target refused to resume from a
386 2011-05-20 Pedro Alves <pedro@codesourcery.com>
388 * infcmd.c: Include "inf-loop.h".
389 (step_once): When stepping into an inline subroutine, pretend the
390 target has run. If the target can async, switch the inferior
391 event loop to INF_EXEC_COMPLETE.
392 * inferior.h (user_visible_resume_ptid): Declare.
393 * infrun.c (user_visible_resume_ptid): New function, factored out
396 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
397 that the current thread is running. Merge async and sync
400 2011-05-20 Pedro Alves <pedro@codesourcery.com>
402 * infcmd.c (step_1): Simplify synchronous case.
404 2011-05-20 Pedro Alves <pedro@codesourcery.com>
406 * tracepoint.c: Include exceptions.h.
407 (TFILE_PID): Move higher in file.
408 (tfile_open): Delay pushing the tfile target until we're assured
409 the tfile header is present in the file. Wrap reading the initial
410 newline-terminated lines in TRY_CATCH. Pop the target if the
411 initial setup failed. Add the tfile's thread immediately
412 aftwards, before any non-essential setup. Don't skip
413 post_create_inferior if there are no traceframes present in the
415 (tfile_close): Remove redundant check for null before xfree call.
416 (tfile_thread_alive): New function.
417 (init_tfile_ops): Register it as to_thread_alive callback.
419 2011-05-20 Pedro Alves <pedro@codesourcery.com>
421 * tracepoint.c (tfile_open): Delete #if 0'd code.
423 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
425 Fix -readnow for -gdwarf-4 unused type units.
426 * dwarf2read.c (struct signatured_type): Remove the field offset.
427 (create_signatured_type_table_from_index): Remove its initialization.
428 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
429 instead. Add a complaint call.
430 (process_psymtab_comp_unit): Change assignment to gdb_assert.
431 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
432 (lookup_signatured_type_at_offset, read_signatured_type)
433 (write_one_signatured_type): Update the field for per_cu.
435 2011-05-19 Tom Tromey <tromey@redhat.com>
437 * python/py-inferior.c (python_inferior_exit): Use
439 (python_on_resume): Likewise.
441 2011-05-19 Matt Rice <ratmice@gmail.com>
443 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
445 2011-05-19 Hui Zhu <teawater@gmail.com>
447 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
449 2011-05-19 Hui Zhu <teawater@gmail.com>
451 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
453 2011-05-18 Tom Tromey <tromey@redhat.com>
455 * dwarf2read.c (dwarf2_add_field): Constify.
456 * value.c (value_static_field): Constify.
457 * gdbtypes.h (struct main_type) <field.field_location.physname>:
459 * ax-gdb.c (gen_static_field): Constify
461 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
463 * linux-nat.c (kill_callback): Use SIGKILL first.
465 2011-05-18 Joel Brobecker <brobecker@adacore.com>
467 * ada-lang.c (print_it_exception): Avoid use of sprintf.
469 2011-05-18 Tom Tromey <tromey@redhat.com>
471 * value.c (value_fn_field): Constify.
472 * symtab.c (gdb_mangle_name): Constify.
473 * stabsread.c (update_method_name_from_physname): Make 'physname'
475 * p-typeprint.c (pascal_type_print_method_args): Make arguments
476 const. Use explicit fputc_filtered loop.
477 (pascal_type_print_base): Constify.
478 * p-lang.h (pascal_type_print_method_args): Update.
479 * linespec.c (add_matching_methods): Constify.
480 (add_constructors): Likewise.
481 * jv-typeprint.c (java_type_print_base): Constify.
482 * gdbtypes.h (struct cplus_struct_type)
483 <fn_fieldlist.fn_field.physname>: Now const.
484 * dwarf2read.c (compute_delayed_physnames): Constify.
485 (dwarf2_add_member_fn): Likewise.
486 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
488 2011-05-18 Pedro Alves <pedro@codesourcery.com>
490 * infrun.c (resume): Mention which is the current thread, and its
491 current PC in debug output.
492 (prepare_to_proceed): Mention the thread switching in debug
495 2011-05-18 Tom Tromey <tromey@redhat.com>
497 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
498 path check. Use xmalloc and cleanups.
499 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
501 2011-05-17 Tom Tromey <tromey@redhat.com>
503 * cp-valprint.c (cp_print_value_fields): Catch errors from
506 2011-05-17 Tom Tromey <tromey@redhat.com>
508 * dwarf2read.c (dwarf2_get_die_type): Call
509 get_die_type_at_offset.
510 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
511 get_base_type function.
513 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
515 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
518 2011-05-16 Doug Evans <dje@google.com>
520 * python/py-auto-load.c (source_section_scripts): Mention objfile
523 2011-05-15 Doug Evans <dje@google.com>
525 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
526 (try_thread_db_load_from_pdir): Call it. If unable to find
527 libthread_db in directory of libpthread, see if we're looking at
528 the separate-debug-info copy.
530 * python/py-autoload.c (print_script): Print "Missing" instead of
531 "No" for missing scripts.
532 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
534 2011-05-13 Doug Evans <dje@google.com>
536 * ui-file.c (stdio_file_write_async_safe): Add comment.
538 2011-05-14 Hui Zhu <teawater@gmail.com>
540 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
542 2011-05-13 Doug Evans <dje@google.com>
544 Support $pdir and $sdir in libthread-db-search-path.
545 * NEWS: Mention $sdir,$pdir.
546 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
547 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
548 (try_thread_db_load_from_sdir): New function.
549 (try_thread_db_load_from_dir): New function.
550 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
551 system directories if search of libthread-db-search-path fails,
552 that is now done via $sdir.
553 (has_libpthread): New function.
554 (thread_db_load): Remove search for libthread_db in directory of
555 libpthread, that is now done via $pdir.
557 * NEWS: Mention "info auto-load-scripts".
558 * python/py-auto-load.c (struct auto_load_pspace_info): New member
559 script_not_found_warning_printed.
560 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
561 all callers updated. Initialize script_not_found_warning_printed.
562 (get_auto_load_pspace_data_for_loading): New function.
563 (maybe_add_script): New function.
564 (source_section_scripts): Simplify. Only print one warning regardless
565 of the number of auto-load scripts not found.
566 (clear_section_scripts): Clear script_not_found_warning_printed.
567 (auto_load_objfile_script): Record script in hash table.
568 (count_matching_scripts): New function.
569 (maybe_print_script): Renamed from maybe_print_section_script, all
570 callers updated. Rewrite to use ui_out_*.
571 (info_auto_load_scripts): Renamed from
572 maintenance_print_section_scripts, all callers updated.
573 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
574 renamed as "info auto-load-scripts".
576 2011-05-13 Tom Tromey <tromey@redhat.com>
578 * dwarf2expr.c (read_uleb128): Cast intermediate result.
579 (read_sleb128): Likewise.
581 2011-05-13 Tom Tromey <tromey@redhat.com>
583 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
586 2011-05-13 Doug Evans <dje@google.com>
588 * linux-nat.c (debug_linux_nat_async): Delete.
589 Replace all references to use debug_linux_nat instead.
590 (show_debug_linux_nat_async): Delete.
591 (sigchld_handler): Call ui_file_write_async_safe instead of
593 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
594 * ui-file.c (struct ui_file): New member to_write_async_safe.
595 (null_file_write_async_safe): New function.
596 (ui_file_write_async_safe): New function.
597 (set_ui_file_write_async_safe): New function.
598 (ui_file_new): Initialize to_write_async_safe.
599 (stdio_file_write_async_safe): New function.
600 (struct stdio_file): New member fd.
601 (stdio_file_new): Initialize to_write_async_safe, fd.
602 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
604 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
605 (set_ui_file_write_async_safe): Declare.
606 (ui_file_write_async_safe): Declare.
608 2011-05-13 Tom Tromey <tromey@redhat.com>
610 * utils.c (do_value_free): New function.
611 (make_cleanup_value_free): Likewise.
612 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
614 (dwarf2_loc_desc_needs_frame): Call
615 make_cleanup_value_free_to_mark.
616 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
617 * dwarf2expr.c (free_dwarf_expr_context): Don't call
619 (new_dwarf_expr_context): Don't call value_mark.
620 * dwarf2-frame.c (execute_stack_op): Call
621 make_cleanup_value_free_to_mark.
622 * defs.h (make_cleanup_value_free): Declare.
624 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
626 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
627 prepare_execute_command.
628 * top.c (prepare_execute_command): Return cleanup.
629 (execute_command): Use cleanup from prepare_execute_command.
630 * top.h (prepare_execute_command): Change prototype to return
632 * defs.h (struct value): Add opaque declaration.
633 (make_cleanup_value_free_to_mark): Add prototype.
634 * utils.c (do_value_free_to_mark): New function.
635 (make_cleanup_value_free_to_mark): Likewise.
637 2011-05-12 Tom Tromey <tromey@redhat.com>
639 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
640 cast left-hand-side to unsigned.
642 2011-05-12 Tom Tromey <tromey@redhat.com>
645 * value.h (value_from_contents): Declare.
646 * value.c (value_from_contents): New function.
647 * dwarf2read.c (dwarf_stack_op_name): Add new values.
648 (dwarf2_get_die_type): New function.
649 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
650 (allocate_piece_closure): Acquire reference to values.
651 (read_pieced_value): Update for value-based expressions.
652 (write_pieced_value): Likewise.
653 (free_pieced_value_closure): Call value_free as needed.
654 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
655 Update for value-based expressions.
656 * dwarf2loc.h (dwarf2_get_die_type): Declare.
657 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
658 <get_base_type>: New field.
659 (struct dwarf_expr_piece) <v.value>: Change type.
660 <v.regno>: New field.
661 (struct dwarf_expr_context) <mark>: New field.
662 (dwarf_expr_piece, dwarf_expr_fetch): Update.
663 (dwarf_expr_pop, dwarf_expr_push): Remove.
664 (dwarf_expr_push_address): Declare.
665 * dwarf2expr.c (dwarf_arch_cookie): New global.
666 (struct dwarf_gdbarch_types): New.
667 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
669 (dwarf_expr_push): Change type of 'value' argument. Update. Now
671 (dwarf_expr_push_address): New function.
672 (dwarf_expr_pop): Now static.
673 (dwarf_expr_fetch): Change return type.
674 (dwarf_require_integral): New function.
675 (dwarf_expr_fetch): Simplify.
677 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
679 (execute_stack_op) <sign_ext>: Remove.
680 Use values for DWARF stack.
681 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
682 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
684 (_initialize_dwarf2expr): New function.
686 (new_dwarf_expr_context): Set new field.
687 (free_dwarf_expr_context): Call value_free_to_mark.
688 * dwarf2-frame.c (no_base_type): New function.
689 (execute_stack_op): Set get_base_type field. Update.
691 2011-05-12 Tom Tromey <tromey@redhat.com>
693 * dwarf2read.c (read_common_block): Fix formatting.
695 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
697 * breakpoint.c (disable_breakpoint): Disable all locations
698 associated with a tracepoint on target if a trace experiment is
700 (disable_command): Disable a specific tracepoint location on target if
701 a trace experiment is running.
702 (do_enable_breakpoint): Enable all locations associated with a
703 tracepoint on target if a trace experiment is running.
704 (enable_command) Enable a specific tracepoint location on target if a
705 trace experiment is running.
706 * target.c (update_current_target): Add INHERIT and de_fault clauses for
707 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
708 to_disable_tracepoint.
709 * target.h: Add declaration of struct bp_location.
710 (struct target_ops): Add new functions
711 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
712 to_disable_tracepoint to target operations.
713 (target_supports_enable_disable_tracepoint): New macro.
714 (target_enable_tracepoint): New macro.
715 (target_disable_tracepoint): New macro.
716 * remote.c (struct remote_state): Add new field.
717 (remote_enable_disable_tracepoint_feature): New.
718 (remote_protocol_features): Add new entry.
719 (remote_supports_enable_disable_tracepoint): New.
720 (remote_enable_tracepoint): New.
721 (remote_disable_tracepoint): New.
722 (init_remote_ops): Add remote_enable_tracepoint,
723 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
724 to remote operations.
725 * tracepoint.c (start_tracing): Allow tracing to start without any
726 tracepoints enabled with just a warning if they can be re-enabled
728 * NEWS: Add news item for the new behaviour of the enable and disable
729 GDB commands when applied to tracepoints.
730 Add news items for the new remote packets QTEnable and QTDisable.
732 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
734 * config.in: Regenerate.
735 * configure: Regenerate.
736 * configure.ac <--with-system-readline> (for readline_echoing_p):
738 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
739 (tui_old_rl_echoing_p): ... here.
740 (tui_setup_io): Rename extern declaration readline_echoing_p to
741 _rl_echoing_p. Adjust assignments for the both renames.
743 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
745 * symtab.c (lookup_symtab): Run cleanup before returning.
747 2011-05-11 Tom Tromey <tromey@redhat.com>
749 * dwarf2read.c (handle_data_member_location): New function.
750 (dwarf2_add_field): Use it.
751 (read_common_block): Likewise.
753 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
755 Make addrs->SECTINDEX always defined.
756 * symfile.c (relative_addr_info_to_section_offsets): Check for
757 SECTINDEX -1, not for zero ADDR.
758 (addrs_section_compar): Remove checking for invalid SECTINDEX.
759 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
760 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
763 2011-05-10 Doug Evans <dje@google.com>
765 * linux-thread-db.c: Whitespace cleanup.
766 (try_thread_db_load_1): Fix comment.
768 * linux-thread-db.c (set_libthread_db_search_path): New function.
769 (_initialize_thread_db): Add setter for libthread-db-search-path.
771 2011-05-09 Doug Evans <dje@google.com>
773 * NEWS: Mention --with-iconv-bin.
774 * configure.ac: New option --with-iconv-bin.
775 * configure: Regenerate.
776 * config.in: Regenerate.
777 * defs.h (relocate_gdb_directory): Declare.
778 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
779 removed progname parameter, and exported. All callers updated.
780 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
782 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
783 adding missing call to restore_child_signals_mask.
785 2011-05-09 Pedro Alves <pedro@codesourcery.com>
787 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
789 * infrun.c (proceed, start_remote): Adjust.
790 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
791 and adjust to not handle it.
792 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
793 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
794 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
795 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
796 * windows-nat.c (do_initial_windows_stuff): Adjust.
797 * infcmd.c (attach_command): Adjust.
798 (notice_new_inferior): Adjust.
800 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
802 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
803 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
804 * spu-tdep.c (op_selb): Use correct value.
806 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
808 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
809 "parent" parameter to symbol_file_add_from_bfd call.
811 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
812 Thiago Jung Bauermann <bauerman@br.ibm.com>
814 Implement support for PowerPC BookE masked watchpoints.
815 * NEWS: Mention masked watchpoint support. Create "Changed commands"
817 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
818 method. Initialize to NULL in all existing breakpoint_ops instances.
819 (struct breakpoint) <hw_wp_mask>: New field.
820 * breakpoint.c (is_masked_watchpoint): Add prototype.
821 (update_watchpoint): Don't set b->val for masked watchpoints. Call
822 breakpoint's breakpoint_ops.works_in_software_mode if available.
823 (watchpoints_triggered): Handle the case of a hardware masked
825 (watchpoint_check): Likewise.
826 (works_in_software_mode_watchpoint): New function.
827 (insert_masked_watchpoint, remove_masked_watchpoint)
828 (resources_needed_masked_watchpoint)
829 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
830 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
831 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
833 (masked_watchpoint_breakpoint_ops): New structure.
834 (watch_command_1): Check for the existence of the `mask' parameter.
835 Set b->ops according to the type of hardware watchpoint being created.
836 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
837 (ppc_linux_remove_mask_watchpoint)
838 (ppc_linux_masked_watch_num_registers): New functions.
839 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
840 to_remove_mask_watchpoint and to_masked_watch_num_registers.
841 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
842 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
843 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
844 (target_masked_watch_num_registers): New functions.
845 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
846 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
848 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
849 (target_masked_watch_num_registers): Add prototypes.
851 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
854 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
855 (producer_is_gcc_ge_4_0): New function.
856 (process_full_comp_unit): Set also symtab->locations_valid. Move the
857 symtab->language code.
858 (var_decode_location): Set cu->has_loclist.
859 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
860 skip. Intialize force_skip from locations_valid. Move the prologue
861 skipping code into two passes.
862 * symtab.h (struct symtab): Make the primary field a bitfield. New
863 field locations_valid.
865 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
867 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
868 (classify_inner_name): Call cp_lookup_nested_type with
870 * cp-namespace.c (cp_lookup_nested_type): New variable
871 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
872 type_name_no_tag_or_error with saved_parent_type.
873 * dwarf2read.c (load_partial_dies): Read in any children of
874 DW_TAG_typedef with complaint in such case.
875 * gdbtypes.c (type_name_no_tag_or_error): New function.
876 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
877 * valops.c (destructor_name_p): New comment for parameter type. Remove
878 type const. Make dname and cp const. Call type_name_no_tag_or_error.
879 * value.h (destructor_name_p): Remove type const.
881 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
883 * symtab.c (compare_symbol_name): New function.
884 (completion_list_add_name, expand_partial_symbol_name): Call it,
885 remove the variable ncmp.
886 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
889 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
891 Demote to sw watchpoint only in update_watchpoint.
892 * breakpoint.c (update_watchpoint): Change between software and
893 hardware watchpoint for all kinds of watchpoints, not just
894 read/write ones. Determine b->exact value here instead of
895 in watch_command_1. Error out if there are not enough resources
896 for a read or access hardware watchpoint.
897 (watch_command_1): Remove logic of checking whether there are
898 enough resources available, since update_watchpoint will do that
899 work now. Don't set b->exact here. Catch exceptions thrown by
900 update_watchpoint and delete the watchpoint.
901 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
902 Use target_exact_watchpoints instead.
903 (delete_breakpoint): Notify observers only if deleted watchpoint
904 has a breakpoint number assigned to it.
906 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
908 * MAINTAINERS: Add myself as a write-after-approval maintainer.
910 2011-05-05 Jerome Guitton <guitton@adacore.com>
912 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
914 (i386_stack_tramp_frame_unwind): New static global.
915 (i386_match_pattern): New function, extracted from i386_match_insn.
916 (i386_match_insn): Use i386_match_pattern.
917 (i386_match_insn_block): New function.
918 (i386_tramp_chain_in_reg_insns)
919 (i386_tramp_chain_on_stack_insns): New static variables.
920 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
923 2011-05-04 Joseph Myers <joseph@codesourcery.com>
925 * configure.host (xscale*): Don't handle target.
926 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
929 2011-05-04 Yao Qi <yao@codesourcery.com>
931 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
933 2011-05-03 Joel Brobecker <brobecker@adacore.com>
936 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
937 | * elfread.c (elf_symtab_read): Stop memory leak.
939 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
941 * nto-tdep.c (nto_target): Replace deprecated call to
942 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
944 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
946 Fix false GCC warning.
947 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
949 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
951 * breakpoint.c (update_watchpoint): Move code to change
952 the enable state of breakpoint from here ...
953 (do_enable_breakpoint): ... to here.
955 2011-04-26 Andrew Gontarek <andrewg@cray.com>
957 * valprint.c (val_print_array_elements): Fixed poor performance
958 of printing very large arrays with repeat_count_threshold set
959 to unlimited. New comment.
961 2011-04-29 Tom Tromey <tromey@redhat.com>
963 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
964 (mi_parse): Likewise.
965 * breakpoint.c (break_range_command): Use sizeof char*, not
967 (create_breakpoint): Likewise.
968 (parse_breakpoint_sals): Likewise.
970 2011-04-29 Pedro Alves <pedro@codesourcery.com>
972 * linux-nat.c (linux_child_remove_fork_catchpoint)
973 (linux_child_remove_vfork_catchpoint)
974 (linux_child_remove_exec_catchpoint): New functions.
975 (linux_target_install_ops): Install them.
977 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
981 * varobj.c (install_default_visualizer): Do not install a
982 visualizer if the varobj is CPLUS_FAKE_CHILD.
983 (construct_visualizer): Likewise.
985 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
987 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
988 case insensitive comparison.
990 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
992 * infrun.c (proceed): Revert previous change.
993 (resume): Instead, handle the case of signal delivery while stepping
994 off a breakpoint location here, and only if software single-stepping
995 is used. Handle nested signals.
997 2011-04-28 Yao Qi <yao@codesourcery.com>
999 * arm-tdep.c (copy_unmodified): Rename to ...
1000 (arm_copy_unmodified): .. this. New.
1001 (copy_preload): Move common part to ...
1002 (install_preload): .. this. New.
1003 (arm_copy_preload): New.
1004 (copy_preload_reg): Move common part to ...
1005 (install_preload_reg): ... this. New.
1006 (arm_copy_preload_reg): New.
1007 (copy_b_bl_blx): Move common part to ...
1008 (install_b_bl_blx): .. this. New.
1009 (arm_copy_b_bl_blx): New.
1010 (copy_bx_blx_reg): Move common part to ...
1011 (install_bx_blx_reg): ... this. New.
1012 (arm_copy_bx_blx_reg): New.
1013 (copy_alu_reg): Move common part to ...
1014 (install_alu_reg): ... this. New.
1015 (arm_copy_alu_reg): New.
1016 (copy_alu_shifted_reg): Move common part to ...
1017 (install_alu_shifted_reg): ... this. New.
1018 (copy_ldr_str_ldrb_strb): Move common part to ...
1019 (install_ldr_str_ldrb_strb): ... this. New.
1020 (arm_copy_ldr_str_ldrb_strb): New.
1021 (copy_copro_load_store): Move some common part to ...
1022 (install_copy_copro_load_store): ... this. New.
1023 (arm_copy_copro_load_store): New.
1025 (arm_copy_svc): Renamed from copy_svc.
1026 (copy_undef): Delete.
1027 (arm_copy_undef): Renamed from copy_undef.
1028 (decode_ext_reg_ld_st): Delete.
1029 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1030 (decode_svc_copro): Delete.
1031 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1032 (copy_copro_load_store, copy_alu_imm): update callers.
1033 (copy_extra_ld_st, copy_block_xfer): Likewise.
1034 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1035 (decode_miscellaneous, decode_dp_misc): Likewise.
1036 (decode_ld_st_word_ubyte, decode_media): Likewise.
1037 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1038 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1039 (decode_unconditional, decode_miscellaneous): Likewise.
1040 (decode_media, decode_b_bl_ldmstm): Likewise.
1041 (arm_process_displaced_insn): Likewise..
1042 (decode_misc_memhint_neon): Delete.
1043 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1044 (decode_miscellaneous): Delete.
1045 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1046 (decode_dp_misc): Delete.
1047 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1048 (decode_ld_st_word_ubyte): Delete.
1049 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1050 (decode_media): Delete.
1051 (arm_decode_media): Renamed from decode_media.
1052 (decode_b_bl_ldmstm): Delete.
1053 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1054 (decode_ext_reg_ld_st): Delete.
1055 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1056 (decode_unconditional): Delete.
1057 (arm_decode_unconditional): Renamed from decode_unconditional.
1059 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1061 Case insensitive lookups implementation.
1062 * dwarf2read.c: Include ctype.h.
1063 (struct mapped_index): New field version.
1064 (mapped_index_string_hash): New parameter index_version. New comment
1065 for it. Call tolower appropriately.
1066 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1067 Choose the right index version for mapped_index_string_hash.
1068 (dwarf2_read_index): Support also the index version 5. Initialize the
1069 new struct mapped_index field version.
1070 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1071 (find_slot): Explain the version needs. Pass INT_MAX for the new
1073 (write_psymtabs_to_index): Produce version 5.
1074 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1075 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1076 * psymtab.c (lookup_partial_symbol): Find the
1077 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1079 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1081 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1082 (completion_list_add_name): New variable ncmp, initialize it, use it.
1083 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1084 * utils.c (strcmp_iw): Support case_sensitive_off.
1085 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1086 New function comment part. New variables saved_string1,
1087 saved_string2 and case_pass. Add a proper second pass.
1089 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1091 Replace re_comp/re_exec by regcomp/regexec.
1092 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1093 (search_symbols_name_matches): Use them, use regexec.
1094 (search_symbols): New variable retval_chain, adjust the use of
1095 old_chain against it. Replace re_comp by regcomp. Use the new struct
1096 search_symbols_data fields, use regexec instead of re_exec.
1098 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 Format the code for the next patch.
1101 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1102 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1103 New variables c1 and c2.
1105 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1107 * infrun.c (proceed): Do not single-step into signal delivery
1108 when stepping off a breakpoint location.
1109 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1110 (insert_step_resume_breakpoint_at_caller): Likewise.
1111 (insert_step_resume_breakpoint_at_sal): Likewise.
1112 (insert_longjmp_resume_breakpoint): Likewise.
1114 2011-04-27 Yao Qi <yao@codesourcery.com>
1116 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1118 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1120 * procfs.c (procfs_pass_signals): Fix advance declaration.
1122 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1124 * target.h (struct target_ops): Remove to_notice_signals;
1125 add to_pass_signals.
1126 (target_notice_signals): Remove.
1127 (target_pass_signals): Add prototype.
1128 * target.c (update_current_target): Remove to_notice_signals;
1129 mention to_pass_signals.
1130 (target_pass_signals): New function.
1131 (debug_to_notice_signals): Remove.
1132 (setup_target_debug): Do not install debug_to_notice_signals.
1134 * infrun.c (signal_pass): New global.
1135 (resume): Call target_pass_signals.
1136 (handle_inferior_event): Report all signals while stepping over
1137 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1138 are re-inserted when stepping over a signal handler.
1139 (signal_cache_update): New function.
1140 (signal_stop_update): Call it.
1141 (signal_print_update): Likewise.
1142 (signal_pass_update): Likewise.
1143 (handle_command): Call signal_cache_update and target_pass_signals
1144 instead of target_notice_signals.
1145 (_initialize_infrun): Initialize signal_pass.
1147 * linux-nat.c (pass_mask): New global.
1148 (linux_nat_pass_signals): New function.
1149 (linux_nat_create_inferior): Report all signals initially.
1150 (linux_nat_attach): Likewise.
1151 (linux_nat_resume): Use pass_mask to decide whether to directly
1152 handle an inferior signal.
1153 (linux_nat_wait_1): Likewise.
1154 (linux_nat_add_target): Install to_pass_signals callback.
1156 * nto-procfs.c (notice_signals): Remove.
1157 (procfs_resume): Do not call notice_signals.
1158 (procfs_notice_signals): Remove.
1159 (procfs_pass_signals): New function.
1160 (init_procfs_ops): Install to_pass_signals callback instead of
1161 to_notice_signals callback.
1162 (_initialize_procfs): Report all signals initially.
1164 * procfs.c (procfs_notice_signals): Remove.
1165 (procfs_pass_signals): New function.
1166 (procfs_target): Install to_pass_signals callback instead of
1167 to_notice_signals callback.
1168 (register_gdb_signals): Remove.
1169 (procfs_debug_inferior): Report all signals initially.
1170 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1172 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1173 parameters; use them instead of calling signal_..._state routines.
1174 (remote_notice_signals): Remove.
1175 (remote_start_remote): Report all signals initially.
1176 (remote_resume): Do not call remote_pass_signals.
1177 (_initialize_remote): Install to_pass_signals callback instead of
1178 to_notice_signals callback.
1180 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1182 * breakpoint.c (user_settable_breakpoint): Delete.
1183 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1184 (delete_command): Check user_breakpoint_p instead of looking at
1185 the breakpoint's type.
1186 (disable_command): Ditto.
1187 (enable_command): Ditto.
1188 (delete_trace_command): Use user_breakpoint_p instead of looking
1189 at the breakpoint number directly. When checking if there are
1190 user visible tracepoints, in order to know whether to ask the user
1191 for confirmation, check whether the breakpoint is actually a
1194 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1196 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1199 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1201 MI breakpoint notifications.
1203 * annotate.c (breakpoint_changed): Adjust parameter type.
1204 * breakpoint.c (set_breakpoint_condition): Adjust to change
1205 in breakpoint_modified type.
1206 (breakpoint_set_commands): Likewise.
1207 (do_map_commands_command): Likewise.
1208 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1209 changed after bumping hit count.
1210 (bpstat_stop_status): Likewise.
1211 (print_one_breakpoint_location): Don't wrap in tuple here.
1212 (print_one_breakpoint): Always print individual locations.
1213 For locations, use unnamed tuple.
1214 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1216 (create_catchpoint, create_syscall_event_catchpoint): Call
1217 breakpoint_created obsever.
1218 (mention): Don't call breakpoint_created observer.
1219 (create_breakpoint_sal): Call breakpoint_created observer.
1220 (create_breakpoint, watch_command_1): Likewise.
1221 (create_ada_exception_breakpoint): Likewise.
1222 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1223 (locations_are_equal): New.
1224 (update_breakpoint_locations): If locations were changed, notify.
1225 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1226 Call breakpoint_modified observer.
1228 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1229 (mi_cmd_break_insert): Don't set observers for modify and delete.
1230 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1231 (mi_breakpoint_created, mi_breakpoint_deleted)
1232 (mi_breakpoint_modified): New.
1233 (mi_interpreter_init): Hook the above.
1234 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1235 while -break-* commands are executing.
1236 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1237 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1239 (mi_ui_out_impl): Hook in mi_redirect.
1240 (mi_field_skip): True to the name, skip the field, don't output
1241 a field with an empty value.
1243 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1244 (gdbpy_breakpoint_deleted): Adjust.
1245 * tui/tui-hooks.c (tui_event_create_breakpoint)
1246 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1248 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1250 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1251 (procfs_remove_hw_watchpoint): Likewise.
1253 2011-04-26 Michael Walle <michael@walle.cc>
1255 * remote.c (remote_start_remote): Ack packet after sending the
1258 2011-04-26 Yao Qi <yao@codesourcery.com>
1260 * linux-nat.c: Move common macros to ...
1261 Include linux-ptrace.h.
1262 * common/linux-ptrace.h: ... here. New.
1264 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1266 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1267 !objfile_has_partial_symbols. New comment.
1268 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1269 SYM_READ_PSYMBOLS is not present. Extend the comment.
1270 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1272 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1274 * defs.h (ENUM_BITFIELD): Remove.
1276 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1277 Eli Zaretskii <eliz@gnu.org>
1279 * NEWS: Document the new gdbserver --once option.
1281 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1283 * MAINTAINERS: Update my email address.
1285 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1287 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1288 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1289 function call if __STDC_ISO_10646__ macro is defined.
1290 (intermediate_encoding): New prototype.
1291 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1292 to generate compile time error for unsupported gdb_wchar_t size.
1293 (ENDIAN_SUFFIX): New macro.
1294 (intermediate_encoding): New function.
1296 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1298 * ada-lang.c (struct add_partial_datum): Update the comment for
1299 expand_partial_symbol_name.
1300 (ada_add_partial_symbol_completions): Rename to ...
1301 (ada_expand_partial_symbol_name): ... here, change return type, update
1302 function comment, call symbol_completion_match instead of
1303 symbol_completion_add.
1304 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1305 and ada_expand_partial_symbol_name.
1306 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1308 (dw2_map_symbol_names): Remove.
1309 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1310 * psymtab.c (map_symbol_names_psymtab): Remove.
1311 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1312 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1314 (psym_functions): Unlist map_symbol_names_psymtab.
1315 (map_partial_symbol_names): Rename to ...
1316 (expand_partial_symbol_names): ... here, change the FUN type, call
1317 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1318 * psymtab.h (map_partial_symbol_names): Rename to ...
1319 (expand_partial_symbol_names): ... here, change the FUN type.
1320 * symfile.h (struct quick_symbol_functions): Update the description of
1321 expand_symtabs_matching. Remove map_symbol_names.
1322 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1323 (struct add_name_data): Update the comment for
1324 expand_partial_symbol_name.
1325 (add_partial_symbol_name): Rename to ...
1326 (expand_partial_symbol_name): ... here. Replace
1327 completion_list_add_name call by strncmp.
1328 (default_make_symbol_completion_list_break_on): Use now
1329 expand_partial_symbol_names and expand_partial_symbol_name.
1330 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1332 2011-04-20 Tom Tromey <tromey@redhat.com>
1334 * dwarf2read.c (save_gdb_index_command): Replace format
1335 documentation with a pointer to the manual.
1337 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1339 * regcache.c: Include remote.h.
1340 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1341 (regcache_dump): Handle regcache_dump_remote.
1342 (maintenance_print_remote_registers): New function.
1343 (_initialize_regcache): Install "maint print remote-registers"
1345 * remote.c (map_regcache_remote_table): New function, factored out
1347 (init_remote_state): ... here.
1348 (remote_register_number_and_offset): New.
1349 * remote.h (remote_register_number_and_offset): Declare.
1351 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1353 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1354 null_ptid, assume and allow a NULL address space, instead of
1355 asking the target for the ptid's address space.
1356 * infrun.c (ptid_is_pid): Remove assertion.
1358 2011-04-19 Tom Tromey <tromey@redhat.com>
1360 * windows-tdep.c (windows_xfer_shared_library):
1361 * windows-nat.c (get_module_name, windows_make_so):
1362 * v850-tdep.c (v850_handle_pushm):
1363 * utils.c (null_cleanup, gdb_realpath):
1364 * ui-out.c (get_next_header):
1365 * tracepoint.c (clear_traceframe_info):
1366 * symtab.c (lookup_symtab):
1367 * serial.h (struct serial_ops):
1368 * mipsread.c (read_alphacoff_dynamic_symtab):
1369 * infcmd.c (print_return_value):
1370 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1371 * f-exp.y (parse_number):
1372 * exceptions.c (catch_exceptions):
1373 * dummy-frame.c (dummy_frame_this_id):
1374 * defs.h (struct cleanup):
1375 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1376 * arm-tdep.c (arm_push_dummy_call):
1377 * amd64-tdep.h (amd64_collect_xsave):
1378 * amd64-tdep.c (amd64_collect_xsave):
1379 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1380 * README (typing): Remove duplicate words.
1381 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1382 * infrun.c (siginfo_value_read): Fix typo.
1383 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1384 * top.c (source_line_number): Add comma.
1386 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1388 * thread.c (any_live_thread_of_process): Prioritize threads
1389 that are not executing.
1390 * gdbthread.h (any_live_thread_of_process): Update comment
1391 as per above change.
1393 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1395 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1396 (scan_xcoff_symtab): Likewise.
1398 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1400 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1403 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1404 Pedro Alves <pedro@codesourcery.com>
1406 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1407 variables to simplify code and avoid == operator at end of
1408 line as this is against GNU coding standards.
1410 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1412 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1413 lm_name to name_lm to avoid conflict with lm_name function.
1415 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1417 ARI fixes: Use only lowercase function name for static functions.
1418 * nto-tdep.c (LM_ADDR): Rename to...
1419 (lm_addr): New function name.
1420 (nto_relocate_section_addresses): Adapt to change above.
1421 * solib-sunos.c (LM_ADDR): Rename to...
1422 (lm_addr): New function name.
1423 (LM_NEXT): Rename to...
1424 (lm_next): New function name.
1425 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1426 function name changes above.
1427 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1428 (lm_addr_from_link_map): New function name.
1429 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1430 (has_lm_dynamic_from_link_map): New function name.
1431 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1432 (lm_dynamic_from_link_map): New function name.
1433 (LM_ADDR_CHECK): Rename to...
1434 (lm_addr_check): New function name.
1435 (LM_NEXT): Rename to...
1436 (lm_next): New function name.
1437 (LM_PREV): Rename to...
1438 (lm_prev): New function name.
1439 (LM_NAME): Rename to...
1440 (lm_name): New function name.
1441 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1442 (ignore_first_link_map_entry): New function name.
1443 (svr4_keep_data_in_core): Adapt to function name changes above.
1444 (svr4_current_sos): Likewise.
1445 (enable_break): Likewise.
1446 (svr4_relocate_section_addresses): Likewise.
1448 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1451 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1452 sprintf. Simplify code and avoid loosing memory.
1453 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1454 (call0_frame_cache): Remove && operator from end of line.
1456 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1458 Fix libraries displacement if they change whether they were prelinked.
1459 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1460 does not match. Comment why.
1462 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1464 * corelow.c: Include wrapper.h.
1465 (core_open): Call now gdb_target_find_new_threads.
1466 * wrapper.c: Include target.h.
1467 (gdb_target_find_new_threads): New.
1468 * wrapper.h (gdb_target_find_new_threads): New declaration.
1470 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1472 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1473 even if !TARGET_HAS_EXECUTION.
1475 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1477 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1478 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1479 bfd_get_synthetic_symtab.
1480 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1481 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1482 parameter parent, remove the call to add_separate_debug_objfile.
1483 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1484 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1485 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1486 parent, new comment for it, call add_separate_debug_objfile for it.
1487 (symbol_file_add_separate): Pass objfile as the parameter parent,
1488 remove the call to add_separate_debug_objfile.
1489 (symbol_file_add_from_bfd): New parameter parent, pass it.
1490 (symbol_file_add): Pass NULL to the new parameter parent.
1491 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1493 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1495 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1498 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1500 Fix Python access to inlined frames.
1501 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1502 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1504 2011-04-15 Tom Tromey <tromey@redhat.com>
1506 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1508 2011-04-15 Gary Benson <gbenson@redhat.com>
1510 * MAINTAINERS: Add myself to write-after-approval section.
1512 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1514 * remote-sim.c (sim_command_completer): New function.
1515 (_initialize_remote_sim): Set completer to sim_command_completer.
1517 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1519 * breakpoint.c (print_exception_catchpoint): Rename to ...
1520 (print_it_exception_catchpoint): ... this.
1521 (gnu_v3_exception_catchpoint_ops): Update with new name
1522 for print_it_exception_catchpoint.
1524 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1526 * MAINTAINERS: Add myself for write after approval privileges.
1528 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1530 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1532 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1534 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1536 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1538 * breakpoint.c (save_breakpoints): Verify whether
1539 breakpoint_ops.print_recreate is defined before calling it.
1541 2011-04-11 Gary Benson <gbenson@redhat.com>
1543 Fix failure with --enable-maintainer-mode.
1544 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1546 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1549 * symtab.c (search_symbols): Reorder the KIND description in the
1550 function comment. Remove the unused 4th element of types, types2,
1551 types3 and types4. New gdb_assert on KIND.
1552 (symtab_symbol_info): Remove the unused 4th element of classnames.
1553 New gdb_assert on KIND.
1554 * symtab.h (enum search_domain): New warning in the enum comment.
1555 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1558 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 Fix crash of gdb save-index on a STABS file.
1561 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1564 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1566 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1567 * dwarf2read.c: Include ctype.h.
1568 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1570 (dwarf2_add_field): Fix new_field->accessibility by calling
1571 dwarf2_default_access_attribute. Restructure setting accessibility
1573 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1574 is_private and is_protected by calling
1575 dwarf2_default_access_attribute.
1577 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1579 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1580 to the initialization.
1582 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1584 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1587 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1589 Remove support for old Cygwin 1.5 versions.
1590 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1591 function on old Cygwin version.
1592 * windows-nat.c: Remove cygwin version check and always define
1593 __USEWIDE for Cygwin compilation.
1595 2011-04-07 Yao Qi <yao@codesourcery.com>
1597 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1599 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1600 (arm_copy_svc): Remove parameters INSN and TO.
1601 (decode_svc_copro): Update caller.
1602 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1603 from function pointer `copy_svc_os'.
1605 2011-04-07 Yao Qi <yao@codesourcery.com>
1607 * arm-tdep.c (cleanup_branch): Set a correct return address in
1608 LR for ARM and Thumb.
1610 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1613 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1614 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1615 in the function comment, a new note on values compatibility.
1616 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1617 * symtab.h (SYMBOL_HASH_NEXT): New.
1619 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1621 * ppc-linux-nat.c (check_condition): Add len output parameter.
1622 Set it based on the memory region referenced in the condition
1623 expression. Update all callers.
1625 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1627 Fix crash regression on systems featuring .gdb_index.
1628 * objfiles.c (free_objfile): Move the
1629 forget_cached_source_info_for_objfile call earlier. Comment it.
1630 Extend the comment for objfile_free_data.
1632 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1634 Fix regression of displaying the debug format.
1635 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1638 2011-04-04 Tom Tromey <tromey@redhat.com>
1640 * cli/cli-interp.c (struct captured_execute_command_args):
1642 (do_captured_execute_command): Remove.
1643 (safe_execute_command): Use TRY_CATCH.
1644 * cli/cli-script.c (struct wrapped_read_command_file_args):
1646 (wrapped_read_command_file): Remove.
1647 (script_from_file): Use TRY_CATCH.
1648 * exceptions.c (catch_exception): Remove.
1649 * exceptions.h (catch_exception): Remove.
1650 (deprecated_throw_reason): Update comment.
1651 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1652 argument to 'context'.
1653 (mi_execute_command): Use TRY_CATCH.
1654 * remote.c (struct start_remote_args): Remove.
1655 (remote_start_remote): Update; change arguments.
1656 (remote_open_1): Use TRY_CATCH.
1658 2011-04-04 Tom Tromey <tromey@redhat.com>
1660 * tracepoint.c (scope_info): Update.
1661 * symtab.c (decode_line_spec): Update.
1662 * python/python.c (gdbpy_decode_line): Update.
1663 * linespec.h (decode_line_1): Update.
1664 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1665 (decode_compound, find_method, symtab_from_filename)
1666 (decode_variable): Likewise.
1667 * cli/cli-cmds.c (edit_command): Update.
1668 (list_command): Update.
1669 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1671 (create_breakpoint): Update.
1672 (until_break_command): Update.
1673 (addr_string_to_sals): Update.
1674 (decode_line_spec_1): Update.
1676 2011-04-04 Tom Tromey <tromey@redhat.com>
1678 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1679 (do_captured_parse_breakpoint): Remove.
1680 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1681 Use TRY_CATCH directly.
1683 2011-04-04 Tom Tromey <tromey@redhat.com>
1685 * symtab.h (free_symtab): Remove.
1686 (forget_cached_source_info_for_objfile): Declare.
1687 * symmisc.c (free_symtab): Remove.
1688 * source.c (forget_cached_source_info_for_objfile): New function.
1689 (forget_cached_source_info): Use it.
1690 * objfiles.c (free_objfile): Simplify check before calling
1691 clear_current_source_symtab_and_line. Call
1692 forget_cached_source_info_for_objfile.
1694 2011-04-04 Tom Tromey <tromey@redhat.com>
1696 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1697 (new_symtab): Don't set `free_code' on symtab.
1698 (new_linetable): Properly handle size==0.
1699 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1700 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1702 * jv-lang.c (struct jv_per_objfile_data): New.
1703 (jv_per_objfile_free): Free the data.
1704 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1705 (get_java_class_symtab): Set the `dict' field on the
1706 jv_per_objfile_data.
1707 (free_class_block): Remove.
1708 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1711 2011-04-04 Tom Tromey <tromey@redhat.com>
1713 * symfile.c (reread_symbols): Update.
1714 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1716 * objfiles.c (allocate_objfile): Update.
1717 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1719 * cp-namespace.c (lookup_symbol_file): Don't call
1720 lookup_possible_namespace_symbol.
1721 (initialize_namespace_symtab, get_possible_namespace_block)
1722 (free_namespace_block, cp_check_possible_namespace_symbols)
1723 (check_possible_namespace_symbols_loop)
1724 (check_one_possible_namespace_symbol)
1725 (lookup_possible_namespace_symbol): Remove.
1726 (maintenance_cplus_namespace): Replace with notice.
1727 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1729 2011-04-04 Tom Tromey <tromey@redhat.com>
1731 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1732 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1733 * symmisc.c (free_symtab): Don't free debugformat.
1734 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1735 (record_debugformat, record_producer): Document.
1736 * buildsym.c (end_symtab): Don't save debugformat and producer
1738 (end_symtab): Don't free debugformat and producer fields.
1739 (record_debugformat): Don't call xstrdup.
1740 (record_producer): Likewise.
1742 2011-04-04 Tom Tromey <tromey@redhat.com>
1744 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1745 (source_line_charpos, source_charpos_line): Remove.
1747 2011-04-04 Tom Tromey <tromey@redhat.com>
1749 * symtab.h (domain_enum): Split in two...
1750 (enum search_domain): New.
1751 (search_symbols): Update.
1752 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1753 redundant declarations.
1754 (search_symbols): Change 'kind' argument to search_domain.
1756 (print_symbol_info): Likewise.
1757 (symtab_symbol_info): Likewise.
1758 * symfile.h (struct quick_symbol_functions)
1759 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1760 <expand_symtabs_matching>: Likewise.
1761 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1762 (expand_symtabs_matching_via_partial): Update.
1763 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1764 (dw2_expand_symtabs_for_function): Update.
1765 * block.h: Moved anonymous enum...
1766 * defs.h (enum block_enum): ... here. Now named.
1768 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1770 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1771 * version.in: Bump version to 7.3.50.20110403-cvs.
1773 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1775 * NEWS: Create a new section for the next release branch.
1776 Rename the section of the current branch, now that it has
1779 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1781 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1782 for "fpscr" in target description.
1784 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1786 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1787 initialize it. Delay HASH initialization. Strip the part after open
1788 parenthesis for languages with qualifiers. Call do_cleanups.
1790 2011-04-01 Tom Tromey <tromey@redhat.com>
1792 * utils.c (report_command_stats): Don't print `-' for negative
1795 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1797 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1798 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1801 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1803 * breakpoint.h (bpdisp_text): Add declaration.
1804 * breakpoint.c (bpdisp_text): Make non-static.
1805 * ada-lang.c: #include "mi/mi-common.h".
1806 (print_it_exception): Rewrite to improve GDB/MI output.
1808 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1810 * arm-tdep.h (struct address_space): Add forward declaration.
1812 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1814 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1815 * arm-tdep.c (arm_override_mode): New global.
1816 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1817 execution mode heuristics.
1818 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1819 second single-step breakpoint if needed, using
1820 arm_insert_single_step_breakpoint.
1821 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1822 ARM execution mode, do not call thumb_get_next_pc_raw.
1823 (arm_get_next_pc): Encode execution mode in return value. Call
1824 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1825 (arm_insert_single_step_breakpoint): New function.
1826 (arm_software_single_step): Call it.
1827 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1828 argument to return execution mode of sigreturn target.
1829 (arm_linux_syscall_next_pc): Use it.
1830 (arm_linux_copy_svc): Update call.
1831 (arm_linux_software_single_step): Call
1832 arm_insert_single_step_breakpoint.
1834 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1836 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1839 2011-03-31 Tom Tromey <tromey@redhat.com>
1841 * varobj.c (update_dynamic_varobj_children): Properly handle
1842 errors from iterator.
1844 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1846 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1847 struct linkage name twice.
1849 2011-03-31 Tom Tromey <tromey@redhat.com>
1851 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1852 missing ">" to message.
1854 2011-03-31 Tom Tromey <tromey@redhat.com>
1856 * varobj.c (instantiate_pretty_printer): Remove duplicate
1859 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1861 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1862 if neither saved value nor register available (e.g. signal frame).
1864 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1866 * macroexp.c (expand): Avoid uninitialized variable
1869 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1871 * breakpoint.c (break_range_command): Fix typo in comment.
1873 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1874 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1876 Implement support for PowerPC BookE ranged breakpoints.
1877 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1878 * breakpoint.h (struct bp_target_info) <length>: New member
1880 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1881 instead of struct breakpoint as argument, and also add ASPACE
1882 and BP_ADDR arguments. Update all callers.
1883 (struct breakpoint_ops) <print_one_detail>: New method.
1884 (struct breakpoint) <addr_string_range_end>: New member variable.
1885 * breakpoint.c (breakpoint_location_address_match): Add function
1887 (insert_bp_location): Set bl->target_info.length.
1888 (breakpoint_here_p): Call breakpoint_location_address_match.
1889 (moribund_breakpoint_here_p): Likewise.
1890 (regular_breakpoint_inserted_here_p): Likewise.
1891 (breakpoint_thread_match): Likewise.
1892 (bpstat_stop_status): Likewise.
1893 (bpstat_check_location): Move call to
1894 breakpoint_ops.breakpoint_hit to the top.
1895 (print_one_breakpoint_location): Call
1896 breakpoint_ops.print_one_detail if available.
1897 (breakpoint_address_match_range): New function.
1898 (breakpoint_location_address_match): Likewise.
1899 (breakpoint_locations_match): Compare the length field of the
1901 (hw_breakpoint_used_count): Count resources used by all locations
1902 in a breakpoint, and use breakpoint_ops.resources_needed if
1904 (breakpoint_hit_ranged_breakpoint): New function.
1905 (resources_needed_ranged_breakpoint): Likewise.
1906 (print_it_ranged_breakpoint): Likewise.
1907 (print_one_ranged_breakpoint): Likewise.
1908 (print_one_detail_ranged_breakpoint): Likewise.
1909 (print_mention_ranged_breakpoint): Likewise.
1910 (print_recreate_ranged_breakpoint): Likewise.
1911 (ranged_breakpoint_ops): New structure.
1912 (find_breakpoint_range_end): New function.
1913 (break_range_command): Likewise.
1914 (delete_breakpoint): Free addr_string_range_end.
1915 (update_breakpoint_locations): Add SALS_END argument. Update
1916 all callers. Calculate breakpoint length if a non-zero SALS_END
1917 is given. Call breakpoint_locations_match instead of
1918 breakpoint_address_match.
1919 (reset_breakpoint): Find SaL of the end of the range if B is a
1921 (_initialize_breakpoint): Register break-range command.
1922 * defs.h (print_core_address): Add function prototype.
1923 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1925 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1926 (ppc_linux_remove_hw_breakpoint): Likewise.
1927 (_initialize_ppc_linux_nat): Initialize
1928 to_ranged_break_num_registers.
1929 * target.c (update_current_target): Add comment about
1930 to_ranged_break_num_registers.
1931 (target_ranged_break_num_registers): New function.
1932 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1934 (target_ranged_break_num_registers): Add function prototype.
1935 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1936 * utils.c (print_core_address): ... here.
1938 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1940 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1941 variable compiler warning.
1943 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1945 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1947 (re_set_breakpoint): ... to here ...
1948 (addr_string_to_sals): ... and here.
1950 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1952 * Makefile.in (SFILES): Add missing C sources.
1953 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1954 Add missing headers.
1956 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1958 * .gitignore: New file.
1960 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1962 * NEWS: Mention new cfi device simulation.
1964 2011-03-29 Tom Tromey <tromey@redhat.com>
1966 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1967 otherwise anonymous types.
1968 (dwarf2_name): Likewise.
1969 * valops.c (value_struct_elt_for_reference): Refine artificial
1970 type logic. Call error if j==-1.
1972 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1974 Fix false GCC warning.
1975 * infcall.c (find_function_addr): Initialize funaddr.
1977 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1979 Fix mingw compilation with --enable-targets=all.
1980 * remote-mips.c (gdb_usleep.h): Include header.
1981 (mips_enter_debug): Use gdb_usleep instead of sleep.
1983 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1985 Support resolution of STT_GNU_IFUNC via breakpoints.
1986 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1987 bp_gnu_ifunc_resolver_return.
1988 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1989 the loop. Support bp_gnu_ifunc_resolver and
1990 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1991 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1993 (bptype_string, print_one_breakpoint_location): Support
1994 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1995 (user_settable_breakpoint): Return true also for
1996 bp_gnu_ifunc_resolver.
1997 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1998 bp_gnu_ifunc_resolver_return.
1999 (set_breakpoint_location_function): New parameter explicit_loc,
2000 describe it. Call find_pc_partial_function_gnu_ifunc with new
2001 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2002 EXPLICIT_LOC is not set.
2003 (set_raw_breakpoint): Set EXPLICIT_LOC for
2004 set_breakpoint_location_function.
2005 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2006 set_breakpoint_location_function.
2007 (mention): Support bp_gnu_ifunc_resolver and
2008 bp_gnu_ifunc_resolver_return.
2009 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2010 set_breakpoint_location_function.
2011 (update_breakpoint_locations): Remove static.
2012 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2013 bp_gnu_ifunc_resolver_return.
2014 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2015 bp_gnu_ifunc_resolver_return.
2016 (update_breakpoint_locations): New declaration.
2017 * elfread.c: Include gdbthread.h and regcache.h.
2018 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2020 (elf_gnu_ifunc_fns): Install them.
2021 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2022 (stub_gnu_ifunc_resolver_return_stop): New functions.
2023 (stub_gnu_ifunc_fns): Install them.
2024 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2025 and gnu_ifunc_resolver_return_stop.
2026 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2028 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 STT_GNU_IFUNC reader implementation.
2031 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2032 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2033 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2034 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2035 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2036 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2037 (elf_gnu_ifunc_resolve_addr): New.
2038 (elf_symfile_read): Call elf_rel_plt_read.
2039 (elf_gnu_ifunc_fns): New.
2040 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2041 Install elf_gnu_ifunc_fns.
2042 * infcall.c (find_function_return_type): New function.
2043 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2044 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2045 (stub_gnu_ifunc_resolve_name): New functions.
2046 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2047 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2048 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2050 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 Code cleanup for later STT_GNU_IFUNC support.
2053 * infcall.c (find_function_addr): Remove variable code, use explicit
2054 dereferences for it. Move VALUE_TYPE initialization later.
2056 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2058 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2059 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2060 (clear_pc_function_cache): Clear it.
2061 (find_pc_partial_function): Rename to ...
2062 (find_pc_partial_function_gnu_ifunc): ... this function. New
2063 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2064 (find_pc_partial_function): New wrapper for this function.
2065 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2067 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 GDB internal type support for STT_GNU_IFUNC.
2070 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2071 (elf_symtab_read): Set mst_text_gnu_ifunc for
2072 BSF_GNU_INDIRECT_FUNCTION.
2073 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2074 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2075 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2076 nodebug_got_plt_symbol.
2077 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2078 (TYPE_GNU_IFUNC): New.
2079 (struct main_type): New field flag_gnu_ifunc.
2080 (struct builtin_type): New field builtin_func_func.
2081 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2082 nodebug_got_plt_symbol.
2083 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2084 (in_gnu_ifunc_stub): New.
2085 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2087 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2088 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2089 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2091 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2092 * symtab.c (search_symbols): Likewise.
2093 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2094 and mst_slot_got_plt.
2095 (in_gnu_ifunc_stub): New declaration.
2097 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 Support a ring of related breakpoints.
2100 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2101 other functions, add gdb_assert.
2102 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2103 watchpoint_del_at_next_stop.
2104 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2105 (bpstat_stop_status): Handle ring in related_breakpoint.
2106 (set_raw_breakpoint_without_location): Initialize ring in
2108 (delete_breakpoint): Handle ring in related_breakpoint, use
2109 watchpoint_del_at_next_stop.
2110 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2112 2011-03-28 Tom Tromey <tromey@redhat.com>
2115 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2116 with `language_minimal'.
2118 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2120 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2121 instead of checking for STT_ARM_TFUNC symbol type.
2123 2011-03-25 Tom Tromey <tromey@redhat.com>
2125 * linespec.c (symbol_found): Restore line-based result for
2126 non-LOC_LABEL symbols.
2128 2011-03-25 Kai Tietz <ktietz@redhat.com>
2130 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2131 instead of strcmp for comparison.
2132 (tui_source_is_displayed): Likewise.
2133 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2135 2011-03-24 Mark Wielaard <mjw@redhat.com>
2137 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2139 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2140 (find_partial_die_in_comp_unit): Likewise in comment.
2141 (read_attribute_value): Likewise.
2142 (lookup_die_type): Likewise.
2143 (dwarf_form_name): Likewise.
2144 (dump_die_shallow): Likewise.
2145 (follow_die_ref_or_sig): Likewise.
2147 2011-03-24 Tom Tromey <tromey@redhat.com>
2149 PR breakpoints/11816:
2150 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2151 (decode_compound): Update.
2152 (find_function_symbol): New function.
2153 (decode_dollar): Update.
2154 (decode_label): Add 'function_symbol' parameter. Handle
2155 function-relative labels.
2156 (decode_variable): Update.
2157 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2158 not its line. Set `special_display' and canonical name for
2161 2011-03-24 Tom Tromey <tromey@redhat.com>
2163 * linespec.h (struct linespec_result) <special_display>: New
2165 * breakpoint.h (struct breakpoint) <display_canonical>: New
2167 * breakpoint.c (print_breakpoint_location): Respect
2169 (create_breakpoint_sal): Add 'display_canonical' parameter.
2170 (create_breakpoints_sal): Update.
2171 (create_breakpoint): Update.
2173 2011-03-24 Tom Tromey <tromey@redhat.com>
2175 * symtab.c (decode_line_spec): Update.
2176 * linespec.c (build_canonical_line_spec): Change type of
2178 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2179 (find_method, decode_all_digits, decode_dollar, decode_label)
2180 (symbol_found): Likewise.
2181 (init_linespec_result): New function.
2182 * breakpoint.c (struct captured_parse_breakpoint_args)
2183 <canonical_p>: New field, replaces addr_string_p.
2184 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2186 (parse_breakpoint_sals): Likewise.
2187 (do_captured_parse_breakpoint): Update.
2188 (create_breakpoint): Use struct linespec_result.
2189 (until_break_command): Update.
2190 (breakpoint_re_set_one): Update.
2191 (decode_line_spec_1): Update.
2192 * linespec.h (struct linespec_result): New.
2193 (init_linespec_result): Declare.
2195 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2197 * regcache.c (regcache_raw_read): If the target didn't supply a
2198 given raw register, mark it as unavailable.
2200 2011-03-23 Kai Tietz <ktietz@redhat.com>
2202 * breakpoint.c (clear_command): Use filename_cmp
2203 instead of strcmp for comparison.
2204 * buildsym.c (watch_main_source_file_lossage): Likewise.
2205 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2206 checking just for slash.
2207 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2208 strrchr and filename_cmp instead of strcmp for filenames.
2209 (add_old_header_file): Use filename_cmp
2210 instead of strcmp for comparison.
2211 * exec.c (exec_set_section_address): Likewise.
2212 * macrotab.c (macro_lookup_inclusion): Likewise.
2213 (macro_lookup_inclusion): Likewise.
2214 * elfread.c (_initialize_elfread): Likewise.
2215 (elfstab_offset_sections): Likewise.
2216 (elfstab_offset_sections): Use lbasename instead of
2218 * mdebugread.c (parse_partial_symbols): Likewise.
2219 (arse_partial_symbols): Use filename_(n)cmp instead of
2220 str(n)cmp for comparison.
2221 * minsyms.c (lookup_minimal_symbol): Likewise.
2222 * psymtab.c (read_psymtabs_with_filename): Likewise.
2223 * solib.c (solib_read_symbols): Likewise.
2224 (reload_shared_libraries_1): Likewise.
2225 * symmisc.c (maintenance_print_symbols): Likewise.
2226 * symfile.c (separate_debug_file_exists): Likewise.
2227 (reread_symbols): Likewise.
2228 (find_separate_debug_file_by_debuglink): Likewise.
2229 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2230 * source.c (add_path): Likewise.
2231 * symtab.c (filename_seen): Likewise.
2232 (file_matches): Likewise.
2233 (print_symbol_info): Likewise.
2234 (maybe_add_partial_symtab_filename): Likewise.
2235 (make_source_files_completion_list): Likewise.
2236 * xml-syscall.c (init_sysinfo): Likewise.
2237 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2238 IS_DIR_SEPARATOR for checking for trailing path separator.
2240 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2242 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2243 label abort_expression.
2244 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2245 DWARF_VALUE_OPTIMIZED_OUT.
2247 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2251 to linkage_name. Invert its value. Update the function comment.
2252 (c_type_print_varspec_suffix): Invert it at the caller.
2253 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2255 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2257 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2258 errors when reading the `stop_pc'.
2259 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2262 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2264 * NEWS: Document gdb.Write stream keyword.
2266 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2269 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2270 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2271 (dwarf2_add_field): Fix new_field->accessibility for
2272 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2274 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2278 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2279 other error classes. Do not print stack trace.
2281 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2283 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2284 (dwarf2_add_field): Fix new_field->accessibility for
2285 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2287 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2289 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2290 encountering a load via a non-SP register.
2292 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2294 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2295 field in returned unwinder.
2297 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2299 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2301 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2303 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2306 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2308 * frame.c (frame_unwind_register): Throw an error if unwinding the
2310 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2311 an unwind stop reason.
2312 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2313 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2314 UNWIND_UNAVAILABLE>: New.
2315 * inline-frame.c (inline_frame_unwind): Install
2316 default_frame_unwind_stop_reason.
2317 * frame-unwind.c: Include "exceptions.h".
2318 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2319 (default_frame_unwind_stop_reason): New.
2320 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2321 (default_frame_unwind_stop_reason): Declare.
2322 (struct frame_unwind) <stop_reason>: New function pointer.
2324 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2325 * dwarf2-frame.c: Include exceptions.h.
2326 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2327 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2328 computing the CFA. If such an error was thrown, set
2329 unavailable_retaddr.
2330 (dwarf2_frame_unwind_stop_reason): New.
2331 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2333 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2334 (dwarf2_signal_frame_unwind): Ditto.
2336 * amd64-tdep.c: Include "exceptions.h".
2337 (struct amd64_frame_cache): New field "base_p".
2338 (amd64_init_frame_cache): Clear it.
2339 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2340 Avoid reading registers with functions that throw if the register
2341 is not necessary to compute the frame base.
2342 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2343 swallowing NOT_AVAILABLE_ERROR.
2344 (amd64_frame_unwind_stop_reason): New.
2345 (amd64_frame_this_id): Don't build a frame id if the frame base
2347 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2348 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2349 base_p if the frame base was computable.
2350 (amd64_sigtramp_frame_unwind_stop_reason): New.
2351 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2352 frame base was unavailable.
2353 (amd64_sigtramp_frame_unwind): Install
2354 amd64_sigtramp_frame_unwind_stop_reason.
2355 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2356 base_p if the frame base was computable.
2357 (amd64_epilogue_frame_unwind_stop_reason): New.
2358 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2359 frame base was unavailable.
2360 (amd64_epilogue_frame_unwind): Install
2361 amd64_epilogue_frame_unwind_stop_reason.
2362 * i386-tdep.c: Include "exceptions.h".
2363 (struct i386_frame_cache): New field "base_p".
2364 (i386_init_frame_cache): Clear it.
2365 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2366 Avoid reading registers with functions that throw if the register
2367 is not necessary to compute the frame base.
2368 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2369 swallowing NOT_AVAILABLE_ERROR.
2370 (i386_frame_unwind_stop_reason): New.
2371 (i386_frame_this_id): Don't build a frame id if the frame base was
2373 (i386_frame_prev_register): Handle unavailable SP.
2374 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2375 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2376 base_p if the frame base was computable.
2377 (i386_epilogue_frame_unwind_stop_reason): New.
2378 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2379 base was unavailable.
2380 (i386_epilogue_frame_unwind): Install
2381 i386_epilogue_frame_unwind_stop_reason.
2382 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2383 base_p if the frame base was computable.
2384 (i386_sigtramp_frame_unwind_stop_reason): New.
2385 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2386 base was unavailable.
2387 (i386_sigtramp_frame_unwind): Install
2388 i386_sigtramp_frame_unwind_stop_reason.
2389 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2390 type's size, not the register's.
2391 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2393 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2394 default_frame_unwind_stop_reason.
2395 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2396 (alpha_heuristic_frame_unwind): Ditto.
2397 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2398 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2399 * avr-tdep.c (avr_frame_unwind): Ditto.
2400 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2402 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2403 * frv-tdep.c (frv_frame_unwind): Ditto.
2404 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2405 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2406 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2407 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2408 (hppa_stub_frame_unwind): Ditto.
2409 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2410 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2411 (ia64_libunwind_frame_unwind)
2412 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2413 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2414 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2415 * m32c-tdep.c (m32c_unwind): Ditto.
2416 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2417 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2418 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2419 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2420 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2421 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2422 * mep-tdep.c (mep_frame_unwind): Ditto.
2423 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2424 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2425 (mips_stub_frame_unwind): Ditto.
2426 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2427 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2428 * mt-tdep.c (mt_frame_unwind): Ditto.
2429 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2430 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2431 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2432 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2433 (s390_sigtramp_frame_unwind): Ditto.
2434 * score-tdep.c (score_prologue_unwind): Ditto.
2435 * sh-tdep.c (sh_frame_unwind): Ditto.
2436 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2437 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2438 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2439 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2440 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2441 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2442 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2443 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2444 (sparc64obsd_trapframe_unwind): Ditto.
2445 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2446 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2447 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2448 * v850-tdep.c (v850_frame_unwind): Ditto.
2449 * vax-tdep.c (vax_frame_unwind): Ditto.
2450 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2451 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2452 * xtensa-tdep.c (xtensa_unwind): Ditto.
2454 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2456 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2457 there's always a frame. Use get_frame_pc_if_available instead of
2458 get_frame_pc, and if there's no PC available, don't look up a
2461 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2463 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2466 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2468 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2471 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2473 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2474 * frame.c (frame_unwind_caller_pc_if_available): New.
2475 * stack.c (frame_info): Handle unavailable PC.
2477 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2479 * frame.c (frame_unwind_pc): Rename to ...
2480 (frame_unwind_pc_if_available): ... this. New `pc' output
2481 parameter. Change return type to int. Gracefully handle
2482 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2483 happened, or 1 otherwise.
2484 (frame_unwind_pc): Reimplement on top of
2485 frame_unwind_pc_if_available.
2486 (get_frame_func): Rename to ...
2487 (get_frame_func_if_available): New `pc' output parameter. Change
2488 return type to int. Gracefully handle the PC not being available.
2489 (get_frame_func): Reimplement on top of
2490 get_frame_func_if_available.
2491 (select_frame): Handle the PC being unavailable.
2492 (get_prev_frame): Handle the PC being unavailable.
2493 (get_frame_pc_if_available): New.
2494 (get_frame_address_in_block_if_available): New.
2495 (find_frame_sal): Handle the frame PC not being available.
2496 * frame.h (get_frame_pc_if_available): Declare.
2497 (get_frame_address_in_block_if_available): Declare.
2498 (get_frame_func_if_available): Declare.
2499 * stack.c (print_frame_info): Handle the PC being unavailable.
2500 (find_frame_funname): Ditto.
2501 (print_frame): Handle the PC being unavailable.
2502 (get_frame_language): Ditto.
2503 * blockframe.c (get_frame_block): Ditto.
2504 * macroscope.c (default_macro_scope): Ditto.
2505 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2507 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2509 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2510 NOT_AVAILABLE_ERROR when evaluating the location expression.
2512 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2514 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2515 returning that the register piece is unavailable/optimized out.
2516 (write_pieced_value): Handle get_frame_register_bytes returning
2517 that the register piece is unavailable/optimized out when doing a
2518 read-modify write of a bitfield.
2519 * findvar.c (value_from_register): Handle get_frame_register_bytes
2520 returning that the register piece is unavailable/optimized out.
2521 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2522 and `unavailablep'. Throw error on bad debug info. Use
2523 frame_register instead of frame_register_read, to fill in the new
2525 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2527 * valops.c: (value_assign): Adjust, and handle
2528 get_frame_register_bytes failing.
2529 * spu-tdep.c: Include exceptions.h.
2530 (spu_software_single_step): Adjust, and handle
2531 get_frame_register_bytes failing.
2532 (spu_get_longjmp_target): Ditto.
2533 * gdbarch.sh (register_to_value): Change to return int. New
2534 parameters `optimizedp' and `unavailablep'.
2535 * gdbarch.h, gdbarch.c: Regenerate.
2536 * i386-tdep.c (i386_register_to_value): Adjust to new
2537 gdbarch_register_to_value interface.
2538 * i387-tdep.c (i387_register_to_value): Ditto.
2539 * i387-tdep.h (i387_register_to_value): Ditto.
2540 * alpha-tdep.c (alpha_register_to_value): Ditto.
2541 * ia64-tdep.c (ia64_register_to_value): Ditto.
2542 * m68k-tdep.c (m68k_register_to_value): Ditto.
2543 * mips-tdep.c (mips_register_to_value): Ditto.
2544 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2546 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2548 * findvar.c (value_of_register): Mark the value as unavailable, if
2549 the register is unavailable.
2550 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2551 (frame_register): New `unavailablep' parameter.
2552 (frame_register_read): Update comment.
2553 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2554 Set it if the register is unavailable. If the register is
2555 unavailable, clear the output buffer.
2556 (frame_register): New `unavailablep' parameter. Pass it down.
2557 (frame_unwind_register): Adjust.
2558 (put_frame_register): Adjust.
2559 (frame_register_read): Adjust. Also return false if the register
2561 (frame_register_unwind_location): Adjust.
2562 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2563 is unavailable, mark the value accordingly.
2564 * stack.c (frame_info): Handle unavailable registers.
2566 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2568 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2569 simplify, using regcache_cooked_read.
2571 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2573 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2574 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2575 (regcache_raw_read_unsigned, regcache_raw_read_part)
2576 (regcache_cooked_read, regcache_cooked_read_signed)
2577 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2578 (regcache_cooked_read_ftype): Change return to enum
2580 * regcache.c: Include exceptions.h
2581 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2582 (do_cooked_read): Change return to enum register_status. Always
2583 forward to regcache_cooked_read.
2584 (regcache_raw_read): Change return to enum register_status. If
2585 the register is not REG_VALID, memset the buffer. Return the
2587 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2588 return the register's status.
2589 (regcache_raw_read_unsigned): Ditto.
2590 (regcache_cooked_read): Change return to enum register_status.
2591 Assert that with read-only regcaches, the register's status must
2592 be known. If the regcache is read-only, and the register is not
2593 REG_VALID, memset the buffer. Return the register's status.
2594 (regcache_cooked_read_signed): Change return to enum
2595 register_status. Handle non-REG_VALID registers and return the
2597 (regcache_cooked_read_unsigned): Change return to enum
2598 register_status. Handle non-REG_VALID registers and return the
2600 (regcache_xfer_part, regcache_raw_read_part)
2601 (regcache_cooked_read_part): Change return to enum
2602 register_status. Return the register's status.
2603 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2605 (regcache_dump): Handle unavailable cooked registers.
2606 * frame.c (do_frame_register_read): Adjust interface to match
2607 regcache_cooked_read_ftype.
2608 * gdbarch.sh (pseudo_register_read): Change return to enum
2610 * gdbarch.h, gdbarch.c: Regenerate.
2612 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2614 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2615 register_status. If reading a raw register indicates the raw
2616 register is not valid, return the raw register's status,
2617 otherwise, return REG_VALID.
2618 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2619 register_status. Handle non-REG_VALID raw registers and return
2620 the register's status.
2621 * arm-tdep.c (arm_neon_quad_read)
2622 (arm_pseudo_read): Change return to enum register_status. Handle
2623 non-REG_VALID raw registers and return the register's status.
2624 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2625 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2626 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2627 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2628 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2630 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2631 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2632 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2633 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2634 (m32c_pseudo_register_read): Change return to enum
2635 register_status. Adjust.
2636 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2637 enum register_status. Return the register's status.
2638 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2639 register_status. Return the register's status.
2640 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2641 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2642 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2643 * rs6000-tdep.c (move_ev_register_func): New typedef.
2644 (e500_move_ev_register): Use it. Change return to enum
2645 register_status. Return the register's status.
2646 (do_regcache_raw_read): New function.
2647 (do_regcache_raw_write): New function.
2648 (e500_pseudo_register_read): Change return to enum
2649 register_status. Return the register's status. Use
2650 do_regcache_raw_read.
2651 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2652 (dfp_pseudo_register_read): Change return to enum register_status.
2653 Return the register's status.
2654 (vsx_pseudo_register_read): Ditto.
2655 (efpr_pseudo_register_read): Ditto.
2656 (rs6000_pseudo_register_read): Ditto.
2657 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2658 register_status. Return the register's status.
2659 * sh64-tdep.c (pseudo_register_read_portions): New function.
2660 (sh64_pseudo_register_read): Change return to enum
2661 register_status. Use pseudo_register_read_portions. Return the
2663 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2664 register_status. Return the register's status.
2665 * sh-tdep.c (pseudo_register_read_portions): New function.
2666 (sh_pseudo_register_read): Change return to enum register_status.
2667 Use pseudo_register_read_portions. Return the register's status.
2668 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2669 enum register_status. Return the register's status.
2670 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2671 * spu-tdep.c (spu_pseudo_register_read_spu)
2672 (spu_pseudo_register_read): Ditto.
2673 * xtensa-tdep.c (xtensa_register_read_masked)
2674 (xtensa_pseudo_register_read): Ditto.
2675 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2677 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2679 * python/py-value.c (valpy_getitem): Fix formatting of error function
2682 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2684 ARI fixes: Add missing internationalization markups throughout
2686 * darwin-nat-info.c: Ditto.
2689 * mi/mi-main.c: Ditto.
2691 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2693 ARI fixes: Add missing internationalization markups throughout
2696 * cp-name-parser.y: Ditto.
2699 * objc-exp.y: Ditto.
2702 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2704 ARI fixes: Messages should have no trailing new lines.
2705 * darwin-nat.c (mach_check_error): Remove trailing new line from
2706 warning function call message.
2707 * record.c (bfdcore_read): Idem for error call.
2709 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2711 * common/signals.c (target_signal_from_host): Add _ markup to error
2712 function call message.
2713 (target_signal_to_host): Add _ markup and remove trailing new line
2714 from warning call message.
2715 (target_signal_from_command): Add _ markup to error function call
2718 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2722 * python/python.c (gdbpy_write): Accept a stream argument and
2723 operate to the appropriate stream.
2724 (gdbpy_flush): Likewise.
2725 (_initialize_python): Add stream constants.
2726 (finish_python_initialization): Add GdbOutputErrorFile class.
2728 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2730 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2732 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2734 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2735 to store_signed_integer. Add debug message when relocating CALL
2736 instructions. Fix formatting of debug message.
2737 * i386-tdep.c (i386_relocate_instruction): Ditto.
2739 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2741 * target.h (struct target_ops): Remove to_lookup_symbol field.
2742 (target_lookup_symbol): Delete macro.
2743 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2744 (update_current_target, setup_target_debug): Remove handling
2745 of to_lookup_symbol target_ops field.
2746 * ada-tasks.c (get_known_tasks_addr): Remove use of
2747 target_lookup_symbol.
2748 * coffread.c (coff_symtab_read): Likewise.
2749 * dbxread.c (read_dbx_symtab): Ditto.
2751 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2754 * configure.ac: Add getthrds declaration check.
2755 * configure, config.in: Regenerate.
2756 * aix-thread.c (getthrds): Declare only if not already declared
2757 in procinfo.h. More declaration out of get_signaled_thread to
2760 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2762 * python/py-symtab.c: Populate symtab_object_methods,
2764 (stpy_is_valid): New function.
2765 (salpy_is_valid): Ditto.
2766 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2767 (sympy_is_valid): New function.
2768 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2769 (objfpy_is_valid): New function.
2770 * python/py-inferior.c: Populate inferior_object_methods.
2771 (infpy_is_valid): New function.
2772 * python/py-infthread.c: Populate thread_object_methods.
2773 (thpy_is_valid): New function.
2774 * python/py-block.c: Declare block_object_methods. Populate. Declare
2775 block_iterator_object_methods. Populate.
2776 (blpy_is_valid): New function.
2777 (blpy_iter_is_valid): Ditto.
2779 2011-03-16 Keith Seitz <keiths@redhat.com>
2781 * linespec.c (find_methods): Canonicalize NAME before looking
2783 (name_end): New function.
2784 (keep_name_info): New function.
2785 (decode_line_1): Use keep_name_info.
2786 (decode_compound): Likewise.
2787 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2788 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2791 * linespec.c (locate_first_half): Keep overload information, too.
2792 (decode_compound): Use a string to represent break characters
2794 If P points to a break character, do not increment it.
2795 For C++ and Java, keep overload information and relevant keywords.
2796 If we cannot find a symbol, search the minimal symbols.
2799 * linespec.c (decode_compound): Rename SAVED_ARG to
2801 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2803 Pass a valid block to lookup_symbol.
2804 (lookup_prefix_sym): Likewise.
2805 (find_method): Construct search name based on SYM_CLASS instead
2807 * psymtab.c (lookup_partial_symbol): Add language parameter.
2808 (lookup_symbol_aux_psymtabs): Likewise.
2809 Don't assume that the psymtab we found was the right one. Search
2810 for the desired symbol in the symtab to be certain.
2811 (psymtab_search_name): New function.
2812 (lookup_partial_symbol): Use psymtab_search_name.
2813 Add language parameter.
2814 (read_symtabs_for_function): Add language parameter and pass to
2815 lookup_partial_symbol.
2816 (find_symbol_file_from_partial): Likewise.
2818 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2821 * dwarf2read.c (noop_record_line): New function.
2822 (dwarf_decode_lines): Ignore line tables for GCd functions.
2824 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2826 Fix ARI warnings about new lines at the end of messages, which
2827 are unneeded as there is a new line added at the end of the message
2829 * darwin-nat.c (darwin_stop_inferior): Ditto.
2830 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2831 * dfp.c (decimal_to_number): Ditto.
2832 * exec.c (print_section_info): Ditto.
2833 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2834 * osdata.c (get_osdata): Ditto.
2835 * record.c (bfdcore_write): Ditto.
2836 * remote-mips.c (mips_readchar): Ditto.
2837 * remote.c (read_ptid): Ditto.
2838 * ser-mingw.c (ser_windows_raw): Ditto.
2839 * tracepoint.c (add_local_symbols): Ditto.
2840 * windows-nat.c (fake_create_process): Ditto.
2842 2011-03-16 Tom Tromey <tromey@redhat.com>
2844 * tracepoint.c (stop_tracing): Don't declare.
2845 * event-top.c (after_char_processing_hook): Add `(void)'.
2847 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2849 * NEWS: Add Parameter sub-classing description.
2851 2011-03-16 Kai Tietz <ktietz@redhat.com>
2853 * MAINTAINERS: Update my e-mail address.
2855 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2857 * MAINTAINERS: Add myself for write after approval privileges.
2859 2011-03-15 Michael Snyder <msnyder@vmware.com>
2861 * frame.c (find_frame_sal): Assert sym is not null.
2863 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2865 * objc-lang.c (selectors_info): Check strchr for null result.
2867 * stabsread.c (define_symbol): Guard against bad stabstring input.
2869 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2871 Remove trailing spaces and tabulations from pascal language
2876 p-valprint.c: Ditto.
2878 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2880 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2881 than LOW. Comment it.
2882 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2883 HIGHPC not strictly higher than LOWPC.
2885 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2887 Fix formatting of function declarations returning a pointer in
2889 * varobj.c (varobj_add_child): Ditto.
2890 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2891 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2893 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2895 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2896 for the "generic" vector ABI used with GCC 4.3 and later.
2897 (ppc64_sysv_abi_return_value): Likewise.
2899 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2901 * infcall.c (call_function_by_hand): Function return value is
2902 always a non_lval, even when using struct_return.
2904 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2906 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2907 (map_display_numbers): New.
2908 (do_delete_display): New.
2909 (undisplay_command): Use map_display_numbers.
2910 (do_enable_disable_display): New.
2911 (enable_disable_display_command): New function.
2912 (enable_display): Delete.
2913 (enable_display_command): New.
2914 (disable_display_command): Reimplement.
2915 (_initialize_printcmd): Adjust "enable display" command to use
2916 `enable_display_command' as callback.
2918 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2920 * NEWS: Add Python breakpoint 'stop' operation.
2922 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2924 * NEWS: Delete duplicate entry. Fix typo.
2926 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2928 Fix ARI warning about function names in first column.
2929 Put prototype declaration on same line as return type.
2930 * objc-exp.y: Ditto.
2932 * python/py-stopevent.h: Ditto.
2933 For long function names, split parameters to
2934 allow function name on same line as return type.
2935 * solib-pa64.c: Ditto.
2938 For long function declaration, use single line.
2939 * hppa-tdep.h: Ditto.
2940 * inferior.h: Ditto.
2942 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2944 * python/python.h: Declare gdbpy_should_stop and
2945 gdbpy_breakpoint_has_py_cond.
2946 * python/python.c: Add python.h to includes. Remove python.h from
2947 HAVE_PYTHON definition
2948 (gdbpy_should_stop): New dummy function.
2949 (gdbpy_breakpoint_has_py_cond): New dummy function.
2950 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2951 sub-classing capabilities.
2952 (gdbpy_should_stop): New function.
2953 (gdbpy_breakpoint_has_py_cond): New function.
2954 (local_setattro): New function.
2955 * breakpoint.c (condition_command): Add check for Python 'stop'
2957 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2958 operation function as part of stop/continue tests.
2960 2011-03-14 Tom Tromey <tromey@redhat.com>
2963 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2964 (needs_frame_dwarf_call): Likewise.
2966 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2968 Fix ARI warning about functions without parameters that do not
2970 * breakpoint.c (all_tracepoints): Replace () by (void).
2971 * f-exp.y (match_string_literal): Ditto.
2973 * m2-exp.y (yylex): Ditto.
2974 * mep-tdep.c (current_me_module): Ditto.
2975 (current_options): Ditto.
2976 (current_cop_data_bus_width): Ditto.
2977 (current_cr_names): Ditto.
2978 (current_cr_is_float): Ditto.
2979 (current_ccr_names): Ditto.
2980 * objc-exp.y (yylex): Ditto.
2981 * p-exp.y (yylex): Ditto.
2982 * remote.c (send_interrupt_sequence): Ditto.
2983 * tracepoint.c (current_trace_status): Ditto.
2984 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2985 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2987 2011-03-11 Michael Snyder <msnyder@vmware.com>
2989 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2990 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2991 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2992 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2993 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2995 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2996 (delete_async_event_handler): Ditto.
2998 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3000 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3002 * top.c (set_verbose): Assert showcmd was found.
3004 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3006 * xtensa-tdep.c (warning_once): Correct style issues.
3008 2011-03-11 Yao Qi <yao@codesourcery.com>
3010 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3012 2011-03-11 Andreas Schwab <schwab@redhat.com>
3014 * common/aclocal.m4: Remove.
3016 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3018 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3019 (xtensa_write_register, xtensa_read_register): Likewise.
3020 (xtensa_hextochar): Removed.
3021 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3023 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3025 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3026 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3027 (xtensa_alloc_frame_cache): Add initialization for new fields.
3028 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3029 (warning_once): New function.
3030 (xtensa_insn_kind): New item c0opc_and.
3031 (call0_classify_opcode): Add the case for AND instruction.
3032 (call0_track_op): Change arguments. New local variable litbase.
3033 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3034 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3036 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3037 (call0_analyze_prologue): Update the comments. Change arguments.
3038 Add the variety of updates to handle extended prologues, which now can
3039 conduct dynamic stack adjustments.
3040 (call0_frame_cache): Likewise.
3041 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3042 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3044 2011-03-10 Michael Snyder <msnyder@vmware.com>
3046 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3047 (cmd_qtframe): Ditto.
3048 (cmd_qtbuffer): Ditto.
3049 (cmd_bigqtbuffer): Ditto.
3051 2011-03-10 Tom Tromey <tromey@redhat.com>
3053 * tracepoint.c (trace_actions_command): Update.
3054 * thread.c (thread_apply_command): Update.
3055 * reverse.c (delete_bookmark_command): Update.
3056 (bookmarks_info): Update.
3057 * printcmd.c (undisplay_command): Update.
3058 * memattr.c (mem_enable_command): Update.
3059 (mem_disable_command): Update.
3060 (mem_delete_command): Update.
3061 * inferior.c (detach_inferior_command): Update.
3062 (kill_inferior_command): Update.
3063 (remove_inferior_command): Update.
3064 * cli/cli-utils.h (struct get_number_or_range_state): New.
3065 (init_number_or_range): Declare.
3066 (get_number_or_range): Update.
3067 * cli/cli-utils.c (init_number_or_range): New function.
3068 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3070 (number_is_in_list): Update.
3071 * breakpoint.h (get_tracepoint_by_number): Update.
3072 * breakpoint.c (map_breakpoint_numbers): Update for change to
3073 get_number_or_range.
3074 (find_location_by_number): Use get_number, not
3075 get_number_or_range.
3076 (trace_pass_set_count): New function.
3077 (trace_pass_command): Update for change to get_number_or_range.
3079 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3082 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3084 * python/py-param.c (add_setshow_generic): Add set/show callback
3085 parameters. Register Python object context.
3086 (get_show_value): New function.
3087 (get_set_value): New function.
3088 (call_doc_function): New function.
3089 (get_doc_string): Move behind get_show_value/get_set_value.
3091 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3093 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3095 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3097 * xtensa-tdep.c (xtensa_read_register): Add comment.
3098 (xtensa_write_register): Likewise.
3099 (xtensa_hextochar): Add comment and update to match coding conventions.
3100 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3101 (execute_l32e, execute_s32e, execute_code): Update comments.
3102 (xtensa_exception_handler_t): Update to match coding conventions.
3103 (xtensa_insn_kind): Likewise.
3105 2011-03-09 Michael Snyder <msnyder@vmware.com>
3107 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3109 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3111 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3113 2011-03-09 Tom Tromey <tromey@redhat.com>
3115 * thread.c (restore_selected_frame): Handle frame_level == -1.
3116 (make_cleanup_restore_current_thread): Use
3117 get_selected_frame_if_set.
3118 * frame.h (get_selected_frame_if_set): Declare.
3119 * frame.c (get_selected_frame_if_set): New function.
3121 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3123 * cli/cli-cmds.c (shell_escape): Use lbasename.
3124 * coffread.c (coff_start_symtab): Constify parameter.
3125 (complete_symtab): Constify `name' parameter.
3126 (coff_symtab_read): Constify `filestring' local.
3127 (coff_getfilename): Constify return and `result' local.
3129 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3130 * linux-fork.c (info_checkpoints_command): Use lbasename.
3131 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3132 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3133 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3134 * procfs.c (procfs_make_note_section): Use lbasename.
3135 * tui/tui-io.c (printable_part): Constity return and parameter.
3137 (print_filename): Constify parameters, and local `s'.
3138 (tui_rl_display_match_list): Constify local `temp'.
3140 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3143 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3144 Fix DWARF-3+ DW_AT_accessibility default assumption.
3145 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3146 cu->header.version >= 3.
3148 2011-03-09 Yao Qi <yao@codesourcery.com>
3150 * common/Makefile.in: Remove.
3151 * common/configure: Remove.
3152 * common/configure.ac: Remove.
3154 2011-03-09 Yao Qi <yao@codesourcery.com>
3157 2011-02-11 Yao Qi <yao@codesourcery.com>
3159 * common/Makefile.in: Add copyright header.
3161 2011-02-11 Yao Qi <yao@codesourcery.com>
3163 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3165 * configure.ac: Add common to sub dir.
3166 * configure: Regenerate.
3168 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3170 * xtensa-tdep.c (call0_ret): New function.
3171 (xtensa_skip_prologue): Speed up analysis.
3173 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3175 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3176 while executing MI command -data-list-changed-registers.
3178 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3180 * xtensa-tdep.c (xtensa_read_register): New function.
3181 (xtensa_write_register): New function.
3182 (xtensa_find_register_by_name): New function.
3183 (xtensa_windowed_frame_cache): Update comments in type description.
3184 (xtensa_frame_cache): Likewise.
3185 (xtensa_window_interrupt_insn): New function.
3186 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3187 (xtensa_insn_kind): Add new instructions.
3188 (rwx_special_register): New function.
3189 (call0_classify_opcode): Add new instructions to the analysis.
3190 (a0_saved, a7_saved, a11_saved): New variables.
3191 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3192 (execute_l32e): New function.
3193 (execute_s32e): New function.
3194 (xtensa_exception_handler_t): New type.
3195 (execute_code): New function.
3196 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3197 analysis for Xtensa Window Exception handlers.
3199 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3201 * xtensa-tdep.c (TX_PS): New.
3202 (windowing_enabled): Update to count for Call0 ABI.
3203 (xtensa_hextochar): New.
3204 (xtensa_init_reggroups): Make algorithm generic.
3205 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3207 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3209 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3211 2011-03-08 Michael Snyder <msnyder@vmware.com>
3213 * i386-tdep.c (i386_follow_jump): Check return value of
3215 (i386_analyze_struct_return): Ditto.
3216 (i386_skip_probe): Ditto.
3217 (i386_match_insn): Ditto.
3218 (i386_skip_noop): Ditto.
3219 (i386_analyze_frame_setup): Ditto.
3220 (i386_analyze_register_saves): Ditto.
3221 (i386_skip_prologue): Ditto.
3222 (i386_skip_main_prologue): Ditto.
3224 * target.c (read_whatever_is_readable): Fix memory leak.
3226 * i386-tdep.c (i386_process_record): Document fall through.
3228 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3230 Fix DWARF-3+ DW_AT_accessibility default assumption.
3231 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3232 cu->header.version >= 3.
3234 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3236 * remote.c (remote_check_symbols): Skip if the target has no
3239 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3241 * target.c (read_whatever_is_readable): Reformat comment,
3242 with a minor typo fix. Minor reformatting of the code.
3244 2011-03-08 Yao Qi <yao@codesourcery.com>
3246 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3247 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3248 Use cached result instead of calling displaced_in_arm_mode again.
3249 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3250 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3251 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3252 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3253 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3254 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3255 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3256 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3257 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3258 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3259 (arm_catch_kernel_helper_return): Likewise.
3260 * gdb/arm-tdep.h : Update function declarations.
3262 2011-03-07 Michael Snyder <msnyder@vmware.com>
3264 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3266 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3268 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3270 * elfread.c (elf_symtab_read): Stop memory leak.
3272 * main.c (captured_main): Fix memory leak.
3274 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3276 * ada-lang.c (compare_names): Call is_name_suffix with string1
3279 2011-03-07 Tom Tromey <tromey@redhat.com>
3281 * xcoffread.c (xcoff_sym_fns): Update.
3282 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3283 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3284 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3285 (symbol_file_add_with_addrs_or_offsets): Likewise.
3286 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3287 * somread.c (som_sym_fns): Update.
3288 * psymtab.h (require_partial_symbols): Declare.
3289 * psymtab.c (require_partial_symbols): New function.
3290 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3291 (ALL_OBJFILE_PSYMTABS): Undef.
3292 (ALL_PSYMTABS): Move from psympriv.h.
3293 (lookup_partial_symtab, find_pc_sect_psymtab)
3294 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3295 (find_last_source_symtab_from_partial)
3296 (forget_cached_source_info_partial)
3297 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3298 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3299 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3300 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3301 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3302 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3303 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3304 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3305 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3307 * mipsread.c (ecoff_sym_fns): Update.
3308 * machoread.c (macho_sym_fns): Update.
3309 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3310 (read_psyms): New function.
3311 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3312 (elf_sym_fns_lazy_psyms): New global.
3313 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3314 dwarf2_build_psymtabs.
3315 * dbxread.c (aout_sym_fns): Update.
3316 * coffread.c (coff_sym_fns): Update.
3318 2011-03-07 Tom Tromey <tromey@redhat.com>
3320 * infrun.c (print_exited_reason): Include inferior id and pid in
3323 2011-03-07 Tom Tromey <tromey@redhat.com>
3325 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3327 (target_has_execution_1): Update.
3328 (target_has_execution_current): Declare.
3329 (target_has_execution): Call target_has_execution_current.
3330 (default_child_has_execution): Update.
3331 * target.c (default_child_has_execution): Add 'the_ptid'
3333 (target_has_execution_1): Likewise.
3334 (target_has_execution_current): New function.
3335 (add_target): Update.
3336 (init_dummy_target): Update.
3337 * remote-m32r-sdi.c (m32r_has_execution): New function.
3338 (init_m32r_ops): Use it.
3339 * record.c (record_core_has_execution): Now static. Add
3340 'the_ptid' parameter.
3341 * inferior.c (have_live_inferiors): Don't save current thread.
3342 Use target_has_execution_1.
3344 2011-03-07 Yao Qi <yao@codesourcery.com>
3346 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3348 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3350 * elfread.c (elf_symtab_read): Minor reformatting.
3352 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3354 * objc-lang.c (selectors_info): Minor reformatting.
3356 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3358 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3360 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3361 Michael Snyder <msnyder@vmware.com>
3363 * ada-valprint.c (ada_val_print_array): Move the declaration of
3364 "byte_order" and "elttype" inside the block where these variables
3365 are actually used. Remove some special handling for the case
3366 where "elttype" and "eltlen" are null. Replace by a comment
3367 and a couple of assertion checks.
3369 2011-03-05 Michael Snyder <msnyder@vmware.com>
3371 * source.c (add_path): Replace semicolon at end of block.
3372 * dwarf2expr.c (execute_stack_op): Ditto.
3374 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3376 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3377 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3378 (bfin-*-*): Likewise.
3380 2011-03-05 Michael Snyder <msnyder@vmware.com>
3382 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3383 * mdebugread.c (parse_symbol): Ditto.
3384 * parse.c (parse_exp_in_context): Ditto.
3385 * source.c (add_path): Ditto.
3386 * utils.c (gnu_debuglink_crc32): Ditto.
3387 * varobj.c (variable_language): Ditto.
3389 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3391 2011-03-04 Michael Snyder <msnyder@vmware.com>
3393 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3395 * symfile.c (simple_overlay_update): Check for null return value
3396 from lookup_minimal_symbol.
3398 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3400 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3402 * eval.c (parse_and_eval_address_1): Remove function.
3403 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3404 instead of parse_and_eval_address_1.
3405 * value.h (parse_and_eval_address_1): Remove prototype.
3407 2011-03-04 Michael Snyder <msnyder@vmware.com>
3409 * remote.c (putpkt_binary): Document that case stmt falls through.
3411 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3413 * breakpointc (print_it_typical): Move NULL check from here...
3414 (print_bp_stop_message): ... to here.
3416 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3418 * breakpoint.c (enable_command): Use break instead of continue,
3419 and fill in a missing break.
3420 (disable_command): Ditto.
3422 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3424 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3425 (terminal_save_ours): Remove misleading comment.
3426 (inflow_inferior_data_cleanup): Free ttystate.
3427 (inflow_inferior_exit): Likewise.
3428 (copy_terminal_info): Copy ttystate.
3430 * serial.c (serial_copy_tty_state): New function.
3431 * serial.h (serial_copy_tty_state): Add prototype.
3432 (struct serial_ops): Add copy_tty_state callback.
3433 * ser-base.c (ser_base_copy_tty_state): New function.
3434 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3435 * ser-go32.c (dos_copy_tty_state): New function.
3436 (dos_ops): Install copy_tty_state callback.
3437 * ser-mingw.c (_initialize_ser_windows): Likewise.
3438 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3439 * ser-unix.c (hardwire_copy_tty_state): New function.
3440 (_initialize_ser_hardwire): Install it.
3442 2011-03-04 Michael Snyder <msnyder@vmware.com>
3444 * breakpoint.c (create_breakpoint): Add missing break statement.
3446 Reverting this patch:
3447 * infcall.c (call_function_by_hand): Add break statements for lint.
3449 Reverting this patch:
3450 * cli/cli-script.c (script_from_file): Add break for lint.
3452 2011-03-04 Michael Snyder <msnyder@vmware.com>
3454 * solib.c (reload_shared_libraries_1): Close memory leak.
3456 2011-03-03 Tom Tromey <tromey@redhat.com>
3459 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3462 2011-03-03 Michael Snyder <msnyder@vmware.com>
3464 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3465 fields of struct 'st' to zero.
3467 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3468 sal.pspace before calling set_current_source_symtab_and_line.
3470 2011-03-03 Yao Qi <yao@codesourcery.com>
3472 * Makefile.in (configure-common): Remove. Let Makefile
3473 in dir common to rebuild itself.
3474 (common/Makefile): Likewise.
3476 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3478 * utils.c (parse_escape): Add i18n markup in error message.
3480 2011-03-03 Yao Qi <yao@codesourcery.com>
3482 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3484 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3485 (displaced_write_reg, displaced_read_reg): Likewise.
3486 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3487 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3488 (cleanup_branch): Replace magic number 14 and 15 with
3489 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3491 2011-03-02 Michael Snyder <msnyder@vmware.com>
3493 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3495 * cli/cli-script.c (script_from_file): Add break for lint.
3497 * mdebugread.c (parse_partial_symbols): Fix indent.
3499 * target-descriptions.c (tdesc_gdb_type): No need to call
3500 xstrdup, callee saves a copy.
3502 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3504 * infcall.c (call_function_by_hand): Add break statements for lint.
3506 * utils.c (parse_escape): Escape the escape char.
3508 * python/py-inferior.c (build_inferior_list): Error out if
3509 PyList_Append fails.
3510 (gdbpy_inferiors): Error out if build_inferior_list fails.
3512 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3515 * record.c (record_restore): Move printf to before error return.
3517 2011-03-02 Yao Qi <yao@codesourcery.com>
3519 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3520 is_thumb and insn_size.
3521 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3522 on both ARM and Thumb mode.
3523 (arm_process_displaced_insn): Set is_thumb and insn_size.
3524 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3525 (arm_displaced_step_fixup): Likewise.
3527 2011-03-01 Michael Snyder <msnyder@vmware.com>
3529 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3531 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3533 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3535 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3537 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3540 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3541 which shadows function parameter.
3543 * tracepoint.c (create_tsv_from_upload): Superfluous call
3544 to xstrdup. Callee already calls xstrdup.
3546 * linespec.c (decode_line_1): Remove unnecessary null check.
3548 * tracepoint.c (scope_info): Fix mem leak, remove underused
3551 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3552 superfluous null check.
3554 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3555 (value_of_builtin_frame_fp_reg): Ditto.
3557 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3559 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3562 * linespec.c (decode_line_1): Check for null before dereference.
3564 * reverse.c (record_restore): Move null-check to before pointer
3567 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3569 * objc-lang.c (selectors_info): Add explanitory comment.
3570 (classes_info): Ditto.
3572 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3574 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3575 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3576 versions of the trampoline. Handle Thumb vs. ARM addresses.
3577 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3578 (arm_linux_init_abi): Install it.
3579 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3580 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3582 2011-02-28 Michael Snyder <msnyder@vmware.com>
3584 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3585 a little bigger, to avoid possibility of an overflow.
3587 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3588 buffers a little bigger, to avoid possibility of an overflow.
3590 * coffread.c (coff_getfilename): Add check to avoid overflow.
3592 * objc-lang.c (selectors_info): Add a small safety margin to
3594 (classes_info): Error out on too long REGEXP.
3596 * infrun.c (handle_inferior_event): Remove unused function call.
3598 * fork-child.c (fork_inferior): Remove ifdef'd code and
3601 * linux-thread-db.c (attach_thread): Discard unused value.
3603 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3605 * remote.c (remote_get_noisy_reply): Discard unused value.
3606 (remote_vcont_resume): Ditto.
3607 (remote_stop_ns): Ditto.
3609 * linespec.c (decode_objc): Delete unused variable.
3611 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3613 * dwarf2read.c (add_partial_symbol): Discard unused values.
3614 (read_base_type): Delete unused variable.
3616 * dbxread.c (read_dbx_symtab): Discard unused value.
3618 * eval.c (evaluate_subexp_standard): Delete unused variable,
3619 and discard unused values.
3621 * infcmd.c (_initialize_infcmd): Discard unused values.
3623 * stabsread.c (rs6000_builtin_type): Missing break statement.
3625 * dbxread.c (process_one_symbol): Discard unused value.
3627 * coffread.c (coff_end_symtab): Delete unused variable.
3629 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3630 (dwarf2_add_typedef): Delete unused variable.
3631 (read_namespace): Ditto.
3632 (dwarf_decode_macros): Ditto.
3634 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3636 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3638 * p-valprint.c (pascal_val_print): Discard unused value.
3640 * utils.c (nquery): Call va_end before return;
3644 * proc-service.c (ps_plog): Call va_end before return.
3646 2011-02-28 Tom Tromey <tromey@redhat.com>
3648 * python/python.c (gdbpy_value_cst): New global.
3649 (_initialize_python): Initialize it.
3650 * python/python-internal.h (gdbpy_value_cst): Declare.
3651 * python/py-value.c (convert_value_from_python): Use
3654 2011-02-28 Michael Snyder <msnyder@vmware.com>
3656 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3658 * breakpoint.c (catch_syscall_completer): Free malloced list.
3660 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3662 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3663 (lval_func_check_synthetic_pointer): Ditto.
3664 (lval_func_free_closure): Fix use-after-free.
3666 2011-02-28 Tom Tromey <tromey@redhat.com>
3668 * psymtab.c (expand_partial_symbol_tables): Use
3669 ALL_OBJFILE_PSYMTABS.
3671 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3673 * objc-lang.c (selectors_info): Error on too long REGEXP.
3675 2011-02-28 Michael Snyder <msnyder@vmware.com>
3677 * python/py-param.c (set_parameter_value): Add missing
3680 * linux-record.c (record_linux_system_call): Add missing
3683 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3685 * breakpoint.c (print_one_breakpoint_location): Remove unused
3686 argument PRINT_ADDRESS_BITS. Update callers.
3687 (print_one_breakpoint): Likewise.
3689 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3691 * breakpoint.c (wrap_indent_at_field): New function.
3692 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3693 Allocate ui_stream locally instead of using STB argument.
3694 (print_one_breakpoint_location): Update call.
3695 * ui-out.c (ui_out_query_field): New function.
3696 * ui-out.h (ui_out_query_field): Add prototype.
3698 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3700 From Michael Snyder <msnyder@vmware.com>
3701 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3703 2011-02-27 Michael Snyder <msnyder@vmware.com>
3705 * objc-lang.c (selectors_info): Prevent string overrun.
3707 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3710 * symtab.c (rbreak_command): Move variable 'file_name' to
3713 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3714 param with a local variable of the same name.
3716 2011-02-27 Michael Snyder <msnyder@vmware.com>
3718 * value.c (value_from_history_ref): New function.
3719 * value.h (value_from_history_ref): Export.
3720 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3721 to parse value history references.
3722 * cli/cli-utils.h (get_number_trailer): Update comment.
3724 2011-02-27 Michael Snyder <msnyder@vmware.com>
3726 * inferior.c (detach_inferior_command): Use get_number_or_range.
3727 (kill_inferior_command): Ditto.
3728 (remove_inferior_command): Ditto.
3729 (initialize_inferiors): Make command names plural.
3730 Update help strings.
3732 2011-02-27 Michael Snyder <msnyder@vmware.com>
3734 * darwin-nat-info.c: Fix comment typo.
3735 * dwarf2expr.h: Ditto.
3736 * fbsd-nat.c: Ditto.
3737 * fbsd-nat.h: Ditto.
3738 * frame-unwind.h: Ditto.
3740 * hppa-hpux-tdep.c: Ditto.
3741 * i386-linux-nat.c: Ditto.
3742 * linux-nat.c: Ditto.
3743 * nbsd-nat.c: Ditto.
3744 * nbsd-nat.h: Ditto.
3745 * ppc-linux-tdep.c: Ditto.
3748 * tui/tui-winsource.c: Ditto.
3750 2011-02-26 Michael Snyder <msnyder@vmware.com>
3752 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3754 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3756 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3757 with a local variable of the same name.
3759 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3760 param with a local variable of the same name.
3761 (i387_supply_xsave): Ditto.
3763 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3764 that it does not shadow a function parameter.
3766 * i386-nat.c (i386_length_and_rw_bits): Document that case
3767 statement is meant to fall through.
3769 * expprint.c (dump_subexp_body_standard): Document that case
3770 statement is meant to fall through.
3772 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3773 dead if statement. Condition can't be false.
3775 2011-02-25 Michael Snyder <msnyder@vmware.com>
3777 * arm-tdep.c: Fix typos in comments.
3778 * bsd-uthread.c: Ditto.
3779 * completer.c: Ditto.
3781 * cp-namespace.c: Ditto.
3782 * cp-support.c: Ditto.
3783 * cris-tdep.c: Ditto.
3785 * dwarf2read.c: Ditto.
3787 * gdbtypes.h: Ditto.
3788 * inferior.h: Ditto.
3789 * mdebugread.c: Ditto.
3790 * mips-tdep.c: Ditto.
3791 * ppc-linux-nat.c: Ditto.
3792 * ppc-linux-tdep.c: Ditto.
3793 * printcmd.c: Ditto.
3794 * sol-thread.c: Ditto.
3795 * solib-frv.c: Ditto.
3797 * sparc64-tdep.c: Ditto.
3798 * spu-tdep.c: Ditto.
3799 * stabsread.c: Ditto.
3804 * python/py-block.c: Ditto.
3805 * python/py-symbol.c: Ditto.
3806 * python/py-symtab.c: Ditto.
3807 * python/py-value.c: Ditto.
3808 * tui/tui-win.c: Ditto.
3810 2011-02-25 Michael Snyder <msnyder@vmware.com>
3812 * inferior.c (print_inferior): Accept a string instead of an int
3813 for requested_inferiors, and use get_number_or_range to parse it.
3814 (info_inferiors_command): Pass args string to print_inferior.
3815 (initialize_inferiors): Change help string for info inferiors.
3816 * inferior.h (print_inferior): Export prototype change.
3818 2011-02-25 Tom Tromey <tromey@redhat.com>
3820 * common/ax.def (invalid2): Set to 0x31.
3822 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3824 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3826 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3828 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3830 2011-02-24 Michael Snyder <msnyder@vmware.com>
3832 * Makefile.in (clean): Make clean should remove generated files
3833 observer.h and observer.inc.
3835 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3837 Revert the following patch (not approved yet):
3838 2011-02-21 Hui Zhu <teawater@gmail.com>
3839 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3840 * ax-gdb.c (gen_printf_expr_callback): New function.
3841 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3842 * ax-general.c (ax_memcpy): New function.
3843 (ax_print): Handle "printf".
3845 * ax.h (ax_memcpy): Forward declare.
3846 * common/ax.def (invalid2): Removed.
3847 (printf): New entry.
3848 * printcmd.c (printcmd.h): New include.
3849 (string_printf): New function.
3850 (ui_printf): Removed.
3851 (printf_command): Remove static. Call string_printf.
3852 (eval_command): Call string_printf.
3853 * printcmd.h: New file.
3854 * tracepoint.c (validate_actionline,
3855 encode_actions_1): handle printf_command.
3857 2011-02-23 Tom Tromey <tromey@redhat.com>
3859 * ax-general.c (ax_pick): Add missing newline.
3861 2011-02-23 Michael Snyder <msnyder@vmware.com>
3863 * breakpoint.c (breakpoint_1): Change first argument from an int
3864 to a char pointer, so that the function now accepts a list of
3865 breakpoints rather than just one. Use new function
3866 'number_is_in_list' to implement.
3867 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3868 (watchpoints_info): Ditto.
3869 (tracepoints_info): Ditto.
3870 (maintenance_info_breakpoints): Ditto.
3871 (_initialize_breakpoint): Update help strings to reflect the fact
3872 that these functions can now take more than one argument.
3873 * cli/cli-utils.c (number_is_in_list): New function.
3874 * cli/cli-utils.h (number_is_in_list): Export.
3876 2011-02-23 Michael Snyder <msnyder@vmware.com>
3878 * memattr.c (mem_enable_command): Use get_number_or_range.
3879 (mem_disable_command): Ditto.
3880 (mem_delete_command): Ditto.
3881 (_initialize_mem): Tweak usage message to reflect multiple
3884 2011-02-22 Doug Evans <dje@google.com>
3886 Add gdb.lookup_global_symbol python function.
3888 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3889 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3890 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3892 2011-02-22 Tom Tromey <tromey@redhat.com>
3894 * language.c (language_class_name_from_physname): Rename
3895 'curr_language' argument to 'lang'; use in body.
3897 2011-02-22 Michael Snyder <msnyder@vmware.com>
3899 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3901 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3903 * frame-unwind.h: Fix comment to mention the this frame, not the
3906 2011-02-22 Tom Tromey <tromey@redhat.com>
3908 * symfile.c (auto_solib_limit): Remove.
3909 * symfile.h (auto_solib_limit): Remove.
3911 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3913 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3915 2011-02-21 Michael Snyder <msnyder@vmware.com>
3917 * gdbthread.h (print_thread_info): Change prototype.
3918 * thread.c (print_thread_info): Accept char* instead of int for
3919 requested_threads argument. Use new function number_is_in_list
3920 to determine which threads to list.
3921 (info_threads_command): Pass char* to print_thread_info.
3922 * cli/cli-utils.c (number_is_in_list): New function.
3923 * cli/cli-utils.h (number_is_in_list): Export.
3924 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3926 (print_one_inferior): Ditto.
3927 (mi_cmd_list_thread_groups): Ditto.
3929 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3931 * common/Makefile.in (CFLAGS): New.
3932 (COMPILE): Add $(CFLAGS).
3934 2011-02-21 Tom Tromey <tromey@redhat.com>
3936 * breakpoint.c (catch_syscall_command_1): Fix typo.
3938 2011-02-21 Tom Tromey <tromey@redhat.com>
3940 * reverse.c: Include cli-utils.h.
3941 * printcmd.c: Include cli-utils.h.
3942 (string_printf): Use skip_spaces.
3943 * cli/cli-utils.h: New file.
3944 * cli/cli-utils.c: New file.
3945 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3946 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3947 * breakpoint.h (get_number, get_number_or_range): Move to
3949 * breakpoint.c: Include cli-utils.h.
3950 (get_number_trailer, get_number, get_number_or_range)
3951 (ep_skip_leading_whitespace): Move to cli-utils.c.
3952 (create_breakpoint_sal, find_condition_and_thread)
3953 (decode_static_tracepoint_spec, watch_command_1)
3954 (watch_maybe_just_location, ep_parse_optional_if_clause)
3955 (catch_fork_command_1, catch_exec_command_1)
3956 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3957 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3958 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3959 (HFILES_NO_SRCDIR): Add cli-utils.h.
3960 (cli-utils.o): New target.
3962 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3964 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3965 before calling discard_all_inferiors.
3967 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3969 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3970 (struct builtin_opencl_type): Remove.
3971 (builtin_opencl_type): Change return type to "struct type **".
3972 (lookup_opencl_vector_type): Update caller.
3973 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3974 (build_opencl_types): Install plain array of "struct type *"
3975 instead of "struct builtin_opencl_type".
3977 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3978 Ulrich Weigand <uweigand@de.ibm.com>
3980 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3981 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3982 (struct arm_linux_hwbp_cap): New type.
3983 (arm_linux_get_hwbp_cap): New function.
3984 (arm_linux_get_hw_breakpoint_count): Likewise.
3985 (arm_linux_get_hw_watchpoint_count): Likewise.
3986 (arm_linux_can_use_hw_breakpoint): Likewise.
3987 (arm_hwbp_type): New type.
3988 (arm_hwbp_control_t): Likewise.
3989 (struct arm_linux_hw_breakpoint): Likewise.
3990 (struct arm_linux_thread_points): Likewise.
3991 (arm_threads): New global variable.
3992 (arm_linux_find_breakpoints_by_tid): New function.
3993 (arm_hwbp_control_initialize): Likewise.
3994 (arm_hwbp_control_is_enabled): Likewise.
3995 (arm_hwbp_control_disable): Likewise.
3996 (arm_linux_hw_breakpoint_initialize): Likewise.
3997 (arm_linux_get_hwbp_type): Likewise.
3998 (arm_linux_hw_watchpoint_initialize): Likewise.
3999 (arm_linux_hw_breakpoint_equal): Likewise.
4000 (arm_linux_insert_hw_breakpoint1): Likewise.
4001 (arm_linux_remove_hw_breakpoint1): Likewise.
4002 (arm_linux_insert_hw_breakpoint): Likewise.
4003 (arm_linux_remove_hw_breakpoint): Likewise.
4004 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4005 (arm_linux_insert_watchpoint): Likewise.
4006 (arm_linux_remove_watchpoint): Likewise.
4007 (arm_linux_stopped_data_address): Likewise.
4008 (arm_linux_stopped_by_watchpoint): Likewise.
4009 (arm_linux_watchpoint_addr_within_range): Likewise.
4010 (arm_linux_new_thread): Likewise.
4011 (arm_linux_thread_exit): Likewise.
4012 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4013 related target callbacks. Register arm_linux_new_thread and
4014 arm_linux_thread_exit.
4015 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4016 * arm-tdep.c (arm_pc_is_thumb): Make global.
4017 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4019 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4021 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4022 per-frame locations while within a function epilogue.
4024 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4026 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4027 to GNU coding standards.
4029 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4031 Allow use of mingw native on Windows 95 OS.
4032 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4033 (ser_windows_close): Only call CancelIo if function exists.
4034 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4035 to check for existence of CancelIo function in kernel32 DLL.
4037 2011-02-21 Hui Zhu <teawater@gmail.com>
4039 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4040 * ax-gdb.c (gen_printf_expr_callback): New function.
4041 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4042 * ax-general.c (ax_memcpy): New function.
4043 (ax_print): Handle "printf".
4045 * ax.h (ax_memcpy): Forward declare.
4046 * common/ax.def (invalid2): Removed.
4047 (printf): New entry.
4048 * printcmd.c (printcmd.h): New include.
4049 (string_printf): New function.
4050 (ui_printf): Removed.
4051 (printf_command): Remove static. Call string_printf.
4052 (eval_command): Call string_printf.
4053 * printcmd.h: New file.
4054 * tracepoint.c (validate_actionline,
4055 encode_actions_1): handle printf_command.
4057 2011-02-19 Michael Snyder <msnyder@vmware.com>
4059 * reverse.c (delete_one_bookmark): Argument is now bookmark
4060 id rather than pointer to bookmark struct.
4061 (delete_bookmark_command): Use get_number_or_range.
4062 (goto_bookmark_command): Parse with get_number instead of strtoul.
4063 (bookmark_1): New function. Print info for one bookmark.
4064 (bookmarks_info): Use get_number_or_range and bookmark_1.
4066 2011-02-18 Michael Snyder <msnyder@vmware.com>
4068 * thread.c (info_threads_command): Re-implement using
4069 get_number_or_range.
4070 (thread_apply_command): Ditto.
4072 2011-02-18 Tom Tromey <tromey@redhat.com>
4074 * common/ax.def: New file.
4075 * ax.h (enum agent_op): Use ax.def.
4076 * ax-general.c (aop_map): Use ax.def.
4078 2011-02-18 Tom Tromey <tromey@redhat.com>
4080 * ax-general.c (aop_map): Add pick and rot.
4081 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4082 <DW_OP_rot>: Implement.
4083 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4085 * ax-general.c (ax_pick): New function.
4087 2011-02-18 Tom Tromey <tromey@redhat.com>
4089 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4091 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4092 Tom Tromey <tromey@redhat.com>
4094 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4095 make_symbol_overload_list_block with NULL BLOCK.
4096 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4098 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4100 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4101 * breakpoint.h (get_number_or_range): Declare.
4102 * printcmd.c (ALL_DISPLAYS): Declare.
4103 (delete_display): Reimplement taking a display pointer.
4104 (undisplay_command): Accept a range of displays to delete, using
4105 get_number_or_range.
4107 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4109 * c-valprint.c (c_val_print): Add embedded_offset to address
4110 for arrays of unspecified length.
4111 * p-valprint.c (pascal_val_print): Likewise.
4113 2011-02-18 Yao Qi <yao@codesourcery.com>
4115 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4116 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4117 (thumb_process_displaced_insn): New.
4118 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4119 call to arm_process_displaced_insn.
4120 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4122 2011-02-17 Tom Tromey <tromey@redhat.com>
4124 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4125 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4126 compile_dwarf_to_ax. No longer static. Call
4127 dwarf2_compile_cfa_to_ax.
4128 (locexpr_tracepoint_var_ref): Update.
4129 (loclist_tracepoint_var_ref): Update.
4130 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4131 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4132 argument; add 'gdbarch' and 'pc'.
4133 (dwarf2_compile_cfa_to_ax): New function.
4134 (dwarf2_frame_cache): Update.
4136 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4138 * ada-lang.c (ada_type_of_array): Fix the size of the array
4139 in the case of an unconstrained packed array.
4141 2011-02-17 Yao Qi <yao@codesourcery.com>
4143 * common/Makefile.in: Add more targets for make.
4145 2011-02-16 Tom Tromey <tromey@redhat.com>
4147 * dwarf2loc.c (unimplemented): Fix typo.
4149 2011-02-16 Tom Tromey <tromey@redhat.com>
4151 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4152 (compile_dwarf_to_ax) <default>: Use unimplemented.
4153 <DW_OP_deref>: Update.
4154 (disassemble_dwarf_expression): Update.
4155 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4156 (decode_locdesc): Update.
4157 * dwarf2expr.h (dwarf_stack_op_name): Update.
4159 2011-02-16 Tom Tromey <tromey@redhat.com>
4161 * ax.h (struct aop_map) <name>: Now const.
4163 2011-02-16 Tom Tromey <tromey@redhat.com>
4165 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4168 2011-02-16 Yao Qi <yao@codesourcery.com>
4170 * infrun.c (get_displaced_step_closure_by_addr): New.
4171 * inferior.h: Declare it.
4172 * arm-tdep.c: (arm_pc_is_thumb): Call
4173 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4176 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4177 Jan Kratochvil <jan.kratochvil@redhat.com>
4180 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4182 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4183 Jan Kratochvil <jan.kratochvil@redhat.com>
4185 * value.c (value_contents_copy_raw): Extend describing comment.
4186 Assert that the destination contents we're overwriting are wholly
4188 (value_contents_copy): Extend describing comment.
4190 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4191 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 * value.c (value_available_contents_eq): Remove redundant local
4194 variables. Fix available contents comparision.
4195 * value.h (value_available_contents_eq): Extend describing
4198 2011-02-16 Yao Qi <yao@codesourcery.com>
4200 * thread.c (info_threads_command): Add missing i18n markup and remove
4203 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4205 * breakpoint.c (longjmp_names): New variable.
4206 (struct breakpoint_objfile_data): New type.
4207 (breakpoint_objfile_key): New variable.
4208 (msym_not_found): New variable.
4209 (msym_not_found_p): New predicate.
4210 (get_breakpoint_objfile_data): New function.
4211 (create_overlay_event_breakpoint): Check per-objfile cache for
4213 (create_longjmp_master_breakpoint): Likewise.
4214 (create_std_terminate_master_breakpoint): Likewise.
4215 (create_exception_master_breakpoint): Likewise.
4216 (_initialize_breakpoint): Register per-objfile data key.
4218 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4220 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4222 (create_longjmp_master_breakpoint): Loop over longjmp names.
4223 (create_std_terminate_master_breakpoint): Const-propagate parameter
4225 (update_breakpoints_after_exec): Adjust.
4226 (breakpoint_re_set): Adjust.
4228 2011-02-15 Michael Snyder <msnyder@vmware.com>
4230 * thread.c (info_threads_command): Process arg as thread id,
4231 or list of thread ids.
4232 (thread_find_command): New command.
4233 (_initialize_thread): Document argument for info threads.
4234 Document 'thread find' command.
4235 * NEWS: Document new command "thread find".
4237 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4239 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4240 * aclocal.m4: Regenerated with aclocal-1.11.1.
4241 * common/configure: Regenerate with autoconf-2.64.
4243 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4245 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4246 bool data type to a size of one byte.
4248 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4249 Jan Kratochvil <jan.kratochvil@redhat.com>
4251 * target.c (memory_xfer_live_readonly_partial): Document where to
4252 look for interface description.
4254 2011-02-15 Yao Qi <yao@codesourcery.com>
4257 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4258 order to store PC value on stack instead of text section.
4260 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4262 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4263 the EFP register set size.
4264 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4265 data from the VMX register.
4266 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4267 and write data from/to the VMX register.
4269 2011-02-14 Michael Snyder <msnyder@vmware.com>
4271 * command.h (enum command_class): New class 'no_set_class', for
4272 "show" commands without a corresponding "set" command.
4273 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4274 * copying.c (_initialize_copying): Ditto for "show copying" and
4276 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4278 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4279 which there is no corresponding "set" command (eg. "show copying").
4281 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4282 Jan Kratochvil <jan.kratochvil@redhat.com>
4284 * exec.c (section_table_available_memory): Change `len' parameter
4286 * exec.h (section_table_available_memory): Ditto.
4287 * value.h (read_value_memory): Rename the `offset' parameter to
4290 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4291 Jan Kratochvil <jan.kratochvil@redhat.com>
4293 * memrange.c (compare_mem_ranges): Mention sort order in
4295 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4296 * tracepoint.c (traceframe_available_memory): Extend comment to
4297 mention what happens to RESULT when the target does not support
4300 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4301 Jan Kratochvil <jan.kratochvil@redhat.com>
4303 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4306 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4308 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4309 No longer handle NULL values.
4311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4313 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4314 * value.c: Include "exceptions.h".
4315 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4317 * cp-abi.c: Include gdb_assert.h.
4318 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4319 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4321 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4322 parameters. No longer returns -1 on error.
4323 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4325 * cp-valprint.c: Include exceptions.h.
4326 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4327 the baseclass_offset. Handle unavailable base classes. Use
4328 val_print_invalid_address.
4329 * p-valprint.c: Include exceptions.h.
4330 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4331 when fetching the baseclass_offset. No longer expect
4332 baseclass_offset returning -1. Handle unavailable base classes.
4333 Use val_print_invalid_address.
4334 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4335 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4336 `embedded_offset' and `val' parameters. Adjust.
4337 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4338 parameter, and change its type to gdb_byte pointer. Add
4339 `embedded_offset' and `val' parameters. Adjust. No longer expect
4340 baseclass_offset returning -1.
4341 (value_dynamic_cast): Use value_contents_for_printing rather than
4342 value_contents. Adjust.
4343 (search_struct_field): No longer expect baseclass_offset returning
4345 (search_struct_method): If reading memory from the target is
4346 necessary, wrap it in a new value to pass to baseclass_offset. No
4347 longer expect baseclass_offset returning -1.
4348 (find_method_list): No longer expect baseclass_offset returning
4349 -1. Use value_contents_for_printing rather than value_contents.
4350 * valprint.c (val_print_invalid_address): New function.
4351 * valprint.h (val_print_invalid_address): Declare.
4352 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4353 and `val' parameters. No longer expect baseclass_offset returning
4355 * gnu-v2-abi.c: Include "exceptions.h".
4356 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4357 parameters. Handle unavailable memory. Recurse through
4358 gnuv2_baseclass_offset directly, rather than through
4359 baseclass_offset. No longer returns -1 on not found, instead
4361 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4362 `val' parameters. Adjust.
4364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4366 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4367 almost but not quite adjacent.
4369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4371 * value.h (value_entirely_available): Declare.
4372 * value.c (value_entirely_available): New function.
4373 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4374 real type if the pointer is unavailable.
4376 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4378 * valops.c (value_repeat): Use read_value_memory instead of
4381 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4383 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4384 * value.c (value_contents_copy_raw, value_contents_copy): New
4386 (value_primitive_field): Use value_contents_copy_raw instead of
4388 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4390 (value_array, value_slice): Ditto.
4391 * valarith.c (value_subscripted_rvalue): Use
4392 value_contents_copy_raw instead of memcpy.
4394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4396 <unavailable> references.
4398 * valops.c (get_value_at): Use value_from_contents_and_address,
4399 avoiding read_memory.
4401 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4403 * c-valprint.c (c_val_print): Print a string with unavailable
4404 contents as an array.
4406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4408 * value.h (unpack_bits_as_long): Delete declaration.
4409 (unpack_value_bits_as_long): Declare.
4410 (unpack_value_field_as_long): Declare.
4411 (value_field_bitfield): Declare.
4412 * value.c (unpack_bits_as_long): Rename to...
4413 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4414 value parameters. Return the extracted result in a new output
4415 parameter. If the value contents are unavailable, return false,
4416 otherwise return true.
4417 (unpack_value_bits_as_long): New.
4418 (unpack_field_as_long): Rename to...
4419 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4420 Add embedded_offset and value parameters. Return the extracted
4421 result in a new output parameter. If the value contents are
4422 unavailable, return false, otherwise return true.
4423 (unpack_value_field_as_long): New.
4424 (unpack_field_as_long_1): New.
4425 (unpack_field_as_long): Reimplement as wrapper around
4426 unpack_value_field_as_long_1.
4427 (value_field_bitfield): New function.
4428 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4429 unpack_value_bits_as_long. Mark the value as unavailable, if it
4431 * jv-valprint.c (java_print_value_fields): Use
4432 value_field_bitfield.
4433 * p-valprint.c (pascal_object_print_value_fields): Use
4434 value_field_bitfield.
4435 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4439 * value.c (get_internalvar_integer): Also return the int value of
4440 TYPE_CODE_INT INTERNALVAR_VALUE values.
4441 (set_internalvar): Don't special case TYPE_CODE_INT.
4443 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4445 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4446 INTERNALVAR_POINTER.
4448 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4449 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4450 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4454 * value.h (value_available_contents_eq): Declare.
4455 * value.c (find_first_range_overlap): New function.
4456 (value_available_contents_eq): New function.
4457 * valprint.c (val_print_array_elements): Use
4458 value_available_contents_eq.
4459 * ada-valprint.c (val_print_packed_array_elements): Use
4460 value_available_contents_eq.
4461 * jv-valprint.c (java_value_print): Use
4462 value_available_contents_eq.
4464 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4466 * target.c (target_read_live_memory): New function.
4467 (memory_xfer_live_readonly_partial): New.
4468 (memory_xfer_partial): If reading from a traceframe, fallback to
4469 reading unavailable read-only memory from read-only regions of
4471 * tracepoint.c (disconnect_tracing): Adjust.
4472 (set_current_traceframe): New, factored out from
4473 set_traceframe_number.
4474 (set_traceframe_number): Reimplement to only change the traceframe
4475 number on the GDB side.
4476 (do_restore_current_traceframe_cleanup): Adjust.
4477 (make_cleanup_restore_traceframe_number): New.
4478 (cur_traceframe_number): New global.
4479 (tfile_open): Set cur_traceframe_number to no traceframe.
4480 (set_tfile_traceframe): New function.
4481 (tfile_trace_find): If looking up a traceframe using any method
4482 other than by number, make sure the current tfile traceframe
4483 matches gdb's current traceframe. Update the current tfile
4484 traceframe if the lookup succeeded.
4485 (tfile_fetch_registers, tfile_xfer_partial)
4486 (tfile_get_trace_state_variable_value): Make sure the remote
4487 traceframe matches gdb's current traceframe.
4488 * remote.c (remote_traceframe_number): New global.
4489 (remote_open_1): Set it to -1.
4490 (set_remote_traceframe): New function.
4491 (remote_fetch_registers, remote_store_registers)
4492 (remote_xfer_memory, remote_xfer_partial)
4493 (remote_get_trace_state_variable_value): Make sure the remote
4494 traceframe matches gdb's current traceframe.
4495 (remote_trace_find): If looking up a traceframe using any method
4496 other than by number, make sure the current remote traceframe
4497 matches gdb's current traceframe. Update the current remote
4498 traceframe if the lookup succeeded.
4499 * infrun.c (fetch_inferior_event): Adjust.
4500 * tracepoint.h (set_current_traceframe): Declare.
4501 (get_traceframe_number, set_traceframe_number): Add describing
4504 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4506 Mark pieces of values as unavailable if the corresponding memory
4509 * valops.c: Include tracepoint.h.
4510 (value_fetch_lazy): Use read_value_memory.
4511 (read_value_memory): New.
4512 * value.h (read_value_memory): Declare.
4513 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4514 * exec.c (section_table_available_memory): New function.
4515 * exec.h (section_table_available_memory): Declare.
4517 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4519 * Makefile.in (SFILES): Add memrange.c.
4520 (HFILES_NO_SRCDIR): Add memrange.h.
4521 (COMMON_OBS): Add memrange.o.
4522 * memrange.c: New file.
4523 * memrange.h: New file.
4524 * tracepoint.c: Include memrange.h.
4525 (struct mem_range): Delete.
4526 (mem_range_s): Delete.
4527 (traceframe_available_memory): New function.
4528 * tracepoint.h (traceframe_available_memory): Declare.
4530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4532 * target.h (struct traceframe_info): Forward declare.
4533 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4534 (struct target_ops) <to_traceframe_info>: New field.
4535 (target_traceframe_info): New.
4536 * target.c (update_current_target): Inherit and default
4538 * remote.c (PACKET_qXfer_traceframe_info): New.
4539 (remote_protocol_features): Register qXfer:traceframe-info:read.
4540 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4541 (remote_traceframe_info): New.
4542 (init_remote_ops): Install it.
4543 (_initialize_remote): Install "set/show remote traceframe-info"
4545 * tracepoint.h (parse_traceframe_info): Declare.
4546 * tracepoint.c (struct mem_range): New.
4547 (mem_range_s): New typedef.
4548 (struct traceframe_info): New.
4549 (traceframe_info): New global.
4550 (free_traceframe_info): New function.
4551 (clear_traceframe_info): New function.
4552 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4554 (build_traceframe_info): New function.
4555 (tfile_traceframe_info): New function.
4556 (init_tfile_ops): Install tfile_traceframe_info.
4557 (traceframe_info_start_memory, free_result): New functions.
4558 (memory_attributes, traceframe_info_elements): New globals.
4559 (parse_traceframe_info, get_traceframe_info): New functions.
4560 * features/traceframe-info.dtd: New file.
4561 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4563 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4565 Base support for <unavailable> value contents.
4567 * value.h (value_bytes_available): Declare.
4568 (mark_value_bytes_unavailable): Declare.
4569 * value.c (struct range): New struct.
4570 (range_s): New typedef.
4571 (ranges_overlap): New function.
4572 (range_lessthan): New function.
4573 (ranges_contain_p): New function.
4574 (struct value) <unavailable>: New field.
4575 (value_bytes_available): New function.
4576 (mark_value_bytes_unavailable): New function.
4577 (require_not_optimized_out): Constify parameter.
4578 (require_available): New function.
4579 (value_contents_all, value_contents): Require all bytes be
4581 (value_free): Free `unavailable'.
4582 (value_copy): Copy `unavailable'.
4583 * valprint.h (val_print_unavailable): Declare.
4584 * valprint.c (valprint_check_validity): Rename `offset' parameter
4585 to `embedded_offset'. If printing a scalar, check whether the
4586 value chunk is available.
4587 (val_print_unavailable): New.
4588 (val_print_scalar_formatted): Check whether the value is
4590 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4591 pretty-printing unavailable values.
4593 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4595 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4596 * c-typeprint.c (c_type_print_args): Update the function comment. New
4597 variable param_type, initialize it. Remove const/volatile qualifiers
4598 for language_cplus and !show_artificial. Use param_type.
4600 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4602 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4603 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4604 * symtab.h (struct symtab) <next>: Comment extension.
4606 2011-02-12 Yao Qi <yao@codesourcery.com>
4608 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4610 2011-02-11 Yao Qi <yao@codesourcery.com>
4612 * common/Makefile.in: Add copyright header.
4614 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4616 * infrun.c (proceed): Move switching out and in of tfind mode from
4618 (fetch_inferior_event): ... to here.
4620 2011-02-11 Yao Qi <yao@codesourcery.com>
4622 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4624 * configure.ac: Add common to sub dir.
4625 * configure: Regenerate.
4627 2011-02-11 Yao Qi <yao@codesourcery.com>
4631 * common/Makefile.in: New.
4632 * common/configure.ac: New.
4633 * common/aclocal.m4: New.
4634 * common/configure: Generate.
4636 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4638 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4639 side of the parenthesis.
4642 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4643 * vec.h (VEC_block_remove): Fix comment.
4645 2011-02-08 Michael Snyder <msnyder@vmware.com>
4647 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4649 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4651 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4652 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4655 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4658 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4660 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4661 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4663 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4665 * dwarf2read.c (read_subroutine_type): Set special calling
4666 convention flag for functions compiled by IBM XL C for OpenCL.
4667 * ppc-sysv-tdep.c: Include "dwarf2.h"
4668 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4670 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4671 IBM OpenCL vector types calling convention.
4672 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4673 (ppc_sysv_abi_broken_return_value): Likewise.
4674 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4675 types calling convention.
4676 (ppc64_sysv_abi_return_value): Likewise.
4677 * spu-tdep.c: Include "dwarf2.h"
4678 (spu_return_value): Implement IBM OpenCL vector types calling
4681 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4683 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4684 correct ABI for AltiVec vector arguments.
4686 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4688 * valprint.c (val_print): Extend comment.
4689 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4690 interface explanation to val_print.
4691 (ada_val_print_array): Adjust comment to current interface.
4692 (print_field_values): Adjust comment to current interface.
4693 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4694 explanation to val_print.
4695 * f-valprint.c (f_val_print): Ditto.
4696 * jv-valprint.c (java_val_print): Ditto.
4697 * m2-valprint.c (m2_val_print): Ditto.
4698 * p-valprint.c (pascal_val_print): Ditto.
4700 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4702 * breakpoint.c (parse_breakpoint_sals): Fix description.
4704 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4705 Oguz Kayral <oguzkayral@gmail.com>
4707 * python/py-inferior.c (python_on_normal_stop): New function.
4708 (python_on_resume): New function.
4709 (python_inferior_exit): New function.
4710 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4711 inferior_exit observers.
4712 * python/py-evtregistry.c: New file.
4713 * python/py-threadevent.c : New file.
4714 * python/py-event.c: New file.
4715 * python/py-evts.c: New file.
4716 * python/py-continueevent.c: New file.
4717 * python/py-bpevent.c: New file.
4718 * python/py-signalevent.c: New file.
4719 * python/py-exetiedevent.c: New file.
4720 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4721 Move struct breakpoint_object from here...
4722 * python/python-internal.h: ... to here.
4723 * python/py-event.h: New file.
4724 * python/py-events.h: New file.
4725 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4726 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4727 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4728 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4729 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4730 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4731 Add build rules for all the above.
4733 2011-02-04 Tom Tromey <tromey@redhat.com>
4735 * dwarf2read.c (dwarf2_section_empty_p): New function.
4736 (dwarf2_read_section): Use dwarf2_section_empty_p.
4737 (dwarf2_section_size): New function.
4738 (dwarf2_get_section_info): Unconditionally read section.
4739 (dwarf2_read_index): Use dwarf2_section_empty_p.
4740 (partial_read_comp_unit_head): Use dwarf2_section_size.
4741 (dwarf2_symbol_mark_computed): Likewise.
4743 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4745 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4747 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4749 * mips-linux-tdep.c: Include xml-syscall.h.
4750 (mips_linux_get_syscall_number): New function.
4751 (mips_linux_init_abi): Add calls to
4752 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4753 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4754 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4755 * syscalls/mips-n32-linux.xml: New file.
4756 * syscalls/mips-n64-linux.xml: New file.
4757 * syscalls/mips-o32-linux.xml: New file.
4759 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4761 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4762 Complain about inverted range entries.
4763 (dwarf2_record_block_ranges): Likewise.
4765 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4768 * breakpoint.c (update_watchpoint): Fix name of the
4769 update_global_location_list function.
4770 (print_one_breakpoint): Fix typo.
4771 (_initialize_breakpoint): Remove extra space in hbreak help
4773 * breakpoint.h (struct bp_location) <length>: Fix field
4776 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4778 * regcache.c (registers_changed_ptid): Don't explictly always
4779 clear `current_regcache'. Only clear current_thread_ptid and
4780 current_thread_arch when PTID matches. Only reinit the frame
4781 cache if PTID matches the current inferior_ptid. Move alloca(0)
4783 (registers_changed): ... here.
4785 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4787 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4788 starts with __stack_chk_guard as stack guard symbol.
4790 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4792 * disasm.c (compare_lines): Handle the end of sequence markers
4793 within the line table to better support disassembling over
4794 compilation unit boundaries.
4796 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4798 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4799 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4800 implementation even if no symbols are available.
4801 (thumb_analyze_prologue): Update call to skip_prologue_function.
4802 (arm_analyze_prologue): Likewise.
4804 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4806 * arm-tdep.c: Include "observer.h".
4807 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4808 (arm_exidx_data_key): New static variable.
4809 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4810 (struct arm_exidx_data): Likewise.
4811 (arm_exidx_data_free): New function.
4812 (arm_compare_exidx_entries): Likewise.
4813 (arm_obj_section_from_vma): Likewise.
4814 (arm_exidx_new_objfile): Likewise.
4815 (arm_find_exidx_entry): Likewise.
4816 (arm_exidx_fill_cache): Likewise.
4817 (arm_exidx_unwind_sniffer): Likewise.
4818 (arm_exidx_unwind): New global variable.
4819 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4820 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4821 observer. Register arm_exidx_data_key as objfile data.
4823 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4825 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4826 due to accessing uninitialized variable. Fix indentation.
4828 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4830 * c-valprint.c (c_value_print): When doing virtual base pointer
4831 adjustment, create a new value with adjusted contents rather than
4832 changing the contents of the value being printed (and getting it
4835 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4837 * xml-support.c (xml_find_attribute): New.
4838 (xinclude_start_include): Use it.
4839 * xml-support.h (xml_find_attribute): Declare.
4840 * memory-map.c (memory_map_start_memory)
4841 (memory_map_start_property): Use xml_find_attribute.
4842 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4844 * remote.c (start_thread): Use xml_find_attribute.
4845 * solib-target.c (library_list_start_segment)
4846 (library_list_start_section, library_list_start_library)
4847 (library_list_start_list): Use xml_find_attribute.
4848 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4849 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4850 (tdesc_start_field): Use xml_find_attribute.
4852 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4854 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4855 (BUILD_OCL_VTYPES): Update.
4857 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4859 * configure.ac: Work around non-GNU sed limitation when computing
4860 python version number.
4861 * configure: Regenerate.
4863 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 Fix debug printing of TYPE_INSTANCE.
4866 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4867 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4869 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4871 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4872 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4873 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4874 * ada-operator.inc: Rename the file to ...
4875 * ada-operator.def: ... here, wrap all the entries by macro OP.
4876 * expprint.c (op_name_standard): Remove all the entries. Include
4877 "std-operator.def" instead.
4878 * expression.h (enum exp_opcode): Include "std-operator.def" and
4879 "ada-operator.def". Move all the entries ...
4880 * std-operator.def: ... here, wrap all the entries by macro OP.
4882 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4884 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4885 * breakpoint.c (remove_jit_event_breakpoints): New function.
4886 * jit.c (jit_descriptor_addr): Delete.
4887 (registering_code): Delete.
4888 (clear_int): Delete.
4889 (jit_inferior_data): New variable.
4890 (struct jit_inferior_data): New type.
4891 (get_jit_inferior_data): New function.
4892 (jit_inferior_data_cleanup): New function.
4893 (jit_read_descriptor): Adjust.
4894 (jit_register_code): Adjust.
4895 (jit_breakpoint_re_set_internal): New function; move code here ...
4896 (jit_inferior_init): ... from here.
4897 (jit_breakpoint_re_set): Adjust.
4898 (jit_reset_inferior_data_and_breakpoints): New function.
4899 (jit_inferior_created_observer): Adjust.
4900 (jit_inferior_exit_hook): Adjust.
4901 (jit_executable_changed_observer): New function.
4902 (jit_event_handler): Adjust.
4903 (_initialize_jit): Adjust.
4905 2011-01-31 Michael Snyder <msnyder@vmware.com>
4907 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4910 2011-01-31 Tom Tromey <tromey@redhat.com>
4913 * python/python.c (execute_gdb_command): Call
4914 prevent_dont_repeat.
4915 * top.c (suppress_dont_repeat): New global.
4916 (dont_repeat): Use it.
4917 (prevent_dont_repeat): New function.
4918 * command.h (prevent_dont_repeat): Declare.
4920 2011-01-31 Tom Tromey <tromey@redhat.com>
4922 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4923 * python/py-breakpoint.c (bppy_set_silent): Use
4924 breakpoint_set_silent.
4925 (bppy_set_thread): Use breakpoint_set_thread.
4926 (bppy_set_task): Use breakpoint_set_task.
4927 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4928 (breakpoint_set_task): Declare.
4929 (make_breakpoint_silent): Remove.
4930 * breakpoint.c (breakpoint_set_silent): New function.
4931 (breakpoint_set_thread): Likewise.
4932 (breakpoint_set_task): Likewise.
4933 (make_breakpoint_silent): Remove.
4935 2011-01-31 Tom Tromey <tromey@redhat.com>
4937 * breakpoint.h (user_breakpoint_p): Declare.
4938 * breakpoint.c (user_breakpoint_p): New function.
4939 (breakpoint_1): Use it.
4940 (save_breakpoints): Likewise.
4942 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4944 * configure.ac: Add handling of Python distribution on Windows.
4945 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4946 sysconfig variables are not defined, then do not use them.
4947 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4948 instead. On Windows, return all paths using forward-slashes
4949 rather than backslashes.
4951 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4953 * configure.ac: Remove fallback behavior for building
4954 against Python. Remove tweaking of Python include path.
4955 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4956 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4957 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4958 Always restore CPPFLAGS and LIBS after linking test.
4959 * configure: Regenerated.
4960 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4961 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4962 * python/python-internal.h: Adjust includes of Python .h files.
4964 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4966 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4969 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4971 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4974 2011-01-31 Yao Qi <yao@codesourcery.com>
4976 * arm-linux-nat.c: Update calls to regcache_register_status
4977 instead of regcache_valid_p.
4978 * aix-thread.c: Likewise.
4979 * i386gnu-nat.c: Likewise.
4981 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4984 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4985 touching TYPE_FIELD_ARTIFICIAL.
4987 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4989 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4992 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4994 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4995 selected, don't try iterating over the traceframe's blocks.
4996 (tfile_has_stack): If there's no traceframe selected, then there's
4998 (tfile_has_registers): If there's no traceframe selected, then
4999 there's no registers.
5001 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5003 * target.c (memory_xfer_partial): No need to restore shadows if we
5004 haven't read anything.
5006 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5008 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5009 and val_print_scalar_formatted.
5011 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5013 * tracepoint.c (tfile_read): New.
5014 (tfile_open): Use it.
5015 (tfile_get_traceframe_address): Use it.
5016 (tfile_trace_find): Use it.
5017 (walk_blocks_callback_func): New typedef.
5018 (match_blocktype): New function.
5019 (traceframe_walk_blocks): New function.
5020 (traceframe_find_block_type): New function.
5021 (tfile_fetch_registers, tfile_xfer_partial)
5022 (tfile_get_trace_state_variable_value): Use
5023 traceframe_find_block_type and tfile_read.
5025 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5027 * remote-mips.c: Add internationalization mark ups. Remove
5028 trailing \n from already marked up strings.
5030 2011-01-26 Tom Tromey <tromey@redhat.com>
5032 * python/py-prettyprint.c (print_string_repr): Clear
5033 'addressprint' option when calling val_print_string.
5034 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5035 option when calling val_print_string.
5037 2011-01-26 Tom Tromey <tromey@redhat.com>
5039 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5041 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5043 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5044 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5045 (gdb_py_long_as_ulongest): New defines.
5046 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5047 (gdb_py_int_as_long): Declare.
5048 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5049 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5050 (valpy_long): Add comment.
5051 * python/py-utils.c (get_addr_from_python): Use
5052 gdb_py_long_as_ulongest. Handle overflow properly.
5053 (gdb_py_object_from_longest): New function.
5054 (gdb_py_object_from_ulongest): Likewise.
5055 (gdb_py_int_as_long): Likewise.
5056 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5057 * python/py-symtab.c (salpy_get_pc): Use
5058 gdb_py_long_from_ulongest.
5059 (salpy_get_line): Use PyInt_FromLong.
5060 * python/py-param.c (set_parameter_value): Use
5062 * python/py-lazy-string.c (stpy_get_address): Use
5063 gdb_py_long_from_ulongest.
5064 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5065 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5066 * python/py-breakpoint.c (bppy_set_thread): Use
5068 (bppy_set_task): Likewise.
5069 (bppy_set_ignore_count): Likewise.
5070 (bppy_set_hit_count): Likewise.
5071 * python/py-block.c (blpy_get_start): Use
5072 gdb_py_object_from_ulongest.
5073 (blpy_get_end): Likewise.
5074 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5076 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5079 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5080 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5081 equality test for objfile, initialize addr_low if needed.
5083 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5085 * tui/tui-regs.c (tui_register_format): Remove dead code.
5087 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5089 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5090 instead of print_scalar_formatted.
5091 (print_scalar_formatted): Don't handle 's' format strings here,
5092 and add an assertion that we never see such format here.
5093 * valprint.h (val_print_scalar_formatted): Declare.
5094 * valprint.c (val_print_scalar_formatted): New.
5095 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5096 instead of print_scalar_formatted.
5097 * jv-valprint.c (java_val_print): Ditto.
5098 * p-valprint.c (pascal_val_print): Ditto.
5099 * ada-valprint.c (ada_val_print_1): Ditto.
5100 * f-valprint.c (f_val_print): Ditto.
5101 * infcmd.c (registers_info): Ditto.
5102 * m2-valprint.c (m2_val_print): Ditto.
5104 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5106 * m2-valprint.c (print_unbounded_array): Pass
5107 value_contents_for_printing rather than value_contents, to
5108 m2_print_array_contents. Also pass in the value.
5110 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5112 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5113 (save_gdb_index_command): Switch to .gdb_index version 4.
5115 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5117 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5118 than frame_register, and always pass a valid value to val_print.
5120 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5122 Centralize printing "<optimized out>".
5124 * valprint.h (val_print_optimized_out): Declare.
5125 * cp-valprint.c (cp_print_value_fields): Use
5126 val_print_optimized_out.
5127 * jv-valprint.c (java_print_value_fields): Ditto.
5128 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5129 * printcmd.c (print_formatted): Ditto.
5130 * valprint.c (valprint_check_validity): Ditto.
5131 (value_check_printable): Ditto.
5132 (val_print_optimized_out): New.
5134 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5136 * infcmd.c (default_print_registers_info): Allocate values so to
5137 never pass a NULL value to val_print.
5139 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5141 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5142 boolean. Make sure to always pass a value that matches the
5143 contents buffer to callees. Preserve `address' for following
5145 * value.c (value_contents_for_printing_const): New.
5146 (value_address): Constify value argument.
5147 * value.h (value_contents_for_printing_const): Declare.
5148 (value_address): Constify value argument.
5150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5152 * regcache.c (struct regcache_descr): Rename
5153 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5154 and sizeof_cooked_register_valid_p to
5155 sizeof_cooked_register_status.
5156 (init_regcache_descr): Adjust.
5157 (struct regcache): Rename register_valid_p field to
5159 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5160 (do_cooked_read): Adjust.
5161 (regcache_valid_p): Rename to ...
5162 (regcache_register_status): ... this. Adjust.
5163 (regcache_invalidate): Adjust.
5164 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5166 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5167 as unavailable, not valid.
5168 (regcache_dump): Adjust.
5169 * regcache.h (enum register_status): New.
5170 (regcache_register_status): Declare.
5171 (regcache_invalidate): Delete declaration.
5172 * corelow.c (get_core_registers): Adjust.
5173 * tracepoint.c (tfile_fetch_registers): Adjust.
5174 * trad-frame.c (REG_VALUE): Rename to ...
5175 (TF_REG_VALUE): ... this.
5176 (REG_UNKNOWN): Rename to ...
5177 (TF_REG_UNKNOWN): ... this.
5178 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5179 * mi/mi-main.c (register_changed_p): Adjust.
5181 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5183 * regcache.c (struct regcache_descr): Remove outdated comment.
5184 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5186 (regcache_xmalloc): Rename to ...
5187 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5188 Allocate the regcache type accordingly.
5189 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5190 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5191 cooked registers, not raw.
5192 (regcache_dup_no_passthrough): Delete.
5193 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5194 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5195 mention obsolete write_register_bytes.
5196 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5198 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5200 Stop remote_read_bytes from handling partial reads itself.
5202 * remote-fileio.c: Include target.h.
5203 (remote_fileio_write_bytes): Delete.
5204 (remote_fileio_func_open, remote_fileio_func_write)
5205 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5207 (remote_fileio_func_stat): Use target_read_memory and
5208 target_write_memory.
5209 (remote_fileio_func_gettimeofday): Use target_write_memory.
5210 (remote_fileio_func_system): Use target_read_memory.
5211 * remote.c (remote_write_bytes): Make it static.
5212 (remote_read_bytes): Don't handle partial reads here.
5213 * remote.h (remote_read_bytes): Delete declaration.
5215 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5217 Simplify XML parsing a bit.
5219 * xml-support.h (gdb_xml_parse_quick): Declare.
5220 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5221 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5223 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5224 gdb_xml_create_parser_and_cleanup_1.
5225 (gdb_xml_parse_quick): New.
5226 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5227 * osdata.c (osdata_parse): Ditto.
5228 * remote.c (remote_threads_info): Ditto.
5229 * solib-target.c (solib_target_parse_libraries): Ditto.
5230 * xml-syscall.c (syscall_parse_xml): Ditto.
5231 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5233 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5235 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5236 with remote-mips.o added to gdb_target_obs.
5237 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5239 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5241 * ada-valprint.c (val_print_packed_array_elements): Pass the
5242 correct struct value to val_print.
5243 (ada_val_print_1): Ditto.
5245 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5247 Don't lose embedded_offset in printing routines throughout.
5249 * valprint.h (val_print_array_elements): Change prototype.
5250 * valprint.c (val_print_array_elements): Add `embedded_offset'
5251 parameter, and adjust to pass it down to val_print, while passing
5252 `valaddr' or `address' unmodified. Take embedded_offset into
5253 account when checking repetitions.
5254 * c-valprint.c (c_val_print): Pass embedded_offset to
5255 val_print_array_elements instead of adjusting `valaddr' and
5257 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5258 embedded_offset to val_print_array_elements instead of adjusting
5260 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5261 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5262 val_print_array_elements and pascal_object_print_value_fields
5263 instead of adjusting `valaddr'.
5264 (pascal_object_print_value_fields): Add `offset' parameter, and
5266 (pascal_object_print_value): Add `offset' parameter, and adjust to
5268 (pascal_object_print_static_field): Use
5269 value_contents_for_printing/value_embedded_offset, rather than
5271 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5272 parameter, and adjust to use it. Use
5273 value_contents_for_printing/value_embedded_offset, rather than
5275 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5276 (ada_val_print_array): Add `offset' parameter, and adjust to use
5278 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5279 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5280 Instead work with offsets. Use
5281 value_contents_for_printing/value_embedded_offset, rather than
5282 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5283 and use value_from_pointer to extract a target pointer, rather
5284 than value_from_longest.
5285 (print_variant_part): Add `offset' parameter. Replace
5286 `outer_valaddr' parameter by a new `outer_offset' parameter.
5287 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5288 (ada_value_print): Use
5289 value_contents_for_printing/value_embedded_offset, rather than
5291 (print_record): Add `offset' parameter, and adjust to pass it
5293 (print_field_values): Add `offset' parameter. Replace
5294 `outer_valaddr' parameter by a new `outer_offset' parameter.
5295 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5296 Use value_contents_for_printing/value_embedded_offset, rather than
5298 * d-valprint.c (dynamic_array_type): Use
5299 value_contents_for_printing/value_embedded_offset, rather than
5301 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5302 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5303 (java_print_value_fields): Take `offset' into account. Don't
5304 re-adjust `valaddr'. Instead pass down adjusted offsets.
5305 (java_val_print): Take `embedded_offset' into account. Pass it to
5306 java_print_value_fields.
5307 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5308 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5309 down adjusted offsets.
5310 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5311 (f_val_print): Take `embedded_offset' into account.
5313 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5315 * inflow.c: Include "gdbcmd.h".
5316 (interactive_mode): New static global, moved here from top.c.
5317 (show_interactive_mode): New function, moved here from top.c.
5318 use gdb_has_a_terminal instead of input_from_terminal_p to
5319 determine the current mode.
5320 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5322 (_initialize_inflow): Add the "set/show interactive-mode"
5323 commands. Moved here from top.c, after having adjusted slightly
5325 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5327 (input_from_terminal_p): Remove handling of "interactive-mode"
5328 setting, moved to infow.c.
5329 (init_main): Remove creation of the "set/show interactive-mode"
5330 commands, moved to inflow.c.
5332 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5334 * NEWS: Add entry for native ia64-hpux support.
5336 2011-01-19 Tom Tromey <tromey@redhat.com>
5339 * thread.c (free_thread): Free 'name'.
5340 (print_thread_info): Emit thread name. Change CLI output.
5341 (thread_name_command): New function.
5342 (do_captured_thread_select): Emit newline.
5343 (_initialize_thread): Register 'thread name' command.
5344 * target.h (struct target_ops) <to_thread_name>: New field.
5345 (target_thread_name): New macro.
5346 * target.c (update_current_target): Handle to_thread_name.
5347 * python/py-infthread.c (thpy_get_name): New function.
5348 (thpy_set_name): Likewise.
5349 (thread_object_getset): Add "name".
5350 * linux-nat.c (linux_nat_thread_name): New function.
5351 (linux_nat_add_target): Set to_thread_name.
5352 * gdbthread.h (struct thread_info) <name>: New field.
5354 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5356 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5357 (ada_val_print_1): Likewise.
5359 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5361 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5362 upper limit address is not greater than the function end address
5363 when the upper limit could not be computed using the debugging
5366 2011-01-17 Tom Tromey <tromey@redhat.com>
5368 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5370 * utils.c: Include gdb_regex.h.
5371 (do_regfree_cleanup): New function.
5372 (make_regfree_cleanup): Likewise.
5373 (get_regcomp_error): Likewise.
5374 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5376 2011-01-17 Tom Tromey <tromey@redhat.com>
5378 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5381 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5383 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5384 for internal variables.
5385 (last_was_structop): New static variable.
5386 (COMPLETE): New token.
5387 (field_exp): New rule to group all '.' suffix handling.
5388 Add mark_struct_expression calls when approriate to be able
5389 to correctly find fields for completion.
5390 (yylex): Adapt to handle field completion and set INTVAR when
5393 2011-01-14 Yao Qi <yao@codesourcery.com>
5395 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5396 save_reggroup, restore_reggroup and all_reggroup.
5398 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5400 * ada-valprint. (ada_printchar): Use the correct type length
5401 in call to ada_emit_char.
5402 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5404 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5406 * solib-som.h (hpux_major_release): Declare variable here.
5407 * solib-som.c: Remove <sys/utsname.h> header.
5408 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5409 (hpux_major_release): Make global, change default value to
5410 DEFAULT_HPUX_MAJOR_RELEASE.
5411 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5412 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5413 Add "solib-som.h" header.
5414 (set_hpux_major_release): New function.
5415 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5417 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5419 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5421 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5423 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5424 new-line at end of warning message.
5425 (ia64_hpux_store_register): Remove trailing new-line at end of
5427 * ia64-hpux-tdep.c: Rephrase comment.
5428 * solib-ia64-hpux.c (struct dld_info): Change type of field
5429 dld_flags from "long long" to ULONGEST.
5431 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5433 * target.h (deprecated_child_ops): Delete declaration.
5434 * target.c (deprecated_child_ops): Delete definition.
5436 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5438 * Makefile.in (hpux-thread.o): Delete rule.
5439 * configure.ac: Don't check for HPUX DCE threads support.
5440 * configure, config.in: Regenerate.
5441 * hppa-hpux-nat.c (child_suppress_run): Delete.
5442 (hppa_hpux_child_can_run): Delete.
5443 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5444 * hpux-thread.c: Delete.
5446 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5448 * hpux-thread.c (hpux_pid_to_str): Delete.
5450 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5452 * ada-valprint.c (ada_emit_char): Remove strange code.
5453 Check that c is <= UCHAR_MAX before passing it to isascii.
5454 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5456 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5458 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5459 to the case where instream is stdin.
5461 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5463 * ia64-tdep.h (struct regcache): Forward declare.
5464 (struct ia64_infcall_ops): New struct type.
5465 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5467 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5468 Renames ia64_find_global_pointer.
5469 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5470 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5471 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5473 (ia64_infcall_ops): New static global constant.
5474 (ia64_gdbarch_init): Set tdep->infcall_ops.
5475 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5476 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5477 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5478 (ia64_hpux_dummy_code): New static global constant.
5479 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5480 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5481 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5483 (ia64_hpux_infcall_ops): New static global constant.
5484 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5485 for inferior function calls to work properly on ia64-hpux.
5487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5489 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5490 * ia64-tdep.h (struct frame_info): forward declaration.
5491 (struct gdbarch_tdep): Add field size_of_register_frame.
5492 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5493 to determine the size of the register frame.
5494 (ia64_size_of_register_frame): New function.
5495 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5496 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5497 (IA64_HPUX_UREG_REASON): New macro.
5498 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5500 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5501 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5502 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5505 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5507 Add support for ia64-hpux.
5508 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5509 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5511 * configure.host: Add handling for ia64-hpux hosts. Add associated
5513 * configure.tgt: Add handling for ia64-hpux targets.
5514 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5515 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5516 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5518 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5520 [ttrace] Compute thread list immediately after attach.
5521 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5523 (inf_ttrace_attach): Use it.
5525 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5527 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5528 if we could not determine the frame's function address. Instead,
5529 use the frame's PC, and then continue.
5531 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5533 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5534 not already defined.
5536 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5538 * ia64-tdep.c (ia64_struct_type_p): New function.
5539 (ia64_extract_return_value): Handle integral values that are
5540 less than 8 bytes long.
5541 (ia64_push_dummy_call): Likewise.
5543 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5545 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5546 floatformat_ia64_ext.
5547 (floatformat_ia64_ext_big): New static const.
5548 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5550 2011-01-12 Tom Tromey <tromey@redhat.com>
5552 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5554 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5555 (mi_cmd_thread_list_ids): Likewise.
5556 (mi_cmd_data_list_changed_registers): Likewise.
5557 (mi_cmd_data_list_register_values): Likewise.
5558 (mi_cmd_data_write_register_values): Likewise.
5559 (mi_cmd_data_evaluate_expression): Likewise.
5560 (mi_cmd_data_read_memory): Likewise.
5561 (mi_cmd_data_read_memory_bytes): Likewise.
5562 (mi_cmd_data_write_memory): Likewise.
5563 (mi_cmd_enable_timings): Likewise.
5564 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5565 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5566 (mi_cmd_var_delete): Likewise.
5567 (mi_cmd_var_set_format): Likewise.
5568 (mi_cmd_var_show_format): Likewise.
5569 (mi_cmd_var_info_num_children): Likewise.
5570 (mi_cmd_var_list_children): Likewise.
5571 (mi_cmd_var_info_type): Likewise.
5572 (mi_cmd_var_info_expression): Likewise.
5573 (mi_cmd_var_show_attributes): Likewise.
5574 (mi_cmd_var_assign): Likewise.
5575 (mi_cmd_var_update): Likewise.
5576 (mi_cmd_enable_pretty_printing): Likewise.
5577 (mi_cmd_var_set_update_range): Likewise.
5578 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5580 (mi_cmd_target_file_put): Likewise.
5581 (mi_cmd_target_file_delete): Likewise.
5582 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5584 (mi_cmd_stack_info_depth): Likewise.
5585 (mi_cmd_stack_list_locals): Likewise.
5586 (mi_cmd_stack_list_args): Likewise.
5587 (mi_cmd_stack_select_frame): Likewise.
5588 (mi_cmd_stack_select_frame): Likewise.
5589 (mi_cmd_stack_info_frame): Likewise.
5590 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5592 (mi_cmd_file_list_exec_source_files): Likewise.
5593 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5594 (mi_cmd_env_cd): Likewise.
5595 (mi_cmd_env_path): Likewise.
5596 (mi_cmd_env_dir): Likewise.
5597 (mi_cmd_inferior_tty_show): Likewise.
5598 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5599 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5600 (mi_cmd_break_watch): Likewise.
5602 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5604 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5605 (ppc_linux_insert_hw_breakpoint): Likewise.
5606 (ppc_linux_remove_hw_breakpoint): Likewise.
5607 (ppc_linux_insert_watchpoint): Likewise.
5609 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5610 Jan Kratochvil <jan.kratochvil@redhat.com>
5612 PR fortran/11104 and DWARF unbound arrays detection.
5613 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5614 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5615 unspecified upper bound.
5616 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5617 variables array_size_array, tmp_type and offset_item. New variable
5618 array. Remove call to f77_get_upperbound. New variables array_type
5619 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5620 the final call to deprecated_set_value_type.
5622 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5624 Make value allocations more lazy.
5625 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5626 instead of allocate_value and set_value_lazy when possible.
5627 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5628 instead of allocate_value and set_value_lazy.
5629 * findvar.c (value_of_register_lazy): Likewise.
5630 (read_var_value): Remove V preallocation, call just check_typedef in
5631 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5632 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5633 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5634 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5635 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5636 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5637 the end, remove set_value_lazy there.
5638 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5639 instead of allocate_value and set_value_lazy when possible.
5640 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5641 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5642 of allocate_value and set_value_lazy.
5643 (value_from_contents_and_address): Use allocate_value_lazy instead of
5644 allocate_value and set_value_lazy when possible.
5646 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5648 * disasm.c (dump_insns): Support dumping opcodes for MI.
5649 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5650 dumping of instruction opcodes.
5652 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5654 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5657 2011-01-11 Tom Tromey <tromey@redhat.com>
5659 * thread.c (do_captured_thread_select): Emit newline before
5662 2011-01-11 Michael Snyder <msnyder@vmware.com>
5664 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5665 * score-tdep.c: Ditto.
5666 * score-tdep.h: Ditto.
5667 * ser-base.c: Ditto.
5668 * ser-go32.c: Ditto.
5671 * ser-mingw.c: Ditto.
5672 * ser-pipe.c: Ditto.
5674 * ser-unix.c: Ditto.
5675 * sh64-tdep.c: Ditto.
5676 * shnbsd-nat.c: Ditto.
5680 * solib-darwin.c: Ditto.
5681 * solib-frv.c: Ditto.
5683 * solib-irix.c: Ditto.
5684 * solib-osf.c: Ditto.
5685 * solib-pa64.c: Ditto.
5686 * solib-som.c: Ditto.
5687 * solib-spu.c: Ditto.
5688 * solib-sunos.c: Ditto.
5689 * solib-svr4.c: Ditto.
5691 * sol-thread.c: Ditto.
5695 * sparc64-linux-tdep.c: Ditto.
5696 * sparc64-tdep.c: Ditto.
5697 * sparc-linux-nat.c: Ditto.
5698 * sparc-linux-tdep.c: Ditto.
5699 * sparc-sol2-nat.c: Ditto.
5700 * sparc-sol2-tdep.c: Ditto.
5701 * sparc-tdep.c: Ditto.
5702 * sparc-tdep.h: Ditto.
5703 * spu-tdep.c: Ditto.
5704 * stabsread.c: Ditto.
5705 * stabsread.h: Ditto.
5713 * target-descriptions.c: Ditto.
5714 * target-descriptions.h: Ditto.
5716 * target-memory.c: Ditto.
5717 * terminal.h: Ditto.
5720 * tracepoint.c: Ditto.
5721 * tracepoint.h: Ditto.
5722 * trad-frame.h: Ditto.
5723 * typeprint.c: Ditto.
5725 2011-01-11 Michael Snyder <msnyder@vmware.com>
5727 * ui-file.c: Comment cleanup, mostly periods and spaces.
5732 * v850-tdep.c: Ditto.
5733 * valarith.c: Ditto.
5735 * valprint.c: Ditto.
5736 * valprint.h: Ditto.
5741 * vax-tdep.c: Ditto.
5745 * windows-nat.c: Ditto.
5746 * windows-tdep.c: Ditto.
5747 * xcoffread.c: Ditto.
5748 * xcoffsolib.c: Ditto.
5749 * xml-support.c: Ditto.
5750 * xstormy16-tdep.c: Ditto.
5751 * xtensa-tdep.c: Ditto.
5752 * xtensa-tdep.h: Ditto.
5754 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5756 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5757 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5759 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5760 Thiago Jung Bauermann <bauerman@br.ibm.com>
5762 Implement support for PowerPC BookE ranged watchpoints.
5764 (struct breakpoint_ops) <resources_needed>: New method.
5765 Initialize to NULL in all existing breakpoint_ops instances.
5766 (struct breakpoint) <exact>: New field.
5767 (target_exact_watchpoints): Declare external global.
5768 * breakpoint.c (target_exact_watchpoints): New global flag.
5769 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5770 b->enable_state to bp_enabled before calling
5771 hw_watchpoint_used_count.
5772 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5773 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5775 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5776 if the watchpoint is exact.
5777 (resources_needed_watchpoint): New function.
5778 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5779 (watch_command_1): Set b->exact if the user asked for an exact
5780 watchpoint and one can be set.
5781 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5782 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5783 the user asks for an exact watchpoint and one can be set. Return
5784 number of needed debug registers to watch the expression.
5785 * gdbtypes.c (is_scalar_type): New function, based on
5786 valprint.c:scalar_type_p.
5787 (is_scalar_type_recursive): New function.
5788 * gdbtypes.h (is_scalar_type_recursive): Declare.
5789 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5790 handle regions when ranged watchpoints are available.
5791 (create_watchpoint_request): New function.
5792 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5793 create_watchpoint_request.
5794 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5795 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5796 `set powerpc' and `show powerpc' commands.
5797 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5798 Mention documentation comment in the target macro.
5799 (target_region_ok_for_hw_watchpoint): Document return value.
5801 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5803 * breakpoint.c (update_watchpoint): Decide on using a software or
5804 hardware watchpoint after the bp_locations are created.
5806 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5808 Convert hardware watchpoints to use breakpoint_ops.
5809 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5810 <insert_location>: ... this. Return int instead of void.
5811 Accept pointer to struct bp_location instead of pointer to
5812 struct breakpoint. Adapt all implementations.
5813 (breakpoint_ops) <remove>: Rename to...
5814 <remove_location>: ... this. Accept pointer to struct bp_location
5815 instead of pointer to struct breakpoint. Adapt all implementations.
5816 * breakpoint.c (insert_catchpoint): Delete function.
5817 (insert_bp_location): Call the watchpoint or catchpoint's
5818 breakpoint_ops.insert method.
5819 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5820 breakpoint_ops.remove method.
5821 (insert_watchpoint, remove_watchpoint): New functions.
5822 (watchpoint_breakpoint_ops): New structure.
5823 (watch_command_1): Initialize the OPS field.
5824 * inf-child.c (inf_child_insert_fork_catchpoint)
5825 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5826 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5827 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5829 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5830 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5831 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5832 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5833 * target.c (update_current_target): Change default implementation of
5834 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5835 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5836 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5837 to_set_syscall_catchpoint to return_one.
5838 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5839 (debug_to_insert_exec_catchpoint): Report return value.
5840 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5841 (to_insert_exec_catchpoint): Change declaration to return int instead
5844 2011-01-11 Michael Snyder <msnyder@vmware.com>
5846 * arm-tdep.c: Internationalization.
5849 * fork-child.c: Ditto.
5850 * nto-procfs.c: Ditto.
5851 * ppc-sysv-tdep.c: Ditto.
5853 * remote-mips.c: Ditto.
5855 * rs6000-nat.c: Ditto.
5856 * rs6000-tdep.c: Ditto.
5860 * xml-support.c: Ditto.
5861 * mi/mi-cmd-break.c: Ditto.
5862 * mi/mi-cmd-var.c: Ditto.
5863 * mi/mi-interp.c: Ditto.
5864 * mi/mi-main.c: Ditto.
5866 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5868 * remote-sim.c (gdbsim_store_register): Update API to
5869 sim_store_register to check more error conditions.
5871 2011-01-10 Michael Snyder <msnyder@vmware.com>
5873 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5874 * nto-tdep.c: Ditto.
5875 * nto-tdep.h: Ditto.
5876 * objc-exp.y: Ditto.
5877 * objc-lang.c: Ditto.
5878 * objfiles.c: Ditto.
5879 * objfiles.h: Ditto.
5880 * observer.c: Ditto.
5881 * opencl-lang.c: Ditto.
5884 * parser-defs.h: Ditto.
5887 * posix-hdep.c: Ditto.
5888 * ppcbug-rom.c: Ditto.
5889 * ppc-linux-nat.c: Ditto.
5890 * ppc-linux-tdep.c: Ditto.
5891 * ppc-linux-tdep.h: Ditto.
5892 * ppcnbsd-tdep.c: Ditto.
5893 * ppcobsd-tdep.c: Ditto.
5894 * ppcobsd-tdep.h: Ditto.
5895 * ppc-sysv-tdep.c: Ditto.
5896 * ppc-tdep.h: Ditto.
5897 * printcmd.c: Ditto.
5898 * proc-abi.c: Ditto.
5899 * proc-flags.c: Ditto.
5901 * proc-utils.h: Ditto.
5902 * progspace.h: Ditto.
5903 * prologue-value.c: Ditto.
5904 * prologue-value.h: Ditto.
5905 * psympriv.h: Ditto.
5907 * p-typeprint.c: Ditto.
5908 * p-valprint.c: Ditto.
5909 * ravenscar-sparc-thread.c: Ditto.
5910 * ravenscar-thread.c: Ditto.
5911 * ravenscar-thread.h: Ditto.
5913 * regcache.c: Ditto.
5914 * regcache.h: Ditto.
5916 * remote-fileio.c: Ditto.
5917 * remote-fileio.h: Ditto.
5919 * remote-m32r-sdi.c: Ditto.
5920 * remote-mips.c: Ditto.
5921 * remote-sim.c: Ditto.
5922 * rs6000-aix-tdep.c: Ditto.
5923 * rs6000-nat.c: Ditto.
5924 * rs6000-tdep.c: Ditto.
5926 2011-01-10 Michael Snyder <msnyder@vmware.com>
5928 * charset.c (validate): Internationalization.
5929 * coffread.c (read_one_sym): Ditto.
5930 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5931 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5932 * inflow.c (new_tty): Ditto.
5933 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5934 * m32c-tdep.c (m32c_return_value): Ditto.
5935 * mep-tdep.c (mep_store_return_value): Ditto.
5936 * score-tdep.c (score7_fetch_insn): Ditto.
5937 * ser-mingw.c (pipe_windows_open): Ditto.
5938 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5939 * spu-tdep.c (spu_register_type): Ditto.
5940 * tracepoint.c (trace_find_command): Ditto.
5941 * valarith.c (value_pos): Ditto.
5943 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5945 * ada-valprint.c (printstr): Minor comment reformatting.
5947 2011-01-08 Michael Snyder <msnyder@vmware.com>
5949 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5952 2011-01-08 Michael Snyder <msnyder@vmware.com>
5954 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5955 * hppa-hpux-tdep.c: Ditto.
5956 * hppa-linux-nat.c: Ditto.
5957 * hppa-linux-tdep.c: Ditto.
5958 * hppanbsd-tdep.c: Ditto.
5959 * hppa-tdep.c: Ditto.
5960 * hppa-tdep.h: Ditto.
5961 * hpux-thread.c: Ditto.
5962 * i386-cygwin-tdep.c: Ditto.
5963 * i386-darwin-nat.c: Ditto.
5964 * i386gnu-nat.c: Ditto.
5965 * i386-linux-nat.c: Ditto.
5966 * i386-linux-tdep.c: Ditto.
5967 * i386-nat.c: Ditto.
5968 * i386-nat.h: Ditto.
5969 * i386nbsd-tdep.c: Ditto.
5970 * i386-sol2-nat.c: Ditto.
5971 * i386-stub.c: Ditto.
5972 * i386-tdep.c: Ditto.
5973 * i386-tdep.h: Ditto.
5974 * i387-tdep.c: Ditto.
5975 * ia64-linux-nat.c: Ditto.
5976 * ia64-linux-tdep.c: Ditto.
5977 * ia64-tdep.c: Ditto.
5981 * inferior.c: Ditto.
5982 * inferior.h: Ditto.
5988 * iq2000-tdep.c: Ditto.
5989 * irix5-nat.c: Ditto.
5995 * jv-typeprint.c: Ditto.
5996 * jv-valprint.c: Ditto.
5997 * language.c: Ditto.
5998 * language.h: Ditto.
5999 * linespec.c: Ditto.
6000 * linux-fork.c: Ditto.
6001 * linux-nat.c: Ditto.
6002 * linux-thread-db.c: Ditto.
6003 * lm32-tdep.c: Ditto.
6005 2011-01-08 Michael Snyder <msnyder@vmware.com>
6007 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6009 * m2-typeprint.c: Ditto.
6010 * m2-valprint.c: Ditto.
6011 * m32c-tdep.c: Ditto.
6012 * m32r-linux-nat.c: Ditto.
6013 * m32r-rom.c: Ditto.
6014 * m32r-tdep.c: Ditto.
6015 * m32r-tdep.h: Ditto.
6016 * m68hc11-tdep.c: Ditto.
6017 * m58klinux-nat.c: Ditto.
6018 * m68k-tdep.c: Ditto.
6019 * m88k-tdep.c: Ditto.
6020 * m88k-tdep.h: Ditto.
6021 * machoread.c: Ditto.
6022 * macrocmd.c: Ditto.
6023 * macroexp.c: Ditto.
6024 * macrotab.c: Ditto.
6027 * mdebugread.c: Ditto.
6028 * mdebugread.h: Ditto.
6031 * memory-map.h: Ditto.
6032 * mep-tdep.c: Ditto.
6033 * microblaze-rom.c: Ditto.
6034 * microblaze-tdep.c: Ditto.
6036 * mips-irix-tdep.c: Ditto.
6037 * mips-linux-nat.c: Ditto.
6038 * mips-linux-tdep.c: Ditto.
6039 * mips-linux-tdep.h: Ditto.
6040 * mipsnbsd-nat.c: Ditto.
6041 * mipsnbsd-tdep.c: Ditto.
6042 * mipsread.c: Ditto.
6043 * mips-tdep.c: Ditto.
6044 * mips-tdep.h: Ditto.
6045 * mn10300-linux-tdep.c: Ditto.
6046 * mn10300-tdep.c: Ditto.
6047 * mn10300-tdep.h: Ditto.
6050 * moxie-tdep.c: Ditto.
6051 * moxie-tdep.h: Ditto.
6054 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6056 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6058 2011-01-08 Robert Millan <rmh@gnu.org>
6060 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6062 2011-01-07 Michael Snyder <msnyder@vmware.com>
6064 * charset.c (_initialize_charset): Fix typo in string.
6066 2011-01-07 Michael Snyder <msnyder@vmware.com>
6068 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6070 * tui/tui-layout.c (tui_set_layout_for_display_command):
6071 Split line so that operator goes to beginning of line.
6072 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6073 assignment out of if statement.
6075 2011-01-07 Michael Snyder <msnyder@vmware.com>
6077 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6078 * ada-lang.h: Ditto.
6079 * ada-tasks.c: Ditto.
6080 * ada-valprint.c: Ditto.
6081 * aix-threads.c: Ditto.
6082 * alpha-linux-nat.c: Ditto.
6083 * alpha-linux-tdep.c: Ditto.
6084 * alpha-mdebug-tdep.c: Ditto.
6085 * alpha-nat.c: Ditto.
6086 * alpha-osf1-tdep.c: Ditto.
6087 * alpha-tdep.c: Ditto.
6088 * alphabsd-nat.c: Ditto.
6089 * alphabsd-tdep.c: Ditto.
6090 * amd64-darwin-tdep.c: Ditto.
6091 * amd64-linux-nat.c: Ditto.
6092 * amd64-linux-tdep.c: Ditto.
6093 * amd64-sol2-tdep.c: Ditto.
6094 * amd64-tdep.c: Ditto.
6095 * amd64-fbsd-tdep.c: Ditto.
6096 * amd64-nbsd-tdep.c: Ditto.
6097 * amd64-obsd-tdep.c: Ditto.
6098 * amd64-linux-nat.c: Ditto.
6099 * amd64-linux-tdep.c: Ditto.
6100 * arm-tdep.c: Ditto.
6101 * arm-tdep.h: Ditto.
6102 * armnbsd-nat.c: Ditto.
6103 * avr-tdep.c: Ditto.
6104 * bfin-tdep.c: Ditto.
6106 * c-typeprintc: Ditto.
6107 * c-valprint.c: Ditto.
6108 * coff-pe-read.h: Ditto.
6109 * coffreead.c: Ditto.
6110 * cris-tdep.c: Ditto.
6112 * darwin-nat-info.c: Ditto.
6113 * darwin-nat.c: Ditto.
6114 * dbug-rom.c: Ditto.
6118 * dec-thread.c: Ditto.
6120 * demangle.c: Ditto.
6121 * dicos-tdep.c: Ditto.
6122 * dictionary.c: Ditto.
6123 * dictionary.h: Ditto.
6124 * dink32-rom.c: Ditto.
6126 * doublest.c: Ditto.
6128 * dummy-frame.c: Ditto.
6129 * dwarf2-frame.c: Ditto.
6130 * dwarf2expr.c: Ditto.
6131 * dwarf2loc.c: Ditto.
6132 * dwarf2read.c: Ditto.
6136 * event-top.h: Ditto.
6137 * exceptions.c: Ditto.
6138 * exceptions.h: Ditto.
6140 * expprint.c: Ditto.
6141 * expression.h: Ditto.
6145 * f-typeprint.c: Ditto.
6146 * f-valprint.c: Ditto.
6147 * fbsd-nat.c: Ditto.
6149 * fork-child.c: Ditto.
6152 * frv-linux-tdep.c: Ditto.
6153 * frv-tdep.c: Ditto.
6155 * gdb-stabs.h: Ditto.
6156 * gdb_assert.h: Ditto.
6157 * gdb_string.h: Ditto.
6158 * gdb_thread_db.h: Ditto.
6159 * gdb_wait.h: Ditto.
6160 * gdbarch.sh: Ditto.
6162 * gdbthread.h: Ditto.
6163 * gdbtypes.c: Ditto.
6164 * gdbtypes.h: Ditto.
6167 * gnu-v2-abi.c: Ditto.
6168 * gnu-v3-abi.c: Ditto.
6169 * go32-nat.c: Ditto.
6170 * gdbarch.c: Regenerate.
6171 * gdbarch.h: Regenerate.
6173 2011-01-07 Michael Snyder <msnyder@vmware.com>
6175 * ax-gdb.c: Adjust some long output strings.
6176 * breakpoint.c: Ditto.
6181 * linux-nat.c: Ditto.
6182 * solib-pa64.c: Ditto.
6183 * solib-som.c: Ditto.
6185 2011-01-06 Tom Tromey <tromey@redhat.com>
6189 * python/python.c (GdbMethods): Add "newest_frame" method.
6190 * python/python-internal.h (gdbpy_newest_frame): Declare.
6191 * python/py-frame.c (gdbpy_newest_frame): New function.
6193 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6195 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6196 * jit.c (jit_debug): New variable.
6197 (show_jit_debug): New function.
6198 (struct target_buffer): Use ULONGEST.
6199 (bfd_open_from_target_memory): Likewise.
6200 (jit_register_code, jit_inferior_init): Add debug output.
6201 (_initialize_jit): Register "debug jit" command.
6203 2011-01-06 Tom Tromey <tromey@redhat.com>
6205 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6206 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6209 2011-01-06 Tom Tromey <tromey@redhat.com>
6211 * python/py-frame.c (frapy_block): Use get_frame_block.
6213 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6215 Do not stop on SIGPRIO signals by default
6216 * infrun.c (_initialize_infrun): Unset signal_stop and
6217 signal_print for TARGET_SIGNAL_PRIO.
6219 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6221 * ada-tasks.c: Fix style violation in comment.
6223 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6225 * linespec.c (decode_compound, find_method): Remove trailing \n
6226 at end of error string.
6227 * solib-irix.c (irix_current_sos): Likewise.
6228 * varobj.c (uninstall_variable): Likewise.
6230 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6232 * copyright.py: New script.
6233 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6234 Launch emacs without exec'ing. Call copyright.py afterwards.
6236 2011-01-05 Michael Snyder <msnyder@vmware.com>
6238 * addrmap.c: Shorten lines of >= 80 columns.
6239 * arch-utils.c: Ditto.
6240 * arch-utils.h: Ditto.
6242 * ax-general.c: Ditto.
6244 * blockframe.c: Ditto.
6245 * breakpoint.c: Ditto.
6246 * buildsym.c: Ditto.
6248 * c-typeprint.c: Ditto.
6250 * coffread.c: Ditto.
6254 * cp-namespace.c: Ditto.
6255 * cp-support.c: Ditto.
6256 * dbug-rom.c: Ditto.
6261 * dictionary.c: Ditto.
6263 * doublest.c: Ditto.
6264 * dwarf2-frame.c: Ditto.
6265 * dwarf2expr.c: Ditto.
6266 * dwarf2loc.c: Ditto.
6267 * dwarf2read.c: Ditto.
6270 * event-loop.c: Ditto.
6271 * event-loop.h: Ditto.
6272 * exceptions.h: Ditto.
6274 * expprint.c: Ditto.
6275 * expression.h: Ditto.
6277 * f-valprint.c: Ditto.
6279 * frame-base.c: Ditto.
6280 * frame-unwind.c: Ditto.
6281 * frame-unwind.h: Ditto.
6285 * gdb-stabs.h: Ditto.
6286 * gdb_assert.h: Ditto.
6287 * gdb_dirent.h: Ditto.
6288 * gdb_obstack.h: Ditto.
6290 * gdbtypes.c: Ditto.
6291 * gdbtypes.h: Ditto.
6292 * inf-ttrace.c: Ditto.
6297 * inline-frame.h: Ditto.
6298 * language.c: Ditto.
6299 * language.h: Ditto.
6300 * libunwind-frame.c: Ditto.
6301 * libunwind-frame.h: Ditto.
6302 * linespec.c: Ditto.
6303 * linux-nat.c: Ditto.
6304 * linux-nat.h: Ditto.
6305 * linux-thread-db.c: Ditto.
6306 * machoread.c: Ditto.
6307 * macroexp.c: Ditto.
6308 * macrotab.c: Ditto.
6311 * mdebugread.c: Ditto.
6316 * objfiles.c: Ditto.
6317 * objfiles.h: Ditto.
6319 * p-typeprint.c: Ditto.
6320 * p-valprint.c: Ditto.
6322 * printcmd.c: Ditto.
6323 * proc-events.c: Ditto.
6325 * progspace.c: Ditto.
6326 * progspace.h: Ditto.
6327 * psympriv.h: Ditto.
6330 * regcache.c: Ditto.
6331 * regcache.h: Ditto.
6332 * remote-fileio.c: Ditto.
6334 * ser-mingw.c: Ditto.
6336 * ser-unix.c: Ditto.
6339 * solib-frv.c: Ditto.
6340 * solib-irix.c: Ditto.
6341 * solib-osf.c: Ditto.
6342 * solib-pa64.c: Ditto.
6343 * solib-som.c: Ditto.
6344 * solib-sunos.c: Ditto.
6345 * solib-svr4.c: Ditto.
6346 * solib-target.c: Ditto.
6350 * stabsread.c: Ditto.
6351 * stabsread.c: Ditto.
6354 * symfile-mem.c: Ditto.
6360 * target-descriptions.c: Ditto.
6361 * target-memory.c: Ditto.
6364 * terminal.h: Ditto.
6367 * tracepoint.c: Ditto.
6368 * tracepoint.h: Ditto.
6372 * user-regs.c: Ditto.
6373 * user-regs.h: Ditto.
6375 * valarith.c: Ditto.
6377 * valprint.c: Ditto.
6378 * valprint.h: Ditto.
6383 * xcoffread.c: Ditto.
6384 * xcoffsolib.c: Ditto.
6385 * xcoffsolib.h: Ditto.
6386 * xml-syscall.c: Ditto.
6387 * xml-tdesc.c: Ditto.
6389 2011-01-05 Michael Snyder <msnyder@vmware.com>
6391 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6392 * cli/cli-decode.c: Ditto.
6393 * cli/cli-dump.c: Ditto.
6394 * cli/cli-logging.c: Ditto.
6395 * cli/cli-script.c: Ditto.
6396 * cli/cli-setshow.c: Ditto.
6397 * common/signals.c: Ditto.
6398 * mi/mi-cmd-break.c: Ditto.
6399 * mi/mi-cmd-disas.c: Ditto.
6400 * mi/mi-cmd-stack.c: Ditto.
6401 * mi/mi-cmd-var.c: Ditto.
6402 * mi/mi-cmds.c: Ditto.
6403 * mi/mi-common.h: Ditto.
6404 * mi/mi-console.c: Ditto.
6405 * mi/mi-interp.c: Ditto.
6406 * mi/mi-main.c: Ditto.
6407 * osf-share/cma_attr.c: Ditto.
6408 * osf-share/cma_deb_core.h: Ditto.
6409 * osf-share/cma_debug_client.h: Ditto.
6410 * osf-share/cma_handle.h: Ditto.
6411 * osf-share/cma_mutex.h: Ditto.
6412 * osf-share/cma_stack_int.h: Ditto.
6413 * osf-share/cma_tcb_defs.h: Ditto.
6414 * python/py-auto-load.c: Ditto.
6415 * python/py-breakpoint.c: Ditto.
6416 * python/py-cmd.c: Ditto.
6417 * python/py-frame.c: Ditto.
6418 * python/py-objfile.c: Ditto.
6419 * python/py-param.c: Ditto.
6420 * python/py-progspace.c: Ditto.
6421 * python/py-symbol.c: Ditto.
6422 * python/py-value.c: Ditto.
6423 * python/python-internal.h: Ditto.
6424 * python/python.c: Ditto.
6425 * tui/tui-data.c: Ditto.
6426 * tui/tui-disasm.c: Ditto.
6427 * tui/tui-hooks.c: Ditto.
6428 * tui/tui-io.c: Ditto.
6429 * tui/tui-layout.c: Ditto.
6430 * tui/tui-regs.c: Ditto.
6431 * tui/tui-source.c: Ditto.
6432 * tui/tui-stack.c: Ditto.
6433 * tui/tui-win.c: Ditto.
6434 * tui/tui-windata.c: Ditto.
6435 * tui/tui-winsource.c: Ditto.
6437 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6439 * configure.ac, gdb.1: Copyright year update.
6441 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6443 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6444 this_pc_in_block, morestack_msym and morestack_name. Check for
6445 "__morestack" minimal symbol there.
6447 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6449 * symfile.c (find_sym_fns): Add call to dont_repeat.
6451 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6453 Copyright year update in most files (performed by copyright.sh).
6455 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6457 * top.c (print_gdb_version): Update copyright year in version output.
6459 For older changes see ChangeLog-2010.
6465 version-control: never