1 2011-06-14 Tom Tromey <tromey@redhat.com>
3 * coffread.c (coffread_objfile): Rename from current_objfile.
4 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
7 2011-06-14 Tom Tromey <tromey@redhat.com>
9 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
10 (class_symtab): Remove.
11 (jv_dynamics_progspace_key): New global.
12 (jv_per_objfile_free): Reset program space data. Update assert.
14 (get_dynamics_objfile): Use and set program space data.
15 (get_java_class_symtab): Use get_dynamics_objfile.
16 (add_class_symbol): Likewise.
17 (java_link_class_type): Likewise.
18 (java_object_type, jv_clear_object_type, set_java_object_type):
20 (get_java_object_type): Update. Don't cache result.
21 (is_object_type): Don't call set_java_object_type.
22 (_initialize_java_language): Don't set jv_type_objfile_data_key;
23 initialize jv_dynamics_progspace_key.
25 2011-06-14 Tom Tromey <tromey@redhat.com>
27 * symtab.h (current_objfile): Don't declare.
28 * objfiles.h (current_objfile): Don't declare.
29 * objfiles.c (current_objfile): Remove.
30 * mdebugread.c (current_objfile): New file-scope global.
31 * dbxread.c (current_objfile): New file-scope global.
32 * coffread.c (current_objfile): New file-scope global.
34 2011-06-13 Pedro Alves <pedro@codesourcery.com>
36 * top.h (line): Rename to ...
37 (saved_command_line): ... this.
38 (linesize): Rename to ...
39 (saved_command_line_size): ... this.
40 * top.c (line): Rename to ...
41 (saved_command_line): ... this.
42 (linesize): Rename to ...
43 (saved_command_line_size): ... this.
44 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
45 * event-top.c (command_line_handler): Adjust.
46 * main.c (captured_main): Adjust.
48 2011-06-12 Mark Kettenis <kettenis@gnu.org>
50 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
51 get_frame_func instead of get_frame_pc to determine the code
52 address used to construct the frame ID.
53 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
54 (i386_epilogue_frame_this_id): Likewise.
55 (i386_epilogue_frame_prev_register): New function.
56 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
57 (i386_stack_tramp_frame_sniffer): Fix coding style.
58 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
59 (i386_gdbarch_init): Fix comments.
61 2011-06-12 Mark Kettenis <kettenis@gnu.org>
63 * i386-tdep.c (i386_match_insn_block): Use length of the proper
64 instruction when walking back through the instruction stream.
66 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
68 * symtab.c (output_partial_symbol_filename): Exchange the filename and
69 fullname parameters order.
71 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
74 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
76 * psymtab.c (map_symbol_filenames_psymtab)
77 (map_partial_symbol_filenames): Likewise.
78 * psymtab.h: Include symfile.h.
79 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
80 * symfile.h (symbol_filename_ftype): New.
81 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
82 map_symbol_filenames, clarify more the naming in comment.
84 2011-06-07 Doug Evans <dje@google.com>
86 * cc-with-index.sh: Fix typos in comment.
87 Look for ../../gdb, for fullname.exp.
89 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
90 Pedro Alves <pedro@codesourcery.com>
92 * cli/cli-cmds.c (shell_escape): Use waitpid.
93 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
95 2011-06-07 Tristan Gingold <gingold@adacore.com>
97 * xcoffread.c (dwarf2_xcoff_names): New variable.
98 (aix_process_linenos): Add a guard.
99 (xcoff_symfile_finish): Free dwarf2.
100 (xcoff_initial_scan): Add dwarf2 support.
102 2011-06-06 Pedro Alves <pedro@codesourcery.com>
104 * infcall.c (run_inferior_call): Don't mask async. Instead force
105 a synchronous wait, if the target can async.
107 * target.h (struct target_ops): Delete to_async_mask.
108 (target_async_mask): Delete.
109 * target.c (update_current_target): Delete references to to_async_mask.
110 * linux-nat.c (linux_nat_async_mask_value): Delete.
111 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
112 to linux_nat_async_mask_value.
113 (linux_nat_async_mask): Delete.
114 (linux_nat_async, linux_nat_close): Remove references to
115 linux_nat_async_mask_value.
116 * record.c (record_async_mask_value): Delete.
117 (record_async): Remove references to record_async_mask_value.
118 (record_async_mask): Delete.
119 (record_can_async_p, record_is_async_p): Remove references to
120 record_async_mask_value.
121 (init_record_ops, init_record_core_ops): Remove references to
123 * remote.c (remote_async_mask_value): Delete.
124 (init_remote_ops): Remove reference to remote_async_mask.
125 (remote_can_async_p, remote_is_async_p): Remove references to
126 remote_async_mask_value.
127 (remote_async): Remove references to remote_async_mask_value.
128 (remote_async_mask): Delete.
130 * infrun.c (fetch_inferior_event): Don't claim registers changed
131 if the current thread is already not executing.
133 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
135 From Stephen Kitt <steve@sk2.org>
136 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
137 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
139 2011-06-03 Joel Brobecker <brobecker@adacore.com>
141 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
142 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
144 2011-06-03 Tom Tromey <tromey@redhat.com>
146 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
148 * python/py-exitedevent.c (create_exited_event_object): Change
149 type of 'exit_code'. Optionally add exit_code attribute.
150 (emit_exited_event): Change type of 'exit_code'.
151 * python/py-event.h (emit_exited_event): Update.
152 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
153 * infrun.c (handle_inferior_event): Set exit code fields on
155 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
157 * inferior.c (exit_inferior_1): Initialize new fields.
159 2011-06-03 Tom Tromey <tromey@redhat.com>
161 * dwarf2expr.c (get_signed_type): New function.
162 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
164 2011-06-02 Keith Seitz <keiths@redhat.com>
166 * objc-lang.c (find_methods): Increment objfile_csym earlier.
168 2011-06-02 Pedro Alves <pedro@codesourcery.com>
170 * top.h (simplified_command_loop): Delete declaration.
172 2011-06-01 Mike Frysinger <vapier@gentoo.org>
174 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
175 gdb_sysroot to the "len" variable. Append both to "arg_buf".
177 2011-06-01 Yao Qi <yao@codesourcery.com>
179 * objfiles.h (obj_section_addr): Update reference to objfile from
181 (obj_section_endaddr): Likewise.
183 2011-06-01 Daniel Jacobowitz <drow@false.org>
185 * MAINTAINERS: Update my email address and affiliation. Also
186 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
188 2010-05-31 Keith Seitz <keiths@redhat.com>
191 * linespec.c (get_search_block): New function.
192 (find_methods): Add FILE_SYMTATB parameter and use it and
193 get_search_block to pass an appropriate block to
194 lookup_symbol_in_namespace.
195 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
196 Check if *ARGPTR starts with a filename first.
197 If it does, call locate_first_half again to locate the next
198 "first half" of the linespec.
199 Pass FILE_SYMTATB to decode_objc and decode_compound.
200 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
201 (locate_first_half): Stop on the first colon seen.
202 (decode_compound): Add FILE_SYMTAB parameter.
203 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
204 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
205 get_search_block with lookup_symbol.
206 (find_method): Add FILE_SYMTAB parameter and pass it to
208 (decode_objc): Use get_search_block.
210 2010-05-31 Keith Seitz <keiths@redhat.com>
213 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
214 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
215 and CP_ANONYMOUS_NAMESPACE_LEN.
216 (cp_is_anonymous): Likewise.
217 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
218 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
219 * dwarf2read.c (namespace_name): Likewise.
220 (fixup_partial_die): Likewise.
221 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
222 seen in the input, keep it.
224 2011-05-30 Pedro Alves <pedro@codesourcery.com>
226 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
227 * inf-loop.h (inferior_event_handler_wrapper): Delete.
228 * inf-loop.c (inferior_event_handler_wrapper): Delete.
229 (inferior_event_handler): Don't handle INF_QUIT_REQ.
230 * remote.c (_initialize_remote): Register
231 async_remote_interrupt_twice directly as
232 sigint_remote_twice_token event.
234 2011-05-30 Pedro Alves <pedro@codesourcery.com>
236 * target.h (enum inferior_event_type): Delete INF_ERROR.
237 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
239 2011-05-30 Pedro Alves <pedro@codesourcery.com>
241 * interps.c (interp_set): Don't cancel continuations.
243 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
245 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
247 2011-05-30 Pedro Alves <pedro@codesourcery.com>
249 * continuations.h (continuation_ftype): Add `err' parameter.
251 (do_all_continuations, do_all_continuations_thread)
252 (do_all_intermediate_continuations)
253 (do_all_intermediate_continuations_thread)
254 (do_all_inferior_continuations): Add `err' parameter.
255 * continuations.c (do_my_continuations_1, do_my_continuations)
256 (do_all_inferior_continuations, do_all_continuations_ptid)
257 (do_all_continuations_thread_callback)
258 (do_all_continuations_thread, do_all_continuations)
259 (do_all_intermediate_continuations_thread_callback)
260 (do_all_intermediate_continuations_thread)
261 (do_all_intermediate_continuations): Add `err' parameter, and pass
262 it down all the way to the continuations proper.
263 * inf-loop.c (inferior_event_handler): If fetching an inferior
264 event throws an error, don't pop the target, and still call the
265 continuations, but with `err' set. Adjust all other continuation
267 * breakpoint.c (until_break_command_continuation): Add `err'
269 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
270 issue another step if `err' is set.
271 (struct until_next_continuation_args): New.
272 (until_next_continuation): Add `err' parameter. Adjust.
273 (until_next_command): Adjust.
274 (struct finish_command_continuation_args): Add `thread' field.
275 (finish_command_continuation): Add `err' parameter. Handle it.
276 (finish_forward): Adjust.
277 (attach_command_continuation): Add `err' parameter. Handle it.
278 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
279 cancel the continuations.
280 * interps.c (interp_set): Adjust to cancel the continuations.
281 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
282 continuations rather than discarding.
283 (free_thread): Don't clear thread inferior resources here.
284 (delete_thread_1): Do it here instead. And do it before removing
285 the thread from the threads list. Tag the thread as exited before
286 clearing thread inferior resources.
288 2011-05-30 Joel Brobecker <brobecker@adacore.com>
290 * infcall.c (call_function_by_hand): Rephrase error message.
292 2011-05-27 Pedro Alves <pedro@codesourcery.com>
294 * defs.h (struct thread_info, struct inferior): Delete forward
296 * breakpoint.h (struct thread_info): New forward declaration.
297 * observer.sh (struct inferior): New forward declaration.
298 * python/python-internal.h (struct inferior): New forward
301 2011-05-27 Pedro Alves <pedro@codesourcery.com>
303 * defs.h (struct continuation, continuation_ftype)
304 (continuation_free_arg_ftype, add_continuation)
305 (do_all_continuations, do_all_continuations_thread)
306 (discard_all_continuations, discard_all_continuations_thread)
307 (add_intermediate_continuation, do_all_intermediate_continuations)
308 (do_all_intermediate_continuations_thread)
309 (discard_all_intermediate_continuations)
310 (discard_all_intermediate_continuations_thread)
311 (add_inferior_continuation, do_all_inferior_continuations)
312 (discard_all_inferior_continuations): Move to ...
313 * continuations.h: ... this new file.
314 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
315 infcmd.c, inferior.c, infrun.c, interps.c: Include
318 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Doug Evans <dje@google.com>
321 Fix PR 10970, PR 12702.
322 * linux-nat.c (linux_lwp_is_zombie): New function.
323 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
324 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
326 2011-05-27 Pedro Alves <pedro@codesourcery.com>
328 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
330 (add_continuation, add_intermediate_continuation)
331 (add_inferior_continuation): Use them.
332 * continuations.c (struct continuation): Use them.
333 (make_continuation_ftype): Delete.
334 (make_continuation, add_inferior_continuation, add_continuation)
335 (add_intermediate_continuation): Use continuation_ftype and
336 continuation_free_arg_ftype. Rename parameters to shorter names.
338 2011-05-27 Pedro Alves <pedro@codesourcery.com>
340 * continuations.c (make_continuation): Make it return void.
341 (do_my_continuations): Rename to ...
342 (do_my_continuations_1): ... this. Remove old_chain parameter and
344 (do_my_continuations): New.
345 (discard_my_continuations): Rename to ...
346 (discard_my_continuations_1): ... this. Remove old_chain
347 parameter and adjust.
348 (discard_my_continuations): New.
349 (add_inferior_continuation): Simplify.
350 (do_all_inferior_continuations): Reimplement on top
352 (discard_all_inferior_continuations): Simplify.
353 (add_continuation): Simplify.
354 (do_all_continuations_ptid): Simplify.
355 (discard_all_continuations_thread_callback): Simplify.
356 (add_intermediate_continuation): Simplify.
357 (discard_all_intermediate_continuations_thread_callback):
360 2011-05-27 Pedro Alves <pedro@codesourcery.com>
362 * utils.c (struct continuation, add_continuation)
363 (add_inferior_continuation)
364 (do_all_inferior_continuations, discard_all_inferior_continuations)
365 (restore_thread_cleanup, do_all_continuations_ptid)
366 (do_all_continuations_thread_callback)
367 (do_all_continuations_thread, do_all_continuations)
368 (discard_all_continuations_thread_callback)
369 (discard_all_continuations_thread, discard_all_continuations)
370 (add_intermediate_continuation)
371 (do_all_intermediate_continuations_thread_callback)
372 (do_all_intermediate_continuations_thread)
373 (do_all_intermediate_continuations)
374 (discard_all_intermediate_continuations_thread_callback)
375 (discard_all_intermediate_continuations_thread)
376 (discard_all_intermediate_continuations): Move to ...
377 * continuations.c: ... this new file, and adjust to no longer
378 implement continuations on top of cleanups.
379 * Makefile.in (SFILES): Add continuations.c.
380 (COMMON_OBS): Add continuations.o.
382 2011-05-26 Pedro Alves <pedro@codesourcery.com>
384 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
385 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
386 Internal error on invalid values.
387 * reverse.c: Don't handle EXEC_ERROR.
388 * mi/mi-main.c: Don't handle EXEC_ERROR.
390 2011-05-26 Pedro Alves <pedro@codesourcery.com>
392 * record.c: Include event-loop.h, inf-loop.h.
393 (record_beneath_to_async): New global.
394 (tmp_to_async): New global.
395 (record_async_inferior_event_token): New global.
396 (record_open_1): Don't error out if async is enabled.
397 (record_open): Handle to_async. Create an async event source in
399 (record_close): Delete the async event source.
400 (record_resumed): New global.
401 (record_execution_dir): New global.
402 (record_resume, record_core_resume): Set them. Register the
403 target on the event loop.
404 (record_wait): Rename to ...
405 (record_wait_1): ... this. Add more debug output. Handle
406 TARGET_WNOHANG, and the target beneath returning
407 TARGET_WAITKIND_IGNORE.
408 (record_wait): Reimplement on top of record_wait_1.
409 (record_async_mask_value): New global.
410 (record_async, record_async_mask, record_can_async_p)
411 (record_is_async_p, record_execution_direction): New functions.
412 (init_record_ops, init_record_core_ops): Install new methods.
413 * infrun.c (fetch_inferior_event): Temporarily switch the global
414 execution direction to the direction the target was going.
415 (execution_direction): Change type to int.
416 * target.c (default_execution_direction): New function.
417 (update_current_target): Inherit and de_fault
418 to_execution_direction.
419 * target.h (struct target_ops) <to_execution_direction>: New
421 (target_execution_direction): New macro.
422 * inferior.h (execution_direction): Change type to int.
424 2011-05-26 Pedro Alves <pedro@codesourcery.com>
426 * infcall.c (call_function_by_hand): Don't allow calling functions
427 in reverse execution mode.
429 2011-05-26 Pedro Alves <pedro@codesourcery.com>
431 * infcmd.c (finish_command): Allow async finish in reverse.
433 2011-05-26 Yao Qi <yao@codesourcery.com>
435 * gdb_thread_db.h: Delete. Move to ...
436 * common/gdb_thread_db.h: ... here.
438 2011-05-26 Pedro Alves <pedro@codesourcery.com>
440 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
441 function's entry point instead of a manually managed momentary
442 breakpoint, and only ever issue one proceed call.
443 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
444 doing a reverse-finish, switch to stepi mode, to do another step.
445 (insert_step_resume_breakpoint_at_sal): Make public.
446 (normal_stop): No need to save function value return registers if
448 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
450 2011-05-26 Pedro Alves <pedro@codesourcery.com>
452 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
453 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
454 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
456 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
457 step-resume breakpoints.
458 (print_it_typical): Handle bp_hp_step_resume.
459 (bpstat_what): Ditto.
460 (bptype_string): Ditto.
461 (print_one_breakpoint_location): Ditto.
462 (allocate_bp_location): Ditto.
464 (breakpoint_re_set_one): Ditto.
465 * infrun.c (handle_inferior_event): Adjust. Split
466 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
467 BPSTAT_WHAT_HP_STEP_RESUME.
468 (insert_step_resume_breakpoint_at_sal): Rename to ...
469 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
470 parameter. Handle it.
471 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
472 insert_step_resume_breakpoint_at_sal_1.
473 (insert_step_resume_breakpoint_at_frame): Rename to ...
474 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
475 set a high-priority step-resume breakpoint.
476 (insert_step_resume_breakpoint_at_frame): Adjust comment.
477 (insert_step_resume_breakpoint_at_caller): Ditto.
479 2011-05-26 Pedro Alves <pedro@codesourcery.com>
481 * breakpoint.c (iterate_over_related_breakpoints): New.
482 (do_map_delete_breakpoint): New.
483 (delete_command): Pass do_map_delete_breakpoint to
484 map_breakpoint_numbers.
485 (do_disable_breakpoint): New.
486 (do_map_disable_breakpoint): Iterate over the breakpoint's related
488 (do_enable_breakpoint): Rename to ...
489 (enable_breakpoint_disp): ... this.
490 (enable_breakpoint): Adjust.
491 (do_enable_breakpoint): New.
492 (enable_once_breakpoint): Delete.
493 (do_map_enable_breakpoint): New.
494 (do_map_enable_once_breakpoint): New.
495 (enable_once_command, enable_delete_command)
496 (delete_trace_command): Iterate over the breakpoint's related
499 2011-05-26 Pedro Alves <pedro@codesourcery.com>
501 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
502 for ALPHA_ZERO_REGNUM.
503 (alpha_supply_int_regs): Explicitly supply zero as the value for
504 ALPHA_ZERO_REGNUM in the register cache.
505 * alpha-nat.c (fetch_osf_core_registers): Ditto.
507 2011-05-26 Yao Qi <yao@codesourcery.com>
509 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
511 2011-05-26 Tristan Gingold <gingold@adacore.com>
513 * symfile.h (struct dwarf2_section_names): New type.
514 (struct dwarf2_debug_sections): New type.
515 (dwarf2_has_info): Add parameter.
516 * dwarf2read.c (dwarf2_elf_names): New variable.
517 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
518 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
519 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
520 (dwarf2_has_info): Add names parameter. Pass names
521 to dwarf2_locate_sections.
522 (section_is_p): Rewrite using the names parameter.
523 (dwarf2_locate_sections): Use section names from the names parameter.
524 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
525 * elfread.c (read_psyms): Ditto.
526 * machoread.c (macho_symfile_read): Ditto.
528 2011-05-25 Andreas Schwab <schwab@redhat.com>
531 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
533 2011-05-24 Keith Seitz <keiths@redhat.com>
536 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
537 (decode_compound): Unconditionally call keep_name_info.
539 2011-05-24 Pedro Alves <pedro@codesourcery.com>
541 * breakpoint.c (watchpoint_check): If the watchpoint went out of
542 scope, clear its command list.
543 (map_breakpoint_numbers): Don't walk the related breakpoints list
546 2011-05-24 Tom Tromey <tromey@redhat.com>
548 * MAINTAINERS: Move Jim Blandy to past maintainers.
550 2011-05-24 Tristan Gingold <gingold@adacore.com>
552 * symfile.h (enum dwarf2_section_enum): New type.
553 (dwarf2_get_section_info): New prototype.
554 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
555 section_name by sect. Use a switch to select the info.
556 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
557 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
559 2011-05-24 Pedro Alves <pedro@codesourcery.com>
561 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
562 shared library event breakpoint if there's no execution.
564 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
566 * breakpont.c (remove_hw_watchpoints): Remove unused function.
567 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
569 2011-05-23 Tom Tromey <tromey@redhat.com>
571 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
574 2011-05-23 Doug Evans <dje@google.com>
576 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
577 entry for RuntimeError to doc string.
579 2011-05-23 Jerome Guitton <guitton@adacore.com>
581 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
582 sequence for probing loops.
584 2011-05-23 Pedro Alves <pedro@codesourcery.com>
586 * infrun.c (user_visible_resume_ptid): Fix typos in describing
589 2011-05-21 Mark Kettenis <kettenis@gnu.org>
591 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
592 zero as the value for %g0 in the register cache.
593 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
594 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
596 2011-05-20 Pedro Alves <pedro@codesourcery.com>
598 * infrun.c (proceed): Set previous_inferior_ptid here.
599 (init_wait_for_inferior): Initialize previous_inferior_ptid from
600 inferior_ptid, not null_ptid.
601 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
602 (fetch_inferior_event): Nor here.
604 2011-05-20 Pedro Alves <pedro@codesourcery.com>
606 * inf-loop.c (inferior_event_handler): Only output a message if
609 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
611 * MAINTAINERS: Update my e-mail address.
613 2011-05-20 Pedro Alves <pedro@codesourcery.com>
615 * infrun.c (proceed): Switch the inferior event loop to
616 INF_EXEC_COMPLETE if the target refused to resume from a
619 2011-05-20 Pedro Alves <pedro@codesourcery.com>
621 * infcmd.c: Include "inf-loop.h".
622 (step_once): When stepping into an inline subroutine, pretend the
623 target has run. If the target can async, switch the inferior
624 event loop to INF_EXEC_COMPLETE.
625 * inferior.h (user_visible_resume_ptid): Declare.
626 * infrun.c (user_visible_resume_ptid): New function, factored out
629 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
630 that the current thread is running. Merge async and sync
633 2011-05-20 Pedro Alves <pedro@codesourcery.com>
635 * infcmd.c (step_1): Simplify synchronous case.
637 2011-05-20 Pedro Alves <pedro@codesourcery.com>
639 * tracepoint.c: Include exceptions.h.
640 (TFILE_PID): Move higher in file.
641 (tfile_open): Delay pushing the tfile target until we're assured
642 the tfile header is present in the file. Wrap reading the initial
643 newline-terminated lines in TRY_CATCH. Pop the target if the
644 initial setup failed. Add the tfile's thread immediately
645 aftwards, before any non-essential setup. Don't skip
646 post_create_inferior if there are no traceframes present in the
648 (tfile_close): Remove redundant check for null before xfree call.
649 (tfile_thread_alive): New function.
650 (init_tfile_ops): Register it as to_thread_alive callback.
652 2011-05-20 Pedro Alves <pedro@codesourcery.com>
654 * tracepoint.c (tfile_open): Delete #if 0'd code.
656 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
658 Fix -readnow for -gdwarf-4 unused type units.
659 * dwarf2read.c (struct signatured_type): Remove the field offset.
660 (create_signatured_type_table_from_index): Remove its initialization.
661 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
662 instead. Add a complaint call.
663 (process_psymtab_comp_unit): Change assignment to gdb_assert.
664 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
665 (lookup_signatured_type_at_offset, read_signatured_type)
666 (write_one_signatured_type): Update the field for per_cu.
668 2011-05-19 Tom Tromey <tromey@redhat.com>
670 * python/py-inferior.c (python_inferior_exit): Use
672 (python_on_resume): Likewise.
674 2011-05-19 Matt Rice <ratmice@gmail.com>
676 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
678 2011-05-19 Hui Zhu <teawater@gmail.com>
680 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
682 2011-05-19 Hui Zhu <teawater@gmail.com>
684 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
686 2011-05-18 Tom Tromey <tromey@redhat.com>
688 * dwarf2read.c (dwarf2_add_field): Constify.
689 * value.c (value_static_field): Constify.
690 * gdbtypes.h (struct main_type) <field.field_location.physname>:
692 * ax-gdb.c (gen_static_field): Constify
694 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
696 * linux-nat.c (kill_callback): Use SIGKILL first.
698 2011-05-18 Joel Brobecker <brobecker@adacore.com>
700 * ada-lang.c (print_it_exception): Avoid use of sprintf.
702 2011-05-18 Tom Tromey <tromey@redhat.com>
704 * value.c (value_fn_field): Constify.
705 * symtab.c (gdb_mangle_name): Constify.
706 * stabsread.c (update_method_name_from_physname): Make 'physname'
708 * p-typeprint.c (pascal_type_print_method_args): Make arguments
709 const. Use explicit fputc_filtered loop.
710 (pascal_type_print_base): Constify.
711 * p-lang.h (pascal_type_print_method_args): Update.
712 * linespec.c (add_matching_methods): Constify.
713 (add_constructors): Likewise.
714 * jv-typeprint.c (java_type_print_base): Constify.
715 * gdbtypes.h (struct cplus_struct_type)
716 <fn_fieldlist.fn_field.physname>: Now const.
717 * dwarf2read.c (compute_delayed_physnames): Constify.
718 (dwarf2_add_member_fn): Likewise.
719 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
721 2011-05-18 Pedro Alves <pedro@codesourcery.com>
723 * infrun.c (resume): Mention which is the current thread, and its
724 current PC in debug output.
725 (prepare_to_proceed): Mention the thread switching in debug
728 2011-05-18 Tom Tromey <tromey@redhat.com>
730 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
731 path check. Use xmalloc and cleanups.
732 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
734 2011-05-17 Tom Tromey <tromey@redhat.com>
736 * cp-valprint.c (cp_print_value_fields): Catch errors from
739 2011-05-17 Tom Tromey <tromey@redhat.com>
741 * dwarf2read.c (dwarf2_get_die_type): Call
742 get_die_type_at_offset.
743 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
744 get_base_type function.
746 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
748 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
751 2011-05-16 Doug Evans <dje@google.com>
753 * python/py-auto-load.c (source_section_scripts): Mention objfile
756 2011-05-15 Doug Evans <dje@google.com>
758 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
759 (try_thread_db_load_from_pdir): Call it. If unable to find
760 libthread_db in directory of libpthread, see if we're looking at
761 the separate-debug-info copy.
763 * python/py-autoload.c (print_script): Print "Missing" instead of
764 "No" for missing scripts.
765 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
767 2011-05-13 Doug Evans <dje@google.com>
769 * ui-file.c (stdio_file_write_async_safe): Add comment.
771 2011-05-14 Hui Zhu <teawater@gmail.com>
773 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
775 2011-05-13 Doug Evans <dje@google.com>
777 Support $pdir and $sdir in libthread-db-search-path.
778 * NEWS: Mention $sdir,$pdir.
779 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
780 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
781 (try_thread_db_load_from_sdir): New function.
782 (try_thread_db_load_from_dir): New function.
783 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
784 system directories if search of libthread-db-search-path fails,
785 that is now done via $sdir.
786 (has_libpthread): New function.
787 (thread_db_load): Remove search for libthread_db in directory of
788 libpthread, that is now done via $pdir.
790 * NEWS: Mention "info auto-load-scripts".
791 * python/py-auto-load.c (struct auto_load_pspace_info): New member
792 script_not_found_warning_printed.
793 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
794 all callers updated. Initialize script_not_found_warning_printed.
795 (get_auto_load_pspace_data_for_loading): New function.
796 (maybe_add_script): New function.
797 (source_section_scripts): Simplify. Only print one warning regardless
798 of the number of auto-load scripts not found.
799 (clear_section_scripts): Clear script_not_found_warning_printed.
800 (auto_load_objfile_script): Record script in hash table.
801 (count_matching_scripts): New function.
802 (maybe_print_script): Renamed from maybe_print_section_script, all
803 callers updated. Rewrite to use ui_out_*.
804 (info_auto_load_scripts): Renamed from
805 maintenance_print_section_scripts, all callers updated.
806 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
807 renamed as "info auto-load-scripts".
809 2011-05-13 Tom Tromey <tromey@redhat.com>
811 * dwarf2expr.c (read_uleb128): Cast intermediate result.
812 (read_sleb128): Likewise.
814 2011-05-13 Tom Tromey <tromey@redhat.com>
816 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
819 2011-05-13 Doug Evans <dje@google.com>
821 * linux-nat.c (debug_linux_nat_async): Delete.
822 Replace all references to use debug_linux_nat instead.
823 (show_debug_linux_nat_async): Delete.
824 (sigchld_handler): Call ui_file_write_async_safe instead of
826 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
827 * ui-file.c (struct ui_file): New member to_write_async_safe.
828 (null_file_write_async_safe): New function.
829 (ui_file_write_async_safe): New function.
830 (set_ui_file_write_async_safe): New function.
831 (ui_file_new): Initialize to_write_async_safe.
832 (stdio_file_write_async_safe): New function.
833 (struct stdio_file): New member fd.
834 (stdio_file_new): Initialize to_write_async_safe, fd.
835 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
837 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
838 (set_ui_file_write_async_safe): Declare.
839 (ui_file_write_async_safe): Declare.
841 2011-05-13 Tom Tromey <tromey@redhat.com>
843 * utils.c (do_value_free): New function.
844 (make_cleanup_value_free): Likewise.
845 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
847 (dwarf2_loc_desc_needs_frame): Call
848 make_cleanup_value_free_to_mark.
849 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
850 * dwarf2expr.c (free_dwarf_expr_context): Don't call
852 (new_dwarf_expr_context): Don't call value_mark.
853 * dwarf2-frame.c (execute_stack_op): Call
854 make_cleanup_value_free_to_mark.
855 * defs.h (make_cleanup_value_free): Declare.
857 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
859 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
860 prepare_execute_command.
861 * top.c (prepare_execute_command): Return cleanup.
862 (execute_command): Use cleanup from prepare_execute_command.
863 * top.h (prepare_execute_command): Change prototype to return
865 * defs.h (struct value): Add opaque declaration.
866 (make_cleanup_value_free_to_mark): Add prototype.
867 * utils.c (do_value_free_to_mark): New function.
868 (make_cleanup_value_free_to_mark): Likewise.
870 2011-05-12 Tom Tromey <tromey@redhat.com>
872 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
873 cast left-hand-side to unsigned.
875 2011-05-12 Tom Tromey <tromey@redhat.com>
878 * value.h (value_from_contents): Declare.
879 * value.c (value_from_contents): New function.
880 * dwarf2read.c (dwarf_stack_op_name): Add new values.
881 (dwarf2_get_die_type): New function.
882 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
883 (allocate_piece_closure): Acquire reference to values.
884 (read_pieced_value): Update for value-based expressions.
885 (write_pieced_value): Likewise.
886 (free_pieced_value_closure): Call value_free as needed.
887 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
888 Update for value-based expressions.
889 * dwarf2loc.h (dwarf2_get_die_type): Declare.
890 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
891 <get_base_type>: New field.
892 (struct dwarf_expr_piece) <v.value>: Change type.
893 <v.regno>: New field.
894 (struct dwarf_expr_context) <mark>: New field.
895 (dwarf_expr_piece, dwarf_expr_fetch): Update.
896 (dwarf_expr_pop, dwarf_expr_push): Remove.
897 (dwarf_expr_push_address): Declare.
898 * dwarf2expr.c (dwarf_arch_cookie): New global.
899 (struct dwarf_gdbarch_types): New.
900 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
902 (dwarf_expr_push): Change type of 'value' argument. Update. Now
904 (dwarf_expr_push_address): New function.
905 (dwarf_expr_pop): Now static.
906 (dwarf_expr_fetch): Change return type.
907 (dwarf_require_integral): New function.
908 (dwarf_expr_fetch): Simplify.
910 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
912 (execute_stack_op) <sign_ext>: Remove.
913 Use values for DWARF stack.
914 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
915 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
917 (_initialize_dwarf2expr): New function.
919 (new_dwarf_expr_context): Set new field.
920 (free_dwarf_expr_context): Call value_free_to_mark.
921 * dwarf2-frame.c (no_base_type): New function.
922 (execute_stack_op): Set get_base_type field. Update.
924 2011-05-12 Tom Tromey <tromey@redhat.com>
926 * dwarf2read.c (read_common_block): Fix formatting.
928 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
930 * breakpoint.c (disable_breakpoint): Disable all locations
931 associated with a tracepoint on target if a trace experiment is
933 (disable_command): Disable a specific tracepoint location on target if
934 a trace experiment is running.
935 (do_enable_breakpoint): Enable all locations associated with a
936 tracepoint on target if a trace experiment is running.
937 (enable_command) Enable a specific tracepoint location on target if a
938 trace experiment is running.
939 * target.c (update_current_target): Add INHERIT and de_fault clauses for
940 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
941 to_disable_tracepoint.
942 * target.h: Add declaration of struct bp_location.
943 (struct target_ops): Add new functions
944 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
945 to_disable_tracepoint to target operations.
946 (target_supports_enable_disable_tracepoint): New macro.
947 (target_enable_tracepoint): New macro.
948 (target_disable_tracepoint): New macro.
949 * remote.c (struct remote_state): Add new field.
950 (remote_enable_disable_tracepoint_feature): New.
951 (remote_protocol_features): Add new entry.
952 (remote_supports_enable_disable_tracepoint): New.
953 (remote_enable_tracepoint): New.
954 (remote_disable_tracepoint): New.
955 (init_remote_ops): Add remote_enable_tracepoint,
956 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
957 to remote operations.
958 * tracepoint.c (start_tracing): Allow tracing to start without any
959 tracepoints enabled with just a warning if they can be re-enabled
961 * NEWS: Add news item for the new behaviour of the enable and disable
962 GDB commands when applied to tracepoints.
963 Add news items for the new remote packets QTEnable and QTDisable.
965 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
967 * config.in: Regenerate.
968 * configure: Regenerate.
969 * configure.ac <--with-system-readline> (for readline_echoing_p):
971 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
972 (tui_old_rl_echoing_p): ... here.
973 (tui_setup_io): Rename extern declaration readline_echoing_p to
974 _rl_echoing_p. Adjust assignments for the both renames.
976 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
978 * symtab.c (lookup_symtab): Run cleanup before returning.
980 2011-05-11 Tom Tromey <tromey@redhat.com>
982 * dwarf2read.c (handle_data_member_location): New function.
983 (dwarf2_add_field): Use it.
984 (read_common_block): Likewise.
986 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
988 Make addrs->SECTINDEX always defined.
989 * symfile.c (relative_addr_info_to_section_offsets): Check for
990 SECTINDEX -1, not for zero ADDR.
991 (addrs_section_compar): Remove checking for invalid SECTINDEX.
992 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
993 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
996 2011-05-10 Doug Evans <dje@google.com>
998 * linux-thread-db.c: Whitespace cleanup.
999 (try_thread_db_load_1): Fix comment.
1001 * linux-thread-db.c (set_libthread_db_search_path): New function.
1002 (_initialize_thread_db): Add setter for libthread-db-search-path.
1004 2011-05-09 Doug Evans <dje@google.com>
1006 * NEWS: Mention --with-iconv-bin.
1007 * configure.ac: New option --with-iconv-bin.
1008 * configure: Regenerate.
1009 * config.in: Regenerate.
1010 * defs.h (relocate_gdb_directory): Declare.
1011 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1012 removed progname parameter, and exported. All callers updated.
1013 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1015 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1016 adding missing call to restore_child_signals_mask.
1018 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1020 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1022 * infrun.c (proceed, start_remote): Adjust.
1023 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1024 and adjust to not handle it.
1025 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1026 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1027 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1028 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1029 * windows-nat.c (do_initial_windows_stuff): Adjust.
1030 * infcmd.c (attach_command): Adjust.
1031 (notice_new_inferior): Adjust.
1033 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1035 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1036 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1037 * spu-tdep.c (op_selb): Use correct value.
1039 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1041 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1042 "parent" parameter to symbol_file_add_from_bfd call.
1044 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1045 Thiago Jung Bauermann <bauerman@br.ibm.com>
1047 Implement support for PowerPC BookE masked watchpoints.
1048 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1050 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1051 method. Initialize to NULL in all existing breakpoint_ops instances.
1052 (struct breakpoint) <hw_wp_mask>: New field.
1053 * breakpoint.c (is_masked_watchpoint): Add prototype.
1054 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1055 breakpoint's breakpoint_ops.works_in_software_mode if available.
1056 (watchpoints_triggered): Handle the case of a hardware masked
1058 (watchpoint_check): Likewise.
1059 (works_in_software_mode_watchpoint): New function.
1060 (insert_masked_watchpoint, remove_masked_watchpoint)
1061 (resources_needed_masked_watchpoint)
1062 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1063 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1064 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1066 (masked_watchpoint_breakpoint_ops): New structure.
1067 (watch_command_1): Check for the existence of the `mask' parameter.
1068 Set b->ops according to the type of hardware watchpoint being created.
1069 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1070 (ppc_linux_remove_mask_watchpoint)
1071 (ppc_linux_masked_watch_num_registers): New functions.
1072 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1073 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1074 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1075 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1076 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1077 (target_masked_watch_num_registers): New functions.
1078 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1079 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1081 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1082 (target_masked_watch_num_registers): Add prototypes.
1084 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1087 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1088 (producer_is_gcc_ge_4_0): New function.
1089 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1090 symtab->language code.
1091 (var_decode_location): Set cu->has_loclist.
1092 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1093 skip. Intialize force_skip from locations_valid. Move the prologue
1094 skipping code into two passes.
1095 * symtab.h (struct symtab): Make the primary field a bitfield. New
1096 field locations_valid.
1098 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1101 (classify_inner_name): Call cp_lookup_nested_type with
1103 * cp-namespace.c (cp_lookup_nested_type): New variable
1104 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1105 type_name_no_tag_or_error with saved_parent_type.
1106 * dwarf2read.c (load_partial_dies): Read in any children of
1107 DW_TAG_typedef with complaint in such case.
1108 * gdbtypes.c (type_name_no_tag_or_error): New function.
1109 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1110 * valops.c (destructor_name_p): New comment for parameter type. Remove
1111 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1112 * value.h (destructor_name_p): Remove type const.
1114 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1116 * symtab.c (compare_symbol_name): New function.
1117 (completion_list_add_name, expand_partial_symbol_name): Call it,
1118 remove the variable ncmp.
1119 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1122 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1124 Demote to sw watchpoint only in update_watchpoint.
1125 * breakpoint.c (update_watchpoint): Change between software and
1126 hardware watchpoint for all kinds of watchpoints, not just
1127 read/write ones. Determine b->exact value here instead of
1128 in watch_command_1. Error out if there are not enough resources
1129 for a read or access hardware watchpoint.
1130 (watch_command_1): Remove logic of checking whether there are
1131 enough resources available, since update_watchpoint will do that
1132 work now. Don't set b->exact here. Catch exceptions thrown by
1133 update_watchpoint and delete the watchpoint.
1134 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1135 Use target_exact_watchpoints instead.
1136 (delete_breakpoint): Notify observers only if deleted watchpoint
1137 has a breakpoint number assigned to it.
1139 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1141 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1143 2011-05-05 Jerome Guitton <guitton@adacore.com>
1145 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1147 (i386_stack_tramp_frame_unwind): New static global.
1148 (i386_match_pattern): New function, extracted from i386_match_insn.
1149 (i386_match_insn): Use i386_match_pattern.
1150 (i386_match_insn_block): New function.
1151 (i386_tramp_chain_in_reg_insns)
1152 (i386_tramp_chain_on_stack_insns): New static variables.
1153 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1156 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1158 * configure.host (xscale*): Don't handle target.
1159 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1162 2011-05-04 Yao Qi <yao@codesourcery.com>
1164 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1166 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1169 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1170 | * elfread.c (elf_symtab_read): Stop memory leak.
1172 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1174 * nto-tdep.c (nto_target): Replace deprecated call to
1175 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1177 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1179 Fix false GCC warning.
1180 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1182 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1184 * breakpoint.c (update_watchpoint): Move code to change
1185 the enable state of breakpoint from here ...
1186 (do_enable_breakpoint): ... to here.
1188 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1190 * valprint.c (val_print_array_elements): Fixed poor performance
1191 of printing very large arrays with repeat_count_threshold set
1192 to unlimited. New comment.
1194 2011-04-29 Tom Tromey <tromey@redhat.com>
1196 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1197 (mi_parse): Likewise.
1198 * breakpoint.c (break_range_command): Use sizeof char*, not
1200 (create_breakpoint): Likewise.
1201 (parse_breakpoint_sals): Likewise.
1203 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1205 * linux-nat.c (linux_child_remove_fork_catchpoint)
1206 (linux_child_remove_vfork_catchpoint)
1207 (linux_child_remove_exec_catchpoint): New functions.
1208 (linux_target_install_ops): Install them.
1210 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1214 * varobj.c (install_default_visualizer): Do not install a
1215 visualizer if the varobj is CPLUS_FAKE_CHILD.
1216 (construct_visualizer): Likewise.
1218 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1221 case insensitive comparison.
1223 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1225 * infrun.c (proceed): Revert previous change.
1226 (resume): Instead, handle the case of signal delivery while stepping
1227 off a breakpoint location here, and only if software single-stepping
1228 is used. Handle nested signals.
1230 2011-04-28 Yao Qi <yao@codesourcery.com>
1232 * arm-tdep.c (copy_unmodified): Rename to ...
1233 (arm_copy_unmodified): .. this. New.
1234 (copy_preload): Move common part to ...
1235 (install_preload): .. this. New.
1236 (arm_copy_preload): New.
1237 (copy_preload_reg): Move common part to ...
1238 (install_preload_reg): ... this. New.
1239 (arm_copy_preload_reg): New.
1240 (copy_b_bl_blx): Move common part to ...
1241 (install_b_bl_blx): .. this. New.
1242 (arm_copy_b_bl_blx): New.
1243 (copy_bx_blx_reg): Move common part to ...
1244 (install_bx_blx_reg): ... this. New.
1245 (arm_copy_bx_blx_reg): New.
1246 (copy_alu_reg): Move common part to ...
1247 (install_alu_reg): ... this. New.
1248 (arm_copy_alu_reg): New.
1249 (copy_alu_shifted_reg): Move common part to ...
1250 (install_alu_shifted_reg): ... this. New.
1251 (copy_ldr_str_ldrb_strb): Move common part to ...
1252 (install_ldr_str_ldrb_strb): ... this. New.
1253 (arm_copy_ldr_str_ldrb_strb): New.
1254 (copy_copro_load_store): Move some common part to ...
1255 (install_copy_copro_load_store): ... this. New.
1256 (arm_copy_copro_load_store): New.
1258 (arm_copy_svc): Renamed from copy_svc.
1259 (copy_undef): Delete.
1260 (arm_copy_undef): Renamed from copy_undef.
1261 (decode_ext_reg_ld_st): Delete.
1262 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1263 (decode_svc_copro): Delete.
1264 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1265 (copy_copro_load_store, copy_alu_imm): update callers.
1266 (copy_extra_ld_st, copy_block_xfer): Likewise.
1267 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1268 (decode_miscellaneous, decode_dp_misc): Likewise.
1269 (decode_ld_st_word_ubyte, decode_media): Likewise.
1270 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1271 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1272 (decode_unconditional, decode_miscellaneous): Likewise.
1273 (decode_media, decode_b_bl_ldmstm): Likewise.
1274 (arm_process_displaced_insn): Likewise..
1275 (decode_misc_memhint_neon): Delete.
1276 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1277 (decode_miscellaneous): Delete.
1278 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1279 (decode_dp_misc): Delete.
1280 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1281 (decode_ld_st_word_ubyte): Delete.
1282 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1283 (decode_media): Delete.
1284 (arm_decode_media): Renamed from decode_media.
1285 (decode_b_bl_ldmstm): Delete.
1286 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1287 (decode_ext_reg_ld_st): Delete.
1288 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1289 (decode_unconditional): Delete.
1290 (arm_decode_unconditional): Renamed from decode_unconditional.
1292 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1294 Case insensitive lookups implementation.
1295 * dwarf2read.c: Include ctype.h.
1296 (struct mapped_index): New field version.
1297 (mapped_index_string_hash): New parameter index_version. New comment
1298 for it. Call tolower appropriately.
1299 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1300 Choose the right index version for mapped_index_string_hash.
1301 (dwarf2_read_index): Support also the index version 5. Initialize the
1302 new struct mapped_index field version.
1303 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1304 (find_slot): Explain the version needs. Pass INT_MAX for the new
1306 (write_psymtabs_to_index): Produce version 5.
1307 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1308 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1309 * psymtab.c (lookup_partial_symbol): Find the
1310 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1312 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1314 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1315 (completion_list_add_name): New variable ncmp, initialize it, use it.
1316 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1317 * utils.c (strcmp_iw): Support case_sensitive_off.
1318 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1319 New function comment part. New variables saved_string1,
1320 saved_string2 and case_pass. Add a proper second pass.
1322 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1324 Replace re_comp/re_exec by regcomp/regexec.
1325 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1326 (search_symbols_name_matches): Use them, use regexec.
1327 (search_symbols): New variable retval_chain, adjust the use of
1328 old_chain against it. Replace re_comp by regcomp. Use the new struct
1329 search_symbols_data fields, use regexec instead of re_exec.
1331 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1333 Format the code for the next patch.
1334 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1335 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1336 New variables c1 and c2.
1338 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1340 * infrun.c (proceed): Do not single-step into signal delivery
1341 when stepping off a breakpoint location.
1342 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1343 (insert_step_resume_breakpoint_at_caller): Likewise.
1344 (insert_step_resume_breakpoint_at_sal): Likewise.
1345 (insert_longjmp_resume_breakpoint): Likewise.
1347 2011-04-27 Yao Qi <yao@codesourcery.com>
1349 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1351 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1353 * procfs.c (procfs_pass_signals): Fix advance declaration.
1355 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1357 * target.h (struct target_ops): Remove to_notice_signals;
1358 add to_pass_signals.
1359 (target_notice_signals): Remove.
1360 (target_pass_signals): Add prototype.
1361 * target.c (update_current_target): Remove to_notice_signals;
1362 mention to_pass_signals.
1363 (target_pass_signals): New function.
1364 (debug_to_notice_signals): Remove.
1365 (setup_target_debug): Do not install debug_to_notice_signals.
1367 * infrun.c (signal_pass): New global.
1368 (resume): Call target_pass_signals.
1369 (handle_inferior_event): Report all signals while stepping over
1370 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1371 are re-inserted when stepping over a signal handler.
1372 (signal_cache_update): New function.
1373 (signal_stop_update): Call it.
1374 (signal_print_update): Likewise.
1375 (signal_pass_update): Likewise.
1376 (handle_command): Call signal_cache_update and target_pass_signals
1377 instead of target_notice_signals.
1378 (_initialize_infrun): Initialize signal_pass.
1380 * linux-nat.c (pass_mask): New global.
1381 (linux_nat_pass_signals): New function.
1382 (linux_nat_create_inferior): Report all signals initially.
1383 (linux_nat_attach): Likewise.
1384 (linux_nat_resume): Use pass_mask to decide whether to directly
1385 handle an inferior signal.
1386 (linux_nat_wait_1): Likewise.
1387 (linux_nat_add_target): Install to_pass_signals callback.
1389 * nto-procfs.c (notice_signals): Remove.
1390 (procfs_resume): Do not call notice_signals.
1391 (procfs_notice_signals): Remove.
1392 (procfs_pass_signals): New function.
1393 (init_procfs_ops): Install to_pass_signals callback instead of
1394 to_notice_signals callback.
1395 (_initialize_procfs): Report all signals initially.
1397 * procfs.c (procfs_notice_signals): Remove.
1398 (procfs_pass_signals): New function.
1399 (procfs_target): Install to_pass_signals callback instead of
1400 to_notice_signals callback.
1401 (register_gdb_signals): Remove.
1402 (procfs_debug_inferior): Report all signals initially.
1403 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1405 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1406 parameters; use them instead of calling signal_..._state routines.
1407 (remote_notice_signals): Remove.
1408 (remote_start_remote): Report all signals initially.
1409 (remote_resume): Do not call remote_pass_signals.
1410 (_initialize_remote): Install to_pass_signals callback instead of
1411 to_notice_signals callback.
1413 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1415 * breakpoint.c (user_settable_breakpoint): Delete.
1416 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1417 (delete_command): Check user_breakpoint_p instead of looking at
1418 the breakpoint's type.
1419 (disable_command): Ditto.
1420 (enable_command): Ditto.
1421 (delete_trace_command): Use user_breakpoint_p instead of looking
1422 at the breakpoint number directly. When checking if there are
1423 user visible tracepoints, in order to know whether to ask the user
1424 for confirmation, check whether the breakpoint is actually a
1427 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1429 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1432 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1434 MI breakpoint notifications.
1436 * annotate.c (breakpoint_changed): Adjust parameter type.
1437 * breakpoint.c (set_breakpoint_condition): Adjust to change
1438 in breakpoint_modified type.
1439 (breakpoint_set_commands): Likewise.
1440 (do_map_commands_command): Likewise.
1441 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1442 changed after bumping hit count.
1443 (bpstat_stop_status): Likewise.
1444 (print_one_breakpoint_location): Don't wrap in tuple here.
1445 (print_one_breakpoint): Always print individual locations.
1446 For locations, use unnamed tuple.
1447 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1449 (create_catchpoint, create_syscall_event_catchpoint): Call
1450 breakpoint_created obsever.
1451 (mention): Don't call breakpoint_created observer.
1452 (create_breakpoint_sal): Call breakpoint_created observer.
1453 (create_breakpoint, watch_command_1): Likewise.
1454 (create_ada_exception_breakpoint): Likewise.
1455 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1456 (locations_are_equal): New.
1457 (update_breakpoint_locations): If locations were changed, notify.
1458 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1459 Call breakpoint_modified observer.
1461 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1462 (mi_cmd_break_insert): Don't set observers for modify and delete.
1463 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1464 (mi_breakpoint_created, mi_breakpoint_deleted)
1465 (mi_breakpoint_modified): New.
1466 (mi_interpreter_init): Hook the above.
1467 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1468 while -break-* commands are executing.
1469 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1470 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1472 (mi_ui_out_impl): Hook in mi_redirect.
1473 (mi_field_skip): True to the name, skip the field, don't output
1474 a field with an empty value.
1476 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1477 (gdbpy_breakpoint_deleted): Adjust.
1478 * tui/tui-hooks.c (tui_event_create_breakpoint)
1479 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1481 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1483 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1484 (procfs_remove_hw_watchpoint): Likewise.
1486 2011-04-26 Michael Walle <michael@walle.cc>
1488 * remote.c (remote_start_remote): Ack packet after sending the
1491 2011-04-26 Yao Qi <yao@codesourcery.com>
1493 * linux-nat.c: Move common macros to ...
1494 Include linux-ptrace.h.
1495 * common/linux-ptrace.h: ... here. New.
1497 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1499 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1500 !objfile_has_partial_symbols. New comment.
1501 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1502 SYM_READ_PSYMBOLS is not present. Extend the comment.
1503 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1505 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 * defs.h (ENUM_BITFIELD): Remove.
1509 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1510 Eli Zaretskii <eliz@gnu.org>
1512 * NEWS: Document the new gdbserver --once option.
1514 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1516 * MAINTAINERS: Update my email address.
1518 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1520 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1521 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1522 function call if __STDC_ISO_10646__ macro is defined.
1523 (intermediate_encoding): New prototype.
1524 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1525 to generate compile time error for unsupported gdb_wchar_t size.
1526 (ENDIAN_SUFFIX): New macro.
1527 (intermediate_encoding): New function.
1529 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1531 * ada-lang.c (struct add_partial_datum): Update the comment for
1532 expand_partial_symbol_name.
1533 (ada_add_partial_symbol_completions): Rename to ...
1534 (ada_expand_partial_symbol_name): ... here, change return type, update
1535 function comment, call symbol_completion_match instead of
1536 symbol_completion_add.
1537 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1538 and ada_expand_partial_symbol_name.
1539 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1541 (dw2_map_symbol_names): Remove.
1542 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1543 * psymtab.c (map_symbol_names_psymtab): Remove.
1544 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1545 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1547 (psym_functions): Unlist map_symbol_names_psymtab.
1548 (map_partial_symbol_names): Rename to ...
1549 (expand_partial_symbol_names): ... here, change the FUN type, call
1550 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1551 * psymtab.h (map_partial_symbol_names): Rename to ...
1552 (expand_partial_symbol_names): ... here, change the FUN type.
1553 * symfile.h (struct quick_symbol_functions): Update the description of
1554 expand_symtabs_matching. Remove map_symbol_names.
1555 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1556 (struct add_name_data): Update the comment for
1557 expand_partial_symbol_name.
1558 (add_partial_symbol_name): Rename to ...
1559 (expand_partial_symbol_name): ... here. Replace
1560 completion_list_add_name call by strncmp.
1561 (default_make_symbol_completion_list_break_on): Use now
1562 expand_partial_symbol_names and expand_partial_symbol_name.
1563 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1565 2011-04-20 Tom Tromey <tromey@redhat.com>
1567 * dwarf2read.c (save_gdb_index_command): Replace format
1568 documentation with a pointer to the manual.
1570 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1572 * regcache.c: Include remote.h.
1573 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1574 (regcache_dump): Handle regcache_dump_remote.
1575 (maintenance_print_remote_registers): New function.
1576 (_initialize_regcache): Install "maint print remote-registers"
1578 * remote.c (map_regcache_remote_table): New function, factored out
1580 (init_remote_state): ... here.
1581 (remote_register_number_and_offset): New.
1582 * remote.h (remote_register_number_and_offset): Declare.
1584 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1586 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1587 null_ptid, assume and allow a NULL address space, instead of
1588 asking the target for the ptid's address space.
1589 * infrun.c (ptid_is_pid): Remove assertion.
1591 2011-04-19 Tom Tromey <tromey@redhat.com>
1593 * windows-tdep.c (windows_xfer_shared_library):
1594 * windows-nat.c (get_module_name, windows_make_so):
1595 * v850-tdep.c (v850_handle_pushm):
1596 * utils.c (null_cleanup, gdb_realpath):
1597 * ui-out.c (get_next_header):
1598 * tracepoint.c (clear_traceframe_info):
1599 * symtab.c (lookup_symtab):
1600 * serial.h (struct serial_ops):
1601 * mipsread.c (read_alphacoff_dynamic_symtab):
1602 * infcmd.c (print_return_value):
1603 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1604 * f-exp.y (parse_number):
1605 * exceptions.c (catch_exceptions):
1606 * dummy-frame.c (dummy_frame_this_id):
1607 * defs.h (struct cleanup):
1608 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1609 * arm-tdep.c (arm_push_dummy_call):
1610 * amd64-tdep.h (amd64_collect_xsave):
1611 * amd64-tdep.c (amd64_collect_xsave):
1612 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1613 * README (typing): Remove duplicate words.
1614 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1615 * infrun.c (siginfo_value_read): Fix typo.
1616 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1617 * top.c (source_line_number): Add comma.
1619 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1621 * thread.c (any_live_thread_of_process): Prioritize threads
1622 that are not executing.
1623 * gdbthread.h (any_live_thread_of_process): Update comment
1624 as per above change.
1626 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1628 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1629 (scan_xcoff_symtab): Likewise.
1631 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1633 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1636 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1637 Pedro Alves <pedro@codesourcery.com>
1639 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1640 variables to simplify code and avoid == operator at end of
1641 line as this is against GNU coding standards.
1643 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1645 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1646 lm_name to name_lm to avoid conflict with lm_name function.
1648 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1650 ARI fixes: Use only lowercase function name for static functions.
1651 * nto-tdep.c (LM_ADDR): Rename to...
1652 (lm_addr): New function name.
1653 (nto_relocate_section_addresses): Adapt to change above.
1654 * solib-sunos.c (LM_ADDR): Rename to...
1655 (lm_addr): New function name.
1656 (LM_NEXT): Rename to...
1657 (lm_next): New function name.
1658 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1659 function name changes above.
1660 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1661 (lm_addr_from_link_map): New function name.
1662 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1663 (has_lm_dynamic_from_link_map): New function name.
1664 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1665 (lm_dynamic_from_link_map): New function name.
1666 (LM_ADDR_CHECK): Rename to...
1667 (lm_addr_check): New function name.
1668 (LM_NEXT): Rename to...
1669 (lm_next): New function name.
1670 (LM_PREV): Rename to...
1671 (lm_prev): New function name.
1672 (LM_NAME): Rename to...
1673 (lm_name): New function name.
1674 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1675 (ignore_first_link_map_entry): New function name.
1676 (svr4_keep_data_in_core): Adapt to function name changes above.
1677 (svr4_current_sos): Likewise.
1678 (enable_break): Likewise.
1679 (svr4_relocate_section_addresses): Likewise.
1681 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1684 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1685 sprintf. Simplify code and avoid loosing memory.
1686 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1687 (call0_frame_cache): Remove && operator from end of line.
1689 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 Fix libraries displacement if they change whether they were prelinked.
1692 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1693 does not match. Comment why.
1695 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1697 * corelow.c: Include wrapper.h.
1698 (core_open): Call now gdb_target_find_new_threads.
1699 * wrapper.c: Include target.h.
1700 (gdb_target_find_new_threads): New.
1701 * wrapper.h (gdb_target_find_new_threads): New declaration.
1703 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1705 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1706 even if !TARGET_HAS_EXECUTION.
1708 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1710 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1711 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1712 bfd_get_synthetic_symtab.
1713 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1714 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1715 parameter parent, remove the call to add_separate_debug_objfile.
1716 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1717 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1718 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1719 parent, new comment for it, call add_separate_debug_objfile for it.
1720 (symbol_file_add_separate): Pass objfile as the parameter parent,
1721 remove the call to add_separate_debug_objfile.
1722 (symbol_file_add_from_bfd): New parameter parent, pass it.
1723 (symbol_file_add): Pass NULL to the new parameter parent.
1724 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1726 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1731 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1733 Fix Python access to inlined frames.
1734 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1735 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1737 2011-04-15 Tom Tromey <tromey@redhat.com>
1739 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1741 2011-04-15 Gary Benson <gbenson@redhat.com>
1743 * MAINTAINERS: Add myself to write-after-approval section.
1745 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1747 * remote-sim.c (sim_command_completer): New function.
1748 (_initialize_remote_sim): Set completer to sim_command_completer.
1750 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1752 * breakpoint.c (print_exception_catchpoint): Rename to ...
1753 (print_it_exception_catchpoint): ... this.
1754 (gnu_v3_exception_catchpoint_ops): Update with new name
1755 for print_it_exception_catchpoint.
1757 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1759 * MAINTAINERS: Add myself for write after approval privileges.
1761 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1763 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1765 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1767 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1769 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1771 * breakpoint.c (save_breakpoints): Verify whether
1772 breakpoint_ops.print_recreate is defined before calling it.
1774 2011-04-11 Gary Benson <gbenson@redhat.com>
1776 Fix failure with --enable-maintainer-mode.
1777 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1779 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1782 * symtab.c (search_symbols): Reorder the KIND description in the
1783 function comment. Remove the unused 4th element of types, types2,
1784 types3 and types4. New gdb_assert on KIND.
1785 (symtab_symbol_info): Remove the unused 4th element of classnames.
1786 New gdb_assert on KIND.
1787 * symtab.h (enum search_domain): New warning in the enum comment.
1788 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1791 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1793 Fix crash of gdb save-index on a STABS file.
1794 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1797 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1799 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1800 * dwarf2read.c: Include ctype.h.
1801 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1803 (dwarf2_add_field): Fix new_field->accessibility by calling
1804 dwarf2_default_access_attribute. Restructure setting accessibility
1806 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1807 is_private and is_protected by calling
1808 dwarf2_default_access_attribute.
1810 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1812 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1813 to the initialization.
1815 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1817 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1820 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1822 Remove support for old Cygwin 1.5 versions.
1823 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1824 function on old Cygwin version.
1825 * windows-nat.c: Remove cygwin version check and always define
1826 __USEWIDE for Cygwin compilation.
1828 2011-04-07 Yao Qi <yao@codesourcery.com>
1830 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1832 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1833 (arm_copy_svc): Remove parameters INSN and TO.
1834 (decode_svc_copro): Update caller.
1835 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1836 from function pointer `copy_svc_os'.
1838 2011-04-07 Yao Qi <yao@codesourcery.com>
1840 * arm-tdep.c (cleanup_branch): Set a correct return address in
1841 LR for ARM and Thumb.
1843 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1846 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1847 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1848 in the function comment, a new note on values compatibility.
1849 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1850 * symtab.h (SYMBOL_HASH_NEXT): New.
1852 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1854 * ppc-linux-nat.c (check_condition): Add len output parameter.
1855 Set it based on the memory region referenced in the condition
1856 expression. Update all callers.
1858 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1860 Fix crash regression on systems featuring .gdb_index.
1861 * objfiles.c (free_objfile): Move the
1862 forget_cached_source_info_for_objfile call earlier. Comment it.
1863 Extend the comment for objfile_free_data.
1865 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1867 Fix regression of displaying the debug format.
1868 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1871 2011-04-04 Tom Tromey <tromey@redhat.com>
1873 * cli/cli-interp.c (struct captured_execute_command_args):
1875 (do_captured_execute_command): Remove.
1876 (safe_execute_command): Use TRY_CATCH.
1877 * cli/cli-script.c (struct wrapped_read_command_file_args):
1879 (wrapped_read_command_file): Remove.
1880 (script_from_file): Use TRY_CATCH.
1881 * exceptions.c (catch_exception): Remove.
1882 * exceptions.h (catch_exception): Remove.
1883 (deprecated_throw_reason): Update comment.
1884 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1885 argument to 'context'.
1886 (mi_execute_command): Use TRY_CATCH.
1887 * remote.c (struct start_remote_args): Remove.
1888 (remote_start_remote): Update; change arguments.
1889 (remote_open_1): Use TRY_CATCH.
1891 2011-04-04 Tom Tromey <tromey@redhat.com>
1893 * tracepoint.c (scope_info): Update.
1894 * symtab.c (decode_line_spec): Update.
1895 * python/python.c (gdbpy_decode_line): Update.
1896 * linespec.h (decode_line_1): Update.
1897 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1898 (decode_compound, find_method, symtab_from_filename)
1899 (decode_variable): Likewise.
1900 * cli/cli-cmds.c (edit_command): Update.
1901 (list_command): Update.
1902 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1904 (create_breakpoint): Update.
1905 (until_break_command): Update.
1906 (addr_string_to_sals): Update.
1907 (decode_line_spec_1): Update.
1909 2011-04-04 Tom Tromey <tromey@redhat.com>
1911 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1912 (do_captured_parse_breakpoint): Remove.
1913 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1914 Use TRY_CATCH directly.
1916 2011-04-04 Tom Tromey <tromey@redhat.com>
1918 * symtab.h (free_symtab): Remove.
1919 (forget_cached_source_info_for_objfile): Declare.
1920 * symmisc.c (free_symtab): Remove.
1921 * source.c (forget_cached_source_info_for_objfile): New function.
1922 (forget_cached_source_info): Use it.
1923 * objfiles.c (free_objfile): Simplify check before calling
1924 clear_current_source_symtab_and_line. Call
1925 forget_cached_source_info_for_objfile.
1927 2011-04-04 Tom Tromey <tromey@redhat.com>
1929 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1930 (new_symtab): Don't set `free_code' on symtab.
1931 (new_linetable): Properly handle size==0.
1932 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1933 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1935 * jv-lang.c (struct jv_per_objfile_data): New.
1936 (jv_per_objfile_free): Free the data.
1937 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1938 (get_java_class_symtab): Set the `dict' field on the
1939 jv_per_objfile_data.
1940 (free_class_block): Remove.
1941 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1944 2011-04-04 Tom Tromey <tromey@redhat.com>
1946 * symfile.c (reread_symbols): Update.
1947 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1949 * objfiles.c (allocate_objfile): Update.
1950 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1952 * cp-namespace.c (lookup_symbol_file): Don't call
1953 lookup_possible_namespace_symbol.
1954 (initialize_namespace_symtab, get_possible_namespace_block)
1955 (free_namespace_block, cp_check_possible_namespace_symbols)
1956 (check_possible_namespace_symbols_loop)
1957 (check_one_possible_namespace_symbol)
1958 (lookup_possible_namespace_symbol): Remove.
1959 (maintenance_cplus_namespace): Replace with notice.
1960 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1962 2011-04-04 Tom Tromey <tromey@redhat.com>
1964 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1965 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1966 * symmisc.c (free_symtab): Don't free debugformat.
1967 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1968 (record_debugformat, record_producer): Document.
1969 * buildsym.c (end_symtab): Don't save debugformat and producer
1971 (end_symtab): Don't free debugformat and producer fields.
1972 (record_debugformat): Don't call xstrdup.
1973 (record_producer): Likewise.
1975 2011-04-04 Tom Tromey <tromey@redhat.com>
1977 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1978 (source_line_charpos, source_charpos_line): Remove.
1980 2011-04-04 Tom Tromey <tromey@redhat.com>
1982 * symtab.h (domain_enum): Split in two...
1983 (enum search_domain): New.
1984 (search_symbols): Update.
1985 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1986 redundant declarations.
1987 (search_symbols): Change 'kind' argument to search_domain.
1989 (print_symbol_info): Likewise.
1990 (symtab_symbol_info): Likewise.
1991 * symfile.h (struct quick_symbol_functions)
1992 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1993 <expand_symtabs_matching>: Likewise.
1994 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1995 (expand_symtabs_matching_via_partial): Update.
1996 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1997 (dw2_expand_symtabs_for_function): Update.
1998 * block.h: Moved anonymous enum...
1999 * defs.h (enum block_enum): ... here. Now named.
2001 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2003 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2004 * version.in: Bump version to 7.3.50.20110403-cvs.
2006 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2008 * NEWS: Create a new section for the next release branch.
2009 Rename the section of the current branch, now that it has
2012 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2014 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2015 for "fpscr" in target description.
2017 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2019 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2020 initialize it. Delay HASH initialization. Strip the part after open
2021 parenthesis for languages with qualifiers. Call do_cleanups.
2023 2011-04-01 Tom Tromey <tromey@redhat.com>
2025 * utils.c (report_command_stats): Don't print `-' for negative
2028 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2030 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2031 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2034 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2036 * breakpoint.h (bpdisp_text): Add declaration.
2037 * breakpoint.c (bpdisp_text): Make non-static.
2038 * ada-lang.c: #include "mi/mi-common.h".
2039 (print_it_exception): Rewrite to improve GDB/MI output.
2041 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2043 * arm-tdep.h (struct address_space): Add forward declaration.
2045 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2047 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2048 * arm-tdep.c (arm_override_mode): New global.
2049 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2050 execution mode heuristics.
2051 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2052 second single-step breakpoint if needed, using
2053 arm_insert_single_step_breakpoint.
2054 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2055 ARM execution mode, do not call thumb_get_next_pc_raw.
2056 (arm_get_next_pc): Encode execution mode in return value. Call
2057 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2058 (arm_insert_single_step_breakpoint): New function.
2059 (arm_software_single_step): Call it.
2060 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2061 argument to return execution mode of sigreturn target.
2062 (arm_linux_syscall_next_pc): Use it.
2063 (arm_linux_copy_svc): Update call.
2064 (arm_linux_software_single_step): Call
2065 arm_insert_single_step_breakpoint.
2067 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2072 2011-03-31 Tom Tromey <tromey@redhat.com>
2074 * varobj.c (update_dynamic_varobj_children): Properly handle
2075 errors from iterator.
2077 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2079 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2080 struct linkage name twice.
2082 2011-03-31 Tom Tromey <tromey@redhat.com>
2084 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2085 missing ">" to message.
2087 2011-03-31 Tom Tromey <tromey@redhat.com>
2089 * varobj.c (instantiate_pretty_printer): Remove duplicate
2092 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2094 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2095 if neither saved value nor register available (e.g. signal frame).
2097 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2099 * macroexp.c (expand): Avoid uninitialized variable
2102 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2104 * breakpoint.c (break_range_command): Fix typo in comment.
2106 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2107 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2109 Implement support for PowerPC BookE ranged breakpoints.
2110 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2111 * breakpoint.h (struct bp_target_info) <length>: New member
2113 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2114 instead of struct breakpoint as argument, and also add ASPACE
2115 and BP_ADDR arguments. Update all callers.
2116 (struct breakpoint_ops) <print_one_detail>: New method.
2117 (struct breakpoint) <addr_string_range_end>: New member variable.
2118 * breakpoint.c (breakpoint_location_address_match): Add function
2120 (insert_bp_location): Set bl->target_info.length.
2121 (breakpoint_here_p): Call breakpoint_location_address_match.
2122 (moribund_breakpoint_here_p): Likewise.
2123 (regular_breakpoint_inserted_here_p): Likewise.
2124 (breakpoint_thread_match): Likewise.
2125 (bpstat_stop_status): Likewise.
2126 (bpstat_check_location): Move call to
2127 breakpoint_ops.breakpoint_hit to the top.
2128 (print_one_breakpoint_location): Call
2129 breakpoint_ops.print_one_detail if available.
2130 (breakpoint_address_match_range): New function.
2131 (breakpoint_location_address_match): Likewise.
2132 (breakpoint_locations_match): Compare the length field of the
2134 (hw_breakpoint_used_count): Count resources used by all locations
2135 in a breakpoint, and use breakpoint_ops.resources_needed if
2137 (breakpoint_hit_ranged_breakpoint): New function.
2138 (resources_needed_ranged_breakpoint): Likewise.
2139 (print_it_ranged_breakpoint): Likewise.
2140 (print_one_ranged_breakpoint): Likewise.
2141 (print_one_detail_ranged_breakpoint): Likewise.
2142 (print_mention_ranged_breakpoint): Likewise.
2143 (print_recreate_ranged_breakpoint): Likewise.
2144 (ranged_breakpoint_ops): New structure.
2145 (find_breakpoint_range_end): New function.
2146 (break_range_command): Likewise.
2147 (delete_breakpoint): Free addr_string_range_end.
2148 (update_breakpoint_locations): Add SALS_END argument. Update
2149 all callers. Calculate breakpoint length if a non-zero SALS_END
2150 is given. Call breakpoint_locations_match instead of
2151 breakpoint_address_match.
2152 (reset_breakpoint): Find SaL of the end of the range if B is a
2154 (_initialize_breakpoint): Register break-range command.
2155 * defs.h (print_core_address): Add function prototype.
2156 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2158 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2159 (ppc_linux_remove_hw_breakpoint): Likewise.
2160 (_initialize_ppc_linux_nat): Initialize
2161 to_ranged_break_num_registers.
2162 * target.c (update_current_target): Add comment about
2163 to_ranged_break_num_registers.
2164 (target_ranged_break_num_registers): New function.
2165 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2167 (target_ranged_break_num_registers): Add function prototype.
2168 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2169 * utils.c (print_core_address): ... here.
2171 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2173 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2174 variable compiler warning.
2176 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2178 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2180 (re_set_breakpoint): ... to here ...
2181 (addr_string_to_sals): ... and here.
2183 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2185 * Makefile.in (SFILES): Add missing C sources.
2186 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2187 Add missing headers.
2189 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2191 * .gitignore: New file.
2193 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2195 * NEWS: Mention new cfi device simulation.
2197 2011-03-29 Tom Tromey <tromey@redhat.com>
2199 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2200 otherwise anonymous types.
2201 (dwarf2_name): Likewise.
2202 * valops.c (value_struct_elt_for_reference): Refine artificial
2203 type logic. Call error if j==-1.
2205 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2207 Fix false GCC warning.
2208 * infcall.c (find_function_addr): Initialize funaddr.
2210 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2212 Fix mingw compilation with --enable-targets=all.
2213 * remote-mips.c (gdb_usleep.h): Include header.
2214 (mips_enter_debug): Use gdb_usleep instead of sleep.
2216 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2218 Support resolution of STT_GNU_IFUNC via breakpoints.
2219 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2220 bp_gnu_ifunc_resolver_return.
2221 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2222 the loop. Support bp_gnu_ifunc_resolver and
2223 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2224 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2226 (bptype_string, print_one_breakpoint_location): Support
2227 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2228 (user_settable_breakpoint): Return true also for
2229 bp_gnu_ifunc_resolver.
2230 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2231 bp_gnu_ifunc_resolver_return.
2232 (set_breakpoint_location_function): New parameter explicit_loc,
2233 describe it. Call find_pc_partial_function_gnu_ifunc with new
2234 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2235 EXPLICIT_LOC is not set.
2236 (set_raw_breakpoint): Set EXPLICIT_LOC for
2237 set_breakpoint_location_function.
2238 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2239 set_breakpoint_location_function.
2240 (mention): Support bp_gnu_ifunc_resolver and
2241 bp_gnu_ifunc_resolver_return.
2242 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2243 set_breakpoint_location_function.
2244 (update_breakpoint_locations): Remove static.
2245 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2246 bp_gnu_ifunc_resolver_return.
2247 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2248 bp_gnu_ifunc_resolver_return.
2249 (update_breakpoint_locations): New declaration.
2250 * elfread.c: Include gdbthread.h and regcache.h.
2251 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2253 (elf_gnu_ifunc_fns): Install them.
2254 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2255 (stub_gnu_ifunc_resolver_return_stop): New functions.
2256 (stub_gnu_ifunc_fns): Install them.
2257 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2258 and gnu_ifunc_resolver_return_stop.
2259 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2261 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2263 STT_GNU_IFUNC reader implementation.
2264 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2265 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2266 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2267 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2268 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2269 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2270 (elf_gnu_ifunc_resolve_addr): New.
2271 (elf_symfile_read): Call elf_rel_plt_read.
2272 (elf_gnu_ifunc_fns): New.
2273 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2274 Install elf_gnu_ifunc_fns.
2275 * infcall.c (find_function_return_type): New function.
2276 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2277 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2278 (stub_gnu_ifunc_resolve_name): New functions.
2279 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2280 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2281 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2283 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2285 Code cleanup for later STT_GNU_IFUNC support.
2286 * infcall.c (find_function_addr): Remove variable code, use explicit
2287 dereferences for it. Move VALUE_TYPE initialization later.
2289 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2291 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2292 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2293 (clear_pc_function_cache): Clear it.
2294 (find_pc_partial_function): Rename to ...
2295 (find_pc_partial_function_gnu_ifunc): ... this function. New
2296 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2297 (find_pc_partial_function): New wrapper for this function.
2298 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2300 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2302 GDB internal type support for STT_GNU_IFUNC.
2303 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2304 (elf_symtab_read): Set mst_text_gnu_ifunc for
2305 BSF_GNU_INDIRECT_FUNCTION.
2306 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2307 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2308 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2309 nodebug_got_plt_symbol.
2310 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2311 (TYPE_GNU_IFUNC): New.
2312 (struct main_type): New field flag_gnu_ifunc.
2313 (struct builtin_type): New field builtin_func_func.
2314 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2315 nodebug_got_plt_symbol.
2316 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2317 (in_gnu_ifunc_stub): New.
2318 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2320 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2321 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2322 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2324 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2325 * symtab.c (search_symbols): Likewise.
2326 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2327 and mst_slot_got_plt.
2328 (in_gnu_ifunc_stub): New declaration.
2330 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2332 Support a ring of related breakpoints.
2333 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2334 other functions, add gdb_assert.
2335 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2336 watchpoint_del_at_next_stop.
2337 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2338 (bpstat_stop_status): Handle ring in related_breakpoint.
2339 (set_raw_breakpoint_without_location): Initialize ring in
2341 (delete_breakpoint): Handle ring in related_breakpoint, use
2342 watchpoint_del_at_next_stop.
2343 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2345 2011-03-28 Tom Tromey <tromey@redhat.com>
2348 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2349 with `language_minimal'.
2351 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2353 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2354 instead of checking for STT_ARM_TFUNC symbol type.
2356 2011-03-25 Tom Tromey <tromey@redhat.com>
2358 * linespec.c (symbol_found): Restore line-based result for
2359 non-LOC_LABEL symbols.
2361 2011-03-25 Kai Tietz <ktietz@redhat.com>
2363 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2364 instead of strcmp for comparison.
2365 (tui_source_is_displayed): Likewise.
2366 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2368 2011-03-24 Mark Wielaard <mjw@redhat.com>
2370 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2372 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2373 (find_partial_die_in_comp_unit): Likewise in comment.
2374 (read_attribute_value): Likewise.
2375 (lookup_die_type): Likewise.
2376 (dwarf_form_name): Likewise.
2377 (dump_die_shallow): Likewise.
2378 (follow_die_ref_or_sig): Likewise.
2380 2011-03-24 Tom Tromey <tromey@redhat.com>
2382 PR breakpoints/11816:
2383 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2384 (decode_compound): Update.
2385 (find_function_symbol): New function.
2386 (decode_dollar): Update.
2387 (decode_label): Add 'function_symbol' parameter. Handle
2388 function-relative labels.
2389 (decode_variable): Update.
2390 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2391 not its line. Set `special_display' and canonical name for
2394 2011-03-24 Tom Tromey <tromey@redhat.com>
2396 * linespec.h (struct linespec_result) <special_display>: New
2398 * breakpoint.h (struct breakpoint) <display_canonical>: New
2400 * breakpoint.c (print_breakpoint_location): Respect
2402 (create_breakpoint_sal): Add 'display_canonical' parameter.
2403 (create_breakpoints_sal): Update.
2404 (create_breakpoint): Update.
2406 2011-03-24 Tom Tromey <tromey@redhat.com>
2408 * symtab.c (decode_line_spec): Update.
2409 * linespec.c (build_canonical_line_spec): Change type of
2411 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2412 (find_method, decode_all_digits, decode_dollar, decode_label)
2413 (symbol_found): Likewise.
2414 (init_linespec_result): New function.
2415 * breakpoint.c (struct captured_parse_breakpoint_args)
2416 <canonical_p>: New field, replaces addr_string_p.
2417 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2419 (parse_breakpoint_sals): Likewise.
2420 (do_captured_parse_breakpoint): Update.
2421 (create_breakpoint): Use struct linespec_result.
2422 (until_break_command): Update.
2423 (breakpoint_re_set_one): Update.
2424 (decode_line_spec_1): Update.
2425 * linespec.h (struct linespec_result): New.
2426 (init_linespec_result): Declare.
2428 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2430 * regcache.c (regcache_raw_read): If the target didn't supply a
2431 given raw register, mark it as unavailable.
2433 2011-03-23 Kai Tietz <ktietz@redhat.com>
2435 * breakpoint.c (clear_command): Use filename_cmp
2436 instead of strcmp for comparison.
2437 * buildsym.c (watch_main_source_file_lossage): Likewise.
2438 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2439 checking just for slash.
2440 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2441 strrchr and filename_cmp instead of strcmp for filenames.
2442 (add_old_header_file): Use filename_cmp
2443 instead of strcmp for comparison.
2444 * exec.c (exec_set_section_address): Likewise.
2445 * macrotab.c (macro_lookup_inclusion): Likewise.
2446 (macro_lookup_inclusion): Likewise.
2447 * elfread.c (_initialize_elfread): Likewise.
2448 (elfstab_offset_sections): Likewise.
2449 (elfstab_offset_sections): Use lbasename instead of
2451 * mdebugread.c (parse_partial_symbols): Likewise.
2452 (arse_partial_symbols): Use filename_(n)cmp instead of
2453 str(n)cmp for comparison.
2454 * minsyms.c (lookup_minimal_symbol): Likewise.
2455 * psymtab.c (read_psymtabs_with_filename): Likewise.
2456 * solib.c (solib_read_symbols): Likewise.
2457 (reload_shared_libraries_1): Likewise.
2458 * symmisc.c (maintenance_print_symbols): Likewise.
2459 * symfile.c (separate_debug_file_exists): Likewise.
2460 (reread_symbols): Likewise.
2461 (find_separate_debug_file_by_debuglink): Likewise.
2462 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2463 * source.c (add_path): Likewise.
2464 * symtab.c (filename_seen): Likewise.
2465 (file_matches): Likewise.
2466 (print_symbol_info): Likewise.
2467 (maybe_add_partial_symtab_filename): Likewise.
2468 (make_source_files_completion_list): Likewise.
2469 * xml-syscall.c (init_sysinfo): Likewise.
2470 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2471 IS_DIR_SEPARATOR for checking for trailing path separator.
2473 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2476 label abort_expression.
2477 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2478 DWARF_VALUE_OPTIMIZED_OUT.
2480 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2484 to linkage_name. Invert its value. Update the function comment.
2485 (c_type_print_varspec_suffix): Invert it at the caller.
2486 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2488 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2490 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2491 errors when reading the `stop_pc'.
2492 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2495 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2497 * NEWS: Document gdb.Write stream keyword.
2499 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2502 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2503 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2504 (dwarf2_add_field): Fix new_field->accessibility for
2505 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2507 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2511 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2512 other error classes. Do not print stack trace.
2514 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2516 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2517 (dwarf2_add_field): Fix new_field->accessibility for
2518 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2520 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2522 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2523 encountering a load via a non-SP register.
2525 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2527 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2528 field in returned unwinder.
2530 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2532 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2534 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2536 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2539 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2541 * frame.c (frame_unwind_register): Throw an error if unwinding the
2543 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2544 an unwind stop reason.
2545 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2546 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2547 UNWIND_UNAVAILABLE>: New.
2548 * inline-frame.c (inline_frame_unwind): Install
2549 default_frame_unwind_stop_reason.
2550 * frame-unwind.c: Include "exceptions.h".
2551 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2552 (default_frame_unwind_stop_reason): New.
2553 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2554 (default_frame_unwind_stop_reason): Declare.
2555 (struct frame_unwind) <stop_reason>: New function pointer.
2557 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2558 * dwarf2-frame.c: Include exceptions.h.
2559 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2560 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2561 computing the CFA. If such an error was thrown, set
2562 unavailable_retaddr.
2563 (dwarf2_frame_unwind_stop_reason): New.
2564 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2566 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2567 (dwarf2_signal_frame_unwind): Ditto.
2569 * amd64-tdep.c: Include "exceptions.h".
2570 (struct amd64_frame_cache): New field "base_p".
2571 (amd64_init_frame_cache): Clear it.
2572 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2573 Avoid reading registers with functions that throw if the register
2574 is not necessary to compute the frame base.
2575 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2576 swallowing NOT_AVAILABLE_ERROR.
2577 (amd64_frame_unwind_stop_reason): New.
2578 (amd64_frame_this_id): Don't build a frame id if the frame base
2580 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2581 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2582 base_p if the frame base was computable.
2583 (amd64_sigtramp_frame_unwind_stop_reason): New.
2584 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2585 frame base was unavailable.
2586 (amd64_sigtramp_frame_unwind): Install
2587 amd64_sigtramp_frame_unwind_stop_reason.
2588 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2589 base_p if the frame base was computable.
2590 (amd64_epilogue_frame_unwind_stop_reason): New.
2591 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2592 frame base was unavailable.
2593 (amd64_epilogue_frame_unwind): Install
2594 amd64_epilogue_frame_unwind_stop_reason.
2595 * i386-tdep.c: Include "exceptions.h".
2596 (struct i386_frame_cache): New field "base_p".
2597 (i386_init_frame_cache): Clear it.
2598 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2599 Avoid reading registers with functions that throw if the register
2600 is not necessary to compute the frame base.
2601 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2602 swallowing NOT_AVAILABLE_ERROR.
2603 (i386_frame_unwind_stop_reason): New.
2604 (i386_frame_this_id): Don't build a frame id if the frame base was
2606 (i386_frame_prev_register): Handle unavailable SP.
2607 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2608 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2609 base_p if the frame base was computable.
2610 (i386_epilogue_frame_unwind_stop_reason): New.
2611 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2612 base was unavailable.
2613 (i386_epilogue_frame_unwind): Install
2614 i386_epilogue_frame_unwind_stop_reason.
2615 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2616 base_p if the frame base was computable.
2617 (i386_sigtramp_frame_unwind_stop_reason): New.
2618 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2619 base was unavailable.
2620 (i386_sigtramp_frame_unwind): Install
2621 i386_sigtramp_frame_unwind_stop_reason.
2622 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2623 type's size, not the register's.
2624 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2626 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2627 default_frame_unwind_stop_reason.
2628 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2629 (alpha_heuristic_frame_unwind): Ditto.
2630 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2631 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2632 * avr-tdep.c (avr_frame_unwind): Ditto.
2633 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2635 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2636 * frv-tdep.c (frv_frame_unwind): Ditto.
2637 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2638 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2639 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2640 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2641 (hppa_stub_frame_unwind): Ditto.
2642 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2643 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2644 (ia64_libunwind_frame_unwind)
2645 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2646 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2647 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2648 * m32c-tdep.c (m32c_unwind): Ditto.
2649 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2650 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2651 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2652 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2653 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2654 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2655 * mep-tdep.c (mep_frame_unwind): Ditto.
2656 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2657 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2658 (mips_stub_frame_unwind): Ditto.
2659 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2660 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2661 * mt-tdep.c (mt_frame_unwind): Ditto.
2662 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2663 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2664 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2665 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2666 (s390_sigtramp_frame_unwind): Ditto.
2667 * score-tdep.c (score_prologue_unwind): Ditto.
2668 * sh-tdep.c (sh_frame_unwind): Ditto.
2669 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2670 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2671 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2672 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2673 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2674 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2675 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2676 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2677 (sparc64obsd_trapframe_unwind): Ditto.
2678 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2679 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2680 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2681 * v850-tdep.c (v850_frame_unwind): Ditto.
2682 * vax-tdep.c (vax_frame_unwind): Ditto.
2683 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2684 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2685 * xtensa-tdep.c (xtensa_unwind): Ditto.
2687 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2689 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2690 there's always a frame. Use get_frame_pc_if_available instead of
2691 get_frame_pc, and if there's no PC available, don't look up a
2694 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2696 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2699 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2701 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2704 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2706 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2707 * frame.c (frame_unwind_caller_pc_if_available): New.
2708 * stack.c (frame_info): Handle unavailable PC.
2710 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2712 * frame.c (frame_unwind_pc): Rename to ...
2713 (frame_unwind_pc_if_available): ... this. New `pc' output
2714 parameter. Change return type to int. Gracefully handle
2715 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2716 happened, or 1 otherwise.
2717 (frame_unwind_pc): Reimplement on top of
2718 frame_unwind_pc_if_available.
2719 (get_frame_func): Rename to ...
2720 (get_frame_func_if_available): New `pc' output parameter. Change
2721 return type to int. Gracefully handle the PC not being available.
2722 (get_frame_func): Reimplement on top of
2723 get_frame_func_if_available.
2724 (select_frame): Handle the PC being unavailable.
2725 (get_prev_frame): Handle the PC being unavailable.
2726 (get_frame_pc_if_available): New.
2727 (get_frame_address_in_block_if_available): New.
2728 (find_frame_sal): Handle the frame PC not being available.
2729 * frame.h (get_frame_pc_if_available): Declare.
2730 (get_frame_address_in_block_if_available): Declare.
2731 (get_frame_func_if_available): Declare.
2732 * stack.c (print_frame_info): Handle the PC being unavailable.
2733 (find_frame_funname): Ditto.
2734 (print_frame): Handle the PC being unavailable.
2735 (get_frame_language): Ditto.
2736 * blockframe.c (get_frame_block): Ditto.
2737 * macroscope.c (default_macro_scope): Ditto.
2738 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2740 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2742 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2743 NOT_AVAILABLE_ERROR when evaluating the location expression.
2745 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2747 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2748 returning that the register piece is unavailable/optimized out.
2749 (write_pieced_value): Handle get_frame_register_bytes returning
2750 that the register piece is unavailable/optimized out when doing a
2751 read-modify write of a bitfield.
2752 * findvar.c (value_from_register): Handle get_frame_register_bytes
2753 returning that the register piece is unavailable/optimized out.
2754 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2755 and `unavailablep'. Throw error on bad debug info. Use
2756 frame_register instead of frame_register_read, to fill in the new
2758 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2760 * valops.c: (value_assign): Adjust, and handle
2761 get_frame_register_bytes failing.
2762 * spu-tdep.c: Include exceptions.h.
2763 (spu_software_single_step): Adjust, and handle
2764 get_frame_register_bytes failing.
2765 (spu_get_longjmp_target): Ditto.
2766 * gdbarch.sh (register_to_value): Change to return int. New
2767 parameters `optimizedp' and `unavailablep'.
2768 * gdbarch.h, gdbarch.c: Regenerate.
2769 * i386-tdep.c (i386_register_to_value): Adjust to new
2770 gdbarch_register_to_value interface.
2771 * i387-tdep.c (i387_register_to_value): Ditto.
2772 * i387-tdep.h (i387_register_to_value): Ditto.
2773 * alpha-tdep.c (alpha_register_to_value): Ditto.
2774 * ia64-tdep.c (ia64_register_to_value): Ditto.
2775 * m68k-tdep.c (m68k_register_to_value): Ditto.
2776 * mips-tdep.c (mips_register_to_value): Ditto.
2777 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2779 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2781 * findvar.c (value_of_register): Mark the value as unavailable, if
2782 the register is unavailable.
2783 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2784 (frame_register): New `unavailablep' parameter.
2785 (frame_register_read): Update comment.
2786 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2787 Set it if the register is unavailable. If the register is
2788 unavailable, clear the output buffer.
2789 (frame_register): New `unavailablep' parameter. Pass it down.
2790 (frame_unwind_register): Adjust.
2791 (put_frame_register): Adjust.
2792 (frame_register_read): Adjust. Also return false if the register
2794 (frame_register_unwind_location): Adjust.
2795 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2796 is unavailable, mark the value accordingly.
2797 * stack.c (frame_info): Handle unavailable registers.
2799 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2801 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2802 simplify, using regcache_cooked_read.
2804 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2806 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2807 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2808 (regcache_raw_read_unsigned, regcache_raw_read_part)
2809 (regcache_cooked_read, regcache_cooked_read_signed)
2810 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2811 (regcache_cooked_read_ftype): Change return to enum
2813 * regcache.c: Include exceptions.h
2814 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2815 (do_cooked_read): Change return to enum register_status. Always
2816 forward to regcache_cooked_read.
2817 (regcache_raw_read): Change return to enum register_status. If
2818 the register is not REG_VALID, memset the buffer. Return the
2820 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2821 return the register's status.
2822 (regcache_raw_read_unsigned): Ditto.
2823 (regcache_cooked_read): Change return to enum register_status.
2824 Assert that with read-only regcaches, the register's status must
2825 be known. If the regcache is read-only, and the register is not
2826 REG_VALID, memset the buffer. Return the register's status.
2827 (regcache_cooked_read_signed): Change return to enum
2828 register_status. Handle non-REG_VALID registers and return the
2830 (regcache_cooked_read_unsigned): Change return to enum
2831 register_status. Handle non-REG_VALID registers and return the
2833 (regcache_xfer_part, regcache_raw_read_part)
2834 (regcache_cooked_read_part): Change return to enum
2835 register_status. Return the register's status.
2836 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2838 (regcache_dump): Handle unavailable cooked registers.
2839 * frame.c (do_frame_register_read): Adjust interface to match
2840 regcache_cooked_read_ftype.
2841 * gdbarch.sh (pseudo_register_read): Change return to enum
2843 * gdbarch.h, gdbarch.c: Regenerate.
2845 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2847 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2848 register_status. If reading a raw register indicates the raw
2849 register is not valid, return the raw register's status,
2850 otherwise, return REG_VALID.
2851 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2852 register_status. Handle non-REG_VALID raw registers and return
2853 the register's status.
2854 * arm-tdep.c (arm_neon_quad_read)
2855 (arm_pseudo_read): Change return to enum register_status. Handle
2856 non-REG_VALID raw registers and return the register's status.
2857 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2858 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2859 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2860 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2861 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2863 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2864 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2865 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2866 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2867 (m32c_pseudo_register_read): Change return to enum
2868 register_status. Adjust.
2869 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2870 enum register_status. Return the register's status.
2871 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2872 register_status. Return the register's status.
2873 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2874 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2875 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2876 * rs6000-tdep.c (move_ev_register_func): New typedef.
2877 (e500_move_ev_register): Use it. Change return to enum
2878 register_status. Return the register's status.
2879 (do_regcache_raw_read): New function.
2880 (do_regcache_raw_write): New function.
2881 (e500_pseudo_register_read): Change return to enum
2882 register_status. Return the register's status. Use
2883 do_regcache_raw_read.
2884 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2885 (dfp_pseudo_register_read): Change return to enum register_status.
2886 Return the register's status.
2887 (vsx_pseudo_register_read): Ditto.
2888 (efpr_pseudo_register_read): Ditto.
2889 (rs6000_pseudo_register_read): Ditto.
2890 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2891 register_status. Return the register's status.
2892 * sh64-tdep.c (pseudo_register_read_portions): New function.
2893 (sh64_pseudo_register_read): Change return to enum
2894 register_status. Use pseudo_register_read_portions. Return the
2896 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2897 register_status. Return the register's status.
2898 * sh-tdep.c (pseudo_register_read_portions): New function.
2899 (sh_pseudo_register_read): Change return to enum register_status.
2900 Use pseudo_register_read_portions. Return the register's status.
2901 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2902 enum register_status. Return the register's status.
2903 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2904 * spu-tdep.c (spu_pseudo_register_read_spu)
2905 (spu_pseudo_register_read): Ditto.
2906 * xtensa-tdep.c (xtensa_register_read_masked)
2907 (xtensa_pseudo_register_read): Ditto.
2908 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2910 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2912 * python/py-value.c (valpy_getitem): Fix formatting of error function
2915 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2917 ARI fixes: Add missing internationalization markups throughout
2919 * darwin-nat-info.c: Ditto.
2922 * mi/mi-main.c: Ditto.
2924 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2926 ARI fixes: Add missing internationalization markups throughout
2929 * cp-name-parser.y: Ditto.
2932 * objc-exp.y: Ditto.
2935 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2937 ARI fixes: Messages should have no trailing new lines.
2938 * darwin-nat.c (mach_check_error): Remove trailing new line from
2939 warning function call message.
2940 * record.c (bfdcore_read): Idem for error call.
2942 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2944 * common/signals.c (target_signal_from_host): Add _ markup to error
2945 function call message.
2946 (target_signal_to_host): Add _ markup and remove trailing new line
2947 from warning call message.
2948 (target_signal_from_command): Add _ markup to error function call
2951 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2955 * python/python.c (gdbpy_write): Accept a stream argument and
2956 operate to the appropriate stream.
2957 (gdbpy_flush): Likewise.
2958 (_initialize_python): Add stream constants.
2959 (finish_python_initialization): Add GdbOutputErrorFile class.
2961 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2963 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2965 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2967 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2968 to store_signed_integer. Add debug message when relocating CALL
2969 instructions. Fix formatting of debug message.
2970 * i386-tdep.c (i386_relocate_instruction): Ditto.
2972 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2974 * target.h (struct target_ops): Remove to_lookup_symbol field.
2975 (target_lookup_symbol): Delete macro.
2976 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2977 (update_current_target, setup_target_debug): Remove handling
2978 of to_lookup_symbol target_ops field.
2979 * ada-tasks.c (get_known_tasks_addr): Remove use of
2980 target_lookup_symbol.
2981 * coffread.c (coff_symtab_read): Likewise.
2982 * dbxread.c (read_dbx_symtab): Ditto.
2984 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2987 * configure.ac: Add getthrds declaration check.
2988 * configure, config.in: Regenerate.
2989 * aix-thread.c (getthrds): Declare only if not already declared
2990 in procinfo.h. More declaration out of get_signaled_thread to
2993 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2995 * python/py-symtab.c: Populate symtab_object_methods,
2997 (stpy_is_valid): New function.
2998 (salpy_is_valid): Ditto.
2999 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3000 (sympy_is_valid): New function.
3001 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3002 (objfpy_is_valid): New function.
3003 * python/py-inferior.c: Populate inferior_object_methods.
3004 (infpy_is_valid): New function.
3005 * python/py-infthread.c: Populate thread_object_methods.
3006 (thpy_is_valid): New function.
3007 * python/py-block.c: Declare block_object_methods. Populate. Declare
3008 block_iterator_object_methods. Populate.
3009 (blpy_is_valid): New function.
3010 (blpy_iter_is_valid): Ditto.
3012 2011-03-16 Keith Seitz <keiths@redhat.com>
3014 * linespec.c (find_methods): Canonicalize NAME before looking
3016 (name_end): New function.
3017 (keep_name_info): New function.
3018 (decode_line_1): Use keep_name_info.
3019 (decode_compound): Likewise.
3020 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3021 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3024 * linespec.c (locate_first_half): Keep overload information, too.
3025 (decode_compound): Use a string to represent break characters
3027 If P points to a break character, do not increment it.
3028 For C++ and Java, keep overload information and relevant keywords.
3029 If we cannot find a symbol, search the minimal symbols.
3032 * linespec.c (decode_compound): Rename SAVED_ARG to
3034 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3036 Pass a valid block to lookup_symbol.
3037 (lookup_prefix_sym): Likewise.
3038 (find_method): Construct search name based on SYM_CLASS instead
3040 * psymtab.c (lookup_partial_symbol): Add language parameter.
3041 (lookup_symbol_aux_psymtabs): Likewise.
3042 Don't assume that the psymtab we found was the right one. Search
3043 for the desired symbol in the symtab to be certain.
3044 (psymtab_search_name): New function.
3045 (lookup_partial_symbol): Use psymtab_search_name.
3046 Add language parameter.
3047 (read_symtabs_for_function): Add language parameter and pass to
3048 lookup_partial_symbol.
3049 (find_symbol_file_from_partial): Likewise.
3051 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3054 * dwarf2read.c (noop_record_line): New function.
3055 (dwarf_decode_lines): Ignore line tables for GCd functions.
3057 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3059 Fix ARI warnings about new lines at the end of messages, which
3060 are unneeded as there is a new line added at the end of the message
3062 * darwin-nat.c (darwin_stop_inferior): Ditto.
3063 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3064 * dfp.c (decimal_to_number): Ditto.
3065 * exec.c (print_section_info): Ditto.
3066 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3067 * osdata.c (get_osdata): Ditto.
3068 * record.c (bfdcore_write): Ditto.
3069 * remote-mips.c (mips_readchar): Ditto.
3070 * remote.c (read_ptid): Ditto.
3071 * ser-mingw.c (ser_windows_raw): Ditto.
3072 * tracepoint.c (add_local_symbols): Ditto.
3073 * windows-nat.c (fake_create_process): Ditto.
3075 2011-03-16 Tom Tromey <tromey@redhat.com>
3077 * tracepoint.c (stop_tracing): Don't declare.
3078 * event-top.c (after_char_processing_hook): Add `(void)'.
3080 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3082 * NEWS: Add Parameter sub-classing description.
3084 2011-03-16 Kai Tietz <ktietz@redhat.com>
3086 * MAINTAINERS: Update my e-mail address.
3088 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3090 * MAINTAINERS: Add myself for write after approval privileges.
3092 2011-03-15 Michael Snyder <msnyder@vmware.com>
3094 * frame.c (find_frame_sal): Assert sym is not null.
3096 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3098 * objc-lang.c (selectors_info): Check strchr for null result.
3100 * stabsread.c (define_symbol): Guard against bad stabstring input.
3102 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3104 Remove trailing spaces and tabulations from pascal language
3109 p-valprint.c: Ditto.
3111 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3113 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3114 than LOW. Comment it.
3115 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3116 HIGHPC not strictly higher than LOWPC.
3118 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3120 Fix formatting of function declarations returning a pointer in
3122 * varobj.c (varobj_add_child): Ditto.
3123 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3124 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3126 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3128 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3129 for the "generic" vector ABI used with GCC 4.3 and later.
3130 (ppc64_sysv_abi_return_value): Likewise.
3132 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3134 * infcall.c (call_function_by_hand): Function return value is
3135 always a non_lval, even when using struct_return.
3137 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3139 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3140 (map_display_numbers): New.
3141 (do_delete_display): New.
3142 (undisplay_command): Use map_display_numbers.
3143 (do_enable_disable_display): New.
3144 (enable_disable_display_command): New function.
3145 (enable_display): Delete.
3146 (enable_display_command): New.
3147 (disable_display_command): Reimplement.
3148 (_initialize_printcmd): Adjust "enable display" command to use
3149 `enable_display_command' as callback.
3151 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3153 * NEWS: Add Python breakpoint 'stop' operation.
3155 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3157 * NEWS: Delete duplicate entry. Fix typo.
3159 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3161 Fix ARI warning about function names in first column.
3162 Put prototype declaration on same line as return type.
3163 * objc-exp.y: Ditto.
3165 * python/py-stopevent.h: Ditto.
3166 For long function names, split parameters to
3167 allow function name on same line as return type.
3168 * solib-pa64.c: Ditto.
3171 For long function declaration, use single line.
3172 * hppa-tdep.h: Ditto.
3173 * inferior.h: Ditto.
3175 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3177 * python/python.h: Declare gdbpy_should_stop and
3178 gdbpy_breakpoint_has_py_cond.
3179 * python/python.c: Add python.h to includes. Remove python.h from
3180 HAVE_PYTHON definition
3181 (gdbpy_should_stop): New dummy function.
3182 (gdbpy_breakpoint_has_py_cond): New dummy function.
3183 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3184 sub-classing capabilities.
3185 (gdbpy_should_stop): New function.
3186 (gdbpy_breakpoint_has_py_cond): New function.
3187 (local_setattro): New function.
3188 * breakpoint.c (condition_command): Add check for Python 'stop'
3190 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3191 operation function as part of stop/continue tests.
3193 2011-03-14 Tom Tromey <tromey@redhat.com>
3196 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3197 (needs_frame_dwarf_call): Likewise.
3199 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3201 Fix ARI warning about functions without parameters that do not
3203 * breakpoint.c (all_tracepoints): Replace () by (void).
3204 * f-exp.y (match_string_literal): Ditto.
3206 * m2-exp.y (yylex): Ditto.
3207 * mep-tdep.c (current_me_module): Ditto.
3208 (current_options): Ditto.
3209 (current_cop_data_bus_width): Ditto.
3210 (current_cr_names): Ditto.
3211 (current_cr_is_float): Ditto.
3212 (current_ccr_names): Ditto.
3213 * objc-exp.y (yylex): Ditto.
3214 * p-exp.y (yylex): Ditto.
3215 * remote.c (send_interrupt_sequence): Ditto.
3216 * tracepoint.c (current_trace_status): Ditto.
3217 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3218 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3220 2011-03-11 Michael Snyder <msnyder@vmware.com>
3222 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3223 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3224 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3225 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3226 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3228 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3229 (delete_async_event_handler): Ditto.
3231 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3233 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3235 * top.c (set_verbose): Assert showcmd was found.
3237 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3239 * xtensa-tdep.c (warning_once): Correct style issues.
3241 2011-03-11 Yao Qi <yao@codesourcery.com>
3243 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3245 2011-03-11 Andreas Schwab <schwab@redhat.com>
3247 * common/aclocal.m4: Remove.
3249 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3251 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3252 (xtensa_write_register, xtensa_read_register): Likewise.
3253 (xtensa_hextochar): Removed.
3254 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3256 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3258 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3259 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3260 (xtensa_alloc_frame_cache): Add initialization for new fields.
3261 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3262 (warning_once): New function.
3263 (xtensa_insn_kind): New item c0opc_and.
3264 (call0_classify_opcode): Add the case for AND instruction.
3265 (call0_track_op): Change arguments. New local variable litbase.
3266 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3267 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3269 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3270 (call0_analyze_prologue): Update the comments. Change arguments.
3271 Add the variety of updates to handle extended prologues, which now can
3272 conduct dynamic stack adjustments.
3273 (call0_frame_cache): Likewise.
3274 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3275 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3277 2011-03-10 Michael Snyder <msnyder@vmware.com>
3279 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3280 (cmd_qtframe): Ditto.
3281 (cmd_qtbuffer): Ditto.
3282 (cmd_bigqtbuffer): Ditto.
3284 2011-03-10 Tom Tromey <tromey@redhat.com>
3286 * tracepoint.c (trace_actions_command): Update.
3287 * thread.c (thread_apply_command): Update.
3288 * reverse.c (delete_bookmark_command): Update.
3289 (bookmarks_info): Update.
3290 * printcmd.c (undisplay_command): Update.
3291 * memattr.c (mem_enable_command): Update.
3292 (mem_disable_command): Update.
3293 (mem_delete_command): Update.
3294 * inferior.c (detach_inferior_command): Update.
3295 (kill_inferior_command): Update.
3296 (remove_inferior_command): Update.
3297 * cli/cli-utils.h (struct get_number_or_range_state): New.
3298 (init_number_or_range): Declare.
3299 (get_number_or_range): Update.
3300 * cli/cli-utils.c (init_number_or_range): New function.
3301 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3303 (number_is_in_list): Update.
3304 * breakpoint.h (get_tracepoint_by_number): Update.
3305 * breakpoint.c (map_breakpoint_numbers): Update for change to
3306 get_number_or_range.
3307 (find_location_by_number): Use get_number, not
3308 get_number_or_range.
3309 (trace_pass_set_count): New function.
3310 (trace_pass_command): Update for change to get_number_or_range.
3312 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3315 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3317 * python/py-param.c (add_setshow_generic): Add set/show callback
3318 parameters. Register Python object context.
3319 (get_show_value): New function.
3320 (get_set_value): New function.
3321 (call_doc_function): New function.
3322 (get_doc_string): Move behind get_show_value/get_set_value.
3324 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3326 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3328 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3330 * xtensa-tdep.c (xtensa_read_register): Add comment.
3331 (xtensa_write_register): Likewise.
3332 (xtensa_hextochar): Add comment and update to match coding conventions.
3333 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3334 (execute_l32e, execute_s32e, execute_code): Update comments.
3335 (xtensa_exception_handler_t): Update to match coding conventions.
3336 (xtensa_insn_kind): Likewise.
3338 2011-03-09 Michael Snyder <msnyder@vmware.com>
3340 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3342 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3344 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3346 2011-03-09 Tom Tromey <tromey@redhat.com>
3348 * thread.c (restore_selected_frame): Handle frame_level == -1.
3349 (make_cleanup_restore_current_thread): Use
3350 get_selected_frame_if_set.
3351 * frame.h (get_selected_frame_if_set): Declare.
3352 * frame.c (get_selected_frame_if_set): New function.
3354 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3356 * cli/cli-cmds.c (shell_escape): Use lbasename.
3357 * coffread.c (coff_start_symtab): Constify parameter.
3358 (complete_symtab): Constify `name' parameter.
3359 (coff_symtab_read): Constify `filestring' local.
3360 (coff_getfilename): Constify return and `result' local.
3362 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3363 * linux-fork.c (info_checkpoints_command): Use lbasename.
3364 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3365 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3366 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3367 * procfs.c (procfs_make_note_section): Use lbasename.
3368 * tui/tui-io.c (printable_part): Constity return and parameter.
3370 (print_filename): Constify parameters, and local `s'.
3371 (tui_rl_display_match_list): Constify local `temp'.
3373 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3376 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3377 Fix DWARF-3+ DW_AT_accessibility default assumption.
3378 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3379 cu->header.version >= 3.
3381 2011-03-09 Yao Qi <yao@codesourcery.com>
3383 * common/Makefile.in: Remove.
3384 * common/configure: Remove.
3385 * common/configure.ac: Remove.
3387 2011-03-09 Yao Qi <yao@codesourcery.com>
3390 2011-02-11 Yao Qi <yao@codesourcery.com>
3392 * common/Makefile.in: Add copyright header.
3394 2011-02-11 Yao Qi <yao@codesourcery.com>
3396 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3398 * configure.ac: Add common to sub dir.
3399 * configure: Regenerate.
3401 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3403 * xtensa-tdep.c (call0_ret): New function.
3404 (xtensa_skip_prologue): Speed up analysis.
3406 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3408 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3409 while executing MI command -data-list-changed-registers.
3411 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3413 * xtensa-tdep.c (xtensa_read_register): New function.
3414 (xtensa_write_register): New function.
3415 (xtensa_find_register_by_name): New function.
3416 (xtensa_windowed_frame_cache): Update comments in type description.
3417 (xtensa_frame_cache): Likewise.
3418 (xtensa_window_interrupt_insn): New function.
3419 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3420 (xtensa_insn_kind): Add new instructions.
3421 (rwx_special_register): New function.
3422 (call0_classify_opcode): Add new instructions to the analysis.
3423 (a0_saved, a7_saved, a11_saved): New variables.
3424 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3425 (execute_l32e): New function.
3426 (execute_s32e): New function.
3427 (xtensa_exception_handler_t): New type.
3428 (execute_code): New function.
3429 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3430 analysis for Xtensa Window Exception handlers.
3432 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3434 * xtensa-tdep.c (TX_PS): New.
3435 (windowing_enabled): Update to count for Call0 ABI.
3436 (xtensa_hextochar): New.
3437 (xtensa_init_reggroups): Make algorithm generic.
3438 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3440 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3442 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3444 2011-03-08 Michael Snyder <msnyder@vmware.com>
3446 * i386-tdep.c (i386_follow_jump): Check return value of
3448 (i386_analyze_struct_return): Ditto.
3449 (i386_skip_probe): Ditto.
3450 (i386_match_insn): Ditto.
3451 (i386_skip_noop): Ditto.
3452 (i386_analyze_frame_setup): Ditto.
3453 (i386_analyze_register_saves): Ditto.
3454 (i386_skip_prologue): Ditto.
3455 (i386_skip_main_prologue): Ditto.
3457 * target.c (read_whatever_is_readable): Fix memory leak.
3459 * i386-tdep.c (i386_process_record): Document fall through.
3461 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 Fix DWARF-3+ DW_AT_accessibility default assumption.
3464 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3465 cu->header.version >= 3.
3467 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3469 * remote.c (remote_check_symbols): Skip if the target has no
3472 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3474 * target.c (read_whatever_is_readable): Reformat comment,
3475 with a minor typo fix. Minor reformatting of the code.
3477 2011-03-08 Yao Qi <yao@codesourcery.com>
3479 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3480 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3481 Use cached result instead of calling displaced_in_arm_mode again.
3482 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3483 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3484 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3485 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3486 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3487 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3488 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3489 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3490 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3491 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3492 (arm_catch_kernel_helper_return): Likewise.
3493 * gdb/arm-tdep.h : Update function declarations.
3495 2011-03-07 Michael Snyder <msnyder@vmware.com>
3497 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3499 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3501 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3503 * elfread.c (elf_symtab_read): Stop memory leak.
3505 * main.c (captured_main): Fix memory leak.
3507 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3509 * ada-lang.c (compare_names): Call is_name_suffix with string1
3512 2011-03-07 Tom Tromey <tromey@redhat.com>
3514 * xcoffread.c (xcoff_sym_fns): Update.
3515 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3516 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3517 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3518 (symbol_file_add_with_addrs_or_offsets): Likewise.
3519 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3520 * somread.c (som_sym_fns): Update.
3521 * psymtab.h (require_partial_symbols): Declare.
3522 * psymtab.c (require_partial_symbols): New function.
3523 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3524 (ALL_OBJFILE_PSYMTABS): Undef.
3525 (ALL_PSYMTABS): Move from psympriv.h.
3526 (lookup_partial_symtab, find_pc_sect_psymtab)
3527 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3528 (find_last_source_symtab_from_partial)
3529 (forget_cached_source_info_partial)
3530 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3531 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3532 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3533 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3534 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3535 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3536 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3537 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3538 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3540 * mipsread.c (ecoff_sym_fns): Update.
3541 * machoread.c (macho_sym_fns): Update.
3542 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3543 (read_psyms): New function.
3544 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3545 (elf_sym_fns_lazy_psyms): New global.
3546 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3547 dwarf2_build_psymtabs.
3548 * dbxread.c (aout_sym_fns): Update.
3549 * coffread.c (coff_sym_fns): Update.
3551 2011-03-07 Tom Tromey <tromey@redhat.com>
3553 * infrun.c (print_exited_reason): Include inferior id and pid in
3556 2011-03-07 Tom Tromey <tromey@redhat.com>
3558 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3560 (target_has_execution_1): Update.
3561 (target_has_execution_current): Declare.
3562 (target_has_execution): Call target_has_execution_current.
3563 (default_child_has_execution): Update.
3564 * target.c (default_child_has_execution): Add 'the_ptid'
3566 (target_has_execution_1): Likewise.
3567 (target_has_execution_current): New function.
3568 (add_target): Update.
3569 (init_dummy_target): Update.
3570 * remote-m32r-sdi.c (m32r_has_execution): New function.
3571 (init_m32r_ops): Use it.
3572 * record.c (record_core_has_execution): Now static. Add
3573 'the_ptid' parameter.
3574 * inferior.c (have_live_inferiors): Don't save current thread.
3575 Use target_has_execution_1.
3577 2011-03-07 Yao Qi <yao@codesourcery.com>
3579 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3581 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3583 * elfread.c (elf_symtab_read): Minor reformatting.
3585 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3587 * objc-lang.c (selectors_info): Minor reformatting.
3589 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3591 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3593 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3594 Michael Snyder <msnyder@vmware.com>
3596 * ada-valprint.c (ada_val_print_array): Move the declaration of
3597 "byte_order" and "elttype" inside the block where these variables
3598 are actually used. Remove some special handling for the case
3599 where "elttype" and "eltlen" are null. Replace by a comment
3600 and a couple of assertion checks.
3602 2011-03-05 Michael Snyder <msnyder@vmware.com>
3604 * source.c (add_path): Replace semicolon at end of block.
3605 * dwarf2expr.c (execute_stack_op): Ditto.
3607 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3609 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3610 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3611 (bfin-*-*): Likewise.
3613 2011-03-05 Michael Snyder <msnyder@vmware.com>
3615 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3616 * mdebugread.c (parse_symbol): Ditto.
3617 * parse.c (parse_exp_in_context): Ditto.
3618 * source.c (add_path): Ditto.
3619 * utils.c (gnu_debuglink_crc32): Ditto.
3620 * varobj.c (variable_language): Ditto.
3622 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3624 2011-03-04 Michael Snyder <msnyder@vmware.com>
3626 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3628 * symfile.c (simple_overlay_update): Check for null return value
3629 from lookup_minimal_symbol.
3631 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3633 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3635 * eval.c (parse_and_eval_address_1): Remove function.
3636 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3637 instead of parse_and_eval_address_1.
3638 * value.h (parse_and_eval_address_1): Remove prototype.
3640 2011-03-04 Michael Snyder <msnyder@vmware.com>
3642 * remote.c (putpkt_binary): Document that case stmt falls through.
3644 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3646 * breakpointc (print_it_typical): Move NULL check from here...
3647 (print_bp_stop_message): ... to here.
3649 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3651 * breakpoint.c (enable_command): Use break instead of continue,
3652 and fill in a missing break.
3653 (disable_command): Ditto.
3655 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3657 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3658 (terminal_save_ours): Remove misleading comment.
3659 (inflow_inferior_data_cleanup): Free ttystate.
3660 (inflow_inferior_exit): Likewise.
3661 (copy_terminal_info): Copy ttystate.
3663 * serial.c (serial_copy_tty_state): New function.
3664 * serial.h (serial_copy_tty_state): Add prototype.
3665 (struct serial_ops): Add copy_tty_state callback.
3666 * ser-base.c (ser_base_copy_tty_state): New function.
3667 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3668 * ser-go32.c (dos_copy_tty_state): New function.
3669 (dos_ops): Install copy_tty_state callback.
3670 * ser-mingw.c (_initialize_ser_windows): Likewise.
3671 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3672 * ser-unix.c (hardwire_copy_tty_state): New function.
3673 (_initialize_ser_hardwire): Install it.
3675 2011-03-04 Michael Snyder <msnyder@vmware.com>
3677 * breakpoint.c (create_breakpoint): Add missing break statement.
3679 Reverting this patch:
3680 * infcall.c (call_function_by_hand): Add break statements for lint.
3682 Reverting this patch:
3683 * cli/cli-script.c (script_from_file): Add break for lint.
3685 2011-03-04 Michael Snyder <msnyder@vmware.com>
3687 * solib.c (reload_shared_libraries_1): Close memory leak.
3689 2011-03-03 Tom Tromey <tromey@redhat.com>
3692 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3695 2011-03-03 Michael Snyder <msnyder@vmware.com>
3697 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3698 fields of struct 'st' to zero.
3700 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3701 sal.pspace before calling set_current_source_symtab_and_line.
3703 2011-03-03 Yao Qi <yao@codesourcery.com>
3705 * Makefile.in (configure-common): Remove. Let Makefile
3706 in dir common to rebuild itself.
3707 (common/Makefile): Likewise.
3709 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3711 * utils.c (parse_escape): Add i18n markup in error message.
3713 2011-03-03 Yao Qi <yao@codesourcery.com>
3715 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3717 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3718 (displaced_write_reg, displaced_read_reg): Likewise.
3719 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3720 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3721 (cleanup_branch): Replace magic number 14 and 15 with
3722 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3724 2011-03-02 Michael Snyder <msnyder@vmware.com>
3726 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3728 * cli/cli-script.c (script_from_file): Add break for lint.
3730 * mdebugread.c (parse_partial_symbols): Fix indent.
3732 * target-descriptions.c (tdesc_gdb_type): No need to call
3733 xstrdup, callee saves a copy.
3735 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3737 * infcall.c (call_function_by_hand): Add break statements for lint.
3739 * utils.c (parse_escape): Escape the escape char.
3741 * python/py-inferior.c (build_inferior_list): Error out if
3742 PyList_Append fails.
3743 (gdbpy_inferiors): Error out if build_inferior_list fails.
3745 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3748 * record.c (record_restore): Move printf to before error return.
3750 2011-03-02 Yao Qi <yao@codesourcery.com>
3752 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3753 is_thumb and insn_size.
3754 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3755 on both ARM and Thumb mode.
3756 (arm_process_displaced_insn): Set is_thumb and insn_size.
3757 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3758 (arm_displaced_step_fixup): Likewise.
3760 2011-03-01 Michael Snyder <msnyder@vmware.com>
3762 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3764 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3766 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3768 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3770 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3773 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3774 which shadows function parameter.
3776 * tracepoint.c (create_tsv_from_upload): Superfluous call
3777 to xstrdup. Callee already calls xstrdup.
3779 * linespec.c (decode_line_1): Remove unnecessary null check.
3781 * tracepoint.c (scope_info): Fix mem leak, remove underused
3784 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3785 superfluous null check.
3787 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3788 (value_of_builtin_frame_fp_reg): Ditto.
3790 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3792 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3795 * linespec.c (decode_line_1): Check for null before dereference.
3797 * reverse.c (record_restore): Move null-check to before pointer
3800 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3802 * objc-lang.c (selectors_info): Add explanitory comment.
3803 (classes_info): Ditto.
3805 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3807 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3808 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3809 versions of the trampoline. Handle Thumb vs. ARM addresses.
3810 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3811 (arm_linux_init_abi): Install it.
3812 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3813 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3815 2011-02-28 Michael Snyder <msnyder@vmware.com>
3817 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3818 a little bigger, to avoid possibility of an overflow.
3820 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3821 buffers a little bigger, to avoid possibility of an overflow.
3823 * coffread.c (coff_getfilename): Add check to avoid overflow.
3825 * objc-lang.c (selectors_info): Add a small safety margin to
3827 (classes_info): Error out on too long REGEXP.
3829 * infrun.c (handle_inferior_event): Remove unused function call.
3831 * fork-child.c (fork_inferior): Remove ifdef'd code and
3834 * linux-thread-db.c (attach_thread): Discard unused value.
3836 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3838 * remote.c (remote_get_noisy_reply): Discard unused value.
3839 (remote_vcont_resume): Ditto.
3840 (remote_stop_ns): Ditto.
3842 * linespec.c (decode_objc): Delete unused variable.
3844 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3846 * dwarf2read.c (add_partial_symbol): Discard unused values.
3847 (read_base_type): Delete unused variable.
3849 * dbxread.c (read_dbx_symtab): Discard unused value.
3851 * eval.c (evaluate_subexp_standard): Delete unused variable,
3852 and discard unused values.
3854 * infcmd.c (_initialize_infcmd): Discard unused values.
3856 * stabsread.c (rs6000_builtin_type): Missing break statement.
3858 * dbxread.c (process_one_symbol): Discard unused value.
3860 * coffread.c (coff_end_symtab): Delete unused variable.
3862 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3863 (dwarf2_add_typedef): Delete unused variable.
3864 (read_namespace): Ditto.
3865 (dwarf_decode_macros): Ditto.
3867 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3869 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3871 * p-valprint.c (pascal_val_print): Discard unused value.
3873 * utils.c (nquery): Call va_end before return;
3877 * proc-service.c (ps_plog): Call va_end before return.
3879 2011-02-28 Tom Tromey <tromey@redhat.com>
3881 * python/python.c (gdbpy_value_cst): New global.
3882 (_initialize_python): Initialize it.
3883 * python/python-internal.h (gdbpy_value_cst): Declare.
3884 * python/py-value.c (convert_value_from_python): Use
3887 2011-02-28 Michael Snyder <msnyder@vmware.com>
3889 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3891 * breakpoint.c (catch_syscall_completer): Free malloced list.
3893 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3895 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3896 (lval_func_check_synthetic_pointer): Ditto.
3897 (lval_func_free_closure): Fix use-after-free.
3899 2011-02-28 Tom Tromey <tromey@redhat.com>
3901 * psymtab.c (expand_partial_symbol_tables): Use
3902 ALL_OBJFILE_PSYMTABS.
3904 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3906 * objc-lang.c (selectors_info): Error on too long REGEXP.
3908 2011-02-28 Michael Snyder <msnyder@vmware.com>
3910 * python/py-param.c (set_parameter_value): Add missing
3913 * linux-record.c (record_linux_system_call): Add missing
3916 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3918 * breakpoint.c (print_one_breakpoint_location): Remove unused
3919 argument PRINT_ADDRESS_BITS. Update callers.
3920 (print_one_breakpoint): Likewise.
3922 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3924 * breakpoint.c (wrap_indent_at_field): New function.
3925 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3926 Allocate ui_stream locally instead of using STB argument.
3927 (print_one_breakpoint_location): Update call.
3928 * ui-out.c (ui_out_query_field): New function.
3929 * ui-out.h (ui_out_query_field): Add prototype.
3931 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3933 From Michael Snyder <msnyder@vmware.com>
3934 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3936 2011-02-27 Michael Snyder <msnyder@vmware.com>
3938 * objc-lang.c (selectors_info): Prevent string overrun.
3940 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3943 * symtab.c (rbreak_command): Move variable 'file_name' to
3946 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3947 param with a local variable of the same name.
3949 2011-02-27 Michael Snyder <msnyder@vmware.com>
3951 * value.c (value_from_history_ref): New function.
3952 * value.h (value_from_history_ref): Export.
3953 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3954 to parse value history references.
3955 * cli/cli-utils.h (get_number_trailer): Update comment.
3957 2011-02-27 Michael Snyder <msnyder@vmware.com>
3959 * inferior.c (detach_inferior_command): Use get_number_or_range.
3960 (kill_inferior_command): Ditto.
3961 (remove_inferior_command): Ditto.
3962 (initialize_inferiors): Make command names plural.
3963 Update help strings.
3965 2011-02-27 Michael Snyder <msnyder@vmware.com>
3967 * darwin-nat-info.c: Fix comment typo.
3968 * dwarf2expr.h: Ditto.
3969 * fbsd-nat.c: Ditto.
3970 * fbsd-nat.h: Ditto.
3971 * frame-unwind.h: Ditto.
3973 * hppa-hpux-tdep.c: Ditto.
3974 * i386-linux-nat.c: Ditto.
3975 * linux-nat.c: Ditto.
3976 * nbsd-nat.c: Ditto.
3977 * nbsd-nat.h: Ditto.
3978 * ppc-linux-tdep.c: Ditto.
3981 * tui/tui-winsource.c: Ditto.
3983 2011-02-26 Michael Snyder <msnyder@vmware.com>
3985 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3987 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3989 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3990 with a local variable of the same name.
3992 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3993 param with a local variable of the same name.
3994 (i387_supply_xsave): Ditto.
3996 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3997 that it does not shadow a function parameter.
3999 * i386-nat.c (i386_length_and_rw_bits): Document that case
4000 statement is meant to fall through.
4002 * expprint.c (dump_subexp_body_standard): Document that case
4003 statement is meant to fall through.
4005 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4006 dead if statement. Condition can't be false.
4008 2011-02-25 Michael Snyder <msnyder@vmware.com>
4010 * arm-tdep.c: Fix typos in comments.
4011 * bsd-uthread.c: Ditto.
4012 * completer.c: Ditto.
4014 * cp-namespace.c: Ditto.
4015 * cp-support.c: Ditto.
4016 * cris-tdep.c: Ditto.
4018 * dwarf2read.c: Ditto.
4020 * gdbtypes.h: Ditto.
4021 * inferior.h: Ditto.
4022 * mdebugread.c: Ditto.
4023 * mips-tdep.c: Ditto.
4024 * ppc-linux-nat.c: Ditto.
4025 * ppc-linux-tdep.c: Ditto.
4026 * printcmd.c: Ditto.
4027 * sol-thread.c: Ditto.
4028 * solib-frv.c: Ditto.
4030 * sparc64-tdep.c: Ditto.
4031 * spu-tdep.c: Ditto.
4032 * stabsread.c: Ditto.
4037 * python/py-block.c: Ditto.
4038 * python/py-symbol.c: Ditto.
4039 * python/py-symtab.c: Ditto.
4040 * python/py-value.c: Ditto.
4041 * tui/tui-win.c: Ditto.
4043 2011-02-25 Michael Snyder <msnyder@vmware.com>
4045 * inferior.c (print_inferior): Accept a string instead of an int
4046 for requested_inferiors, and use get_number_or_range to parse it.
4047 (info_inferiors_command): Pass args string to print_inferior.
4048 (initialize_inferiors): Change help string for info inferiors.
4049 * inferior.h (print_inferior): Export prototype change.
4051 2011-02-25 Tom Tromey <tromey@redhat.com>
4053 * common/ax.def (invalid2): Set to 0x31.
4055 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4057 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4059 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4061 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4063 2011-02-24 Michael Snyder <msnyder@vmware.com>
4065 * Makefile.in (clean): Make clean should remove generated files
4066 observer.h and observer.inc.
4068 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4070 Revert the following patch (not approved yet):
4071 2011-02-21 Hui Zhu <teawater@gmail.com>
4072 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4073 * ax-gdb.c (gen_printf_expr_callback): New function.
4074 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4075 * ax-general.c (ax_memcpy): New function.
4076 (ax_print): Handle "printf".
4078 * ax.h (ax_memcpy): Forward declare.
4079 * common/ax.def (invalid2): Removed.
4080 (printf): New entry.
4081 * printcmd.c (printcmd.h): New include.
4082 (string_printf): New function.
4083 (ui_printf): Removed.
4084 (printf_command): Remove static. Call string_printf.
4085 (eval_command): Call string_printf.
4086 * printcmd.h: New file.
4087 * tracepoint.c (validate_actionline,
4088 encode_actions_1): handle printf_command.
4090 2011-02-23 Tom Tromey <tromey@redhat.com>
4092 * ax-general.c (ax_pick): Add missing newline.
4094 2011-02-23 Michael Snyder <msnyder@vmware.com>
4096 * breakpoint.c (breakpoint_1): Change first argument from an int
4097 to a char pointer, so that the function now accepts a list of
4098 breakpoints rather than just one. Use new function
4099 'number_is_in_list' to implement.
4100 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4101 (watchpoints_info): Ditto.
4102 (tracepoints_info): Ditto.
4103 (maintenance_info_breakpoints): Ditto.
4104 (_initialize_breakpoint): Update help strings to reflect the fact
4105 that these functions can now take more than one argument.
4106 * cli/cli-utils.c (number_is_in_list): New function.
4107 * cli/cli-utils.h (number_is_in_list): Export.
4109 2011-02-23 Michael Snyder <msnyder@vmware.com>
4111 * memattr.c (mem_enable_command): Use get_number_or_range.
4112 (mem_disable_command): Ditto.
4113 (mem_delete_command): Ditto.
4114 (_initialize_mem): Tweak usage message to reflect multiple
4117 2011-02-22 Doug Evans <dje@google.com>
4119 Add gdb.lookup_global_symbol python function.
4121 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4122 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4123 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4125 2011-02-22 Tom Tromey <tromey@redhat.com>
4127 * language.c (language_class_name_from_physname): Rename
4128 'curr_language' argument to 'lang'; use in body.
4130 2011-02-22 Michael Snyder <msnyder@vmware.com>
4132 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4134 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4136 * frame-unwind.h: Fix comment to mention the this frame, not the
4139 2011-02-22 Tom Tromey <tromey@redhat.com>
4141 * symfile.c (auto_solib_limit): Remove.
4142 * symfile.h (auto_solib_limit): Remove.
4144 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4146 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4148 2011-02-21 Michael Snyder <msnyder@vmware.com>
4150 * gdbthread.h (print_thread_info): Change prototype.
4151 * thread.c (print_thread_info): Accept char* instead of int for
4152 requested_threads argument. Use new function number_is_in_list
4153 to determine which threads to list.
4154 (info_threads_command): Pass char* to print_thread_info.
4155 * cli/cli-utils.c (number_is_in_list): New function.
4156 * cli/cli-utils.h (number_is_in_list): Export.
4157 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4159 (print_one_inferior): Ditto.
4160 (mi_cmd_list_thread_groups): Ditto.
4162 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4164 * common/Makefile.in (CFLAGS): New.
4165 (COMPILE): Add $(CFLAGS).
4167 2011-02-21 Tom Tromey <tromey@redhat.com>
4169 * breakpoint.c (catch_syscall_command_1): Fix typo.
4171 2011-02-21 Tom Tromey <tromey@redhat.com>
4173 * reverse.c: Include cli-utils.h.
4174 * printcmd.c: Include cli-utils.h.
4175 (string_printf): Use skip_spaces.
4176 * cli/cli-utils.h: New file.
4177 * cli/cli-utils.c: New file.
4178 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4179 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4180 * breakpoint.h (get_number, get_number_or_range): Move to
4182 * breakpoint.c: Include cli-utils.h.
4183 (get_number_trailer, get_number, get_number_or_range)
4184 (ep_skip_leading_whitespace): Move to cli-utils.c.
4185 (create_breakpoint_sal, find_condition_and_thread)
4186 (decode_static_tracepoint_spec, watch_command_1)
4187 (watch_maybe_just_location, ep_parse_optional_if_clause)
4188 (catch_fork_command_1, catch_exec_command_1)
4189 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4190 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4191 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4192 (HFILES_NO_SRCDIR): Add cli-utils.h.
4193 (cli-utils.o): New target.
4195 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4197 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4198 before calling discard_all_inferiors.
4200 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4202 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4203 (struct builtin_opencl_type): Remove.
4204 (builtin_opencl_type): Change return type to "struct type **".
4205 (lookup_opencl_vector_type): Update caller.
4206 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4207 (build_opencl_types): Install plain array of "struct type *"
4208 instead of "struct builtin_opencl_type".
4210 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4211 Ulrich Weigand <uweigand@de.ibm.com>
4213 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4214 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4215 (struct arm_linux_hwbp_cap): New type.
4216 (arm_linux_get_hwbp_cap): New function.
4217 (arm_linux_get_hw_breakpoint_count): Likewise.
4218 (arm_linux_get_hw_watchpoint_count): Likewise.
4219 (arm_linux_can_use_hw_breakpoint): Likewise.
4220 (arm_hwbp_type): New type.
4221 (arm_hwbp_control_t): Likewise.
4222 (struct arm_linux_hw_breakpoint): Likewise.
4223 (struct arm_linux_thread_points): Likewise.
4224 (arm_threads): New global variable.
4225 (arm_linux_find_breakpoints_by_tid): New function.
4226 (arm_hwbp_control_initialize): Likewise.
4227 (arm_hwbp_control_is_enabled): Likewise.
4228 (arm_hwbp_control_disable): Likewise.
4229 (arm_linux_hw_breakpoint_initialize): Likewise.
4230 (arm_linux_get_hwbp_type): Likewise.
4231 (arm_linux_hw_watchpoint_initialize): Likewise.
4232 (arm_linux_hw_breakpoint_equal): Likewise.
4233 (arm_linux_insert_hw_breakpoint1): Likewise.
4234 (arm_linux_remove_hw_breakpoint1): Likewise.
4235 (arm_linux_insert_hw_breakpoint): Likewise.
4236 (arm_linux_remove_hw_breakpoint): Likewise.
4237 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4238 (arm_linux_insert_watchpoint): Likewise.
4239 (arm_linux_remove_watchpoint): Likewise.
4240 (arm_linux_stopped_data_address): Likewise.
4241 (arm_linux_stopped_by_watchpoint): Likewise.
4242 (arm_linux_watchpoint_addr_within_range): Likewise.
4243 (arm_linux_new_thread): Likewise.
4244 (arm_linux_thread_exit): Likewise.
4245 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4246 related target callbacks. Register arm_linux_new_thread and
4247 arm_linux_thread_exit.
4248 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4249 * arm-tdep.c (arm_pc_is_thumb): Make global.
4250 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4252 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4254 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4255 per-frame locations while within a function epilogue.
4257 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4259 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4260 to GNU coding standards.
4262 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4264 Allow use of mingw native on Windows 95 OS.
4265 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4266 (ser_windows_close): Only call CancelIo if function exists.
4267 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4268 to check for existence of CancelIo function in kernel32 DLL.
4270 2011-02-21 Hui Zhu <teawater@gmail.com>
4272 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4273 * ax-gdb.c (gen_printf_expr_callback): New function.
4274 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4275 * ax-general.c (ax_memcpy): New function.
4276 (ax_print): Handle "printf".
4278 * ax.h (ax_memcpy): Forward declare.
4279 * common/ax.def (invalid2): Removed.
4280 (printf): New entry.
4281 * printcmd.c (printcmd.h): New include.
4282 (string_printf): New function.
4283 (ui_printf): Removed.
4284 (printf_command): Remove static. Call string_printf.
4285 (eval_command): Call string_printf.
4286 * printcmd.h: New file.
4287 * tracepoint.c (validate_actionline,
4288 encode_actions_1): handle printf_command.
4290 2011-02-19 Michael Snyder <msnyder@vmware.com>
4292 * reverse.c (delete_one_bookmark): Argument is now bookmark
4293 id rather than pointer to bookmark struct.
4294 (delete_bookmark_command): Use get_number_or_range.
4295 (goto_bookmark_command): Parse with get_number instead of strtoul.
4296 (bookmark_1): New function. Print info for one bookmark.
4297 (bookmarks_info): Use get_number_or_range and bookmark_1.
4299 2011-02-18 Michael Snyder <msnyder@vmware.com>
4301 * thread.c (info_threads_command): Re-implement using
4302 get_number_or_range.
4303 (thread_apply_command): Ditto.
4305 2011-02-18 Tom Tromey <tromey@redhat.com>
4307 * common/ax.def: New file.
4308 * ax.h (enum agent_op): Use ax.def.
4309 * ax-general.c (aop_map): Use ax.def.
4311 2011-02-18 Tom Tromey <tromey@redhat.com>
4313 * ax-general.c (aop_map): Add pick and rot.
4314 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4315 <DW_OP_rot>: Implement.
4316 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4318 * ax-general.c (ax_pick): New function.
4320 2011-02-18 Tom Tromey <tromey@redhat.com>
4322 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4324 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4325 Tom Tromey <tromey@redhat.com>
4327 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4328 make_symbol_overload_list_block with NULL BLOCK.
4329 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4331 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4333 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4334 * breakpoint.h (get_number_or_range): Declare.
4335 * printcmd.c (ALL_DISPLAYS): Declare.
4336 (delete_display): Reimplement taking a display pointer.
4337 (undisplay_command): Accept a range of displays to delete, using
4338 get_number_or_range.
4340 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4342 * c-valprint.c (c_val_print): Add embedded_offset to address
4343 for arrays of unspecified length.
4344 * p-valprint.c (pascal_val_print): Likewise.
4346 2011-02-18 Yao Qi <yao@codesourcery.com>
4348 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4349 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4350 (thumb_process_displaced_insn): New.
4351 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4352 call to arm_process_displaced_insn.
4353 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4355 2011-02-17 Tom Tromey <tromey@redhat.com>
4357 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4358 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4359 compile_dwarf_to_ax. No longer static. Call
4360 dwarf2_compile_cfa_to_ax.
4361 (locexpr_tracepoint_var_ref): Update.
4362 (loclist_tracepoint_var_ref): Update.
4363 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4364 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4365 argument; add 'gdbarch' and 'pc'.
4366 (dwarf2_compile_cfa_to_ax): New function.
4367 (dwarf2_frame_cache): Update.
4369 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4371 * ada-lang.c (ada_type_of_array): Fix the size of the array
4372 in the case of an unconstrained packed array.
4374 2011-02-17 Yao Qi <yao@codesourcery.com>
4376 * common/Makefile.in: Add more targets for make.
4378 2011-02-16 Tom Tromey <tromey@redhat.com>
4380 * dwarf2loc.c (unimplemented): Fix typo.
4382 2011-02-16 Tom Tromey <tromey@redhat.com>
4384 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4385 (compile_dwarf_to_ax) <default>: Use unimplemented.
4386 <DW_OP_deref>: Update.
4387 (disassemble_dwarf_expression): Update.
4388 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4389 (decode_locdesc): Update.
4390 * dwarf2expr.h (dwarf_stack_op_name): Update.
4392 2011-02-16 Tom Tromey <tromey@redhat.com>
4394 * ax.h (struct aop_map) <name>: Now const.
4396 2011-02-16 Tom Tromey <tromey@redhat.com>
4398 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4401 2011-02-16 Yao Qi <yao@codesourcery.com>
4403 * infrun.c (get_displaced_step_closure_by_addr): New.
4404 * inferior.h: Declare it.
4405 * arm-tdep.c: (arm_pc_is_thumb): Call
4406 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4409 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4410 Jan Kratochvil <jan.kratochvil@redhat.com>
4413 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4415 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4416 Jan Kratochvil <jan.kratochvil@redhat.com>
4418 * value.c (value_contents_copy_raw): Extend describing comment.
4419 Assert that the destination contents we're overwriting are wholly
4421 (value_contents_copy): Extend describing comment.
4423 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4424 Jan Kratochvil <jan.kratochvil@redhat.com>
4426 * value.c (value_available_contents_eq): Remove redundant local
4427 variables. Fix available contents comparision.
4428 * value.h (value_available_contents_eq): Extend describing
4431 2011-02-16 Yao Qi <yao@codesourcery.com>
4433 * thread.c (info_threads_command): Add missing i18n markup and remove
4436 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4438 * breakpoint.c (longjmp_names): New variable.
4439 (struct breakpoint_objfile_data): New type.
4440 (breakpoint_objfile_key): New variable.
4441 (msym_not_found): New variable.
4442 (msym_not_found_p): New predicate.
4443 (get_breakpoint_objfile_data): New function.
4444 (create_overlay_event_breakpoint): Check per-objfile cache for
4446 (create_longjmp_master_breakpoint): Likewise.
4447 (create_std_terminate_master_breakpoint): Likewise.
4448 (create_exception_master_breakpoint): Likewise.
4449 (_initialize_breakpoint): Register per-objfile data key.
4451 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4453 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4455 (create_longjmp_master_breakpoint): Loop over longjmp names.
4456 (create_std_terminate_master_breakpoint): Const-propagate parameter
4458 (update_breakpoints_after_exec): Adjust.
4459 (breakpoint_re_set): Adjust.
4461 2011-02-15 Michael Snyder <msnyder@vmware.com>
4463 * thread.c (info_threads_command): Process arg as thread id,
4464 or list of thread ids.
4465 (thread_find_command): New command.
4466 (_initialize_thread): Document argument for info threads.
4467 Document 'thread find' command.
4468 * NEWS: Document new command "thread find".
4470 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4472 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4473 * aclocal.m4: Regenerated with aclocal-1.11.1.
4474 * common/configure: Regenerate with autoconf-2.64.
4476 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4478 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4479 bool data type to a size of one byte.
4481 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4482 Jan Kratochvil <jan.kratochvil@redhat.com>
4484 * target.c (memory_xfer_live_readonly_partial): Document where to
4485 look for interface description.
4487 2011-02-15 Yao Qi <yao@codesourcery.com>
4490 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4491 order to store PC value on stack instead of text section.
4493 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4495 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4496 the EFP register set size.
4497 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4498 data from the VMX register.
4499 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4500 and write data from/to the VMX register.
4502 2011-02-14 Michael Snyder <msnyder@vmware.com>
4504 * command.h (enum command_class): New class 'no_set_class', for
4505 "show" commands without a corresponding "set" command.
4506 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4507 * copying.c (_initialize_copying): Ditto for "show copying" and
4509 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4511 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4512 which there is no corresponding "set" command (eg. "show copying").
4514 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4515 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 * exec.c (section_table_available_memory): Change `len' parameter
4519 * exec.h (section_table_available_memory): Ditto.
4520 * value.h (read_value_memory): Rename the `offset' parameter to
4523 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4524 Jan Kratochvil <jan.kratochvil@redhat.com>
4526 * memrange.c (compare_mem_ranges): Mention sort order in
4528 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4529 * tracepoint.c (traceframe_available_memory): Extend comment to
4530 mention what happens to RESULT when the target does not support
4533 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4534 Jan Kratochvil <jan.kratochvil@redhat.com>
4536 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4539 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4541 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4542 No longer handle NULL values.
4544 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4546 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4547 * value.c: Include "exceptions.h".
4548 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4550 * cp-abi.c: Include gdb_assert.h.
4551 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4552 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4554 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4555 parameters. No longer returns -1 on error.
4556 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4558 * cp-valprint.c: Include exceptions.h.
4559 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4560 the baseclass_offset. Handle unavailable base classes. Use
4561 val_print_invalid_address.
4562 * p-valprint.c: Include exceptions.h.
4563 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4564 when fetching the baseclass_offset. No longer expect
4565 baseclass_offset returning -1. Handle unavailable base classes.
4566 Use val_print_invalid_address.
4567 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4568 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4569 `embedded_offset' and `val' parameters. Adjust.
4570 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4571 parameter, and change its type to gdb_byte pointer. Add
4572 `embedded_offset' and `val' parameters. Adjust. No longer expect
4573 baseclass_offset returning -1.
4574 (value_dynamic_cast): Use value_contents_for_printing rather than
4575 value_contents. Adjust.
4576 (search_struct_field): No longer expect baseclass_offset returning
4578 (search_struct_method): If reading memory from the target is
4579 necessary, wrap it in a new value to pass to baseclass_offset. No
4580 longer expect baseclass_offset returning -1.
4581 (find_method_list): No longer expect baseclass_offset returning
4582 -1. Use value_contents_for_printing rather than value_contents.
4583 * valprint.c (val_print_invalid_address): New function.
4584 * valprint.h (val_print_invalid_address): Declare.
4585 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4586 and `val' parameters. No longer expect baseclass_offset returning
4588 * gnu-v2-abi.c: Include "exceptions.h".
4589 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4590 parameters. Handle unavailable memory. Recurse through
4591 gnuv2_baseclass_offset directly, rather than through
4592 baseclass_offset. No longer returns -1 on not found, instead
4594 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4595 `val' parameters. Adjust.
4597 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4599 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4600 almost but not quite adjacent.
4602 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4604 * value.h (value_entirely_available): Declare.
4605 * value.c (value_entirely_available): New function.
4606 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4607 real type if the pointer is unavailable.
4609 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4611 * valops.c (value_repeat): Use read_value_memory instead of
4614 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4616 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4617 * value.c (value_contents_copy_raw, value_contents_copy): New
4619 (value_primitive_field): Use value_contents_copy_raw instead of
4621 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4623 (value_array, value_slice): Ditto.
4624 * valarith.c (value_subscripted_rvalue): Use
4625 value_contents_copy_raw instead of memcpy.
4627 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4629 <unavailable> references.
4631 * valops.c (get_value_at): Use value_from_contents_and_address,
4632 avoiding read_memory.
4634 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4636 * c-valprint.c (c_val_print): Print a string with unavailable
4637 contents as an array.
4639 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4641 * value.h (unpack_bits_as_long): Delete declaration.
4642 (unpack_value_bits_as_long): Declare.
4643 (unpack_value_field_as_long): Declare.
4644 (value_field_bitfield): Declare.
4645 * value.c (unpack_bits_as_long): Rename to...
4646 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4647 value parameters. Return the extracted result in a new output
4648 parameter. If the value contents are unavailable, return false,
4649 otherwise return true.
4650 (unpack_value_bits_as_long): New.
4651 (unpack_field_as_long): Rename to...
4652 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4653 Add embedded_offset and value parameters. Return the extracted
4654 result in a new output parameter. If the value contents are
4655 unavailable, return false, otherwise return true.
4656 (unpack_value_field_as_long): New.
4657 (unpack_field_as_long_1): New.
4658 (unpack_field_as_long): Reimplement as wrapper around
4659 unpack_value_field_as_long_1.
4660 (value_field_bitfield): New function.
4661 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4662 unpack_value_bits_as_long. Mark the value as unavailable, if it
4664 * jv-valprint.c (java_print_value_fields): Use
4665 value_field_bitfield.
4666 * p-valprint.c (pascal_object_print_value_fields): Use
4667 value_field_bitfield.
4668 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4670 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4672 * value.c (get_internalvar_integer): Also return the int value of
4673 TYPE_CODE_INT INTERNALVAR_VALUE values.
4674 (set_internalvar): Don't special case TYPE_CODE_INT.
4676 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4678 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4679 INTERNALVAR_POINTER.
4681 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4682 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4683 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4685 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4687 * value.h (value_available_contents_eq): Declare.
4688 * value.c (find_first_range_overlap): New function.
4689 (value_available_contents_eq): New function.
4690 * valprint.c (val_print_array_elements): Use
4691 value_available_contents_eq.
4692 * ada-valprint.c (val_print_packed_array_elements): Use
4693 value_available_contents_eq.
4694 * jv-valprint.c (java_value_print): Use
4695 value_available_contents_eq.
4697 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4699 * target.c (target_read_live_memory): New function.
4700 (memory_xfer_live_readonly_partial): New.
4701 (memory_xfer_partial): If reading from a traceframe, fallback to
4702 reading unavailable read-only memory from read-only regions of
4704 * tracepoint.c (disconnect_tracing): Adjust.
4705 (set_current_traceframe): New, factored out from
4706 set_traceframe_number.
4707 (set_traceframe_number): Reimplement to only change the traceframe
4708 number on the GDB side.
4709 (do_restore_current_traceframe_cleanup): Adjust.
4710 (make_cleanup_restore_traceframe_number): New.
4711 (cur_traceframe_number): New global.
4712 (tfile_open): Set cur_traceframe_number to no traceframe.
4713 (set_tfile_traceframe): New function.
4714 (tfile_trace_find): If looking up a traceframe using any method
4715 other than by number, make sure the current tfile traceframe
4716 matches gdb's current traceframe. Update the current tfile
4717 traceframe if the lookup succeeded.
4718 (tfile_fetch_registers, tfile_xfer_partial)
4719 (tfile_get_trace_state_variable_value): Make sure the remote
4720 traceframe matches gdb's current traceframe.
4721 * remote.c (remote_traceframe_number): New global.
4722 (remote_open_1): Set it to -1.
4723 (set_remote_traceframe): New function.
4724 (remote_fetch_registers, remote_store_registers)
4725 (remote_xfer_memory, remote_xfer_partial)
4726 (remote_get_trace_state_variable_value): Make sure the remote
4727 traceframe matches gdb's current traceframe.
4728 (remote_trace_find): If looking up a traceframe using any method
4729 other than by number, make sure the current remote traceframe
4730 matches gdb's current traceframe. Update the current remote
4731 traceframe if the lookup succeeded.
4732 * infrun.c (fetch_inferior_event): Adjust.
4733 * tracepoint.h (set_current_traceframe): Declare.
4734 (get_traceframe_number, set_traceframe_number): Add describing
4737 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4739 Mark pieces of values as unavailable if the corresponding memory
4742 * valops.c: Include tracepoint.h.
4743 (value_fetch_lazy): Use read_value_memory.
4744 (read_value_memory): New.
4745 * value.h (read_value_memory): Declare.
4746 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4747 * exec.c (section_table_available_memory): New function.
4748 * exec.h (section_table_available_memory): Declare.
4750 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4752 * Makefile.in (SFILES): Add memrange.c.
4753 (HFILES_NO_SRCDIR): Add memrange.h.
4754 (COMMON_OBS): Add memrange.o.
4755 * memrange.c: New file.
4756 * memrange.h: New file.
4757 * tracepoint.c: Include memrange.h.
4758 (struct mem_range): Delete.
4759 (mem_range_s): Delete.
4760 (traceframe_available_memory): New function.
4761 * tracepoint.h (traceframe_available_memory): Declare.
4763 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4765 * target.h (struct traceframe_info): Forward declare.
4766 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4767 (struct target_ops) <to_traceframe_info>: New field.
4768 (target_traceframe_info): New.
4769 * target.c (update_current_target): Inherit and default
4771 * remote.c (PACKET_qXfer_traceframe_info): New.
4772 (remote_protocol_features): Register qXfer:traceframe-info:read.
4773 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4774 (remote_traceframe_info): New.
4775 (init_remote_ops): Install it.
4776 (_initialize_remote): Install "set/show remote traceframe-info"
4778 * tracepoint.h (parse_traceframe_info): Declare.
4779 * tracepoint.c (struct mem_range): New.
4780 (mem_range_s): New typedef.
4781 (struct traceframe_info): New.
4782 (traceframe_info): New global.
4783 (free_traceframe_info): New function.
4784 (clear_traceframe_info): New function.
4785 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4787 (build_traceframe_info): New function.
4788 (tfile_traceframe_info): New function.
4789 (init_tfile_ops): Install tfile_traceframe_info.
4790 (traceframe_info_start_memory, free_result): New functions.
4791 (memory_attributes, traceframe_info_elements): New globals.
4792 (parse_traceframe_info, get_traceframe_info): New functions.
4793 * features/traceframe-info.dtd: New file.
4794 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4796 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4798 Base support for <unavailable> value contents.
4800 * value.h (value_bytes_available): Declare.
4801 (mark_value_bytes_unavailable): Declare.
4802 * value.c (struct range): New struct.
4803 (range_s): New typedef.
4804 (ranges_overlap): New function.
4805 (range_lessthan): New function.
4806 (ranges_contain_p): New function.
4807 (struct value) <unavailable>: New field.
4808 (value_bytes_available): New function.
4809 (mark_value_bytes_unavailable): New function.
4810 (require_not_optimized_out): Constify parameter.
4811 (require_available): New function.
4812 (value_contents_all, value_contents): Require all bytes be
4814 (value_free): Free `unavailable'.
4815 (value_copy): Copy `unavailable'.
4816 * valprint.h (val_print_unavailable): Declare.
4817 * valprint.c (valprint_check_validity): Rename `offset' parameter
4818 to `embedded_offset'. If printing a scalar, check whether the
4819 value chunk is available.
4820 (val_print_unavailable): New.
4821 (val_print_scalar_formatted): Check whether the value is
4823 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4824 pretty-printing unavailable values.
4826 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4828 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4829 * c-typeprint.c (c_type_print_args): Update the function comment. New
4830 variable param_type, initialize it. Remove const/volatile qualifiers
4831 for language_cplus and !show_artificial. Use param_type.
4833 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4836 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4837 * symtab.h (struct symtab) <next>: Comment extension.
4839 2011-02-12 Yao Qi <yao@codesourcery.com>
4841 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4843 2011-02-11 Yao Qi <yao@codesourcery.com>
4845 * common/Makefile.in: Add copyright header.
4847 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4849 * infrun.c (proceed): Move switching out and in of tfind mode from
4851 (fetch_inferior_event): ... to here.
4853 2011-02-11 Yao Qi <yao@codesourcery.com>
4855 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4857 * configure.ac: Add common to sub dir.
4858 * configure: Regenerate.
4860 2011-02-11 Yao Qi <yao@codesourcery.com>
4864 * common/Makefile.in: New.
4865 * common/configure.ac: New.
4866 * common/aclocal.m4: New.
4867 * common/configure: Generate.
4869 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4871 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4872 side of the parenthesis.
4875 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4876 * vec.h (VEC_block_remove): Fix comment.
4878 2011-02-08 Michael Snyder <msnyder@vmware.com>
4880 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4882 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4884 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4885 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4888 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4891 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4893 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4894 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4896 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4898 * dwarf2read.c (read_subroutine_type): Set special calling
4899 convention flag for functions compiled by IBM XL C for OpenCL.
4900 * ppc-sysv-tdep.c: Include "dwarf2.h"
4901 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4903 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4904 IBM OpenCL vector types calling convention.
4905 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4906 (ppc_sysv_abi_broken_return_value): Likewise.
4907 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4908 types calling convention.
4909 (ppc64_sysv_abi_return_value): Likewise.
4910 * spu-tdep.c: Include "dwarf2.h"
4911 (spu_return_value): Implement IBM OpenCL vector types calling
4914 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4916 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4917 correct ABI for AltiVec vector arguments.
4919 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4921 * valprint.c (val_print): Extend comment.
4922 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4923 interface explanation to val_print.
4924 (ada_val_print_array): Adjust comment to current interface.
4925 (print_field_values): Adjust comment to current interface.
4926 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4927 explanation to val_print.
4928 * f-valprint.c (f_val_print): Ditto.
4929 * jv-valprint.c (java_val_print): Ditto.
4930 * m2-valprint.c (m2_val_print): Ditto.
4931 * p-valprint.c (pascal_val_print): Ditto.
4933 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4935 * breakpoint.c (parse_breakpoint_sals): Fix description.
4937 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4938 Oguz Kayral <oguzkayral@gmail.com>
4940 * python/py-inferior.c (python_on_normal_stop): New function.
4941 (python_on_resume): New function.
4942 (python_inferior_exit): New function.
4943 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4944 inferior_exit observers.
4945 * python/py-evtregistry.c: New file.
4946 * python/py-threadevent.c : New file.
4947 * python/py-event.c: New file.
4948 * python/py-evts.c: New file.
4949 * python/py-continueevent.c: New file.
4950 * python/py-bpevent.c: New file.
4951 * python/py-signalevent.c: New file.
4952 * python/py-exetiedevent.c: New file.
4953 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4954 Move struct breakpoint_object from here...
4955 * python/python-internal.h: ... to here.
4956 * python/py-event.h: New file.
4957 * python/py-events.h: New file.
4958 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4959 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4960 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4961 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4962 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4963 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4964 Add build rules for all the above.
4966 2011-02-04 Tom Tromey <tromey@redhat.com>
4968 * dwarf2read.c (dwarf2_section_empty_p): New function.
4969 (dwarf2_read_section): Use dwarf2_section_empty_p.
4970 (dwarf2_section_size): New function.
4971 (dwarf2_get_section_info): Unconditionally read section.
4972 (dwarf2_read_index): Use dwarf2_section_empty_p.
4973 (partial_read_comp_unit_head): Use dwarf2_section_size.
4974 (dwarf2_symbol_mark_computed): Likewise.
4976 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4978 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4980 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4982 * mips-linux-tdep.c: Include xml-syscall.h.
4983 (mips_linux_get_syscall_number): New function.
4984 (mips_linux_init_abi): Add calls to
4985 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4986 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4987 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4988 * syscalls/mips-n32-linux.xml: New file.
4989 * syscalls/mips-n64-linux.xml: New file.
4990 * syscalls/mips-o32-linux.xml: New file.
4992 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4994 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4995 Complain about inverted range entries.
4996 (dwarf2_record_block_ranges): Likewise.
4998 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5001 * breakpoint.c (update_watchpoint): Fix name of the
5002 update_global_location_list function.
5003 (print_one_breakpoint): Fix typo.
5004 (_initialize_breakpoint): Remove extra space in hbreak help
5006 * breakpoint.h (struct bp_location) <length>: Fix field
5009 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5011 * regcache.c (registers_changed_ptid): Don't explictly always
5012 clear `current_regcache'. Only clear current_thread_ptid and
5013 current_thread_arch when PTID matches. Only reinit the frame
5014 cache if PTID matches the current inferior_ptid. Move alloca(0)
5016 (registers_changed): ... here.
5018 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5020 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5021 starts with __stack_chk_guard as stack guard symbol.
5023 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5025 * disasm.c (compare_lines): Handle the end of sequence markers
5026 within the line table to better support disassembling over
5027 compilation unit boundaries.
5029 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5031 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5032 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5033 implementation even if no symbols are available.
5034 (thumb_analyze_prologue): Update call to skip_prologue_function.
5035 (arm_analyze_prologue): Likewise.
5037 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5039 * arm-tdep.c: Include "observer.h".
5040 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5041 (arm_exidx_data_key): New static variable.
5042 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5043 (struct arm_exidx_data): Likewise.
5044 (arm_exidx_data_free): New function.
5045 (arm_compare_exidx_entries): Likewise.
5046 (arm_obj_section_from_vma): Likewise.
5047 (arm_exidx_new_objfile): Likewise.
5048 (arm_find_exidx_entry): Likewise.
5049 (arm_exidx_fill_cache): Likewise.
5050 (arm_exidx_unwind_sniffer): Likewise.
5051 (arm_exidx_unwind): New global variable.
5052 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5053 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5054 observer. Register arm_exidx_data_key as objfile data.
5056 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5058 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5059 due to accessing uninitialized variable. Fix indentation.
5061 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5063 * c-valprint.c (c_value_print): When doing virtual base pointer
5064 adjustment, create a new value with adjusted contents rather than
5065 changing the contents of the value being printed (and getting it
5068 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5070 * xml-support.c (xml_find_attribute): New.
5071 (xinclude_start_include): Use it.
5072 * xml-support.h (xml_find_attribute): Declare.
5073 * memory-map.c (memory_map_start_memory)
5074 (memory_map_start_property): Use xml_find_attribute.
5075 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5077 * remote.c (start_thread): Use xml_find_attribute.
5078 * solib-target.c (library_list_start_segment)
5079 (library_list_start_section, library_list_start_library)
5080 (library_list_start_list): Use xml_find_attribute.
5081 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5082 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5083 (tdesc_start_field): Use xml_find_attribute.
5085 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5087 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5088 (BUILD_OCL_VTYPES): Update.
5090 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5092 * configure.ac: Work around non-GNU sed limitation when computing
5093 python version number.
5094 * configure: Regenerate.
5096 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5098 Fix debug printing of TYPE_INSTANCE.
5099 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5100 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5102 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5104 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5105 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5106 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5107 * ada-operator.inc: Rename the file to ...
5108 * ada-operator.def: ... here, wrap all the entries by macro OP.
5109 * expprint.c (op_name_standard): Remove all the entries. Include
5110 "std-operator.def" instead.
5111 * expression.h (enum exp_opcode): Include "std-operator.def" and
5112 "ada-operator.def". Move all the entries ...
5113 * std-operator.def: ... here, wrap all the entries by macro OP.
5115 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5117 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5118 * breakpoint.c (remove_jit_event_breakpoints): New function.
5119 * jit.c (jit_descriptor_addr): Delete.
5120 (registering_code): Delete.
5121 (clear_int): Delete.
5122 (jit_inferior_data): New variable.
5123 (struct jit_inferior_data): New type.
5124 (get_jit_inferior_data): New function.
5125 (jit_inferior_data_cleanup): New function.
5126 (jit_read_descriptor): Adjust.
5127 (jit_register_code): Adjust.
5128 (jit_breakpoint_re_set_internal): New function; move code here ...
5129 (jit_inferior_init): ... from here.
5130 (jit_breakpoint_re_set): Adjust.
5131 (jit_reset_inferior_data_and_breakpoints): New function.
5132 (jit_inferior_created_observer): Adjust.
5133 (jit_inferior_exit_hook): Adjust.
5134 (jit_executable_changed_observer): New function.
5135 (jit_event_handler): Adjust.
5136 (_initialize_jit): Adjust.
5138 2011-01-31 Michael Snyder <msnyder@vmware.com>
5140 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5143 2011-01-31 Tom Tromey <tromey@redhat.com>
5146 * python/python.c (execute_gdb_command): Call
5147 prevent_dont_repeat.
5148 * top.c (suppress_dont_repeat): New global.
5149 (dont_repeat): Use it.
5150 (prevent_dont_repeat): New function.
5151 * command.h (prevent_dont_repeat): Declare.
5153 2011-01-31 Tom Tromey <tromey@redhat.com>
5155 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5156 * python/py-breakpoint.c (bppy_set_silent): Use
5157 breakpoint_set_silent.
5158 (bppy_set_thread): Use breakpoint_set_thread.
5159 (bppy_set_task): Use breakpoint_set_task.
5160 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5161 (breakpoint_set_task): Declare.
5162 (make_breakpoint_silent): Remove.
5163 * breakpoint.c (breakpoint_set_silent): New function.
5164 (breakpoint_set_thread): Likewise.
5165 (breakpoint_set_task): Likewise.
5166 (make_breakpoint_silent): Remove.
5168 2011-01-31 Tom Tromey <tromey@redhat.com>
5170 * breakpoint.h (user_breakpoint_p): Declare.
5171 * breakpoint.c (user_breakpoint_p): New function.
5172 (breakpoint_1): Use it.
5173 (save_breakpoints): Likewise.
5175 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5177 * configure.ac: Add handling of Python distribution on Windows.
5178 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5179 sysconfig variables are not defined, then do not use them.
5180 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5181 instead. On Windows, return all paths using forward-slashes
5182 rather than backslashes.
5184 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5186 * configure.ac: Remove fallback behavior for building
5187 against Python. Remove tweaking of Python include path.
5188 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5189 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5190 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5191 Always restore CPPFLAGS and LIBS after linking test.
5192 * configure: Regenerated.
5193 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5194 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5195 * python/python-internal.h: Adjust includes of Python .h files.
5197 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5199 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5202 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5204 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5207 2011-01-31 Yao Qi <yao@codesourcery.com>
5209 * arm-linux-nat.c: Update calls to regcache_register_status
5210 instead of regcache_valid_p.
5211 * aix-thread.c: Likewise.
5212 * i386gnu-nat.c: Likewise.
5214 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5217 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5218 touching TYPE_FIELD_ARTIFICIAL.
5220 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5222 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5225 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5227 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5228 selected, don't try iterating over the traceframe's blocks.
5229 (tfile_has_stack): If there's no traceframe selected, then there's
5231 (tfile_has_registers): If there's no traceframe selected, then
5232 there's no registers.
5234 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5236 * target.c (memory_xfer_partial): No need to restore shadows if we
5237 haven't read anything.
5239 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5241 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5242 and val_print_scalar_formatted.
5244 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5246 * tracepoint.c (tfile_read): New.
5247 (tfile_open): Use it.
5248 (tfile_get_traceframe_address): Use it.
5249 (tfile_trace_find): Use it.
5250 (walk_blocks_callback_func): New typedef.
5251 (match_blocktype): New function.
5252 (traceframe_walk_blocks): New function.
5253 (traceframe_find_block_type): New function.
5254 (tfile_fetch_registers, tfile_xfer_partial)
5255 (tfile_get_trace_state_variable_value): Use
5256 traceframe_find_block_type and tfile_read.
5258 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5260 * remote-mips.c: Add internationalization mark ups. Remove
5261 trailing \n from already marked up strings.
5263 2011-01-26 Tom Tromey <tromey@redhat.com>
5265 * python/py-prettyprint.c (print_string_repr): Clear
5266 'addressprint' option when calling val_print_string.
5267 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5268 option when calling val_print_string.
5270 2011-01-26 Tom Tromey <tromey@redhat.com>
5272 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5274 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5276 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5277 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5278 (gdb_py_long_as_ulongest): New defines.
5279 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5280 (gdb_py_int_as_long): Declare.
5281 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5282 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5283 (valpy_long): Add comment.
5284 * python/py-utils.c (get_addr_from_python): Use
5285 gdb_py_long_as_ulongest. Handle overflow properly.
5286 (gdb_py_object_from_longest): New function.
5287 (gdb_py_object_from_ulongest): Likewise.
5288 (gdb_py_int_as_long): Likewise.
5289 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5290 * python/py-symtab.c (salpy_get_pc): Use
5291 gdb_py_long_from_ulongest.
5292 (salpy_get_line): Use PyInt_FromLong.
5293 * python/py-param.c (set_parameter_value): Use
5295 * python/py-lazy-string.c (stpy_get_address): Use
5296 gdb_py_long_from_ulongest.
5297 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5298 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5299 * python/py-breakpoint.c (bppy_set_thread): Use
5301 (bppy_set_task): Likewise.
5302 (bppy_set_ignore_count): Likewise.
5303 (bppy_set_hit_count): Likewise.
5304 * python/py-block.c (blpy_get_start): Use
5305 gdb_py_object_from_ulongest.
5306 (blpy_get_end): Likewise.
5307 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5309 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5312 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5313 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5314 equality test for objfile, initialize addr_low if needed.
5316 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5318 * tui/tui-regs.c (tui_register_format): Remove dead code.
5320 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5322 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5323 instead of print_scalar_formatted.
5324 (print_scalar_formatted): Don't handle 's' format strings here,
5325 and add an assertion that we never see such format here.
5326 * valprint.h (val_print_scalar_formatted): Declare.
5327 * valprint.c (val_print_scalar_formatted): New.
5328 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5329 instead of print_scalar_formatted.
5330 * jv-valprint.c (java_val_print): Ditto.
5331 * p-valprint.c (pascal_val_print): Ditto.
5332 * ada-valprint.c (ada_val_print_1): Ditto.
5333 * f-valprint.c (f_val_print): Ditto.
5334 * infcmd.c (registers_info): Ditto.
5335 * m2-valprint.c (m2_val_print): Ditto.
5337 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5339 * m2-valprint.c (print_unbounded_array): Pass
5340 value_contents_for_printing rather than value_contents, to
5341 m2_print_array_contents. Also pass in the value.
5343 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5345 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5346 (save_gdb_index_command): Switch to .gdb_index version 4.
5348 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5350 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5351 than frame_register, and always pass a valid value to val_print.
5353 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5355 Centralize printing "<optimized out>".
5357 * valprint.h (val_print_optimized_out): Declare.
5358 * cp-valprint.c (cp_print_value_fields): Use
5359 val_print_optimized_out.
5360 * jv-valprint.c (java_print_value_fields): Ditto.
5361 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5362 * printcmd.c (print_formatted): Ditto.
5363 * valprint.c (valprint_check_validity): Ditto.
5364 (value_check_printable): Ditto.
5365 (val_print_optimized_out): New.
5367 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5369 * infcmd.c (default_print_registers_info): Allocate values so to
5370 never pass a NULL value to val_print.
5372 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5374 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5375 boolean. Make sure to always pass a value that matches the
5376 contents buffer to callees. Preserve `address' for following
5378 * value.c (value_contents_for_printing_const): New.
5379 (value_address): Constify value argument.
5380 * value.h (value_contents_for_printing_const): Declare.
5381 (value_address): Constify value argument.
5383 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5385 * regcache.c (struct regcache_descr): Rename
5386 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5387 and sizeof_cooked_register_valid_p to
5388 sizeof_cooked_register_status.
5389 (init_regcache_descr): Adjust.
5390 (struct regcache): Rename register_valid_p field to
5392 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5393 (do_cooked_read): Adjust.
5394 (regcache_valid_p): Rename to ...
5395 (regcache_register_status): ... this. Adjust.
5396 (regcache_invalidate): Adjust.
5397 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5399 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5400 as unavailable, not valid.
5401 (regcache_dump): Adjust.
5402 * regcache.h (enum register_status): New.
5403 (regcache_register_status): Declare.
5404 (regcache_invalidate): Delete declaration.
5405 * corelow.c (get_core_registers): Adjust.
5406 * tracepoint.c (tfile_fetch_registers): Adjust.
5407 * trad-frame.c (REG_VALUE): Rename to ...
5408 (TF_REG_VALUE): ... this.
5409 (REG_UNKNOWN): Rename to ...
5410 (TF_REG_UNKNOWN): ... this.
5411 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5412 * mi/mi-main.c (register_changed_p): Adjust.
5414 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5416 * regcache.c (struct regcache_descr): Remove outdated comment.
5417 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5419 (regcache_xmalloc): Rename to ...
5420 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5421 Allocate the regcache type accordingly.
5422 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5423 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5424 cooked registers, not raw.
5425 (regcache_dup_no_passthrough): Delete.
5426 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5427 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5428 mention obsolete write_register_bytes.
5429 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5431 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5433 Stop remote_read_bytes from handling partial reads itself.
5435 * remote-fileio.c: Include target.h.
5436 (remote_fileio_write_bytes): Delete.
5437 (remote_fileio_func_open, remote_fileio_func_write)
5438 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5440 (remote_fileio_func_stat): Use target_read_memory and
5441 target_write_memory.
5442 (remote_fileio_func_gettimeofday): Use target_write_memory.
5443 (remote_fileio_func_system): Use target_read_memory.
5444 * remote.c (remote_write_bytes): Make it static.
5445 (remote_read_bytes): Don't handle partial reads here.
5446 * remote.h (remote_read_bytes): Delete declaration.
5448 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5450 Simplify XML parsing a bit.
5452 * xml-support.h (gdb_xml_parse_quick): Declare.
5453 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5454 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5456 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5457 gdb_xml_create_parser_and_cleanup_1.
5458 (gdb_xml_parse_quick): New.
5459 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5460 * osdata.c (osdata_parse): Ditto.
5461 * remote.c (remote_threads_info): Ditto.
5462 * solib-target.c (solib_target_parse_libraries): Ditto.
5463 * xml-syscall.c (syscall_parse_xml): Ditto.
5464 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5466 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5468 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5469 with remote-mips.o added to gdb_target_obs.
5470 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5472 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5474 * ada-valprint.c (val_print_packed_array_elements): Pass the
5475 correct struct value to val_print.
5476 (ada_val_print_1): Ditto.
5478 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5480 Don't lose embedded_offset in printing routines throughout.
5482 * valprint.h (val_print_array_elements): Change prototype.
5483 * valprint.c (val_print_array_elements): Add `embedded_offset'
5484 parameter, and adjust to pass it down to val_print, while passing
5485 `valaddr' or `address' unmodified. Take embedded_offset into
5486 account when checking repetitions.
5487 * c-valprint.c (c_val_print): Pass embedded_offset to
5488 val_print_array_elements instead of adjusting `valaddr' and
5490 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5491 embedded_offset to val_print_array_elements instead of adjusting
5493 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5494 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5495 val_print_array_elements and pascal_object_print_value_fields
5496 instead of adjusting `valaddr'.
5497 (pascal_object_print_value_fields): Add `offset' parameter, and
5499 (pascal_object_print_value): Add `offset' parameter, and adjust to
5501 (pascal_object_print_static_field): Use
5502 value_contents_for_printing/value_embedded_offset, rather than
5504 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5505 parameter, and adjust to use it. Use
5506 value_contents_for_printing/value_embedded_offset, rather than
5508 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5509 (ada_val_print_array): Add `offset' parameter, and adjust to use
5511 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5512 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5513 Instead work with offsets. Use
5514 value_contents_for_printing/value_embedded_offset, rather than
5515 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5516 and use value_from_pointer to extract a target pointer, rather
5517 than value_from_longest.
5518 (print_variant_part): Add `offset' parameter. Replace
5519 `outer_valaddr' parameter by a new `outer_offset' parameter.
5520 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5521 (ada_value_print): Use
5522 value_contents_for_printing/value_embedded_offset, rather than
5524 (print_record): Add `offset' parameter, and adjust to pass it
5526 (print_field_values): Add `offset' parameter. Replace
5527 `outer_valaddr' parameter by a new `outer_offset' parameter.
5528 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5529 Use value_contents_for_printing/value_embedded_offset, rather than
5531 * d-valprint.c (dynamic_array_type): Use
5532 value_contents_for_printing/value_embedded_offset, rather than
5534 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5535 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5536 (java_print_value_fields): Take `offset' into account. Don't
5537 re-adjust `valaddr'. Instead pass down adjusted offsets.
5538 (java_val_print): Take `embedded_offset' into account. Pass it to
5539 java_print_value_fields.
5540 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5541 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5542 down adjusted offsets.
5543 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5544 (f_val_print): Take `embedded_offset' into account.
5546 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5548 * inflow.c: Include "gdbcmd.h".
5549 (interactive_mode): New static global, moved here from top.c.
5550 (show_interactive_mode): New function, moved here from top.c.
5551 use gdb_has_a_terminal instead of input_from_terminal_p to
5552 determine the current mode.
5553 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5555 (_initialize_inflow): Add the "set/show interactive-mode"
5556 commands. Moved here from top.c, after having adjusted slightly
5558 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5560 (input_from_terminal_p): Remove handling of "interactive-mode"
5561 setting, moved to infow.c.
5562 (init_main): Remove creation of the "set/show interactive-mode"
5563 commands, moved to inflow.c.
5565 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5567 * NEWS: Add entry for native ia64-hpux support.
5569 2011-01-19 Tom Tromey <tromey@redhat.com>
5572 * thread.c (free_thread): Free 'name'.
5573 (print_thread_info): Emit thread name. Change CLI output.
5574 (thread_name_command): New function.
5575 (do_captured_thread_select): Emit newline.
5576 (_initialize_thread): Register 'thread name' command.
5577 * target.h (struct target_ops) <to_thread_name>: New field.
5578 (target_thread_name): New macro.
5579 * target.c (update_current_target): Handle to_thread_name.
5580 * python/py-infthread.c (thpy_get_name): New function.
5581 (thpy_set_name): Likewise.
5582 (thread_object_getset): Add "name".
5583 * linux-nat.c (linux_nat_thread_name): New function.
5584 (linux_nat_add_target): Set to_thread_name.
5585 * gdbthread.h (struct thread_info) <name>: New field.
5587 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5589 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5590 (ada_val_print_1): Likewise.
5592 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5594 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5595 upper limit address is not greater than the function end address
5596 when the upper limit could not be computed using the debugging
5599 2011-01-17 Tom Tromey <tromey@redhat.com>
5601 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5603 * utils.c: Include gdb_regex.h.
5604 (do_regfree_cleanup): New function.
5605 (make_regfree_cleanup): Likewise.
5606 (get_regcomp_error): Likewise.
5607 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5609 2011-01-17 Tom Tromey <tromey@redhat.com>
5611 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5614 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5616 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5617 for internal variables.
5618 (last_was_structop): New static variable.
5619 (COMPLETE): New token.
5620 (field_exp): New rule to group all '.' suffix handling.
5621 Add mark_struct_expression calls when approriate to be able
5622 to correctly find fields for completion.
5623 (yylex): Adapt to handle field completion and set INTVAR when
5626 2011-01-14 Yao Qi <yao@codesourcery.com>
5628 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5629 save_reggroup, restore_reggroup and all_reggroup.
5631 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5633 * ada-valprint. (ada_printchar): Use the correct type length
5634 in call to ada_emit_char.
5635 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5637 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5639 * solib-som.h (hpux_major_release): Declare variable here.
5640 * solib-som.c: Remove <sys/utsname.h> header.
5641 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5642 (hpux_major_release): Make global, change default value to
5643 DEFAULT_HPUX_MAJOR_RELEASE.
5644 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5645 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5646 Add "solib-som.h" header.
5647 (set_hpux_major_release): New function.
5648 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5650 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5652 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5654 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5656 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5657 new-line at end of warning message.
5658 (ia64_hpux_store_register): Remove trailing new-line at end of
5660 * ia64-hpux-tdep.c: Rephrase comment.
5661 * solib-ia64-hpux.c (struct dld_info): Change type of field
5662 dld_flags from "long long" to ULONGEST.
5664 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5666 * target.h (deprecated_child_ops): Delete declaration.
5667 * target.c (deprecated_child_ops): Delete definition.
5669 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5671 * Makefile.in (hpux-thread.o): Delete rule.
5672 * configure.ac: Don't check for HPUX DCE threads support.
5673 * configure, config.in: Regenerate.
5674 * hppa-hpux-nat.c (child_suppress_run): Delete.
5675 (hppa_hpux_child_can_run): Delete.
5676 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5677 * hpux-thread.c: Delete.
5679 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5681 * hpux-thread.c (hpux_pid_to_str): Delete.
5683 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5685 * ada-valprint.c (ada_emit_char): Remove strange code.
5686 Check that c is <= UCHAR_MAX before passing it to isascii.
5687 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5689 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5691 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5692 to the case where instream is stdin.
5694 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5696 * ia64-tdep.h (struct regcache): Forward declare.
5697 (struct ia64_infcall_ops): New struct type.
5698 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5700 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5701 Renames ia64_find_global_pointer.
5702 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5703 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5704 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5706 (ia64_infcall_ops): New static global constant.
5707 (ia64_gdbarch_init): Set tdep->infcall_ops.
5708 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5709 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5710 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5711 (ia64_hpux_dummy_code): New static global constant.
5712 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5713 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5714 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5716 (ia64_hpux_infcall_ops): New static global constant.
5717 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5718 for inferior function calls to work properly on ia64-hpux.
5720 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5722 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5723 * ia64-tdep.h (struct frame_info): forward declaration.
5724 (struct gdbarch_tdep): Add field size_of_register_frame.
5725 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5726 to determine the size of the register frame.
5727 (ia64_size_of_register_frame): New function.
5728 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5729 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5730 (IA64_HPUX_UREG_REASON): New macro.
5731 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5733 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5734 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5735 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5738 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5740 Add support for ia64-hpux.
5741 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5742 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5744 * configure.host: Add handling for ia64-hpux hosts. Add associated
5746 * configure.tgt: Add handling for ia64-hpux targets.
5747 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5748 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5749 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5751 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5753 [ttrace] Compute thread list immediately after attach.
5754 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5756 (inf_ttrace_attach): Use it.
5758 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5760 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5761 if we could not determine the frame's function address. Instead,
5762 use the frame's PC, and then continue.
5764 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5766 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5767 not already defined.
5769 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5771 * ia64-tdep.c (ia64_struct_type_p): New function.
5772 (ia64_extract_return_value): Handle integral values that are
5773 less than 8 bytes long.
5774 (ia64_push_dummy_call): Likewise.
5776 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5778 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5779 floatformat_ia64_ext.
5780 (floatformat_ia64_ext_big): New static const.
5781 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5783 2011-01-12 Tom Tromey <tromey@redhat.com>
5785 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5787 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5788 (mi_cmd_thread_list_ids): Likewise.
5789 (mi_cmd_data_list_changed_registers): Likewise.
5790 (mi_cmd_data_list_register_values): Likewise.
5791 (mi_cmd_data_write_register_values): Likewise.
5792 (mi_cmd_data_evaluate_expression): Likewise.
5793 (mi_cmd_data_read_memory): Likewise.
5794 (mi_cmd_data_read_memory_bytes): Likewise.
5795 (mi_cmd_data_write_memory): Likewise.
5796 (mi_cmd_enable_timings): Likewise.
5797 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5798 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5799 (mi_cmd_var_delete): Likewise.
5800 (mi_cmd_var_set_format): Likewise.
5801 (mi_cmd_var_show_format): Likewise.
5802 (mi_cmd_var_info_num_children): Likewise.
5803 (mi_cmd_var_list_children): Likewise.
5804 (mi_cmd_var_info_type): Likewise.
5805 (mi_cmd_var_info_expression): Likewise.
5806 (mi_cmd_var_show_attributes): Likewise.
5807 (mi_cmd_var_assign): Likewise.
5808 (mi_cmd_var_update): Likewise.
5809 (mi_cmd_enable_pretty_printing): Likewise.
5810 (mi_cmd_var_set_update_range): Likewise.
5811 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5813 (mi_cmd_target_file_put): Likewise.
5814 (mi_cmd_target_file_delete): Likewise.
5815 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5817 (mi_cmd_stack_info_depth): Likewise.
5818 (mi_cmd_stack_list_locals): Likewise.
5819 (mi_cmd_stack_list_args): Likewise.
5820 (mi_cmd_stack_select_frame): Likewise.
5821 (mi_cmd_stack_select_frame): Likewise.
5822 (mi_cmd_stack_info_frame): Likewise.
5823 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5825 (mi_cmd_file_list_exec_source_files): Likewise.
5826 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5827 (mi_cmd_env_cd): Likewise.
5828 (mi_cmd_env_path): Likewise.
5829 (mi_cmd_env_dir): Likewise.
5830 (mi_cmd_inferior_tty_show): Likewise.
5831 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5832 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5833 (mi_cmd_break_watch): Likewise.
5835 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5837 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5838 (ppc_linux_insert_hw_breakpoint): Likewise.
5839 (ppc_linux_remove_hw_breakpoint): Likewise.
5840 (ppc_linux_insert_watchpoint): Likewise.
5842 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5843 Jan Kratochvil <jan.kratochvil@redhat.com>
5845 PR fortran/11104 and DWARF unbound arrays detection.
5846 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5847 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5848 unspecified upper bound.
5849 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5850 variables array_size_array, tmp_type and offset_item. New variable
5851 array. Remove call to f77_get_upperbound. New variables array_type
5852 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5853 the final call to deprecated_set_value_type.
5855 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5857 Make value allocations more lazy.
5858 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5859 instead of allocate_value and set_value_lazy when possible.
5860 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5861 instead of allocate_value and set_value_lazy.
5862 * findvar.c (value_of_register_lazy): Likewise.
5863 (read_var_value): Remove V preallocation, call just check_typedef in
5864 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5865 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5866 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5867 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5868 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5869 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5870 the end, remove set_value_lazy there.
5871 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5872 instead of allocate_value and set_value_lazy when possible.
5873 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5874 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5875 of allocate_value and set_value_lazy.
5876 (value_from_contents_and_address): Use allocate_value_lazy instead of
5877 allocate_value and set_value_lazy when possible.
5879 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5881 * disasm.c (dump_insns): Support dumping opcodes for MI.
5882 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5883 dumping of instruction opcodes.
5885 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5887 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5890 2011-01-11 Tom Tromey <tromey@redhat.com>
5892 * thread.c (do_captured_thread_select): Emit newline before
5895 2011-01-11 Michael Snyder <msnyder@vmware.com>
5897 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5898 * score-tdep.c: Ditto.
5899 * score-tdep.h: Ditto.
5900 * ser-base.c: Ditto.
5901 * ser-go32.c: Ditto.
5904 * ser-mingw.c: Ditto.
5905 * ser-pipe.c: Ditto.
5907 * ser-unix.c: Ditto.
5908 * sh64-tdep.c: Ditto.
5909 * shnbsd-nat.c: Ditto.
5913 * solib-darwin.c: Ditto.
5914 * solib-frv.c: Ditto.
5916 * solib-irix.c: Ditto.
5917 * solib-osf.c: Ditto.
5918 * solib-pa64.c: Ditto.
5919 * solib-som.c: Ditto.
5920 * solib-spu.c: Ditto.
5921 * solib-sunos.c: Ditto.
5922 * solib-svr4.c: Ditto.
5924 * sol-thread.c: Ditto.
5928 * sparc64-linux-tdep.c: Ditto.
5929 * sparc64-tdep.c: Ditto.
5930 * sparc-linux-nat.c: Ditto.
5931 * sparc-linux-tdep.c: Ditto.
5932 * sparc-sol2-nat.c: Ditto.
5933 * sparc-sol2-tdep.c: Ditto.
5934 * sparc-tdep.c: Ditto.
5935 * sparc-tdep.h: Ditto.
5936 * spu-tdep.c: Ditto.
5937 * stabsread.c: Ditto.
5938 * stabsread.h: Ditto.
5946 * target-descriptions.c: Ditto.
5947 * target-descriptions.h: Ditto.
5949 * target-memory.c: Ditto.
5950 * terminal.h: Ditto.
5953 * tracepoint.c: Ditto.
5954 * tracepoint.h: Ditto.
5955 * trad-frame.h: Ditto.
5956 * typeprint.c: Ditto.
5958 2011-01-11 Michael Snyder <msnyder@vmware.com>
5960 * ui-file.c: Comment cleanup, mostly periods and spaces.
5965 * v850-tdep.c: Ditto.
5966 * valarith.c: Ditto.
5968 * valprint.c: Ditto.
5969 * valprint.h: Ditto.
5974 * vax-tdep.c: Ditto.
5978 * windows-nat.c: Ditto.
5979 * windows-tdep.c: Ditto.
5980 * xcoffread.c: Ditto.
5981 * xcoffsolib.c: Ditto.
5982 * xml-support.c: Ditto.
5983 * xstormy16-tdep.c: Ditto.
5984 * xtensa-tdep.c: Ditto.
5985 * xtensa-tdep.h: Ditto.
5987 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5989 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5990 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5992 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5993 Thiago Jung Bauermann <bauerman@br.ibm.com>
5995 Implement support for PowerPC BookE ranged watchpoints.
5997 (struct breakpoint_ops) <resources_needed>: New method.
5998 Initialize to NULL in all existing breakpoint_ops instances.
5999 (struct breakpoint) <exact>: New field.
6000 (target_exact_watchpoints): Declare external global.
6001 * breakpoint.c (target_exact_watchpoints): New global flag.
6002 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6003 b->enable_state to bp_enabled before calling
6004 hw_watchpoint_used_count.
6005 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6006 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6008 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6009 if the watchpoint is exact.
6010 (resources_needed_watchpoint): New function.
6011 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6012 (watch_command_1): Set b->exact if the user asked for an exact
6013 watchpoint and one can be set.
6014 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6015 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6016 the user asks for an exact watchpoint and one can be set. Return
6017 number of needed debug registers to watch the expression.
6018 * gdbtypes.c (is_scalar_type): New function, based on
6019 valprint.c:scalar_type_p.
6020 (is_scalar_type_recursive): New function.
6021 * gdbtypes.h (is_scalar_type_recursive): Declare.
6022 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6023 handle regions when ranged watchpoints are available.
6024 (create_watchpoint_request): New function.
6025 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6026 create_watchpoint_request.
6027 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6028 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6029 `set powerpc' and `show powerpc' commands.
6030 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6031 Mention documentation comment in the target macro.
6032 (target_region_ok_for_hw_watchpoint): Document return value.
6034 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6036 * breakpoint.c (update_watchpoint): Decide on using a software or
6037 hardware watchpoint after the bp_locations are created.
6039 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6041 Convert hardware watchpoints to use breakpoint_ops.
6042 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6043 <insert_location>: ... this. Return int instead of void.
6044 Accept pointer to struct bp_location instead of pointer to
6045 struct breakpoint. Adapt all implementations.
6046 (breakpoint_ops) <remove>: Rename to...
6047 <remove_location>: ... this. Accept pointer to struct bp_location
6048 instead of pointer to struct breakpoint. Adapt all implementations.
6049 * breakpoint.c (insert_catchpoint): Delete function.
6050 (insert_bp_location): Call the watchpoint or catchpoint's
6051 breakpoint_ops.insert method.
6052 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6053 breakpoint_ops.remove method.
6054 (insert_watchpoint, remove_watchpoint): New functions.
6055 (watchpoint_breakpoint_ops): New structure.
6056 (watch_command_1): Initialize the OPS field.
6057 * inf-child.c (inf_child_insert_fork_catchpoint)
6058 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6059 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6060 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6062 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6063 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6064 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6065 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6066 * target.c (update_current_target): Change default implementation of
6067 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6068 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6069 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6070 to_set_syscall_catchpoint to return_one.
6071 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6072 (debug_to_insert_exec_catchpoint): Report return value.
6073 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6074 (to_insert_exec_catchpoint): Change declaration to return int instead
6077 2011-01-11 Michael Snyder <msnyder@vmware.com>
6079 * arm-tdep.c: Internationalization.
6082 * fork-child.c: Ditto.
6083 * nto-procfs.c: Ditto.
6084 * ppc-sysv-tdep.c: Ditto.
6086 * remote-mips.c: Ditto.
6088 * rs6000-nat.c: Ditto.
6089 * rs6000-tdep.c: Ditto.
6093 * xml-support.c: Ditto.
6094 * mi/mi-cmd-break.c: Ditto.
6095 * mi/mi-cmd-var.c: Ditto.
6096 * mi/mi-interp.c: Ditto.
6097 * mi/mi-main.c: Ditto.
6099 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6101 * remote-sim.c (gdbsim_store_register): Update API to
6102 sim_store_register to check more error conditions.
6104 2011-01-10 Michael Snyder <msnyder@vmware.com>
6106 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6107 * nto-tdep.c: Ditto.
6108 * nto-tdep.h: Ditto.
6109 * objc-exp.y: Ditto.
6110 * objc-lang.c: Ditto.
6111 * objfiles.c: Ditto.
6112 * objfiles.h: Ditto.
6113 * observer.c: Ditto.
6114 * opencl-lang.c: Ditto.
6117 * parser-defs.h: Ditto.
6120 * posix-hdep.c: Ditto.
6121 * ppcbug-rom.c: Ditto.
6122 * ppc-linux-nat.c: Ditto.
6123 * ppc-linux-tdep.c: Ditto.
6124 * ppc-linux-tdep.h: Ditto.
6125 * ppcnbsd-tdep.c: Ditto.
6126 * ppcobsd-tdep.c: Ditto.
6127 * ppcobsd-tdep.h: Ditto.
6128 * ppc-sysv-tdep.c: Ditto.
6129 * ppc-tdep.h: Ditto.
6130 * printcmd.c: Ditto.
6131 * proc-abi.c: Ditto.
6132 * proc-flags.c: Ditto.
6134 * proc-utils.h: Ditto.
6135 * progspace.h: Ditto.
6136 * prologue-value.c: Ditto.
6137 * prologue-value.h: Ditto.
6138 * psympriv.h: Ditto.
6140 * p-typeprint.c: Ditto.
6141 * p-valprint.c: Ditto.
6142 * ravenscar-sparc-thread.c: Ditto.
6143 * ravenscar-thread.c: Ditto.
6144 * ravenscar-thread.h: Ditto.
6146 * regcache.c: Ditto.
6147 * regcache.h: Ditto.
6149 * remote-fileio.c: Ditto.
6150 * remote-fileio.h: Ditto.
6152 * remote-m32r-sdi.c: Ditto.
6153 * remote-mips.c: Ditto.
6154 * remote-sim.c: Ditto.
6155 * rs6000-aix-tdep.c: Ditto.
6156 * rs6000-nat.c: Ditto.
6157 * rs6000-tdep.c: Ditto.
6159 2011-01-10 Michael Snyder <msnyder@vmware.com>
6161 * charset.c (validate): Internationalization.
6162 * coffread.c (read_one_sym): Ditto.
6163 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6164 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6165 * inflow.c (new_tty): Ditto.
6166 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6167 * m32c-tdep.c (m32c_return_value): Ditto.
6168 * mep-tdep.c (mep_store_return_value): Ditto.
6169 * score-tdep.c (score7_fetch_insn): Ditto.
6170 * ser-mingw.c (pipe_windows_open): Ditto.
6171 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6172 * spu-tdep.c (spu_register_type): Ditto.
6173 * tracepoint.c (trace_find_command): Ditto.
6174 * valarith.c (value_pos): Ditto.
6176 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6178 * ada-valprint.c (printstr): Minor comment reformatting.
6180 2011-01-08 Michael Snyder <msnyder@vmware.com>
6182 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6185 2011-01-08 Michael Snyder <msnyder@vmware.com>
6187 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6188 * hppa-hpux-tdep.c: Ditto.
6189 * hppa-linux-nat.c: Ditto.
6190 * hppa-linux-tdep.c: Ditto.
6191 * hppanbsd-tdep.c: Ditto.
6192 * hppa-tdep.c: Ditto.
6193 * hppa-tdep.h: Ditto.
6194 * hpux-thread.c: Ditto.
6195 * i386-cygwin-tdep.c: Ditto.
6196 * i386-darwin-nat.c: Ditto.
6197 * i386gnu-nat.c: Ditto.
6198 * i386-linux-nat.c: Ditto.
6199 * i386-linux-tdep.c: Ditto.
6200 * i386-nat.c: Ditto.
6201 * i386-nat.h: Ditto.
6202 * i386nbsd-tdep.c: Ditto.
6203 * i386-sol2-nat.c: Ditto.
6204 * i386-stub.c: Ditto.
6205 * i386-tdep.c: Ditto.
6206 * i386-tdep.h: Ditto.
6207 * i387-tdep.c: Ditto.
6208 * ia64-linux-nat.c: Ditto.
6209 * ia64-linux-tdep.c: Ditto.
6210 * ia64-tdep.c: Ditto.
6214 * inferior.c: Ditto.
6215 * inferior.h: Ditto.
6221 * iq2000-tdep.c: Ditto.
6222 * irix5-nat.c: Ditto.
6228 * jv-typeprint.c: Ditto.
6229 * jv-valprint.c: Ditto.
6230 * language.c: Ditto.
6231 * language.h: Ditto.
6232 * linespec.c: Ditto.
6233 * linux-fork.c: Ditto.
6234 * linux-nat.c: Ditto.
6235 * linux-thread-db.c: Ditto.
6236 * lm32-tdep.c: Ditto.
6238 2011-01-08 Michael Snyder <msnyder@vmware.com>
6240 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6242 * m2-typeprint.c: Ditto.
6243 * m2-valprint.c: Ditto.
6244 * m32c-tdep.c: Ditto.
6245 * m32r-linux-nat.c: Ditto.
6246 * m32r-rom.c: Ditto.
6247 * m32r-tdep.c: Ditto.
6248 * m32r-tdep.h: Ditto.
6249 * m68hc11-tdep.c: Ditto.
6250 * m58klinux-nat.c: Ditto.
6251 * m68k-tdep.c: Ditto.
6252 * m88k-tdep.c: Ditto.
6253 * m88k-tdep.h: Ditto.
6254 * machoread.c: Ditto.
6255 * macrocmd.c: Ditto.
6256 * macroexp.c: Ditto.
6257 * macrotab.c: Ditto.
6260 * mdebugread.c: Ditto.
6261 * mdebugread.h: Ditto.
6264 * memory-map.h: Ditto.
6265 * mep-tdep.c: Ditto.
6266 * microblaze-rom.c: Ditto.
6267 * microblaze-tdep.c: Ditto.
6269 * mips-irix-tdep.c: Ditto.
6270 * mips-linux-nat.c: Ditto.
6271 * mips-linux-tdep.c: Ditto.
6272 * mips-linux-tdep.h: Ditto.
6273 * mipsnbsd-nat.c: Ditto.
6274 * mipsnbsd-tdep.c: Ditto.
6275 * mipsread.c: Ditto.
6276 * mips-tdep.c: Ditto.
6277 * mips-tdep.h: Ditto.
6278 * mn10300-linux-tdep.c: Ditto.
6279 * mn10300-tdep.c: Ditto.
6280 * mn10300-tdep.h: Ditto.
6283 * moxie-tdep.c: Ditto.
6284 * moxie-tdep.h: Ditto.
6287 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6289 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6291 2011-01-08 Robert Millan <rmh@gnu.org>
6293 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6295 2011-01-07 Michael Snyder <msnyder@vmware.com>
6297 * charset.c (_initialize_charset): Fix typo in string.
6299 2011-01-07 Michael Snyder <msnyder@vmware.com>
6301 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6303 * tui/tui-layout.c (tui_set_layout_for_display_command):
6304 Split line so that operator goes to beginning of line.
6305 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6306 assignment out of if statement.
6308 2011-01-07 Michael Snyder <msnyder@vmware.com>
6310 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6311 * ada-lang.h: Ditto.
6312 * ada-tasks.c: Ditto.
6313 * ada-valprint.c: Ditto.
6314 * aix-threads.c: Ditto.
6315 * alpha-linux-nat.c: Ditto.
6316 * alpha-linux-tdep.c: Ditto.
6317 * alpha-mdebug-tdep.c: Ditto.
6318 * alpha-nat.c: Ditto.
6319 * alpha-osf1-tdep.c: Ditto.
6320 * alpha-tdep.c: Ditto.
6321 * alphabsd-nat.c: Ditto.
6322 * alphabsd-tdep.c: Ditto.
6323 * amd64-darwin-tdep.c: Ditto.
6324 * amd64-linux-nat.c: Ditto.
6325 * amd64-linux-tdep.c: Ditto.
6326 * amd64-sol2-tdep.c: Ditto.
6327 * amd64-tdep.c: Ditto.
6328 * amd64-fbsd-tdep.c: Ditto.
6329 * amd64-nbsd-tdep.c: Ditto.
6330 * amd64-obsd-tdep.c: Ditto.
6331 * amd64-linux-nat.c: Ditto.
6332 * amd64-linux-tdep.c: Ditto.
6333 * arm-tdep.c: Ditto.
6334 * arm-tdep.h: Ditto.
6335 * armnbsd-nat.c: Ditto.
6336 * avr-tdep.c: Ditto.
6337 * bfin-tdep.c: Ditto.
6339 * c-typeprintc: Ditto.
6340 * c-valprint.c: Ditto.
6341 * coff-pe-read.h: Ditto.
6342 * coffreead.c: Ditto.
6343 * cris-tdep.c: Ditto.
6345 * darwin-nat-info.c: Ditto.
6346 * darwin-nat.c: Ditto.
6347 * dbug-rom.c: Ditto.
6351 * dec-thread.c: Ditto.
6353 * demangle.c: Ditto.
6354 * dicos-tdep.c: Ditto.
6355 * dictionary.c: Ditto.
6356 * dictionary.h: Ditto.
6357 * dink32-rom.c: Ditto.
6359 * doublest.c: Ditto.
6361 * dummy-frame.c: Ditto.
6362 * dwarf2-frame.c: Ditto.
6363 * dwarf2expr.c: Ditto.
6364 * dwarf2loc.c: Ditto.
6365 * dwarf2read.c: Ditto.
6369 * event-top.h: Ditto.
6370 * exceptions.c: Ditto.
6371 * exceptions.h: Ditto.
6373 * expprint.c: Ditto.
6374 * expression.h: Ditto.
6378 * f-typeprint.c: Ditto.
6379 * f-valprint.c: Ditto.
6380 * fbsd-nat.c: Ditto.
6382 * fork-child.c: Ditto.
6385 * frv-linux-tdep.c: Ditto.
6386 * frv-tdep.c: Ditto.
6388 * gdb-stabs.h: Ditto.
6389 * gdb_assert.h: Ditto.
6390 * gdb_string.h: Ditto.
6391 * gdb_thread_db.h: Ditto.
6392 * gdb_wait.h: Ditto.
6393 * gdbarch.sh: Ditto.
6395 * gdbthread.h: Ditto.
6396 * gdbtypes.c: Ditto.
6397 * gdbtypes.h: Ditto.
6400 * gnu-v2-abi.c: Ditto.
6401 * gnu-v3-abi.c: Ditto.
6402 * go32-nat.c: Ditto.
6403 * gdbarch.c: Regenerate.
6404 * gdbarch.h: Regenerate.
6406 2011-01-07 Michael Snyder <msnyder@vmware.com>
6408 * ax-gdb.c: Adjust some long output strings.
6409 * breakpoint.c: Ditto.
6414 * linux-nat.c: Ditto.
6415 * solib-pa64.c: Ditto.
6416 * solib-som.c: Ditto.
6418 2011-01-06 Tom Tromey <tromey@redhat.com>
6422 * python/python.c (GdbMethods): Add "newest_frame" method.
6423 * python/python-internal.h (gdbpy_newest_frame): Declare.
6424 * python/py-frame.c (gdbpy_newest_frame): New function.
6426 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6428 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6429 * jit.c (jit_debug): New variable.
6430 (show_jit_debug): New function.
6431 (struct target_buffer): Use ULONGEST.
6432 (bfd_open_from_target_memory): Likewise.
6433 (jit_register_code, jit_inferior_init): Add debug output.
6434 (_initialize_jit): Register "debug jit" command.
6436 2011-01-06 Tom Tromey <tromey@redhat.com>
6438 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6439 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6442 2011-01-06 Tom Tromey <tromey@redhat.com>
6444 * python/py-frame.c (frapy_block): Use get_frame_block.
6446 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6448 Do not stop on SIGPRIO signals by default
6449 * infrun.c (_initialize_infrun): Unset signal_stop and
6450 signal_print for TARGET_SIGNAL_PRIO.
6452 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6454 * ada-tasks.c: Fix style violation in comment.
6456 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6458 * linespec.c (decode_compound, find_method): Remove trailing \n
6459 at end of error string.
6460 * solib-irix.c (irix_current_sos): Likewise.
6461 * varobj.c (uninstall_variable): Likewise.
6463 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6465 * copyright.py: New script.
6466 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6467 Launch emacs without exec'ing. Call copyright.py afterwards.
6469 2011-01-05 Michael Snyder <msnyder@vmware.com>
6471 * addrmap.c: Shorten lines of >= 80 columns.
6472 * arch-utils.c: Ditto.
6473 * arch-utils.h: Ditto.
6475 * ax-general.c: Ditto.
6477 * blockframe.c: Ditto.
6478 * breakpoint.c: Ditto.
6479 * buildsym.c: Ditto.
6481 * c-typeprint.c: Ditto.
6483 * coffread.c: Ditto.
6487 * cp-namespace.c: Ditto.
6488 * cp-support.c: Ditto.
6489 * dbug-rom.c: Ditto.
6494 * dictionary.c: Ditto.
6496 * doublest.c: Ditto.
6497 * dwarf2-frame.c: Ditto.
6498 * dwarf2expr.c: Ditto.
6499 * dwarf2loc.c: Ditto.
6500 * dwarf2read.c: Ditto.
6503 * event-loop.c: Ditto.
6504 * event-loop.h: Ditto.
6505 * exceptions.h: Ditto.
6507 * expprint.c: Ditto.
6508 * expression.h: Ditto.
6510 * f-valprint.c: Ditto.
6512 * frame-base.c: Ditto.
6513 * frame-unwind.c: Ditto.
6514 * frame-unwind.h: Ditto.
6518 * gdb-stabs.h: Ditto.
6519 * gdb_assert.h: Ditto.
6520 * gdb_dirent.h: Ditto.
6521 * gdb_obstack.h: Ditto.
6523 * gdbtypes.c: Ditto.
6524 * gdbtypes.h: Ditto.
6525 * inf-ttrace.c: Ditto.
6530 * inline-frame.h: Ditto.
6531 * language.c: Ditto.
6532 * language.h: Ditto.
6533 * libunwind-frame.c: Ditto.
6534 * libunwind-frame.h: Ditto.
6535 * linespec.c: Ditto.
6536 * linux-nat.c: Ditto.
6537 * linux-nat.h: Ditto.
6538 * linux-thread-db.c: Ditto.
6539 * machoread.c: Ditto.
6540 * macroexp.c: Ditto.
6541 * macrotab.c: Ditto.
6544 * mdebugread.c: Ditto.
6549 * objfiles.c: Ditto.
6550 * objfiles.h: Ditto.
6552 * p-typeprint.c: Ditto.
6553 * p-valprint.c: Ditto.
6555 * printcmd.c: Ditto.
6556 * proc-events.c: Ditto.
6558 * progspace.c: Ditto.
6559 * progspace.h: Ditto.
6560 * psympriv.h: Ditto.
6563 * regcache.c: Ditto.
6564 * regcache.h: Ditto.
6565 * remote-fileio.c: Ditto.
6567 * ser-mingw.c: Ditto.
6569 * ser-unix.c: Ditto.
6572 * solib-frv.c: Ditto.
6573 * solib-irix.c: Ditto.
6574 * solib-osf.c: Ditto.
6575 * solib-pa64.c: Ditto.
6576 * solib-som.c: Ditto.
6577 * solib-sunos.c: Ditto.
6578 * solib-svr4.c: Ditto.
6579 * solib-target.c: Ditto.
6583 * stabsread.c: Ditto.
6584 * stabsread.c: Ditto.
6587 * symfile-mem.c: Ditto.
6593 * target-descriptions.c: Ditto.
6594 * target-memory.c: Ditto.
6597 * terminal.h: Ditto.
6600 * tracepoint.c: Ditto.
6601 * tracepoint.h: Ditto.
6605 * user-regs.c: Ditto.
6606 * user-regs.h: Ditto.
6608 * valarith.c: Ditto.
6610 * valprint.c: Ditto.
6611 * valprint.h: Ditto.
6616 * xcoffread.c: Ditto.
6617 * xcoffsolib.c: Ditto.
6618 * xcoffsolib.h: Ditto.
6619 * xml-syscall.c: Ditto.
6620 * xml-tdesc.c: Ditto.
6622 2011-01-05 Michael Snyder <msnyder@vmware.com>
6624 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6625 * cli/cli-decode.c: Ditto.
6626 * cli/cli-dump.c: Ditto.
6627 * cli/cli-logging.c: Ditto.
6628 * cli/cli-script.c: Ditto.
6629 * cli/cli-setshow.c: Ditto.
6630 * common/signals.c: Ditto.
6631 * mi/mi-cmd-break.c: Ditto.
6632 * mi/mi-cmd-disas.c: Ditto.
6633 * mi/mi-cmd-stack.c: Ditto.
6634 * mi/mi-cmd-var.c: Ditto.
6635 * mi/mi-cmds.c: Ditto.
6636 * mi/mi-common.h: Ditto.
6637 * mi/mi-console.c: Ditto.
6638 * mi/mi-interp.c: Ditto.
6639 * mi/mi-main.c: Ditto.
6640 * osf-share/cma_attr.c: Ditto.
6641 * osf-share/cma_deb_core.h: Ditto.
6642 * osf-share/cma_debug_client.h: Ditto.
6643 * osf-share/cma_handle.h: Ditto.
6644 * osf-share/cma_mutex.h: Ditto.
6645 * osf-share/cma_stack_int.h: Ditto.
6646 * osf-share/cma_tcb_defs.h: Ditto.
6647 * python/py-auto-load.c: Ditto.
6648 * python/py-breakpoint.c: Ditto.
6649 * python/py-cmd.c: Ditto.
6650 * python/py-frame.c: Ditto.
6651 * python/py-objfile.c: Ditto.
6652 * python/py-param.c: Ditto.
6653 * python/py-progspace.c: Ditto.
6654 * python/py-symbol.c: Ditto.
6655 * python/py-value.c: Ditto.
6656 * python/python-internal.h: Ditto.
6657 * python/python.c: Ditto.
6658 * tui/tui-data.c: Ditto.
6659 * tui/tui-disasm.c: Ditto.
6660 * tui/tui-hooks.c: Ditto.
6661 * tui/tui-io.c: Ditto.
6662 * tui/tui-layout.c: Ditto.
6663 * tui/tui-regs.c: Ditto.
6664 * tui/tui-source.c: Ditto.
6665 * tui/tui-stack.c: Ditto.
6666 * tui/tui-win.c: Ditto.
6667 * tui/tui-windata.c: Ditto.
6668 * tui/tui-winsource.c: Ditto.
6670 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6672 * configure.ac, gdb.1: Copyright year update.
6674 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6676 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6677 this_pc_in_block, morestack_msym and morestack_name. Check for
6678 "__morestack" minimal symbol there.
6680 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6682 * symfile.c (find_sym_fns): Add call to dont_repeat.
6684 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6686 Copyright year update in most files (performed by copyright.sh).
6688 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6690 * top.c (print_gdb_version): Update copyright year in version output.
6692 For older changes see ChangeLog-2010.
6698 version-control: never