1 2011-06-03 Tom Tromey <tromey@redhat.com>
3 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5 * python/py-exitedevent.c (create_exited_event_object): Change
6 type of 'exit_code'. Optionally add exit_code attribute.
7 (emit_exited_event): Change type of 'exit_code'.
8 * python/py-event.h (emit_exited_event): Update.
9 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
10 * infrun.c (handle_inferior_event): Set exit code fields on
12 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
14 * inferior.c (exit_inferior_1): Initialize new fields.
16 2011-06-03 Tom Tromey <tromey@redhat.com>
18 * dwarf2expr.c (get_signed_type): New function.
19 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
21 2011-06-02 Keith Seitz <keiths@redhat.com>
23 * objc-lang.c (find_methods): Increment objfile_csym earlier.
25 2011-06-02 Pedro Alves <pedro@codesourcery.com>
27 * top.h (simplified_command_loop): Delete declaration.
29 2011-06-01 Mike Frysinger <vapier@gentoo.org>
31 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
32 gdb_sysroot to the "len" variable. Append both to "arg_buf".
34 2011-06-01 Yao Qi <yao@codesourcery.com>
36 * objfiles.h (obj_section_addr): Update reference to objfile from
38 (obj_section_endaddr): Likewise.
40 2011-06-01 Daniel Jacobowitz <drow@false.org>
42 * MAINTAINERS: Update my email address and affiliation. Also
43 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
45 2010-05-31 Keith Seitz <keiths@redhat.com>
48 * linespec.c (get_search_block): New function.
49 (find_methods): Add FILE_SYMTATB parameter and use it and
50 get_search_block to pass an appropriate block to
51 lookup_symbol_in_namespace.
52 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
53 Check if *ARGPTR starts with a filename first.
54 If it does, call locate_first_half again to locate the next
55 "first half" of the linespec.
56 Pass FILE_SYMTATB to decode_objc and decode_compound.
57 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
58 (locate_first_half): Stop on the first colon seen.
59 (decode_compound): Add FILE_SYMTAB parameter.
60 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
61 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
62 get_search_block with lookup_symbol.
63 (find_method): Add FILE_SYMTAB parameter and pass it to
65 (decode_objc): Use get_search_block.
67 2010-05-31 Keith Seitz <keiths@redhat.com>
70 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
71 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
72 and CP_ANONYMOUS_NAMESPACE_LEN.
73 (cp_is_anonymous): Likewise.
74 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
75 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
76 * dwarf2read.c (namespace_name): Likewise.
77 (fixup_partial_die): Likewise.
78 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
79 seen in the input, keep it.
81 2011-05-30 Pedro Alves <pedro@codesourcery.com>
83 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
84 * inf-loop.h (inferior_event_handler_wrapper): Delete.
85 * inf-loop.c (inferior_event_handler_wrapper): Delete.
86 (inferior_event_handler): Don't handle INF_QUIT_REQ.
87 * remote.c (_initialize_remote): Register
88 async_remote_interrupt_twice directly as
89 sigint_remote_twice_token event.
91 2011-05-30 Pedro Alves <pedro@codesourcery.com>
93 * target.h (enum inferior_event_type): Delete INF_ERROR.
94 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
96 2011-05-30 Pedro Alves <pedro@codesourcery.com>
98 * interps.c (interp_set): Don't cancel continuations.
100 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
102 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
104 2011-05-30 Pedro Alves <pedro@codesourcery.com>
106 * continuations.h (continuation_ftype): Add `err' parameter.
108 (do_all_continuations, do_all_continuations_thread)
109 (do_all_intermediate_continuations)
110 (do_all_intermediate_continuations_thread)
111 (do_all_inferior_continuations): Add `err' parameter.
112 * continuations.c (do_my_continuations_1, do_my_continuations)
113 (do_all_inferior_continuations, do_all_continuations_ptid)
114 (do_all_continuations_thread_callback)
115 (do_all_continuations_thread, do_all_continuations)
116 (do_all_intermediate_continuations_thread_callback)
117 (do_all_intermediate_continuations_thread)
118 (do_all_intermediate_continuations): Add `err' parameter, and pass
119 it down all the way to the continuations proper.
120 * inf-loop.c (inferior_event_handler): If fetching an inferior
121 event throws an error, don't pop the target, and still call the
122 continuations, but with `err' set. Adjust all other continuation
124 * breakpoint.c (until_break_command_continuation): Add `err'
126 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
127 issue another step if `err' is set.
128 (struct until_next_continuation_args): New.
129 (until_next_continuation): Add `err' parameter. Adjust.
130 (until_next_command): Adjust.
131 (struct finish_command_continuation_args): Add `thread' field.
132 (finish_command_continuation): Add `err' parameter. Handle it.
133 (finish_forward): Adjust.
134 (attach_command_continuation): Add `err' parameter. Handle it.
135 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
136 cancel the continuations.
137 * interps.c (interp_set): Adjust to cancel the continuations.
138 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
139 continuations rather than discarding.
140 (free_thread): Don't clear thread inferior resources here.
141 (delete_thread_1): Do it here instead. And do it before removing
142 the thread from the threads list. Tag the thread as exited before
143 clearing thread inferior resources.
145 2011-05-30 Joel Brobecker <brobecker@adacore.com>
147 * infcall.c (call_function_by_hand): Rephrase error message.
149 2011-05-27 Pedro Alves <pedro@codesourcery.com>
151 * defs.h (struct thread_info, struct inferior): Delete forward
153 * breakpoint.h (struct thread_info): New forward declaration.
154 * observer.sh (struct inferior): New forward declaration.
155 * python/python-internal.h (struct inferior): New forward
158 2011-05-27 Pedro Alves <pedro@codesourcery.com>
160 * defs.h (struct continuation, continuation_ftype)
161 (continuation_free_arg_ftype, add_continuation)
162 (do_all_continuations, do_all_continuations_thread)
163 (discard_all_continuations, discard_all_continuations_thread)
164 (add_intermediate_continuation, do_all_intermediate_continuations)
165 (do_all_intermediate_continuations_thread)
166 (discard_all_intermediate_continuations)
167 (discard_all_intermediate_continuations_thread)
168 (add_inferior_continuation, do_all_inferior_continuations)
169 (discard_all_inferior_continuations): Move to ...
170 * continuations.h: ... this new file.
171 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
172 infcmd.c, inferior.c, infrun.c, interps.c: Include
175 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
176 Doug Evans <dje@google.com>
178 Fix PR 10970, PR 12702.
179 * linux-nat.c (linux_lwp_is_zombie): New function.
180 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
181 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
183 2011-05-27 Pedro Alves <pedro@codesourcery.com>
185 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
187 (add_continuation, add_intermediate_continuation)
188 (add_inferior_continuation): Use them.
189 * continuations.c (struct continuation): Use them.
190 (make_continuation_ftype): Delete.
191 (make_continuation, add_inferior_continuation, add_continuation)
192 (add_intermediate_continuation): Use continuation_ftype and
193 continuation_free_arg_ftype. Rename parameters to shorter names.
195 2011-05-27 Pedro Alves <pedro@codesourcery.com>
197 * continuations.c (make_continuation): Make it return void.
198 (do_my_continuations): Rename to ...
199 (do_my_continuations_1): ... this. Remove old_chain parameter and
201 (do_my_continuations): New.
202 (discard_my_continuations): Rename to ...
203 (discard_my_continuations_1): ... this. Remove old_chain
204 parameter and adjust.
205 (discard_my_continuations): New.
206 (add_inferior_continuation): Simplify.
207 (do_all_inferior_continuations): Reimplement on top
209 (discard_all_inferior_continuations): Simplify.
210 (add_continuation): Simplify.
211 (do_all_continuations_ptid): Simplify.
212 (discard_all_continuations_thread_callback): Simplify.
213 (add_intermediate_continuation): Simplify.
214 (discard_all_intermediate_continuations_thread_callback):
217 2011-05-27 Pedro Alves <pedro@codesourcery.com>
219 * utils.c (struct continuation, add_continuation)
220 (add_inferior_continuation)
221 (do_all_inferior_continuations, discard_all_inferior_continuations)
222 (restore_thread_cleanup, do_all_continuations_ptid)
223 (do_all_continuations_thread_callback)
224 (do_all_continuations_thread, do_all_continuations)
225 (discard_all_continuations_thread_callback)
226 (discard_all_continuations_thread, discard_all_continuations)
227 (add_intermediate_continuation)
228 (do_all_intermediate_continuations_thread_callback)
229 (do_all_intermediate_continuations_thread)
230 (do_all_intermediate_continuations)
231 (discard_all_intermediate_continuations_thread_callback)
232 (discard_all_intermediate_continuations_thread)
233 (discard_all_intermediate_continuations): Move to ...
234 * continuations.c: ... this new file, and adjust to no longer
235 implement continuations on top of cleanups.
236 * Makefile.in (SFILES): Add continuations.c.
237 (COMMON_OBS): Add continuations.o.
239 2011-05-26 Pedro Alves <pedro@codesourcery.com>
241 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
242 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
243 Internal error on invalid values.
244 * reverse.c: Don't handle EXEC_ERROR.
245 * mi/mi-main.c: Don't handle EXEC_ERROR.
247 2011-05-26 Pedro Alves <pedro@codesourcery.com>
249 * record.c: Include event-loop.h, inf-loop.h.
250 (record_beneath_to_async): New global.
251 (tmp_to_async): New global.
252 (record_async_inferior_event_token): New global.
253 (record_open_1): Don't error out if async is enabled.
254 (record_open): Handle to_async. Create an async event source in
256 (record_close): Delete the async event source.
257 (record_resumed): New global.
258 (record_execution_dir): New global.
259 (record_resume, record_core_resume): Set them. Register the
260 target on the event loop.
261 (record_wait): Rename to ...
262 (record_wait_1): ... this. Add more debug output. Handle
263 TARGET_WNOHANG, and the target beneath returning
264 TARGET_WAITKIND_IGNORE.
265 (record_wait): Reimplement on top of record_wait_1.
266 (record_async_mask_value): New global.
267 (record_async, record_async_mask, record_can_async_p)
268 (record_is_async_p, record_execution_direction): New functions.
269 (init_record_ops, init_record_core_ops): Install new methods.
270 * infrun.c (fetch_inferior_event): Temporarily switch the global
271 execution direction to the direction the target was going.
272 (execution_direction): Change type to int.
273 * target.c (default_execution_direction): New function.
274 (update_current_target): Inherit and de_fault
275 to_execution_direction.
276 * target.h (struct target_ops) <to_execution_direction>: New
278 (target_execution_direction): New macro.
279 * inferior.h (execution_direction): Change type to int.
281 2011-05-26 Pedro Alves <pedro@codesourcery.com>
283 * infcall.c (call_function_by_hand): Don't allow calling functions
284 in reverse execution mode.
286 2011-05-26 Pedro Alves <pedro@codesourcery.com>
288 * infcmd.c (finish_command): Allow async finish in reverse.
290 2011-05-26 Yao Qi <yao@codesourcery.com>
292 * gdb_thread_db.h: Delete. Move to ...
293 * common/gdb_thread_db.h: ... here.
295 2011-05-26 Pedro Alves <pedro@codesourcery.com>
297 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
298 function's entry point instead of a manually managed momentary
299 breakpoint, and only ever issue one proceed call.
300 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
301 doing a reverse-finish, switch to stepi mode, to do another step.
302 (insert_step_resume_breakpoint_at_sal): Make public.
303 (normal_stop): No need to save function value return registers if
305 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
307 2011-05-26 Pedro Alves <pedro@codesourcery.com>
309 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
310 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
311 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
313 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
314 step-resume breakpoints.
315 (print_it_typical): Handle bp_hp_step_resume.
316 (bpstat_what): Ditto.
317 (bptype_string): Ditto.
318 (print_one_breakpoint_location): Ditto.
319 (allocate_bp_location): Ditto.
321 (breakpoint_re_set_one): Ditto.
322 * infrun.c (handle_inferior_event): Adjust. Split
323 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
324 BPSTAT_WHAT_HP_STEP_RESUME.
325 (insert_step_resume_breakpoint_at_sal): Rename to ...
326 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
327 parameter. Handle it.
328 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
329 insert_step_resume_breakpoint_at_sal_1.
330 (insert_step_resume_breakpoint_at_frame): Rename to ...
331 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
332 set a high-priority step-resume breakpoint.
333 (insert_step_resume_breakpoint_at_frame): Adjust comment.
334 (insert_step_resume_breakpoint_at_caller): Ditto.
336 2011-05-26 Pedro Alves <pedro@codesourcery.com>
338 * breakpoint.c (iterate_over_related_breakpoints): New.
339 (do_map_delete_breakpoint): New.
340 (delete_command): Pass do_map_delete_breakpoint to
341 map_breakpoint_numbers.
342 (do_disable_breakpoint): New.
343 (do_map_disable_breakpoint): Iterate over the breakpoint's related
345 (do_enable_breakpoint): Rename to ...
346 (enable_breakpoint_disp): ... this.
347 (enable_breakpoint): Adjust.
348 (do_enable_breakpoint): New.
349 (enable_once_breakpoint): Delete.
350 (do_map_enable_breakpoint): New.
351 (do_map_enable_once_breakpoint): New.
352 (enable_once_command, enable_delete_command)
353 (delete_trace_command): Iterate over the breakpoint's related
356 2011-05-26 Pedro Alves <pedro@codesourcery.com>
358 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
359 for ALPHA_ZERO_REGNUM.
360 (alpha_supply_int_regs): Explicitly supply zero as the value for
361 ALPHA_ZERO_REGNUM in the register cache.
362 * alpha-nat.c (fetch_osf_core_registers): Ditto.
364 2011-05-26 Yao Qi <yao@codesourcery.com>
366 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
368 2011-05-26 Tristan Gingold <gingold@adacore.com>
370 * symfile.h (struct dwarf2_section_names): New type.
371 (struct dwarf2_debug_sections): New type.
372 (dwarf2_has_info): Add parameter.
373 * dwarf2read.c (dwarf2_elf_names): New variable.
374 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
375 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
376 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
377 (dwarf2_has_info): Add names parameter. Pass names
378 to dwarf2_locate_sections.
379 (section_is_p): Rewrite using the names parameter.
380 (dwarf2_locate_sections): Use section names from the names parameter.
381 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
382 * elfread.c (read_psyms): Ditto.
383 * machoread.c (macho_symfile_read): Ditto.
385 2011-05-25 Andreas Schwab <schwab@redhat.com>
388 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
390 2011-05-24 Keith Seitz <keiths@redhat.com>
393 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
394 (decode_compound): Unconditionally call keep_name_info.
396 2011-05-24 Pedro Alves <pedro@codesourcery.com>
398 * breakpoint.c (watchpoint_check): If the watchpoint went out of
399 scope, clear its command list.
400 (map_breakpoint_numbers): Don't walk the related breakpoints list
403 2011-05-24 Tom Tromey <tromey@redhat.com>
405 * MAINTAINERS: Move Jim Blandy to past maintainers.
407 2011-05-24 Tristan Gingold <gingold@adacore.com>
409 * symfile.h (enum dwarf2_section_enum): New type.
410 (dwarf2_get_section_info): New prototype.
411 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
412 section_name by sect. Use a switch to select the info.
413 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
414 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
416 2011-05-24 Pedro Alves <pedro@codesourcery.com>
418 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
419 shared library event breakpoint if there's no execution.
421 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
423 * breakpont.c (remove_hw_watchpoints): Remove unused function.
424 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
426 2011-05-23 Tom Tromey <tromey@redhat.com>
428 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
431 2011-05-23 Doug Evans <dje@google.com>
433 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
434 entry for RuntimeError to doc string.
436 2011-05-23 Jerome Guitton <guitton@adacore.com>
438 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
439 sequence for probing loops.
441 2011-05-23 Pedro Alves <pedro@codesourcery.com>
443 * infrun.c (user_visible_resume_ptid): Fix typos in describing
446 2011-05-21 Mark Kettenis <kettenis@gnu.org>
448 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
449 zero as the value for %g0 in the register cache.
450 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
451 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
453 2011-05-20 Pedro Alves <pedro@codesourcery.com>
455 * infrun.c (proceed): Set previous_inferior_ptid here.
456 (init_wait_for_inferior): Initialize previous_inferior_ptid from
457 inferior_ptid, not null_ptid.
458 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
459 (fetch_inferior_event): Nor here.
461 2011-05-20 Pedro Alves <pedro@codesourcery.com>
463 * inf-loop.c (inferior_event_handler): Only output a message if
466 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
468 * MAINTAINERS: Update my e-mail address.
470 2011-05-20 Pedro Alves <pedro@codesourcery.com>
472 * infrun.c (proceed): Switch the inferior event loop to
473 INF_EXEC_COMPLETE if the target refused to resume from a
476 2011-05-20 Pedro Alves <pedro@codesourcery.com>
478 * infcmd.c: Include "inf-loop.h".
479 (step_once): When stepping into an inline subroutine, pretend the
480 target has run. If the target can async, switch the inferior
481 event loop to INF_EXEC_COMPLETE.
482 * inferior.h (user_visible_resume_ptid): Declare.
483 * infrun.c (user_visible_resume_ptid): New function, factored out
486 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
487 that the current thread is running. Merge async and sync
490 2011-05-20 Pedro Alves <pedro@codesourcery.com>
492 * infcmd.c (step_1): Simplify synchronous case.
494 2011-05-20 Pedro Alves <pedro@codesourcery.com>
496 * tracepoint.c: Include exceptions.h.
497 (TFILE_PID): Move higher in file.
498 (tfile_open): Delay pushing the tfile target until we're assured
499 the tfile header is present in the file. Wrap reading the initial
500 newline-terminated lines in TRY_CATCH. Pop the target if the
501 initial setup failed. Add the tfile's thread immediately
502 aftwards, before any non-essential setup. Don't skip
503 post_create_inferior if there are no traceframes present in the
505 (tfile_close): Remove redundant check for null before xfree call.
506 (tfile_thread_alive): New function.
507 (init_tfile_ops): Register it as to_thread_alive callback.
509 2011-05-20 Pedro Alves <pedro@codesourcery.com>
511 * tracepoint.c (tfile_open): Delete #if 0'd code.
513 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
515 Fix -readnow for -gdwarf-4 unused type units.
516 * dwarf2read.c (struct signatured_type): Remove the field offset.
517 (create_signatured_type_table_from_index): Remove its initialization.
518 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
519 instead. Add a complaint call.
520 (process_psymtab_comp_unit): Change assignment to gdb_assert.
521 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
522 (lookup_signatured_type_at_offset, read_signatured_type)
523 (write_one_signatured_type): Update the field for per_cu.
525 2011-05-19 Tom Tromey <tromey@redhat.com>
527 * python/py-inferior.c (python_inferior_exit): Use
529 (python_on_resume): Likewise.
531 2011-05-19 Matt Rice <ratmice@gmail.com>
533 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
535 2011-05-19 Hui Zhu <teawater@gmail.com>
537 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
539 2011-05-19 Hui Zhu <teawater@gmail.com>
541 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
543 2011-05-18 Tom Tromey <tromey@redhat.com>
545 * dwarf2read.c (dwarf2_add_field): Constify.
546 * value.c (value_static_field): Constify.
547 * gdbtypes.h (struct main_type) <field.field_location.physname>:
549 * ax-gdb.c (gen_static_field): Constify
551 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
553 * linux-nat.c (kill_callback): Use SIGKILL first.
555 2011-05-18 Joel Brobecker <brobecker@adacore.com>
557 * ada-lang.c (print_it_exception): Avoid use of sprintf.
559 2011-05-18 Tom Tromey <tromey@redhat.com>
561 * value.c (value_fn_field): Constify.
562 * symtab.c (gdb_mangle_name): Constify.
563 * stabsread.c (update_method_name_from_physname): Make 'physname'
565 * p-typeprint.c (pascal_type_print_method_args): Make arguments
566 const. Use explicit fputc_filtered loop.
567 (pascal_type_print_base): Constify.
568 * p-lang.h (pascal_type_print_method_args): Update.
569 * linespec.c (add_matching_methods): Constify.
570 (add_constructors): Likewise.
571 * jv-typeprint.c (java_type_print_base): Constify.
572 * gdbtypes.h (struct cplus_struct_type)
573 <fn_fieldlist.fn_field.physname>: Now const.
574 * dwarf2read.c (compute_delayed_physnames): Constify.
575 (dwarf2_add_member_fn): Likewise.
576 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
578 2011-05-18 Pedro Alves <pedro@codesourcery.com>
580 * infrun.c (resume): Mention which is the current thread, and its
581 current PC in debug output.
582 (prepare_to_proceed): Mention the thread switching in debug
585 2011-05-18 Tom Tromey <tromey@redhat.com>
587 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
588 path check. Use xmalloc and cleanups.
589 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
591 2011-05-17 Tom Tromey <tromey@redhat.com>
593 * cp-valprint.c (cp_print_value_fields): Catch errors from
596 2011-05-17 Tom Tromey <tromey@redhat.com>
598 * dwarf2read.c (dwarf2_get_die_type): Call
599 get_die_type_at_offset.
600 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
601 get_base_type function.
603 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
605 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
608 2011-05-16 Doug Evans <dje@google.com>
610 * python/py-auto-load.c (source_section_scripts): Mention objfile
613 2011-05-15 Doug Evans <dje@google.com>
615 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
616 (try_thread_db_load_from_pdir): Call it. If unable to find
617 libthread_db in directory of libpthread, see if we're looking at
618 the separate-debug-info copy.
620 * python/py-autoload.c (print_script): Print "Missing" instead of
621 "No" for missing scripts.
622 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
624 2011-05-13 Doug Evans <dje@google.com>
626 * ui-file.c (stdio_file_write_async_safe): Add comment.
628 2011-05-14 Hui Zhu <teawater@gmail.com>
630 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
632 2011-05-13 Doug Evans <dje@google.com>
634 Support $pdir and $sdir in libthread-db-search-path.
635 * NEWS: Mention $sdir,$pdir.
636 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
637 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
638 (try_thread_db_load_from_sdir): New function.
639 (try_thread_db_load_from_dir): New function.
640 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
641 system directories if search of libthread-db-search-path fails,
642 that is now done via $sdir.
643 (has_libpthread): New function.
644 (thread_db_load): Remove search for libthread_db in directory of
645 libpthread, that is now done via $pdir.
647 * NEWS: Mention "info auto-load-scripts".
648 * python/py-auto-load.c (struct auto_load_pspace_info): New member
649 script_not_found_warning_printed.
650 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
651 all callers updated. Initialize script_not_found_warning_printed.
652 (get_auto_load_pspace_data_for_loading): New function.
653 (maybe_add_script): New function.
654 (source_section_scripts): Simplify. Only print one warning regardless
655 of the number of auto-load scripts not found.
656 (clear_section_scripts): Clear script_not_found_warning_printed.
657 (auto_load_objfile_script): Record script in hash table.
658 (count_matching_scripts): New function.
659 (maybe_print_script): Renamed from maybe_print_section_script, all
660 callers updated. Rewrite to use ui_out_*.
661 (info_auto_load_scripts): Renamed from
662 maintenance_print_section_scripts, all callers updated.
663 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
664 renamed as "info auto-load-scripts".
666 2011-05-13 Tom Tromey <tromey@redhat.com>
668 * dwarf2expr.c (read_uleb128): Cast intermediate result.
669 (read_sleb128): Likewise.
671 2011-05-13 Tom Tromey <tromey@redhat.com>
673 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
676 2011-05-13 Doug Evans <dje@google.com>
678 * linux-nat.c (debug_linux_nat_async): Delete.
679 Replace all references to use debug_linux_nat instead.
680 (show_debug_linux_nat_async): Delete.
681 (sigchld_handler): Call ui_file_write_async_safe instead of
683 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
684 * ui-file.c (struct ui_file): New member to_write_async_safe.
685 (null_file_write_async_safe): New function.
686 (ui_file_write_async_safe): New function.
687 (set_ui_file_write_async_safe): New function.
688 (ui_file_new): Initialize to_write_async_safe.
689 (stdio_file_write_async_safe): New function.
690 (struct stdio_file): New member fd.
691 (stdio_file_new): Initialize to_write_async_safe, fd.
692 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
694 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
695 (set_ui_file_write_async_safe): Declare.
696 (ui_file_write_async_safe): Declare.
698 2011-05-13 Tom Tromey <tromey@redhat.com>
700 * utils.c (do_value_free): New function.
701 (make_cleanup_value_free): Likewise.
702 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
704 (dwarf2_loc_desc_needs_frame): Call
705 make_cleanup_value_free_to_mark.
706 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
707 * dwarf2expr.c (free_dwarf_expr_context): Don't call
709 (new_dwarf_expr_context): Don't call value_mark.
710 * dwarf2-frame.c (execute_stack_op): Call
711 make_cleanup_value_free_to_mark.
712 * defs.h (make_cleanup_value_free): Declare.
714 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
716 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
717 prepare_execute_command.
718 * top.c (prepare_execute_command): Return cleanup.
719 (execute_command): Use cleanup from prepare_execute_command.
720 * top.h (prepare_execute_command): Change prototype to return
722 * defs.h (struct value): Add opaque declaration.
723 (make_cleanup_value_free_to_mark): Add prototype.
724 * utils.c (do_value_free_to_mark): New function.
725 (make_cleanup_value_free_to_mark): Likewise.
727 2011-05-12 Tom Tromey <tromey@redhat.com>
729 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
730 cast left-hand-side to unsigned.
732 2011-05-12 Tom Tromey <tromey@redhat.com>
735 * value.h (value_from_contents): Declare.
736 * value.c (value_from_contents): New function.
737 * dwarf2read.c (dwarf_stack_op_name): Add new values.
738 (dwarf2_get_die_type): New function.
739 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
740 (allocate_piece_closure): Acquire reference to values.
741 (read_pieced_value): Update for value-based expressions.
742 (write_pieced_value): Likewise.
743 (free_pieced_value_closure): Call value_free as needed.
744 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
745 Update for value-based expressions.
746 * dwarf2loc.h (dwarf2_get_die_type): Declare.
747 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
748 <get_base_type>: New field.
749 (struct dwarf_expr_piece) <v.value>: Change type.
750 <v.regno>: New field.
751 (struct dwarf_expr_context) <mark>: New field.
752 (dwarf_expr_piece, dwarf_expr_fetch): Update.
753 (dwarf_expr_pop, dwarf_expr_push): Remove.
754 (dwarf_expr_push_address): Declare.
755 * dwarf2expr.c (dwarf_arch_cookie): New global.
756 (struct dwarf_gdbarch_types): New.
757 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
759 (dwarf_expr_push): Change type of 'value' argument. Update. Now
761 (dwarf_expr_push_address): New function.
762 (dwarf_expr_pop): Now static.
763 (dwarf_expr_fetch): Change return type.
764 (dwarf_require_integral): New function.
765 (dwarf_expr_fetch): Simplify.
767 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
769 (execute_stack_op) <sign_ext>: Remove.
770 Use values for DWARF stack.
771 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
772 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
774 (_initialize_dwarf2expr): New function.
776 (new_dwarf_expr_context): Set new field.
777 (free_dwarf_expr_context): Call value_free_to_mark.
778 * dwarf2-frame.c (no_base_type): New function.
779 (execute_stack_op): Set get_base_type field. Update.
781 2011-05-12 Tom Tromey <tromey@redhat.com>
783 * dwarf2read.c (read_common_block): Fix formatting.
785 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
787 * breakpoint.c (disable_breakpoint): Disable all locations
788 associated with a tracepoint on target if a trace experiment is
790 (disable_command): Disable a specific tracepoint location on target if
791 a trace experiment is running.
792 (do_enable_breakpoint): Enable all locations associated with a
793 tracepoint on target if a trace experiment is running.
794 (enable_command) Enable a specific tracepoint location on target if a
795 trace experiment is running.
796 * target.c (update_current_target): Add INHERIT and de_fault clauses for
797 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
798 to_disable_tracepoint.
799 * target.h: Add declaration of struct bp_location.
800 (struct target_ops): Add new functions
801 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
802 to_disable_tracepoint to target operations.
803 (target_supports_enable_disable_tracepoint): New macro.
804 (target_enable_tracepoint): New macro.
805 (target_disable_tracepoint): New macro.
806 * remote.c (struct remote_state): Add new field.
807 (remote_enable_disable_tracepoint_feature): New.
808 (remote_protocol_features): Add new entry.
809 (remote_supports_enable_disable_tracepoint): New.
810 (remote_enable_tracepoint): New.
811 (remote_disable_tracepoint): New.
812 (init_remote_ops): Add remote_enable_tracepoint,
813 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
814 to remote operations.
815 * tracepoint.c (start_tracing): Allow tracing to start without any
816 tracepoints enabled with just a warning if they can be re-enabled
818 * NEWS: Add news item for the new behaviour of the enable and disable
819 GDB commands when applied to tracepoints.
820 Add news items for the new remote packets QTEnable and QTDisable.
822 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
824 * config.in: Regenerate.
825 * configure: Regenerate.
826 * configure.ac <--with-system-readline> (for readline_echoing_p):
828 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
829 (tui_old_rl_echoing_p): ... here.
830 (tui_setup_io): Rename extern declaration readline_echoing_p to
831 _rl_echoing_p. Adjust assignments for the both renames.
833 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
835 * symtab.c (lookup_symtab): Run cleanup before returning.
837 2011-05-11 Tom Tromey <tromey@redhat.com>
839 * dwarf2read.c (handle_data_member_location): New function.
840 (dwarf2_add_field): Use it.
841 (read_common_block): Likewise.
843 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
845 Make addrs->SECTINDEX always defined.
846 * symfile.c (relative_addr_info_to_section_offsets): Check for
847 SECTINDEX -1, not for zero ADDR.
848 (addrs_section_compar): Remove checking for invalid SECTINDEX.
849 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
850 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
853 2011-05-10 Doug Evans <dje@google.com>
855 * linux-thread-db.c: Whitespace cleanup.
856 (try_thread_db_load_1): Fix comment.
858 * linux-thread-db.c (set_libthread_db_search_path): New function.
859 (_initialize_thread_db): Add setter for libthread-db-search-path.
861 2011-05-09 Doug Evans <dje@google.com>
863 * NEWS: Mention --with-iconv-bin.
864 * configure.ac: New option --with-iconv-bin.
865 * configure: Regenerate.
866 * config.in: Regenerate.
867 * defs.h (relocate_gdb_directory): Declare.
868 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
869 removed progname parameter, and exported. All callers updated.
870 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
872 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
873 adding missing call to restore_child_signals_mask.
875 2011-05-09 Pedro Alves <pedro@codesourcery.com>
877 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
879 * infrun.c (proceed, start_remote): Adjust.
880 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
881 and adjust to not handle it.
882 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
883 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
884 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
885 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
886 * windows-nat.c (do_initial_windows_stuff): Adjust.
887 * infcmd.c (attach_command): Adjust.
888 (notice_new_inferior): Adjust.
890 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
892 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
893 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
894 * spu-tdep.c (op_selb): Use correct value.
896 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
898 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
899 "parent" parameter to symbol_file_add_from_bfd call.
901 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
902 Thiago Jung Bauermann <bauerman@br.ibm.com>
904 Implement support for PowerPC BookE masked watchpoints.
905 * NEWS: Mention masked watchpoint support. Create "Changed commands"
907 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
908 method. Initialize to NULL in all existing breakpoint_ops instances.
909 (struct breakpoint) <hw_wp_mask>: New field.
910 * breakpoint.c (is_masked_watchpoint): Add prototype.
911 (update_watchpoint): Don't set b->val for masked watchpoints. Call
912 breakpoint's breakpoint_ops.works_in_software_mode if available.
913 (watchpoints_triggered): Handle the case of a hardware masked
915 (watchpoint_check): Likewise.
916 (works_in_software_mode_watchpoint): New function.
917 (insert_masked_watchpoint, remove_masked_watchpoint)
918 (resources_needed_masked_watchpoint)
919 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
920 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
921 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
923 (masked_watchpoint_breakpoint_ops): New structure.
924 (watch_command_1): Check for the existence of the `mask' parameter.
925 Set b->ops according to the type of hardware watchpoint being created.
926 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
927 (ppc_linux_remove_mask_watchpoint)
928 (ppc_linux_masked_watch_num_registers): New functions.
929 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
930 to_remove_mask_watchpoint and to_masked_watch_num_registers.
931 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
932 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
933 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
934 (target_masked_watch_num_registers): New functions.
935 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
936 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
938 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
939 (target_masked_watch_num_registers): Add prototypes.
941 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
944 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
945 (producer_is_gcc_ge_4_0): New function.
946 (process_full_comp_unit): Set also symtab->locations_valid. Move the
947 symtab->language code.
948 (var_decode_location): Set cu->has_loclist.
949 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
950 skip. Intialize force_skip from locations_valid. Move the prologue
951 skipping code into two passes.
952 * symtab.h (struct symtab): Make the primary field a bitfield. New
953 field locations_valid.
955 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
957 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
958 (classify_inner_name): Call cp_lookup_nested_type with
960 * cp-namespace.c (cp_lookup_nested_type): New variable
961 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
962 type_name_no_tag_or_error with saved_parent_type.
963 * dwarf2read.c (load_partial_dies): Read in any children of
964 DW_TAG_typedef with complaint in such case.
965 * gdbtypes.c (type_name_no_tag_or_error): New function.
966 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
967 * valops.c (destructor_name_p): New comment for parameter type. Remove
968 type const. Make dname and cp const. Call type_name_no_tag_or_error.
969 * value.h (destructor_name_p): Remove type const.
971 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
973 * symtab.c (compare_symbol_name): New function.
974 (completion_list_add_name, expand_partial_symbol_name): Call it,
975 remove the variable ncmp.
976 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
979 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
981 Demote to sw watchpoint only in update_watchpoint.
982 * breakpoint.c (update_watchpoint): Change between software and
983 hardware watchpoint for all kinds of watchpoints, not just
984 read/write ones. Determine b->exact value here instead of
985 in watch_command_1. Error out if there are not enough resources
986 for a read or access hardware watchpoint.
987 (watch_command_1): Remove logic of checking whether there are
988 enough resources available, since update_watchpoint will do that
989 work now. Don't set b->exact here. Catch exceptions thrown by
990 update_watchpoint and delete the watchpoint.
991 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
992 Use target_exact_watchpoints instead.
993 (delete_breakpoint): Notify observers only if deleted watchpoint
994 has a breakpoint number assigned to it.
996 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
998 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1000 2011-05-05 Jerome Guitton <guitton@adacore.com>
1002 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1004 (i386_stack_tramp_frame_unwind): New static global.
1005 (i386_match_pattern): New function, extracted from i386_match_insn.
1006 (i386_match_insn): Use i386_match_pattern.
1007 (i386_match_insn_block): New function.
1008 (i386_tramp_chain_in_reg_insns)
1009 (i386_tramp_chain_on_stack_insns): New static variables.
1010 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1013 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1015 * configure.host (xscale*): Don't handle target.
1016 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1019 2011-05-04 Yao Qi <yao@codesourcery.com>
1021 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1023 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1026 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1027 | * elfread.c (elf_symtab_read): Stop memory leak.
1029 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1031 * nto-tdep.c (nto_target): Replace deprecated call to
1032 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1034 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1036 Fix false GCC warning.
1037 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1039 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1041 * breakpoint.c (update_watchpoint): Move code to change
1042 the enable state of breakpoint from here ...
1043 (do_enable_breakpoint): ... to here.
1045 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1047 * valprint.c (val_print_array_elements): Fixed poor performance
1048 of printing very large arrays with repeat_count_threshold set
1049 to unlimited. New comment.
1051 2011-04-29 Tom Tromey <tromey@redhat.com>
1053 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1054 (mi_parse): Likewise.
1055 * breakpoint.c (break_range_command): Use sizeof char*, not
1057 (create_breakpoint): Likewise.
1058 (parse_breakpoint_sals): Likewise.
1060 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1062 * linux-nat.c (linux_child_remove_fork_catchpoint)
1063 (linux_child_remove_vfork_catchpoint)
1064 (linux_child_remove_exec_catchpoint): New functions.
1065 (linux_target_install_ops): Install them.
1067 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1071 * varobj.c (install_default_visualizer): Do not install a
1072 visualizer if the varobj is CPLUS_FAKE_CHILD.
1073 (construct_visualizer): Likewise.
1075 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1077 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1078 case insensitive comparison.
1080 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1082 * infrun.c (proceed): Revert previous change.
1083 (resume): Instead, handle the case of signal delivery while stepping
1084 off a breakpoint location here, and only if software single-stepping
1085 is used. Handle nested signals.
1087 2011-04-28 Yao Qi <yao@codesourcery.com>
1089 * arm-tdep.c (copy_unmodified): Rename to ...
1090 (arm_copy_unmodified): .. this. New.
1091 (copy_preload): Move common part to ...
1092 (install_preload): .. this. New.
1093 (arm_copy_preload): New.
1094 (copy_preload_reg): Move common part to ...
1095 (install_preload_reg): ... this. New.
1096 (arm_copy_preload_reg): New.
1097 (copy_b_bl_blx): Move common part to ...
1098 (install_b_bl_blx): .. this. New.
1099 (arm_copy_b_bl_blx): New.
1100 (copy_bx_blx_reg): Move common part to ...
1101 (install_bx_blx_reg): ... this. New.
1102 (arm_copy_bx_blx_reg): New.
1103 (copy_alu_reg): Move common part to ...
1104 (install_alu_reg): ... this. New.
1105 (arm_copy_alu_reg): New.
1106 (copy_alu_shifted_reg): Move common part to ...
1107 (install_alu_shifted_reg): ... this. New.
1108 (copy_ldr_str_ldrb_strb): Move common part to ...
1109 (install_ldr_str_ldrb_strb): ... this. New.
1110 (arm_copy_ldr_str_ldrb_strb): New.
1111 (copy_copro_load_store): Move some common part to ...
1112 (install_copy_copro_load_store): ... this. New.
1113 (arm_copy_copro_load_store): New.
1115 (arm_copy_svc): Renamed from copy_svc.
1116 (copy_undef): Delete.
1117 (arm_copy_undef): Renamed from copy_undef.
1118 (decode_ext_reg_ld_st): Delete.
1119 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1120 (decode_svc_copro): Delete.
1121 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1122 (copy_copro_load_store, copy_alu_imm): update callers.
1123 (copy_extra_ld_st, copy_block_xfer): Likewise.
1124 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1125 (decode_miscellaneous, decode_dp_misc): Likewise.
1126 (decode_ld_st_word_ubyte, decode_media): Likewise.
1127 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1128 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1129 (decode_unconditional, decode_miscellaneous): Likewise.
1130 (decode_media, decode_b_bl_ldmstm): Likewise.
1131 (arm_process_displaced_insn): Likewise..
1132 (decode_misc_memhint_neon): Delete.
1133 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1134 (decode_miscellaneous): Delete.
1135 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1136 (decode_dp_misc): Delete.
1137 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1138 (decode_ld_st_word_ubyte): Delete.
1139 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1140 (decode_media): Delete.
1141 (arm_decode_media): Renamed from decode_media.
1142 (decode_b_bl_ldmstm): Delete.
1143 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1144 (decode_ext_reg_ld_st): Delete.
1145 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1146 (decode_unconditional): Delete.
1147 (arm_decode_unconditional): Renamed from decode_unconditional.
1149 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 Case insensitive lookups implementation.
1152 * dwarf2read.c: Include ctype.h.
1153 (struct mapped_index): New field version.
1154 (mapped_index_string_hash): New parameter index_version. New comment
1155 for it. Call tolower appropriately.
1156 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1157 Choose the right index version for mapped_index_string_hash.
1158 (dwarf2_read_index): Support also the index version 5. Initialize the
1159 new struct mapped_index field version.
1160 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1161 (find_slot): Explain the version needs. Pass INT_MAX for the new
1163 (write_psymtabs_to_index): Produce version 5.
1164 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1165 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1166 * psymtab.c (lookup_partial_symbol): Find the
1167 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1169 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1171 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1172 (completion_list_add_name): New variable ncmp, initialize it, use it.
1173 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1174 * utils.c (strcmp_iw): Support case_sensitive_off.
1175 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1176 New function comment part. New variables saved_string1,
1177 saved_string2 and case_pass. Add a proper second pass.
1179 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1181 Replace re_comp/re_exec by regcomp/regexec.
1182 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1183 (search_symbols_name_matches): Use them, use regexec.
1184 (search_symbols): New variable retval_chain, adjust the use of
1185 old_chain against it. Replace re_comp by regcomp. Use the new struct
1186 search_symbols_data fields, use regexec instead of re_exec.
1188 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1190 Format the code for the next patch.
1191 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1192 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1193 New variables c1 and c2.
1195 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1197 * infrun.c (proceed): Do not single-step into signal delivery
1198 when stepping off a breakpoint location.
1199 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1200 (insert_step_resume_breakpoint_at_caller): Likewise.
1201 (insert_step_resume_breakpoint_at_sal): Likewise.
1202 (insert_longjmp_resume_breakpoint): Likewise.
1204 2011-04-27 Yao Qi <yao@codesourcery.com>
1206 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1208 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1210 * procfs.c (procfs_pass_signals): Fix advance declaration.
1212 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1214 * target.h (struct target_ops): Remove to_notice_signals;
1215 add to_pass_signals.
1216 (target_notice_signals): Remove.
1217 (target_pass_signals): Add prototype.
1218 * target.c (update_current_target): Remove to_notice_signals;
1219 mention to_pass_signals.
1220 (target_pass_signals): New function.
1221 (debug_to_notice_signals): Remove.
1222 (setup_target_debug): Do not install debug_to_notice_signals.
1224 * infrun.c (signal_pass): New global.
1225 (resume): Call target_pass_signals.
1226 (handle_inferior_event): Report all signals while stepping over
1227 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1228 are re-inserted when stepping over a signal handler.
1229 (signal_cache_update): New function.
1230 (signal_stop_update): Call it.
1231 (signal_print_update): Likewise.
1232 (signal_pass_update): Likewise.
1233 (handle_command): Call signal_cache_update and target_pass_signals
1234 instead of target_notice_signals.
1235 (_initialize_infrun): Initialize signal_pass.
1237 * linux-nat.c (pass_mask): New global.
1238 (linux_nat_pass_signals): New function.
1239 (linux_nat_create_inferior): Report all signals initially.
1240 (linux_nat_attach): Likewise.
1241 (linux_nat_resume): Use pass_mask to decide whether to directly
1242 handle an inferior signal.
1243 (linux_nat_wait_1): Likewise.
1244 (linux_nat_add_target): Install to_pass_signals callback.
1246 * nto-procfs.c (notice_signals): Remove.
1247 (procfs_resume): Do not call notice_signals.
1248 (procfs_notice_signals): Remove.
1249 (procfs_pass_signals): New function.
1250 (init_procfs_ops): Install to_pass_signals callback instead of
1251 to_notice_signals callback.
1252 (_initialize_procfs): Report all signals initially.
1254 * procfs.c (procfs_notice_signals): Remove.
1255 (procfs_pass_signals): New function.
1256 (procfs_target): Install to_pass_signals callback instead of
1257 to_notice_signals callback.
1258 (register_gdb_signals): Remove.
1259 (procfs_debug_inferior): Report all signals initially.
1260 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1262 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1263 parameters; use them instead of calling signal_..._state routines.
1264 (remote_notice_signals): Remove.
1265 (remote_start_remote): Report all signals initially.
1266 (remote_resume): Do not call remote_pass_signals.
1267 (_initialize_remote): Install to_pass_signals callback instead of
1268 to_notice_signals callback.
1270 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1272 * breakpoint.c (user_settable_breakpoint): Delete.
1273 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1274 (delete_command): Check user_breakpoint_p instead of looking at
1275 the breakpoint's type.
1276 (disable_command): Ditto.
1277 (enable_command): Ditto.
1278 (delete_trace_command): Use user_breakpoint_p instead of looking
1279 at the breakpoint number directly. When checking if there are
1280 user visible tracepoints, in order to know whether to ask the user
1281 for confirmation, check whether the breakpoint is actually a
1284 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1286 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1289 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1291 MI breakpoint notifications.
1293 * annotate.c (breakpoint_changed): Adjust parameter type.
1294 * breakpoint.c (set_breakpoint_condition): Adjust to change
1295 in breakpoint_modified type.
1296 (breakpoint_set_commands): Likewise.
1297 (do_map_commands_command): Likewise.
1298 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1299 changed after bumping hit count.
1300 (bpstat_stop_status): Likewise.
1301 (print_one_breakpoint_location): Don't wrap in tuple here.
1302 (print_one_breakpoint): Always print individual locations.
1303 For locations, use unnamed tuple.
1304 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1306 (create_catchpoint, create_syscall_event_catchpoint): Call
1307 breakpoint_created obsever.
1308 (mention): Don't call breakpoint_created observer.
1309 (create_breakpoint_sal): Call breakpoint_created observer.
1310 (create_breakpoint, watch_command_1): Likewise.
1311 (create_ada_exception_breakpoint): Likewise.
1312 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1313 (locations_are_equal): New.
1314 (update_breakpoint_locations): If locations were changed, notify.
1315 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1316 Call breakpoint_modified observer.
1318 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1319 (mi_cmd_break_insert): Don't set observers for modify and delete.
1320 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1321 (mi_breakpoint_created, mi_breakpoint_deleted)
1322 (mi_breakpoint_modified): New.
1323 (mi_interpreter_init): Hook the above.
1324 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1325 while -break-* commands are executing.
1326 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1327 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1329 (mi_ui_out_impl): Hook in mi_redirect.
1330 (mi_field_skip): True to the name, skip the field, don't output
1331 a field with an empty value.
1333 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1334 (gdbpy_breakpoint_deleted): Adjust.
1335 * tui/tui-hooks.c (tui_event_create_breakpoint)
1336 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1338 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1340 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1341 (procfs_remove_hw_watchpoint): Likewise.
1343 2011-04-26 Michael Walle <michael@walle.cc>
1345 * remote.c (remote_start_remote): Ack packet after sending the
1348 2011-04-26 Yao Qi <yao@codesourcery.com>
1350 * linux-nat.c: Move common macros to ...
1351 Include linux-ptrace.h.
1352 * common/linux-ptrace.h: ... here. New.
1354 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1356 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1357 !objfile_has_partial_symbols. New comment.
1358 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1359 SYM_READ_PSYMBOLS is not present. Extend the comment.
1360 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1362 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1364 * defs.h (ENUM_BITFIELD): Remove.
1366 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1367 Eli Zaretskii <eliz@gnu.org>
1369 * NEWS: Document the new gdbserver --once option.
1371 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1373 * MAINTAINERS: Update my email address.
1375 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1377 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1378 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1379 function call if __STDC_ISO_10646__ macro is defined.
1380 (intermediate_encoding): New prototype.
1381 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1382 to generate compile time error for unsupported gdb_wchar_t size.
1383 (ENDIAN_SUFFIX): New macro.
1384 (intermediate_encoding): New function.
1386 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1388 * ada-lang.c (struct add_partial_datum): Update the comment for
1389 expand_partial_symbol_name.
1390 (ada_add_partial_symbol_completions): Rename to ...
1391 (ada_expand_partial_symbol_name): ... here, change return type, update
1392 function comment, call symbol_completion_match instead of
1393 symbol_completion_add.
1394 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1395 and ada_expand_partial_symbol_name.
1396 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1398 (dw2_map_symbol_names): Remove.
1399 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1400 * psymtab.c (map_symbol_names_psymtab): Remove.
1401 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1402 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1404 (psym_functions): Unlist map_symbol_names_psymtab.
1405 (map_partial_symbol_names): Rename to ...
1406 (expand_partial_symbol_names): ... here, change the FUN type, call
1407 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1408 * psymtab.h (map_partial_symbol_names): Rename to ...
1409 (expand_partial_symbol_names): ... here, change the FUN type.
1410 * symfile.h (struct quick_symbol_functions): Update the description of
1411 expand_symtabs_matching. Remove map_symbol_names.
1412 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1413 (struct add_name_data): Update the comment for
1414 expand_partial_symbol_name.
1415 (add_partial_symbol_name): Rename to ...
1416 (expand_partial_symbol_name): ... here. Replace
1417 completion_list_add_name call by strncmp.
1418 (default_make_symbol_completion_list_break_on): Use now
1419 expand_partial_symbol_names and expand_partial_symbol_name.
1420 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1422 2011-04-20 Tom Tromey <tromey@redhat.com>
1424 * dwarf2read.c (save_gdb_index_command): Replace format
1425 documentation with a pointer to the manual.
1427 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1429 * regcache.c: Include remote.h.
1430 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1431 (regcache_dump): Handle regcache_dump_remote.
1432 (maintenance_print_remote_registers): New function.
1433 (_initialize_regcache): Install "maint print remote-registers"
1435 * remote.c (map_regcache_remote_table): New function, factored out
1437 (init_remote_state): ... here.
1438 (remote_register_number_and_offset): New.
1439 * remote.h (remote_register_number_and_offset): Declare.
1441 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1443 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1444 null_ptid, assume and allow a NULL address space, instead of
1445 asking the target for the ptid's address space.
1446 * infrun.c (ptid_is_pid): Remove assertion.
1448 2011-04-19 Tom Tromey <tromey@redhat.com>
1450 * windows-tdep.c (windows_xfer_shared_library):
1451 * windows-nat.c (get_module_name, windows_make_so):
1452 * v850-tdep.c (v850_handle_pushm):
1453 * utils.c (null_cleanup, gdb_realpath):
1454 * ui-out.c (get_next_header):
1455 * tracepoint.c (clear_traceframe_info):
1456 * symtab.c (lookup_symtab):
1457 * serial.h (struct serial_ops):
1458 * mipsread.c (read_alphacoff_dynamic_symtab):
1459 * infcmd.c (print_return_value):
1460 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1461 * f-exp.y (parse_number):
1462 * exceptions.c (catch_exceptions):
1463 * dummy-frame.c (dummy_frame_this_id):
1464 * defs.h (struct cleanup):
1465 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1466 * arm-tdep.c (arm_push_dummy_call):
1467 * amd64-tdep.h (amd64_collect_xsave):
1468 * amd64-tdep.c (amd64_collect_xsave):
1469 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1470 * README (typing): Remove duplicate words.
1471 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1472 * infrun.c (siginfo_value_read): Fix typo.
1473 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1474 * top.c (source_line_number): Add comma.
1476 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1478 * thread.c (any_live_thread_of_process): Prioritize threads
1479 that are not executing.
1480 * gdbthread.h (any_live_thread_of_process): Update comment
1481 as per above change.
1483 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1485 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1486 (scan_xcoff_symtab): Likewise.
1488 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1490 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1493 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1494 Pedro Alves <pedro@codesourcery.com>
1496 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1497 variables to simplify code and avoid == operator at end of
1498 line as this is against GNU coding standards.
1500 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1502 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1503 lm_name to name_lm to avoid conflict with lm_name function.
1505 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1507 ARI fixes: Use only lowercase function name for static functions.
1508 * nto-tdep.c (LM_ADDR): Rename to...
1509 (lm_addr): New function name.
1510 (nto_relocate_section_addresses): Adapt to change above.
1511 * solib-sunos.c (LM_ADDR): Rename to...
1512 (lm_addr): New function name.
1513 (LM_NEXT): Rename to...
1514 (lm_next): New function name.
1515 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1516 function name changes above.
1517 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1518 (lm_addr_from_link_map): New function name.
1519 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1520 (has_lm_dynamic_from_link_map): New function name.
1521 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1522 (lm_dynamic_from_link_map): New function name.
1523 (LM_ADDR_CHECK): Rename to...
1524 (lm_addr_check): New function name.
1525 (LM_NEXT): Rename to...
1526 (lm_next): New function name.
1527 (LM_PREV): Rename to...
1528 (lm_prev): New function name.
1529 (LM_NAME): Rename to...
1530 (lm_name): New function name.
1531 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1532 (ignore_first_link_map_entry): New function name.
1533 (svr4_keep_data_in_core): Adapt to function name changes above.
1534 (svr4_current_sos): Likewise.
1535 (enable_break): Likewise.
1536 (svr4_relocate_section_addresses): Likewise.
1538 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1541 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1542 sprintf. Simplify code and avoid loosing memory.
1543 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1544 (call0_frame_cache): Remove && operator from end of line.
1546 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1548 Fix libraries displacement if they change whether they were prelinked.
1549 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1550 does not match. Comment why.
1552 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 * corelow.c: Include wrapper.h.
1555 (core_open): Call now gdb_target_find_new_threads.
1556 * wrapper.c: Include target.h.
1557 (gdb_target_find_new_threads): New.
1558 * wrapper.h (gdb_target_find_new_threads): New declaration.
1560 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1562 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1563 even if !TARGET_HAS_EXECUTION.
1565 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1568 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1569 bfd_get_synthetic_symtab.
1570 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1571 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1572 parameter parent, remove the call to add_separate_debug_objfile.
1573 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1574 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1575 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1576 parent, new comment for it, call add_separate_debug_objfile for it.
1577 (symbol_file_add_separate): Pass objfile as the parameter parent,
1578 remove the call to add_separate_debug_objfile.
1579 (symbol_file_add_from_bfd): New parameter parent, pass it.
1580 (symbol_file_add): Pass NULL to the new parameter parent.
1581 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1583 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1585 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1588 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 Fix Python access to inlined frames.
1591 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1592 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1594 2011-04-15 Tom Tromey <tromey@redhat.com>
1596 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1598 2011-04-15 Gary Benson <gbenson@redhat.com>
1600 * MAINTAINERS: Add myself to write-after-approval section.
1602 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1604 * remote-sim.c (sim_command_completer): New function.
1605 (_initialize_remote_sim): Set completer to sim_command_completer.
1607 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1609 * breakpoint.c (print_exception_catchpoint): Rename to ...
1610 (print_it_exception_catchpoint): ... this.
1611 (gnu_v3_exception_catchpoint_ops): Update with new name
1612 for print_it_exception_catchpoint.
1614 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1616 * MAINTAINERS: Add myself for write after approval privileges.
1618 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1620 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1622 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1624 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1626 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1628 * breakpoint.c (save_breakpoints): Verify whether
1629 breakpoint_ops.print_recreate is defined before calling it.
1631 2011-04-11 Gary Benson <gbenson@redhat.com>
1633 Fix failure with --enable-maintainer-mode.
1634 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1636 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1639 * symtab.c (search_symbols): Reorder the KIND description in the
1640 function comment. Remove the unused 4th element of types, types2,
1641 types3 and types4. New gdb_assert on KIND.
1642 (symtab_symbol_info): Remove the unused 4th element of classnames.
1643 New gdb_assert on KIND.
1644 * symtab.h (enum search_domain): New warning in the enum comment.
1645 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1648 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1650 Fix crash of gdb save-index on a STABS file.
1651 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1654 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1657 * dwarf2read.c: Include ctype.h.
1658 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1660 (dwarf2_add_field): Fix new_field->accessibility by calling
1661 dwarf2_default_access_attribute. Restructure setting accessibility
1663 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1664 is_private and is_protected by calling
1665 dwarf2_default_access_attribute.
1667 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1669 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1670 to the initialization.
1672 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1674 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1677 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1679 Remove support for old Cygwin 1.5 versions.
1680 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1681 function on old Cygwin version.
1682 * windows-nat.c: Remove cygwin version check and always define
1683 __USEWIDE for Cygwin compilation.
1685 2011-04-07 Yao Qi <yao@codesourcery.com>
1687 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1689 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1690 (arm_copy_svc): Remove parameters INSN and TO.
1691 (decode_svc_copro): Update caller.
1692 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1693 from function pointer `copy_svc_os'.
1695 2011-04-07 Yao Qi <yao@codesourcery.com>
1697 * arm-tdep.c (cleanup_branch): Set a correct return address in
1698 LR for ARM and Thumb.
1700 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1703 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1704 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1705 in the function comment, a new note on values compatibility.
1706 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1707 * symtab.h (SYMBOL_HASH_NEXT): New.
1709 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1711 * ppc-linux-nat.c (check_condition): Add len output parameter.
1712 Set it based on the memory region referenced in the condition
1713 expression. Update all callers.
1715 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1717 Fix crash regression on systems featuring .gdb_index.
1718 * objfiles.c (free_objfile): Move the
1719 forget_cached_source_info_for_objfile call earlier. Comment it.
1720 Extend the comment for objfile_free_data.
1722 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1724 Fix regression of displaying the debug format.
1725 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1728 2011-04-04 Tom Tromey <tromey@redhat.com>
1730 * cli/cli-interp.c (struct captured_execute_command_args):
1732 (do_captured_execute_command): Remove.
1733 (safe_execute_command): Use TRY_CATCH.
1734 * cli/cli-script.c (struct wrapped_read_command_file_args):
1736 (wrapped_read_command_file): Remove.
1737 (script_from_file): Use TRY_CATCH.
1738 * exceptions.c (catch_exception): Remove.
1739 * exceptions.h (catch_exception): Remove.
1740 (deprecated_throw_reason): Update comment.
1741 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1742 argument to 'context'.
1743 (mi_execute_command): Use TRY_CATCH.
1744 * remote.c (struct start_remote_args): Remove.
1745 (remote_start_remote): Update; change arguments.
1746 (remote_open_1): Use TRY_CATCH.
1748 2011-04-04 Tom Tromey <tromey@redhat.com>
1750 * tracepoint.c (scope_info): Update.
1751 * symtab.c (decode_line_spec): Update.
1752 * python/python.c (gdbpy_decode_line): Update.
1753 * linespec.h (decode_line_1): Update.
1754 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1755 (decode_compound, find_method, symtab_from_filename)
1756 (decode_variable): Likewise.
1757 * cli/cli-cmds.c (edit_command): Update.
1758 (list_command): Update.
1759 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1761 (create_breakpoint): Update.
1762 (until_break_command): Update.
1763 (addr_string_to_sals): Update.
1764 (decode_line_spec_1): Update.
1766 2011-04-04 Tom Tromey <tromey@redhat.com>
1768 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1769 (do_captured_parse_breakpoint): Remove.
1770 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1771 Use TRY_CATCH directly.
1773 2011-04-04 Tom Tromey <tromey@redhat.com>
1775 * symtab.h (free_symtab): Remove.
1776 (forget_cached_source_info_for_objfile): Declare.
1777 * symmisc.c (free_symtab): Remove.
1778 * source.c (forget_cached_source_info_for_objfile): New function.
1779 (forget_cached_source_info): Use it.
1780 * objfiles.c (free_objfile): Simplify check before calling
1781 clear_current_source_symtab_and_line. Call
1782 forget_cached_source_info_for_objfile.
1784 2011-04-04 Tom Tromey <tromey@redhat.com>
1786 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1787 (new_symtab): Don't set `free_code' on symtab.
1788 (new_linetable): Properly handle size==0.
1789 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1790 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1792 * jv-lang.c (struct jv_per_objfile_data): New.
1793 (jv_per_objfile_free): Free the data.
1794 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1795 (get_java_class_symtab): Set the `dict' field on the
1796 jv_per_objfile_data.
1797 (free_class_block): Remove.
1798 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1801 2011-04-04 Tom Tromey <tromey@redhat.com>
1803 * symfile.c (reread_symbols): Update.
1804 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1806 * objfiles.c (allocate_objfile): Update.
1807 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1809 * cp-namespace.c (lookup_symbol_file): Don't call
1810 lookup_possible_namespace_symbol.
1811 (initialize_namespace_symtab, get_possible_namespace_block)
1812 (free_namespace_block, cp_check_possible_namespace_symbols)
1813 (check_possible_namespace_symbols_loop)
1814 (check_one_possible_namespace_symbol)
1815 (lookup_possible_namespace_symbol): Remove.
1816 (maintenance_cplus_namespace): Replace with notice.
1817 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1819 2011-04-04 Tom Tromey <tromey@redhat.com>
1821 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1822 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1823 * symmisc.c (free_symtab): Don't free debugformat.
1824 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1825 (record_debugformat, record_producer): Document.
1826 * buildsym.c (end_symtab): Don't save debugformat and producer
1828 (end_symtab): Don't free debugformat and producer fields.
1829 (record_debugformat): Don't call xstrdup.
1830 (record_producer): Likewise.
1832 2011-04-04 Tom Tromey <tromey@redhat.com>
1834 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1835 (source_line_charpos, source_charpos_line): Remove.
1837 2011-04-04 Tom Tromey <tromey@redhat.com>
1839 * symtab.h (domain_enum): Split in two...
1840 (enum search_domain): New.
1841 (search_symbols): Update.
1842 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1843 redundant declarations.
1844 (search_symbols): Change 'kind' argument to search_domain.
1846 (print_symbol_info): Likewise.
1847 (symtab_symbol_info): Likewise.
1848 * symfile.h (struct quick_symbol_functions)
1849 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1850 <expand_symtabs_matching>: Likewise.
1851 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1852 (expand_symtabs_matching_via_partial): Update.
1853 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1854 (dw2_expand_symtabs_for_function): Update.
1855 * block.h: Moved anonymous enum...
1856 * defs.h (enum block_enum): ... here. Now named.
1858 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1860 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1861 * version.in: Bump version to 7.3.50.20110403-cvs.
1863 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1865 * NEWS: Create a new section for the next release branch.
1866 Rename the section of the current branch, now that it has
1869 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1871 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1872 for "fpscr" in target description.
1874 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1876 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1877 initialize it. Delay HASH initialization. Strip the part after open
1878 parenthesis for languages with qualifiers. Call do_cleanups.
1880 2011-04-01 Tom Tromey <tromey@redhat.com>
1882 * utils.c (report_command_stats): Don't print `-' for negative
1885 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1887 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1888 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1891 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1893 * breakpoint.h (bpdisp_text): Add declaration.
1894 * breakpoint.c (bpdisp_text): Make non-static.
1895 * ada-lang.c: #include "mi/mi-common.h".
1896 (print_it_exception): Rewrite to improve GDB/MI output.
1898 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1900 * arm-tdep.h (struct address_space): Add forward declaration.
1902 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1904 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1905 * arm-tdep.c (arm_override_mode): New global.
1906 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1907 execution mode heuristics.
1908 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1909 second single-step breakpoint if needed, using
1910 arm_insert_single_step_breakpoint.
1911 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1912 ARM execution mode, do not call thumb_get_next_pc_raw.
1913 (arm_get_next_pc): Encode execution mode in return value. Call
1914 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1915 (arm_insert_single_step_breakpoint): New function.
1916 (arm_software_single_step): Call it.
1917 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1918 argument to return execution mode of sigreturn target.
1919 (arm_linux_syscall_next_pc): Use it.
1920 (arm_linux_copy_svc): Update call.
1921 (arm_linux_software_single_step): Call
1922 arm_insert_single_step_breakpoint.
1924 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1926 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1929 2011-03-31 Tom Tromey <tromey@redhat.com>
1931 * varobj.c (update_dynamic_varobj_children): Properly handle
1932 errors from iterator.
1934 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1937 struct linkage name twice.
1939 2011-03-31 Tom Tromey <tromey@redhat.com>
1941 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1942 missing ">" to message.
1944 2011-03-31 Tom Tromey <tromey@redhat.com>
1946 * varobj.c (instantiate_pretty_printer): Remove duplicate
1949 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1951 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1952 if neither saved value nor register available (e.g. signal frame).
1954 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1956 * macroexp.c (expand): Avoid uninitialized variable
1959 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1961 * breakpoint.c (break_range_command): Fix typo in comment.
1963 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1964 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1966 Implement support for PowerPC BookE ranged breakpoints.
1967 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1968 * breakpoint.h (struct bp_target_info) <length>: New member
1970 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1971 instead of struct breakpoint as argument, and also add ASPACE
1972 and BP_ADDR arguments. Update all callers.
1973 (struct breakpoint_ops) <print_one_detail>: New method.
1974 (struct breakpoint) <addr_string_range_end>: New member variable.
1975 * breakpoint.c (breakpoint_location_address_match): Add function
1977 (insert_bp_location): Set bl->target_info.length.
1978 (breakpoint_here_p): Call breakpoint_location_address_match.
1979 (moribund_breakpoint_here_p): Likewise.
1980 (regular_breakpoint_inserted_here_p): Likewise.
1981 (breakpoint_thread_match): Likewise.
1982 (bpstat_stop_status): Likewise.
1983 (bpstat_check_location): Move call to
1984 breakpoint_ops.breakpoint_hit to the top.
1985 (print_one_breakpoint_location): Call
1986 breakpoint_ops.print_one_detail if available.
1987 (breakpoint_address_match_range): New function.
1988 (breakpoint_location_address_match): Likewise.
1989 (breakpoint_locations_match): Compare the length field of the
1991 (hw_breakpoint_used_count): Count resources used by all locations
1992 in a breakpoint, and use breakpoint_ops.resources_needed if
1994 (breakpoint_hit_ranged_breakpoint): New function.
1995 (resources_needed_ranged_breakpoint): Likewise.
1996 (print_it_ranged_breakpoint): Likewise.
1997 (print_one_ranged_breakpoint): Likewise.
1998 (print_one_detail_ranged_breakpoint): Likewise.
1999 (print_mention_ranged_breakpoint): Likewise.
2000 (print_recreate_ranged_breakpoint): Likewise.
2001 (ranged_breakpoint_ops): New structure.
2002 (find_breakpoint_range_end): New function.
2003 (break_range_command): Likewise.
2004 (delete_breakpoint): Free addr_string_range_end.
2005 (update_breakpoint_locations): Add SALS_END argument. Update
2006 all callers. Calculate breakpoint length if a non-zero SALS_END
2007 is given. Call breakpoint_locations_match instead of
2008 breakpoint_address_match.
2009 (reset_breakpoint): Find SaL of the end of the range if B is a
2011 (_initialize_breakpoint): Register break-range command.
2012 * defs.h (print_core_address): Add function prototype.
2013 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2015 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2016 (ppc_linux_remove_hw_breakpoint): Likewise.
2017 (_initialize_ppc_linux_nat): Initialize
2018 to_ranged_break_num_registers.
2019 * target.c (update_current_target): Add comment about
2020 to_ranged_break_num_registers.
2021 (target_ranged_break_num_registers): New function.
2022 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2024 (target_ranged_break_num_registers): Add function prototype.
2025 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2026 * utils.c (print_core_address): ... here.
2028 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2030 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2031 variable compiler warning.
2033 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2035 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2037 (re_set_breakpoint): ... to here ...
2038 (addr_string_to_sals): ... and here.
2040 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2042 * Makefile.in (SFILES): Add missing C sources.
2043 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2044 Add missing headers.
2046 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2048 * .gitignore: New file.
2050 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2052 * NEWS: Mention new cfi device simulation.
2054 2011-03-29 Tom Tromey <tromey@redhat.com>
2056 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2057 otherwise anonymous types.
2058 (dwarf2_name): Likewise.
2059 * valops.c (value_struct_elt_for_reference): Refine artificial
2060 type logic. Call error if j==-1.
2062 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2064 Fix false GCC warning.
2065 * infcall.c (find_function_addr): Initialize funaddr.
2067 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2069 Fix mingw compilation with --enable-targets=all.
2070 * remote-mips.c (gdb_usleep.h): Include header.
2071 (mips_enter_debug): Use gdb_usleep instead of sleep.
2073 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2075 Support resolution of STT_GNU_IFUNC via breakpoints.
2076 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2077 bp_gnu_ifunc_resolver_return.
2078 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2079 the loop. Support bp_gnu_ifunc_resolver and
2080 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2081 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2083 (bptype_string, print_one_breakpoint_location): Support
2084 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2085 (user_settable_breakpoint): Return true also for
2086 bp_gnu_ifunc_resolver.
2087 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2088 bp_gnu_ifunc_resolver_return.
2089 (set_breakpoint_location_function): New parameter explicit_loc,
2090 describe it. Call find_pc_partial_function_gnu_ifunc with new
2091 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2092 EXPLICIT_LOC is not set.
2093 (set_raw_breakpoint): Set EXPLICIT_LOC for
2094 set_breakpoint_location_function.
2095 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2096 set_breakpoint_location_function.
2097 (mention): Support bp_gnu_ifunc_resolver and
2098 bp_gnu_ifunc_resolver_return.
2099 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2100 set_breakpoint_location_function.
2101 (update_breakpoint_locations): Remove static.
2102 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2103 bp_gnu_ifunc_resolver_return.
2104 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2105 bp_gnu_ifunc_resolver_return.
2106 (update_breakpoint_locations): New declaration.
2107 * elfread.c: Include gdbthread.h and regcache.h.
2108 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2110 (elf_gnu_ifunc_fns): Install them.
2111 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2112 (stub_gnu_ifunc_resolver_return_stop): New functions.
2113 (stub_gnu_ifunc_fns): Install them.
2114 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2115 and gnu_ifunc_resolver_return_stop.
2116 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2118 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2120 STT_GNU_IFUNC reader implementation.
2121 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2122 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2123 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2124 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2125 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2126 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2127 (elf_gnu_ifunc_resolve_addr): New.
2128 (elf_symfile_read): Call elf_rel_plt_read.
2129 (elf_gnu_ifunc_fns): New.
2130 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2131 Install elf_gnu_ifunc_fns.
2132 * infcall.c (find_function_return_type): New function.
2133 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2134 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2135 (stub_gnu_ifunc_resolve_name): New functions.
2136 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2137 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2138 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2140 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2142 Code cleanup for later STT_GNU_IFUNC support.
2143 * infcall.c (find_function_addr): Remove variable code, use explicit
2144 dereferences for it. Move VALUE_TYPE initialization later.
2146 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2148 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2149 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2150 (clear_pc_function_cache): Clear it.
2151 (find_pc_partial_function): Rename to ...
2152 (find_pc_partial_function_gnu_ifunc): ... this function. New
2153 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2154 (find_pc_partial_function): New wrapper for this function.
2155 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2157 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2159 GDB internal type support for STT_GNU_IFUNC.
2160 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2161 (elf_symtab_read): Set mst_text_gnu_ifunc for
2162 BSF_GNU_INDIRECT_FUNCTION.
2163 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2164 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2165 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2166 nodebug_got_plt_symbol.
2167 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2168 (TYPE_GNU_IFUNC): New.
2169 (struct main_type): New field flag_gnu_ifunc.
2170 (struct builtin_type): New field builtin_func_func.
2171 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2172 nodebug_got_plt_symbol.
2173 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2174 (in_gnu_ifunc_stub): New.
2175 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2177 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2178 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2179 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2181 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2182 * symtab.c (search_symbols): Likewise.
2183 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2184 and mst_slot_got_plt.
2185 (in_gnu_ifunc_stub): New declaration.
2187 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 Support a ring of related breakpoints.
2190 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2191 other functions, add gdb_assert.
2192 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2193 watchpoint_del_at_next_stop.
2194 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2195 (bpstat_stop_status): Handle ring in related_breakpoint.
2196 (set_raw_breakpoint_without_location): Initialize ring in
2198 (delete_breakpoint): Handle ring in related_breakpoint, use
2199 watchpoint_del_at_next_stop.
2200 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2202 2011-03-28 Tom Tromey <tromey@redhat.com>
2205 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2206 with `language_minimal'.
2208 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2210 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2211 instead of checking for STT_ARM_TFUNC symbol type.
2213 2011-03-25 Tom Tromey <tromey@redhat.com>
2215 * linespec.c (symbol_found): Restore line-based result for
2216 non-LOC_LABEL symbols.
2218 2011-03-25 Kai Tietz <ktietz@redhat.com>
2220 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2221 instead of strcmp for comparison.
2222 (tui_source_is_displayed): Likewise.
2223 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2225 2011-03-24 Mark Wielaard <mjw@redhat.com>
2227 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2229 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2230 (find_partial_die_in_comp_unit): Likewise in comment.
2231 (read_attribute_value): Likewise.
2232 (lookup_die_type): Likewise.
2233 (dwarf_form_name): Likewise.
2234 (dump_die_shallow): Likewise.
2235 (follow_die_ref_or_sig): Likewise.
2237 2011-03-24 Tom Tromey <tromey@redhat.com>
2239 PR breakpoints/11816:
2240 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2241 (decode_compound): Update.
2242 (find_function_symbol): New function.
2243 (decode_dollar): Update.
2244 (decode_label): Add 'function_symbol' parameter. Handle
2245 function-relative labels.
2246 (decode_variable): Update.
2247 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2248 not its line. Set `special_display' and canonical name for
2251 2011-03-24 Tom Tromey <tromey@redhat.com>
2253 * linespec.h (struct linespec_result) <special_display>: New
2255 * breakpoint.h (struct breakpoint) <display_canonical>: New
2257 * breakpoint.c (print_breakpoint_location): Respect
2259 (create_breakpoint_sal): Add 'display_canonical' parameter.
2260 (create_breakpoints_sal): Update.
2261 (create_breakpoint): Update.
2263 2011-03-24 Tom Tromey <tromey@redhat.com>
2265 * symtab.c (decode_line_spec): Update.
2266 * linespec.c (build_canonical_line_spec): Change type of
2268 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2269 (find_method, decode_all_digits, decode_dollar, decode_label)
2270 (symbol_found): Likewise.
2271 (init_linespec_result): New function.
2272 * breakpoint.c (struct captured_parse_breakpoint_args)
2273 <canonical_p>: New field, replaces addr_string_p.
2274 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2276 (parse_breakpoint_sals): Likewise.
2277 (do_captured_parse_breakpoint): Update.
2278 (create_breakpoint): Use struct linespec_result.
2279 (until_break_command): Update.
2280 (breakpoint_re_set_one): Update.
2281 (decode_line_spec_1): Update.
2282 * linespec.h (struct linespec_result): New.
2283 (init_linespec_result): Declare.
2285 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2287 * regcache.c (regcache_raw_read): If the target didn't supply a
2288 given raw register, mark it as unavailable.
2290 2011-03-23 Kai Tietz <ktietz@redhat.com>
2292 * breakpoint.c (clear_command): Use filename_cmp
2293 instead of strcmp for comparison.
2294 * buildsym.c (watch_main_source_file_lossage): Likewise.
2295 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2296 checking just for slash.
2297 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2298 strrchr and filename_cmp instead of strcmp for filenames.
2299 (add_old_header_file): Use filename_cmp
2300 instead of strcmp for comparison.
2301 * exec.c (exec_set_section_address): Likewise.
2302 * macrotab.c (macro_lookup_inclusion): Likewise.
2303 (macro_lookup_inclusion): Likewise.
2304 * elfread.c (_initialize_elfread): Likewise.
2305 (elfstab_offset_sections): Likewise.
2306 (elfstab_offset_sections): Use lbasename instead of
2308 * mdebugread.c (parse_partial_symbols): Likewise.
2309 (arse_partial_symbols): Use filename_(n)cmp instead of
2310 str(n)cmp for comparison.
2311 * minsyms.c (lookup_minimal_symbol): Likewise.
2312 * psymtab.c (read_psymtabs_with_filename): Likewise.
2313 * solib.c (solib_read_symbols): Likewise.
2314 (reload_shared_libraries_1): Likewise.
2315 * symmisc.c (maintenance_print_symbols): Likewise.
2316 * symfile.c (separate_debug_file_exists): Likewise.
2317 (reread_symbols): Likewise.
2318 (find_separate_debug_file_by_debuglink): Likewise.
2319 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2320 * source.c (add_path): Likewise.
2321 * symtab.c (filename_seen): Likewise.
2322 (file_matches): Likewise.
2323 (print_symbol_info): Likewise.
2324 (maybe_add_partial_symtab_filename): Likewise.
2325 (make_source_files_completion_list): Likewise.
2326 * xml-syscall.c (init_sysinfo): Likewise.
2327 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2328 IS_DIR_SEPARATOR for checking for trailing path separator.
2330 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2332 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2333 label abort_expression.
2334 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2335 DWARF_VALUE_OPTIMIZED_OUT.
2337 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2341 to linkage_name. Invert its value. Update the function comment.
2342 (c_type_print_varspec_suffix): Invert it at the caller.
2343 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2345 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2347 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2348 errors when reading the `stop_pc'.
2349 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2352 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2354 * NEWS: Document gdb.Write stream keyword.
2356 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2359 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2360 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2361 (dwarf2_add_field): Fix new_field->accessibility for
2362 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2364 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2368 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2369 other error classes. Do not print stack trace.
2371 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2374 (dwarf2_add_field): Fix new_field->accessibility for
2375 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2377 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2379 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2380 encountering a load via a non-SP register.
2382 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2384 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2385 field in returned unwinder.
2387 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2391 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2393 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2396 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2398 * frame.c (frame_unwind_register): Throw an error if unwinding the
2400 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2401 an unwind stop reason.
2402 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2403 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2404 UNWIND_UNAVAILABLE>: New.
2405 * inline-frame.c (inline_frame_unwind): Install
2406 default_frame_unwind_stop_reason.
2407 * frame-unwind.c: Include "exceptions.h".
2408 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2409 (default_frame_unwind_stop_reason): New.
2410 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2411 (default_frame_unwind_stop_reason): Declare.
2412 (struct frame_unwind) <stop_reason>: New function pointer.
2414 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2415 * dwarf2-frame.c: Include exceptions.h.
2416 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2417 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2418 computing the CFA. If such an error was thrown, set
2419 unavailable_retaddr.
2420 (dwarf2_frame_unwind_stop_reason): New.
2421 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2423 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2424 (dwarf2_signal_frame_unwind): Ditto.
2426 * amd64-tdep.c: Include "exceptions.h".
2427 (struct amd64_frame_cache): New field "base_p".
2428 (amd64_init_frame_cache): Clear it.
2429 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2430 Avoid reading registers with functions that throw if the register
2431 is not necessary to compute the frame base.
2432 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2433 swallowing NOT_AVAILABLE_ERROR.
2434 (amd64_frame_unwind_stop_reason): New.
2435 (amd64_frame_this_id): Don't build a frame id if the frame base
2437 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2438 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2439 base_p if the frame base was computable.
2440 (amd64_sigtramp_frame_unwind_stop_reason): New.
2441 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2442 frame base was unavailable.
2443 (amd64_sigtramp_frame_unwind): Install
2444 amd64_sigtramp_frame_unwind_stop_reason.
2445 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2446 base_p if the frame base was computable.
2447 (amd64_epilogue_frame_unwind_stop_reason): New.
2448 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2449 frame base was unavailable.
2450 (amd64_epilogue_frame_unwind): Install
2451 amd64_epilogue_frame_unwind_stop_reason.
2452 * i386-tdep.c: Include "exceptions.h".
2453 (struct i386_frame_cache): New field "base_p".
2454 (i386_init_frame_cache): Clear it.
2455 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2456 Avoid reading registers with functions that throw if the register
2457 is not necessary to compute the frame base.
2458 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2459 swallowing NOT_AVAILABLE_ERROR.
2460 (i386_frame_unwind_stop_reason): New.
2461 (i386_frame_this_id): Don't build a frame id if the frame base was
2463 (i386_frame_prev_register): Handle unavailable SP.
2464 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2465 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2466 base_p if the frame base was computable.
2467 (i386_epilogue_frame_unwind_stop_reason): New.
2468 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2469 base was unavailable.
2470 (i386_epilogue_frame_unwind): Install
2471 i386_epilogue_frame_unwind_stop_reason.
2472 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2473 base_p if the frame base was computable.
2474 (i386_sigtramp_frame_unwind_stop_reason): New.
2475 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2476 base was unavailable.
2477 (i386_sigtramp_frame_unwind): Install
2478 i386_sigtramp_frame_unwind_stop_reason.
2479 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2480 type's size, not the register's.
2481 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2483 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2484 default_frame_unwind_stop_reason.
2485 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2486 (alpha_heuristic_frame_unwind): Ditto.
2487 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2488 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2489 * avr-tdep.c (avr_frame_unwind): Ditto.
2490 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2492 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2493 * frv-tdep.c (frv_frame_unwind): Ditto.
2494 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2495 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2496 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2497 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2498 (hppa_stub_frame_unwind): Ditto.
2499 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2500 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2501 (ia64_libunwind_frame_unwind)
2502 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2503 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2504 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2505 * m32c-tdep.c (m32c_unwind): Ditto.
2506 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2507 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2508 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2509 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2510 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2511 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2512 * mep-tdep.c (mep_frame_unwind): Ditto.
2513 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2514 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2515 (mips_stub_frame_unwind): Ditto.
2516 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2517 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2518 * mt-tdep.c (mt_frame_unwind): Ditto.
2519 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2520 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2521 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2522 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2523 (s390_sigtramp_frame_unwind): Ditto.
2524 * score-tdep.c (score_prologue_unwind): Ditto.
2525 * sh-tdep.c (sh_frame_unwind): Ditto.
2526 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2527 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2528 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2529 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2530 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2531 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2532 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2533 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2534 (sparc64obsd_trapframe_unwind): Ditto.
2535 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2536 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2537 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2538 * v850-tdep.c (v850_frame_unwind): Ditto.
2539 * vax-tdep.c (vax_frame_unwind): Ditto.
2540 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2541 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2542 * xtensa-tdep.c (xtensa_unwind): Ditto.
2544 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2546 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2547 there's always a frame. Use get_frame_pc_if_available instead of
2548 get_frame_pc, and if there's no PC available, don't look up a
2551 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2553 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2556 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2558 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2561 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2563 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2564 * frame.c (frame_unwind_caller_pc_if_available): New.
2565 * stack.c (frame_info): Handle unavailable PC.
2567 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2569 * frame.c (frame_unwind_pc): Rename to ...
2570 (frame_unwind_pc_if_available): ... this. New `pc' output
2571 parameter. Change return type to int. Gracefully handle
2572 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2573 happened, or 1 otherwise.
2574 (frame_unwind_pc): Reimplement on top of
2575 frame_unwind_pc_if_available.
2576 (get_frame_func): Rename to ...
2577 (get_frame_func_if_available): New `pc' output parameter. Change
2578 return type to int. Gracefully handle the PC not being available.
2579 (get_frame_func): Reimplement on top of
2580 get_frame_func_if_available.
2581 (select_frame): Handle the PC being unavailable.
2582 (get_prev_frame): Handle the PC being unavailable.
2583 (get_frame_pc_if_available): New.
2584 (get_frame_address_in_block_if_available): New.
2585 (find_frame_sal): Handle the frame PC not being available.
2586 * frame.h (get_frame_pc_if_available): Declare.
2587 (get_frame_address_in_block_if_available): Declare.
2588 (get_frame_func_if_available): Declare.
2589 * stack.c (print_frame_info): Handle the PC being unavailable.
2590 (find_frame_funname): Ditto.
2591 (print_frame): Handle the PC being unavailable.
2592 (get_frame_language): Ditto.
2593 * blockframe.c (get_frame_block): Ditto.
2594 * macroscope.c (default_macro_scope): Ditto.
2595 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2597 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2599 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2600 NOT_AVAILABLE_ERROR when evaluating the location expression.
2602 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2604 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2605 returning that the register piece is unavailable/optimized out.
2606 (write_pieced_value): Handle get_frame_register_bytes returning
2607 that the register piece is unavailable/optimized out when doing a
2608 read-modify write of a bitfield.
2609 * findvar.c (value_from_register): Handle get_frame_register_bytes
2610 returning that the register piece is unavailable/optimized out.
2611 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2612 and `unavailablep'. Throw error on bad debug info. Use
2613 frame_register instead of frame_register_read, to fill in the new
2615 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2617 * valops.c: (value_assign): Adjust, and handle
2618 get_frame_register_bytes failing.
2619 * spu-tdep.c: Include exceptions.h.
2620 (spu_software_single_step): Adjust, and handle
2621 get_frame_register_bytes failing.
2622 (spu_get_longjmp_target): Ditto.
2623 * gdbarch.sh (register_to_value): Change to return int. New
2624 parameters `optimizedp' and `unavailablep'.
2625 * gdbarch.h, gdbarch.c: Regenerate.
2626 * i386-tdep.c (i386_register_to_value): Adjust to new
2627 gdbarch_register_to_value interface.
2628 * i387-tdep.c (i387_register_to_value): Ditto.
2629 * i387-tdep.h (i387_register_to_value): Ditto.
2630 * alpha-tdep.c (alpha_register_to_value): Ditto.
2631 * ia64-tdep.c (ia64_register_to_value): Ditto.
2632 * m68k-tdep.c (m68k_register_to_value): Ditto.
2633 * mips-tdep.c (mips_register_to_value): Ditto.
2634 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2636 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2638 * findvar.c (value_of_register): Mark the value as unavailable, if
2639 the register is unavailable.
2640 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2641 (frame_register): New `unavailablep' parameter.
2642 (frame_register_read): Update comment.
2643 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2644 Set it if the register is unavailable. If the register is
2645 unavailable, clear the output buffer.
2646 (frame_register): New `unavailablep' parameter. Pass it down.
2647 (frame_unwind_register): Adjust.
2648 (put_frame_register): Adjust.
2649 (frame_register_read): Adjust. Also return false if the register
2651 (frame_register_unwind_location): Adjust.
2652 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2653 is unavailable, mark the value accordingly.
2654 * stack.c (frame_info): Handle unavailable registers.
2656 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2658 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2659 simplify, using regcache_cooked_read.
2661 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2663 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2664 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2665 (regcache_raw_read_unsigned, regcache_raw_read_part)
2666 (regcache_cooked_read, regcache_cooked_read_signed)
2667 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2668 (regcache_cooked_read_ftype): Change return to enum
2670 * regcache.c: Include exceptions.h
2671 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2672 (do_cooked_read): Change return to enum register_status. Always
2673 forward to regcache_cooked_read.
2674 (regcache_raw_read): Change return to enum register_status. If
2675 the register is not REG_VALID, memset the buffer. Return the
2677 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2678 return the register's status.
2679 (regcache_raw_read_unsigned): Ditto.
2680 (regcache_cooked_read): Change return to enum register_status.
2681 Assert that with read-only regcaches, the register's status must
2682 be known. If the regcache is read-only, and the register is not
2683 REG_VALID, memset the buffer. Return the register's status.
2684 (regcache_cooked_read_signed): Change return to enum
2685 register_status. Handle non-REG_VALID registers and return the
2687 (regcache_cooked_read_unsigned): Change return to enum
2688 register_status. Handle non-REG_VALID registers and return the
2690 (regcache_xfer_part, regcache_raw_read_part)
2691 (regcache_cooked_read_part): Change return to enum
2692 register_status. Return the register's status.
2693 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2695 (regcache_dump): Handle unavailable cooked registers.
2696 * frame.c (do_frame_register_read): Adjust interface to match
2697 regcache_cooked_read_ftype.
2698 * gdbarch.sh (pseudo_register_read): Change return to enum
2700 * gdbarch.h, gdbarch.c: Regenerate.
2702 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2704 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2705 register_status. If reading a raw register indicates the raw
2706 register is not valid, return the raw register's status,
2707 otherwise, return REG_VALID.
2708 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2709 register_status. Handle non-REG_VALID raw registers and return
2710 the register's status.
2711 * arm-tdep.c (arm_neon_quad_read)
2712 (arm_pseudo_read): Change return to enum register_status. Handle
2713 non-REG_VALID raw registers and return the register's status.
2714 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2715 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2716 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2717 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2718 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2720 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2721 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2722 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2723 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2724 (m32c_pseudo_register_read): Change return to enum
2725 register_status. Adjust.
2726 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2727 enum register_status. Return the register's status.
2728 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2729 register_status. Return the register's status.
2730 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2731 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2732 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2733 * rs6000-tdep.c (move_ev_register_func): New typedef.
2734 (e500_move_ev_register): Use it. Change return to enum
2735 register_status. Return the register's status.
2736 (do_regcache_raw_read): New function.
2737 (do_regcache_raw_write): New function.
2738 (e500_pseudo_register_read): Change return to enum
2739 register_status. Return the register's status. Use
2740 do_regcache_raw_read.
2741 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2742 (dfp_pseudo_register_read): Change return to enum register_status.
2743 Return the register's status.
2744 (vsx_pseudo_register_read): Ditto.
2745 (efpr_pseudo_register_read): Ditto.
2746 (rs6000_pseudo_register_read): Ditto.
2747 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2748 register_status. Return the register's status.
2749 * sh64-tdep.c (pseudo_register_read_portions): New function.
2750 (sh64_pseudo_register_read): Change return to enum
2751 register_status. Use pseudo_register_read_portions. Return the
2753 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2754 register_status. Return the register's status.
2755 * sh-tdep.c (pseudo_register_read_portions): New function.
2756 (sh_pseudo_register_read): Change return to enum register_status.
2757 Use pseudo_register_read_portions. Return the register's status.
2758 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2759 enum register_status. Return the register's status.
2760 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2761 * spu-tdep.c (spu_pseudo_register_read_spu)
2762 (spu_pseudo_register_read): Ditto.
2763 * xtensa-tdep.c (xtensa_register_read_masked)
2764 (xtensa_pseudo_register_read): Ditto.
2765 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2767 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2769 * python/py-value.c (valpy_getitem): Fix formatting of error function
2772 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2774 ARI fixes: Add missing internationalization markups throughout
2776 * darwin-nat-info.c: Ditto.
2779 * mi/mi-main.c: Ditto.
2781 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2783 ARI fixes: Add missing internationalization markups throughout
2786 * cp-name-parser.y: Ditto.
2789 * objc-exp.y: Ditto.
2792 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2794 ARI fixes: Messages should have no trailing new lines.
2795 * darwin-nat.c (mach_check_error): Remove trailing new line from
2796 warning function call message.
2797 * record.c (bfdcore_read): Idem for error call.
2799 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2801 * common/signals.c (target_signal_from_host): Add _ markup to error
2802 function call message.
2803 (target_signal_to_host): Add _ markup and remove trailing new line
2804 from warning call message.
2805 (target_signal_from_command): Add _ markup to error function call
2808 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2812 * python/python.c (gdbpy_write): Accept a stream argument and
2813 operate to the appropriate stream.
2814 (gdbpy_flush): Likewise.
2815 (_initialize_python): Add stream constants.
2816 (finish_python_initialization): Add GdbOutputErrorFile class.
2818 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2820 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2822 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2824 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2825 to store_signed_integer. Add debug message when relocating CALL
2826 instructions. Fix formatting of debug message.
2827 * i386-tdep.c (i386_relocate_instruction): Ditto.
2829 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2831 * target.h (struct target_ops): Remove to_lookup_symbol field.
2832 (target_lookup_symbol): Delete macro.
2833 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2834 (update_current_target, setup_target_debug): Remove handling
2835 of to_lookup_symbol target_ops field.
2836 * ada-tasks.c (get_known_tasks_addr): Remove use of
2837 target_lookup_symbol.
2838 * coffread.c (coff_symtab_read): Likewise.
2839 * dbxread.c (read_dbx_symtab): Ditto.
2841 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2844 * configure.ac: Add getthrds declaration check.
2845 * configure, config.in: Regenerate.
2846 * aix-thread.c (getthrds): Declare only if not already declared
2847 in procinfo.h. More declaration out of get_signaled_thread to
2850 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2852 * python/py-symtab.c: Populate symtab_object_methods,
2854 (stpy_is_valid): New function.
2855 (salpy_is_valid): Ditto.
2856 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2857 (sympy_is_valid): New function.
2858 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2859 (objfpy_is_valid): New function.
2860 * python/py-inferior.c: Populate inferior_object_methods.
2861 (infpy_is_valid): New function.
2862 * python/py-infthread.c: Populate thread_object_methods.
2863 (thpy_is_valid): New function.
2864 * python/py-block.c: Declare block_object_methods. Populate. Declare
2865 block_iterator_object_methods. Populate.
2866 (blpy_is_valid): New function.
2867 (blpy_iter_is_valid): Ditto.
2869 2011-03-16 Keith Seitz <keiths@redhat.com>
2871 * linespec.c (find_methods): Canonicalize NAME before looking
2873 (name_end): New function.
2874 (keep_name_info): New function.
2875 (decode_line_1): Use keep_name_info.
2876 (decode_compound): Likewise.
2877 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2878 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2881 * linespec.c (locate_first_half): Keep overload information, too.
2882 (decode_compound): Use a string to represent break characters
2884 If P points to a break character, do not increment it.
2885 For C++ and Java, keep overload information and relevant keywords.
2886 If we cannot find a symbol, search the minimal symbols.
2889 * linespec.c (decode_compound): Rename SAVED_ARG to
2891 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2893 Pass a valid block to lookup_symbol.
2894 (lookup_prefix_sym): Likewise.
2895 (find_method): Construct search name based on SYM_CLASS instead
2897 * psymtab.c (lookup_partial_symbol): Add language parameter.
2898 (lookup_symbol_aux_psymtabs): Likewise.
2899 Don't assume that the psymtab we found was the right one. Search
2900 for the desired symbol in the symtab to be certain.
2901 (psymtab_search_name): New function.
2902 (lookup_partial_symbol): Use psymtab_search_name.
2903 Add language parameter.
2904 (read_symtabs_for_function): Add language parameter and pass to
2905 lookup_partial_symbol.
2906 (find_symbol_file_from_partial): Likewise.
2908 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2911 * dwarf2read.c (noop_record_line): New function.
2912 (dwarf_decode_lines): Ignore line tables for GCd functions.
2914 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2916 Fix ARI warnings about new lines at the end of messages, which
2917 are unneeded as there is a new line added at the end of the message
2919 * darwin-nat.c (darwin_stop_inferior): Ditto.
2920 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2921 * dfp.c (decimal_to_number): Ditto.
2922 * exec.c (print_section_info): Ditto.
2923 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2924 * osdata.c (get_osdata): Ditto.
2925 * record.c (bfdcore_write): Ditto.
2926 * remote-mips.c (mips_readchar): Ditto.
2927 * remote.c (read_ptid): Ditto.
2928 * ser-mingw.c (ser_windows_raw): Ditto.
2929 * tracepoint.c (add_local_symbols): Ditto.
2930 * windows-nat.c (fake_create_process): Ditto.
2932 2011-03-16 Tom Tromey <tromey@redhat.com>
2934 * tracepoint.c (stop_tracing): Don't declare.
2935 * event-top.c (after_char_processing_hook): Add `(void)'.
2937 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2939 * NEWS: Add Parameter sub-classing description.
2941 2011-03-16 Kai Tietz <ktietz@redhat.com>
2943 * MAINTAINERS: Update my e-mail address.
2945 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2947 * MAINTAINERS: Add myself for write after approval privileges.
2949 2011-03-15 Michael Snyder <msnyder@vmware.com>
2951 * frame.c (find_frame_sal): Assert sym is not null.
2953 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2955 * objc-lang.c (selectors_info): Check strchr for null result.
2957 * stabsread.c (define_symbol): Guard against bad stabstring input.
2959 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2961 Remove trailing spaces and tabulations from pascal language
2966 p-valprint.c: Ditto.
2968 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2970 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2971 than LOW. Comment it.
2972 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2973 HIGHPC not strictly higher than LOWPC.
2975 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2977 Fix formatting of function declarations returning a pointer in
2979 * varobj.c (varobj_add_child): Ditto.
2980 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2981 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2983 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2986 for the "generic" vector ABI used with GCC 4.3 and later.
2987 (ppc64_sysv_abi_return_value): Likewise.
2989 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2991 * infcall.c (call_function_by_hand): Function return value is
2992 always a non_lval, even when using struct_return.
2994 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2996 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2997 (map_display_numbers): New.
2998 (do_delete_display): New.
2999 (undisplay_command): Use map_display_numbers.
3000 (do_enable_disable_display): New.
3001 (enable_disable_display_command): New function.
3002 (enable_display): Delete.
3003 (enable_display_command): New.
3004 (disable_display_command): Reimplement.
3005 (_initialize_printcmd): Adjust "enable display" command to use
3006 `enable_display_command' as callback.
3008 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3010 * NEWS: Add Python breakpoint 'stop' operation.
3012 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3014 * NEWS: Delete duplicate entry. Fix typo.
3016 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3018 Fix ARI warning about function names in first column.
3019 Put prototype declaration on same line as return type.
3020 * objc-exp.y: Ditto.
3022 * python/py-stopevent.h: Ditto.
3023 For long function names, split parameters to
3024 allow function name on same line as return type.
3025 * solib-pa64.c: Ditto.
3028 For long function declaration, use single line.
3029 * hppa-tdep.h: Ditto.
3030 * inferior.h: Ditto.
3032 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3034 * python/python.h: Declare gdbpy_should_stop and
3035 gdbpy_breakpoint_has_py_cond.
3036 * python/python.c: Add python.h to includes. Remove python.h from
3037 HAVE_PYTHON definition
3038 (gdbpy_should_stop): New dummy function.
3039 (gdbpy_breakpoint_has_py_cond): New dummy function.
3040 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3041 sub-classing capabilities.
3042 (gdbpy_should_stop): New function.
3043 (gdbpy_breakpoint_has_py_cond): New function.
3044 (local_setattro): New function.
3045 * breakpoint.c (condition_command): Add check for Python 'stop'
3047 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3048 operation function as part of stop/continue tests.
3050 2011-03-14 Tom Tromey <tromey@redhat.com>
3053 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3054 (needs_frame_dwarf_call): Likewise.
3056 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3058 Fix ARI warning about functions without parameters that do not
3060 * breakpoint.c (all_tracepoints): Replace () by (void).
3061 * f-exp.y (match_string_literal): Ditto.
3063 * m2-exp.y (yylex): Ditto.
3064 * mep-tdep.c (current_me_module): Ditto.
3065 (current_options): Ditto.
3066 (current_cop_data_bus_width): Ditto.
3067 (current_cr_names): Ditto.
3068 (current_cr_is_float): Ditto.
3069 (current_ccr_names): Ditto.
3070 * objc-exp.y (yylex): Ditto.
3071 * p-exp.y (yylex): Ditto.
3072 * remote.c (send_interrupt_sequence): Ditto.
3073 * tracepoint.c (current_trace_status): Ditto.
3074 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3075 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3077 2011-03-11 Michael Snyder <msnyder@vmware.com>
3079 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3080 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3081 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3082 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3083 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3085 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3086 (delete_async_event_handler): Ditto.
3088 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3090 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3092 * top.c (set_verbose): Assert showcmd was found.
3094 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3096 * xtensa-tdep.c (warning_once): Correct style issues.
3098 2011-03-11 Yao Qi <yao@codesourcery.com>
3100 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3102 2011-03-11 Andreas Schwab <schwab@redhat.com>
3104 * common/aclocal.m4: Remove.
3106 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3108 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3109 (xtensa_write_register, xtensa_read_register): Likewise.
3110 (xtensa_hextochar): Removed.
3111 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3113 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3115 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3116 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3117 (xtensa_alloc_frame_cache): Add initialization for new fields.
3118 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3119 (warning_once): New function.
3120 (xtensa_insn_kind): New item c0opc_and.
3121 (call0_classify_opcode): Add the case for AND instruction.
3122 (call0_track_op): Change arguments. New local variable litbase.
3123 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3124 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3126 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3127 (call0_analyze_prologue): Update the comments. Change arguments.
3128 Add the variety of updates to handle extended prologues, which now can
3129 conduct dynamic stack adjustments.
3130 (call0_frame_cache): Likewise.
3131 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3132 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3134 2011-03-10 Michael Snyder <msnyder@vmware.com>
3136 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3137 (cmd_qtframe): Ditto.
3138 (cmd_qtbuffer): Ditto.
3139 (cmd_bigqtbuffer): Ditto.
3141 2011-03-10 Tom Tromey <tromey@redhat.com>
3143 * tracepoint.c (trace_actions_command): Update.
3144 * thread.c (thread_apply_command): Update.
3145 * reverse.c (delete_bookmark_command): Update.
3146 (bookmarks_info): Update.
3147 * printcmd.c (undisplay_command): Update.
3148 * memattr.c (mem_enable_command): Update.
3149 (mem_disable_command): Update.
3150 (mem_delete_command): Update.
3151 * inferior.c (detach_inferior_command): Update.
3152 (kill_inferior_command): Update.
3153 (remove_inferior_command): Update.
3154 * cli/cli-utils.h (struct get_number_or_range_state): New.
3155 (init_number_or_range): Declare.
3156 (get_number_or_range): Update.
3157 * cli/cli-utils.c (init_number_or_range): New function.
3158 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3160 (number_is_in_list): Update.
3161 * breakpoint.h (get_tracepoint_by_number): Update.
3162 * breakpoint.c (map_breakpoint_numbers): Update for change to
3163 get_number_or_range.
3164 (find_location_by_number): Use get_number, not
3165 get_number_or_range.
3166 (trace_pass_set_count): New function.
3167 (trace_pass_command): Update for change to get_number_or_range.
3169 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3172 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3174 * python/py-param.c (add_setshow_generic): Add set/show callback
3175 parameters. Register Python object context.
3176 (get_show_value): New function.
3177 (get_set_value): New function.
3178 (call_doc_function): New function.
3179 (get_doc_string): Move behind get_show_value/get_set_value.
3181 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3183 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3185 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3187 * xtensa-tdep.c (xtensa_read_register): Add comment.
3188 (xtensa_write_register): Likewise.
3189 (xtensa_hextochar): Add comment and update to match coding conventions.
3190 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3191 (execute_l32e, execute_s32e, execute_code): Update comments.
3192 (xtensa_exception_handler_t): Update to match coding conventions.
3193 (xtensa_insn_kind): Likewise.
3195 2011-03-09 Michael Snyder <msnyder@vmware.com>
3197 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3199 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3201 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3203 2011-03-09 Tom Tromey <tromey@redhat.com>
3205 * thread.c (restore_selected_frame): Handle frame_level == -1.
3206 (make_cleanup_restore_current_thread): Use
3207 get_selected_frame_if_set.
3208 * frame.h (get_selected_frame_if_set): Declare.
3209 * frame.c (get_selected_frame_if_set): New function.
3211 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3213 * cli/cli-cmds.c (shell_escape): Use lbasename.
3214 * coffread.c (coff_start_symtab): Constify parameter.
3215 (complete_symtab): Constify `name' parameter.
3216 (coff_symtab_read): Constify `filestring' local.
3217 (coff_getfilename): Constify return and `result' local.
3219 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3220 * linux-fork.c (info_checkpoints_command): Use lbasename.
3221 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3222 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3223 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3224 * procfs.c (procfs_make_note_section): Use lbasename.
3225 * tui/tui-io.c (printable_part): Constity return and parameter.
3227 (print_filename): Constify parameters, and local `s'.
3228 (tui_rl_display_match_list): Constify local `temp'.
3230 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3233 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 Fix DWARF-3+ DW_AT_accessibility default assumption.
3235 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3236 cu->header.version >= 3.
3238 2011-03-09 Yao Qi <yao@codesourcery.com>
3240 * common/Makefile.in: Remove.
3241 * common/configure: Remove.
3242 * common/configure.ac: Remove.
3244 2011-03-09 Yao Qi <yao@codesourcery.com>
3247 2011-02-11 Yao Qi <yao@codesourcery.com>
3249 * common/Makefile.in: Add copyright header.
3251 2011-02-11 Yao Qi <yao@codesourcery.com>
3253 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3255 * configure.ac: Add common to sub dir.
3256 * configure: Regenerate.
3258 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3260 * xtensa-tdep.c (call0_ret): New function.
3261 (xtensa_skip_prologue): Speed up analysis.
3263 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3265 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3266 while executing MI command -data-list-changed-registers.
3268 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3270 * xtensa-tdep.c (xtensa_read_register): New function.
3271 (xtensa_write_register): New function.
3272 (xtensa_find_register_by_name): New function.
3273 (xtensa_windowed_frame_cache): Update comments in type description.
3274 (xtensa_frame_cache): Likewise.
3275 (xtensa_window_interrupt_insn): New function.
3276 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3277 (xtensa_insn_kind): Add new instructions.
3278 (rwx_special_register): New function.
3279 (call0_classify_opcode): Add new instructions to the analysis.
3280 (a0_saved, a7_saved, a11_saved): New variables.
3281 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3282 (execute_l32e): New function.
3283 (execute_s32e): New function.
3284 (xtensa_exception_handler_t): New type.
3285 (execute_code): New function.
3286 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3287 analysis for Xtensa Window Exception handlers.
3289 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3291 * xtensa-tdep.c (TX_PS): New.
3292 (windowing_enabled): Update to count for Call0 ABI.
3293 (xtensa_hextochar): New.
3294 (xtensa_init_reggroups): Make algorithm generic.
3295 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3297 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3299 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3301 2011-03-08 Michael Snyder <msnyder@vmware.com>
3303 * i386-tdep.c (i386_follow_jump): Check return value of
3305 (i386_analyze_struct_return): Ditto.
3306 (i386_skip_probe): Ditto.
3307 (i386_match_insn): Ditto.
3308 (i386_skip_noop): Ditto.
3309 (i386_analyze_frame_setup): Ditto.
3310 (i386_analyze_register_saves): Ditto.
3311 (i386_skip_prologue): Ditto.
3312 (i386_skip_main_prologue): Ditto.
3314 * target.c (read_whatever_is_readable): Fix memory leak.
3316 * i386-tdep.c (i386_process_record): Document fall through.
3318 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3320 Fix DWARF-3+ DW_AT_accessibility default assumption.
3321 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3322 cu->header.version >= 3.
3324 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3326 * remote.c (remote_check_symbols): Skip if the target has no
3329 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3331 * target.c (read_whatever_is_readable): Reformat comment,
3332 with a minor typo fix. Minor reformatting of the code.
3334 2011-03-08 Yao Qi <yao@codesourcery.com>
3336 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3337 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3338 Use cached result instead of calling displaced_in_arm_mode again.
3339 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3340 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3341 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3342 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3343 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3344 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3345 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3346 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3347 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3348 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3349 (arm_catch_kernel_helper_return): Likewise.
3350 * gdb/arm-tdep.h : Update function declarations.
3352 2011-03-07 Michael Snyder <msnyder@vmware.com>
3354 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3356 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3358 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3360 * elfread.c (elf_symtab_read): Stop memory leak.
3362 * main.c (captured_main): Fix memory leak.
3364 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3366 * ada-lang.c (compare_names): Call is_name_suffix with string1
3369 2011-03-07 Tom Tromey <tromey@redhat.com>
3371 * xcoffread.c (xcoff_sym_fns): Update.
3372 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3373 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3374 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3375 (symbol_file_add_with_addrs_or_offsets): Likewise.
3376 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3377 * somread.c (som_sym_fns): Update.
3378 * psymtab.h (require_partial_symbols): Declare.
3379 * psymtab.c (require_partial_symbols): New function.
3380 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3381 (ALL_OBJFILE_PSYMTABS): Undef.
3382 (ALL_PSYMTABS): Move from psympriv.h.
3383 (lookup_partial_symtab, find_pc_sect_psymtab)
3384 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3385 (find_last_source_symtab_from_partial)
3386 (forget_cached_source_info_partial)
3387 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3388 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3389 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3390 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3391 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3392 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3393 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3394 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3395 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3397 * mipsread.c (ecoff_sym_fns): Update.
3398 * machoread.c (macho_sym_fns): Update.
3399 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3400 (read_psyms): New function.
3401 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3402 (elf_sym_fns_lazy_psyms): New global.
3403 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3404 dwarf2_build_psymtabs.
3405 * dbxread.c (aout_sym_fns): Update.
3406 * coffread.c (coff_sym_fns): Update.
3408 2011-03-07 Tom Tromey <tromey@redhat.com>
3410 * infrun.c (print_exited_reason): Include inferior id and pid in
3413 2011-03-07 Tom Tromey <tromey@redhat.com>
3415 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3417 (target_has_execution_1): Update.
3418 (target_has_execution_current): Declare.
3419 (target_has_execution): Call target_has_execution_current.
3420 (default_child_has_execution): Update.
3421 * target.c (default_child_has_execution): Add 'the_ptid'
3423 (target_has_execution_1): Likewise.
3424 (target_has_execution_current): New function.
3425 (add_target): Update.
3426 (init_dummy_target): Update.
3427 * remote-m32r-sdi.c (m32r_has_execution): New function.
3428 (init_m32r_ops): Use it.
3429 * record.c (record_core_has_execution): Now static. Add
3430 'the_ptid' parameter.
3431 * inferior.c (have_live_inferiors): Don't save current thread.
3432 Use target_has_execution_1.
3434 2011-03-07 Yao Qi <yao@codesourcery.com>
3436 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3438 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3440 * elfread.c (elf_symtab_read): Minor reformatting.
3442 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3444 * objc-lang.c (selectors_info): Minor reformatting.
3446 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3448 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3450 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3451 Michael Snyder <msnyder@vmware.com>
3453 * ada-valprint.c (ada_val_print_array): Move the declaration of
3454 "byte_order" and "elttype" inside the block where these variables
3455 are actually used. Remove some special handling for the case
3456 where "elttype" and "eltlen" are null. Replace by a comment
3457 and a couple of assertion checks.
3459 2011-03-05 Michael Snyder <msnyder@vmware.com>
3461 * source.c (add_path): Replace semicolon at end of block.
3462 * dwarf2expr.c (execute_stack_op): Ditto.
3464 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3466 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3467 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3468 (bfin-*-*): Likewise.
3470 2011-03-05 Michael Snyder <msnyder@vmware.com>
3472 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3473 * mdebugread.c (parse_symbol): Ditto.
3474 * parse.c (parse_exp_in_context): Ditto.
3475 * source.c (add_path): Ditto.
3476 * utils.c (gnu_debuglink_crc32): Ditto.
3477 * varobj.c (variable_language): Ditto.
3479 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3481 2011-03-04 Michael Snyder <msnyder@vmware.com>
3483 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3485 * symfile.c (simple_overlay_update): Check for null return value
3486 from lookup_minimal_symbol.
3488 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3490 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3492 * eval.c (parse_and_eval_address_1): Remove function.
3493 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3494 instead of parse_and_eval_address_1.
3495 * value.h (parse_and_eval_address_1): Remove prototype.
3497 2011-03-04 Michael Snyder <msnyder@vmware.com>
3499 * remote.c (putpkt_binary): Document that case stmt falls through.
3501 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3503 * breakpointc (print_it_typical): Move NULL check from here...
3504 (print_bp_stop_message): ... to here.
3506 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3508 * breakpoint.c (enable_command): Use break instead of continue,
3509 and fill in a missing break.
3510 (disable_command): Ditto.
3512 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3514 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3515 (terminal_save_ours): Remove misleading comment.
3516 (inflow_inferior_data_cleanup): Free ttystate.
3517 (inflow_inferior_exit): Likewise.
3518 (copy_terminal_info): Copy ttystate.
3520 * serial.c (serial_copy_tty_state): New function.
3521 * serial.h (serial_copy_tty_state): Add prototype.
3522 (struct serial_ops): Add copy_tty_state callback.
3523 * ser-base.c (ser_base_copy_tty_state): New function.
3524 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3525 * ser-go32.c (dos_copy_tty_state): New function.
3526 (dos_ops): Install copy_tty_state callback.
3527 * ser-mingw.c (_initialize_ser_windows): Likewise.
3528 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3529 * ser-unix.c (hardwire_copy_tty_state): New function.
3530 (_initialize_ser_hardwire): Install it.
3532 2011-03-04 Michael Snyder <msnyder@vmware.com>
3534 * breakpoint.c (create_breakpoint): Add missing break statement.
3536 Reverting this patch:
3537 * infcall.c (call_function_by_hand): Add break statements for lint.
3539 Reverting this patch:
3540 * cli/cli-script.c (script_from_file): Add break for lint.
3542 2011-03-04 Michael Snyder <msnyder@vmware.com>
3544 * solib.c (reload_shared_libraries_1): Close memory leak.
3546 2011-03-03 Tom Tromey <tromey@redhat.com>
3549 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3552 2011-03-03 Michael Snyder <msnyder@vmware.com>
3554 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3555 fields of struct 'st' to zero.
3557 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3558 sal.pspace before calling set_current_source_symtab_and_line.
3560 2011-03-03 Yao Qi <yao@codesourcery.com>
3562 * Makefile.in (configure-common): Remove. Let Makefile
3563 in dir common to rebuild itself.
3564 (common/Makefile): Likewise.
3566 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3568 * utils.c (parse_escape): Add i18n markup in error message.
3570 2011-03-03 Yao Qi <yao@codesourcery.com>
3572 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3574 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3575 (displaced_write_reg, displaced_read_reg): Likewise.
3576 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3577 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3578 (cleanup_branch): Replace magic number 14 and 15 with
3579 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3581 2011-03-02 Michael Snyder <msnyder@vmware.com>
3583 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3585 * cli/cli-script.c (script_from_file): Add break for lint.
3587 * mdebugread.c (parse_partial_symbols): Fix indent.
3589 * target-descriptions.c (tdesc_gdb_type): No need to call
3590 xstrdup, callee saves a copy.
3592 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3594 * infcall.c (call_function_by_hand): Add break statements for lint.
3596 * utils.c (parse_escape): Escape the escape char.
3598 * python/py-inferior.c (build_inferior_list): Error out if
3599 PyList_Append fails.
3600 (gdbpy_inferiors): Error out if build_inferior_list fails.
3602 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3605 * record.c (record_restore): Move printf to before error return.
3607 2011-03-02 Yao Qi <yao@codesourcery.com>
3609 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3610 is_thumb and insn_size.
3611 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3612 on both ARM and Thumb mode.
3613 (arm_process_displaced_insn): Set is_thumb and insn_size.
3614 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3615 (arm_displaced_step_fixup): Likewise.
3617 2011-03-01 Michael Snyder <msnyder@vmware.com>
3619 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3621 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3623 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3625 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3627 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3630 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3631 which shadows function parameter.
3633 * tracepoint.c (create_tsv_from_upload): Superfluous call
3634 to xstrdup. Callee already calls xstrdup.
3636 * linespec.c (decode_line_1): Remove unnecessary null check.
3638 * tracepoint.c (scope_info): Fix mem leak, remove underused
3641 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3642 superfluous null check.
3644 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3645 (value_of_builtin_frame_fp_reg): Ditto.
3647 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3649 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3652 * linespec.c (decode_line_1): Check for null before dereference.
3654 * reverse.c (record_restore): Move null-check to before pointer
3657 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3659 * objc-lang.c (selectors_info): Add explanitory comment.
3660 (classes_info): Ditto.
3662 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3664 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3665 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3666 versions of the trampoline. Handle Thumb vs. ARM addresses.
3667 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3668 (arm_linux_init_abi): Install it.
3669 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3670 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3672 2011-02-28 Michael Snyder <msnyder@vmware.com>
3674 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3675 a little bigger, to avoid possibility of an overflow.
3677 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3678 buffers a little bigger, to avoid possibility of an overflow.
3680 * coffread.c (coff_getfilename): Add check to avoid overflow.
3682 * objc-lang.c (selectors_info): Add a small safety margin to
3684 (classes_info): Error out on too long REGEXP.
3686 * infrun.c (handle_inferior_event): Remove unused function call.
3688 * fork-child.c (fork_inferior): Remove ifdef'd code and
3691 * linux-thread-db.c (attach_thread): Discard unused value.
3693 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3695 * remote.c (remote_get_noisy_reply): Discard unused value.
3696 (remote_vcont_resume): Ditto.
3697 (remote_stop_ns): Ditto.
3699 * linespec.c (decode_objc): Delete unused variable.
3701 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3703 * dwarf2read.c (add_partial_symbol): Discard unused values.
3704 (read_base_type): Delete unused variable.
3706 * dbxread.c (read_dbx_symtab): Discard unused value.
3708 * eval.c (evaluate_subexp_standard): Delete unused variable,
3709 and discard unused values.
3711 * infcmd.c (_initialize_infcmd): Discard unused values.
3713 * stabsread.c (rs6000_builtin_type): Missing break statement.
3715 * dbxread.c (process_one_symbol): Discard unused value.
3717 * coffread.c (coff_end_symtab): Delete unused variable.
3719 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3720 (dwarf2_add_typedef): Delete unused variable.
3721 (read_namespace): Ditto.
3722 (dwarf_decode_macros): Ditto.
3724 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3726 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3728 * p-valprint.c (pascal_val_print): Discard unused value.
3730 * utils.c (nquery): Call va_end before return;
3734 * proc-service.c (ps_plog): Call va_end before return.
3736 2011-02-28 Tom Tromey <tromey@redhat.com>
3738 * python/python.c (gdbpy_value_cst): New global.
3739 (_initialize_python): Initialize it.
3740 * python/python-internal.h (gdbpy_value_cst): Declare.
3741 * python/py-value.c (convert_value_from_python): Use
3744 2011-02-28 Michael Snyder <msnyder@vmware.com>
3746 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3748 * breakpoint.c (catch_syscall_completer): Free malloced list.
3750 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3752 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3753 (lval_func_check_synthetic_pointer): Ditto.
3754 (lval_func_free_closure): Fix use-after-free.
3756 2011-02-28 Tom Tromey <tromey@redhat.com>
3758 * psymtab.c (expand_partial_symbol_tables): Use
3759 ALL_OBJFILE_PSYMTABS.
3761 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3763 * objc-lang.c (selectors_info): Error on too long REGEXP.
3765 2011-02-28 Michael Snyder <msnyder@vmware.com>
3767 * python/py-param.c (set_parameter_value): Add missing
3770 * linux-record.c (record_linux_system_call): Add missing
3773 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3775 * breakpoint.c (print_one_breakpoint_location): Remove unused
3776 argument PRINT_ADDRESS_BITS. Update callers.
3777 (print_one_breakpoint): Likewise.
3779 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3781 * breakpoint.c (wrap_indent_at_field): New function.
3782 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3783 Allocate ui_stream locally instead of using STB argument.
3784 (print_one_breakpoint_location): Update call.
3785 * ui-out.c (ui_out_query_field): New function.
3786 * ui-out.h (ui_out_query_field): Add prototype.
3788 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3790 From Michael Snyder <msnyder@vmware.com>
3791 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3793 2011-02-27 Michael Snyder <msnyder@vmware.com>
3795 * objc-lang.c (selectors_info): Prevent string overrun.
3797 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3800 * symtab.c (rbreak_command): Move variable 'file_name' to
3803 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3804 param with a local variable of the same name.
3806 2011-02-27 Michael Snyder <msnyder@vmware.com>
3808 * value.c (value_from_history_ref): New function.
3809 * value.h (value_from_history_ref): Export.
3810 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3811 to parse value history references.
3812 * cli/cli-utils.h (get_number_trailer): Update comment.
3814 2011-02-27 Michael Snyder <msnyder@vmware.com>
3816 * inferior.c (detach_inferior_command): Use get_number_or_range.
3817 (kill_inferior_command): Ditto.
3818 (remove_inferior_command): Ditto.
3819 (initialize_inferiors): Make command names plural.
3820 Update help strings.
3822 2011-02-27 Michael Snyder <msnyder@vmware.com>
3824 * darwin-nat-info.c: Fix comment typo.
3825 * dwarf2expr.h: Ditto.
3826 * fbsd-nat.c: Ditto.
3827 * fbsd-nat.h: Ditto.
3828 * frame-unwind.h: Ditto.
3830 * hppa-hpux-tdep.c: Ditto.
3831 * i386-linux-nat.c: Ditto.
3832 * linux-nat.c: Ditto.
3833 * nbsd-nat.c: Ditto.
3834 * nbsd-nat.h: Ditto.
3835 * ppc-linux-tdep.c: Ditto.
3838 * tui/tui-winsource.c: Ditto.
3840 2011-02-26 Michael Snyder <msnyder@vmware.com>
3842 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3844 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3846 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3847 with a local variable of the same name.
3849 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3850 param with a local variable of the same name.
3851 (i387_supply_xsave): Ditto.
3853 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3854 that it does not shadow a function parameter.
3856 * i386-nat.c (i386_length_and_rw_bits): Document that case
3857 statement is meant to fall through.
3859 * expprint.c (dump_subexp_body_standard): Document that case
3860 statement is meant to fall through.
3862 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3863 dead if statement. Condition can't be false.
3865 2011-02-25 Michael Snyder <msnyder@vmware.com>
3867 * arm-tdep.c: Fix typos in comments.
3868 * bsd-uthread.c: Ditto.
3869 * completer.c: Ditto.
3871 * cp-namespace.c: Ditto.
3872 * cp-support.c: Ditto.
3873 * cris-tdep.c: Ditto.
3875 * dwarf2read.c: Ditto.
3877 * gdbtypes.h: Ditto.
3878 * inferior.h: Ditto.
3879 * mdebugread.c: Ditto.
3880 * mips-tdep.c: Ditto.
3881 * ppc-linux-nat.c: Ditto.
3882 * ppc-linux-tdep.c: Ditto.
3883 * printcmd.c: Ditto.
3884 * sol-thread.c: Ditto.
3885 * solib-frv.c: Ditto.
3887 * sparc64-tdep.c: Ditto.
3888 * spu-tdep.c: Ditto.
3889 * stabsread.c: Ditto.
3894 * python/py-block.c: Ditto.
3895 * python/py-symbol.c: Ditto.
3896 * python/py-symtab.c: Ditto.
3897 * python/py-value.c: Ditto.
3898 * tui/tui-win.c: Ditto.
3900 2011-02-25 Michael Snyder <msnyder@vmware.com>
3902 * inferior.c (print_inferior): Accept a string instead of an int
3903 for requested_inferiors, and use get_number_or_range to parse it.
3904 (info_inferiors_command): Pass args string to print_inferior.
3905 (initialize_inferiors): Change help string for info inferiors.
3906 * inferior.h (print_inferior): Export prototype change.
3908 2011-02-25 Tom Tromey <tromey@redhat.com>
3910 * common/ax.def (invalid2): Set to 0x31.
3912 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3914 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3916 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3918 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3920 2011-02-24 Michael Snyder <msnyder@vmware.com>
3922 * Makefile.in (clean): Make clean should remove generated files
3923 observer.h and observer.inc.
3925 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3927 Revert the following patch (not approved yet):
3928 2011-02-21 Hui Zhu <teawater@gmail.com>
3929 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3930 * ax-gdb.c (gen_printf_expr_callback): New function.
3931 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3932 * ax-general.c (ax_memcpy): New function.
3933 (ax_print): Handle "printf".
3935 * ax.h (ax_memcpy): Forward declare.
3936 * common/ax.def (invalid2): Removed.
3937 (printf): New entry.
3938 * printcmd.c (printcmd.h): New include.
3939 (string_printf): New function.
3940 (ui_printf): Removed.
3941 (printf_command): Remove static. Call string_printf.
3942 (eval_command): Call string_printf.
3943 * printcmd.h: New file.
3944 * tracepoint.c (validate_actionline,
3945 encode_actions_1): handle printf_command.
3947 2011-02-23 Tom Tromey <tromey@redhat.com>
3949 * ax-general.c (ax_pick): Add missing newline.
3951 2011-02-23 Michael Snyder <msnyder@vmware.com>
3953 * breakpoint.c (breakpoint_1): Change first argument from an int
3954 to a char pointer, so that the function now accepts a list of
3955 breakpoints rather than just one. Use new function
3956 'number_is_in_list' to implement.
3957 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3958 (watchpoints_info): Ditto.
3959 (tracepoints_info): Ditto.
3960 (maintenance_info_breakpoints): Ditto.
3961 (_initialize_breakpoint): Update help strings to reflect the fact
3962 that these functions can now take more than one argument.
3963 * cli/cli-utils.c (number_is_in_list): New function.
3964 * cli/cli-utils.h (number_is_in_list): Export.
3966 2011-02-23 Michael Snyder <msnyder@vmware.com>
3968 * memattr.c (mem_enable_command): Use get_number_or_range.
3969 (mem_disable_command): Ditto.
3970 (mem_delete_command): Ditto.
3971 (_initialize_mem): Tweak usage message to reflect multiple
3974 2011-02-22 Doug Evans <dje@google.com>
3976 Add gdb.lookup_global_symbol python function.
3978 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3979 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3980 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3982 2011-02-22 Tom Tromey <tromey@redhat.com>
3984 * language.c (language_class_name_from_physname): Rename
3985 'curr_language' argument to 'lang'; use in body.
3987 2011-02-22 Michael Snyder <msnyder@vmware.com>
3989 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3991 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3993 * frame-unwind.h: Fix comment to mention the this frame, not the
3996 2011-02-22 Tom Tromey <tromey@redhat.com>
3998 * symfile.c (auto_solib_limit): Remove.
3999 * symfile.h (auto_solib_limit): Remove.
4001 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4003 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4005 2011-02-21 Michael Snyder <msnyder@vmware.com>
4007 * gdbthread.h (print_thread_info): Change prototype.
4008 * thread.c (print_thread_info): Accept char* instead of int for
4009 requested_threads argument. Use new function number_is_in_list
4010 to determine which threads to list.
4011 (info_threads_command): Pass char* to print_thread_info.
4012 * cli/cli-utils.c (number_is_in_list): New function.
4013 * cli/cli-utils.h (number_is_in_list): Export.
4014 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4016 (print_one_inferior): Ditto.
4017 (mi_cmd_list_thread_groups): Ditto.
4019 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 * common/Makefile.in (CFLAGS): New.
4022 (COMPILE): Add $(CFLAGS).
4024 2011-02-21 Tom Tromey <tromey@redhat.com>
4026 * breakpoint.c (catch_syscall_command_1): Fix typo.
4028 2011-02-21 Tom Tromey <tromey@redhat.com>
4030 * reverse.c: Include cli-utils.h.
4031 * printcmd.c: Include cli-utils.h.
4032 (string_printf): Use skip_spaces.
4033 * cli/cli-utils.h: New file.
4034 * cli/cli-utils.c: New file.
4035 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4036 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4037 * breakpoint.h (get_number, get_number_or_range): Move to
4039 * breakpoint.c: Include cli-utils.h.
4040 (get_number_trailer, get_number, get_number_or_range)
4041 (ep_skip_leading_whitespace): Move to cli-utils.c.
4042 (create_breakpoint_sal, find_condition_and_thread)
4043 (decode_static_tracepoint_spec, watch_command_1)
4044 (watch_maybe_just_location, ep_parse_optional_if_clause)
4045 (catch_fork_command_1, catch_exec_command_1)
4046 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4047 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4048 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4049 (HFILES_NO_SRCDIR): Add cli-utils.h.
4050 (cli-utils.o): New target.
4052 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4054 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4055 before calling discard_all_inferiors.
4057 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4059 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4060 (struct builtin_opencl_type): Remove.
4061 (builtin_opencl_type): Change return type to "struct type **".
4062 (lookup_opencl_vector_type): Update caller.
4063 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4064 (build_opencl_types): Install plain array of "struct type *"
4065 instead of "struct builtin_opencl_type".
4067 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4068 Ulrich Weigand <uweigand@de.ibm.com>
4070 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4071 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4072 (struct arm_linux_hwbp_cap): New type.
4073 (arm_linux_get_hwbp_cap): New function.
4074 (arm_linux_get_hw_breakpoint_count): Likewise.
4075 (arm_linux_get_hw_watchpoint_count): Likewise.
4076 (arm_linux_can_use_hw_breakpoint): Likewise.
4077 (arm_hwbp_type): New type.
4078 (arm_hwbp_control_t): Likewise.
4079 (struct arm_linux_hw_breakpoint): Likewise.
4080 (struct arm_linux_thread_points): Likewise.
4081 (arm_threads): New global variable.
4082 (arm_linux_find_breakpoints_by_tid): New function.
4083 (arm_hwbp_control_initialize): Likewise.
4084 (arm_hwbp_control_is_enabled): Likewise.
4085 (arm_hwbp_control_disable): Likewise.
4086 (arm_linux_hw_breakpoint_initialize): Likewise.
4087 (arm_linux_get_hwbp_type): Likewise.
4088 (arm_linux_hw_watchpoint_initialize): Likewise.
4089 (arm_linux_hw_breakpoint_equal): Likewise.
4090 (arm_linux_insert_hw_breakpoint1): Likewise.
4091 (arm_linux_remove_hw_breakpoint1): Likewise.
4092 (arm_linux_insert_hw_breakpoint): Likewise.
4093 (arm_linux_remove_hw_breakpoint): Likewise.
4094 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4095 (arm_linux_insert_watchpoint): Likewise.
4096 (arm_linux_remove_watchpoint): Likewise.
4097 (arm_linux_stopped_data_address): Likewise.
4098 (arm_linux_stopped_by_watchpoint): Likewise.
4099 (arm_linux_watchpoint_addr_within_range): Likewise.
4100 (arm_linux_new_thread): Likewise.
4101 (arm_linux_thread_exit): Likewise.
4102 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4103 related target callbacks. Register arm_linux_new_thread and
4104 arm_linux_thread_exit.
4105 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4106 * arm-tdep.c (arm_pc_is_thumb): Make global.
4107 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4109 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4111 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4112 per-frame locations while within a function epilogue.
4114 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4116 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4117 to GNU coding standards.
4119 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4121 Allow use of mingw native on Windows 95 OS.
4122 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4123 (ser_windows_close): Only call CancelIo if function exists.
4124 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4125 to check for existence of CancelIo function in kernel32 DLL.
4127 2011-02-21 Hui Zhu <teawater@gmail.com>
4129 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4130 * ax-gdb.c (gen_printf_expr_callback): New function.
4131 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4132 * ax-general.c (ax_memcpy): New function.
4133 (ax_print): Handle "printf".
4135 * ax.h (ax_memcpy): Forward declare.
4136 * common/ax.def (invalid2): Removed.
4137 (printf): New entry.
4138 * printcmd.c (printcmd.h): New include.
4139 (string_printf): New function.
4140 (ui_printf): Removed.
4141 (printf_command): Remove static. Call string_printf.
4142 (eval_command): Call string_printf.
4143 * printcmd.h: New file.
4144 * tracepoint.c (validate_actionline,
4145 encode_actions_1): handle printf_command.
4147 2011-02-19 Michael Snyder <msnyder@vmware.com>
4149 * reverse.c (delete_one_bookmark): Argument is now bookmark
4150 id rather than pointer to bookmark struct.
4151 (delete_bookmark_command): Use get_number_or_range.
4152 (goto_bookmark_command): Parse with get_number instead of strtoul.
4153 (bookmark_1): New function. Print info for one bookmark.
4154 (bookmarks_info): Use get_number_or_range and bookmark_1.
4156 2011-02-18 Michael Snyder <msnyder@vmware.com>
4158 * thread.c (info_threads_command): Re-implement using
4159 get_number_or_range.
4160 (thread_apply_command): Ditto.
4162 2011-02-18 Tom Tromey <tromey@redhat.com>
4164 * common/ax.def: New file.
4165 * ax.h (enum agent_op): Use ax.def.
4166 * ax-general.c (aop_map): Use ax.def.
4168 2011-02-18 Tom Tromey <tromey@redhat.com>
4170 * ax-general.c (aop_map): Add pick and rot.
4171 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4172 <DW_OP_rot>: Implement.
4173 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4175 * ax-general.c (ax_pick): New function.
4177 2011-02-18 Tom Tromey <tromey@redhat.com>
4179 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4181 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4182 Tom Tromey <tromey@redhat.com>
4184 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4185 make_symbol_overload_list_block with NULL BLOCK.
4186 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4188 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4190 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4191 * breakpoint.h (get_number_or_range): Declare.
4192 * printcmd.c (ALL_DISPLAYS): Declare.
4193 (delete_display): Reimplement taking a display pointer.
4194 (undisplay_command): Accept a range of displays to delete, using
4195 get_number_or_range.
4197 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4199 * c-valprint.c (c_val_print): Add embedded_offset to address
4200 for arrays of unspecified length.
4201 * p-valprint.c (pascal_val_print): Likewise.
4203 2011-02-18 Yao Qi <yao@codesourcery.com>
4205 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4206 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4207 (thumb_process_displaced_insn): New.
4208 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4209 call to arm_process_displaced_insn.
4210 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4212 2011-02-17 Tom Tromey <tromey@redhat.com>
4214 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4215 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4216 compile_dwarf_to_ax. No longer static. Call
4217 dwarf2_compile_cfa_to_ax.
4218 (locexpr_tracepoint_var_ref): Update.
4219 (loclist_tracepoint_var_ref): Update.
4220 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4221 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4222 argument; add 'gdbarch' and 'pc'.
4223 (dwarf2_compile_cfa_to_ax): New function.
4224 (dwarf2_frame_cache): Update.
4226 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4228 * ada-lang.c (ada_type_of_array): Fix the size of the array
4229 in the case of an unconstrained packed array.
4231 2011-02-17 Yao Qi <yao@codesourcery.com>
4233 * common/Makefile.in: Add more targets for make.
4235 2011-02-16 Tom Tromey <tromey@redhat.com>
4237 * dwarf2loc.c (unimplemented): Fix typo.
4239 2011-02-16 Tom Tromey <tromey@redhat.com>
4241 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4242 (compile_dwarf_to_ax) <default>: Use unimplemented.
4243 <DW_OP_deref>: Update.
4244 (disassemble_dwarf_expression): Update.
4245 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4246 (decode_locdesc): Update.
4247 * dwarf2expr.h (dwarf_stack_op_name): Update.
4249 2011-02-16 Tom Tromey <tromey@redhat.com>
4251 * ax.h (struct aop_map) <name>: Now const.
4253 2011-02-16 Tom Tromey <tromey@redhat.com>
4255 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4258 2011-02-16 Yao Qi <yao@codesourcery.com>
4260 * infrun.c (get_displaced_step_closure_by_addr): New.
4261 * inferior.h: Declare it.
4262 * arm-tdep.c: (arm_pc_is_thumb): Call
4263 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4266 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4267 Jan Kratochvil <jan.kratochvil@redhat.com>
4270 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4272 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4273 Jan Kratochvil <jan.kratochvil@redhat.com>
4275 * value.c (value_contents_copy_raw): Extend describing comment.
4276 Assert that the destination contents we're overwriting are wholly
4278 (value_contents_copy): Extend describing comment.
4280 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4281 Jan Kratochvil <jan.kratochvil@redhat.com>
4283 * value.c (value_available_contents_eq): Remove redundant local
4284 variables. Fix available contents comparision.
4285 * value.h (value_available_contents_eq): Extend describing
4288 2011-02-16 Yao Qi <yao@codesourcery.com>
4290 * thread.c (info_threads_command): Add missing i18n markup and remove
4293 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4295 * breakpoint.c (longjmp_names): New variable.
4296 (struct breakpoint_objfile_data): New type.
4297 (breakpoint_objfile_key): New variable.
4298 (msym_not_found): New variable.
4299 (msym_not_found_p): New predicate.
4300 (get_breakpoint_objfile_data): New function.
4301 (create_overlay_event_breakpoint): Check per-objfile cache for
4303 (create_longjmp_master_breakpoint): Likewise.
4304 (create_std_terminate_master_breakpoint): Likewise.
4305 (create_exception_master_breakpoint): Likewise.
4306 (_initialize_breakpoint): Register per-objfile data key.
4308 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4310 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4312 (create_longjmp_master_breakpoint): Loop over longjmp names.
4313 (create_std_terminate_master_breakpoint): Const-propagate parameter
4315 (update_breakpoints_after_exec): Adjust.
4316 (breakpoint_re_set): Adjust.
4318 2011-02-15 Michael Snyder <msnyder@vmware.com>
4320 * thread.c (info_threads_command): Process arg as thread id,
4321 or list of thread ids.
4322 (thread_find_command): New command.
4323 (_initialize_thread): Document argument for info threads.
4324 Document 'thread find' command.
4325 * NEWS: Document new command "thread find".
4327 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4329 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4330 * aclocal.m4: Regenerated with aclocal-1.11.1.
4331 * common/configure: Regenerate with autoconf-2.64.
4333 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4335 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4336 bool data type to a size of one byte.
4338 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4339 Jan Kratochvil <jan.kratochvil@redhat.com>
4341 * target.c (memory_xfer_live_readonly_partial): Document where to
4342 look for interface description.
4344 2011-02-15 Yao Qi <yao@codesourcery.com>
4347 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4348 order to store PC value on stack instead of text section.
4350 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4352 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4353 the EFP register set size.
4354 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4355 data from the VMX register.
4356 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4357 and write data from/to the VMX register.
4359 2011-02-14 Michael Snyder <msnyder@vmware.com>
4361 * command.h (enum command_class): New class 'no_set_class', for
4362 "show" commands without a corresponding "set" command.
4363 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4364 * copying.c (_initialize_copying): Ditto for "show copying" and
4366 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4368 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4369 which there is no corresponding "set" command (eg. "show copying").
4371 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4372 Jan Kratochvil <jan.kratochvil@redhat.com>
4374 * exec.c (section_table_available_memory): Change `len' parameter
4376 * exec.h (section_table_available_memory): Ditto.
4377 * value.h (read_value_memory): Rename the `offset' parameter to
4380 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4381 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 * memrange.c (compare_mem_ranges): Mention sort order in
4385 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4386 * tracepoint.c (traceframe_available_memory): Extend comment to
4387 mention what happens to RESULT when the target does not support
4390 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4391 Jan Kratochvil <jan.kratochvil@redhat.com>
4393 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4396 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4398 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4399 No longer handle NULL values.
4401 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4403 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4404 * value.c: Include "exceptions.h".
4405 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4407 * cp-abi.c: Include gdb_assert.h.
4408 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4409 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4411 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4412 parameters. No longer returns -1 on error.
4413 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4415 * cp-valprint.c: Include exceptions.h.
4416 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4417 the baseclass_offset. Handle unavailable base classes. Use
4418 val_print_invalid_address.
4419 * p-valprint.c: Include exceptions.h.
4420 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4421 when fetching the baseclass_offset. No longer expect
4422 baseclass_offset returning -1. Handle unavailable base classes.
4423 Use val_print_invalid_address.
4424 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4425 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4426 `embedded_offset' and `val' parameters. Adjust.
4427 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4428 parameter, and change its type to gdb_byte pointer. Add
4429 `embedded_offset' and `val' parameters. Adjust. No longer expect
4430 baseclass_offset returning -1.
4431 (value_dynamic_cast): Use value_contents_for_printing rather than
4432 value_contents. Adjust.
4433 (search_struct_field): No longer expect baseclass_offset returning
4435 (search_struct_method): If reading memory from the target is
4436 necessary, wrap it in a new value to pass to baseclass_offset. No
4437 longer expect baseclass_offset returning -1.
4438 (find_method_list): No longer expect baseclass_offset returning
4439 -1. Use value_contents_for_printing rather than value_contents.
4440 * valprint.c (val_print_invalid_address): New function.
4441 * valprint.h (val_print_invalid_address): Declare.
4442 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4443 and `val' parameters. No longer expect baseclass_offset returning
4445 * gnu-v2-abi.c: Include "exceptions.h".
4446 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4447 parameters. Handle unavailable memory. Recurse through
4448 gnuv2_baseclass_offset directly, rather than through
4449 baseclass_offset. No longer returns -1 on not found, instead
4451 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4452 `val' parameters. Adjust.
4454 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4456 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4457 almost but not quite adjacent.
4459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4461 * value.h (value_entirely_available): Declare.
4462 * value.c (value_entirely_available): New function.
4463 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4464 real type if the pointer is unavailable.
4466 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4468 * valops.c (value_repeat): Use read_value_memory instead of
4471 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4473 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4474 * value.c (value_contents_copy_raw, value_contents_copy): New
4476 (value_primitive_field): Use value_contents_copy_raw instead of
4478 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4480 (value_array, value_slice): Ditto.
4481 * valarith.c (value_subscripted_rvalue): Use
4482 value_contents_copy_raw instead of memcpy.
4484 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4486 <unavailable> references.
4488 * valops.c (get_value_at): Use value_from_contents_and_address,
4489 avoiding read_memory.
4491 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4493 * c-valprint.c (c_val_print): Print a string with unavailable
4494 contents as an array.
4496 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4498 * value.h (unpack_bits_as_long): Delete declaration.
4499 (unpack_value_bits_as_long): Declare.
4500 (unpack_value_field_as_long): Declare.
4501 (value_field_bitfield): Declare.
4502 * value.c (unpack_bits_as_long): Rename to...
4503 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4504 value parameters. Return the extracted result in a new output
4505 parameter. If the value contents are unavailable, return false,
4506 otherwise return true.
4507 (unpack_value_bits_as_long): New.
4508 (unpack_field_as_long): Rename to...
4509 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4510 Add embedded_offset and value parameters. Return the extracted
4511 result in a new output parameter. If the value contents are
4512 unavailable, return false, otherwise return true.
4513 (unpack_value_field_as_long): New.
4514 (unpack_field_as_long_1): New.
4515 (unpack_field_as_long): Reimplement as wrapper around
4516 unpack_value_field_as_long_1.
4517 (value_field_bitfield): New function.
4518 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4519 unpack_value_bits_as_long. Mark the value as unavailable, if it
4521 * jv-valprint.c (java_print_value_fields): Use
4522 value_field_bitfield.
4523 * p-valprint.c (pascal_object_print_value_fields): Use
4524 value_field_bitfield.
4525 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4527 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4529 * value.c (get_internalvar_integer): Also return the int value of
4530 TYPE_CODE_INT INTERNALVAR_VALUE values.
4531 (set_internalvar): Don't special case TYPE_CODE_INT.
4533 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4535 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4536 INTERNALVAR_POINTER.
4538 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4539 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4540 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4544 * value.h (value_available_contents_eq): Declare.
4545 * value.c (find_first_range_overlap): New function.
4546 (value_available_contents_eq): New function.
4547 * valprint.c (val_print_array_elements): Use
4548 value_available_contents_eq.
4549 * ada-valprint.c (val_print_packed_array_elements): Use
4550 value_available_contents_eq.
4551 * jv-valprint.c (java_value_print): Use
4552 value_available_contents_eq.
4554 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4556 * target.c (target_read_live_memory): New function.
4557 (memory_xfer_live_readonly_partial): New.
4558 (memory_xfer_partial): If reading from a traceframe, fallback to
4559 reading unavailable read-only memory from read-only regions of
4561 * tracepoint.c (disconnect_tracing): Adjust.
4562 (set_current_traceframe): New, factored out from
4563 set_traceframe_number.
4564 (set_traceframe_number): Reimplement to only change the traceframe
4565 number on the GDB side.
4566 (do_restore_current_traceframe_cleanup): Adjust.
4567 (make_cleanup_restore_traceframe_number): New.
4568 (cur_traceframe_number): New global.
4569 (tfile_open): Set cur_traceframe_number to no traceframe.
4570 (set_tfile_traceframe): New function.
4571 (tfile_trace_find): If looking up a traceframe using any method
4572 other than by number, make sure the current tfile traceframe
4573 matches gdb's current traceframe. Update the current tfile
4574 traceframe if the lookup succeeded.
4575 (tfile_fetch_registers, tfile_xfer_partial)
4576 (tfile_get_trace_state_variable_value): Make sure the remote
4577 traceframe matches gdb's current traceframe.
4578 * remote.c (remote_traceframe_number): New global.
4579 (remote_open_1): Set it to -1.
4580 (set_remote_traceframe): New function.
4581 (remote_fetch_registers, remote_store_registers)
4582 (remote_xfer_memory, remote_xfer_partial)
4583 (remote_get_trace_state_variable_value): Make sure the remote
4584 traceframe matches gdb's current traceframe.
4585 (remote_trace_find): If looking up a traceframe using any method
4586 other than by number, make sure the current remote traceframe
4587 matches gdb's current traceframe. Update the current remote
4588 traceframe if the lookup succeeded.
4589 * infrun.c (fetch_inferior_event): Adjust.
4590 * tracepoint.h (set_current_traceframe): Declare.
4591 (get_traceframe_number, set_traceframe_number): Add describing
4594 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4596 Mark pieces of values as unavailable if the corresponding memory
4599 * valops.c: Include tracepoint.h.
4600 (value_fetch_lazy): Use read_value_memory.
4601 (read_value_memory): New.
4602 * value.h (read_value_memory): Declare.
4603 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4604 * exec.c (section_table_available_memory): New function.
4605 * exec.h (section_table_available_memory): Declare.
4607 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4609 * Makefile.in (SFILES): Add memrange.c.
4610 (HFILES_NO_SRCDIR): Add memrange.h.
4611 (COMMON_OBS): Add memrange.o.
4612 * memrange.c: New file.
4613 * memrange.h: New file.
4614 * tracepoint.c: Include memrange.h.
4615 (struct mem_range): Delete.
4616 (mem_range_s): Delete.
4617 (traceframe_available_memory): New function.
4618 * tracepoint.h (traceframe_available_memory): Declare.
4620 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4622 * target.h (struct traceframe_info): Forward declare.
4623 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4624 (struct target_ops) <to_traceframe_info>: New field.
4625 (target_traceframe_info): New.
4626 * target.c (update_current_target): Inherit and default
4628 * remote.c (PACKET_qXfer_traceframe_info): New.
4629 (remote_protocol_features): Register qXfer:traceframe-info:read.
4630 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4631 (remote_traceframe_info): New.
4632 (init_remote_ops): Install it.
4633 (_initialize_remote): Install "set/show remote traceframe-info"
4635 * tracepoint.h (parse_traceframe_info): Declare.
4636 * tracepoint.c (struct mem_range): New.
4637 (mem_range_s): New typedef.
4638 (struct traceframe_info): New.
4639 (traceframe_info): New global.
4640 (free_traceframe_info): New function.
4641 (clear_traceframe_info): New function.
4642 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4644 (build_traceframe_info): New function.
4645 (tfile_traceframe_info): New function.
4646 (init_tfile_ops): Install tfile_traceframe_info.
4647 (traceframe_info_start_memory, free_result): New functions.
4648 (memory_attributes, traceframe_info_elements): New globals.
4649 (parse_traceframe_info, get_traceframe_info): New functions.
4650 * features/traceframe-info.dtd: New file.
4651 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4653 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4655 Base support for <unavailable> value contents.
4657 * value.h (value_bytes_available): Declare.
4658 (mark_value_bytes_unavailable): Declare.
4659 * value.c (struct range): New struct.
4660 (range_s): New typedef.
4661 (ranges_overlap): New function.
4662 (range_lessthan): New function.
4663 (ranges_contain_p): New function.
4664 (struct value) <unavailable>: New field.
4665 (value_bytes_available): New function.
4666 (mark_value_bytes_unavailable): New function.
4667 (require_not_optimized_out): Constify parameter.
4668 (require_available): New function.
4669 (value_contents_all, value_contents): Require all bytes be
4671 (value_free): Free `unavailable'.
4672 (value_copy): Copy `unavailable'.
4673 * valprint.h (val_print_unavailable): Declare.
4674 * valprint.c (valprint_check_validity): Rename `offset' parameter
4675 to `embedded_offset'. If printing a scalar, check whether the
4676 value chunk is available.
4677 (val_print_unavailable): New.
4678 (val_print_scalar_formatted): Check whether the value is
4680 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4681 pretty-printing unavailable values.
4683 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4686 * c-typeprint.c (c_type_print_args): Update the function comment. New
4687 variable param_type, initialize it. Remove const/volatile qualifiers
4688 for language_cplus and !show_artificial. Use param_type.
4690 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4693 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4694 * symtab.h (struct symtab) <next>: Comment extension.
4696 2011-02-12 Yao Qi <yao@codesourcery.com>
4698 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4700 2011-02-11 Yao Qi <yao@codesourcery.com>
4702 * common/Makefile.in: Add copyright header.
4704 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4706 * infrun.c (proceed): Move switching out and in of tfind mode from
4708 (fetch_inferior_event): ... to here.
4710 2011-02-11 Yao Qi <yao@codesourcery.com>
4712 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4714 * configure.ac: Add common to sub dir.
4715 * configure: Regenerate.
4717 2011-02-11 Yao Qi <yao@codesourcery.com>
4721 * common/Makefile.in: New.
4722 * common/configure.ac: New.
4723 * common/aclocal.m4: New.
4724 * common/configure: Generate.
4726 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4728 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4729 side of the parenthesis.
4732 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4733 * vec.h (VEC_block_remove): Fix comment.
4735 2011-02-08 Michael Snyder <msnyder@vmware.com>
4737 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4739 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4741 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4742 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4745 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4750 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4751 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4753 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4755 * dwarf2read.c (read_subroutine_type): Set special calling
4756 convention flag for functions compiled by IBM XL C for OpenCL.
4757 * ppc-sysv-tdep.c: Include "dwarf2.h"
4758 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4760 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4761 IBM OpenCL vector types calling convention.
4762 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4763 (ppc_sysv_abi_broken_return_value): Likewise.
4764 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4765 types calling convention.
4766 (ppc64_sysv_abi_return_value): Likewise.
4767 * spu-tdep.c: Include "dwarf2.h"
4768 (spu_return_value): Implement IBM OpenCL vector types calling
4771 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4773 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4774 correct ABI for AltiVec vector arguments.
4776 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4778 * valprint.c (val_print): Extend comment.
4779 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4780 interface explanation to val_print.
4781 (ada_val_print_array): Adjust comment to current interface.
4782 (print_field_values): Adjust comment to current interface.
4783 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4784 explanation to val_print.
4785 * f-valprint.c (f_val_print): Ditto.
4786 * jv-valprint.c (java_val_print): Ditto.
4787 * m2-valprint.c (m2_val_print): Ditto.
4788 * p-valprint.c (pascal_val_print): Ditto.
4790 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4792 * breakpoint.c (parse_breakpoint_sals): Fix description.
4794 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4795 Oguz Kayral <oguzkayral@gmail.com>
4797 * python/py-inferior.c (python_on_normal_stop): New function.
4798 (python_on_resume): New function.
4799 (python_inferior_exit): New function.
4800 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4801 inferior_exit observers.
4802 * python/py-evtregistry.c: New file.
4803 * python/py-threadevent.c : New file.
4804 * python/py-event.c: New file.
4805 * python/py-evts.c: New file.
4806 * python/py-continueevent.c: New file.
4807 * python/py-bpevent.c: New file.
4808 * python/py-signalevent.c: New file.
4809 * python/py-exetiedevent.c: New file.
4810 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4811 Move struct breakpoint_object from here...
4812 * python/python-internal.h: ... to here.
4813 * python/py-event.h: New file.
4814 * python/py-events.h: New file.
4815 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4816 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4817 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4818 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4819 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4820 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4821 Add build rules for all the above.
4823 2011-02-04 Tom Tromey <tromey@redhat.com>
4825 * dwarf2read.c (dwarf2_section_empty_p): New function.
4826 (dwarf2_read_section): Use dwarf2_section_empty_p.
4827 (dwarf2_section_size): New function.
4828 (dwarf2_get_section_info): Unconditionally read section.
4829 (dwarf2_read_index): Use dwarf2_section_empty_p.
4830 (partial_read_comp_unit_head): Use dwarf2_section_size.
4831 (dwarf2_symbol_mark_computed): Likewise.
4833 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4835 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4837 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4839 * mips-linux-tdep.c: Include xml-syscall.h.
4840 (mips_linux_get_syscall_number): New function.
4841 (mips_linux_init_abi): Add calls to
4842 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4843 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4844 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4845 * syscalls/mips-n32-linux.xml: New file.
4846 * syscalls/mips-n64-linux.xml: New file.
4847 * syscalls/mips-o32-linux.xml: New file.
4849 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4851 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4852 Complain about inverted range entries.
4853 (dwarf2_record_block_ranges): Likewise.
4855 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4858 * breakpoint.c (update_watchpoint): Fix name of the
4859 update_global_location_list function.
4860 (print_one_breakpoint): Fix typo.
4861 (_initialize_breakpoint): Remove extra space in hbreak help
4863 * breakpoint.h (struct bp_location) <length>: Fix field
4866 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4868 * regcache.c (registers_changed_ptid): Don't explictly always
4869 clear `current_regcache'. Only clear current_thread_ptid and
4870 current_thread_arch when PTID matches. Only reinit the frame
4871 cache if PTID matches the current inferior_ptid. Move alloca(0)
4873 (registers_changed): ... here.
4875 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4877 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4878 starts with __stack_chk_guard as stack guard symbol.
4880 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4882 * disasm.c (compare_lines): Handle the end of sequence markers
4883 within the line table to better support disassembling over
4884 compilation unit boundaries.
4886 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4888 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4889 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4890 implementation even if no symbols are available.
4891 (thumb_analyze_prologue): Update call to skip_prologue_function.
4892 (arm_analyze_prologue): Likewise.
4894 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4896 * arm-tdep.c: Include "observer.h".
4897 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4898 (arm_exidx_data_key): New static variable.
4899 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4900 (struct arm_exidx_data): Likewise.
4901 (arm_exidx_data_free): New function.
4902 (arm_compare_exidx_entries): Likewise.
4903 (arm_obj_section_from_vma): Likewise.
4904 (arm_exidx_new_objfile): Likewise.
4905 (arm_find_exidx_entry): Likewise.
4906 (arm_exidx_fill_cache): Likewise.
4907 (arm_exidx_unwind_sniffer): Likewise.
4908 (arm_exidx_unwind): New global variable.
4909 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4910 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4911 observer. Register arm_exidx_data_key as objfile data.
4913 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4915 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4916 due to accessing uninitialized variable. Fix indentation.
4918 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4920 * c-valprint.c (c_value_print): When doing virtual base pointer
4921 adjustment, create a new value with adjusted contents rather than
4922 changing the contents of the value being printed (and getting it
4925 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4927 * xml-support.c (xml_find_attribute): New.
4928 (xinclude_start_include): Use it.
4929 * xml-support.h (xml_find_attribute): Declare.
4930 * memory-map.c (memory_map_start_memory)
4931 (memory_map_start_property): Use xml_find_attribute.
4932 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4934 * remote.c (start_thread): Use xml_find_attribute.
4935 * solib-target.c (library_list_start_segment)
4936 (library_list_start_section, library_list_start_library)
4937 (library_list_start_list): Use xml_find_attribute.
4938 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4939 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4940 (tdesc_start_field): Use xml_find_attribute.
4942 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4944 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4945 (BUILD_OCL_VTYPES): Update.
4947 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4949 * configure.ac: Work around non-GNU sed limitation when computing
4950 python version number.
4951 * configure: Regenerate.
4953 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4955 Fix debug printing of TYPE_INSTANCE.
4956 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4957 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4959 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4961 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4962 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4963 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4964 * ada-operator.inc: Rename the file to ...
4965 * ada-operator.def: ... here, wrap all the entries by macro OP.
4966 * expprint.c (op_name_standard): Remove all the entries. Include
4967 "std-operator.def" instead.
4968 * expression.h (enum exp_opcode): Include "std-operator.def" and
4969 "ada-operator.def". Move all the entries ...
4970 * std-operator.def: ... here, wrap all the entries by macro OP.
4972 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4974 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4975 * breakpoint.c (remove_jit_event_breakpoints): New function.
4976 * jit.c (jit_descriptor_addr): Delete.
4977 (registering_code): Delete.
4978 (clear_int): Delete.
4979 (jit_inferior_data): New variable.
4980 (struct jit_inferior_data): New type.
4981 (get_jit_inferior_data): New function.
4982 (jit_inferior_data_cleanup): New function.
4983 (jit_read_descriptor): Adjust.
4984 (jit_register_code): Adjust.
4985 (jit_breakpoint_re_set_internal): New function; move code here ...
4986 (jit_inferior_init): ... from here.
4987 (jit_breakpoint_re_set): Adjust.
4988 (jit_reset_inferior_data_and_breakpoints): New function.
4989 (jit_inferior_created_observer): Adjust.
4990 (jit_inferior_exit_hook): Adjust.
4991 (jit_executable_changed_observer): New function.
4992 (jit_event_handler): Adjust.
4993 (_initialize_jit): Adjust.
4995 2011-01-31 Michael Snyder <msnyder@vmware.com>
4997 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5000 2011-01-31 Tom Tromey <tromey@redhat.com>
5003 * python/python.c (execute_gdb_command): Call
5004 prevent_dont_repeat.
5005 * top.c (suppress_dont_repeat): New global.
5006 (dont_repeat): Use it.
5007 (prevent_dont_repeat): New function.
5008 * command.h (prevent_dont_repeat): Declare.
5010 2011-01-31 Tom Tromey <tromey@redhat.com>
5012 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5013 * python/py-breakpoint.c (bppy_set_silent): Use
5014 breakpoint_set_silent.
5015 (bppy_set_thread): Use breakpoint_set_thread.
5016 (bppy_set_task): Use breakpoint_set_task.
5017 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5018 (breakpoint_set_task): Declare.
5019 (make_breakpoint_silent): Remove.
5020 * breakpoint.c (breakpoint_set_silent): New function.
5021 (breakpoint_set_thread): Likewise.
5022 (breakpoint_set_task): Likewise.
5023 (make_breakpoint_silent): Remove.
5025 2011-01-31 Tom Tromey <tromey@redhat.com>
5027 * breakpoint.h (user_breakpoint_p): Declare.
5028 * breakpoint.c (user_breakpoint_p): New function.
5029 (breakpoint_1): Use it.
5030 (save_breakpoints): Likewise.
5032 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5034 * configure.ac: Add handling of Python distribution on Windows.
5035 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5036 sysconfig variables are not defined, then do not use them.
5037 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5038 instead. On Windows, return all paths using forward-slashes
5039 rather than backslashes.
5041 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5043 * configure.ac: Remove fallback behavior for building
5044 against Python. Remove tweaking of Python include path.
5045 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5046 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5047 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5048 Always restore CPPFLAGS and LIBS after linking test.
5049 * configure: Regenerated.
5050 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5051 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5052 * python/python-internal.h: Adjust includes of Python .h files.
5054 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5056 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5059 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5061 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5064 2011-01-31 Yao Qi <yao@codesourcery.com>
5066 * arm-linux-nat.c: Update calls to regcache_register_status
5067 instead of regcache_valid_p.
5068 * aix-thread.c: Likewise.
5069 * i386gnu-nat.c: Likewise.
5071 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5075 touching TYPE_FIELD_ARTIFICIAL.
5077 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5079 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5082 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5084 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5085 selected, don't try iterating over the traceframe's blocks.
5086 (tfile_has_stack): If there's no traceframe selected, then there's
5088 (tfile_has_registers): If there's no traceframe selected, then
5089 there's no registers.
5091 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5093 * target.c (memory_xfer_partial): No need to restore shadows if we
5094 haven't read anything.
5096 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5098 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5099 and val_print_scalar_formatted.
5101 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5103 * tracepoint.c (tfile_read): New.
5104 (tfile_open): Use it.
5105 (tfile_get_traceframe_address): Use it.
5106 (tfile_trace_find): Use it.
5107 (walk_blocks_callback_func): New typedef.
5108 (match_blocktype): New function.
5109 (traceframe_walk_blocks): New function.
5110 (traceframe_find_block_type): New function.
5111 (tfile_fetch_registers, tfile_xfer_partial)
5112 (tfile_get_trace_state_variable_value): Use
5113 traceframe_find_block_type and tfile_read.
5115 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5117 * remote-mips.c: Add internationalization mark ups. Remove
5118 trailing \n from already marked up strings.
5120 2011-01-26 Tom Tromey <tromey@redhat.com>
5122 * python/py-prettyprint.c (print_string_repr): Clear
5123 'addressprint' option when calling val_print_string.
5124 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5125 option when calling val_print_string.
5127 2011-01-26 Tom Tromey <tromey@redhat.com>
5129 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5131 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5133 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5134 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5135 (gdb_py_long_as_ulongest): New defines.
5136 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5137 (gdb_py_int_as_long): Declare.
5138 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5139 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5140 (valpy_long): Add comment.
5141 * python/py-utils.c (get_addr_from_python): Use
5142 gdb_py_long_as_ulongest. Handle overflow properly.
5143 (gdb_py_object_from_longest): New function.
5144 (gdb_py_object_from_ulongest): Likewise.
5145 (gdb_py_int_as_long): Likewise.
5146 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5147 * python/py-symtab.c (salpy_get_pc): Use
5148 gdb_py_long_from_ulongest.
5149 (salpy_get_line): Use PyInt_FromLong.
5150 * python/py-param.c (set_parameter_value): Use
5152 * python/py-lazy-string.c (stpy_get_address): Use
5153 gdb_py_long_from_ulongest.
5154 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5155 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5156 * python/py-breakpoint.c (bppy_set_thread): Use
5158 (bppy_set_task): Likewise.
5159 (bppy_set_ignore_count): Likewise.
5160 (bppy_set_hit_count): Likewise.
5161 * python/py-block.c (blpy_get_start): Use
5162 gdb_py_object_from_ulongest.
5163 (blpy_get_end): Likewise.
5164 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5166 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5169 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5170 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5171 equality test for objfile, initialize addr_low if needed.
5173 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5175 * tui/tui-regs.c (tui_register_format): Remove dead code.
5177 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5179 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5180 instead of print_scalar_formatted.
5181 (print_scalar_formatted): Don't handle 's' format strings here,
5182 and add an assertion that we never see such format here.
5183 * valprint.h (val_print_scalar_formatted): Declare.
5184 * valprint.c (val_print_scalar_formatted): New.
5185 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5186 instead of print_scalar_formatted.
5187 * jv-valprint.c (java_val_print): Ditto.
5188 * p-valprint.c (pascal_val_print): Ditto.
5189 * ada-valprint.c (ada_val_print_1): Ditto.
5190 * f-valprint.c (f_val_print): Ditto.
5191 * infcmd.c (registers_info): Ditto.
5192 * m2-valprint.c (m2_val_print): Ditto.
5194 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5196 * m2-valprint.c (print_unbounded_array): Pass
5197 value_contents_for_printing rather than value_contents, to
5198 m2_print_array_contents. Also pass in the value.
5200 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5202 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5203 (save_gdb_index_command): Switch to .gdb_index version 4.
5205 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5207 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5208 than frame_register, and always pass a valid value to val_print.
5210 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5212 Centralize printing "<optimized out>".
5214 * valprint.h (val_print_optimized_out): Declare.
5215 * cp-valprint.c (cp_print_value_fields): Use
5216 val_print_optimized_out.
5217 * jv-valprint.c (java_print_value_fields): Ditto.
5218 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5219 * printcmd.c (print_formatted): Ditto.
5220 * valprint.c (valprint_check_validity): Ditto.
5221 (value_check_printable): Ditto.
5222 (val_print_optimized_out): New.
5224 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5226 * infcmd.c (default_print_registers_info): Allocate values so to
5227 never pass a NULL value to val_print.
5229 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5231 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5232 boolean. Make sure to always pass a value that matches the
5233 contents buffer to callees. Preserve `address' for following
5235 * value.c (value_contents_for_printing_const): New.
5236 (value_address): Constify value argument.
5237 * value.h (value_contents_for_printing_const): Declare.
5238 (value_address): Constify value argument.
5240 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5242 * regcache.c (struct regcache_descr): Rename
5243 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5244 and sizeof_cooked_register_valid_p to
5245 sizeof_cooked_register_status.
5246 (init_regcache_descr): Adjust.
5247 (struct regcache): Rename register_valid_p field to
5249 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5250 (do_cooked_read): Adjust.
5251 (regcache_valid_p): Rename to ...
5252 (regcache_register_status): ... this. Adjust.
5253 (regcache_invalidate): Adjust.
5254 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5256 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5257 as unavailable, not valid.
5258 (regcache_dump): Adjust.
5259 * regcache.h (enum register_status): New.
5260 (regcache_register_status): Declare.
5261 (regcache_invalidate): Delete declaration.
5262 * corelow.c (get_core_registers): Adjust.
5263 * tracepoint.c (tfile_fetch_registers): Adjust.
5264 * trad-frame.c (REG_VALUE): Rename to ...
5265 (TF_REG_VALUE): ... this.
5266 (REG_UNKNOWN): Rename to ...
5267 (TF_REG_UNKNOWN): ... this.
5268 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5269 * mi/mi-main.c (register_changed_p): Adjust.
5271 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5273 * regcache.c (struct regcache_descr): Remove outdated comment.
5274 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5276 (regcache_xmalloc): Rename to ...
5277 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5278 Allocate the regcache type accordingly.
5279 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5280 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5281 cooked registers, not raw.
5282 (regcache_dup_no_passthrough): Delete.
5283 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5284 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5285 mention obsolete write_register_bytes.
5286 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5288 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5290 Stop remote_read_bytes from handling partial reads itself.
5292 * remote-fileio.c: Include target.h.
5293 (remote_fileio_write_bytes): Delete.
5294 (remote_fileio_func_open, remote_fileio_func_write)
5295 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5297 (remote_fileio_func_stat): Use target_read_memory and
5298 target_write_memory.
5299 (remote_fileio_func_gettimeofday): Use target_write_memory.
5300 (remote_fileio_func_system): Use target_read_memory.
5301 * remote.c (remote_write_bytes): Make it static.
5302 (remote_read_bytes): Don't handle partial reads here.
5303 * remote.h (remote_read_bytes): Delete declaration.
5305 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5307 Simplify XML parsing a bit.
5309 * xml-support.h (gdb_xml_parse_quick): Declare.
5310 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5311 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5313 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5314 gdb_xml_create_parser_and_cleanup_1.
5315 (gdb_xml_parse_quick): New.
5316 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5317 * osdata.c (osdata_parse): Ditto.
5318 * remote.c (remote_threads_info): Ditto.
5319 * solib-target.c (solib_target_parse_libraries): Ditto.
5320 * xml-syscall.c (syscall_parse_xml): Ditto.
5321 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5323 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5325 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5326 with remote-mips.o added to gdb_target_obs.
5327 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5329 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5331 * ada-valprint.c (val_print_packed_array_elements): Pass the
5332 correct struct value to val_print.
5333 (ada_val_print_1): Ditto.
5335 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5337 Don't lose embedded_offset in printing routines throughout.
5339 * valprint.h (val_print_array_elements): Change prototype.
5340 * valprint.c (val_print_array_elements): Add `embedded_offset'
5341 parameter, and adjust to pass it down to val_print, while passing
5342 `valaddr' or `address' unmodified. Take embedded_offset into
5343 account when checking repetitions.
5344 * c-valprint.c (c_val_print): Pass embedded_offset to
5345 val_print_array_elements instead of adjusting `valaddr' and
5347 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5348 embedded_offset to val_print_array_elements instead of adjusting
5350 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5351 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5352 val_print_array_elements and pascal_object_print_value_fields
5353 instead of adjusting `valaddr'.
5354 (pascal_object_print_value_fields): Add `offset' parameter, and
5356 (pascal_object_print_value): Add `offset' parameter, and adjust to
5358 (pascal_object_print_static_field): Use
5359 value_contents_for_printing/value_embedded_offset, rather than
5361 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5362 parameter, and adjust to use it. Use
5363 value_contents_for_printing/value_embedded_offset, rather than
5365 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5366 (ada_val_print_array): Add `offset' parameter, and adjust to use
5368 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5369 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5370 Instead work with offsets. Use
5371 value_contents_for_printing/value_embedded_offset, rather than
5372 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5373 and use value_from_pointer to extract a target pointer, rather
5374 than value_from_longest.
5375 (print_variant_part): Add `offset' parameter. Replace
5376 `outer_valaddr' parameter by a new `outer_offset' parameter.
5377 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5378 (ada_value_print): Use
5379 value_contents_for_printing/value_embedded_offset, rather than
5381 (print_record): Add `offset' parameter, and adjust to pass it
5383 (print_field_values): Add `offset' parameter. Replace
5384 `outer_valaddr' parameter by a new `outer_offset' parameter.
5385 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5386 Use value_contents_for_printing/value_embedded_offset, rather than
5388 * d-valprint.c (dynamic_array_type): Use
5389 value_contents_for_printing/value_embedded_offset, rather than
5391 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5392 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5393 (java_print_value_fields): Take `offset' into account. Don't
5394 re-adjust `valaddr'. Instead pass down adjusted offsets.
5395 (java_val_print): Take `embedded_offset' into account. Pass it to
5396 java_print_value_fields.
5397 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5398 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5399 down adjusted offsets.
5400 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5401 (f_val_print): Take `embedded_offset' into account.
5403 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5405 * inflow.c: Include "gdbcmd.h".
5406 (interactive_mode): New static global, moved here from top.c.
5407 (show_interactive_mode): New function, moved here from top.c.
5408 use gdb_has_a_terminal instead of input_from_terminal_p to
5409 determine the current mode.
5410 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5412 (_initialize_inflow): Add the "set/show interactive-mode"
5413 commands. Moved here from top.c, after having adjusted slightly
5415 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5417 (input_from_terminal_p): Remove handling of "interactive-mode"
5418 setting, moved to infow.c.
5419 (init_main): Remove creation of the "set/show interactive-mode"
5420 commands, moved to inflow.c.
5422 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5424 * NEWS: Add entry for native ia64-hpux support.
5426 2011-01-19 Tom Tromey <tromey@redhat.com>
5429 * thread.c (free_thread): Free 'name'.
5430 (print_thread_info): Emit thread name. Change CLI output.
5431 (thread_name_command): New function.
5432 (do_captured_thread_select): Emit newline.
5433 (_initialize_thread): Register 'thread name' command.
5434 * target.h (struct target_ops) <to_thread_name>: New field.
5435 (target_thread_name): New macro.
5436 * target.c (update_current_target): Handle to_thread_name.
5437 * python/py-infthread.c (thpy_get_name): New function.
5438 (thpy_set_name): Likewise.
5439 (thread_object_getset): Add "name".
5440 * linux-nat.c (linux_nat_thread_name): New function.
5441 (linux_nat_add_target): Set to_thread_name.
5442 * gdbthread.h (struct thread_info) <name>: New field.
5444 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5446 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5447 (ada_val_print_1): Likewise.
5449 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5451 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5452 upper limit address is not greater than the function end address
5453 when the upper limit could not be computed using the debugging
5456 2011-01-17 Tom Tromey <tromey@redhat.com>
5458 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5460 * utils.c: Include gdb_regex.h.
5461 (do_regfree_cleanup): New function.
5462 (make_regfree_cleanup): Likewise.
5463 (get_regcomp_error): Likewise.
5464 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5466 2011-01-17 Tom Tromey <tromey@redhat.com>
5468 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5471 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5473 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5474 for internal variables.
5475 (last_was_structop): New static variable.
5476 (COMPLETE): New token.
5477 (field_exp): New rule to group all '.' suffix handling.
5478 Add mark_struct_expression calls when approriate to be able
5479 to correctly find fields for completion.
5480 (yylex): Adapt to handle field completion and set INTVAR when
5483 2011-01-14 Yao Qi <yao@codesourcery.com>
5485 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5486 save_reggroup, restore_reggroup and all_reggroup.
5488 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5490 * ada-valprint. (ada_printchar): Use the correct type length
5491 in call to ada_emit_char.
5492 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5494 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5496 * solib-som.h (hpux_major_release): Declare variable here.
5497 * solib-som.c: Remove <sys/utsname.h> header.
5498 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5499 (hpux_major_release): Make global, change default value to
5500 DEFAULT_HPUX_MAJOR_RELEASE.
5501 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5502 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5503 Add "solib-som.h" header.
5504 (set_hpux_major_release): New function.
5505 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5507 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5509 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5511 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5513 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5514 new-line at end of warning message.
5515 (ia64_hpux_store_register): Remove trailing new-line at end of
5517 * ia64-hpux-tdep.c: Rephrase comment.
5518 * solib-ia64-hpux.c (struct dld_info): Change type of field
5519 dld_flags from "long long" to ULONGEST.
5521 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5523 * target.h (deprecated_child_ops): Delete declaration.
5524 * target.c (deprecated_child_ops): Delete definition.
5526 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5528 * Makefile.in (hpux-thread.o): Delete rule.
5529 * configure.ac: Don't check for HPUX DCE threads support.
5530 * configure, config.in: Regenerate.
5531 * hppa-hpux-nat.c (child_suppress_run): Delete.
5532 (hppa_hpux_child_can_run): Delete.
5533 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5534 * hpux-thread.c: Delete.
5536 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5538 * hpux-thread.c (hpux_pid_to_str): Delete.
5540 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5542 * ada-valprint.c (ada_emit_char): Remove strange code.
5543 Check that c is <= UCHAR_MAX before passing it to isascii.
5544 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5546 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5548 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5549 to the case where instream is stdin.
5551 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5553 * ia64-tdep.h (struct regcache): Forward declare.
5554 (struct ia64_infcall_ops): New struct type.
5555 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5557 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5558 Renames ia64_find_global_pointer.
5559 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5560 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5561 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5563 (ia64_infcall_ops): New static global constant.
5564 (ia64_gdbarch_init): Set tdep->infcall_ops.
5565 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5566 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5567 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5568 (ia64_hpux_dummy_code): New static global constant.
5569 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5570 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5571 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5573 (ia64_hpux_infcall_ops): New static global constant.
5574 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5575 for inferior function calls to work properly on ia64-hpux.
5577 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5579 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5580 * ia64-tdep.h (struct frame_info): forward declaration.
5581 (struct gdbarch_tdep): Add field size_of_register_frame.
5582 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5583 to determine the size of the register frame.
5584 (ia64_size_of_register_frame): New function.
5585 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5586 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5587 (IA64_HPUX_UREG_REASON): New macro.
5588 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5590 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5591 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5592 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5595 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5597 Add support for ia64-hpux.
5598 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5599 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5601 * configure.host: Add handling for ia64-hpux hosts. Add associated
5603 * configure.tgt: Add handling for ia64-hpux targets.
5604 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5605 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5606 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5608 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5610 [ttrace] Compute thread list immediately after attach.
5611 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5613 (inf_ttrace_attach): Use it.
5615 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5617 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5618 if we could not determine the frame's function address. Instead,
5619 use the frame's PC, and then continue.
5621 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5623 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5624 not already defined.
5626 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5628 * ia64-tdep.c (ia64_struct_type_p): New function.
5629 (ia64_extract_return_value): Handle integral values that are
5630 less than 8 bytes long.
5631 (ia64_push_dummy_call): Likewise.
5633 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5635 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5636 floatformat_ia64_ext.
5637 (floatformat_ia64_ext_big): New static const.
5638 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5640 2011-01-12 Tom Tromey <tromey@redhat.com>
5642 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5644 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5645 (mi_cmd_thread_list_ids): Likewise.
5646 (mi_cmd_data_list_changed_registers): Likewise.
5647 (mi_cmd_data_list_register_values): Likewise.
5648 (mi_cmd_data_write_register_values): Likewise.
5649 (mi_cmd_data_evaluate_expression): Likewise.
5650 (mi_cmd_data_read_memory): Likewise.
5651 (mi_cmd_data_read_memory_bytes): Likewise.
5652 (mi_cmd_data_write_memory): Likewise.
5653 (mi_cmd_enable_timings): Likewise.
5654 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5655 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5656 (mi_cmd_var_delete): Likewise.
5657 (mi_cmd_var_set_format): Likewise.
5658 (mi_cmd_var_show_format): Likewise.
5659 (mi_cmd_var_info_num_children): Likewise.
5660 (mi_cmd_var_list_children): Likewise.
5661 (mi_cmd_var_info_type): Likewise.
5662 (mi_cmd_var_info_expression): Likewise.
5663 (mi_cmd_var_show_attributes): Likewise.
5664 (mi_cmd_var_assign): Likewise.
5665 (mi_cmd_var_update): Likewise.
5666 (mi_cmd_enable_pretty_printing): Likewise.
5667 (mi_cmd_var_set_update_range): Likewise.
5668 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5670 (mi_cmd_target_file_put): Likewise.
5671 (mi_cmd_target_file_delete): Likewise.
5672 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5674 (mi_cmd_stack_info_depth): Likewise.
5675 (mi_cmd_stack_list_locals): Likewise.
5676 (mi_cmd_stack_list_args): Likewise.
5677 (mi_cmd_stack_select_frame): Likewise.
5678 (mi_cmd_stack_select_frame): Likewise.
5679 (mi_cmd_stack_info_frame): Likewise.
5680 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5682 (mi_cmd_file_list_exec_source_files): Likewise.
5683 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5684 (mi_cmd_env_cd): Likewise.
5685 (mi_cmd_env_path): Likewise.
5686 (mi_cmd_env_dir): Likewise.
5687 (mi_cmd_inferior_tty_show): Likewise.
5688 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5689 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5690 (mi_cmd_break_watch): Likewise.
5692 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5694 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5695 (ppc_linux_insert_hw_breakpoint): Likewise.
5696 (ppc_linux_remove_hw_breakpoint): Likewise.
5697 (ppc_linux_insert_watchpoint): Likewise.
5699 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5700 Jan Kratochvil <jan.kratochvil@redhat.com>
5702 PR fortran/11104 and DWARF unbound arrays detection.
5703 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5704 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5705 unspecified upper bound.
5706 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5707 variables array_size_array, tmp_type and offset_item. New variable
5708 array. Remove call to f77_get_upperbound. New variables array_type
5709 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5710 the final call to deprecated_set_value_type.
5712 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5714 Make value allocations more lazy.
5715 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5716 instead of allocate_value and set_value_lazy when possible.
5717 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5718 instead of allocate_value and set_value_lazy.
5719 * findvar.c (value_of_register_lazy): Likewise.
5720 (read_var_value): Remove V preallocation, call just check_typedef in
5721 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5722 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5723 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5724 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5725 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5726 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5727 the end, remove set_value_lazy there.
5728 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5729 instead of allocate_value and set_value_lazy when possible.
5730 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5731 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5732 of allocate_value and set_value_lazy.
5733 (value_from_contents_and_address): Use allocate_value_lazy instead of
5734 allocate_value and set_value_lazy when possible.
5736 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5738 * disasm.c (dump_insns): Support dumping opcodes for MI.
5739 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5740 dumping of instruction opcodes.
5742 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5744 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5747 2011-01-11 Tom Tromey <tromey@redhat.com>
5749 * thread.c (do_captured_thread_select): Emit newline before
5752 2011-01-11 Michael Snyder <msnyder@vmware.com>
5754 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5755 * score-tdep.c: Ditto.
5756 * score-tdep.h: Ditto.
5757 * ser-base.c: Ditto.
5758 * ser-go32.c: Ditto.
5761 * ser-mingw.c: Ditto.
5762 * ser-pipe.c: Ditto.
5764 * ser-unix.c: Ditto.
5765 * sh64-tdep.c: Ditto.
5766 * shnbsd-nat.c: Ditto.
5770 * solib-darwin.c: Ditto.
5771 * solib-frv.c: Ditto.
5773 * solib-irix.c: Ditto.
5774 * solib-osf.c: Ditto.
5775 * solib-pa64.c: Ditto.
5776 * solib-som.c: Ditto.
5777 * solib-spu.c: Ditto.
5778 * solib-sunos.c: Ditto.
5779 * solib-svr4.c: Ditto.
5781 * sol-thread.c: Ditto.
5785 * sparc64-linux-tdep.c: Ditto.
5786 * sparc64-tdep.c: Ditto.
5787 * sparc-linux-nat.c: Ditto.
5788 * sparc-linux-tdep.c: Ditto.
5789 * sparc-sol2-nat.c: Ditto.
5790 * sparc-sol2-tdep.c: Ditto.
5791 * sparc-tdep.c: Ditto.
5792 * sparc-tdep.h: Ditto.
5793 * spu-tdep.c: Ditto.
5794 * stabsread.c: Ditto.
5795 * stabsread.h: Ditto.
5803 * target-descriptions.c: Ditto.
5804 * target-descriptions.h: Ditto.
5806 * target-memory.c: Ditto.
5807 * terminal.h: Ditto.
5810 * tracepoint.c: Ditto.
5811 * tracepoint.h: Ditto.
5812 * trad-frame.h: Ditto.
5813 * typeprint.c: Ditto.
5815 2011-01-11 Michael Snyder <msnyder@vmware.com>
5817 * ui-file.c: Comment cleanup, mostly periods and spaces.
5822 * v850-tdep.c: Ditto.
5823 * valarith.c: Ditto.
5825 * valprint.c: Ditto.
5826 * valprint.h: Ditto.
5831 * vax-tdep.c: Ditto.
5835 * windows-nat.c: Ditto.
5836 * windows-tdep.c: Ditto.
5837 * xcoffread.c: Ditto.
5838 * xcoffsolib.c: Ditto.
5839 * xml-support.c: Ditto.
5840 * xstormy16-tdep.c: Ditto.
5841 * xtensa-tdep.c: Ditto.
5842 * xtensa-tdep.h: Ditto.
5844 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5846 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5847 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5849 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5850 Thiago Jung Bauermann <bauerman@br.ibm.com>
5852 Implement support for PowerPC BookE ranged watchpoints.
5854 (struct breakpoint_ops) <resources_needed>: New method.
5855 Initialize to NULL in all existing breakpoint_ops instances.
5856 (struct breakpoint) <exact>: New field.
5857 (target_exact_watchpoints): Declare external global.
5858 * breakpoint.c (target_exact_watchpoints): New global flag.
5859 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5860 b->enable_state to bp_enabled before calling
5861 hw_watchpoint_used_count.
5862 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5863 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5865 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5866 if the watchpoint is exact.
5867 (resources_needed_watchpoint): New function.
5868 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5869 (watch_command_1): Set b->exact if the user asked for an exact
5870 watchpoint and one can be set.
5871 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5872 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5873 the user asks for an exact watchpoint and one can be set. Return
5874 number of needed debug registers to watch the expression.
5875 * gdbtypes.c (is_scalar_type): New function, based on
5876 valprint.c:scalar_type_p.
5877 (is_scalar_type_recursive): New function.
5878 * gdbtypes.h (is_scalar_type_recursive): Declare.
5879 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5880 handle regions when ranged watchpoints are available.
5881 (create_watchpoint_request): New function.
5882 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5883 create_watchpoint_request.
5884 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5885 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5886 `set powerpc' and `show powerpc' commands.
5887 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5888 Mention documentation comment in the target macro.
5889 (target_region_ok_for_hw_watchpoint): Document return value.
5891 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5893 * breakpoint.c (update_watchpoint): Decide on using a software or
5894 hardware watchpoint after the bp_locations are created.
5896 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5898 Convert hardware watchpoints to use breakpoint_ops.
5899 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5900 <insert_location>: ... this. Return int instead of void.
5901 Accept pointer to struct bp_location instead of pointer to
5902 struct breakpoint. Adapt all implementations.
5903 (breakpoint_ops) <remove>: Rename to...
5904 <remove_location>: ... this. Accept pointer to struct bp_location
5905 instead of pointer to struct breakpoint. Adapt all implementations.
5906 * breakpoint.c (insert_catchpoint): Delete function.
5907 (insert_bp_location): Call the watchpoint or catchpoint's
5908 breakpoint_ops.insert method.
5909 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5910 breakpoint_ops.remove method.
5911 (insert_watchpoint, remove_watchpoint): New functions.
5912 (watchpoint_breakpoint_ops): New structure.
5913 (watch_command_1): Initialize the OPS field.
5914 * inf-child.c (inf_child_insert_fork_catchpoint)
5915 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5916 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5917 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5919 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5920 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5921 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5922 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5923 * target.c (update_current_target): Change default implementation of
5924 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5925 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5926 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5927 to_set_syscall_catchpoint to return_one.
5928 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5929 (debug_to_insert_exec_catchpoint): Report return value.
5930 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5931 (to_insert_exec_catchpoint): Change declaration to return int instead
5934 2011-01-11 Michael Snyder <msnyder@vmware.com>
5936 * arm-tdep.c: Internationalization.
5939 * fork-child.c: Ditto.
5940 * nto-procfs.c: Ditto.
5941 * ppc-sysv-tdep.c: Ditto.
5943 * remote-mips.c: Ditto.
5945 * rs6000-nat.c: Ditto.
5946 * rs6000-tdep.c: Ditto.
5950 * xml-support.c: Ditto.
5951 * mi/mi-cmd-break.c: Ditto.
5952 * mi/mi-cmd-var.c: Ditto.
5953 * mi/mi-interp.c: Ditto.
5954 * mi/mi-main.c: Ditto.
5956 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5958 * remote-sim.c (gdbsim_store_register): Update API to
5959 sim_store_register to check more error conditions.
5961 2011-01-10 Michael Snyder <msnyder@vmware.com>
5963 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5964 * nto-tdep.c: Ditto.
5965 * nto-tdep.h: Ditto.
5966 * objc-exp.y: Ditto.
5967 * objc-lang.c: Ditto.
5968 * objfiles.c: Ditto.
5969 * objfiles.h: Ditto.
5970 * observer.c: Ditto.
5971 * opencl-lang.c: Ditto.
5974 * parser-defs.h: Ditto.
5977 * posix-hdep.c: Ditto.
5978 * ppcbug-rom.c: Ditto.
5979 * ppc-linux-nat.c: Ditto.
5980 * ppc-linux-tdep.c: Ditto.
5981 * ppc-linux-tdep.h: Ditto.
5982 * ppcnbsd-tdep.c: Ditto.
5983 * ppcobsd-tdep.c: Ditto.
5984 * ppcobsd-tdep.h: Ditto.
5985 * ppc-sysv-tdep.c: Ditto.
5986 * ppc-tdep.h: Ditto.
5987 * printcmd.c: Ditto.
5988 * proc-abi.c: Ditto.
5989 * proc-flags.c: Ditto.
5991 * proc-utils.h: Ditto.
5992 * progspace.h: Ditto.
5993 * prologue-value.c: Ditto.
5994 * prologue-value.h: Ditto.
5995 * psympriv.h: Ditto.
5997 * p-typeprint.c: Ditto.
5998 * p-valprint.c: Ditto.
5999 * ravenscar-sparc-thread.c: Ditto.
6000 * ravenscar-thread.c: Ditto.
6001 * ravenscar-thread.h: Ditto.
6003 * regcache.c: Ditto.
6004 * regcache.h: Ditto.
6006 * remote-fileio.c: Ditto.
6007 * remote-fileio.h: Ditto.
6009 * remote-m32r-sdi.c: Ditto.
6010 * remote-mips.c: Ditto.
6011 * remote-sim.c: Ditto.
6012 * rs6000-aix-tdep.c: Ditto.
6013 * rs6000-nat.c: Ditto.
6014 * rs6000-tdep.c: Ditto.
6016 2011-01-10 Michael Snyder <msnyder@vmware.com>
6018 * charset.c (validate): Internationalization.
6019 * coffread.c (read_one_sym): Ditto.
6020 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6021 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6022 * inflow.c (new_tty): Ditto.
6023 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6024 * m32c-tdep.c (m32c_return_value): Ditto.
6025 * mep-tdep.c (mep_store_return_value): Ditto.
6026 * score-tdep.c (score7_fetch_insn): Ditto.
6027 * ser-mingw.c (pipe_windows_open): Ditto.
6028 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6029 * spu-tdep.c (spu_register_type): Ditto.
6030 * tracepoint.c (trace_find_command): Ditto.
6031 * valarith.c (value_pos): Ditto.
6033 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6035 * ada-valprint.c (printstr): Minor comment reformatting.
6037 2011-01-08 Michael Snyder <msnyder@vmware.com>
6039 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6042 2011-01-08 Michael Snyder <msnyder@vmware.com>
6044 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6045 * hppa-hpux-tdep.c: Ditto.
6046 * hppa-linux-nat.c: Ditto.
6047 * hppa-linux-tdep.c: Ditto.
6048 * hppanbsd-tdep.c: Ditto.
6049 * hppa-tdep.c: Ditto.
6050 * hppa-tdep.h: Ditto.
6051 * hpux-thread.c: Ditto.
6052 * i386-cygwin-tdep.c: Ditto.
6053 * i386-darwin-nat.c: Ditto.
6054 * i386gnu-nat.c: Ditto.
6055 * i386-linux-nat.c: Ditto.
6056 * i386-linux-tdep.c: Ditto.
6057 * i386-nat.c: Ditto.
6058 * i386-nat.h: Ditto.
6059 * i386nbsd-tdep.c: Ditto.
6060 * i386-sol2-nat.c: Ditto.
6061 * i386-stub.c: Ditto.
6062 * i386-tdep.c: Ditto.
6063 * i386-tdep.h: Ditto.
6064 * i387-tdep.c: Ditto.
6065 * ia64-linux-nat.c: Ditto.
6066 * ia64-linux-tdep.c: Ditto.
6067 * ia64-tdep.c: Ditto.
6071 * inferior.c: Ditto.
6072 * inferior.h: Ditto.
6078 * iq2000-tdep.c: Ditto.
6079 * irix5-nat.c: Ditto.
6085 * jv-typeprint.c: Ditto.
6086 * jv-valprint.c: Ditto.
6087 * language.c: Ditto.
6088 * language.h: Ditto.
6089 * linespec.c: Ditto.
6090 * linux-fork.c: Ditto.
6091 * linux-nat.c: Ditto.
6092 * linux-thread-db.c: Ditto.
6093 * lm32-tdep.c: Ditto.
6095 2011-01-08 Michael Snyder <msnyder@vmware.com>
6097 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6099 * m2-typeprint.c: Ditto.
6100 * m2-valprint.c: Ditto.
6101 * m32c-tdep.c: Ditto.
6102 * m32r-linux-nat.c: Ditto.
6103 * m32r-rom.c: Ditto.
6104 * m32r-tdep.c: Ditto.
6105 * m32r-tdep.h: Ditto.
6106 * m68hc11-tdep.c: Ditto.
6107 * m58klinux-nat.c: Ditto.
6108 * m68k-tdep.c: Ditto.
6109 * m88k-tdep.c: Ditto.
6110 * m88k-tdep.h: Ditto.
6111 * machoread.c: Ditto.
6112 * macrocmd.c: Ditto.
6113 * macroexp.c: Ditto.
6114 * macrotab.c: Ditto.
6117 * mdebugread.c: Ditto.
6118 * mdebugread.h: Ditto.
6121 * memory-map.h: Ditto.
6122 * mep-tdep.c: Ditto.
6123 * microblaze-rom.c: Ditto.
6124 * microblaze-tdep.c: Ditto.
6126 * mips-irix-tdep.c: Ditto.
6127 * mips-linux-nat.c: Ditto.
6128 * mips-linux-tdep.c: Ditto.
6129 * mips-linux-tdep.h: Ditto.
6130 * mipsnbsd-nat.c: Ditto.
6131 * mipsnbsd-tdep.c: Ditto.
6132 * mipsread.c: Ditto.
6133 * mips-tdep.c: Ditto.
6134 * mips-tdep.h: Ditto.
6135 * mn10300-linux-tdep.c: Ditto.
6136 * mn10300-tdep.c: Ditto.
6137 * mn10300-tdep.h: Ditto.
6140 * moxie-tdep.c: Ditto.
6141 * moxie-tdep.h: Ditto.
6144 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6146 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6148 2011-01-08 Robert Millan <rmh@gnu.org>
6150 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6152 2011-01-07 Michael Snyder <msnyder@vmware.com>
6154 * charset.c (_initialize_charset): Fix typo in string.
6156 2011-01-07 Michael Snyder <msnyder@vmware.com>
6158 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6160 * tui/tui-layout.c (tui_set_layout_for_display_command):
6161 Split line so that operator goes to beginning of line.
6162 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6163 assignment out of if statement.
6165 2011-01-07 Michael Snyder <msnyder@vmware.com>
6167 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6168 * ada-lang.h: Ditto.
6169 * ada-tasks.c: Ditto.
6170 * ada-valprint.c: Ditto.
6171 * aix-threads.c: Ditto.
6172 * alpha-linux-nat.c: Ditto.
6173 * alpha-linux-tdep.c: Ditto.
6174 * alpha-mdebug-tdep.c: Ditto.
6175 * alpha-nat.c: Ditto.
6176 * alpha-osf1-tdep.c: Ditto.
6177 * alpha-tdep.c: Ditto.
6178 * alphabsd-nat.c: Ditto.
6179 * alphabsd-tdep.c: Ditto.
6180 * amd64-darwin-tdep.c: Ditto.
6181 * amd64-linux-nat.c: Ditto.
6182 * amd64-linux-tdep.c: Ditto.
6183 * amd64-sol2-tdep.c: Ditto.
6184 * amd64-tdep.c: Ditto.
6185 * amd64-fbsd-tdep.c: Ditto.
6186 * amd64-nbsd-tdep.c: Ditto.
6187 * amd64-obsd-tdep.c: Ditto.
6188 * amd64-linux-nat.c: Ditto.
6189 * amd64-linux-tdep.c: Ditto.
6190 * arm-tdep.c: Ditto.
6191 * arm-tdep.h: Ditto.
6192 * armnbsd-nat.c: Ditto.
6193 * avr-tdep.c: Ditto.
6194 * bfin-tdep.c: Ditto.
6196 * c-typeprintc: Ditto.
6197 * c-valprint.c: Ditto.
6198 * coff-pe-read.h: Ditto.
6199 * coffreead.c: Ditto.
6200 * cris-tdep.c: Ditto.
6202 * darwin-nat-info.c: Ditto.
6203 * darwin-nat.c: Ditto.
6204 * dbug-rom.c: Ditto.
6208 * dec-thread.c: Ditto.
6210 * demangle.c: Ditto.
6211 * dicos-tdep.c: Ditto.
6212 * dictionary.c: Ditto.
6213 * dictionary.h: Ditto.
6214 * dink32-rom.c: Ditto.
6216 * doublest.c: Ditto.
6218 * dummy-frame.c: Ditto.
6219 * dwarf2-frame.c: Ditto.
6220 * dwarf2expr.c: Ditto.
6221 * dwarf2loc.c: Ditto.
6222 * dwarf2read.c: Ditto.
6226 * event-top.h: Ditto.
6227 * exceptions.c: Ditto.
6228 * exceptions.h: Ditto.
6230 * expprint.c: Ditto.
6231 * expression.h: Ditto.
6235 * f-typeprint.c: Ditto.
6236 * f-valprint.c: Ditto.
6237 * fbsd-nat.c: Ditto.
6239 * fork-child.c: Ditto.
6242 * frv-linux-tdep.c: Ditto.
6243 * frv-tdep.c: Ditto.
6245 * gdb-stabs.h: Ditto.
6246 * gdb_assert.h: Ditto.
6247 * gdb_string.h: Ditto.
6248 * gdb_thread_db.h: Ditto.
6249 * gdb_wait.h: Ditto.
6250 * gdbarch.sh: Ditto.
6252 * gdbthread.h: Ditto.
6253 * gdbtypes.c: Ditto.
6254 * gdbtypes.h: Ditto.
6257 * gnu-v2-abi.c: Ditto.
6258 * gnu-v3-abi.c: Ditto.
6259 * go32-nat.c: Ditto.
6260 * gdbarch.c: Regenerate.
6261 * gdbarch.h: Regenerate.
6263 2011-01-07 Michael Snyder <msnyder@vmware.com>
6265 * ax-gdb.c: Adjust some long output strings.
6266 * breakpoint.c: Ditto.
6271 * linux-nat.c: Ditto.
6272 * solib-pa64.c: Ditto.
6273 * solib-som.c: Ditto.
6275 2011-01-06 Tom Tromey <tromey@redhat.com>
6279 * python/python.c (GdbMethods): Add "newest_frame" method.
6280 * python/python-internal.h (gdbpy_newest_frame): Declare.
6281 * python/py-frame.c (gdbpy_newest_frame): New function.
6283 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6285 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6286 * jit.c (jit_debug): New variable.
6287 (show_jit_debug): New function.
6288 (struct target_buffer): Use ULONGEST.
6289 (bfd_open_from_target_memory): Likewise.
6290 (jit_register_code, jit_inferior_init): Add debug output.
6291 (_initialize_jit): Register "debug jit" command.
6293 2011-01-06 Tom Tromey <tromey@redhat.com>
6295 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6296 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6299 2011-01-06 Tom Tromey <tromey@redhat.com>
6301 * python/py-frame.c (frapy_block): Use get_frame_block.
6303 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6305 Do not stop on SIGPRIO signals by default
6306 * infrun.c (_initialize_infrun): Unset signal_stop and
6307 signal_print for TARGET_SIGNAL_PRIO.
6309 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6311 * ada-tasks.c: Fix style violation in comment.
6313 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6315 * linespec.c (decode_compound, find_method): Remove trailing \n
6316 at end of error string.
6317 * solib-irix.c (irix_current_sos): Likewise.
6318 * varobj.c (uninstall_variable): Likewise.
6320 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6322 * copyright.py: New script.
6323 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6324 Launch emacs without exec'ing. Call copyright.py afterwards.
6326 2011-01-05 Michael Snyder <msnyder@vmware.com>
6328 * addrmap.c: Shorten lines of >= 80 columns.
6329 * arch-utils.c: Ditto.
6330 * arch-utils.h: Ditto.
6332 * ax-general.c: Ditto.
6334 * blockframe.c: Ditto.
6335 * breakpoint.c: Ditto.
6336 * buildsym.c: Ditto.
6338 * c-typeprint.c: Ditto.
6340 * coffread.c: Ditto.
6344 * cp-namespace.c: Ditto.
6345 * cp-support.c: Ditto.
6346 * dbug-rom.c: Ditto.
6351 * dictionary.c: Ditto.
6353 * doublest.c: Ditto.
6354 * dwarf2-frame.c: Ditto.
6355 * dwarf2expr.c: Ditto.
6356 * dwarf2loc.c: Ditto.
6357 * dwarf2read.c: Ditto.
6360 * event-loop.c: Ditto.
6361 * event-loop.h: Ditto.
6362 * exceptions.h: Ditto.
6364 * expprint.c: Ditto.
6365 * expression.h: Ditto.
6367 * f-valprint.c: Ditto.
6369 * frame-base.c: Ditto.
6370 * frame-unwind.c: Ditto.
6371 * frame-unwind.h: Ditto.
6375 * gdb-stabs.h: Ditto.
6376 * gdb_assert.h: Ditto.
6377 * gdb_dirent.h: Ditto.
6378 * gdb_obstack.h: Ditto.
6380 * gdbtypes.c: Ditto.
6381 * gdbtypes.h: Ditto.
6382 * inf-ttrace.c: Ditto.
6387 * inline-frame.h: Ditto.
6388 * language.c: Ditto.
6389 * language.h: Ditto.
6390 * libunwind-frame.c: Ditto.
6391 * libunwind-frame.h: Ditto.
6392 * linespec.c: Ditto.
6393 * linux-nat.c: Ditto.
6394 * linux-nat.h: Ditto.
6395 * linux-thread-db.c: Ditto.
6396 * machoread.c: Ditto.
6397 * macroexp.c: Ditto.
6398 * macrotab.c: Ditto.
6401 * mdebugread.c: Ditto.
6406 * objfiles.c: Ditto.
6407 * objfiles.h: Ditto.
6409 * p-typeprint.c: Ditto.
6410 * p-valprint.c: Ditto.
6412 * printcmd.c: Ditto.
6413 * proc-events.c: Ditto.
6415 * progspace.c: Ditto.
6416 * progspace.h: Ditto.
6417 * psympriv.h: Ditto.
6420 * regcache.c: Ditto.
6421 * regcache.h: Ditto.
6422 * remote-fileio.c: Ditto.
6424 * ser-mingw.c: Ditto.
6426 * ser-unix.c: Ditto.
6429 * solib-frv.c: Ditto.
6430 * solib-irix.c: Ditto.
6431 * solib-osf.c: Ditto.
6432 * solib-pa64.c: Ditto.
6433 * solib-som.c: Ditto.
6434 * solib-sunos.c: Ditto.
6435 * solib-svr4.c: Ditto.
6436 * solib-target.c: Ditto.
6440 * stabsread.c: Ditto.
6441 * stabsread.c: Ditto.
6444 * symfile-mem.c: Ditto.
6450 * target-descriptions.c: Ditto.
6451 * target-memory.c: Ditto.
6454 * terminal.h: Ditto.
6457 * tracepoint.c: Ditto.
6458 * tracepoint.h: Ditto.
6462 * user-regs.c: Ditto.
6463 * user-regs.h: Ditto.
6465 * valarith.c: Ditto.
6467 * valprint.c: Ditto.
6468 * valprint.h: Ditto.
6473 * xcoffread.c: Ditto.
6474 * xcoffsolib.c: Ditto.
6475 * xcoffsolib.h: Ditto.
6476 * xml-syscall.c: Ditto.
6477 * xml-tdesc.c: Ditto.
6479 2011-01-05 Michael Snyder <msnyder@vmware.com>
6481 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6482 * cli/cli-decode.c: Ditto.
6483 * cli/cli-dump.c: Ditto.
6484 * cli/cli-logging.c: Ditto.
6485 * cli/cli-script.c: Ditto.
6486 * cli/cli-setshow.c: Ditto.
6487 * common/signals.c: Ditto.
6488 * mi/mi-cmd-break.c: Ditto.
6489 * mi/mi-cmd-disas.c: Ditto.
6490 * mi/mi-cmd-stack.c: Ditto.
6491 * mi/mi-cmd-var.c: Ditto.
6492 * mi/mi-cmds.c: Ditto.
6493 * mi/mi-common.h: Ditto.
6494 * mi/mi-console.c: Ditto.
6495 * mi/mi-interp.c: Ditto.
6496 * mi/mi-main.c: Ditto.
6497 * osf-share/cma_attr.c: Ditto.
6498 * osf-share/cma_deb_core.h: Ditto.
6499 * osf-share/cma_debug_client.h: Ditto.
6500 * osf-share/cma_handle.h: Ditto.
6501 * osf-share/cma_mutex.h: Ditto.
6502 * osf-share/cma_stack_int.h: Ditto.
6503 * osf-share/cma_tcb_defs.h: Ditto.
6504 * python/py-auto-load.c: Ditto.
6505 * python/py-breakpoint.c: Ditto.
6506 * python/py-cmd.c: Ditto.
6507 * python/py-frame.c: Ditto.
6508 * python/py-objfile.c: Ditto.
6509 * python/py-param.c: Ditto.
6510 * python/py-progspace.c: Ditto.
6511 * python/py-symbol.c: Ditto.
6512 * python/py-value.c: Ditto.
6513 * python/python-internal.h: Ditto.
6514 * python/python.c: Ditto.
6515 * tui/tui-data.c: Ditto.
6516 * tui/tui-disasm.c: Ditto.
6517 * tui/tui-hooks.c: Ditto.
6518 * tui/tui-io.c: Ditto.
6519 * tui/tui-layout.c: Ditto.
6520 * tui/tui-regs.c: Ditto.
6521 * tui/tui-source.c: Ditto.
6522 * tui/tui-stack.c: Ditto.
6523 * tui/tui-win.c: Ditto.
6524 * tui/tui-windata.c: Ditto.
6525 * tui/tui-winsource.c: Ditto.
6527 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6529 * configure.ac, gdb.1: Copyright year update.
6531 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6533 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6534 this_pc_in_block, morestack_msym and morestack_name. Check for
6535 "__morestack" minimal symbol there.
6537 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6539 * symfile.c (find_sym_fns): Add call to dont_repeat.
6541 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6543 Copyright year update in most files (performed by copyright.sh).
6545 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6547 * top.c (print_gdb_version): Update copyright year in version output.
6549 For older changes see ChangeLog-2010.
6555 version-control: never