1 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3 * top.h (simplified_command_loop): Delete declaration.
5 2011-06-01 Mike Frysinger <vapier@gentoo.org>
7 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
8 gdb_sysroot to the "len" variable. Append both to "arg_buf".
10 2011-06-01 Yao Qi <yao@codesourcery.com>
12 * objfiles.h (obj_section_addr): Update reference to objfile from
14 (obj_section_endaddr): Likewise.
16 2011-06-01 Daniel Jacobowitz <drow@false.org>
18 * MAINTAINERS: Update my email address and affiliation. Also
19 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
21 2010-05-31 Keith Seitz <keiths@redhat.com>
24 * linespec.c (get_search_block): New function.
25 (find_methods): Add FILE_SYMTATB parameter and use it and
26 get_search_block to pass an appropriate block to
27 lookup_symbol_in_namespace.
28 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
29 Check if *ARGPTR starts with a filename first.
30 If it does, call locate_first_half again to locate the next
31 "first half" of the linespec.
32 Pass FILE_SYMTATB to decode_objc and decode_compound.
33 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
34 (locate_first_half): Stop on the first colon seen.
35 (decode_compound): Add FILE_SYMTAB parameter.
36 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
37 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
38 get_search_block with lookup_symbol.
39 (find_method): Add FILE_SYMTAB parameter and pass it to
41 (decode_objc): Use get_search_block.
43 2010-05-31 Keith Seitz <keiths@redhat.com>
46 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
47 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
48 and CP_ANONYMOUS_NAMESPACE_LEN.
49 (cp_is_anonymous): Likewise.
50 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
51 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
52 * dwarf2read.c (namespace_name): Likewise.
53 (fixup_partial_die): Likewise.
54 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
55 seen in the input, keep it.
57 2011-05-30 Pedro Alves <pedro@codesourcery.com>
59 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
60 * inf-loop.h (inferior_event_handler_wrapper): Delete.
61 * inf-loop.c (inferior_event_handler_wrapper): Delete.
62 (inferior_event_handler): Don't handle INF_QUIT_REQ.
63 * remote.c (_initialize_remote): Register
64 async_remote_interrupt_twice directly as
65 sigint_remote_twice_token event.
67 2011-05-30 Pedro Alves <pedro@codesourcery.com>
69 * target.h (enum inferior_event_type): Delete INF_ERROR.
70 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
72 2011-05-30 Pedro Alves <pedro@codesourcery.com>
74 * interps.c (interp_set): Don't cancel continuations.
76 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
78 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
80 2011-05-30 Pedro Alves <pedro@codesourcery.com>
82 * continuations.h (continuation_ftype): Add `err' parameter.
84 (do_all_continuations, do_all_continuations_thread)
85 (do_all_intermediate_continuations)
86 (do_all_intermediate_continuations_thread)
87 (do_all_inferior_continuations): Add `err' parameter.
88 * continuations.c (do_my_continuations_1, do_my_continuations)
89 (do_all_inferior_continuations, do_all_continuations_ptid)
90 (do_all_continuations_thread_callback)
91 (do_all_continuations_thread, do_all_continuations)
92 (do_all_intermediate_continuations_thread_callback)
93 (do_all_intermediate_continuations_thread)
94 (do_all_intermediate_continuations): Add `err' parameter, and pass
95 it down all the way to the continuations proper.
96 * inf-loop.c (inferior_event_handler): If fetching an inferior
97 event throws an error, don't pop the target, and still call the
98 continuations, but with `err' set. Adjust all other continuation
100 * breakpoint.c (until_break_command_continuation): Add `err'
102 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
103 issue another step if `err' is set.
104 (struct until_next_continuation_args): New.
105 (until_next_continuation): Add `err' parameter. Adjust.
106 (until_next_command): Adjust.
107 (struct finish_command_continuation_args): Add `thread' field.
108 (finish_command_continuation): Add `err' parameter. Handle it.
109 (finish_forward): Adjust.
110 (attach_command_continuation): Add `err' parameter. Handle it.
111 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
112 cancel the continuations.
113 * interps.c (interp_set): Adjust to cancel the continuations.
114 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
115 continuations rather than discarding.
116 (free_thread): Don't clear thread inferior resources here.
117 (delete_thread_1): Do it here instead. And do it before removing
118 the thread from the threads list. Tag the thread as exited before
119 clearing thread inferior resources.
121 2011-05-30 Joel Brobecker <brobecker@adacore.com>
123 * infcall.c (call_function_by_hand): Rephrase error message.
125 2011-05-27 Pedro Alves <pedro@codesourcery.com>
127 * defs.h (struct thread_info, struct inferior): Delete forward
129 * breakpoint.h (struct thread_info): New forward declaration.
130 * observer.sh (struct inferior): New forward declaration.
131 * python/python-internal.h (struct inferior): New forward
134 2011-05-27 Pedro Alves <pedro@codesourcery.com>
136 * defs.h (struct continuation, continuation_ftype)
137 (continuation_free_arg_ftype, add_continuation)
138 (do_all_continuations, do_all_continuations_thread)
139 (discard_all_continuations, discard_all_continuations_thread)
140 (add_intermediate_continuation, do_all_intermediate_continuations)
141 (do_all_intermediate_continuations_thread)
142 (discard_all_intermediate_continuations)
143 (discard_all_intermediate_continuations_thread)
144 (add_inferior_continuation, do_all_inferior_continuations)
145 (discard_all_inferior_continuations): Move to ...
146 * continuations.h: ... this new file.
147 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
148 infcmd.c, inferior.c, infrun.c, interps.c: Include
151 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
152 Doug Evans <dje@google.com>
154 Fix PR 10970, PR 12702.
155 * linux-nat.c (linux_lwp_is_zombie): New function.
156 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
157 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
159 2011-05-27 Pedro Alves <pedro@codesourcery.com>
161 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
163 (add_continuation, add_intermediate_continuation)
164 (add_inferior_continuation): Use them.
165 * continuations.c (struct continuation): Use them.
166 (make_continuation_ftype): Delete.
167 (make_continuation, add_inferior_continuation, add_continuation)
168 (add_intermediate_continuation): Use continuation_ftype and
169 continuation_free_arg_ftype. Rename parameters to shorter names.
171 2011-05-27 Pedro Alves <pedro@codesourcery.com>
173 * continuations.c (make_continuation): Make it return void.
174 (do_my_continuations): Rename to ...
175 (do_my_continuations_1): ... this. Remove old_chain parameter and
177 (do_my_continuations): New.
178 (discard_my_continuations): Rename to ...
179 (discard_my_continuations_1): ... this. Remove old_chain
180 parameter and adjust.
181 (discard_my_continuations): New.
182 (add_inferior_continuation): Simplify.
183 (do_all_inferior_continuations): Reimplement on top
185 (discard_all_inferior_continuations): Simplify.
186 (add_continuation): Simplify.
187 (do_all_continuations_ptid): Simplify.
188 (discard_all_continuations_thread_callback): Simplify.
189 (add_intermediate_continuation): Simplify.
190 (discard_all_intermediate_continuations_thread_callback):
193 2011-05-27 Pedro Alves <pedro@codesourcery.com>
195 * utils.c (struct continuation, add_continuation)
196 (add_inferior_continuation)
197 (do_all_inferior_continuations, discard_all_inferior_continuations)
198 (restore_thread_cleanup, do_all_continuations_ptid)
199 (do_all_continuations_thread_callback)
200 (do_all_continuations_thread, do_all_continuations)
201 (discard_all_continuations_thread_callback)
202 (discard_all_continuations_thread, discard_all_continuations)
203 (add_intermediate_continuation)
204 (do_all_intermediate_continuations_thread_callback)
205 (do_all_intermediate_continuations_thread)
206 (do_all_intermediate_continuations)
207 (discard_all_intermediate_continuations_thread_callback)
208 (discard_all_intermediate_continuations_thread)
209 (discard_all_intermediate_continuations): Move to ...
210 * continuations.c: ... this new file, and adjust to no longer
211 implement continuations on top of cleanups.
212 * Makefile.in (SFILES): Add continuations.c.
213 (COMMON_OBS): Add continuations.o.
215 2011-05-26 Pedro Alves <pedro@codesourcery.com>
217 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
218 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
219 Internal error on invalid values.
220 * reverse.c: Don't handle EXEC_ERROR.
221 * mi/mi-main.c: Don't handle EXEC_ERROR.
223 2011-05-26 Pedro Alves <pedro@codesourcery.com>
225 * record.c: Include event-loop.h, inf-loop.h.
226 (record_beneath_to_async): New global.
227 (tmp_to_async): New global.
228 (record_async_inferior_event_token): New global.
229 (record_open_1): Don't error out if async is enabled.
230 (record_open): Handle to_async. Create an async event source in
232 (record_close): Delete the async event source.
233 (record_resumed): New global.
234 (record_execution_dir): New global.
235 (record_resume, record_core_resume): Set them. Register the
236 target on the event loop.
237 (record_wait): Rename to ...
238 (record_wait_1): ... this. Add more debug output. Handle
239 TARGET_WNOHANG, and the target beneath returning
240 TARGET_WAITKIND_IGNORE.
241 (record_wait): Reimplement on top of record_wait_1.
242 (record_async_mask_value): New global.
243 (record_async, record_async_mask, record_can_async_p)
244 (record_is_async_p, record_execution_direction): New functions.
245 (init_record_ops, init_record_core_ops): Install new methods.
246 * infrun.c (fetch_inferior_event): Temporarily switch the global
247 execution direction to the direction the target was going.
248 (execution_direction): Change type to int.
249 * target.c (default_execution_direction): New function.
250 (update_current_target): Inherit and de_fault
251 to_execution_direction.
252 * target.h (struct target_ops) <to_execution_direction>: New
254 (target_execution_direction): New macro.
255 * inferior.h (execution_direction): Change type to int.
257 2011-05-26 Pedro Alves <pedro@codesourcery.com>
259 * infcall.c (call_function_by_hand): Don't allow calling functions
260 in reverse execution mode.
262 2011-05-26 Pedro Alves <pedro@codesourcery.com>
264 * infcmd.c (finish_command): Allow async finish in reverse.
266 2011-05-26 Yao Qi <yao@codesourcery.com>
268 * gdb_thread_db.h: Delete. Move to ...
269 * common/gdb_thread_db.h: ... here.
271 2011-05-26 Pedro Alves <pedro@codesourcery.com>
273 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
274 function's entry point instead of a manually managed momentary
275 breakpoint, and only ever issue one proceed call.
276 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
277 doing a reverse-finish, switch to stepi mode, to do another step.
278 (insert_step_resume_breakpoint_at_sal): Make public.
279 (normal_stop): No need to save function value return registers if
281 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
283 2011-05-26 Pedro Alves <pedro@codesourcery.com>
285 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
286 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
287 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
289 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
290 step-resume breakpoints.
291 (print_it_typical): Handle bp_hp_step_resume.
292 (bpstat_what): Ditto.
293 (bptype_string): Ditto.
294 (print_one_breakpoint_location): Ditto.
295 (allocate_bp_location): Ditto.
297 (breakpoint_re_set_one): Ditto.
298 * infrun.c (handle_inferior_event): Adjust. Split
299 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
300 BPSTAT_WHAT_HP_STEP_RESUME.
301 (insert_step_resume_breakpoint_at_sal): Rename to ...
302 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
303 parameter. Handle it.
304 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
305 insert_step_resume_breakpoint_at_sal_1.
306 (insert_step_resume_breakpoint_at_frame): Rename to ...
307 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
308 set a high-priority step-resume breakpoint.
309 (insert_step_resume_breakpoint_at_frame): Adjust comment.
310 (insert_step_resume_breakpoint_at_caller): Ditto.
312 2011-05-26 Pedro Alves <pedro@codesourcery.com>
314 * breakpoint.c (iterate_over_related_breakpoints): New.
315 (do_map_delete_breakpoint): New.
316 (delete_command): Pass do_map_delete_breakpoint to
317 map_breakpoint_numbers.
318 (do_disable_breakpoint): New.
319 (do_map_disable_breakpoint): Iterate over the breakpoint's related
321 (do_enable_breakpoint): Rename to ...
322 (enable_breakpoint_disp): ... this.
323 (enable_breakpoint): Adjust.
324 (do_enable_breakpoint): New.
325 (enable_once_breakpoint): Delete.
326 (do_map_enable_breakpoint): New.
327 (do_map_enable_once_breakpoint): New.
328 (enable_once_command, enable_delete_command)
329 (delete_trace_command): Iterate over the breakpoint's related
332 2011-05-26 Pedro Alves <pedro@codesourcery.com>
334 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
335 for ALPHA_ZERO_REGNUM.
336 (alpha_supply_int_regs): Explicitly supply zero as the value for
337 ALPHA_ZERO_REGNUM in the register cache.
338 * alpha-nat.c (fetch_osf_core_registers): Ditto.
340 2011-05-26 Yao Qi <yao@codesourcery.com>
342 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
344 2011-05-26 Tristan Gingold <gingold@adacore.com>
346 * symfile.h (struct dwarf2_section_names): New type.
347 (struct dwarf2_debug_sections): New type.
348 (dwarf2_has_info): Add parameter.
349 * dwarf2read.c (dwarf2_elf_names): New variable.
350 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
351 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
352 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
353 (dwarf2_has_info): Add names parameter. Pass names
354 to dwarf2_locate_sections.
355 (section_is_p): Rewrite using the names parameter.
356 (dwarf2_locate_sections): Use section names from the names parameter.
357 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
358 * elfread.c (read_psyms): Ditto.
359 * machoread.c (macho_symfile_read): Ditto.
361 2011-05-25 Andreas Schwab <schwab@redhat.com>
364 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
366 2011-05-24 Keith Seitz <keiths@redhat.com>
369 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
370 (decode_compound): Unconditionally call keep_name_info.
372 2011-05-24 Pedro Alves <pedro@codesourcery.com>
374 * breakpoint.c (watchpoint_check): If the watchpoint went out of
375 scope, clear its command list.
376 (map_breakpoint_numbers): Don't walk the related breakpoints list
379 2011-05-24 Tom Tromey <tromey@redhat.com>
381 * MAINTAINERS: Move Jim Blandy to past maintainers.
383 2011-05-24 Tristan Gingold <gingold@adacore.com>
385 * symfile.h (enum dwarf2_section_enum): New type.
386 (dwarf2_get_section_info): New prototype.
387 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
388 section_name by sect. Use a switch to select the info.
389 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
390 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
392 2011-05-24 Pedro Alves <pedro@codesourcery.com>
394 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
395 shared library event breakpoint if there's no execution.
397 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
399 * breakpont.c (remove_hw_watchpoints): Remove unused function.
400 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
402 2011-05-23 Tom Tromey <tromey@redhat.com>
404 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
407 2011-05-23 Doug Evans <dje@google.com>
409 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
410 entry for RuntimeError to doc string.
412 2011-05-23 Jerome Guitton <guitton@adacore.com>
414 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
415 sequence for probing loops.
417 2011-05-23 Pedro Alves <pedro@codesourcery.com>
419 * infrun.c (user_visible_resume_ptid): Fix typos in describing
422 2011-05-21 Mark Kettenis <kettenis@gnu.org>
424 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
425 zero as the value for %g0 in the register cache.
426 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
427 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
429 2011-05-20 Pedro Alves <pedro@codesourcery.com>
431 * infrun.c (proceed): Set previous_inferior_ptid here.
432 (init_wait_for_inferior): Initialize previous_inferior_ptid from
433 inferior_ptid, not null_ptid.
434 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
435 (fetch_inferior_event): Nor here.
437 2011-05-20 Pedro Alves <pedro@codesourcery.com>
439 * inf-loop.c (inferior_event_handler): Only output a message if
442 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
444 * MAINTAINERS: Update my e-mail address.
446 2011-05-20 Pedro Alves <pedro@codesourcery.com>
448 * infrun.c (proceed): Switch the inferior event loop to
449 INF_EXEC_COMPLETE if the target refused to resume from a
452 2011-05-20 Pedro Alves <pedro@codesourcery.com>
454 * infcmd.c: Include "inf-loop.h".
455 (step_once): When stepping into an inline subroutine, pretend the
456 target has run. If the target can async, switch the inferior
457 event loop to INF_EXEC_COMPLETE.
458 * inferior.h (user_visible_resume_ptid): Declare.
459 * infrun.c (user_visible_resume_ptid): New function, factored out
462 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
463 that the current thread is running. Merge async and sync
466 2011-05-20 Pedro Alves <pedro@codesourcery.com>
468 * infcmd.c (step_1): Simplify synchronous case.
470 2011-05-20 Pedro Alves <pedro@codesourcery.com>
472 * tracepoint.c: Include exceptions.h.
473 (TFILE_PID): Move higher in file.
474 (tfile_open): Delay pushing the tfile target until we're assured
475 the tfile header is present in the file. Wrap reading the initial
476 newline-terminated lines in TRY_CATCH. Pop the target if the
477 initial setup failed. Add the tfile's thread immediately
478 aftwards, before any non-essential setup. Don't skip
479 post_create_inferior if there are no traceframes present in the
481 (tfile_close): Remove redundant check for null before xfree call.
482 (tfile_thread_alive): New function.
483 (init_tfile_ops): Register it as to_thread_alive callback.
485 2011-05-20 Pedro Alves <pedro@codesourcery.com>
487 * tracepoint.c (tfile_open): Delete #if 0'd code.
489 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
491 Fix -readnow for -gdwarf-4 unused type units.
492 * dwarf2read.c (struct signatured_type): Remove the field offset.
493 (create_signatured_type_table_from_index): Remove its initialization.
494 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
495 instead. Add a complaint call.
496 (process_psymtab_comp_unit): Change assignment to gdb_assert.
497 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
498 (lookup_signatured_type_at_offset, read_signatured_type)
499 (write_one_signatured_type): Update the field for per_cu.
501 2011-05-19 Tom Tromey <tromey@redhat.com>
503 * python/py-inferior.c (python_inferior_exit): Use
505 (python_on_resume): Likewise.
507 2011-05-19 Matt Rice <ratmice@gmail.com>
509 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
511 2011-05-19 Hui Zhu <teawater@gmail.com>
513 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
515 2011-05-19 Hui Zhu <teawater@gmail.com>
517 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
519 2011-05-18 Tom Tromey <tromey@redhat.com>
521 * dwarf2read.c (dwarf2_add_field): Constify.
522 * value.c (value_static_field): Constify.
523 * gdbtypes.h (struct main_type) <field.field_location.physname>:
525 * ax-gdb.c (gen_static_field): Constify
527 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
529 * linux-nat.c (kill_callback): Use SIGKILL first.
531 2011-05-18 Joel Brobecker <brobecker@adacore.com>
533 * ada-lang.c (print_it_exception): Avoid use of sprintf.
535 2011-05-18 Tom Tromey <tromey@redhat.com>
537 * value.c (value_fn_field): Constify.
538 * symtab.c (gdb_mangle_name): Constify.
539 * stabsread.c (update_method_name_from_physname): Make 'physname'
541 * p-typeprint.c (pascal_type_print_method_args): Make arguments
542 const. Use explicit fputc_filtered loop.
543 (pascal_type_print_base): Constify.
544 * p-lang.h (pascal_type_print_method_args): Update.
545 * linespec.c (add_matching_methods): Constify.
546 (add_constructors): Likewise.
547 * jv-typeprint.c (java_type_print_base): Constify.
548 * gdbtypes.h (struct cplus_struct_type)
549 <fn_fieldlist.fn_field.physname>: Now const.
550 * dwarf2read.c (compute_delayed_physnames): Constify.
551 (dwarf2_add_member_fn): Likewise.
552 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
554 2011-05-18 Pedro Alves <pedro@codesourcery.com>
556 * infrun.c (resume): Mention which is the current thread, and its
557 current PC in debug output.
558 (prepare_to_proceed): Mention the thread switching in debug
561 2011-05-18 Tom Tromey <tromey@redhat.com>
563 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
564 path check. Use xmalloc and cleanups.
565 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
567 2011-05-17 Tom Tromey <tromey@redhat.com>
569 * cp-valprint.c (cp_print_value_fields): Catch errors from
572 2011-05-17 Tom Tromey <tromey@redhat.com>
574 * dwarf2read.c (dwarf2_get_die_type): Call
575 get_die_type_at_offset.
576 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
577 get_base_type function.
579 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
581 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
584 2011-05-16 Doug Evans <dje@google.com>
586 * python/py-auto-load.c (source_section_scripts): Mention objfile
589 2011-05-15 Doug Evans <dje@google.com>
591 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
592 (try_thread_db_load_from_pdir): Call it. If unable to find
593 libthread_db in directory of libpthread, see if we're looking at
594 the separate-debug-info copy.
596 * python/py-autoload.c (print_script): Print "Missing" instead of
597 "No" for missing scripts.
598 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
600 2011-05-13 Doug Evans <dje@google.com>
602 * ui-file.c (stdio_file_write_async_safe): Add comment.
604 2011-05-14 Hui Zhu <teawater@gmail.com>
606 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
608 2011-05-13 Doug Evans <dje@google.com>
610 Support $pdir and $sdir in libthread-db-search-path.
611 * NEWS: Mention $sdir,$pdir.
612 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
613 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
614 (try_thread_db_load_from_sdir): New function.
615 (try_thread_db_load_from_dir): New function.
616 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
617 system directories if search of libthread-db-search-path fails,
618 that is now done via $sdir.
619 (has_libpthread): New function.
620 (thread_db_load): Remove search for libthread_db in directory of
621 libpthread, that is now done via $pdir.
623 * NEWS: Mention "info auto-load-scripts".
624 * python/py-auto-load.c (struct auto_load_pspace_info): New member
625 script_not_found_warning_printed.
626 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
627 all callers updated. Initialize script_not_found_warning_printed.
628 (get_auto_load_pspace_data_for_loading): New function.
629 (maybe_add_script): New function.
630 (source_section_scripts): Simplify. Only print one warning regardless
631 of the number of auto-load scripts not found.
632 (clear_section_scripts): Clear script_not_found_warning_printed.
633 (auto_load_objfile_script): Record script in hash table.
634 (count_matching_scripts): New function.
635 (maybe_print_script): Renamed from maybe_print_section_script, all
636 callers updated. Rewrite to use ui_out_*.
637 (info_auto_load_scripts): Renamed from
638 maintenance_print_section_scripts, all callers updated.
639 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
640 renamed as "info auto-load-scripts".
642 2011-05-13 Tom Tromey <tromey@redhat.com>
644 * dwarf2expr.c (read_uleb128): Cast intermediate result.
645 (read_sleb128): Likewise.
647 2011-05-13 Tom Tromey <tromey@redhat.com>
649 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
652 2011-05-13 Doug Evans <dje@google.com>
654 * linux-nat.c (debug_linux_nat_async): Delete.
655 Replace all references to use debug_linux_nat instead.
656 (show_debug_linux_nat_async): Delete.
657 (sigchld_handler): Call ui_file_write_async_safe instead of
659 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
660 * ui-file.c (struct ui_file): New member to_write_async_safe.
661 (null_file_write_async_safe): New function.
662 (ui_file_write_async_safe): New function.
663 (set_ui_file_write_async_safe): New function.
664 (ui_file_new): Initialize to_write_async_safe.
665 (stdio_file_write_async_safe): New function.
666 (struct stdio_file): New member fd.
667 (stdio_file_new): Initialize to_write_async_safe, fd.
668 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
670 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
671 (set_ui_file_write_async_safe): Declare.
672 (ui_file_write_async_safe): Declare.
674 2011-05-13 Tom Tromey <tromey@redhat.com>
676 * utils.c (do_value_free): New function.
677 (make_cleanup_value_free): Likewise.
678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
680 (dwarf2_loc_desc_needs_frame): Call
681 make_cleanup_value_free_to_mark.
682 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
683 * dwarf2expr.c (free_dwarf_expr_context): Don't call
685 (new_dwarf_expr_context): Don't call value_mark.
686 * dwarf2-frame.c (execute_stack_op): Call
687 make_cleanup_value_free_to_mark.
688 * defs.h (make_cleanup_value_free): Declare.
690 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
692 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
693 prepare_execute_command.
694 * top.c (prepare_execute_command): Return cleanup.
695 (execute_command): Use cleanup from prepare_execute_command.
696 * top.h (prepare_execute_command): Change prototype to return
698 * defs.h (struct value): Add opaque declaration.
699 (make_cleanup_value_free_to_mark): Add prototype.
700 * utils.c (do_value_free_to_mark): New function.
701 (make_cleanup_value_free_to_mark): Likewise.
703 2011-05-12 Tom Tromey <tromey@redhat.com>
705 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
706 cast left-hand-side to unsigned.
708 2011-05-12 Tom Tromey <tromey@redhat.com>
711 * value.h (value_from_contents): Declare.
712 * value.c (value_from_contents): New function.
713 * dwarf2read.c (dwarf_stack_op_name): Add new values.
714 (dwarf2_get_die_type): New function.
715 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
716 (allocate_piece_closure): Acquire reference to values.
717 (read_pieced_value): Update for value-based expressions.
718 (write_pieced_value): Likewise.
719 (free_pieced_value_closure): Call value_free as needed.
720 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
721 Update for value-based expressions.
722 * dwarf2loc.h (dwarf2_get_die_type): Declare.
723 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
724 <get_base_type>: New field.
725 (struct dwarf_expr_piece) <v.value>: Change type.
726 <v.regno>: New field.
727 (struct dwarf_expr_context) <mark>: New field.
728 (dwarf_expr_piece, dwarf_expr_fetch): Update.
729 (dwarf_expr_pop, dwarf_expr_push): Remove.
730 (dwarf_expr_push_address): Declare.
731 * dwarf2expr.c (dwarf_arch_cookie): New global.
732 (struct dwarf_gdbarch_types): New.
733 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
735 (dwarf_expr_push): Change type of 'value' argument. Update. Now
737 (dwarf_expr_push_address): New function.
738 (dwarf_expr_pop): Now static.
739 (dwarf_expr_fetch): Change return type.
740 (dwarf_require_integral): New function.
741 (dwarf_expr_fetch): Simplify.
743 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
745 (execute_stack_op) <sign_ext>: Remove.
746 Use values for DWARF stack.
747 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
748 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
750 (_initialize_dwarf2expr): New function.
752 (new_dwarf_expr_context): Set new field.
753 (free_dwarf_expr_context): Call value_free_to_mark.
754 * dwarf2-frame.c (no_base_type): New function.
755 (execute_stack_op): Set get_base_type field. Update.
757 2011-05-12 Tom Tromey <tromey@redhat.com>
759 * dwarf2read.c (read_common_block): Fix formatting.
761 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
763 * breakpoint.c (disable_breakpoint): Disable all locations
764 associated with a tracepoint on target if a trace experiment is
766 (disable_command): Disable a specific tracepoint location on target if
767 a trace experiment is running.
768 (do_enable_breakpoint): Enable all locations associated with a
769 tracepoint on target if a trace experiment is running.
770 (enable_command) Enable a specific tracepoint location on target if a
771 trace experiment is running.
772 * target.c (update_current_target): Add INHERIT and de_fault clauses for
773 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
774 to_disable_tracepoint.
775 * target.h: Add declaration of struct bp_location.
776 (struct target_ops): Add new functions
777 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
778 to_disable_tracepoint to target operations.
779 (target_supports_enable_disable_tracepoint): New macro.
780 (target_enable_tracepoint): New macro.
781 (target_disable_tracepoint): New macro.
782 * remote.c (struct remote_state): Add new field.
783 (remote_enable_disable_tracepoint_feature): New.
784 (remote_protocol_features): Add new entry.
785 (remote_supports_enable_disable_tracepoint): New.
786 (remote_enable_tracepoint): New.
787 (remote_disable_tracepoint): New.
788 (init_remote_ops): Add remote_enable_tracepoint,
789 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
790 to remote operations.
791 * tracepoint.c (start_tracing): Allow tracing to start without any
792 tracepoints enabled with just a warning if they can be re-enabled
794 * NEWS: Add news item for the new behaviour of the enable and disable
795 GDB commands when applied to tracepoints.
796 Add news items for the new remote packets QTEnable and QTDisable.
798 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
800 * config.in: Regenerate.
801 * configure: Regenerate.
802 * configure.ac <--with-system-readline> (for readline_echoing_p):
804 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
805 (tui_old_rl_echoing_p): ... here.
806 (tui_setup_io): Rename extern declaration readline_echoing_p to
807 _rl_echoing_p. Adjust assignments for the both renames.
809 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
811 * symtab.c (lookup_symtab): Run cleanup before returning.
813 2011-05-11 Tom Tromey <tromey@redhat.com>
815 * dwarf2read.c (handle_data_member_location): New function.
816 (dwarf2_add_field): Use it.
817 (read_common_block): Likewise.
819 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
821 Make addrs->SECTINDEX always defined.
822 * symfile.c (relative_addr_info_to_section_offsets): Check for
823 SECTINDEX -1, not for zero ADDR.
824 (addrs_section_compar): Remove checking for invalid SECTINDEX.
825 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
826 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
829 2011-05-10 Doug Evans <dje@google.com>
831 * linux-thread-db.c: Whitespace cleanup.
832 (try_thread_db_load_1): Fix comment.
834 * linux-thread-db.c (set_libthread_db_search_path): New function.
835 (_initialize_thread_db): Add setter for libthread-db-search-path.
837 2011-05-09 Doug Evans <dje@google.com>
839 * NEWS: Mention --with-iconv-bin.
840 * configure.ac: New option --with-iconv-bin.
841 * configure: Regenerate.
842 * config.in: Regenerate.
843 * defs.h (relocate_gdb_directory): Declare.
844 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
845 removed progname parameter, and exported. All callers updated.
846 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
848 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
849 adding missing call to restore_child_signals_mask.
851 2011-05-09 Pedro Alves <pedro@codesourcery.com>
853 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
855 * infrun.c (proceed, start_remote): Adjust.
856 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
857 and adjust to not handle it.
858 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
859 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
860 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
861 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
862 * windows-nat.c (do_initial_windows_stuff): Adjust.
863 * infcmd.c (attach_command): Adjust.
864 (notice_new_inferior): Adjust.
866 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
868 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
869 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
870 * spu-tdep.c (op_selb): Use correct value.
872 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
874 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
875 "parent" parameter to symbol_file_add_from_bfd call.
877 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
878 Thiago Jung Bauermann <bauerman@br.ibm.com>
880 Implement support for PowerPC BookE masked watchpoints.
881 * NEWS: Mention masked watchpoint support. Create "Changed commands"
883 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
884 method. Initialize to NULL in all existing breakpoint_ops instances.
885 (struct breakpoint) <hw_wp_mask>: New field.
886 * breakpoint.c (is_masked_watchpoint): Add prototype.
887 (update_watchpoint): Don't set b->val for masked watchpoints. Call
888 breakpoint's breakpoint_ops.works_in_software_mode if available.
889 (watchpoints_triggered): Handle the case of a hardware masked
891 (watchpoint_check): Likewise.
892 (works_in_software_mode_watchpoint): New function.
893 (insert_masked_watchpoint, remove_masked_watchpoint)
894 (resources_needed_masked_watchpoint)
895 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
896 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
897 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
899 (masked_watchpoint_breakpoint_ops): New structure.
900 (watch_command_1): Check for the existence of the `mask' parameter.
901 Set b->ops according to the type of hardware watchpoint being created.
902 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
903 (ppc_linux_remove_mask_watchpoint)
904 (ppc_linux_masked_watch_num_registers): New functions.
905 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
906 to_remove_mask_watchpoint and to_masked_watch_num_registers.
907 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
908 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
909 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
910 (target_masked_watch_num_registers): New functions.
911 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
912 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
914 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
915 (target_masked_watch_num_registers): Add prototypes.
917 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
920 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
921 (producer_is_gcc_ge_4_0): New function.
922 (process_full_comp_unit): Set also symtab->locations_valid. Move the
923 symtab->language code.
924 (var_decode_location): Set cu->has_loclist.
925 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
926 skip. Intialize force_skip from locations_valid. Move the prologue
927 skipping code into two passes.
928 * symtab.h (struct symtab): Make the primary field a bitfield. New
929 field locations_valid.
931 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
933 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
934 (classify_inner_name): Call cp_lookup_nested_type with
936 * cp-namespace.c (cp_lookup_nested_type): New variable
937 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
938 type_name_no_tag_or_error with saved_parent_type.
939 * dwarf2read.c (load_partial_dies): Read in any children of
940 DW_TAG_typedef with complaint in such case.
941 * gdbtypes.c (type_name_no_tag_or_error): New function.
942 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
943 * valops.c (destructor_name_p): New comment for parameter type. Remove
944 type const. Make dname and cp const. Call type_name_no_tag_or_error.
945 * value.h (destructor_name_p): Remove type const.
947 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
949 * symtab.c (compare_symbol_name): New function.
950 (completion_list_add_name, expand_partial_symbol_name): Call it,
951 remove the variable ncmp.
952 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
955 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
957 Demote to sw watchpoint only in update_watchpoint.
958 * breakpoint.c (update_watchpoint): Change between software and
959 hardware watchpoint for all kinds of watchpoints, not just
960 read/write ones. Determine b->exact value here instead of
961 in watch_command_1. Error out if there are not enough resources
962 for a read or access hardware watchpoint.
963 (watch_command_1): Remove logic of checking whether there are
964 enough resources available, since update_watchpoint will do that
965 work now. Don't set b->exact here. Catch exceptions thrown by
966 update_watchpoint and delete the watchpoint.
967 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
968 Use target_exact_watchpoints instead.
969 (delete_breakpoint): Notify observers only if deleted watchpoint
970 has a breakpoint number assigned to it.
972 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
974 * MAINTAINERS: Add myself as a write-after-approval maintainer.
976 2011-05-05 Jerome Guitton <guitton@adacore.com>
978 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
980 (i386_stack_tramp_frame_unwind): New static global.
981 (i386_match_pattern): New function, extracted from i386_match_insn.
982 (i386_match_insn): Use i386_match_pattern.
983 (i386_match_insn_block): New function.
984 (i386_tramp_chain_in_reg_insns)
985 (i386_tramp_chain_on_stack_insns): New static variables.
986 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
989 2011-05-04 Joseph Myers <joseph@codesourcery.com>
991 * configure.host (xscale*): Don't handle target.
992 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
995 2011-05-04 Yao Qi <yao@codesourcery.com>
997 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
999 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1002 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1003 | * elfread.c (elf_symtab_read): Stop memory leak.
1005 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1007 * nto-tdep.c (nto_target): Replace deprecated call to
1008 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1010 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1012 Fix false GCC warning.
1013 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1015 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1017 * breakpoint.c (update_watchpoint): Move code to change
1018 the enable state of breakpoint from here ...
1019 (do_enable_breakpoint): ... to here.
1021 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1023 * valprint.c (val_print_array_elements): Fixed poor performance
1024 of printing very large arrays with repeat_count_threshold set
1025 to unlimited. New comment.
1027 2011-04-29 Tom Tromey <tromey@redhat.com>
1029 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1030 (mi_parse): Likewise.
1031 * breakpoint.c (break_range_command): Use sizeof char*, not
1033 (create_breakpoint): Likewise.
1034 (parse_breakpoint_sals): Likewise.
1036 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1038 * linux-nat.c (linux_child_remove_fork_catchpoint)
1039 (linux_child_remove_vfork_catchpoint)
1040 (linux_child_remove_exec_catchpoint): New functions.
1041 (linux_target_install_ops): Install them.
1043 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1047 * varobj.c (install_default_visualizer): Do not install a
1048 visualizer if the varobj is CPLUS_FAKE_CHILD.
1049 (construct_visualizer): Likewise.
1051 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1054 case insensitive comparison.
1056 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1058 * infrun.c (proceed): Revert previous change.
1059 (resume): Instead, handle the case of signal delivery while stepping
1060 off a breakpoint location here, and only if software single-stepping
1061 is used. Handle nested signals.
1063 2011-04-28 Yao Qi <yao@codesourcery.com>
1065 * arm-tdep.c (copy_unmodified): Rename to ...
1066 (arm_copy_unmodified): .. this. New.
1067 (copy_preload): Move common part to ...
1068 (install_preload): .. this. New.
1069 (arm_copy_preload): New.
1070 (copy_preload_reg): Move common part to ...
1071 (install_preload_reg): ... this. New.
1072 (arm_copy_preload_reg): New.
1073 (copy_b_bl_blx): Move common part to ...
1074 (install_b_bl_blx): .. this. New.
1075 (arm_copy_b_bl_blx): New.
1076 (copy_bx_blx_reg): Move common part to ...
1077 (install_bx_blx_reg): ... this. New.
1078 (arm_copy_bx_blx_reg): New.
1079 (copy_alu_reg): Move common part to ...
1080 (install_alu_reg): ... this. New.
1081 (arm_copy_alu_reg): New.
1082 (copy_alu_shifted_reg): Move common part to ...
1083 (install_alu_shifted_reg): ... this. New.
1084 (copy_ldr_str_ldrb_strb): Move common part to ...
1085 (install_ldr_str_ldrb_strb): ... this. New.
1086 (arm_copy_ldr_str_ldrb_strb): New.
1087 (copy_copro_load_store): Move some common part to ...
1088 (install_copy_copro_load_store): ... this. New.
1089 (arm_copy_copro_load_store): New.
1091 (arm_copy_svc): Renamed from copy_svc.
1092 (copy_undef): Delete.
1093 (arm_copy_undef): Renamed from copy_undef.
1094 (decode_ext_reg_ld_st): Delete.
1095 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1096 (decode_svc_copro): Delete.
1097 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1098 (copy_copro_load_store, copy_alu_imm): update callers.
1099 (copy_extra_ld_st, copy_block_xfer): Likewise.
1100 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1101 (decode_miscellaneous, decode_dp_misc): Likewise.
1102 (decode_ld_st_word_ubyte, decode_media): Likewise.
1103 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1104 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1105 (decode_unconditional, decode_miscellaneous): Likewise.
1106 (decode_media, decode_b_bl_ldmstm): Likewise.
1107 (arm_process_displaced_insn): Likewise..
1108 (decode_misc_memhint_neon): Delete.
1109 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1110 (decode_miscellaneous): Delete.
1111 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1112 (decode_dp_misc): Delete.
1113 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1114 (decode_ld_st_word_ubyte): Delete.
1115 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1116 (decode_media): Delete.
1117 (arm_decode_media): Renamed from decode_media.
1118 (decode_b_bl_ldmstm): Delete.
1119 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1120 (decode_ext_reg_ld_st): Delete.
1121 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1122 (decode_unconditional): Delete.
1123 (arm_decode_unconditional): Renamed from decode_unconditional.
1125 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1127 Case insensitive lookups implementation.
1128 * dwarf2read.c: Include ctype.h.
1129 (struct mapped_index): New field version.
1130 (mapped_index_string_hash): New parameter index_version. New comment
1131 for it. Call tolower appropriately.
1132 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1133 Choose the right index version for mapped_index_string_hash.
1134 (dwarf2_read_index): Support also the index version 5. Initialize the
1135 new struct mapped_index field version.
1136 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1137 (find_slot): Explain the version needs. Pass INT_MAX for the new
1139 (write_psymtabs_to_index): Produce version 5.
1140 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1141 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1142 * psymtab.c (lookup_partial_symbol): Find the
1143 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1145 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1147 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1148 (completion_list_add_name): New variable ncmp, initialize it, use it.
1149 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1150 * utils.c (strcmp_iw): Support case_sensitive_off.
1151 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1152 New function comment part. New variables saved_string1,
1153 saved_string2 and case_pass. Add a proper second pass.
1155 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1157 Replace re_comp/re_exec by regcomp/regexec.
1158 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1159 (search_symbols_name_matches): Use them, use regexec.
1160 (search_symbols): New variable retval_chain, adjust the use of
1161 old_chain against it. Replace re_comp by regcomp. Use the new struct
1162 search_symbols_data fields, use regexec instead of re_exec.
1164 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1166 Format the code for the next patch.
1167 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1168 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1169 New variables c1 and c2.
1171 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1173 * infrun.c (proceed): Do not single-step into signal delivery
1174 when stepping off a breakpoint location.
1175 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1176 (insert_step_resume_breakpoint_at_caller): Likewise.
1177 (insert_step_resume_breakpoint_at_sal): Likewise.
1178 (insert_longjmp_resume_breakpoint): Likewise.
1180 2011-04-27 Yao Qi <yao@codesourcery.com>
1182 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1184 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1186 * procfs.c (procfs_pass_signals): Fix advance declaration.
1188 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1190 * target.h (struct target_ops): Remove to_notice_signals;
1191 add to_pass_signals.
1192 (target_notice_signals): Remove.
1193 (target_pass_signals): Add prototype.
1194 * target.c (update_current_target): Remove to_notice_signals;
1195 mention to_pass_signals.
1196 (target_pass_signals): New function.
1197 (debug_to_notice_signals): Remove.
1198 (setup_target_debug): Do not install debug_to_notice_signals.
1200 * infrun.c (signal_pass): New global.
1201 (resume): Call target_pass_signals.
1202 (handle_inferior_event): Report all signals while stepping over
1203 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1204 are re-inserted when stepping over a signal handler.
1205 (signal_cache_update): New function.
1206 (signal_stop_update): Call it.
1207 (signal_print_update): Likewise.
1208 (signal_pass_update): Likewise.
1209 (handle_command): Call signal_cache_update and target_pass_signals
1210 instead of target_notice_signals.
1211 (_initialize_infrun): Initialize signal_pass.
1213 * linux-nat.c (pass_mask): New global.
1214 (linux_nat_pass_signals): New function.
1215 (linux_nat_create_inferior): Report all signals initially.
1216 (linux_nat_attach): Likewise.
1217 (linux_nat_resume): Use pass_mask to decide whether to directly
1218 handle an inferior signal.
1219 (linux_nat_wait_1): Likewise.
1220 (linux_nat_add_target): Install to_pass_signals callback.
1222 * nto-procfs.c (notice_signals): Remove.
1223 (procfs_resume): Do not call notice_signals.
1224 (procfs_notice_signals): Remove.
1225 (procfs_pass_signals): New function.
1226 (init_procfs_ops): Install to_pass_signals callback instead of
1227 to_notice_signals callback.
1228 (_initialize_procfs): Report all signals initially.
1230 * procfs.c (procfs_notice_signals): Remove.
1231 (procfs_pass_signals): New function.
1232 (procfs_target): Install to_pass_signals callback instead of
1233 to_notice_signals callback.
1234 (register_gdb_signals): Remove.
1235 (procfs_debug_inferior): Report all signals initially.
1236 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1238 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1239 parameters; use them instead of calling signal_..._state routines.
1240 (remote_notice_signals): Remove.
1241 (remote_start_remote): Report all signals initially.
1242 (remote_resume): Do not call remote_pass_signals.
1243 (_initialize_remote): Install to_pass_signals callback instead of
1244 to_notice_signals callback.
1246 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1248 * breakpoint.c (user_settable_breakpoint): Delete.
1249 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1250 (delete_command): Check user_breakpoint_p instead of looking at
1251 the breakpoint's type.
1252 (disable_command): Ditto.
1253 (enable_command): Ditto.
1254 (delete_trace_command): Use user_breakpoint_p instead of looking
1255 at the breakpoint number directly. When checking if there are
1256 user visible tracepoints, in order to know whether to ask the user
1257 for confirmation, check whether the breakpoint is actually a
1260 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1262 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1265 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1267 MI breakpoint notifications.
1269 * annotate.c (breakpoint_changed): Adjust parameter type.
1270 * breakpoint.c (set_breakpoint_condition): Adjust to change
1271 in breakpoint_modified type.
1272 (breakpoint_set_commands): Likewise.
1273 (do_map_commands_command): Likewise.
1274 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1275 changed after bumping hit count.
1276 (bpstat_stop_status): Likewise.
1277 (print_one_breakpoint_location): Don't wrap in tuple here.
1278 (print_one_breakpoint): Always print individual locations.
1279 For locations, use unnamed tuple.
1280 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1282 (create_catchpoint, create_syscall_event_catchpoint): Call
1283 breakpoint_created obsever.
1284 (mention): Don't call breakpoint_created observer.
1285 (create_breakpoint_sal): Call breakpoint_created observer.
1286 (create_breakpoint, watch_command_1): Likewise.
1287 (create_ada_exception_breakpoint): Likewise.
1288 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1289 (locations_are_equal): New.
1290 (update_breakpoint_locations): If locations were changed, notify.
1291 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1292 Call breakpoint_modified observer.
1294 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1295 (mi_cmd_break_insert): Don't set observers for modify and delete.
1296 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1297 (mi_breakpoint_created, mi_breakpoint_deleted)
1298 (mi_breakpoint_modified): New.
1299 (mi_interpreter_init): Hook the above.
1300 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1301 while -break-* commands are executing.
1302 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1303 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1305 (mi_ui_out_impl): Hook in mi_redirect.
1306 (mi_field_skip): True to the name, skip the field, don't output
1307 a field with an empty value.
1309 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1310 (gdbpy_breakpoint_deleted): Adjust.
1311 * tui/tui-hooks.c (tui_event_create_breakpoint)
1312 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1314 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1316 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1317 (procfs_remove_hw_watchpoint): Likewise.
1319 2011-04-26 Michael Walle <michael@walle.cc>
1321 * remote.c (remote_start_remote): Ack packet after sending the
1324 2011-04-26 Yao Qi <yao@codesourcery.com>
1326 * linux-nat.c: Move common macros to ...
1327 Include linux-ptrace.h.
1328 * common/linux-ptrace.h: ... here. New.
1330 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1332 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1333 !objfile_has_partial_symbols. New comment.
1334 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1335 SYM_READ_PSYMBOLS is not present. Extend the comment.
1336 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1338 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1340 * defs.h (ENUM_BITFIELD): Remove.
1342 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1343 Eli Zaretskii <eliz@gnu.org>
1345 * NEWS: Document the new gdbserver --once option.
1347 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1349 * MAINTAINERS: Update my email address.
1351 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1353 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1354 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1355 function call if __STDC_ISO_10646__ macro is defined.
1356 (intermediate_encoding): New prototype.
1357 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1358 to generate compile time error for unsupported gdb_wchar_t size.
1359 (ENDIAN_SUFFIX): New macro.
1360 (intermediate_encoding): New function.
1362 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1364 * ada-lang.c (struct add_partial_datum): Update the comment for
1365 expand_partial_symbol_name.
1366 (ada_add_partial_symbol_completions): Rename to ...
1367 (ada_expand_partial_symbol_name): ... here, change return type, update
1368 function comment, call symbol_completion_match instead of
1369 symbol_completion_add.
1370 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1371 and ada_expand_partial_symbol_name.
1372 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1374 (dw2_map_symbol_names): Remove.
1375 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1376 * psymtab.c (map_symbol_names_psymtab): Remove.
1377 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1378 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1380 (psym_functions): Unlist map_symbol_names_psymtab.
1381 (map_partial_symbol_names): Rename to ...
1382 (expand_partial_symbol_names): ... here, change the FUN type, call
1383 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1384 * psymtab.h (map_partial_symbol_names): Rename to ...
1385 (expand_partial_symbol_names): ... here, change the FUN type.
1386 * symfile.h (struct quick_symbol_functions): Update the description of
1387 expand_symtabs_matching. Remove map_symbol_names.
1388 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1389 (struct add_name_data): Update the comment for
1390 expand_partial_symbol_name.
1391 (add_partial_symbol_name): Rename to ...
1392 (expand_partial_symbol_name): ... here. Replace
1393 completion_list_add_name call by strncmp.
1394 (default_make_symbol_completion_list_break_on): Use now
1395 expand_partial_symbol_names and expand_partial_symbol_name.
1396 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1398 2011-04-20 Tom Tromey <tromey@redhat.com>
1400 * dwarf2read.c (save_gdb_index_command): Replace format
1401 documentation with a pointer to the manual.
1403 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1405 * regcache.c: Include remote.h.
1406 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1407 (regcache_dump): Handle regcache_dump_remote.
1408 (maintenance_print_remote_registers): New function.
1409 (_initialize_regcache): Install "maint print remote-registers"
1411 * remote.c (map_regcache_remote_table): New function, factored out
1413 (init_remote_state): ... here.
1414 (remote_register_number_and_offset): New.
1415 * remote.h (remote_register_number_and_offset): Declare.
1417 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1419 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1420 null_ptid, assume and allow a NULL address space, instead of
1421 asking the target for the ptid's address space.
1422 * infrun.c (ptid_is_pid): Remove assertion.
1424 2011-04-19 Tom Tromey <tromey@redhat.com>
1426 * windows-tdep.c (windows_xfer_shared_library):
1427 * windows-nat.c (get_module_name, windows_make_so):
1428 * v850-tdep.c (v850_handle_pushm):
1429 * utils.c (null_cleanup, gdb_realpath):
1430 * ui-out.c (get_next_header):
1431 * tracepoint.c (clear_traceframe_info):
1432 * symtab.c (lookup_symtab):
1433 * serial.h (struct serial_ops):
1434 * mipsread.c (read_alphacoff_dynamic_symtab):
1435 * infcmd.c (print_return_value):
1436 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1437 * f-exp.y (parse_number):
1438 * exceptions.c (catch_exceptions):
1439 * dummy-frame.c (dummy_frame_this_id):
1440 * defs.h (struct cleanup):
1441 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1442 * arm-tdep.c (arm_push_dummy_call):
1443 * amd64-tdep.h (amd64_collect_xsave):
1444 * amd64-tdep.c (amd64_collect_xsave):
1445 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1446 * README (typing): Remove duplicate words.
1447 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1448 * infrun.c (siginfo_value_read): Fix typo.
1449 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1450 * top.c (source_line_number): Add comma.
1452 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1454 * thread.c (any_live_thread_of_process): Prioritize threads
1455 that are not executing.
1456 * gdbthread.h (any_live_thread_of_process): Update comment
1457 as per above change.
1459 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1461 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1462 (scan_xcoff_symtab): Likewise.
1464 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1466 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1469 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1470 Pedro Alves <pedro@codesourcery.com>
1472 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1473 variables to simplify code and avoid == operator at end of
1474 line as this is against GNU coding standards.
1476 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1478 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1479 lm_name to name_lm to avoid conflict with lm_name function.
1481 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1483 ARI fixes: Use only lowercase function name for static functions.
1484 * nto-tdep.c (LM_ADDR): Rename to...
1485 (lm_addr): New function name.
1486 (nto_relocate_section_addresses): Adapt to change above.
1487 * solib-sunos.c (LM_ADDR): Rename to...
1488 (lm_addr): New function name.
1489 (LM_NEXT): Rename to...
1490 (lm_next): New function name.
1491 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1492 function name changes above.
1493 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1494 (lm_addr_from_link_map): New function name.
1495 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1496 (has_lm_dynamic_from_link_map): New function name.
1497 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1498 (lm_dynamic_from_link_map): New function name.
1499 (LM_ADDR_CHECK): Rename to...
1500 (lm_addr_check): New function name.
1501 (LM_NEXT): Rename to...
1502 (lm_next): New function name.
1503 (LM_PREV): Rename to...
1504 (lm_prev): New function name.
1505 (LM_NAME): Rename to...
1506 (lm_name): New function name.
1507 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1508 (ignore_first_link_map_entry): New function name.
1509 (svr4_keep_data_in_core): Adapt to function name changes above.
1510 (svr4_current_sos): Likewise.
1511 (enable_break): Likewise.
1512 (svr4_relocate_section_addresses): Likewise.
1514 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1517 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1518 sprintf. Simplify code and avoid loosing memory.
1519 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1520 (call0_frame_cache): Remove && operator from end of line.
1522 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1524 Fix libraries displacement if they change whether they were prelinked.
1525 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1526 does not match. Comment why.
1528 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 * corelow.c: Include wrapper.h.
1531 (core_open): Call now gdb_target_find_new_threads.
1532 * wrapper.c: Include target.h.
1533 (gdb_target_find_new_threads): New.
1534 * wrapper.h (gdb_target_find_new_threads): New declaration.
1536 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1538 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1539 even if !TARGET_HAS_EXECUTION.
1541 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1543 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1544 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1545 bfd_get_synthetic_symtab.
1546 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1547 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1548 parameter parent, remove the call to add_separate_debug_objfile.
1549 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1550 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1551 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1552 parent, new comment for it, call add_separate_debug_objfile for it.
1553 (symbol_file_add_separate): Pass objfile as the parameter parent,
1554 remove the call to add_separate_debug_objfile.
1555 (symbol_file_add_from_bfd): New parameter parent, pass it.
1556 (symbol_file_add): Pass NULL to the new parameter parent.
1557 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1559 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1561 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1564 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1566 Fix Python access to inlined frames.
1567 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1568 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1570 2011-04-15 Tom Tromey <tromey@redhat.com>
1572 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1574 2011-04-15 Gary Benson <gbenson@redhat.com>
1576 * MAINTAINERS: Add myself to write-after-approval section.
1578 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1580 * remote-sim.c (sim_command_completer): New function.
1581 (_initialize_remote_sim): Set completer to sim_command_completer.
1583 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1585 * breakpoint.c (print_exception_catchpoint): Rename to ...
1586 (print_it_exception_catchpoint): ... this.
1587 (gnu_v3_exception_catchpoint_ops): Update with new name
1588 for print_it_exception_catchpoint.
1590 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1592 * MAINTAINERS: Add myself for write after approval privileges.
1594 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1596 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1598 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1600 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1602 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1604 * breakpoint.c (save_breakpoints): Verify whether
1605 breakpoint_ops.print_recreate is defined before calling it.
1607 2011-04-11 Gary Benson <gbenson@redhat.com>
1609 Fix failure with --enable-maintainer-mode.
1610 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1612 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 * symtab.c (search_symbols): Reorder the KIND description in the
1616 function comment. Remove the unused 4th element of types, types2,
1617 types3 and types4. New gdb_assert on KIND.
1618 (symtab_symbol_info): Remove the unused 4th element of classnames.
1619 New gdb_assert on KIND.
1620 * symtab.h (enum search_domain): New warning in the enum comment.
1621 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1624 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1626 Fix crash of gdb save-index on a STABS file.
1627 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1630 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1632 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1633 * dwarf2read.c: Include ctype.h.
1634 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1636 (dwarf2_add_field): Fix new_field->accessibility by calling
1637 dwarf2_default_access_attribute. Restructure setting accessibility
1639 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1640 is_private and is_protected by calling
1641 dwarf2_default_access_attribute.
1643 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1645 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1646 to the initialization.
1648 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1650 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1653 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1655 Remove support for old Cygwin 1.5 versions.
1656 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1657 function on old Cygwin version.
1658 * windows-nat.c: Remove cygwin version check and always define
1659 __USEWIDE for Cygwin compilation.
1661 2011-04-07 Yao Qi <yao@codesourcery.com>
1663 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1665 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1666 (arm_copy_svc): Remove parameters INSN and TO.
1667 (decode_svc_copro): Update caller.
1668 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1669 from function pointer `copy_svc_os'.
1671 2011-04-07 Yao Qi <yao@codesourcery.com>
1673 * arm-tdep.c (cleanup_branch): Set a correct return address in
1674 LR for ARM and Thumb.
1676 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1679 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1680 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1681 in the function comment, a new note on values compatibility.
1682 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1683 * symtab.h (SYMBOL_HASH_NEXT): New.
1685 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1687 * ppc-linux-nat.c (check_condition): Add len output parameter.
1688 Set it based on the memory region referenced in the condition
1689 expression. Update all callers.
1691 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1693 Fix crash regression on systems featuring .gdb_index.
1694 * objfiles.c (free_objfile): Move the
1695 forget_cached_source_info_for_objfile call earlier. Comment it.
1696 Extend the comment for objfile_free_data.
1698 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1700 Fix regression of displaying the debug format.
1701 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1704 2011-04-04 Tom Tromey <tromey@redhat.com>
1706 * cli/cli-interp.c (struct captured_execute_command_args):
1708 (do_captured_execute_command): Remove.
1709 (safe_execute_command): Use TRY_CATCH.
1710 * cli/cli-script.c (struct wrapped_read_command_file_args):
1712 (wrapped_read_command_file): Remove.
1713 (script_from_file): Use TRY_CATCH.
1714 * exceptions.c (catch_exception): Remove.
1715 * exceptions.h (catch_exception): Remove.
1716 (deprecated_throw_reason): Update comment.
1717 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1718 argument to 'context'.
1719 (mi_execute_command): Use TRY_CATCH.
1720 * remote.c (struct start_remote_args): Remove.
1721 (remote_start_remote): Update; change arguments.
1722 (remote_open_1): Use TRY_CATCH.
1724 2011-04-04 Tom Tromey <tromey@redhat.com>
1726 * tracepoint.c (scope_info): Update.
1727 * symtab.c (decode_line_spec): Update.
1728 * python/python.c (gdbpy_decode_line): Update.
1729 * linespec.h (decode_line_1): Update.
1730 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1731 (decode_compound, find_method, symtab_from_filename)
1732 (decode_variable): Likewise.
1733 * cli/cli-cmds.c (edit_command): Update.
1734 (list_command): Update.
1735 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1737 (create_breakpoint): Update.
1738 (until_break_command): Update.
1739 (addr_string_to_sals): Update.
1740 (decode_line_spec_1): Update.
1742 2011-04-04 Tom Tromey <tromey@redhat.com>
1744 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1745 (do_captured_parse_breakpoint): Remove.
1746 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1747 Use TRY_CATCH directly.
1749 2011-04-04 Tom Tromey <tromey@redhat.com>
1751 * symtab.h (free_symtab): Remove.
1752 (forget_cached_source_info_for_objfile): Declare.
1753 * symmisc.c (free_symtab): Remove.
1754 * source.c (forget_cached_source_info_for_objfile): New function.
1755 (forget_cached_source_info): Use it.
1756 * objfiles.c (free_objfile): Simplify check before calling
1757 clear_current_source_symtab_and_line. Call
1758 forget_cached_source_info_for_objfile.
1760 2011-04-04 Tom Tromey <tromey@redhat.com>
1762 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1763 (new_symtab): Don't set `free_code' on symtab.
1764 (new_linetable): Properly handle size==0.
1765 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1766 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1768 * jv-lang.c (struct jv_per_objfile_data): New.
1769 (jv_per_objfile_free): Free the data.
1770 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1771 (get_java_class_symtab): Set the `dict' field on the
1772 jv_per_objfile_data.
1773 (free_class_block): Remove.
1774 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1777 2011-04-04 Tom Tromey <tromey@redhat.com>
1779 * symfile.c (reread_symbols): Update.
1780 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1782 * objfiles.c (allocate_objfile): Update.
1783 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1785 * cp-namespace.c (lookup_symbol_file): Don't call
1786 lookup_possible_namespace_symbol.
1787 (initialize_namespace_symtab, get_possible_namespace_block)
1788 (free_namespace_block, cp_check_possible_namespace_symbols)
1789 (check_possible_namespace_symbols_loop)
1790 (check_one_possible_namespace_symbol)
1791 (lookup_possible_namespace_symbol): Remove.
1792 (maintenance_cplus_namespace): Replace with notice.
1793 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1795 2011-04-04 Tom Tromey <tromey@redhat.com>
1797 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1798 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1799 * symmisc.c (free_symtab): Don't free debugformat.
1800 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1801 (record_debugformat, record_producer): Document.
1802 * buildsym.c (end_symtab): Don't save debugformat and producer
1804 (end_symtab): Don't free debugformat and producer fields.
1805 (record_debugformat): Don't call xstrdup.
1806 (record_producer): Likewise.
1808 2011-04-04 Tom Tromey <tromey@redhat.com>
1810 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1811 (source_line_charpos, source_charpos_line): Remove.
1813 2011-04-04 Tom Tromey <tromey@redhat.com>
1815 * symtab.h (domain_enum): Split in two...
1816 (enum search_domain): New.
1817 (search_symbols): Update.
1818 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1819 redundant declarations.
1820 (search_symbols): Change 'kind' argument to search_domain.
1822 (print_symbol_info): Likewise.
1823 (symtab_symbol_info): Likewise.
1824 * symfile.h (struct quick_symbol_functions)
1825 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1826 <expand_symtabs_matching>: Likewise.
1827 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1828 (expand_symtabs_matching_via_partial): Update.
1829 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1830 (dw2_expand_symtabs_for_function): Update.
1831 * block.h: Moved anonymous enum...
1832 * defs.h (enum block_enum): ... here. Now named.
1834 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1836 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1837 * version.in: Bump version to 7.3.50.20110403-cvs.
1839 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1841 * NEWS: Create a new section for the next release branch.
1842 Rename the section of the current branch, now that it has
1845 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1847 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1848 for "fpscr" in target description.
1850 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1852 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1853 initialize it. Delay HASH initialization. Strip the part after open
1854 parenthesis for languages with qualifiers. Call do_cleanups.
1856 2011-04-01 Tom Tromey <tromey@redhat.com>
1858 * utils.c (report_command_stats): Don't print `-' for negative
1861 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1863 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1864 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1867 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1869 * breakpoint.h (bpdisp_text): Add declaration.
1870 * breakpoint.c (bpdisp_text): Make non-static.
1871 * ada-lang.c: #include "mi/mi-common.h".
1872 (print_it_exception): Rewrite to improve GDB/MI output.
1874 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1876 * arm-tdep.h (struct address_space): Add forward declaration.
1878 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1880 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1881 * arm-tdep.c (arm_override_mode): New global.
1882 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1883 execution mode heuristics.
1884 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1885 second single-step breakpoint if needed, using
1886 arm_insert_single_step_breakpoint.
1887 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1888 ARM execution mode, do not call thumb_get_next_pc_raw.
1889 (arm_get_next_pc): Encode execution mode in return value. Call
1890 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1891 (arm_insert_single_step_breakpoint): New function.
1892 (arm_software_single_step): Call it.
1893 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1894 argument to return execution mode of sigreturn target.
1895 (arm_linux_syscall_next_pc): Use it.
1896 (arm_linux_copy_svc): Update call.
1897 (arm_linux_software_single_step): Call
1898 arm_insert_single_step_breakpoint.
1900 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1905 2011-03-31 Tom Tromey <tromey@redhat.com>
1907 * varobj.c (update_dynamic_varobj_children): Properly handle
1908 errors from iterator.
1910 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1913 struct linkage name twice.
1915 2011-03-31 Tom Tromey <tromey@redhat.com>
1917 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1918 missing ">" to message.
1920 2011-03-31 Tom Tromey <tromey@redhat.com>
1922 * varobj.c (instantiate_pretty_printer): Remove duplicate
1925 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1927 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1928 if neither saved value nor register available (e.g. signal frame).
1930 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1932 * macroexp.c (expand): Avoid uninitialized variable
1935 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1937 * breakpoint.c (break_range_command): Fix typo in comment.
1939 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1940 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1942 Implement support for PowerPC BookE ranged breakpoints.
1943 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1944 * breakpoint.h (struct bp_target_info) <length>: New member
1946 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1947 instead of struct breakpoint as argument, and also add ASPACE
1948 and BP_ADDR arguments. Update all callers.
1949 (struct breakpoint_ops) <print_one_detail>: New method.
1950 (struct breakpoint) <addr_string_range_end>: New member variable.
1951 * breakpoint.c (breakpoint_location_address_match): Add function
1953 (insert_bp_location): Set bl->target_info.length.
1954 (breakpoint_here_p): Call breakpoint_location_address_match.
1955 (moribund_breakpoint_here_p): Likewise.
1956 (regular_breakpoint_inserted_here_p): Likewise.
1957 (breakpoint_thread_match): Likewise.
1958 (bpstat_stop_status): Likewise.
1959 (bpstat_check_location): Move call to
1960 breakpoint_ops.breakpoint_hit to the top.
1961 (print_one_breakpoint_location): Call
1962 breakpoint_ops.print_one_detail if available.
1963 (breakpoint_address_match_range): New function.
1964 (breakpoint_location_address_match): Likewise.
1965 (breakpoint_locations_match): Compare the length field of the
1967 (hw_breakpoint_used_count): Count resources used by all locations
1968 in a breakpoint, and use breakpoint_ops.resources_needed if
1970 (breakpoint_hit_ranged_breakpoint): New function.
1971 (resources_needed_ranged_breakpoint): Likewise.
1972 (print_it_ranged_breakpoint): Likewise.
1973 (print_one_ranged_breakpoint): Likewise.
1974 (print_one_detail_ranged_breakpoint): Likewise.
1975 (print_mention_ranged_breakpoint): Likewise.
1976 (print_recreate_ranged_breakpoint): Likewise.
1977 (ranged_breakpoint_ops): New structure.
1978 (find_breakpoint_range_end): New function.
1979 (break_range_command): Likewise.
1980 (delete_breakpoint): Free addr_string_range_end.
1981 (update_breakpoint_locations): Add SALS_END argument. Update
1982 all callers. Calculate breakpoint length if a non-zero SALS_END
1983 is given. Call breakpoint_locations_match instead of
1984 breakpoint_address_match.
1985 (reset_breakpoint): Find SaL of the end of the range if B is a
1987 (_initialize_breakpoint): Register break-range command.
1988 * defs.h (print_core_address): Add function prototype.
1989 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1991 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1992 (ppc_linux_remove_hw_breakpoint): Likewise.
1993 (_initialize_ppc_linux_nat): Initialize
1994 to_ranged_break_num_registers.
1995 * target.c (update_current_target): Add comment about
1996 to_ranged_break_num_registers.
1997 (target_ranged_break_num_registers): New function.
1998 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2000 (target_ranged_break_num_registers): Add function prototype.
2001 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2002 * utils.c (print_core_address): ... here.
2004 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2006 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2007 variable compiler warning.
2009 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2011 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2013 (re_set_breakpoint): ... to here ...
2014 (addr_string_to_sals): ... and here.
2016 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2018 * Makefile.in (SFILES): Add missing C sources.
2019 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2020 Add missing headers.
2022 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2024 * .gitignore: New file.
2026 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2028 * NEWS: Mention new cfi device simulation.
2030 2011-03-29 Tom Tromey <tromey@redhat.com>
2032 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2033 otherwise anonymous types.
2034 (dwarf2_name): Likewise.
2035 * valops.c (value_struct_elt_for_reference): Refine artificial
2036 type logic. Call error if j==-1.
2038 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2040 Fix false GCC warning.
2041 * infcall.c (find_function_addr): Initialize funaddr.
2043 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2045 Fix mingw compilation with --enable-targets=all.
2046 * remote-mips.c (gdb_usleep.h): Include header.
2047 (mips_enter_debug): Use gdb_usleep instead of sleep.
2049 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2051 Support resolution of STT_GNU_IFUNC via breakpoints.
2052 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2053 bp_gnu_ifunc_resolver_return.
2054 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2055 the loop. Support bp_gnu_ifunc_resolver and
2056 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2057 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2059 (bptype_string, print_one_breakpoint_location): Support
2060 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2061 (user_settable_breakpoint): Return true also for
2062 bp_gnu_ifunc_resolver.
2063 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2064 bp_gnu_ifunc_resolver_return.
2065 (set_breakpoint_location_function): New parameter explicit_loc,
2066 describe it. Call find_pc_partial_function_gnu_ifunc with new
2067 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2068 EXPLICIT_LOC is not set.
2069 (set_raw_breakpoint): Set EXPLICIT_LOC for
2070 set_breakpoint_location_function.
2071 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2072 set_breakpoint_location_function.
2073 (mention): Support bp_gnu_ifunc_resolver and
2074 bp_gnu_ifunc_resolver_return.
2075 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2076 set_breakpoint_location_function.
2077 (update_breakpoint_locations): Remove static.
2078 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2079 bp_gnu_ifunc_resolver_return.
2080 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2081 bp_gnu_ifunc_resolver_return.
2082 (update_breakpoint_locations): New declaration.
2083 * elfread.c: Include gdbthread.h and regcache.h.
2084 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2086 (elf_gnu_ifunc_fns): Install them.
2087 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2088 (stub_gnu_ifunc_resolver_return_stop): New functions.
2089 (stub_gnu_ifunc_fns): Install them.
2090 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2091 and gnu_ifunc_resolver_return_stop.
2092 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2094 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2096 STT_GNU_IFUNC reader implementation.
2097 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2098 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2099 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2100 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2101 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2102 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2103 (elf_gnu_ifunc_resolve_addr): New.
2104 (elf_symfile_read): Call elf_rel_plt_read.
2105 (elf_gnu_ifunc_fns): New.
2106 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2107 Install elf_gnu_ifunc_fns.
2108 * infcall.c (find_function_return_type): New function.
2109 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2110 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2111 (stub_gnu_ifunc_resolve_name): New functions.
2112 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2113 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2114 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2116 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2118 Code cleanup for later STT_GNU_IFUNC support.
2119 * infcall.c (find_function_addr): Remove variable code, use explicit
2120 dereferences for it. Move VALUE_TYPE initialization later.
2122 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2125 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2126 (clear_pc_function_cache): Clear it.
2127 (find_pc_partial_function): Rename to ...
2128 (find_pc_partial_function_gnu_ifunc): ... this function. New
2129 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2130 (find_pc_partial_function): New wrapper for this function.
2131 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2133 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2135 GDB internal type support for STT_GNU_IFUNC.
2136 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2137 (elf_symtab_read): Set mst_text_gnu_ifunc for
2138 BSF_GNU_INDIRECT_FUNCTION.
2139 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2140 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2141 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2142 nodebug_got_plt_symbol.
2143 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2144 (TYPE_GNU_IFUNC): New.
2145 (struct main_type): New field flag_gnu_ifunc.
2146 (struct builtin_type): New field builtin_func_func.
2147 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2148 nodebug_got_plt_symbol.
2149 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2150 (in_gnu_ifunc_stub): New.
2151 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2153 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2154 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2155 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2157 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2158 * symtab.c (search_symbols): Likewise.
2159 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2160 and mst_slot_got_plt.
2161 (in_gnu_ifunc_stub): New declaration.
2163 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2165 Support a ring of related breakpoints.
2166 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2167 other functions, add gdb_assert.
2168 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2169 watchpoint_del_at_next_stop.
2170 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2171 (bpstat_stop_status): Handle ring in related_breakpoint.
2172 (set_raw_breakpoint_without_location): Initialize ring in
2174 (delete_breakpoint): Handle ring in related_breakpoint, use
2175 watchpoint_del_at_next_stop.
2176 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2178 2011-03-28 Tom Tromey <tromey@redhat.com>
2181 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2182 with `language_minimal'.
2184 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2186 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2187 instead of checking for STT_ARM_TFUNC symbol type.
2189 2011-03-25 Tom Tromey <tromey@redhat.com>
2191 * linespec.c (symbol_found): Restore line-based result for
2192 non-LOC_LABEL symbols.
2194 2011-03-25 Kai Tietz <ktietz@redhat.com>
2196 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2197 instead of strcmp for comparison.
2198 (tui_source_is_displayed): Likewise.
2199 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2201 2011-03-24 Mark Wielaard <mjw@redhat.com>
2203 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2205 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2206 (find_partial_die_in_comp_unit): Likewise in comment.
2207 (read_attribute_value): Likewise.
2208 (lookup_die_type): Likewise.
2209 (dwarf_form_name): Likewise.
2210 (dump_die_shallow): Likewise.
2211 (follow_die_ref_or_sig): Likewise.
2213 2011-03-24 Tom Tromey <tromey@redhat.com>
2215 PR breakpoints/11816:
2216 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2217 (decode_compound): Update.
2218 (find_function_symbol): New function.
2219 (decode_dollar): Update.
2220 (decode_label): Add 'function_symbol' parameter. Handle
2221 function-relative labels.
2222 (decode_variable): Update.
2223 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2224 not its line. Set `special_display' and canonical name for
2227 2011-03-24 Tom Tromey <tromey@redhat.com>
2229 * linespec.h (struct linespec_result) <special_display>: New
2231 * breakpoint.h (struct breakpoint) <display_canonical>: New
2233 * breakpoint.c (print_breakpoint_location): Respect
2235 (create_breakpoint_sal): Add 'display_canonical' parameter.
2236 (create_breakpoints_sal): Update.
2237 (create_breakpoint): Update.
2239 2011-03-24 Tom Tromey <tromey@redhat.com>
2241 * symtab.c (decode_line_spec): Update.
2242 * linespec.c (build_canonical_line_spec): Change type of
2244 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2245 (find_method, decode_all_digits, decode_dollar, decode_label)
2246 (symbol_found): Likewise.
2247 (init_linespec_result): New function.
2248 * breakpoint.c (struct captured_parse_breakpoint_args)
2249 <canonical_p>: New field, replaces addr_string_p.
2250 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2252 (parse_breakpoint_sals): Likewise.
2253 (do_captured_parse_breakpoint): Update.
2254 (create_breakpoint): Use struct linespec_result.
2255 (until_break_command): Update.
2256 (breakpoint_re_set_one): Update.
2257 (decode_line_spec_1): Update.
2258 * linespec.h (struct linespec_result): New.
2259 (init_linespec_result): Declare.
2261 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2263 * regcache.c (regcache_raw_read): If the target didn't supply a
2264 given raw register, mark it as unavailable.
2266 2011-03-23 Kai Tietz <ktietz@redhat.com>
2268 * breakpoint.c (clear_command): Use filename_cmp
2269 instead of strcmp for comparison.
2270 * buildsym.c (watch_main_source_file_lossage): Likewise.
2271 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2272 checking just for slash.
2273 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2274 strrchr and filename_cmp instead of strcmp for filenames.
2275 (add_old_header_file): Use filename_cmp
2276 instead of strcmp for comparison.
2277 * exec.c (exec_set_section_address): Likewise.
2278 * macrotab.c (macro_lookup_inclusion): Likewise.
2279 (macro_lookup_inclusion): Likewise.
2280 * elfread.c (_initialize_elfread): Likewise.
2281 (elfstab_offset_sections): Likewise.
2282 (elfstab_offset_sections): Use lbasename instead of
2284 * mdebugread.c (parse_partial_symbols): Likewise.
2285 (arse_partial_symbols): Use filename_(n)cmp instead of
2286 str(n)cmp for comparison.
2287 * minsyms.c (lookup_minimal_symbol): Likewise.
2288 * psymtab.c (read_psymtabs_with_filename): Likewise.
2289 * solib.c (solib_read_symbols): Likewise.
2290 (reload_shared_libraries_1): Likewise.
2291 * symmisc.c (maintenance_print_symbols): Likewise.
2292 * symfile.c (separate_debug_file_exists): Likewise.
2293 (reread_symbols): Likewise.
2294 (find_separate_debug_file_by_debuglink): Likewise.
2295 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2296 * source.c (add_path): Likewise.
2297 * symtab.c (filename_seen): Likewise.
2298 (file_matches): Likewise.
2299 (print_symbol_info): Likewise.
2300 (maybe_add_partial_symtab_filename): Likewise.
2301 (make_source_files_completion_list): Likewise.
2302 * xml-syscall.c (init_sysinfo): Likewise.
2303 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2304 IS_DIR_SEPARATOR for checking for trailing path separator.
2306 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2308 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2309 label abort_expression.
2310 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2311 DWARF_VALUE_OPTIMIZED_OUT.
2313 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2316 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2317 to linkage_name. Invert its value. Update the function comment.
2318 (c_type_print_varspec_suffix): Invert it at the caller.
2319 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2321 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2323 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2324 errors when reading the `stop_pc'.
2325 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2328 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2330 * NEWS: Document gdb.Write stream keyword.
2332 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2335 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2336 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2337 (dwarf2_add_field): Fix new_field->accessibility for
2338 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2340 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2344 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2345 other error classes. Do not print stack trace.
2347 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2349 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2350 (dwarf2_add_field): Fix new_field->accessibility for
2351 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2353 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2355 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2356 encountering a load via a non-SP register.
2358 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2360 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2361 field in returned unwinder.
2363 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2365 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2367 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2369 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2372 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2374 * frame.c (frame_unwind_register): Throw an error if unwinding the
2376 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2377 an unwind stop reason.
2378 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2379 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2380 UNWIND_UNAVAILABLE>: New.
2381 * inline-frame.c (inline_frame_unwind): Install
2382 default_frame_unwind_stop_reason.
2383 * frame-unwind.c: Include "exceptions.h".
2384 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2385 (default_frame_unwind_stop_reason): New.
2386 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2387 (default_frame_unwind_stop_reason): Declare.
2388 (struct frame_unwind) <stop_reason>: New function pointer.
2390 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2391 * dwarf2-frame.c: Include exceptions.h.
2392 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2393 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2394 computing the CFA. If such an error was thrown, set
2395 unavailable_retaddr.
2396 (dwarf2_frame_unwind_stop_reason): New.
2397 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2399 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2400 (dwarf2_signal_frame_unwind): Ditto.
2402 * amd64-tdep.c: Include "exceptions.h".
2403 (struct amd64_frame_cache): New field "base_p".
2404 (amd64_init_frame_cache): Clear it.
2405 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2406 Avoid reading registers with functions that throw if the register
2407 is not necessary to compute the frame base.
2408 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2409 swallowing NOT_AVAILABLE_ERROR.
2410 (amd64_frame_unwind_stop_reason): New.
2411 (amd64_frame_this_id): Don't build a frame id if the frame base
2413 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2414 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2415 base_p if the frame base was computable.
2416 (amd64_sigtramp_frame_unwind_stop_reason): New.
2417 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2418 frame base was unavailable.
2419 (amd64_sigtramp_frame_unwind): Install
2420 amd64_sigtramp_frame_unwind_stop_reason.
2421 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2422 base_p if the frame base was computable.
2423 (amd64_epilogue_frame_unwind_stop_reason): New.
2424 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2425 frame base was unavailable.
2426 (amd64_epilogue_frame_unwind): Install
2427 amd64_epilogue_frame_unwind_stop_reason.
2428 * i386-tdep.c: Include "exceptions.h".
2429 (struct i386_frame_cache): New field "base_p".
2430 (i386_init_frame_cache): Clear it.
2431 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2432 Avoid reading registers with functions that throw if the register
2433 is not necessary to compute the frame base.
2434 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2435 swallowing NOT_AVAILABLE_ERROR.
2436 (i386_frame_unwind_stop_reason): New.
2437 (i386_frame_this_id): Don't build a frame id if the frame base was
2439 (i386_frame_prev_register): Handle unavailable SP.
2440 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2441 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2442 base_p if the frame base was computable.
2443 (i386_epilogue_frame_unwind_stop_reason): New.
2444 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2445 base was unavailable.
2446 (i386_epilogue_frame_unwind): Install
2447 i386_epilogue_frame_unwind_stop_reason.
2448 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2449 base_p if the frame base was computable.
2450 (i386_sigtramp_frame_unwind_stop_reason): New.
2451 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2452 base was unavailable.
2453 (i386_sigtramp_frame_unwind): Install
2454 i386_sigtramp_frame_unwind_stop_reason.
2455 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2456 type's size, not the register's.
2457 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2459 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2460 default_frame_unwind_stop_reason.
2461 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2462 (alpha_heuristic_frame_unwind): Ditto.
2463 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2464 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2465 * avr-tdep.c (avr_frame_unwind): Ditto.
2466 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2468 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2469 * frv-tdep.c (frv_frame_unwind): Ditto.
2470 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2471 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2472 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2473 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2474 (hppa_stub_frame_unwind): Ditto.
2475 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2476 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2477 (ia64_libunwind_frame_unwind)
2478 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2479 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2480 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2481 * m32c-tdep.c (m32c_unwind): Ditto.
2482 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2483 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2484 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2485 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2486 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2487 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2488 * mep-tdep.c (mep_frame_unwind): Ditto.
2489 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2490 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2491 (mips_stub_frame_unwind): Ditto.
2492 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2493 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2494 * mt-tdep.c (mt_frame_unwind): Ditto.
2495 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2496 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2497 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2498 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2499 (s390_sigtramp_frame_unwind): Ditto.
2500 * score-tdep.c (score_prologue_unwind): Ditto.
2501 * sh-tdep.c (sh_frame_unwind): Ditto.
2502 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2503 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2504 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2505 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2506 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2507 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2508 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2509 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2510 (sparc64obsd_trapframe_unwind): Ditto.
2511 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2512 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2513 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2514 * v850-tdep.c (v850_frame_unwind): Ditto.
2515 * vax-tdep.c (vax_frame_unwind): Ditto.
2516 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2517 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2518 * xtensa-tdep.c (xtensa_unwind): Ditto.
2520 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2522 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2523 there's always a frame. Use get_frame_pc_if_available instead of
2524 get_frame_pc, and if there's no PC available, don't look up a
2527 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2529 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2532 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2534 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2537 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2539 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2540 * frame.c (frame_unwind_caller_pc_if_available): New.
2541 * stack.c (frame_info): Handle unavailable PC.
2543 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2545 * frame.c (frame_unwind_pc): Rename to ...
2546 (frame_unwind_pc_if_available): ... this. New `pc' output
2547 parameter. Change return type to int. Gracefully handle
2548 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2549 happened, or 1 otherwise.
2550 (frame_unwind_pc): Reimplement on top of
2551 frame_unwind_pc_if_available.
2552 (get_frame_func): Rename to ...
2553 (get_frame_func_if_available): New `pc' output parameter. Change
2554 return type to int. Gracefully handle the PC not being available.
2555 (get_frame_func): Reimplement on top of
2556 get_frame_func_if_available.
2557 (select_frame): Handle the PC being unavailable.
2558 (get_prev_frame): Handle the PC being unavailable.
2559 (get_frame_pc_if_available): New.
2560 (get_frame_address_in_block_if_available): New.
2561 (find_frame_sal): Handle the frame PC not being available.
2562 * frame.h (get_frame_pc_if_available): Declare.
2563 (get_frame_address_in_block_if_available): Declare.
2564 (get_frame_func_if_available): Declare.
2565 * stack.c (print_frame_info): Handle the PC being unavailable.
2566 (find_frame_funname): Ditto.
2567 (print_frame): Handle the PC being unavailable.
2568 (get_frame_language): Ditto.
2569 * blockframe.c (get_frame_block): Ditto.
2570 * macroscope.c (default_macro_scope): Ditto.
2571 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2573 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2575 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2576 NOT_AVAILABLE_ERROR when evaluating the location expression.
2578 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2580 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2581 returning that the register piece is unavailable/optimized out.
2582 (write_pieced_value): Handle get_frame_register_bytes returning
2583 that the register piece is unavailable/optimized out when doing a
2584 read-modify write of a bitfield.
2585 * findvar.c (value_from_register): Handle get_frame_register_bytes
2586 returning that the register piece is unavailable/optimized out.
2587 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2588 and `unavailablep'. Throw error on bad debug info. Use
2589 frame_register instead of frame_register_read, to fill in the new
2591 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2593 * valops.c: (value_assign): Adjust, and handle
2594 get_frame_register_bytes failing.
2595 * spu-tdep.c: Include exceptions.h.
2596 (spu_software_single_step): Adjust, and handle
2597 get_frame_register_bytes failing.
2598 (spu_get_longjmp_target): Ditto.
2599 * gdbarch.sh (register_to_value): Change to return int. New
2600 parameters `optimizedp' and `unavailablep'.
2601 * gdbarch.h, gdbarch.c: Regenerate.
2602 * i386-tdep.c (i386_register_to_value): Adjust to new
2603 gdbarch_register_to_value interface.
2604 * i387-tdep.c (i387_register_to_value): Ditto.
2605 * i387-tdep.h (i387_register_to_value): Ditto.
2606 * alpha-tdep.c (alpha_register_to_value): Ditto.
2607 * ia64-tdep.c (ia64_register_to_value): Ditto.
2608 * m68k-tdep.c (m68k_register_to_value): Ditto.
2609 * mips-tdep.c (mips_register_to_value): Ditto.
2610 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2612 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2614 * findvar.c (value_of_register): Mark the value as unavailable, if
2615 the register is unavailable.
2616 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2617 (frame_register): New `unavailablep' parameter.
2618 (frame_register_read): Update comment.
2619 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2620 Set it if the register is unavailable. If the register is
2621 unavailable, clear the output buffer.
2622 (frame_register): New `unavailablep' parameter. Pass it down.
2623 (frame_unwind_register): Adjust.
2624 (put_frame_register): Adjust.
2625 (frame_register_read): Adjust. Also return false if the register
2627 (frame_register_unwind_location): Adjust.
2628 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2629 is unavailable, mark the value accordingly.
2630 * stack.c (frame_info): Handle unavailable registers.
2632 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2634 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2635 simplify, using regcache_cooked_read.
2637 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2639 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2640 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2641 (regcache_raw_read_unsigned, regcache_raw_read_part)
2642 (regcache_cooked_read, regcache_cooked_read_signed)
2643 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2644 (regcache_cooked_read_ftype): Change return to enum
2646 * regcache.c: Include exceptions.h
2647 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2648 (do_cooked_read): Change return to enum register_status. Always
2649 forward to regcache_cooked_read.
2650 (regcache_raw_read): Change return to enum register_status. If
2651 the register is not REG_VALID, memset the buffer. Return the
2653 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2654 return the register's status.
2655 (regcache_raw_read_unsigned): Ditto.
2656 (regcache_cooked_read): Change return to enum register_status.
2657 Assert that with read-only regcaches, the register's status must
2658 be known. If the regcache is read-only, and the register is not
2659 REG_VALID, memset the buffer. Return the register's status.
2660 (regcache_cooked_read_signed): Change return to enum
2661 register_status. Handle non-REG_VALID registers and return the
2663 (regcache_cooked_read_unsigned): Change return to enum
2664 register_status. Handle non-REG_VALID registers and return the
2666 (regcache_xfer_part, regcache_raw_read_part)
2667 (regcache_cooked_read_part): Change return to enum
2668 register_status. Return the register's status.
2669 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2671 (regcache_dump): Handle unavailable cooked registers.
2672 * frame.c (do_frame_register_read): Adjust interface to match
2673 regcache_cooked_read_ftype.
2674 * gdbarch.sh (pseudo_register_read): Change return to enum
2676 * gdbarch.h, gdbarch.c: Regenerate.
2678 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2680 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2681 register_status. If reading a raw register indicates the raw
2682 register is not valid, return the raw register's status,
2683 otherwise, return REG_VALID.
2684 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2685 register_status. Handle non-REG_VALID raw registers and return
2686 the register's status.
2687 * arm-tdep.c (arm_neon_quad_read)
2688 (arm_pseudo_read): Change return to enum register_status. Handle
2689 non-REG_VALID raw registers and return the register's status.
2690 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2691 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2692 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2693 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2694 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2696 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2697 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2698 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2699 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2700 (m32c_pseudo_register_read): Change return to enum
2701 register_status. Adjust.
2702 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2703 enum register_status. Return the register's status.
2704 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2705 register_status. Return the register's status.
2706 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2707 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2708 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2709 * rs6000-tdep.c (move_ev_register_func): New typedef.
2710 (e500_move_ev_register): Use it. Change return to enum
2711 register_status. Return the register's status.
2712 (do_regcache_raw_read): New function.
2713 (do_regcache_raw_write): New function.
2714 (e500_pseudo_register_read): Change return to enum
2715 register_status. Return the register's status. Use
2716 do_regcache_raw_read.
2717 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2718 (dfp_pseudo_register_read): Change return to enum register_status.
2719 Return the register's status.
2720 (vsx_pseudo_register_read): Ditto.
2721 (efpr_pseudo_register_read): Ditto.
2722 (rs6000_pseudo_register_read): Ditto.
2723 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2724 register_status. Return the register's status.
2725 * sh64-tdep.c (pseudo_register_read_portions): New function.
2726 (sh64_pseudo_register_read): Change return to enum
2727 register_status. Use pseudo_register_read_portions. Return the
2729 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2730 register_status. Return the register's status.
2731 * sh-tdep.c (pseudo_register_read_portions): New function.
2732 (sh_pseudo_register_read): Change return to enum register_status.
2733 Use pseudo_register_read_portions. Return the register's status.
2734 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2735 enum register_status. Return the register's status.
2736 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2737 * spu-tdep.c (spu_pseudo_register_read_spu)
2738 (spu_pseudo_register_read): Ditto.
2739 * xtensa-tdep.c (xtensa_register_read_masked)
2740 (xtensa_pseudo_register_read): Ditto.
2741 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2743 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2745 * python/py-value.c (valpy_getitem): Fix formatting of error function
2748 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2750 ARI fixes: Add missing internationalization markups throughout
2752 * darwin-nat-info.c: Ditto.
2755 * mi/mi-main.c: Ditto.
2757 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2759 ARI fixes: Add missing internationalization markups throughout
2762 * cp-name-parser.y: Ditto.
2765 * objc-exp.y: Ditto.
2768 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2770 ARI fixes: Messages should have no trailing new lines.
2771 * darwin-nat.c (mach_check_error): Remove trailing new line from
2772 warning function call message.
2773 * record.c (bfdcore_read): Idem for error call.
2775 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2777 * common/signals.c (target_signal_from_host): Add _ markup to error
2778 function call message.
2779 (target_signal_to_host): Add _ markup and remove trailing new line
2780 from warning call message.
2781 (target_signal_from_command): Add _ markup to error function call
2784 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2788 * python/python.c (gdbpy_write): Accept a stream argument and
2789 operate to the appropriate stream.
2790 (gdbpy_flush): Likewise.
2791 (_initialize_python): Add stream constants.
2792 (finish_python_initialization): Add GdbOutputErrorFile class.
2794 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2796 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2798 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2800 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2801 to store_signed_integer. Add debug message when relocating CALL
2802 instructions. Fix formatting of debug message.
2803 * i386-tdep.c (i386_relocate_instruction): Ditto.
2805 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2807 * target.h (struct target_ops): Remove to_lookup_symbol field.
2808 (target_lookup_symbol): Delete macro.
2809 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2810 (update_current_target, setup_target_debug): Remove handling
2811 of to_lookup_symbol target_ops field.
2812 * ada-tasks.c (get_known_tasks_addr): Remove use of
2813 target_lookup_symbol.
2814 * coffread.c (coff_symtab_read): Likewise.
2815 * dbxread.c (read_dbx_symtab): Ditto.
2817 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2820 * configure.ac: Add getthrds declaration check.
2821 * configure, config.in: Regenerate.
2822 * aix-thread.c (getthrds): Declare only if not already declared
2823 in procinfo.h. More declaration out of get_signaled_thread to
2826 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2828 * python/py-symtab.c: Populate symtab_object_methods,
2830 (stpy_is_valid): New function.
2831 (salpy_is_valid): Ditto.
2832 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2833 (sympy_is_valid): New function.
2834 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2835 (objfpy_is_valid): New function.
2836 * python/py-inferior.c: Populate inferior_object_methods.
2837 (infpy_is_valid): New function.
2838 * python/py-infthread.c: Populate thread_object_methods.
2839 (thpy_is_valid): New function.
2840 * python/py-block.c: Declare block_object_methods. Populate. Declare
2841 block_iterator_object_methods. Populate.
2842 (blpy_is_valid): New function.
2843 (blpy_iter_is_valid): Ditto.
2845 2011-03-16 Keith Seitz <keiths@redhat.com>
2847 * linespec.c (find_methods): Canonicalize NAME before looking
2849 (name_end): New function.
2850 (keep_name_info): New function.
2851 (decode_line_1): Use keep_name_info.
2852 (decode_compound): Likewise.
2853 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2854 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2857 * linespec.c (locate_first_half): Keep overload information, too.
2858 (decode_compound): Use a string to represent break characters
2860 If P points to a break character, do not increment it.
2861 For C++ and Java, keep overload information and relevant keywords.
2862 If we cannot find a symbol, search the minimal symbols.
2865 * linespec.c (decode_compound): Rename SAVED_ARG to
2867 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2869 Pass a valid block to lookup_symbol.
2870 (lookup_prefix_sym): Likewise.
2871 (find_method): Construct search name based on SYM_CLASS instead
2873 * psymtab.c (lookup_partial_symbol): Add language parameter.
2874 (lookup_symbol_aux_psymtabs): Likewise.
2875 Don't assume that the psymtab we found was the right one. Search
2876 for the desired symbol in the symtab to be certain.
2877 (psymtab_search_name): New function.
2878 (lookup_partial_symbol): Use psymtab_search_name.
2879 Add language parameter.
2880 (read_symtabs_for_function): Add language parameter and pass to
2881 lookup_partial_symbol.
2882 (find_symbol_file_from_partial): Likewise.
2884 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2887 * dwarf2read.c (noop_record_line): New function.
2888 (dwarf_decode_lines): Ignore line tables for GCd functions.
2890 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2892 Fix ARI warnings about new lines at the end of messages, which
2893 are unneeded as there is a new line added at the end of the message
2895 * darwin-nat.c (darwin_stop_inferior): Ditto.
2896 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2897 * dfp.c (decimal_to_number): Ditto.
2898 * exec.c (print_section_info): Ditto.
2899 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2900 * osdata.c (get_osdata): Ditto.
2901 * record.c (bfdcore_write): Ditto.
2902 * remote-mips.c (mips_readchar): Ditto.
2903 * remote.c (read_ptid): Ditto.
2904 * ser-mingw.c (ser_windows_raw): Ditto.
2905 * tracepoint.c (add_local_symbols): Ditto.
2906 * windows-nat.c (fake_create_process): Ditto.
2908 2011-03-16 Tom Tromey <tromey@redhat.com>
2910 * tracepoint.c (stop_tracing): Don't declare.
2911 * event-top.c (after_char_processing_hook): Add `(void)'.
2913 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2915 * NEWS: Add Parameter sub-classing description.
2917 2011-03-16 Kai Tietz <ktietz@redhat.com>
2919 * MAINTAINERS: Update my e-mail address.
2921 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2923 * MAINTAINERS: Add myself for write after approval privileges.
2925 2011-03-15 Michael Snyder <msnyder@vmware.com>
2927 * frame.c (find_frame_sal): Assert sym is not null.
2929 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2931 * objc-lang.c (selectors_info): Check strchr for null result.
2933 * stabsread.c (define_symbol): Guard against bad stabstring input.
2935 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2937 Remove trailing spaces and tabulations from pascal language
2942 p-valprint.c: Ditto.
2944 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2946 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2947 than LOW. Comment it.
2948 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2949 HIGHPC not strictly higher than LOWPC.
2951 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2953 Fix formatting of function declarations returning a pointer in
2955 * varobj.c (varobj_add_child): Ditto.
2956 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2957 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2959 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2961 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2962 for the "generic" vector ABI used with GCC 4.3 and later.
2963 (ppc64_sysv_abi_return_value): Likewise.
2965 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2967 * infcall.c (call_function_by_hand): Function return value is
2968 always a non_lval, even when using struct_return.
2970 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2972 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2973 (map_display_numbers): New.
2974 (do_delete_display): New.
2975 (undisplay_command): Use map_display_numbers.
2976 (do_enable_disable_display): New.
2977 (enable_disable_display_command): New function.
2978 (enable_display): Delete.
2979 (enable_display_command): New.
2980 (disable_display_command): Reimplement.
2981 (_initialize_printcmd): Adjust "enable display" command to use
2982 `enable_display_command' as callback.
2984 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2986 * NEWS: Add Python breakpoint 'stop' operation.
2988 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2990 * NEWS: Delete duplicate entry. Fix typo.
2992 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2994 Fix ARI warning about function names in first column.
2995 Put prototype declaration on same line as return type.
2996 * objc-exp.y: Ditto.
2998 * python/py-stopevent.h: Ditto.
2999 For long function names, split parameters to
3000 allow function name on same line as return type.
3001 * solib-pa64.c: Ditto.
3004 For long function declaration, use single line.
3005 * hppa-tdep.h: Ditto.
3006 * inferior.h: Ditto.
3008 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3010 * python/python.h: Declare gdbpy_should_stop and
3011 gdbpy_breakpoint_has_py_cond.
3012 * python/python.c: Add python.h to includes. Remove python.h from
3013 HAVE_PYTHON definition
3014 (gdbpy_should_stop): New dummy function.
3015 (gdbpy_breakpoint_has_py_cond): New dummy function.
3016 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3017 sub-classing capabilities.
3018 (gdbpy_should_stop): New function.
3019 (gdbpy_breakpoint_has_py_cond): New function.
3020 (local_setattro): New function.
3021 * breakpoint.c (condition_command): Add check for Python 'stop'
3023 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3024 operation function as part of stop/continue tests.
3026 2011-03-14 Tom Tromey <tromey@redhat.com>
3029 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3030 (needs_frame_dwarf_call): Likewise.
3032 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3034 Fix ARI warning about functions without parameters that do not
3036 * breakpoint.c (all_tracepoints): Replace () by (void).
3037 * f-exp.y (match_string_literal): Ditto.
3039 * m2-exp.y (yylex): Ditto.
3040 * mep-tdep.c (current_me_module): Ditto.
3041 (current_options): Ditto.
3042 (current_cop_data_bus_width): Ditto.
3043 (current_cr_names): Ditto.
3044 (current_cr_is_float): Ditto.
3045 (current_ccr_names): Ditto.
3046 * objc-exp.y (yylex): Ditto.
3047 * p-exp.y (yylex): Ditto.
3048 * remote.c (send_interrupt_sequence): Ditto.
3049 * tracepoint.c (current_trace_status): Ditto.
3050 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3051 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3053 2011-03-11 Michael Snyder <msnyder@vmware.com>
3055 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3056 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3057 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3058 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3059 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3061 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3062 (delete_async_event_handler): Ditto.
3064 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3066 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3068 * top.c (set_verbose): Assert showcmd was found.
3070 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3072 * xtensa-tdep.c (warning_once): Correct style issues.
3074 2011-03-11 Yao Qi <yao@codesourcery.com>
3076 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3078 2011-03-11 Andreas Schwab <schwab@redhat.com>
3080 * common/aclocal.m4: Remove.
3082 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3084 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3085 (xtensa_write_register, xtensa_read_register): Likewise.
3086 (xtensa_hextochar): Removed.
3087 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3089 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3091 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3092 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3093 (xtensa_alloc_frame_cache): Add initialization for new fields.
3094 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3095 (warning_once): New function.
3096 (xtensa_insn_kind): New item c0opc_and.
3097 (call0_classify_opcode): Add the case for AND instruction.
3098 (call0_track_op): Change arguments. New local variable litbase.
3099 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3100 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3102 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3103 (call0_analyze_prologue): Update the comments. Change arguments.
3104 Add the variety of updates to handle extended prologues, which now can
3105 conduct dynamic stack adjustments.
3106 (call0_frame_cache): Likewise.
3107 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3108 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3110 2011-03-10 Michael Snyder <msnyder@vmware.com>
3112 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3113 (cmd_qtframe): Ditto.
3114 (cmd_qtbuffer): Ditto.
3115 (cmd_bigqtbuffer): Ditto.
3117 2011-03-10 Tom Tromey <tromey@redhat.com>
3119 * tracepoint.c (trace_actions_command): Update.
3120 * thread.c (thread_apply_command): Update.
3121 * reverse.c (delete_bookmark_command): Update.
3122 (bookmarks_info): Update.
3123 * printcmd.c (undisplay_command): Update.
3124 * memattr.c (mem_enable_command): Update.
3125 (mem_disable_command): Update.
3126 (mem_delete_command): Update.
3127 * inferior.c (detach_inferior_command): Update.
3128 (kill_inferior_command): Update.
3129 (remove_inferior_command): Update.
3130 * cli/cli-utils.h (struct get_number_or_range_state): New.
3131 (init_number_or_range): Declare.
3132 (get_number_or_range): Update.
3133 * cli/cli-utils.c (init_number_or_range): New function.
3134 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3136 (number_is_in_list): Update.
3137 * breakpoint.h (get_tracepoint_by_number): Update.
3138 * breakpoint.c (map_breakpoint_numbers): Update for change to
3139 get_number_or_range.
3140 (find_location_by_number): Use get_number, not
3141 get_number_or_range.
3142 (trace_pass_set_count): New function.
3143 (trace_pass_command): Update for change to get_number_or_range.
3145 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3148 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3150 * python/py-param.c (add_setshow_generic): Add set/show callback
3151 parameters. Register Python object context.
3152 (get_show_value): New function.
3153 (get_set_value): New function.
3154 (call_doc_function): New function.
3155 (get_doc_string): Move behind get_show_value/get_set_value.
3157 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3159 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3161 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3163 * xtensa-tdep.c (xtensa_read_register): Add comment.
3164 (xtensa_write_register): Likewise.
3165 (xtensa_hextochar): Add comment and update to match coding conventions.
3166 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3167 (execute_l32e, execute_s32e, execute_code): Update comments.
3168 (xtensa_exception_handler_t): Update to match coding conventions.
3169 (xtensa_insn_kind): Likewise.
3171 2011-03-09 Michael Snyder <msnyder@vmware.com>
3173 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3175 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3177 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3179 2011-03-09 Tom Tromey <tromey@redhat.com>
3181 * thread.c (restore_selected_frame): Handle frame_level == -1.
3182 (make_cleanup_restore_current_thread): Use
3183 get_selected_frame_if_set.
3184 * frame.h (get_selected_frame_if_set): Declare.
3185 * frame.c (get_selected_frame_if_set): New function.
3187 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3189 * cli/cli-cmds.c (shell_escape): Use lbasename.
3190 * coffread.c (coff_start_symtab): Constify parameter.
3191 (complete_symtab): Constify `name' parameter.
3192 (coff_symtab_read): Constify `filestring' local.
3193 (coff_getfilename): Constify return and `result' local.
3195 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3196 * linux-fork.c (info_checkpoints_command): Use lbasename.
3197 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3198 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3199 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3200 * procfs.c (procfs_make_note_section): Use lbasename.
3201 * tui/tui-io.c (printable_part): Constity return and parameter.
3203 (print_filename): Constify parameters, and local `s'.
3204 (tui_rl_display_match_list): Constify local `temp'.
3206 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3209 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3210 Fix DWARF-3+ DW_AT_accessibility default assumption.
3211 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3212 cu->header.version >= 3.
3214 2011-03-09 Yao Qi <yao@codesourcery.com>
3216 * common/Makefile.in: Remove.
3217 * common/configure: Remove.
3218 * common/configure.ac: Remove.
3220 2011-03-09 Yao Qi <yao@codesourcery.com>
3223 2011-02-11 Yao Qi <yao@codesourcery.com>
3225 * common/Makefile.in: Add copyright header.
3227 2011-02-11 Yao Qi <yao@codesourcery.com>
3229 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3231 * configure.ac: Add common to sub dir.
3232 * configure: Regenerate.
3234 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3236 * xtensa-tdep.c (call0_ret): New function.
3237 (xtensa_skip_prologue): Speed up analysis.
3239 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3241 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3242 while executing MI command -data-list-changed-registers.
3244 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3246 * xtensa-tdep.c (xtensa_read_register): New function.
3247 (xtensa_write_register): New function.
3248 (xtensa_find_register_by_name): New function.
3249 (xtensa_windowed_frame_cache): Update comments in type description.
3250 (xtensa_frame_cache): Likewise.
3251 (xtensa_window_interrupt_insn): New function.
3252 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3253 (xtensa_insn_kind): Add new instructions.
3254 (rwx_special_register): New function.
3255 (call0_classify_opcode): Add new instructions to the analysis.
3256 (a0_saved, a7_saved, a11_saved): New variables.
3257 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3258 (execute_l32e): New function.
3259 (execute_s32e): New function.
3260 (xtensa_exception_handler_t): New type.
3261 (execute_code): New function.
3262 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3263 analysis for Xtensa Window Exception handlers.
3265 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3267 * xtensa-tdep.c (TX_PS): New.
3268 (windowing_enabled): Update to count for Call0 ABI.
3269 (xtensa_hextochar): New.
3270 (xtensa_init_reggroups): Make algorithm generic.
3271 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3273 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3275 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3277 2011-03-08 Michael Snyder <msnyder@vmware.com>
3279 * i386-tdep.c (i386_follow_jump): Check return value of
3281 (i386_analyze_struct_return): Ditto.
3282 (i386_skip_probe): Ditto.
3283 (i386_match_insn): Ditto.
3284 (i386_skip_noop): Ditto.
3285 (i386_analyze_frame_setup): Ditto.
3286 (i386_analyze_register_saves): Ditto.
3287 (i386_skip_prologue): Ditto.
3288 (i386_skip_main_prologue): Ditto.
3290 * target.c (read_whatever_is_readable): Fix memory leak.
3292 * i386-tdep.c (i386_process_record): Document fall through.
3294 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3296 Fix DWARF-3+ DW_AT_accessibility default assumption.
3297 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3298 cu->header.version >= 3.
3300 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3302 * remote.c (remote_check_symbols): Skip if the target has no
3305 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3307 * target.c (read_whatever_is_readable): Reformat comment,
3308 with a minor typo fix. Minor reformatting of the code.
3310 2011-03-08 Yao Qi <yao@codesourcery.com>
3312 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3313 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3314 Use cached result instead of calling displaced_in_arm_mode again.
3315 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3316 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3317 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3318 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3319 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3320 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3321 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3322 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3323 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3324 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3325 (arm_catch_kernel_helper_return): Likewise.
3326 * gdb/arm-tdep.h : Update function declarations.
3328 2011-03-07 Michael Snyder <msnyder@vmware.com>
3330 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3332 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3334 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3336 * elfread.c (elf_symtab_read): Stop memory leak.
3338 * main.c (captured_main): Fix memory leak.
3340 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3342 * ada-lang.c (compare_names): Call is_name_suffix with string1
3345 2011-03-07 Tom Tromey <tromey@redhat.com>
3347 * xcoffread.c (xcoff_sym_fns): Update.
3348 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3349 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3350 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3351 (symbol_file_add_with_addrs_or_offsets): Likewise.
3352 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3353 * somread.c (som_sym_fns): Update.
3354 * psymtab.h (require_partial_symbols): Declare.
3355 * psymtab.c (require_partial_symbols): New function.
3356 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3357 (ALL_OBJFILE_PSYMTABS): Undef.
3358 (ALL_PSYMTABS): Move from psympriv.h.
3359 (lookup_partial_symtab, find_pc_sect_psymtab)
3360 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3361 (find_last_source_symtab_from_partial)
3362 (forget_cached_source_info_partial)
3363 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3364 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3365 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3366 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3367 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3368 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3369 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3370 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3371 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3373 * mipsread.c (ecoff_sym_fns): Update.
3374 * machoread.c (macho_sym_fns): Update.
3375 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3376 (read_psyms): New function.
3377 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3378 (elf_sym_fns_lazy_psyms): New global.
3379 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3380 dwarf2_build_psymtabs.
3381 * dbxread.c (aout_sym_fns): Update.
3382 * coffread.c (coff_sym_fns): Update.
3384 2011-03-07 Tom Tromey <tromey@redhat.com>
3386 * infrun.c (print_exited_reason): Include inferior id and pid in
3389 2011-03-07 Tom Tromey <tromey@redhat.com>
3391 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3393 (target_has_execution_1): Update.
3394 (target_has_execution_current): Declare.
3395 (target_has_execution): Call target_has_execution_current.
3396 (default_child_has_execution): Update.
3397 * target.c (default_child_has_execution): Add 'the_ptid'
3399 (target_has_execution_1): Likewise.
3400 (target_has_execution_current): New function.
3401 (add_target): Update.
3402 (init_dummy_target): Update.
3403 * remote-m32r-sdi.c (m32r_has_execution): New function.
3404 (init_m32r_ops): Use it.
3405 * record.c (record_core_has_execution): Now static. Add
3406 'the_ptid' parameter.
3407 * inferior.c (have_live_inferiors): Don't save current thread.
3408 Use target_has_execution_1.
3410 2011-03-07 Yao Qi <yao@codesourcery.com>
3412 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3414 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3416 * elfread.c (elf_symtab_read): Minor reformatting.
3418 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3420 * objc-lang.c (selectors_info): Minor reformatting.
3422 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3424 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3426 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3427 Michael Snyder <msnyder@vmware.com>
3429 * ada-valprint.c (ada_val_print_array): Move the declaration of
3430 "byte_order" and "elttype" inside the block where these variables
3431 are actually used. Remove some special handling for the case
3432 where "elttype" and "eltlen" are null. Replace by a comment
3433 and a couple of assertion checks.
3435 2011-03-05 Michael Snyder <msnyder@vmware.com>
3437 * source.c (add_path): Replace semicolon at end of block.
3438 * dwarf2expr.c (execute_stack_op): Ditto.
3440 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3442 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3443 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3444 (bfin-*-*): Likewise.
3446 2011-03-05 Michael Snyder <msnyder@vmware.com>
3448 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3449 * mdebugread.c (parse_symbol): Ditto.
3450 * parse.c (parse_exp_in_context): Ditto.
3451 * source.c (add_path): Ditto.
3452 * utils.c (gnu_debuglink_crc32): Ditto.
3453 * varobj.c (variable_language): Ditto.
3455 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3457 2011-03-04 Michael Snyder <msnyder@vmware.com>
3459 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3461 * symfile.c (simple_overlay_update): Check for null return value
3462 from lookup_minimal_symbol.
3464 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3466 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3468 * eval.c (parse_and_eval_address_1): Remove function.
3469 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3470 instead of parse_and_eval_address_1.
3471 * value.h (parse_and_eval_address_1): Remove prototype.
3473 2011-03-04 Michael Snyder <msnyder@vmware.com>
3475 * remote.c (putpkt_binary): Document that case stmt falls through.
3477 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3479 * breakpointc (print_it_typical): Move NULL check from here...
3480 (print_bp_stop_message): ... to here.
3482 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3484 * breakpoint.c (enable_command): Use break instead of continue,
3485 and fill in a missing break.
3486 (disable_command): Ditto.
3488 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3490 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3491 (terminal_save_ours): Remove misleading comment.
3492 (inflow_inferior_data_cleanup): Free ttystate.
3493 (inflow_inferior_exit): Likewise.
3494 (copy_terminal_info): Copy ttystate.
3496 * serial.c (serial_copy_tty_state): New function.
3497 * serial.h (serial_copy_tty_state): Add prototype.
3498 (struct serial_ops): Add copy_tty_state callback.
3499 * ser-base.c (ser_base_copy_tty_state): New function.
3500 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3501 * ser-go32.c (dos_copy_tty_state): New function.
3502 (dos_ops): Install copy_tty_state callback.
3503 * ser-mingw.c (_initialize_ser_windows): Likewise.
3504 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3505 * ser-unix.c (hardwire_copy_tty_state): New function.
3506 (_initialize_ser_hardwire): Install it.
3508 2011-03-04 Michael Snyder <msnyder@vmware.com>
3510 * breakpoint.c (create_breakpoint): Add missing break statement.
3512 Reverting this patch:
3513 * infcall.c (call_function_by_hand): Add break statements for lint.
3515 Reverting this patch:
3516 * cli/cli-script.c (script_from_file): Add break for lint.
3518 2011-03-04 Michael Snyder <msnyder@vmware.com>
3520 * solib.c (reload_shared_libraries_1): Close memory leak.
3522 2011-03-03 Tom Tromey <tromey@redhat.com>
3525 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3528 2011-03-03 Michael Snyder <msnyder@vmware.com>
3530 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3531 fields of struct 'st' to zero.
3533 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3534 sal.pspace before calling set_current_source_symtab_and_line.
3536 2011-03-03 Yao Qi <yao@codesourcery.com>
3538 * Makefile.in (configure-common): Remove. Let Makefile
3539 in dir common to rebuild itself.
3540 (common/Makefile): Likewise.
3542 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3544 * utils.c (parse_escape): Add i18n markup in error message.
3546 2011-03-03 Yao Qi <yao@codesourcery.com>
3548 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3550 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3551 (displaced_write_reg, displaced_read_reg): Likewise.
3552 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3553 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3554 (cleanup_branch): Replace magic number 14 and 15 with
3555 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3557 2011-03-02 Michael Snyder <msnyder@vmware.com>
3559 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3561 * cli/cli-script.c (script_from_file): Add break for lint.
3563 * mdebugread.c (parse_partial_symbols): Fix indent.
3565 * target-descriptions.c (tdesc_gdb_type): No need to call
3566 xstrdup, callee saves a copy.
3568 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3570 * infcall.c (call_function_by_hand): Add break statements for lint.
3572 * utils.c (parse_escape): Escape the escape char.
3574 * python/py-inferior.c (build_inferior_list): Error out if
3575 PyList_Append fails.
3576 (gdbpy_inferiors): Error out if build_inferior_list fails.
3578 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3581 * record.c (record_restore): Move printf to before error return.
3583 2011-03-02 Yao Qi <yao@codesourcery.com>
3585 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3586 is_thumb and insn_size.
3587 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3588 on both ARM and Thumb mode.
3589 (arm_process_displaced_insn): Set is_thumb and insn_size.
3590 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3591 (arm_displaced_step_fixup): Likewise.
3593 2011-03-01 Michael Snyder <msnyder@vmware.com>
3595 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3597 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3599 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3601 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3603 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3606 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3607 which shadows function parameter.
3609 * tracepoint.c (create_tsv_from_upload): Superfluous call
3610 to xstrdup. Callee already calls xstrdup.
3612 * linespec.c (decode_line_1): Remove unnecessary null check.
3614 * tracepoint.c (scope_info): Fix mem leak, remove underused
3617 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3618 superfluous null check.
3620 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3621 (value_of_builtin_frame_fp_reg): Ditto.
3623 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3625 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3628 * linespec.c (decode_line_1): Check for null before dereference.
3630 * reverse.c (record_restore): Move null-check to before pointer
3633 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3635 * objc-lang.c (selectors_info): Add explanitory comment.
3636 (classes_info): Ditto.
3638 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3640 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3641 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3642 versions of the trampoline. Handle Thumb vs. ARM addresses.
3643 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3644 (arm_linux_init_abi): Install it.
3645 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3646 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3648 2011-02-28 Michael Snyder <msnyder@vmware.com>
3650 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3651 a little bigger, to avoid possibility of an overflow.
3653 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3654 buffers a little bigger, to avoid possibility of an overflow.
3656 * coffread.c (coff_getfilename): Add check to avoid overflow.
3658 * objc-lang.c (selectors_info): Add a small safety margin to
3660 (classes_info): Error out on too long REGEXP.
3662 * infrun.c (handle_inferior_event): Remove unused function call.
3664 * fork-child.c (fork_inferior): Remove ifdef'd code and
3667 * linux-thread-db.c (attach_thread): Discard unused value.
3669 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3671 * remote.c (remote_get_noisy_reply): Discard unused value.
3672 (remote_vcont_resume): Ditto.
3673 (remote_stop_ns): Ditto.
3675 * linespec.c (decode_objc): Delete unused variable.
3677 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3679 * dwarf2read.c (add_partial_symbol): Discard unused values.
3680 (read_base_type): Delete unused variable.
3682 * dbxread.c (read_dbx_symtab): Discard unused value.
3684 * eval.c (evaluate_subexp_standard): Delete unused variable,
3685 and discard unused values.
3687 * infcmd.c (_initialize_infcmd): Discard unused values.
3689 * stabsread.c (rs6000_builtin_type): Missing break statement.
3691 * dbxread.c (process_one_symbol): Discard unused value.
3693 * coffread.c (coff_end_symtab): Delete unused variable.
3695 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3696 (dwarf2_add_typedef): Delete unused variable.
3697 (read_namespace): Ditto.
3698 (dwarf_decode_macros): Ditto.
3700 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3702 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3704 * p-valprint.c (pascal_val_print): Discard unused value.
3706 * utils.c (nquery): Call va_end before return;
3710 * proc-service.c (ps_plog): Call va_end before return.
3712 2011-02-28 Tom Tromey <tromey@redhat.com>
3714 * python/python.c (gdbpy_value_cst): New global.
3715 (_initialize_python): Initialize it.
3716 * python/python-internal.h (gdbpy_value_cst): Declare.
3717 * python/py-value.c (convert_value_from_python): Use
3720 2011-02-28 Michael Snyder <msnyder@vmware.com>
3722 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3724 * breakpoint.c (catch_syscall_completer): Free malloced list.
3726 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3728 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3729 (lval_func_check_synthetic_pointer): Ditto.
3730 (lval_func_free_closure): Fix use-after-free.
3732 2011-02-28 Tom Tromey <tromey@redhat.com>
3734 * psymtab.c (expand_partial_symbol_tables): Use
3735 ALL_OBJFILE_PSYMTABS.
3737 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3739 * objc-lang.c (selectors_info): Error on too long REGEXP.
3741 2011-02-28 Michael Snyder <msnyder@vmware.com>
3743 * python/py-param.c (set_parameter_value): Add missing
3746 * linux-record.c (record_linux_system_call): Add missing
3749 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3751 * breakpoint.c (print_one_breakpoint_location): Remove unused
3752 argument PRINT_ADDRESS_BITS. Update callers.
3753 (print_one_breakpoint): Likewise.
3755 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3757 * breakpoint.c (wrap_indent_at_field): New function.
3758 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3759 Allocate ui_stream locally instead of using STB argument.
3760 (print_one_breakpoint_location): Update call.
3761 * ui-out.c (ui_out_query_field): New function.
3762 * ui-out.h (ui_out_query_field): Add prototype.
3764 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3766 From Michael Snyder <msnyder@vmware.com>
3767 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3769 2011-02-27 Michael Snyder <msnyder@vmware.com>
3771 * objc-lang.c (selectors_info): Prevent string overrun.
3773 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3776 * symtab.c (rbreak_command): Move variable 'file_name' to
3779 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3780 param with a local variable of the same name.
3782 2011-02-27 Michael Snyder <msnyder@vmware.com>
3784 * value.c (value_from_history_ref): New function.
3785 * value.h (value_from_history_ref): Export.
3786 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3787 to parse value history references.
3788 * cli/cli-utils.h (get_number_trailer): Update comment.
3790 2011-02-27 Michael Snyder <msnyder@vmware.com>
3792 * inferior.c (detach_inferior_command): Use get_number_or_range.
3793 (kill_inferior_command): Ditto.
3794 (remove_inferior_command): Ditto.
3795 (initialize_inferiors): Make command names plural.
3796 Update help strings.
3798 2011-02-27 Michael Snyder <msnyder@vmware.com>
3800 * darwin-nat-info.c: Fix comment typo.
3801 * dwarf2expr.h: Ditto.
3802 * fbsd-nat.c: Ditto.
3803 * fbsd-nat.h: Ditto.
3804 * frame-unwind.h: Ditto.
3806 * hppa-hpux-tdep.c: Ditto.
3807 * i386-linux-nat.c: Ditto.
3808 * linux-nat.c: Ditto.
3809 * nbsd-nat.c: Ditto.
3810 * nbsd-nat.h: Ditto.
3811 * ppc-linux-tdep.c: Ditto.
3814 * tui/tui-winsource.c: Ditto.
3816 2011-02-26 Michael Snyder <msnyder@vmware.com>
3818 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3820 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3822 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3823 with a local variable of the same name.
3825 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3826 param with a local variable of the same name.
3827 (i387_supply_xsave): Ditto.
3829 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3830 that it does not shadow a function parameter.
3832 * i386-nat.c (i386_length_and_rw_bits): Document that case
3833 statement is meant to fall through.
3835 * expprint.c (dump_subexp_body_standard): Document that case
3836 statement is meant to fall through.
3838 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3839 dead if statement. Condition can't be false.
3841 2011-02-25 Michael Snyder <msnyder@vmware.com>
3843 * arm-tdep.c: Fix typos in comments.
3844 * bsd-uthread.c: Ditto.
3845 * completer.c: Ditto.
3847 * cp-namespace.c: Ditto.
3848 * cp-support.c: Ditto.
3849 * cris-tdep.c: Ditto.
3851 * dwarf2read.c: Ditto.
3853 * gdbtypes.h: Ditto.
3854 * inferior.h: Ditto.
3855 * mdebugread.c: Ditto.
3856 * mips-tdep.c: Ditto.
3857 * ppc-linux-nat.c: Ditto.
3858 * ppc-linux-tdep.c: Ditto.
3859 * printcmd.c: Ditto.
3860 * sol-thread.c: Ditto.
3861 * solib-frv.c: Ditto.
3863 * sparc64-tdep.c: Ditto.
3864 * spu-tdep.c: Ditto.
3865 * stabsread.c: Ditto.
3870 * python/py-block.c: Ditto.
3871 * python/py-symbol.c: Ditto.
3872 * python/py-symtab.c: Ditto.
3873 * python/py-value.c: Ditto.
3874 * tui/tui-win.c: Ditto.
3876 2011-02-25 Michael Snyder <msnyder@vmware.com>
3878 * inferior.c (print_inferior): Accept a string instead of an int
3879 for requested_inferiors, and use get_number_or_range to parse it.
3880 (info_inferiors_command): Pass args string to print_inferior.
3881 (initialize_inferiors): Change help string for info inferiors.
3882 * inferior.h (print_inferior): Export prototype change.
3884 2011-02-25 Tom Tromey <tromey@redhat.com>
3886 * common/ax.def (invalid2): Set to 0x31.
3888 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3890 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3892 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3894 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3896 2011-02-24 Michael Snyder <msnyder@vmware.com>
3898 * Makefile.in (clean): Make clean should remove generated files
3899 observer.h and observer.inc.
3901 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3903 Revert the following patch (not approved yet):
3904 2011-02-21 Hui Zhu <teawater@gmail.com>
3905 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3906 * ax-gdb.c (gen_printf_expr_callback): New function.
3907 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3908 * ax-general.c (ax_memcpy): New function.
3909 (ax_print): Handle "printf".
3911 * ax.h (ax_memcpy): Forward declare.
3912 * common/ax.def (invalid2): Removed.
3913 (printf): New entry.
3914 * printcmd.c (printcmd.h): New include.
3915 (string_printf): New function.
3916 (ui_printf): Removed.
3917 (printf_command): Remove static. Call string_printf.
3918 (eval_command): Call string_printf.
3919 * printcmd.h: New file.
3920 * tracepoint.c (validate_actionline,
3921 encode_actions_1): handle printf_command.
3923 2011-02-23 Tom Tromey <tromey@redhat.com>
3925 * ax-general.c (ax_pick): Add missing newline.
3927 2011-02-23 Michael Snyder <msnyder@vmware.com>
3929 * breakpoint.c (breakpoint_1): Change first argument from an int
3930 to a char pointer, so that the function now accepts a list of
3931 breakpoints rather than just one. Use new function
3932 'number_is_in_list' to implement.
3933 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3934 (watchpoints_info): Ditto.
3935 (tracepoints_info): Ditto.
3936 (maintenance_info_breakpoints): Ditto.
3937 (_initialize_breakpoint): Update help strings to reflect the fact
3938 that these functions can now take more than one argument.
3939 * cli/cli-utils.c (number_is_in_list): New function.
3940 * cli/cli-utils.h (number_is_in_list): Export.
3942 2011-02-23 Michael Snyder <msnyder@vmware.com>
3944 * memattr.c (mem_enable_command): Use get_number_or_range.
3945 (mem_disable_command): Ditto.
3946 (mem_delete_command): Ditto.
3947 (_initialize_mem): Tweak usage message to reflect multiple
3950 2011-02-22 Doug Evans <dje@google.com>
3952 Add gdb.lookup_global_symbol python function.
3954 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3955 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3956 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3958 2011-02-22 Tom Tromey <tromey@redhat.com>
3960 * language.c (language_class_name_from_physname): Rename
3961 'curr_language' argument to 'lang'; use in body.
3963 2011-02-22 Michael Snyder <msnyder@vmware.com>
3965 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3967 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3969 * frame-unwind.h: Fix comment to mention the this frame, not the
3972 2011-02-22 Tom Tromey <tromey@redhat.com>
3974 * symfile.c (auto_solib_limit): Remove.
3975 * symfile.h (auto_solib_limit): Remove.
3977 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3979 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3981 2011-02-21 Michael Snyder <msnyder@vmware.com>
3983 * gdbthread.h (print_thread_info): Change prototype.
3984 * thread.c (print_thread_info): Accept char* instead of int for
3985 requested_threads argument. Use new function number_is_in_list
3986 to determine which threads to list.
3987 (info_threads_command): Pass char* to print_thread_info.
3988 * cli/cli-utils.c (number_is_in_list): New function.
3989 * cli/cli-utils.h (number_is_in_list): Export.
3990 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3992 (print_one_inferior): Ditto.
3993 (mi_cmd_list_thread_groups): Ditto.
3995 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3997 * common/Makefile.in (CFLAGS): New.
3998 (COMPILE): Add $(CFLAGS).
4000 2011-02-21 Tom Tromey <tromey@redhat.com>
4002 * breakpoint.c (catch_syscall_command_1): Fix typo.
4004 2011-02-21 Tom Tromey <tromey@redhat.com>
4006 * reverse.c: Include cli-utils.h.
4007 * printcmd.c: Include cli-utils.h.
4008 (string_printf): Use skip_spaces.
4009 * cli/cli-utils.h: New file.
4010 * cli/cli-utils.c: New file.
4011 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4012 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4013 * breakpoint.h (get_number, get_number_or_range): Move to
4015 * breakpoint.c: Include cli-utils.h.
4016 (get_number_trailer, get_number, get_number_or_range)
4017 (ep_skip_leading_whitespace): Move to cli-utils.c.
4018 (create_breakpoint_sal, find_condition_and_thread)
4019 (decode_static_tracepoint_spec, watch_command_1)
4020 (watch_maybe_just_location, ep_parse_optional_if_clause)
4021 (catch_fork_command_1, catch_exec_command_1)
4022 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4023 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4024 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4025 (HFILES_NO_SRCDIR): Add cli-utils.h.
4026 (cli-utils.o): New target.
4028 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4030 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4031 before calling discard_all_inferiors.
4033 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4035 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4036 (struct builtin_opencl_type): Remove.
4037 (builtin_opencl_type): Change return type to "struct type **".
4038 (lookup_opencl_vector_type): Update caller.
4039 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4040 (build_opencl_types): Install plain array of "struct type *"
4041 instead of "struct builtin_opencl_type".
4043 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4044 Ulrich Weigand <uweigand@de.ibm.com>
4046 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4047 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4048 (struct arm_linux_hwbp_cap): New type.
4049 (arm_linux_get_hwbp_cap): New function.
4050 (arm_linux_get_hw_breakpoint_count): Likewise.
4051 (arm_linux_get_hw_watchpoint_count): Likewise.
4052 (arm_linux_can_use_hw_breakpoint): Likewise.
4053 (arm_hwbp_type): New type.
4054 (arm_hwbp_control_t): Likewise.
4055 (struct arm_linux_hw_breakpoint): Likewise.
4056 (struct arm_linux_thread_points): Likewise.
4057 (arm_threads): New global variable.
4058 (arm_linux_find_breakpoints_by_tid): New function.
4059 (arm_hwbp_control_initialize): Likewise.
4060 (arm_hwbp_control_is_enabled): Likewise.
4061 (arm_hwbp_control_disable): Likewise.
4062 (arm_linux_hw_breakpoint_initialize): Likewise.
4063 (arm_linux_get_hwbp_type): Likewise.
4064 (arm_linux_hw_watchpoint_initialize): Likewise.
4065 (arm_linux_hw_breakpoint_equal): Likewise.
4066 (arm_linux_insert_hw_breakpoint1): Likewise.
4067 (arm_linux_remove_hw_breakpoint1): Likewise.
4068 (arm_linux_insert_hw_breakpoint): Likewise.
4069 (arm_linux_remove_hw_breakpoint): Likewise.
4070 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4071 (arm_linux_insert_watchpoint): Likewise.
4072 (arm_linux_remove_watchpoint): Likewise.
4073 (arm_linux_stopped_data_address): Likewise.
4074 (arm_linux_stopped_by_watchpoint): Likewise.
4075 (arm_linux_watchpoint_addr_within_range): Likewise.
4076 (arm_linux_new_thread): Likewise.
4077 (arm_linux_thread_exit): Likewise.
4078 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4079 related target callbacks. Register arm_linux_new_thread and
4080 arm_linux_thread_exit.
4081 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4082 * arm-tdep.c (arm_pc_is_thumb): Make global.
4083 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4085 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4087 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4088 per-frame locations while within a function epilogue.
4090 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4092 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4093 to GNU coding standards.
4095 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4097 Allow use of mingw native on Windows 95 OS.
4098 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4099 (ser_windows_close): Only call CancelIo if function exists.
4100 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4101 to check for existence of CancelIo function in kernel32 DLL.
4103 2011-02-21 Hui Zhu <teawater@gmail.com>
4105 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4106 * ax-gdb.c (gen_printf_expr_callback): New function.
4107 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4108 * ax-general.c (ax_memcpy): New function.
4109 (ax_print): Handle "printf".
4111 * ax.h (ax_memcpy): Forward declare.
4112 * common/ax.def (invalid2): Removed.
4113 (printf): New entry.
4114 * printcmd.c (printcmd.h): New include.
4115 (string_printf): New function.
4116 (ui_printf): Removed.
4117 (printf_command): Remove static. Call string_printf.
4118 (eval_command): Call string_printf.
4119 * printcmd.h: New file.
4120 * tracepoint.c (validate_actionline,
4121 encode_actions_1): handle printf_command.
4123 2011-02-19 Michael Snyder <msnyder@vmware.com>
4125 * reverse.c (delete_one_bookmark): Argument is now bookmark
4126 id rather than pointer to bookmark struct.
4127 (delete_bookmark_command): Use get_number_or_range.
4128 (goto_bookmark_command): Parse with get_number instead of strtoul.
4129 (bookmark_1): New function. Print info for one bookmark.
4130 (bookmarks_info): Use get_number_or_range and bookmark_1.
4132 2011-02-18 Michael Snyder <msnyder@vmware.com>
4134 * thread.c (info_threads_command): Re-implement using
4135 get_number_or_range.
4136 (thread_apply_command): Ditto.
4138 2011-02-18 Tom Tromey <tromey@redhat.com>
4140 * common/ax.def: New file.
4141 * ax.h (enum agent_op): Use ax.def.
4142 * ax-general.c (aop_map): Use ax.def.
4144 2011-02-18 Tom Tromey <tromey@redhat.com>
4146 * ax-general.c (aop_map): Add pick and rot.
4147 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4148 <DW_OP_rot>: Implement.
4149 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4151 * ax-general.c (ax_pick): New function.
4153 2011-02-18 Tom Tromey <tromey@redhat.com>
4155 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4157 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 Tom Tromey <tromey@redhat.com>
4160 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4161 make_symbol_overload_list_block with NULL BLOCK.
4162 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4164 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4166 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4167 * breakpoint.h (get_number_or_range): Declare.
4168 * printcmd.c (ALL_DISPLAYS): Declare.
4169 (delete_display): Reimplement taking a display pointer.
4170 (undisplay_command): Accept a range of displays to delete, using
4171 get_number_or_range.
4173 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4175 * c-valprint.c (c_val_print): Add embedded_offset to address
4176 for arrays of unspecified length.
4177 * p-valprint.c (pascal_val_print): Likewise.
4179 2011-02-18 Yao Qi <yao@codesourcery.com>
4181 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4182 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4183 (thumb_process_displaced_insn): New.
4184 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4185 call to arm_process_displaced_insn.
4186 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4188 2011-02-17 Tom Tromey <tromey@redhat.com>
4190 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4191 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4192 compile_dwarf_to_ax. No longer static. Call
4193 dwarf2_compile_cfa_to_ax.
4194 (locexpr_tracepoint_var_ref): Update.
4195 (loclist_tracepoint_var_ref): Update.
4196 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4197 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4198 argument; add 'gdbarch' and 'pc'.
4199 (dwarf2_compile_cfa_to_ax): New function.
4200 (dwarf2_frame_cache): Update.
4202 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4204 * ada-lang.c (ada_type_of_array): Fix the size of the array
4205 in the case of an unconstrained packed array.
4207 2011-02-17 Yao Qi <yao@codesourcery.com>
4209 * common/Makefile.in: Add more targets for make.
4211 2011-02-16 Tom Tromey <tromey@redhat.com>
4213 * dwarf2loc.c (unimplemented): Fix typo.
4215 2011-02-16 Tom Tromey <tromey@redhat.com>
4217 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4218 (compile_dwarf_to_ax) <default>: Use unimplemented.
4219 <DW_OP_deref>: Update.
4220 (disassemble_dwarf_expression): Update.
4221 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4222 (decode_locdesc): Update.
4223 * dwarf2expr.h (dwarf_stack_op_name): Update.
4225 2011-02-16 Tom Tromey <tromey@redhat.com>
4227 * ax.h (struct aop_map) <name>: Now const.
4229 2011-02-16 Tom Tromey <tromey@redhat.com>
4231 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4234 2011-02-16 Yao Qi <yao@codesourcery.com>
4236 * infrun.c (get_displaced_step_closure_by_addr): New.
4237 * inferior.h: Declare it.
4238 * arm-tdep.c: (arm_pc_is_thumb): Call
4239 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4242 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4243 Jan Kratochvil <jan.kratochvil@redhat.com>
4246 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4248 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4249 Jan Kratochvil <jan.kratochvil@redhat.com>
4251 * value.c (value_contents_copy_raw): Extend describing comment.
4252 Assert that the destination contents we're overwriting are wholly
4254 (value_contents_copy): Extend describing comment.
4256 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4257 Jan Kratochvil <jan.kratochvil@redhat.com>
4259 * value.c (value_available_contents_eq): Remove redundant local
4260 variables. Fix available contents comparision.
4261 * value.h (value_available_contents_eq): Extend describing
4264 2011-02-16 Yao Qi <yao@codesourcery.com>
4266 * thread.c (info_threads_command): Add missing i18n markup and remove
4269 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4271 * breakpoint.c (longjmp_names): New variable.
4272 (struct breakpoint_objfile_data): New type.
4273 (breakpoint_objfile_key): New variable.
4274 (msym_not_found): New variable.
4275 (msym_not_found_p): New predicate.
4276 (get_breakpoint_objfile_data): New function.
4277 (create_overlay_event_breakpoint): Check per-objfile cache for
4279 (create_longjmp_master_breakpoint): Likewise.
4280 (create_std_terminate_master_breakpoint): Likewise.
4281 (create_exception_master_breakpoint): Likewise.
4282 (_initialize_breakpoint): Register per-objfile data key.
4284 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4286 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4288 (create_longjmp_master_breakpoint): Loop over longjmp names.
4289 (create_std_terminate_master_breakpoint): Const-propagate parameter
4291 (update_breakpoints_after_exec): Adjust.
4292 (breakpoint_re_set): Adjust.
4294 2011-02-15 Michael Snyder <msnyder@vmware.com>
4296 * thread.c (info_threads_command): Process arg as thread id,
4297 or list of thread ids.
4298 (thread_find_command): New command.
4299 (_initialize_thread): Document argument for info threads.
4300 Document 'thread find' command.
4301 * NEWS: Document new command "thread find".
4303 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4305 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4306 * aclocal.m4: Regenerated with aclocal-1.11.1.
4307 * common/configure: Regenerate with autoconf-2.64.
4309 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4311 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4312 bool data type to a size of one byte.
4314 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4315 Jan Kratochvil <jan.kratochvil@redhat.com>
4317 * target.c (memory_xfer_live_readonly_partial): Document where to
4318 look for interface description.
4320 2011-02-15 Yao Qi <yao@codesourcery.com>
4323 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4324 order to store PC value on stack instead of text section.
4326 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4328 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4329 the EFP register set size.
4330 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4331 data from the VMX register.
4332 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4333 and write data from/to the VMX register.
4335 2011-02-14 Michael Snyder <msnyder@vmware.com>
4337 * command.h (enum command_class): New class 'no_set_class', for
4338 "show" commands without a corresponding "set" command.
4339 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4340 * copying.c (_initialize_copying): Ditto for "show copying" and
4342 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4344 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4345 which there is no corresponding "set" command (eg. "show copying").
4347 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4348 Jan Kratochvil <jan.kratochvil@redhat.com>
4350 * exec.c (section_table_available_memory): Change `len' parameter
4352 * exec.h (section_table_available_memory): Ditto.
4353 * value.h (read_value_memory): Rename the `offset' parameter to
4356 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4357 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 * memrange.c (compare_mem_ranges): Mention sort order in
4361 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4362 * tracepoint.c (traceframe_available_memory): Extend comment to
4363 mention what happens to RESULT when the target does not support
4366 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4367 Jan Kratochvil <jan.kratochvil@redhat.com>
4369 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4372 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4374 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4375 No longer handle NULL values.
4377 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4379 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4380 * value.c: Include "exceptions.h".
4381 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4383 * cp-abi.c: Include gdb_assert.h.
4384 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4385 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4387 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4388 parameters. No longer returns -1 on error.
4389 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4391 * cp-valprint.c: Include exceptions.h.
4392 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4393 the baseclass_offset. Handle unavailable base classes. Use
4394 val_print_invalid_address.
4395 * p-valprint.c: Include exceptions.h.
4396 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4397 when fetching the baseclass_offset. No longer expect
4398 baseclass_offset returning -1. Handle unavailable base classes.
4399 Use val_print_invalid_address.
4400 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4401 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4402 `embedded_offset' and `val' parameters. Adjust.
4403 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4404 parameter, and change its type to gdb_byte pointer. Add
4405 `embedded_offset' and `val' parameters. Adjust. No longer expect
4406 baseclass_offset returning -1.
4407 (value_dynamic_cast): Use value_contents_for_printing rather than
4408 value_contents. Adjust.
4409 (search_struct_field): No longer expect baseclass_offset returning
4411 (search_struct_method): If reading memory from the target is
4412 necessary, wrap it in a new value to pass to baseclass_offset. No
4413 longer expect baseclass_offset returning -1.
4414 (find_method_list): No longer expect baseclass_offset returning
4415 -1. Use value_contents_for_printing rather than value_contents.
4416 * valprint.c (val_print_invalid_address): New function.
4417 * valprint.h (val_print_invalid_address): Declare.
4418 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4419 and `val' parameters. No longer expect baseclass_offset returning
4421 * gnu-v2-abi.c: Include "exceptions.h".
4422 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4423 parameters. Handle unavailable memory. Recurse through
4424 gnuv2_baseclass_offset directly, rather than through
4425 baseclass_offset. No longer returns -1 on not found, instead
4427 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4428 `val' parameters. Adjust.
4430 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4432 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4433 almost but not quite adjacent.
4435 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4437 * value.h (value_entirely_available): Declare.
4438 * value.c (value_entirely_available): New function.
4439 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4440 real type if the pointer is unavailable.
4442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4444 * valops.c (value_repeat): Use read_value_memory instead of
4447 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4449 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4450 * value.c (value_contents_copy_raw, value_contents_copy): New
4452 (value_primitive_field): Use value_contents_copy_raw instead of
4454 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4456 (value_array, value_slice): Ditto.
4457 * valarith.c (value_subscripted_rvalue): Use
4458 value_contents_copy_raw instead of memcpy.
4460 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4462 <unavailable> references.
4464 * valops.c (get_value_at): Use value_from_contents_and_address,
4465 avoiding read_memory.
4467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4469 * c-valprint.c (c_val_print): Print a string with unavailable
4470 contents as an array.
4472 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4474 * value.h (unpack_bits_as_long): Delete declaration.
4475 (unpack_value_bits_as_long): Declare.
4476 (unpack_value_field_as_long): Declare.
4477 (value_field_bitfield): Declare.
4478 * value.c (unpack_bits_as_long): Rename to...
4479 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4480 value parameters. Return the extracted result in a new output
4481 parameter. If the value contents are unavailable, return false,
4482 otherwise return true.
4483 (unpack_value_bits_as_long): New.
4484 (unpack_field_as_long): Rename to...
4485 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4486 Add embedded_offset and value parameters. Return the extracted
4487 result in a new output parameter. If the value contents are
4488 unavailable, return false, otherwise return true.
4489 (unpack_value_field_as_long): New.
4490 (unpack_field_as_long_1): New.
4491 (unpack_field_as_long): Reimplement as wrapper around
4492 unpack_value_field_as_long_1.
4493 (value_field_bitfield): New function.
4494 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4495 unpack_value_bits_as_long. Mark the value as unavailable, if it
4497 * jv-valprint.c (java_print_value_fields): Use
4498 value_field_bitfield.
4499 * p-valprint.c (pascal_object_print_value_fields): Use
4500 value_field_bitfield.
4501 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4503 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4505 * value.c (get_internalvar_integer): Also return the int value of
4506 TYPE_CODE_INT INTERNALVAR_VALUE values.
4507 (set_internalvar): Don't special case TYPE_CODE_INT.
4509 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4511 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4512 INTERNALVAR_POINTER.
4514 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4515 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4516 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4518 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4520 * value.h (value_available_contents_eq): Declare.
4521 * value.c (find_first_range_overlap): New function.
4522 (value_available_contents_eq): New function.
4523 * valprint.c (val_print_array_elements): Use
4524 value_available_contents_eq.
4525 * ada-valprint.c (val_print_packed_array_elements): Use
4526 value_available_contents_eq.
4527 * jv-valprint.c (java_value_print): Use
4528 value_available_contents_eq.
4530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4532 * target.c (target_read_live_memory): New function.
4533 (memory_xfer_live_readonly_partial): New.
4534 (memory_xfer_partial): If reading from a traceframe, fallback to
4535 reading unavailable read-only memory from read-only regions of
4537 * tracepoint.c (disconnect_tracing): Adjust.
4538 (set_current_traceframe): New, factored out from
4539 set_traceframe_number.
4540 (set_traceframe_number): Reimplement to only change the traceframe
4541 number on the GDB side.
4542 (do_restore_current_traceframe_cleanup): Adjust.
4543 (make_cleanup_restore_traceframe_number): New.
4544 (cur_traceframe_number): New global.
4545 (tfile_open): Set cur_traceframe_number to no traceframe.
4546 (set_tfile_traceframe): New function.
4547 (tfile_trace_find): If looking up a traceframe using any method
4548 other than by number, make sure the current tfile traceframe
4549 matches gdb's current traceframe. Update the current tfile
4550 traceframe if the lookup succeeded.
4551 (tfile_fetch_registers, tfile_xfer_partial)
4552 (tfile_get_trace_state_variable_value): Make sure the remote
4553 traceframe matches gdb's current traceframe.
4554 * remote.c (remote_traceframe_number): New global.
4555 (remote_open_1): Set it to -1.
4556 (set_remote_traceframe): New function.
4557 (remote_fetch_registers, remote_store_registers)
4558 (remote_xfer_memory, remote_xfer_partial)
4559 (remote_get_trace_state_variable_value): Make sure the remote
4560 traceframe matches gdb's current traceframe.
4561 (remote_trace_find): If looking up a traceframe using any method
4562 other than by number, make sure the current remote traceframe
4563 matches gdb's current traceframe. Update the current remote
4564 traceframe if the lookup succeeded.
4565 * infrun.c (fetch_inferior_event): Adjust.
4566 * tracepoint.h (set_current_traceframe): Declare.
4567 (get_traceframe_number, set_traceframe_number): Add describing
4570 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4572 Mark pieces of values as unavailable if the corresponding memory
4575 * valops.c: Include tracepoint.h.
4576 (value_fetch_lazy): Use read_value_memory.
4577 (read_value_memory): New.
4578 * value.h (read_value_memory): Declare.
4579 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4580 * exec.c (section_table_available_memory): New function.
4581 * exec.h (section_table_available_memory): Declare.
4583 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4585 * Makefile.in (SFILES): Add memrange.c.
4586 (HFILES_NO_SRCDIR): Add memrange.h.
4587 (COMMON_OBS): Add memrange.o.
4588 * memrange.c: New file.
4589 * memrange.h: New file.
4590 * tracepoint.c: Include memrange.h.
4591 (struct mem_range): Delete.
4592 (mem_range_s): Delete.
4593 (traceframe_available_memory): New function.
4594 * tracepoint.h (traceframe_available_memory): Declare.
4596 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4598 * target.h (struct traceframe_info): Forward declare.
4599 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4600 (struct target_ops) <to_traceframe_info>: New field.
4601 (target_traceframe_info): New.
4602 * target.c (update_current_target): Inherit and default
4604 * remote.c (PACKET_qXfer_traceframe_info): New.
4605 (remote_protocol_features): Register qXfer:traceframe-info:read.
4606 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4607 (remote_traceframe_info): New.
4608 (init_remote_ops): Install it.
4609 (_initialize_remote): Install "set/show remote traceframe-info"
4611 * tracepoint.h (parse_traceframe_info): Declare.
4612 * tracepoint.c (struct mem_range): New.
4613 (mem_range_s): New typedef.
4614 (struct traceframe_info): New.
4615 (traceframe_info): New global.
4616 (free_traceframe_info): New function.
4617 (clear_traceframe_info): New function.
4618 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4620 (build_traceframe_info): New function.
4621 (tfile_traceframe_info): New function.
4622 (init_tfile_ops): Install tfile_traceframe_info.
4623 (traceframe_info_start_memory, free_result): New functions.
4624 (memory_attributes, traceframe_info_elements): New globals.
4625 (parse_traceframe_info, get_traceframe_info): New functions.
4626 * features/traceframe-info.dtd: New file.
4627 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4629 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4631 Base support for <unavailable> value contents.
4633 * value.h (value_bytes_available): Declare.
4634 (mark_value_bytes_unavailable): Declare.
4635 * value.c (struct range): New struct.
4636 (range_s): New typedef.
4637 (ranges_overlap): New function.
4638 (range_lessthan): New function.
4639 (ranges_contain_p): New function.
4640 (struct value) <unavailable>: New field.
4641 (value_bytes_available): New function.
4642 (mark_value_bytes_unavailable): New function.
4643 (require_not_optimized_out): Constify parameter.
4644 (require_available): New function.
4645 (value_contents_all, value_contents): Require all bytes be
4647 (value_free): Free `unavailable'.
4648 (value_copy): Copy `unavailable'.
4649 * valprint.h (val_print_unavailable): Declare.
4650 * valprint.c (valprint_check_validity): Rename `offset' parameter
4651 to `embedded_offset'. If printing a scalar, check whether the
4652 value chunk is available.
4653 (val_print_unavailable): New.
4654 (val_print_scalar_formatted): Check whether the value is
4656 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4657 pretty-printing unavailable values.
4659 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4661 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4662 * c-typeprint.c (c_type_print_args): Update the function comment. New
4663 variable param_type, initialize it. Remove const/volatile qualifiers
4664 for language_cplus and !show_artificial. Use param_type.
4666 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4668 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4669 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4670 * symtab.h (struct symtab) <next>: Comment extension.
4672 2011-02-12 Yao Qi <yao@codesourcery.com>
4674 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4676 2011-02-11 Yao Qi <yao@codesourcery.com>
4678 * common/Makefile.in: Add copyright header.
4680 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4682 * infrun.c (proceed): Move switching out and in of tfind mode from
4684 (fetch_inferior_event): ... to here.
4686 2011-02-11 Yao Qi <yao@codesourcery.com>
4688 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4690 * configure.ac: Add common to sub dir.
4691 * configure: Regenerate.
4693 2011-02-11 Yao Qi <yao@codesourcery.com>
4697 * common/Makefile.in: New.
4698 * common/configure.ac: New.
4699 * common/aclocal.m4: New.
4700 * common/configure: Generate.
4702 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4704 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4705 side of the parenthesis.
4708 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4709 * vec.h (VEC_block_remove): Fix comment.
4711 2011-02-08 Michael Snyder <msnyder@vmware.com>
4713 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4715 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4717 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4718 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4721 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4726 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4727 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4729 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4731 * dwarf2read.c (read_subroutine_type): Set special calling
4732 convention flag for functions compiled by IBM XL C for OpenCL.
4733 * ppc-sysv-tdep.c: Include "dwarf2.h"
4734 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4736 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4737 IBM OpenCL vector types calling convention.
4738 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4739 (ppc_sysv_abi_broken_return_value): Likewise.
4740 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4741 types calling convention.
4742 (ppc64_sysv_abi_return_value): Likewise.
4743 * spu-tdep.c: Include "dwarf2.h"
4744 (spu_return_value): Implement IBM OpenCL vector types calling
4747 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4749 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4750 correct ABI for AltiVec vector arguments.
4752 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4754 * valprint.c (val_print): Extend comment.
4755 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4756 interface explanation to val_print.
4757 (ada_val_print_array): Adjust comment to current interface.
4758 (print_field_values): Adjust comment to current interface.
4759 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4760 explanation to val_print.
4761 * f-valprint.c (f_val_print): Ditto.
4762 * jv-valprint.c (java_val_print): Ditto.
4763 * m2-valprint.c (m2_val_print): Ditto.
4764 * p-valprint.c (pascal_val_print): Ditto.
4766 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4768 * breakpoint.c (parse_breakpoint_sals): Fix description.
4770 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4771 Oguz Kayral <oguzkayral@gmail.com>
4773 * python/py-inferior.c (python_on_normal_stop): New function.
4774 (python_on_resume): New function.
4775 (python_inferior_exit): New function.
4776 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4777 inferior_exit observers.
4778 * python/py-evtregistry.c: New file.
4779 * python/py-threadevent.c : New file.
4780 * python/py-event.c: New file.
4781 * python/py-evts.c: New file.
4782 * python/py-continueevent.c: New file.
4783 * python/py-bpevent.c: New file.
4784 * python/py-signalevent.c: New file.
4785 * python/py-exetiedevent.c: New file.
4786 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4787 Move struct breakpoint_object from here...
4788 * python/python-internal.h: ... to here.
4789 * python/py-event.h: New file.
4790 * python/py-events.h: New file.
4791 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4792 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4793 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4794 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4795 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4796 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4797 Add build rules for all the above.
4799 2011-02-04 Tom Tromey <tromey@redhat.com>
4801 * dwarf2read.c (dwarf2_section_empty_p): New function.
4802 (dwarf2_read_section): Use dwarf2_section_empty_p.
4803 (dwarf2_section_size): New function.
4804 (dwarf2_get_section_info): Unconditionally read section.
4805 (dwarf2_read_index): Use dwarf2_section_empty_p.
4806 (partial_read_comp_unit_head): Use dwarf2_section_size.
4807 (dwarf2_symbol_mark_computed): Likewise.
4809 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4811 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4813 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4815 * mips-linux-tdep.c: Include xml-syscall.h.
4816 (mips_linux_get_syscall_number): New function.
4817 (mips_linux_init_abi): Add calls to
4818 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4819 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4820 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4821 * syscalls/mips-n32-linux.xml: New file.
4822 * syscalls/mips-n64-linux.xml: New file.
4823 * syscalls/mips-o32-linux.xml: New file.
4825 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4827 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4828 Complain about inverted range entries.
4829 (dwarf2_record_block_ranges): Likewise.
4831 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4834 * breakpoint.c (update_watchpoint): Fix name of the
4835 update_global_location_list function.
4836 (print_one_breakpoint): Fix typo.
4837 (_initialize_breakpoint): Remove extra space in hbreak help
4839 * breakpoint.h (struct bp_location) <length>: Fix field
4842 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4844 * regcache.c (registers_changed_ptid): Don't explictly always
4845 clear `current_regcache'. Only clear current_thread_ptid and
4846 current_thread_arch when PTID matches. Only reinit the frame
4847 cache if PTID matches the current inferior_ptid. Move alloca(0)
4849 (registers_changed): ... here.
4851 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4853 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4854 starts with __stack_chk_guard as stack guard symbol.
4856 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4858 * disasm.c (compare_lines): Handle the end of sequence markers
4859 within the line table to better support disassembling over
4860 compilation unit boundaries.
4862 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4864 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4865 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4866 implementation even if no symbols are available.
4867 (thumb_analyze_prologue): Update call to skip_prologue_function.
4868 (arm_analyze_prologue): Likewise.
4870 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4872 * arm-tdep.c: Include "observer.h".
4873 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4874 (arm_exidx_data_key): New static variable.
4875 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4876 (struct arm_exidx_data): Likewise.
4877 (arm_exidx_data_free): New function.
4878 (arm_compare_exidx_entries): Likewise.
4879 (arm_obj_section_from_vma): Likewise.
4880 (arm_exidx_new_objfile): Likewise.
4881 (arm_find_exidx_entry): Likewise.
4882 (arm_exidx_fill_cache): Likewise.
4883 (arm_exidx_unwind_sniffer): Likewise.
4884 (arm_exidx_unwind): New global variable.
4885 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4886 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4887 observer. Register arm_exidx_data_key as objfile data.
4889 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4891 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4892 due to accessing uninitialized variable. Fix indentation.
4894 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4896 * c-valprint.c (c_value_print): When doing virtual base pointer
4897 adjustment, create a new value with adjusted contents rather than
4898 changing the contents of the value being printed (and getting it
4901 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4903 * xml-support.c (xml_find_attribute): New.
4904 (xinclude_start_include): Use it.
4905 * xml-support.h (xml_find_attribute): Declare.
4906 * memory-map.c (memory_map_start_memory)
4907 (memory_map_start_property): Use xml_find_attribute.
4908 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4910 * remote.c (start_thread): Use xml_find_attribute.
4911 * solib-target.c (library_list_start_segment)
4912 (library_list_start_section, library_list_start_library)
4913 (library_list_start_list): Use xml_find_attribute.
4914 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4915 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4916 (tdesc_start_field): Use xml_find_attribute.
4918 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4920 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4921 (BUILD_OCL_VTYPES): Update.
4923 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4925 * configure.ac: Work around non-GNU sed limitation when computing
4926 python version number.
4927 * configure: Regenerate.
4929 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 Fix debug printing of TYPE_INSTANCE.
4932 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4933 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4935 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4937 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4938 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4939 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4940 * ada-operator.inc: Rename the file to ...
4941 * ada-operator.def: ... here, wrap all the entries by macro OP.
4942 * expprint.c (op_name_standard): Remove all the entries. Include
4943 "std-operator.def" instead.
4944 * expression.h (enum exp_opcode): Include "std-operator.def" and
4945 "ada-operator.def". Move all the entries ...
4946 * std-operator.def: ... here, wrap all the entries by macro OP.
4948 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4950 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4951 * breakpoint.c (remove_jit_event_breakpoints): New function.
4952 * jit.c (jit_descriptor_addr): Delete.
4953 (registering_code): Delete.
4954 (clear_int): Delete.
4955 (jit_inferior_data): New variable.
4956 (struct jit_inferior_data): New type.
4957 (get_jit_inferior_data): New function.
4958 (jit_inferior_data_cleanup): New function.
4959 (jit_read_descriptor): Adjust.
4960 (jit_register_code): Adjust.
4961 (jit_breakpoint_re_set_internal): New function; move code here ...
4962 (jit_inferior_init): ... from here.
4963 (jit_breakpoint_re_set): Adjust.
4964 (jit_reset_inferior_data_and_breakpoints): New function.
4965 (jit_inferior_created_observer): Adjust.
4966 (jit_inferior_exit_hook): Adjust.
4967 (jit_executable_changed_observer): New function.
4968 (jit_event_handler): Adjust.
4969 (_initialize_jit): Adjust.
4971 2011-01-31 Michael Snyder <msnyder@vmware.com>
4973 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4976 2011-01-31 Tom Tromey <tromey@redhat.com>
4979 * python/python.c (execute_gdb_command): Call
4980 prevent_dont_repeat.
4981 * top.c (suppress_dont_repeat): New global.
4982 (dont_repeat): Use it.
4983 (prevent_dont_repeat): New function.
4984 * command.h (prevent_dont_repeat): Declare.
4986 2011-01-31 Tom Tromey <tromey@redhat.com>
4988 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4989 * python/py-breakpoint.c (bppy_set_silent): Use
4990 breakpoint_set_silent.
4991 (bppy_set_thread): Use breakpoint_set_thread.
4992 (bppy_set_task): Use breakpoint_set_task.
4993 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4994 (breakpoint_set_task): Declare.
4995 (make_breakpoint_silent): Remove.
4996 * breakpoint.c (breakpoint_set_silent): New function.
4997 (breakpoint_set_thread): Likewise.
4998 (breakpoint_set_task): Likewise.
4999 (make_breakpoint_silent): Remove.
5001 2011-01-31 Tom Tromey <tromey@redhat.com>
5003 * breakpoint.h (user_breakpoint_p): Declare.
5004 * breakpoint.c (user_breakpoint_p): New function.
5005 (breakpoint_1): Use it.
5006 (save_breakpoints): Likewise.
5008 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5010 * configure.ac: Add handling of Python distribution on Windows.
5011 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5012 sysconfig variables are not defined, then do not use them.
5013 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5014 instead. On Windows, return all paths using forward-slashes
5015 rather than backslashes.
5017 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5019 * configure.ac: Remove fallback behavior for building
5020 against Python. Remove tweaking of Python include path.
5021 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5022 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5023 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5024 Always restore CPPFLAGS and LIBS after linking test.
5025 * configure: Regenerated.
5026 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5027 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5028 * python/python-internal.h: Adjust includes of Python .h files.
5030 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5032 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5035 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5037 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5040 2011-01-31 Yao Qi <yao@codesourcery.com>
5042 * arm-linux-nat.c: Update calls to regcache_register_status
5043 instead of regcache_valid_p.
5044 * aix-thread.c: Likewise.
5045 * i386gnu-nat.c: Likewise.
5047 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5050 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5051 touching TYPE_FIELD_ARTIFICIAL.
5053 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5055 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5058 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5060 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5061 selected, don't try iterating over the traceframe's blocks.
5062 (tfile_has_stack): If there's no traceframe selected, then there's
5064 (tfile_has_registers): If there's no traceframe selected, then
5065 there's no registers.
5067 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5069 * target.c (memory_xfer_partial): No need to restore shadows if we
5070 haven't read anything.
5072 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5074 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5075 and val_print_scalar_formatted.
5077 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5079 * tracepoint.c (tfile_read): New.
5080 (tfile_open): Use it.
5081 (tfile_get_traceframe_address): Use it.
5082 (tfile_trace_find): Use it.
5083 (walk_blocks_callback_func): New typedef.
5084 (match_blocktype): New function.
5085 (traceframe_walk_blocks): New function.
5086 (traceframe_find_block_type): New function.
5087 (tfile_fetch_registers, tfile_xfer_partial)
5088 (tfile_get_trace_state_variable_value): Use
5089 traceframe_find_block_type and tfile_read.
5091 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5093 * remote-mips.c: Add internationalization mark ups. Remove
5094 trailing \n from already marked up strings.
5096 2011-01-26 Tom Tromey <tromey@redhat.com>
5098 * python/py-prettyprint.c (print_string_repr): Clear
5099 'addressprint' option when calling val_print_string.
5100 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5101 option when calling val_print_string.
5103 2011-01-26 Tom Tromey <tromey@redhat.com>
5105 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5107 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5109 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5110 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5111 (gdb_py_long_as_ulongest): New defines.
5112 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5113 (gdb_py_int_as_long): Declare.
5114 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5115 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5116 (valpy_long): Add comment.
5117 * python/py-utils.c (get_addr_from_python): Use
5118 gdb_py_long_as_ulongest. Handle overflow properly.
5119 (gdb_py_object_from_longest): New function.
5120 (gdb_py_object_from_ulongest): Likewise.
5121 (gdb_py_int_as_long): Likewise.
5122 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5123 * python/py-symtab.c (salpy_get_pc): Use
5124 gdb_py_long_from_ulongest.
5125 (salpy_get_line): Use PyInt_FromLong.
5126 * python/py-param.c (set_parameter_value): Use
5128 * python/py-lazy-string.c (stpy_get_address): Use
5129 gdb_py_long_from_ulongest.
5130 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5131 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5132 * python/py-breakpoint.c (bppy_set_thread): Use
5134 (bppy_set_task): Likewise.
5135 (bppy_set_ignore_count): Likewise.
5136 (bppy_set_hit_count): Likewise.
5137 * python/py-block.c (blpy_get_start): Use
5138 gdb_py_object_from_ulongest.
5139 (blpy_get_end): Likewise.
5140 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5142 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5145 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5146 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5147 equality test for objfile, initialize addr_low if needed.
5149 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5151 * tui/tui-regs.c (tui_register_format): Remove dead code.
5153 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5155 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5156 instead of print_scalar_formatted.
5157 (print_scalar_formatted): Don't handle 's' format strings here,
5158 and add an assertion that we never see such format here.
5159 * valprint.h (val_print_scalar_formatted): Declare.
5160 * valprint.c (val_print_scalar_formatted): New.
5161 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5162 instead of print_scalar_formatted.
5163 * jv-valprint.c (java_val_print): Ditto.
5164 * p-valprint.c (pascal_val_print): Ditto.
5165 * ada-valprint.c (ada_val_print_1): Ditto.
5166 * f-valprint.c (f_val_print): Ditto.
5167 * infcmd.c (registers_info): Ditto.
5168 * m2-valprint.c (m2_val_print): Ditto.
5170 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5172 * m2-valprint.c (print_unbounded_array): Pass
5173 value_contents_for_printing rather than value_contents, to
5174 m2_print_array_contents. Also pass in the value.
5176 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5178 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5179 (save_gdb_index_command): Switch to .gdb_index version 4.
5181 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5183 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5184 than frame_register, and always pass a valid value to val_print.
5186 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5188 Centralize printing "<optimized out>".
5190 * valprint.h (val_print_optimized_out): Declare.
5191 * cp-valprint.c (cp_print_value_fields): Use
5192 val_print_optimized_out.
5193 * jv-valprint.c (java_print_value_fields): Ditto.
5194 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5195 * printcmd.c (print_formatted): Ditto.
5196 * valprint.c (valprint_check_validity): Ditto.
5197 (value_check_printable): Ditto.
5198 (val_print_optimized_out): New.
5200 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5202 * infcmd.c (default_print_registers_info): Allocate values so to
5203 never pass a NULL value to val_print.
5205 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5207 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5208 boolean. Make sure to always pass a value that matches the
5209 contents buffer to callees. Preserve `address' for following
5211 * value.c (value_contents_for_printing_const): New.
5212 (value_address): Constify value argument.
5213 * value.h (value_contents_for_printing_const): Declare.
5214 (value_address): Constify value argument.
5216 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5218 * regcache.c (struct regcache_descr): Rename
5219 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5220 and sizeof_cooked_register_valid_p to
5221 sizeof_cooked_register_status.
5222 (init_regcache_descr): Adjust.
5223 (struct regcache): Rename register_valid_p field to
5225 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5226 (do_cooked_read): Adjust.
5227 (regcache_valid_p): Rename to ...
5228 (regcache_register_status): ... this. Adjust.
5229 (regcache_invalidate): Adjust.
5230 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5232 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5233 as unavailable, not valid.
5234 (regcache_dump): Adjust.
5235 * regcache.h (enum register_status): New.
5236 (regcache_register_status): Declare.
5237 (regcache_invalidate): Delete declaration.
5238 * corelow.c (get_core_registers): Adjust.
5239 * tracepoint.c (tfile_fetch_registers): Adjust.
5240 * trad-frame.c (REG_VALUE): Rename to ...
5241 (TF_REG_VALUE): ... this.
5242 (REG_UNKNOWN): Rename to ...
5243 (TF_REG_UNKNOWN): ... this.
5244 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5245 * mi/mi-main.c (register_changed_p): Adjust.
5247 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5249 * regcache.c (struct regcache_descr): Remove outdated comment.
5250 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5252 (regcache_xmalloc): Rename to ...
5253 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5254 Allocate the regcache type accordingly.
5255 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5256 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5257 cooked registers, not raw.
5258 (regcache_dup_no_passthrough): Delete.
5259 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5260 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5261 mention obsolete write_register_bytes.
5262 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5264 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5266 Stop remote_read_bytes from handling partial reads itself.
5268 * remote-fileio.c: Include target.h.
5269 (remote_fileio_write_bytes): Delete.
5270 (remote_fileio_func_open, remote_fileio_func_write)
5271 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5273 (remote_fileio_func_stat): Use target_read_memory and
5274 target_write_memory.
5275 (remote_fileio_func_gettimeofday): Use target_write_memory.
5276 (remote_fileio_func_system): Use target_read_memory.
5277 * remote.c (remote_write_bytes): Make it static.
5278 (remote_read_bytes): Don't handle partial reads here.
5279 * remote.h (remote_read_bytes): Delete declaration.
5281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5283 Simplify XML parsing a bit.
5285 * xml-support.h (gdb_xml_parse_quick): Declare.
5286 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5287 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5289 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5290 gdb_xml_create_parser_and_cleanup_1.
5291 (gdb_xml_parse_quick): New.
5292 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5293 * osdata.c (osdata_parse): Ditto.
5294 * remote.c (remote_threads_info): Ditto.
5295 * solib-target.c (solib_target_parse_libraries): Ditto.
5296 * xml-syscall.c (syscall_parse_xml): Ditto.
5297 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5299 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5301 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5302 with remote-mips.o added to gdb_target_obs.
5303 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5305 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5307 * ada-valprint.c (val_print_packed_array_elements): Pass the
5308 correct struct value to val_print.
5309 (ada_val_print_1): Ditto.
5311 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5313 Don't lose embedded_offset in printing routines throughout.
5315 * valprint.h (val_print_array_elements): Change prototype.
5316 * valprint.c (val_print_array_elements): Add `embedded_offset'
5317 parameter, and adjust to pass it down to val_print, while passing
5318 `valaddr' or `address' unmodified. Take embedded_offset into
5319 account when checking repetitions.
5320 * c-valprint.c (c_val_print): Pass embedded_offset to
5321 val_print_array_elements instead of adjusting `valaddr' and
5323 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5324 embedded_offset to val_print_array_elements instead of adjusting
5326 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5327 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5328 val_print_array_elements and pascal_object_print_value_fields
5329 instead of adjusting `valaddr'.
5330 (pascal_object_print_value_fields): Add `offset' parameter, and
5332 (pascal_object_print_value): Add `offset' parameter, and adjust to
5334 (pascal_object_print_static_field): Use
5335 value_contents_for_printing/value_embedded_offset, rather than
5337 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5338 parameter, and adjust to use it. Use
5339 value_contents_for_printing/value_embedded_offset, rather than
5341 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5342 (ada_val_print_array): Add `offset' parameter, and adjust to use
5344 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5345 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5346 Instead work with offsets. Use
5347 value_contents_for_printing/value_embedded_offset, rather than
5348 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5349 and use value_from_pointer to extract a target pointer, rather
5350 than value_from_longest.
5351 (print_variant_part): Add `offset' parameter. Replace
5352 `outer_valaddr' parameter by a new `outer_offset' parameter.
5353 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5354 (ada_value_print): Use
5355 value_contents_for_printing/value_embedded_offset, rather than
5357 (print_record): Add `offset' parameter, and adjust to pass it
5359 (print_field_values): Add `offset' parameter. Replace
5360 `outer_valaddr' parameter by a new `outer_offset' parameter.
5361 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5362 Use value_contents_for_printing/value_embedded_offset, rather than
5364 * d-valprint.c (dynamic_array_type): Use
5365 value_contents_for_printing/value_embedded_offset, rather than
5367 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5368 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5369 (java_print_value_fields): Take `offset' into account. Don't
5370 re-adjust `valaddr'. Instead pass down adjusted offsets.
5371 (java_val_print): Take `embedded_offset' into account. Pass it to
5372 java_print_value_fields.
5373 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5374 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5375 down adjusted offsets.
5376 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5377 (f_val_print): Take `embedded_offset' into account.
5379 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5381 * inflow.c: Include "gdbcmd.h".
5382 (interactive_mode): New static global, moved here from top.c.
5383 (show_interactive_mode): New function, moved here from top.c.
5384 use gdb_has_a_terminal instead of input_from_terminal_p to
5385 determine the current mode.
5386 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5388 (_initialize_inflow): Add the "set/show interactive-mode"
5389 commands. Moved here from top.c, after having adjusted slightly
5391 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5393 (input_from_terminal_p): Remove handling of "interactive-mode"
5394 setting, moved to infow.c.
5395 (init_main): Remove creation of the "set/show interactive-mode"
5396 commands, moved to inflow.c.
5398 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5400 * NEWS: Add entry for native ia64-hpux support.
5402 2011-01-19 Tom Tromey <tromey@redhat.com>
5405 * thread.c (free_thread): Free 'name'.
5406 (print_thread_info): Emit thread name. Change CLI output.
5407 (thread_name_command): New function.
5408 (do_captured_thread_select): Emit newline.
5409 (_initialize_thread): Register 'thread name' command.
5410 * target.h (struct target_ops) <to_thread_name>: New field.
5411 (target_thread_name): New macro.
5412 * target.c (update_current_target): Handle to_thread_name.
5413 * python/py-infthread.c (thpy_get_name): New function.
5414 (thpy_set_name): Likewise.
5415 (thread_object_getset): Add "name".
5416 * linux-nat.c (linux_nat_thread_name): New function.
5417 (linux_nat_add_target): Set to_thread_name.
5418 * gdbthread.h (struct thread_info) <name>: New field.
5420 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5422 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5423 (ada_val_print_1): Likewise.
5425 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5427 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5428 upper limit address is not greater than the function end address
5429 when the upper limit could not be computed using the debugging
5432 2011-01-17 Tom Tromey <tromey@redhat.com>
5434 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5436 * utils.c: Include gdb_regex.h.
5437 (do_regfree_cleanup): New function.
5438 (make_regfree_cleanup): Likewise.
5439 (get_regcomp_error): Likewise.
5440 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5442 2011-01-17 Tom Tromey <tromey@redhat.com>
5444 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5447 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5449 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5450 for internal variables.
5451 (last_was_structop): New static variable.
5452 (COMPLETE): New token.
5453 (field_exp): New rule to group all '.' suffix handling.
5454 Add mark_struct_expression calls when approriate to be able
5455 to correctly find fields for completion.
5456 (yylex): Adapt to handle field completion and set INTVAR when
5459 2011-01-14 Yao Qi <yao@codesourcery.com>
5461 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5462 save_reggroup, restore_reggroup and all_reggroup.
5464 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5466 * ada-valprint. (ada_printchar): Use the correct type length
5467 in call to ada_emit_char.
5468 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5470 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5472 * solib-som.h (hpux_major_release): Declare variable here.
5473 * solib-som.c: Remove <sys/utsname.h> header.
5474 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5475 (hpux_major_release): Make global, change default value to
5476 DEFAULT_HPUX_MAJOR_RELEASE.
5477 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5478 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5479 Add "solib-som.h" header.
5480 (set_hpux_major_release): New function.
5481 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5483 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5485 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5487 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5489 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5490 new-line at end of warning message.
5491 (ia64_hpux_store_register): Remove trailing new-line at end of
5493 * ia64-hpux-tdep.c: Rephrase comment.
5494 * solib-ia64-hpux.c (struct dld_info): Change type of field
5495 dld_flags from "long long" to ULONGEST.
5497 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5499 * target.h (deprecated_child_ops): Delete declaration.
5500 * target.c (deprecated_child_ops): Delete definition.
5502 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5504 * Makefile.in (hpux-thread.o): Delete rule.
5505 * configure.ac: Don't check for HPUX DCE threads support.
5506 * configure, config.in: Regenerate.
5507 * hppa-hpux-nat.c (child_suppress_run): Delete.
5508 (hppa_hpux_child_can_run): Delete.
5509 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5510 * hpux-thread.c: Delete.
5512 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5514 * hpux-thread.c (hpux_pid_to_str): Delete.
5516 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5518 * ada-valprint.c (ada_emit_char): Remove strange code.
5519 Check that c is <= UCHAR_MAX before passing it to isascii.
5520 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5522 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5524 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5525 to the case where instream is stdin.
5527 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5529 * ia64-tdep.h (struct regcache): Forward declare.
5530 (struct ia64_infcall_ops): New struct type.
5531 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5533 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5534 Renames ia64_find_global_pointer.
5535 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5536 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5537 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5539 (ia64_infcall_ops): New static global constant.
5540 (ia64_gdbarch_init): Set tdep->infcall_ops.
5541 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5542 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5543 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5544 (ia64_hpux_dummy_code): New static global constant.
5545 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5546 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5547 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5549 (ia64_hpux_infcall_ops): New static global constant.
5550 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5551 for inferior function calls to work properly on ia64-hpux.
5553 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5555 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5556 * ia64-tdep.h (struct frame_info): forward declaration.
5557 (struct gdbarch_tdep): Add field size_of_register_frame.
5558 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5559 to determine the size of the register frame.
5560 (ia64_size_of_register_frame): New function.
5561 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5562 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5563 (IA64_HPUX_UREG_REASON): New macro.
5564 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5566 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5567 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5568 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5571 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5573 Add support for ia64-hpux.
5574 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5575 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5577 * configure.host: Add handling for ia64-hpux hosts. Add associated
5579 * configure.tgt: Add handling for ia64-hpux targets.
5580 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5581 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5582 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5584 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5586 [ttrace] Compute thread list immediately after attach.
5587 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5589 (inf_ttrace_attach): Use it.
5591 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5593 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5594 if we could not determine the frame's function address. Instead,
5595 use the frame's PC, and then continue.
5597 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5599 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5600 not already defined.
5602 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5604 * ia64-tdep.c (ia64_struct_type_p): New function.
5605 (ia64_extract_return_value): Handle integral values that are
5606 less than 8 bytes long.
5607 (ia64_push_dummy_call): Likewise.
5609 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5611 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5612 floatformat_ia64_ext.
5613 (floatformat_ia64_ext_big): New static const.
5614 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5616 2011-01-12 Tom Tromey <tromey@redhat.com>
5618 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5620 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5621 (mi_cmd_thread_list_ids): Likewise.
5622 (mi_cmd_data_list_changed_registers): Likewise.
5623 (mi_cmd_data_list_register_values): Likewise.
5624 (mi_cmd_data_write_register_values): Likewise.
5625 (mi_cmd_data_evaluate_expression): Likewise.
5626 (mi_cmd_data_read_memory): Likewise.
5627 (mi_cmd_data_read_memory_bytes): Likewise.
5628 (mi_cmd_data_write_memory): Likewise.
5629 (mi_cmd_enable_timings): Likewise.
5630 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5631 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5632 (mi_cmd_var_delete): Likewise.
5633 (mi_cmd_var_set_format): Likewise.
5634 (mi_cmd_var_show_format): Likewise.
5635 (mi_cmd_var_info_num_children): Likewise.
5636 (mi_cmd_var_list_children): Likewise.
5637 (mi_cmd_var_info_type): Likewise.
5638 (mi_cmd_var_info_expression): Likewise.
5639 (mi_cmd_var_show_attributes): Likewise.
5640 (mi_cmd_var_assign): Likewise.
5641 (mi_cmd_var_update): Likewise.
5642 (mi_cmd_enable_pretty_printing): Likewise.
5643 (mi_cmd_var_set_update_range): Likewise.
5644 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5646 (mi_cmd_target_file_put): Likewise.
5647 (mi_cmd_target_file_delete): Likewise.
5648 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5650 (mi_cmd_stack_info_depth): Likewise.
5651 (mi_cmd_stack_list_locals): Likewise.
5652 (mi_cmd_stack_list_args): Likewise.
5653 (mi_cmd_stack_select_frame): Likewise.
5654 (mi_cmd_stack_select_frame): Likewise.
5655 (mi_cmd_stack_info_frame): Likewise.
5656 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5658 (mi_cmd_file_list_exec_source_files): Likewise.
5659 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5660 (mi_cmd_env_cd): Likewise.
5661 (mi_cmd_env_path): Likewise.
5662 (mi_cmd_env_dir): Likewise.
5663 (mi_cmd_inferior_tty_show): Likewise.
5664 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5665 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5666 (mi_cmd_break_watch): Likewise.
5668 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5670 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5671 (ppc_linux_insert_hw_breakpoint): Likewise.
5672 (ppc_linux_remove_hw_breakpoint): Likewise.
5673 (ppc_linux_insert_watchpoint): Likewise.
5675 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5676 Jan Kratochvil <jan.kratochvil@redhat.com>
5678 PR fortran/11104 and DWARF unbound arrays detection.
5679 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5680 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5681 unspecified upper bound.
5682 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5683 variables array_size_array, tmp_type and offset_item. New variable
5684 array. Remove call to f77_get_upperbound. New variables array_type
5685 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5686 the final call to deprecated_set_value_type.
5688 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5690 Make value allocations more lazy.
5691 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5692 instead of allocate_value and set_value_lazy when possible.
5693 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5694 instead of allocate_value and set_value_lazy.
5695 * findvar.c (value_of_register_lazy): Likewise.
5696 (read_var_value): Remove V preallocation, call just check_typedef in
5697 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5698 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5699 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5700 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5701 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5702 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5703 the end, remove set_value_lazy there.
5704 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5705 instead of allocate_value and set_value_lazy when possible.
5706 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5707 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5708 of allocate_value and set_value_lazy.
5709 (value_from_contents_and_address): Use allocate_value_lazy instead of
5710 allocate_value and set_value_lazy when possible.
5712 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5714 * disasm.c (dump_insns): Support dumping opcodes for MI.
5715 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5716 dumping of instruction opcodes.
5718 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5720 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5723 2011-01-11 Tom Tromey <tromey@redhat.com>
5725 * thread.c (do_captured_thread_select): Emit newline before
5728 2011-01-11 Michael Snyder <msnyder@vmware.com>
5730 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5731 * score-tdep.c: Ditto.
5732 * score-tdep.h: Ditto.
5733 * ser-base.c: Ditto.
5734 * ser-go32.c: Ditto.
5737 * ser-mingw.c: Ditto.
5738 * ser-pipe.c: Ditto.
5740 * ser-unix.c: Ditto.
5741 * sh64-tdep.c: Ditto.
5742 * shnbsd-nat.c: Ditto.
5746 * solib-darwin.c: Ditto.
5747 * solib-frv.c: Ditto.
5749 * solib-irix.c: Ditto.
5750 * solib-osf.c: Ditto.
5751 * solib-pa64.c: Ditto.
5752 * solib-som.c: Ditto.
5753 * solib-spu.c: Ditto.
5754 * solib-sunos.c: Ditto.
5755 * solib-svr4.c: Ditto.
5757 * sol-thread.c: Ditto.
5761 * sparc64-linux-tdep.c: Ditto.
5762 * sparc64-tdep.c: Ditto.
5763 * sparc-linux-nat.c: Ditto.
5764 * sparc-linux-tdep.c: Ditto.
5765 * sparc-sol2-nat.c: Ditto.
5766 * sparc-sol2-tdep.c: Ditto.
5767 * sparc-tdep.c: Ditto.
5768 * sparc-tdep.h: Ditto.
5769 * spu-tdep.c: Ditto.
5770 * stabsread.c: Ditto.
5771 * stabsread.h: Ditto.
5779 * target-descriptions.c: Ditto.
5780 * target-descriptions.h: Ditto.
5782 * target-memory.c: Ditto.
5783 * terminal.h: Ditto.
5786 * tracepoint.c: Ditto.
5787 * tracepoint.h: Ditto.
5788 * trad-frame.h: Ditto.
5789 * typeprint.c: Ditto.
5791 2011-01-11 Michael Snyder <msnyder@vmware.com>
5793 * ui-file.c: Comment cleanup, mostly periods and spaces.
5798 * v850-tdep.c: Ditto.
5799 * valarith.c: Ditto.
5801 * valprint.c: Ditto.
5802 * valprint.h: Ditto.
5807 * vax-tdep.c: Ditto.
5811 * windows-nat.c: Ditto.
5812 * windows-tdep.c: Ditto.
5813 * xcoffread.c: Ditto.
5814 * xcoffsolib.c: Ditto.
5815 * xml-support.c: Ditto.
5816 * xstormy16-tdep.c: Ditto.
5817 * xtensa-tdep.c: Ditto.
5818 * xtensa-tdep.h: Ditto.
5820 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5822 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5823 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5825 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5826 Thiago Jung Bauermann <bauerman@br.ibm.com>
5828 Implement support for PowerPC BookE ranged watchpoints.
5830 (struct breakpoint_ops) <resources_needed>: New method.
5831 Initialize to NULL in all existing breakpoint_ops instances.
5832 (struct breakpoint) <exact>: New field.
5833 (target_exact_watchpoints): Declare external global.
5834 * breakpoint.c (target_exact_watchpoints): New global flag.
5835 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5836 b->enable_state to bp_enabled before calling
5837 hw_watchpoint_used_count.
5838 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5839 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5841 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5842 if the watchpoint is exact.
5843 (resources_needed_watchpoint): New function.
5844 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5845 (watch_command_1): Set b->exact if the user asked for an exact
5846 watchpoint and one can be set.
5847 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5848 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5849 the user asks for an exact watchpoint and one can be set. Return
5850 number of needed debug registers to watch the expression.
5851 * gdbtypes.c (is_scalar_type): New function, based on
5852 valprint.c:scalar_type_p.
5853 (is_scalar_type_recursive): New function.
5854 * gdbtypes.h (is_scalar_type_recursive): Declare.
5855 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5856 handle regions when ranged watchpoints are available.
5857 (create_watchpoint_request): New function.
5858 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5859 create_watchpoint_request.
5860 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5861 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5862 `set powerpc' and `show powerpc' commands.
5863 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5864 Mention documentation comment in the target macro.
5865 (target_region_ok_for_hw_watchpoint): Document return value.
5867 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5869 * breakpoint.c (update_watchpoint): Decide on using a software or
5870 hardware watchpoint after the bp_locations are created.
5872 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5874 Convert hardware watchpoints to use breakpoint_ops.
5875 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5876 <insert_location>: ... this. Return int instead of void.
5877 Accept pointer to struct bp_location instead of pointer to
5878 struct breakpoint. Adapt all implementations.
5879 (breakpoint_ops) <remove>: Rename to...
5880 <remove_location>: ... this. Accept pointer to struct bp_location
5881 instead of pointer to struct breakpoint. Adapt all implementations.
5882 * breakpoint.c (insert_catchpoint): Delete function.
5883 (insert_bp_location): Call the watchpoint or catchpoint's
5884 breakpoint_ops.insert method.
5885 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5886 breakpoint_ops.remove method.
5887 (insert_watchpoint, remove_watchpoint): New functions.
5888 (watchpoint_breakpoint_ops): New structure.
5889 (watch_command_1): Initialize the OPS field.
5890 * inf-child.c (inf_child_insert_fork_catchpoint)
5891 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5892 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5893 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5895 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5896 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5897 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5898 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5899 * target.c (update_current_target): Change default implementation of
5900 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5901 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5902 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5903 to_set_syscall_catchpoint to return_one.
5904 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5905 (debug_to_insert_exec_catchpoint): Report return value.
5906 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5907 (to_insert_exec_catchpoint): Change declaration to return int instead
5910 2011-01-11 Michael Snyder <msnyder@vmware.com>
5912 * arm-tdep.c: Internationalization.
5915 * fork-child.c: Ditto.
5916 * nto-procfs.c: Ditto.
5917 * ppc-sysv-tdep.c: Ditto.
5919 * remote-mips.c: Ditto.
5921 * rs6000-nat.c: Ditto.
5922 * rs6000-tdep.c: Ditto.
5926 * xml-support.c: Ditto.
5927 * mi/mi-cmd-break.c: Ditto.
5928 * mi/mi-cmd-var.c: Ditto.
5929 * mi/mi-interp.c: Ditto.
5930 * mi/mi-main.c: Ditto.
5932 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5934 * remote-sim.c (gdbsim_store_register): Update API to
5935 sim_store_register to check more error conditions.
5937 2011-01-10 Michael Snyder <msnyder@vmware.com>
5939 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5940 * nto-tdep.c: Ditto.
5941 * nto-tdep.h: Ditto.
5942 * objc-exp.y: Ditto.
5943 * objc-lang.c: Ditto.
5944 * objfiles.c: Ditto.
5945 * objfiles.h: Ditto.
5946 * observer.c: Ditto.
5947 * opencl-lang.c: Ditto.
5950 * parser-defs.h: Ditto.
5953 * posix-hdep.c: Ditto.
5954 * ppcbug-rom.c: Ditto.
5955 * ppc-linux-nat.c: Ditto.
5956 * ppc-linux-tdep.c: Ditto.
5957 * ppc-linux-tdep.h: Ditto.
5958 * ppcnbsd-tdep.c: Ditto.
5959 * ppcobsd-tdep.c: Ditto.
5960 * ppcobsd-tdep.h: Ditto.
5961 * ppc-sysv-tdep.c: Ditto.
5962 * ppc-tdep.h: Ditto.
5963 * printcmd.c: Ditto.
5964 * proc-abi.c: Ditto.
5965 * proc-flags.c: Ditto.
5967 * proc-utils.h: Ditto.
5968 * progspace.h: Ditto.
5969 * prologue-value.c: Ditto.
5970 * prologue-value.h: Ditto.
5971 * psympriv.h: Ditto.
5973 * p-typeprint.c: Ditto.
5974 * p-valprint.c: Ditto.
5975 * ravenscar-sparc-thread.c: Ditto.
5976 * ravenscar-thread.c: Ditto.
5977 * ravenscar-thread.h: Ditto.
5979 * regcache.c: Ditto.
5980 * regcache.h: Ditto.
5982 * remote-fileio.c: Ditto.
5983 * remote-fileio.h: Ditto.
5985 * remote-m32r-sdi.c: Ditto.
5986 * remote-mips.c: Ditto.
5987 * remote-sim.c: Ditto.
5988 * rs6000-aix-tdep.c: Ditto.
5989 * rs6000-nat.c: Ditto.
5990 * rs6000-tdep.c: Ditto.
5992 2011-01-10 Michael Snyder <msnyder@vmware.com>
5994 * charset.c (validate): Internationalization.
5995 * coffread.c (read_one_sym): Ditto.
5996 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5997 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5998 * inflow.c (new_tty): Ditto.
5999 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6000 * m32c-tdep.c (m32c_return_value): Ditto.
6001 * mep-tdep.c (mep_store_return_value): Ditto.
6002 * score-tdep.c (score7_fetch_insn): Ditto.
6003 * ser-mingw.c (pipe_windows_open): Ditto.
6004 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6005 * spu-tdep.c (spu_register_type): Ditto.
6006 * tracepoint.c (trace_find_command): Ditto.
6007 * valarith.c (value_pos): Ditto.
6009 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6011 * ada-valprint.c (printstr): Minor comment reformatting.
6013 2011-01-08 Michael Snyder <msnyder@vmware.com>
6015 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6018 2011-01-08 Michael Snyder <msnyder@vmware.com>
6020 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6021 * hppa-hpux-tdep.c: Ditto.
6022 * hppa-linux-nat.c: Ditto.
6023 * hppa-linux-tdep.c: Ditto.
6024 * hppanbsd-tdep.c: Ditto.
6025 * hppa-tdep.c: Ditto.
6026 * hppa-tdep.h: Ditto.
6027 * hpux-thread.c: Ditto.
6028 * i386-cygwin-tdep.c: Ditto.
6029 * i386-darwin-nat.c: Ditto.
6030 * i386gnu-nat.c: Ditto.
6031 * i386-linux-nat.c: Ditto.
6032 * i386-linux-tdep.c: Ditto.
6033 * i386-nat.c: Ditto.
6034 * i386-nat.h: Ditto.
6035 * i386nbsd-tdep.c: Ditto.
6036 * i386-sol2-nat.c: Ditto.
6037 * i386-stub.c: Ditto.
6038 * i386-tdep.c: Ditto.
6039 * i386-tdep.h: Ditto.
6040 * i387-tdep.c: Ditto.
6041 * ia64-linux-nat.c: Ditto.
6042 * ia64-linux-tdep.c: Ditto.
6043 * ia64-tdep.c: Ditto.
6047 * inferior.c: Ditto.
6048 * inferior.h: Ditto.
6054 * iq2000-tdep.c: Ditto.
6055 * irix5-nat.c: Ditto.
6061 * jv-typeprint.c: Ditto.
6062 * jv-valprint.c: Ditto.
6063 * language.c: Ditto.
6064 * language.h: Ditto.
6065 * linespec.c: Ditto.
6066 * linux-fork.c: Ditto.
6067 * linux-nat.c: Ditto.
6068 * linux-thread-db.c: Ditto.
6069 * lm32-tdep.c: Ditto.
6071 2011-01-08 Michael Snyder <msnyder@vmware.com>
6073 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6075 * m2-typeprint.c: Ditto.
6076 * m2-valprint.c: Ditto.
6077 * m32c-tdep.c: Ditto.
6078 * m32r-linux-nat.c: Ditto.
6079 * m32r-rom.c: Ditto.
6080 * m32r-tdep.c: Ditto.
6081 * m32r-tdep.h: Ditto.
6082 * m68hc11-tdep.c: Ditto.
6083 * m58klinux-nat.c: Ditto.
6084 * m68k-tdep.c: Ditto.
6085 * m88k-tdep.c: Ditto.
6086 * m88k-tdep.h: Ditto.
6087 * machoread.c: Ditto.
6088 * macrocmd.c: Ditto.
6089 * macroexp.c: Ditto.
6090 * macrotab.c: Ditto.
6093 * mdebugread.c: Ditto.
6094 * mdebugread.h: Ditto.
6097 * memory-map.h: Ditto.
6098 * mep-tdep.c: Ditto.
6099 * microblaze-rom.c: Ditto.
6100 * microblaze-tdep.c: Ditto.
6102 * mips-irix-tdep.c: Ditto.
6103 * mips-linux-nat.c: Ditto.
6104 * mips-linux-tdep.c: Ditto.
6105 * mips-linux-tdep.h: Ditto.
6106 * mipsnbsd-nat.c: Ditto.
6107 * mipsnbsd-tdep.c: Ditto.
6108 * mipsread.c: Ditto.
6109 * mips-tdep.c: Ditto.
6110 * mips-tdep.h: Ditto.
6111 * mn10300-linux-tdep.c: Ditto.
6112 * mn10300-tdep.c: Ditto.
6113 * mn10300-tdep.h: Ditto.
6116 * moxie-tdep.c: Ditto.
6117 * moxie-tdep.h: Ditto.
6120 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6122 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6124 2011-01-08 Robert Millan <rmh@gnu.org>
6126 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6128 2011-01-07 Michael Snyder <msnyder@vmware.com>
6130 * charset.c (_initialize_charset): Fix typo in string.
6132 2011-01-07 Michael Snyder <msnyder@vmware.com>
6134 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6136 * tui/tui-layout.c (tui_set_layout_for_display_command):
6137 Split line so that operator goes to beginning of line.
6138 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6139 assignment out of if statement.
6141 2011-01-07 Michael Snyder <msnyder@vmware.com>
6143 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6144 * ada-lang.h: Ditto.
6145 * ada-tasks.c: Ditto.
6146 * ada-valprint.c: Ditto.
6147 * aix-threads.c: Ditto.
6148 * alpha-linux-nat.c: Ditto.
6149 * alpha-linux-tdep.c: Ditto.
6150 * alpha-mdebug-tdep.c: Ditto.
6151 * alpha-nat.c: Ditto.
6152 * alpha-osf1-tdep.c: Ditto.
6153 * alpha-tdep.c: Ditto.
6154 * alphabsd-nat.c: Ditto.
6155 * alphabsd-tdep.c: Ditto.
6156 * amd64-darwin-tdep.c: Ditto.
6157 * amd64-linux-nat.c: Ditto.
6158 * amd64-linux-tdep.c: Ditto.
6159 * amd64-sol2-tdep.c: Ditto.
6160 * amd64-tdep.c: Ditto.
6161 * amd64-fbsd-tdep.c: Ditto.
6162 * amd64-nbsd-tdep.c: Ditto.
6163 * amd64-obsd-tdep.c: Ditto.
6164 * amd64-linux-nat.c: Ditto.
6165 * amd64-linux-tdep.c: Ditto.
6166 * arm-tdep.c: Ditto.
6167 * arm-tdep.h: Ditto.
6168 * armnbsd-nat.c: Ditto.
6169 * avr-tdep.c: Ditto.
6170 * bfin-tdep.c: Ditto.
6172 * c-typeprintc: Ditto.
6173 * c-valprint.c: Ditto.
6174 * coff-pe-read.h: Ditto.
6175 * coffreead.c: Ditto.
6176 * cris-tdep.c: Ditto.
6178 * darwin-nat-info.c: Ditto.
6179 * darwin-nat.c: Ditto.
6180 * dbug-rom.c: Ditto.
6184 * dec-thread.c: Ditto.
6186 * demangle.c: Ditto.
6187 * dicos-tdep.c: Ditto.
6188 * dictionary.c: Ditto.
6189 * dictionary.h: Ditto.
6190 * dink32-rom.c: Ditto.
6192 * doublest.c: Ditto.
6194 * dummy-frame.c: Ditto.
6195 * dwarf2-frame.c: Ditto.
6196 * dwarf2expr.c: Ditto.
6197 * dwarf2loc.c: Ditto.
6198 * dwarf2read.c: Ditto.
6202 * event-top.h: Ditto.
6203 * exceptions.c: Ditto.
6204 * exceptions.h: Ditto.
6206 * expprint.c: Ditto.
6207 * expression.h: Ditto.
6211 * f-typeprint.c: Ditto.
6212 * f-valprint.c: Ditto.
6213 * fbsd-nat.c: Ditto.
6215 * fork-child.c: Ditto.
6218 * frv-linux-tdep.c: Ditto.
6219 * frv-tdep.c: Ditto.
6221 * gdb-stabs.h: Ditto.
6222 * gdb_assert.h: Ditto.
6223 * gdb_string.h: Ditto.
6224 * gdb_thread_db.h: Ditto.
6225 * gdb_wait.h: Ditto.
6226 * gdbarch.sh: Ditto.
6228 * gdbthread.h: Ditto.
6229 * gdbtypes.c: Ditto.
6230 * gdbtypes.h: Ditto.
6233 * gnu-v2-abi.c: Ditto.
6234 * gnu-v3-abi.c: Ditto.
6235 * go32-nat.c: Ditto.
6236 * gdbarch.c: Regenerate.
6237 * gdbarch.h: Regenerate.
6239 2011-01-07 Michael Snyder <msnyder@vmware.com>
6241 * ax-gdb.c: Adjust some long output strings.
6242 * breakpoint.c: Ditto.
6247 * linux-nat.c: Ditto.
6248 * solib-pa64.c: Ditto.
6249 * solib-som.c: Ditto.
6251 2011-01-06 Tom Tromey <tromey@redhat.com>
6255 * python/python.c (GdbMethods): Add "newest_frame" method.
6256 * python/python-internal.h (gdbpy_newest_frame): Declare.
6257 * python/py-frame.c (gdbpy_newest_frame): New function.
6259 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6261 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6262 * jit.c (jit_debug): New variable.
6263 (show_jit_debug): New function.
6264 (struct target_buffer): Use ULONGEST.
6265 (bfd_open_from_target_memory): Likewise.
6266 (jit_register_code, jit_inferior_init): Add debug output.
6267 (_initialize_jit): Register "debug jit" command.
6269 2011-01-06 Tom Tromey <tromey@redhat.com>
6271 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6272 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6275 2011-01-06 Tom Tromey <tromey@redhat.com>
6277 * python/py-frame.c (frapy_block): Use get_frame_block.
6279 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6281 Do not stop on SIGPRIO signals by default
6282 * infrun.c (_initialize_infrun): Unset signal_stop and
6283 signal_print for TARGET_SIGNAL_PRIO.
6285 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6287 * ada-tasks.c: Fix style violation in comment.
6289 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6291 * linespec.c (decode_compound, find_method): Remove trailing \n
6292 at end of error string.
6293 * solib-irix.c (irix_current_sos): Likewise.
6294 * varobj.c (uninstall_variable): Likewise.
6296 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6298 * copyright.py: New script.
6299 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6300 Launch emacs without exec'ing. Call copyright.py afterwards.
6302 2011-01-05 Michael Snyder <msnyder@vmware.com>
6304 * addrmap.c: Shorten lines of >= 80 columns.
6305 * arch-utils.c: Ditto.
6306 * arch-utils.h: Ditto.
6308 * ax-general.c: Ditto.
6310 * blockframe.c: Ditto.
6311 * breakpoint.c: Ditto.
6312 * buildsym.c: Ditto.
6314 * c-typeprint.c: Ditto.
6316 * coffread.c: Ditto.
6320 * cp-namespace.c: Ditto.
6321 * cp-support.c: Ditto.
6322 * dbug-rom.c: Ditto.
6327 * dictionary.c: Ditto.
6329 * doublest.c: Ditto.
6330 * dwarf2-frame.c: Ditto.
6331 * dwarf2expr.c: Ditto.
6332 * dwarf2loc.c: Ditto.
6333 * dwarf2read.c: Ditto.
6336 * event-loop.c: Ditto.
6337 * event-loop.h: Ditto.
6338 * exceptions.h: Ditto.
6340 * expprint.c: Ditto.
6341 * expression.h: Ditto.
6343 * f-valprint.c: Ditto.
6345 * frame-base.c: Ditto.
6346 * frame-unwind.c: Ditto.
6347 * frame-unwind.h: Ditto.
6351 * gdb-stabs.h: Ditto.
6352 * gdb_assert.h: Ditto.
6353 * gdb_dirent.h: Ditto.
6354 * gdb_obstack.h: Ditto.
6356 * gdbtypes.c: Ditto.
6357 * gdbtypes.h: Ditto.
6358 * inf-ttrace.c: Ditto.
6363 * inline-frame.h: Ditto.
6364 * language.c: Ditto.
6365 * language.h: Ditto.
6366 * libunwind-frame.c: Ditto.
6367 * libunwind-frame.h: Ditto.
6368 * linespec.c: Ditto.
6369 * linux-nat.c: Ditto.
6370 * linux-nat.h: Ditto.
6371 * linux-thread-db.c: Ditto.
6372 * machoread.c: Ditto.
6373 * macroexp.c: Ditto.
6374 * macrotab.c: Ditto.
6377 * mdebugread.c: Ditto.
6382 * objfiles.c: Ditto.
6383 * objfiles.h: Ditto.
6385 * p-typeprint.c: Ditto.
6386 * p-valprint.c: Ditto.
6388 * printcmd.c: Ditto.
6389 * proc-events.c: Ditto.
6391 * progspace.c: Ditto.
6392 * progspace.h: Ditto.
6393 * psympriv.h: Ditto.
6396 * regcache.c: Ditto.
6397 * regcache.h: Ditto.
6398 * remote-fileio.c: Ditto.
6400 * ser-mingw.c: Ditto.
6402 * ser-unix.c: Ditto.
6405 * solib-frv.c: Ditto.
6406 * solib-irix.c: Ditto.
6407 * solib-osf.c: Ditto.
6408 * solib-pa64.c: Ditto.
6409 * solib-som.c: Ditto.
6410 * solib-sunos.c: Ditto.
6411 * solib-svr4.c: Ditto.
6412 * solib-target.c: Ditto.
6416 * stabsread.c: Ditto.
6417 * stabsread.c: Ditto.
6420 * symfile-mem.c: Ditto.
6426 * target-descriptions.c: Ditto.
6427 * target-memory.c: Ditto.
6430 * terminal.h: Ditto.
6433 * tracepoint.c: Ditto.
6434 * tracepoint.h: Ditto.
6438 * user-regs.c: Ditto.
6439 * user-regs.h: Ditto.
6441 * valarith.c: Ditto.
6443 * valprint.c: Ditto.
6444 * valprint.h: Ditto.
6449 * xcoffread.c: Ditto.
6450 * xcoffsolib.c: Ditto.
6451 * xcoffsolib.h: Ditto.
6452 * xml-syscall.c: Ditto.
6453 * xml-tdesc.c: Ditto.
6455 2011-01-05 Michael Snyder <msnyder@vmware.com>
6457 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6458 * cli/cli-decode.c: Ditto.
6459 * cli/cli-dump.c: Ditto.
6460 * cli/cli-logging.c: Ditto.
6461 * cli/cli-script.c: Ditto.
6462 * cli/cli-setshow.c: Ditto.
6463 * common/signals.c: Ditto.
6464 * mi/mi-cmd-break.c: Ditto.
6465 * mi/mi-cmd-disas.c: Ditto.
6466 * mi/mi-cmd-stack.c: Ditto.
6467 * mi/mi-cmd-var.c: Ditto.
6468 * mi/mi-cmds.c: Ditto.
6469 * mi/mi-common.h: Ditto.
6470 * mi/mi-console.c: Ditto.
6471 * mi/mi-interp.c: Ditto.
6472 * mi/mi-main.c: Ditto.
6473 * osf-share/cma_attr.c: Ditto.
6474 * osf-share/cma_deb_core.h: Ditto.
6475 * osf-share/cma_debug_client.h: Ditto.
6476 * osf-share/cma_handle.h: Ditto.
6477 * osf-share/cma_mutex.h: Ditto.
6478 * osf-share/cma_stack_int.h: Ditto.
6479 * osf-share/cma_tcb_defs.h: Ditto.
6480 * python/py-auto-load.c: Ditto.
6481 * python/py-breakpoint.c: Ditto.
6482 * python/py-cmd.c: Ditto.
6483 * python/py-frame.c: Ditto.
6484 * python/py-objfile.c: Ditto.
6485 * python/py-param.c: Ditto.
6486 * python/py-progspace.c: Ditto.
6487 * python/py-symbol.c: Ditto.
6488 * python/py-value.c: Ditto.
6489 * python/python-internal.h: Ditto.
6490 * python/python.c: Ditto.
6491 * tui/tui-data.c: Ditto.
6492 * tui/tui-disasm.c: Ditto.
6493 * tui/tui-hooks.c: Ditto.
6494 * tui/tui-io.c: Ditto.
6495 * tui/tui-layout.c: Ditto.
6496 * tui/tui-regs.c: Ditto.
6497 * tui/tui-source.c: Ditto.
6498 * tui/tui-stack.c: Ditto.
6499 * tui/tui-win.c: Ditto.
6500 * tui/tui-windata.c: Ditto.
6501 * tui/tui-winsource.c: Ditto.
6503 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6505 * configure.ac, gdb.1: Copyright year update.
6507 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6509 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6510 this_pc_in_block, morestack_msym and morestack_name. Check for
6511 "__morestack" minimal symbol there.
6513 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6515 * symfile.c (find_sym_fns): Add call to dont_repeat.
6517 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6519 Copyright year update in most files (performed by copyright.sh).
6521 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6523 * top.c (print_gdb_version): Update copyright year in version output.
6525 For older changes see ChangeLog-2010.
6531 version-control: never