1 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
4 in output of -ada-task-info GDB/MI command.
6 2011-10-03 Joel Brobecker <brobecker@adacore.com>
8 * ada-lang.h (struct inferior): Declare.
9 (print_ada_task_info): Add declaration.
10 * ada-tasks.c (print_ada_task_info): Make non-static.
11 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
12 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
13 * mi/mi-main.c: #include "ada-lang.h".
14 (mi_cmd_list_features): Add "ada-task-info" to the list
15 of supported features.
16 (mi_cmd_ada_task_info): New function.
18 2011-10-03 Joel Brobecker <brobecker@adacore.com>
20 * python/python.c (python_run_simple_file): New function.
21 (source_python_script, source_python_script_for_objfile):
22 Replace call to PyRun_SimpleFile by call to
23 python_run_simple_file.
25 2011-10-03 Paul Koning <paul_koning@dell.com>
27 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
28 (value_to_value_object): Fetch value if it was lazy.
30 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
33 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
34 Rearrange the code for it.
36 2011-10-02 Joel Brobecker <brobecker@adacore.com>
38 * breakpoint.c (bkpt_print_recreate): Add call to
39 print_recreate_thread.
41 2011-09-29 Mike Frysinger <vapier@gentoo.org>
43 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
44 PTRACE_GETFDPIC_INTERP): Define.
46 2011-09-28 Yao Qi <yao@codesourcery.com>
48 * symfile.c (add_symbol_file_command): Update message on usage.
50 2011-09-28 Paul Koning <paul_koning@dell.com>
52 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
53 (typy_length, typy_get, typy_has_key, typy_make_iter)
54 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
55 (typy_iterator_iter, typy_iterator_iternext)
56 (typy_iterator_dealloc): New functions to implement standard
57 Python mapping methods on gdb.Type object.
58 (gdb.TypeIterator): New Python type.
59 * python/python-internal.h (gdbpy_iter_kind): New enum.
60 * doc/gdb.texinfo (gdb.Type): Document field access by dictionary
63 2011-09-28 David S. Miller <davem@davemloft.net>
65 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
66 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
67 * sparc-tdep.c (sparc_complex_floating_p): New function.
68 (sparc32_store_arguments): Handle complex floats.
69 (sparc32_extract_return_value): Likewise.
70 (sparc32_store_return_value): Likewise.
71 (sparc32_stabs_argument_has_addr): Likewise.
72 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
73 (sparc64_store_floating_fields): Handle complex floats.
74 (sparc64_store_arguments): Likewise.
75 (sparc64_store_return_value): Likewise.
77 2011-09-28 Eli Zaretskii <eliz@gnu.org>
79 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
80 before the change on 2006-12-09.
81 (windows_create_inferior) [!__CYGWIN__]: Restore code that
82 generates the environment block for CreateProcessA, modulo the
83 Cygwin-specific parts that are not needed here.
85 2011-09-27 Tristan Gingold <gingold@adacore.com>
87 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
88 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
89 (darwin_solib_get_all_image_info_addr_at_init): New function.
90 (darwin_solib_read_all_image_info_addr): Likewise.
91 (darwin_solib_create_inferior_hook): Use the above two functions.
92 * darwin-nat.c (darwin_execvp): Renames retval to res.
93 (darwin_read_write_inferior): Update comment.
94 (darwin_read_dyld_info): New function.
95 (darwin_xfer_partial): Handle DYLD_INFO.
97 2011-09-27 Stan Shebs <stan@codesourcery.com>
99 Add return address collection for tracepoints.
100 * tracepoint.c (encode_actions_1): Add case for $_ret.
101 (validate_actionline): Check for $_ret.
102 (trace_dump_actions): Ditto.
103 * ax-gdb.h (gen_trace_for_return_address): Declare.
104 * ax-gdb.c: Include arch-utils.h.
105 (gen_trace_for_return_address): New function.
106 (agent_command): Add return address special case.
107 * amd64-tdep.c: Include ax.h and ax-gdb.h.
108 (amd64_gen_return_address): New function.
109 (amd64_init_abi): Call it.
110 * i386-tdep.c: Include ax.h and ax-gdb.h.
111 (i386_gen_return_address): New function.
112 (i386_init_abi): Call it.
113 * arch-utils.h (default_gen_return_address): Declare.
114 * arch-utils.c (default_gen_return_address): New function.
115 * gdbarch.sh (gen_return_address): New method.
116 * gdbarch.h, gdbarch.c: Regenerate.
118 2011-09-23 Joseph Myers <joseph@codesourcery.com>
121 * i386-tdep.c (i386_frame_align): New.
122 (i386_gdbarch_init): Use i386_frame_align.
124 2011-09-23 Yao Qi <yao@codesourcery.com>
126 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
129 2011-09-22 Tristan Gingold <gingold@adacore.com>
131 * fork-child.c (fork_inferior): Add exec_fun parameter.
132 Call exec_fun or execvp.
133 * inferior.h: Adjust prototype.
134 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
135 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
136 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
137 * procfs.c (procfs_create_inferior): Ditto.
138 * darwin-nat.c (darwin_execvp): New function.
139 (darwin_create_inferior): Use it.
141 2011-09-22 Yao Qi <yao@codesourcery.com>
143 * infrun.c (context_switch): Print debug message when switching to
146 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
148 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
149 complex and vector types.
150 (s390_return_value_convention): Likewise.
152 (s390_value_from_register): Call check_typedef.
153 (extend_simple_arg): Likewise.
154 (alignment_of): Likewise.
155 (s390_push_dummy_call): Likewise.
156 (s390_return_value): Likewise.
158 2011-09-21 Joseph Myers <joseph@codesourcery.com>
160 * event-top.c (async_disconnect): If an exception is thrown from
161 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
163 * top.c (quit_cover): Return void and take no arguments.
164 * top.h (quit_cover): Update prototype.
166 2011-09-20 Joseph Myers <joseph@codesourcery.com>
168 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
169 current_uiout, not uiout.
171 2011-09-19 Doug Evans <dje@google.com>
173 * python/py-auto-load.c (source_section_scripts): Fix file
175 * python/python.c (source_python_script_for_objfile): Tweak comments.
177 2011-09-18 Yao Qi <yao@codesourcery.com>
178 Ulrich Weigand <ulrich.weigand@linaro.org>
180 Support displaced stepping for Thumb 16-bit insns.
181 * arm-tdep.c (THUMB_NOP) Define.
182 (thumb_copy_unmodified_16bit): New.
183 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
184 (thumb_copy_alu_reg): New.
185 (arm_copy_svc): Move some common code to ...
186 (install_svc): ... here. New.
187 (thumb_copy_svc): New.
188 (install_pc_relative): New.
189 (thumb_copy_pc_relative_16bit): New.
190 (thumb_decode_pc_relative_16bit): New.
191 (thumb_copy_16bit_ldr_literal): New.
192 (thumb_copy_cbnz_cbz): New.
193 (cleanup_pop_pc_16bit_all): New.
194 (thumb_copy_pop_pc_16bit): New.
195 (thumb_process_displaced_16bit_insn): New.
196 (thumb_process_displaced_32bit_insn): New.
197 (thumb_process_displaced_insn): process thumb instruction.
199 Support displaced stepping for Thumb 32-bit insns.
200 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
201 (thumb2_copy_preload): New.
202 (thumb2_copy_copro_load_store): New.
203 (thumb2_copy_b_bl_blx): New.
204 (thumb2_copy_alu_imm): New.
205 (thumb2_copy_load_reg_imm): New.
206 (thumb2_copy_load_literal): New
207 (thumb2_copy_block_xfer): New.
208 (thumb_32bit_copy_undef): New.
209 (thumb_32bit_copy_unpred): New.
210 (thumb2_decode_ext_reg_ld_st): New.
211 (thumb2_decode_svc_copro): New.
212 (decode_thumb_32bit_store_single_data_item): New.
213 (thumb_copy_pc_relative_32bit): New.
214 (thumb_decode_pc_relative_32bit): New.
215 (decode_thumb_32bit_ld_mem_hints): New.
216 (thumb2_copy_table_branch): New
217 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
220 2011-09-18 Yao Qi <yao@codesourcery.com>
222 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
223 (install_b_bl_blx): Likewise.
225 2011-09-17 Yao Qi <yao@codesourcery.com>
227 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
228 (install_load_store): ... this. New.
229 Change parameter BYTE to SIZE.
230 (arm_copy_ldr_str_ldrb_strb): Update caller.
231 (arm_decode_ld_st_word_ubyte): Update caller.
233 2011-09-17 Yao Qi <yao@codesourcery.com>
235 * infrun.c (displaced_step_fixup): Move some code ...
236 (displaced_step_restore): ... here. New function.
237 (handle_inferior_event): Cleanup displaced stepping state for both
238 child and parent when get forked or vforked event.
239 * regcache.c (get_thread_arch_aspace_regcache): New function.
240 get_thread_arch_regcache (): Call it.
242 2011-09-16 Joel Brobecker <brobecker@adacore.com>
244 * ada-tasks.c (print_ada_task_info): New function, merging
245 short_task_info and info_tasks together. Reimplement using
246 ui-out instead of printing to stdout directly. Move the code
247 building and checking the task list here, instead of leaving it
248 in info_tasks_command.
249 (info_task): Move the code building and checking the task
250 list here, instead of leaving it in info_tasks_command.
251 (info_tasks_command): Delete code building and checking
252 the task list - moved elsewhere. Update calls to info_tasks
255 2011-09-16 Joel Brobecker <brobecker@adacore.com>
257 * ada-tasks.c (info_task): Delete parameter `from_tty'.
259 2011-09-16 Joel Brobecker <brobecker@adacore.com>
261 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
263 2011-09-16 Joel Brobecker <brobecker@adacore.com>
265 * ada-lang.h (ada_build_task_list): Remove parameter
267 * ada-tasks.c (ada_build_task_list): Remove parameter
268 `warn_if_null'. Adjust implementation and documentation.
269 (valid_task_id, ada_get_environment_task)
270 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
271 (info_tasks_command): Adjust implementation.
272 (task_command): Likewise.
273 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
274 to ada_build_task_list.
276 2011-09-16 Joel Brobecker <brobecker@adacore.com>
278 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
279 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
280 (ada_tasks_inferior_data_handle): New static global.
281 (get_ada_tasks_inferior_data): New function.
282 (ada_get_task_number, get_task_number_from_id, valid_task_id)
283 (ada_get_environment_task, iterate_over_live_ada_tasks)
284 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
286 (ada_set_current_inferior_known_tasks_addr): New function.
287 (read_known_tasks, ada_build_task_list, short_task_info)
288 (info_tasks, info_task, info_tasks_command, task_command_1)
289 (task_command, ada_task_list_changed): Adjust.
290 (ada_tasks_invalidate_inferior_data): New function.
291 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
292 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
293 * ada-lang.h (struct inferior): Add declaration.
294 (ada_task_list_changed): Update profile.
295 * remote-wtx-pd.c: #include "inferior.h".
296 (switch_to_pd_internal): Update call to ada_task_list_changed.
298 2011-09-16 Joel Brobecker <brobecker@adacore.com>
300 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
301 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
302 (atcb_fieldno): Delete these static globals.
303 (struct ada_tasks_pspace_data): New struct.
304 (ada_tasks_pspace_data_handle): New static global.
305 (get_ada_tasks_pspace_data): New function.
306 (ada_tasks_invalidate_pspace_data): New function.
307 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
308 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
309 (_initialize_tasks): Create this module's per-progspace
312 2011-09-16 Joel Brobecker <brobecker@adacore.com>
314 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
316 2011-09-16 Tristan Gingold <gingold@adacore.com>
318 * fork-child.c (fork_inferior): Update comment. Use alloca
319 instead of xmalloc for argv. Move len and shell_command
320 declarations in the block where they are used.
321 Only call execvp. Factorize failure code.
323 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
326 * parse.c (write_exp_elt): Change argument to pass a pointer of union
327 `exp_element' instead of an element of the same and make the function
329 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
330 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
331 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
332 Change argument of `write_exp_elt' function call.
333 Remove extra spaces from comments.
334 * parser-defs.h (write_exp_elt): Remove prototype.
336 2011-09-15 Paul Koning <paul_koning@dell.com>
338 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
339 count of item appended to list.
340 * python/py-type.c (typy_fields): Likewise.
342 2011-09-15 Paul Koning <paul_koning@dell.com>
344 * MAINTAINERS (Write After Approval): Add myself to the list.
346 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
349 * linux-fork.c (checkpoint_command): Disallow checkpointing of
350 processes with multiple threads.
351 (inf_has_multiple_thread_cb): New function.
352 (inf_has_multiple_threads): New function.
354 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
356 PR Python/12692 Add gdb.selected_inferior() to Python interface.
357 * python/py-inferior.c (GdbMethods): New Python method definition.
359 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
361 Handle multiple breakpoint hits in Python interface:
362 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
363 variable to breakpoints.
364 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
365 bps instead of single breakpoint. Fix some space typos.
366 * python/py-stopevent.c (create_breakpoint_event_object): Rename
367 variable to breakpoints.
369 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
371 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
372 note if the breakpoint is internal.
374 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
376 * MAINTAINERS (Write After Approval): Add myself to the list
378 2011-09-14 Pedro Alves <pedro@codesourcery.com>
380 * infrun.c (prepare_for_detach, wait_for_inferior)
381 (fetch_inferior_event): Don't flush the register cache.
382 * remote.c (struct stop_reply) <regcache>: Add comment.
384 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
386 Remove excessive DWARF expressions memory duplication.
387 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
389 (indirect_pieced_value): Remove variable result. Remove variable
390 back_to and its use for baton.data.
391 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
393 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
394 Update the function comment.
396 2011-09-13 Pedro Alves <pedro@codesourcery.com>
398 * inferior.h (ALL_INFERIORS): New.
399 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
400 for a stopped thread.
401 (thread_db_find_new_threads): Look for threads in all inferiors.
403 2011-09-13 Pedro Alves <pedro@codesourcery.com>
405 * breakpoint.c (update_watchpoint): Handle the case of the
406 watchpoint to update not being in the breakpoint list yet.
407 (hw_watchpoint_use_count): New, factored out from
408 hw_watchpoint_used_count.
409 (hw_watchpoint_used_count): Rename to ...
410 (hw_watchpoint_used_count_others): ... this. Add `except'
411 parameter. Don't count resources of `except'. Use
412 hw_watchpoint_use_count.
414 2011-09-13 Pedro Alves <pedro@codesourcery.com>
416 * gdbthread.h (enum thread_state): Moved here.
417 (struct thread_info): Rename `executing_' field to `executing' and
419 * thread.c (enum thread_state): Moved to gdbthread.h.
420 (new_thread, add_thread_silent, delete_thread_1)
421 (any_live_thread_of_process, thread_alive, set_running)
422 (set_running, is_thread_state, any_running, is_executing)
423 (set_executing, finish_thread_state, print_thread_info)
424 (do_captured_thread_select): Adjust.
426 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
428 Fix compatibility with gcc < 4.3 and non-gcc compilers.
429 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
431 2011-09-12 Pedro Alves <pedro@codesourcery.com>
432 Matt Rice <ratmice@gmail.com>
436 * interps.c (struct interp) <interpreter_out>: Delete field.
437 (interp_new): Remove the data and uiout parameters and adjust.
438 (interp_set): Only set the current_uiout from the interpreter's
439 uiout after initializing the interpreter. Adjust call to
441 (interp_ui_out): Adjust to call procs->ui_out_proc.
442 (interp_data, interp_name): New.
443 * interps.h (interp_init_ftype): Add `self' parameter.
444 (interp_ui_out_ftype): New typedef.
445 (struct interp_procs) <ui_out_proc>: New method pointer.
446 (interp_new): Remove the data and uiout parameters.
447 (interp_data, interp_name): Declare.
448 * tui/tui-interp.c (tui_init): Adjust prototype.
450 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
451 tui_out here. Adjust call to interp_new.
452 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
453 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
455 (_initialize_cli_interp): Install it. Adjust call to interp_new.
456 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
457 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
458 Initialize mi->uiout depending on the mi_version as extracted from
459 the interpreter's name.
461 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
462 interp_new. Don't allocate the ui_out's of the interpreters here.
464 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
466 * solib.c (solib_used): New function.
467 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
468 by another so_list object before freeing it.
470 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
473 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
476 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
479 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
480 (amd64_skip_xmm_prologue): ... this new function. Describe its
481 parameters. No longer use amd64_prologue_line_bug.
482 * defs.h (producer_is_gcc_ge_4): New declaration.
483 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
484 (process_full_comp_unit): Update its caller. Remove
485 amd64_prologue_line_bug initialization.
486 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
487 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
489 2011-09-09 Pedro Alves <pedro@codesourcery.com>
491 * linux-nat.h (enum resume_kind): New.
492 (struct lwp_info) <last_resume_kind>: New field.
493 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
494 resume_stop on the new lwp.
495 (add_lwp): Set last_resume_kind as resume_continue by default.
496 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
497 (resume_lwp): New, factored out from resume_callback. Also check
498 for pending status in lp->waitstatus.
499 (resume_callback): Reimplement.
500 (resume_clear_callback): Set last_resume_kind as resume_stop.
501 (resume_set_callback): Set last_resume_kind as resume_continue.
502 (linux_nat_resume, linux_handle_extended_wait): Set
504 (running_callback): Also check lp->waitstatus for pending events.
505 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
507 (stop_and_resume_callback): Don't re-resume if the core wanted the
508 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
509 using an invalidated pointer.
510 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
511 SIGSTOPs if the core wanted the LWP to stop.
512 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
513 wanted the lwp to stop. If the core wanted the lwp to stop, and
514 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
515 of TARGET_SIGNAL_STOP.
516 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
517 here. Instead, signal the lwp, and set the last_resume_kind to
520 2011-09-09 Pedro Alves <pedro@codesourcery.com>
522 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
523 -1 (error), if the lwp exits right after attaching.
525 2011-09-08 Doug Evans <dje@google.com>
527 * py-cmd.c: Some minor formatting fixes.
528 (gdbpy_parse_command_name): Rename text arg to name, make const.
530 * python-internal.h (gdbpy_parse_command_name): Update.
532 * cli/cli-decode.c (add_cmd): Add comment.
534 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
537 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
538 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
539 * dwarf2read.c (process_full_comp_unit): Initialize
540 amd64_prologue_line_bug.
541 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
543 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
545 Fix TUI screen corruption.
546 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
549 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
551 * findvar.c (read_var_value): Never return NULL, throw an error
552 instead. Update the function comment. State symbol name in the error
554 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
556 * stack.c (print_frame_args): Likewise.
557 * valops.c (value_of_variable): Likewise.
559 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * stack.c (print_frame_args): New variable except. Wrap
562 read_var_value and common_val_print into TRY_CATCH.
564 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
566 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
567 caller to value_of_this.
568 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
570 * valops.c (value_of_this): Remove parameter complain and variable ret.
571 Update function comment. Never return NULL by this code.
572 (value_of_this_silent): New function.
573 * value.h (value_of_this): Remove parameter complain.
574 (value_of_this_silent): New declaration.
576 2011-09-07 Yao Qi <yao@codesourcery.com>
578 * gdbthread.h (struct thread_info): Remove fields
579 `stepping_through_solib_after_catch' and
580 `stepping_through_solib_catchpoints'.
581 * infrun.c (init_thread_stepping_state): Update.
582 (process_event_stop_test, currently_stepping): Update.
583 (currently_stepping_or_nexting_callback): Update.
585 2011-09-07 Yao Qi <yao@codesourcery.com>
587 * gdbthread.h (struct thread_info): Comment on field
588 `step_after_step_resume_breakpoint'.
590 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
592 * remote.c (remote_console_output): Reindent.
594 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
596 * frame.c (has_stack_frames): Check for currently selected
599 2011-09-06 Pedro Alves <pedro@codesourcery.com>
601 * event-top.h (MAXPROMPTS, struct prompts): Delete.
602 (set_async_annotation_level, set_async_prompt, pop_prompt)
603 (push_prompt, new_async_prompt): Delete declarations.
604 * top.h (get_prompt, set_prompt): Change prototype.
605 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
607 * top.c (command_loop):
608 (top_prompt): New global.
609 (get_prefix, set_prefix, get_suffix, ): Delete.
610 (get_prompt, set_prompt): Rewrite.
611 (show_new_async_prompt): Rename to ...
612 (show_prompt): ... this.
613 (init_main): Adjust. Don't handle --annotate=2 here.
614 * event-top.c (new_async_prompt): Delete.
615 (the_prompts): Delete.
616 (more_to_come): Make static.
617 (display_gdb_prompt): Use top_level_prompt() to compute the top
618 level prompt, and don't notify the before_prompt observers
619 directly here. Always trick readline into not trying to display
620 the prompt if sync_execution and displaying the primary prompt.
621 If displaying a local/secondary prompt, always show it, even if
622 sync_execution is set.
623 (change_annotation_level): Delete.
624 (top_level_prompt): New, based on change_annotation_level.
625 (push_prompt, pop_prompt): Delete.
626 (async_disable_stdin): No longer pushes prompt.
627 (command_line_handler): No longer pushes or pops prompt. If more
628 input is expected, call display_gdb_prompt with an explicit empty
630 (async_stop_sig): Adjust.
631 (set_async_annotation_level, set_async_prompt): Delete.
632 * python/python.c (before_prompt_hook): Adjust.
634 2011-09-05 Pedro Alves <pedro@codesourcery.com>
638 * infrun.c (fetch_inferior_event): Check if there's a selected
639 thread before checking if the selected thread is executing.
641 2011-09-05 Pedro Alves <pedro@codesourcery.com>
643 * inf-loop.c (execute_command): Don't check if the current thread
644 if running before synchronously waiting for command completion.
645 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
647 (normal_stop): Call async_enable_stdin here.
648 * inf-loop.c (inferior_event_handler): Don't call
649 async_enable_stdin, nor handle "set exec-done-display" here.
651 2011-09-04 Joel Brobecker <brobecker@adacore.com>
655 2011-09-04 Joel Brobecker <brobecker@adacore.com>
657 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
659 2011-09-04 Joel Brobecker <brobecker@adacore.com>
661 * NEWS: Add entry for OpenBSD/NetBSD build failure.
663 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
665 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
667 2011-09-02 Matt Rice <ratmice@gmail.com>
670 * event-top.c (cli_command_loop): Replace readline setup with
671 direct call to display_gdb_prompt.
672 (display_gdb_prompt): Do not call observer mechanism during
673 synchronous execution.
675 2011-09-02 Pedro Alves <pedro@codesourcery.com>
677 * linux-nat.c (in_pid_list_p): New.
678 (linux_record_stopped_pid): Delete.
679 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
680 already attached to the LWP. Return an indication if so.
681 (linux_nat_filter_event): Adjust.
682 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
683 returning an indication to ignore this thread.
685 2011-09-02 Pedro Alves <pedro@codesourcery.com>
687 * top.c: Include interps.h.
688 (execute_command): If the target can async, but the interpreter is
689 in sync mode, synchronously wait for the command to finish before
691 (execute_command_to_string): Force the interpreter to sync mode.
692 * infrun.c: Include interps.h.
693 (fetch_inferior_event): Don't restore the prompt yet if the
694 interpreter is in sync mode.
695 * interps.c (interpreter_async): New global.
696 * interps.h (interpreter_async): Declare.
697 * inf-loop.c: Include interps.h.
698 (inferior_event_handler): Don't print the language change or run
699 breakpoint commands yet if the interpreter in is sync mode.
700 * main.c (captured_command_loop): Flip the interpreter to async
702 * cli/cli-script.c: Include interps.h.
703 (execute_user_command, while_command, if_command): Force the
704 interpreter to sync mode.
705 * python/python.c: Include interps.h.
706 (python_command, execute_gdb_command): Force the interpreter to
709 2011-09-02 Pedro Alves <pedro@codesourcery.com>
711 * value.c (show_convenience): Catch errors thrown while printing
712 each internal variable.
713 * infrun.c (validate_siginfo_access): New function.
714 (siginfo_value_read, siginfo_value_write): Call it.
716 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
719 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
720 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
723 2011-08-29 Yao Qi <yao@codesourcery.com>
725 * solib-dsbt.c (bfd_lookup_symbol): Removed.
727 (enable_break2): Update caller.
728 * solib-frv.c (bfd_lookup_symbol): Removed.
730 (enable_break2): Update caller.
731 * solib-pa64.c (bfd_lookup_symbol): Removed.
733 * solib-svr4.c (bfd_lookup_symbol): Removed.
734 (cmp_name_and_sec_flags): New.
735 (enable_break): Update caller.
736 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
737 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
738 (gdb_bfd_lookup_symbol): New.
739 * solib.h: Functions declarations.
741 2011-08-29 Yao Qi <yao@codesourcery.com>
743 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
746 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
748 Fix TUI stepi on code without symbols.
749 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
752 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
755 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
756 and the static keyword.
757 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
758 Make prefix an array.
759 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
760 * mi/mi-main.c (get_register): Remove stb initialization and the static
763 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
765 Code cleanup - make mi_opt const.
766 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
768 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
769 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
770 (mi_cmd_env_dir): Likewise.
771 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
772 (mi_cmd_target_file_put): Likewise.
773 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
774 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
775 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
776 (mi_valid_noargs): Make opts const.
777 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
778 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
779 (mi_cmd_data_read_memory): Likewise.
780 (mi_cmd_data_read_memory_bytes): Likewise.
781 (mi_cmd_data_write_memory): Likewise.
783 2011-08-26 Matt Rice <ratmice@gmail.com>
785 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
786 bcache_xmalloc, replace bcache_xmalloc with call to
787 psymbol_bcache_init for psymbol_cache.
788 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
790 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
792 * inf-loop.c (inferior_event_handler): Add exception_print in
795 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
797 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
798 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
799 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
800 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
801 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
802 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
803 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
804 * infrun.c (fetch_inferior_event): Call
805 make_bpstat_clear_actions_cleanup.
806 * top.c (execute_command): New variable cleanup_if_error, call
807 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
808 * utils.c (do_bpstat_clear_actions_cleanup)
809 (make_bpstat_clear_actions_cleanup): New functions.
811 2011-08-26 Pedro Alves <pedro@codesourcery.com>
813 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
814 either the parent or the child forks. Rename a couple locals.
816 2011-08-26 Pedro Alves <pedro@codesourcery.com>
818 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
819 library call. Avoid reading the `status' local if all waitpid
822 2011-08-26 Pedro Alves <pedro@codesourcery.com>
824 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
825 opening /proc/PID/task always succeeds.
827 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
829 * linespec.c (symtab_from_filename): Check for the end of string.
831 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
834 * varobj.c (cplus_describe_child): Add the keyword
835 'class' to the output of the method when dealing
836 with a cast to a base class.
838 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
840 No functionality change.
841 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
842 function comment a reference, new variables tp and bs, move here code
843 from throw_exception.
844 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
845 describe it in the comment.
846 * exceptions.c (throw_exception): Remove variable tp, move the code for
847 bpstat_clear_actions to bpstat_clear_actions.
849 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
851 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
852 * linux-nat.c: Include linux-procfs.h.
853 (linux_proc_get_tgid): Move to ...
854 * common/linux-procfs.c: ... here. New file.
855 * common/linux-procfs.h: New file.
856 * linux-thread-db.c: Include linux-procfs.h.
857 * Makefile.in: Update dependencies.
858 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
859 * config/arm/linux.mh: Likewise.
860 * config/i386/linux.mh: Likewise.
861 * config/i386/linux64.mh: Likewise.
862 * config/ia64/linux.mh: Likewise.
863 * config/m32r/linux.mh: Likewise.
864 * config/m68k/linux.mh: Likewise.
865 * config/mips/linux.mh: Likewise.
866 * config/pa/linux.mh: Likewise.
867 * config/pa/linux.mh: Likewise.
868 * config/powerpc/linux.mh: Likewise.
869 * config/powerpc/ppc64-linux.mh: Likewise.
870 * config/powerpc/spu-linux.mh: Likewise.
871 * config/sparc/linux.mh: Likewise.
872 * config/sparc/linux64.mh: Likewise.
873 * config/xtensa/linux.mh: Likewise.
875 2011-08-24 Hui Zhu <teawater@gmail.com>
877 * tracepoint.c (cond_string_is_same): New function.
878 (find_matching_tracepoint): Add condition check
879 by cond_string_is_same.
881 2011-08-23 Josh Matthews <josh@joshmatthews.net>
883 Fix build error in Darwin port.
884 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
886 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
889 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
890 (command_line_is_silent): New function.
891 (bpstat_do_actions_1): No longer use commands_left, use
892 command_line_is_silent for commands.
893 (bpstat_alloc): Remove clearing of commands_left.
894 (bpstat_stop_status): Remove initialization of commands_left, use
895 command_line_is_silent.
896 * breakpoint.h (struct bpstats): Remove commands_left.
898 2011-08-18 Keith Seitz <keiths@redhat.com>
901 * cp-name-parser.y (struct demangle_info): Remove unused
904 (allocate_info): Change return type to struct demangle_info *.
905 Always allocate a new demangle_info.
906 Remove unused PREV pointer.
907 (cp_new_demangle_parse_info): New function.
908 (cp_demangled_name_parse_free): New function.
909 (do_demangled_name_parse_free_cleanup): New function.
910 (make_cleanup_cp_demangled_name_parse_free): New function.
911 (cp_demangled_name_to_comp): Change return type to
912 struct demangle_parse_info *.
913 Allocate a new storage for each call.
914 (main): Update usage for cp_demangled_name_to_comp
916 * cp-support.h (struct demangle_parse_info): New structure.
917 (cp_demangled_name_to_comp): Update API change for
919 (cp_new_demangle_parse_info): Declare.
920 (make_cleanup_cp_demangled_name_parse_free): New declaration.
921 (cp_demangled_name_parse_free): Declare.
922 * cp-support.c (cp_canonicalize_string): Update API
923 change for cp_demangled_name_to_comp.
924 (mangled_name_to_comp): Likewise.
925 Return struct demangle_parse_info, too.
926 (cp_class_name_from_physname): Update mangled_name_to_comp
928 (method_name_from_physname): Likewise.
929 (cp_func_name): Update API change for cp_demangled_name_to_comp.
930 (cp_remove_params): Likewise.
931 * python/py-type.c (typy_legacy_template_argument): Likewise.
933 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
934 (cp_merge_demangle_parse_infos): Declare.
935 * cp-support.c (ignore_typedefs): New file global.
936 (copy_string_to_obstack): New function.
937 (inspect_type): New function.
938 (replace_typedefs): New function.
939 (replace_typedefs_qualified_name): New function.
940 (cp_canonicalize_string_no_typedefs): New function.
941 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
942 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
943 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
944 instead of cp_canonicalize_string.
945 (find_method): Likewise.
946 (decode_compound): Before looking up the name, call
947 cp_canonicalize_string_no_typedefs.
948 (decode_variable): Likewise.
950 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
951 Tom Tromey <tromey@redhat.com>
952 Matt Rice <ratmice@gmail.com>
954 * python/lib/gdb/prompt.py: New file.
955 * python/lib/gdb/command/prompt.py: New file.
956 * NEWS: Document set extended-prompt and gdb.prompt library
958 2011-08-16 Yao Qi <yao@codesourcery.com>
960 * tic6x-linux-tdep.c: Move const arrays definition from here...
961 * tic6x-tdep.c: to here ...
963 2011-08-14 Yao Qi <yao@codesourcery.com>
965 * NEWS: New port to Texas Instruments TMS320C6x.
967 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
968 Bernd Schmidt <bernds@codesourcery.com>
969 Yao Qi <yao@codesourcery.com>
971 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
972 * solib-dsbt.c: New file. Support DSBT shared object.
973 * tic6x-linux-tdep.c: New file.
974 * tic6x-tdep.c: New file.
975 * tic6x-tdep.h: New file.
977 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
978 Yao Qi <yao@codesourcery.com>
980 * remote.c (PACKET_qXfer_fdpic): New enum value.
981 (remote_protocol_features): Add qXfer:fdpic:read packet.
982 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
983 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
984 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
986 2011-08-14 Yao Qi <yao@codesourcery.com>
988 Target description for tic6x.
989 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
990 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
991 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
992 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
993 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
994 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
995 * features/tic6x-c64xp-linux.xml: New.
996 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
997 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
998 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
999 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
1000 * regformats/tic6x-c64xp.dat,
1001 regformats/tic6x-c62x-linux.dat: Generated.
1002 * regformats/tic6x-c64x-linux.dat,
1003 regformats/tic6x-c64xp-linux.dat: Generated.
1004 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
1005 features/tic6x-*.c files.
1006 Add regformats/tic6x-*.dat files.
1008 2011-08-12 Doug Evans <dje@google.com>
1010 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
1011 * python/py-symbol.c (sympy_get_type): New function.
1012 (symbol_object_getset): Add "type".
1014 2011-08-12 Pedro Alves <pedro@codesourcery.com>
1018 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
1020 (tui_show_register_group): Don't store a byte buffer in the data
1022 (tui_register_format): Skip registers with an empty name.
1023 (tui_get_register): Store a struct value in the data element's
1024 value field instead of a byte buffer holding the raw register
1025 contents. Account for optimized-out and unavailable registers
1026 when comparing register contents.
1028 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1030 * printcmd.c (current_display_number): Update comment.
1031 (disable_current_display_cleanup): Delete.
1032 (do_one_display): Use make_cleanup_restore_integer. Gracefully
1033 catch errors thrown while evaluating and printing the display.
1035 2011-08-09 Tom Tromey <tromey@redhat.com>
1037 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
1039 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1041 * elfread.c (elf_symtab_read): Rework comments.
1042 * maint.c (maintenance_command): Ditto.
1043 * somread.c (som_symtab_read): Ditto.
1044 * solib.c (solib_find, solib_map_sections, update_solib_list)
1045 (solib_add, info_sharedlibrary_command, solib_name_from_address)
1046 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1047 (sharedlibrary_command, no_shared_libraries): Ditto.
1048 * solib-irix.c (locate_base, disable_break, enable_break)
1049 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1050 (irix_current_sos, irix_open_symbol_file_object)
1051 (irix_special_symbol_handling): Ditto.
1052 * solib-sunos.c (locate_base, first_link_map_member)
1053 (sunos_current_sos, disable_break, enable_break)
1054 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1056 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1057 (open_symbol_file_object, svr4_current_sos, enable_break)
1058 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1060 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1061 (frv_current_sos, enable_break, frv_special_symbol_handling)
1062 (frv_solib_create_inferior_hook): Ditto.
1063 * solist.h (struct target_so_ops): Extend the comments of the
1064 special_symbol_handling, current_sos and open_symbol_file_object
1067 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
1069 * python/lib/gdb/__init__.py: Auto-load files in command and
1070 function directories.
1071 * python/python.c (finish_python_initialization): Use
1073 * python/lib/gdb/command/pretty_printers.py: Self register
1075 * NEWS: Document auto-loading.
1077 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1080 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1081 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
1083 2011-08-08 Tom Tromey <tromey@redhat.com>
1085 * breakpoint.c (clean_up_filters): Remove.
1086 (catch_syscall_split_args): Use VEC_cleanup.
1088 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1090 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1091 (main): Uncomment "Demangling error\n".
1093 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1095 * solib-target.c (segment_attributes): Make them static.
1096 (section_attributes, library_children, library_attributes): Likewise.
1097 (library_list_children, library_list_attributes): Likesise.
1098 (library_list_elements): Likewise.
1100 2011-08-05 Pedro Alves <pedro@codesourcery.com>
1102 * exceptions.c (throw_exception): Don't disable the current
1104 * printcmd.c (disable_current_display_cleanup): New function.
1105 (do_one_display): Install a cleanup to disable the current display
1106 if doing the display throws.
1108 2011-08-05 Eli Zaretskii <eliz@gnu.org>
1110 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1111 initialization of the tp_new member to the corresponding
1112 gdbpy_initialize_* function.
1113 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1114 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1115 * python/py-function.c (gdbpy_initialize_functions): Likewise.
1116 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1117 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1119 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1122 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1123 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1124 references to current_uiout.
1126 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1128 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1129 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1130 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1131 * top.c (gdb_readline_wrapper): Adjust.
1132 * tui/tui-interp.c (tui_command_loop):
1133 (_initialize_tui_interp): Don't install it.
1135 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1137 * ui-out.h (uiout): Rename to ...
1138 (current_uiout): ... this.
1139 * ui-out.c (uiout): Rename to ...
1140 (current_uiout): ... this.
1141 * ada-lang.c (print_it_exception, print_one_exception)
1142 (print_mention_exception): Adjust.
1143 * breakpoint.c (watchpoint_check): Adjust.
1144 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1145 (default_collect_info, watchpoints_info, print_one_catch_fork)
1146 (print_one_catch_vfork, print_one_catch_syscall)
1147 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1148 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1149 (print_it_watchpoint, print_mention_watchpoint)
1150 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1151 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1152 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1153 (bkpt_print_mention, momentary_bkpt_print_it)
1154 (tracepoint_print_mention, update_static_tracepoint)
1155 (tracepoints_info, save_breakpoints): Adjust.
1156 * cli-out.c (field_separator): Adjust.
1157 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1158 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1159 * frame.c (get_current_frame): Adjust.
1160 * infcmd.c (run_command_1, print_return_value): Adjust.
1161 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1162 * infrun.c (print_end_stepping_range_reason): Adjust.
1163 (print_signal_exited_reason, print_exited_reason): Adjust.
1164 (print_signal_received_reason, print_no_history_reason): Adjust.
1165 * interps.c (interp_set): Adjust.
1166 * osdata.c (info_osdata_command): Adjust.
1167 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1168 * remote-fileio.c (remote_fileio_request): Adjust.
1169 * remote.c (show_remote_cmd): Adjust.
1170 * solib.c (info_sharedlibrary_command): Adjust.
1171 * source.c (print_source_lines_base): Adjust.
1172 * stack.c (print_stack_frame): Adjust.
1173 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1174 * symfile-mem.c (add_vsyscall_page): Adjust.
1175 * symfile.c (load_progress, generic_load)
1176 (print_transfer_performance): Adjust.
1177 * thread.c (info_threads_command, restore_selected_frame)
1178 (thread_command): Adjust.
1179 * top.c (make_cleanup_restore_ui_file): Adjust.
1180 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1181 (print_one_static_tracepoint_marker): Adjust.
1182 * cli/cli-cmds.c (print_disassembly): Adjust.
1183 * cli/cli-decode.c (print_doc_line): Adjust.
1184 * cli/cli-interp.c (safe_execute_command): Adjust.
1185 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1186 (handle_redirections): Adjust.
1187 * cli/cli-script.c (show_user_1): Adjust.
1188 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1189 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1190 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1191 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1192 (mi_cmd_env_dir): Adjust.
1193 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1194 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1195 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1196 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1197 (list_args_or_locals): Adjust.
1198 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1199 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1200 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1201 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1202 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1203 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1204 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1205 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1206 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1207 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1208 (list_available_thread_groups, mi_cmd_list_thread_groups)
1209 (mi_cmd_data_list_register_names)
1210 (mi_cmd_data_list_changed_registers)
1211 (mi_cmd_data_list_register_values, get_register)
1212 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1213 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1214 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1215 (mi_execute_command, mi_load_progress): Adjust.
1216 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1217 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1219 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1220 * tui/tui-interp.c (tui_command_loop): Adjust.
1221 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1223 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1225 * exceptions.c (struct catcher): Remove saved_uiout field.
1226 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1227 no longer save/resvore the global ui_out builder.
1228 (catch_exceptions_with_msg): Save/override/restore the global
1229 ui_out builder manually instead of relying on TRY_CATCH to do it.
1230 (catch_errors): Save/restore the global ui_out builder manually
1231 instead of relying on TRY_CATCH to do it.
1232 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1234 (TRY_CATCH): Adjust.
1235 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1236 the global ui_out builder manually instead of relying on TRY_CATCH
1239 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1241 * breakpoint.c (update_global_location_list): Ensure
1242 invariant 'first loc marked not duplicated and inserted,
1243 following locs marked duplicated/not inserted' is respected
1244 for multiple locations at the same address.
1245 (unduplicated_should_be_inserted) New function.
1246 (swap_insertion) New function.
1248 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1250 * stack.c (print_frame_arguments_choices): Comment typo fix.
1252 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1255 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1256 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1257 argument. Update callers.
1259 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1262 * doublest.c (convert_doublest_to_floatformat): Pass correct
1263 mantissa length to put_field.
1265 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1267 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1268 exception_print code path.
1269 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1270 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1271 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1273 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1276 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1277 Remove, merge them into ...
1278 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1279 variable args and its initialization.
1280 (struct print_args_args, print_args_stub): Remove, merge them into
1282 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1284 (do_gdb_disassembly): ... here. Remove variable args and its
1286 (print_frame): Remove variable args and its initialization, new
1287 variable gdbarch and numargs (from print_args_stub), inline here
1288 print_args_stub with a TRY_CATCH.
1289 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1291 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1292 New variable e, remove variable btargs and its initialization.
1294 2011-08-01 Tristan Gingold <gingold@adacore.com>
1296 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1298 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1300 * breakpoint.c (insert_bp_location): Document return value.
1301 (insert_breakpoint_locations): Fix documentation.
1302 (remove_breakpoints): Add documentation.
1304 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1306 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1307 argument. Update callers.
1309 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1311 * stack.c (print_frame_info): Comment typo fix.
1313 2011-07-29 Sterling Augustine <saugustine@google.com>
1315 * MAINTAINERS (Write After Approval): Add myself to the list.
1317 2011-07-29 Tom Tromey <tromey@redhat.com>
1319 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1320 (library_list_start_segment): Update.
1321 (library_list_start_section): Update.
1323 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1325 * varobj.c (value_get_print_value): Move hint check later into the
1326 function. Comment function. Free thevalue before reusing it.
1328 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 Pedro Alves <pedro@codesourcery.com>
1331 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1333 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1334 Assert the result kind.
1335 * value.h (value_one): Remove parameter lv.
1337 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1339 Fix crash on lval_computed values.
1340 * valops.c (value_zero): Use not_lval for lval_computed.
1342 2011-07-27 Tom Tromey <tromey@redhat.com>
1344 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1345 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1347 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1350 "ptype" by their typedefs difference.
1352 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1354 * dwarf2expr.c (ctx_no_read_reg): New function.
1355 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1356 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1357 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1358 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1360 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1362 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1363 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1365 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1366 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1367 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1368 (ctx_no_get_base_type): Move the functions here.
1369 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1370 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1371 (ctx_no_get_base_type): New declarations.
1373 2011-07-27 Tom Tromey <tromey@redhat.com>
1375 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1377 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1378 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1380 2011-07-26 Sterling Augustine <saugustine@google.com>
1382 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1384 (dump_bfd_file): Likewise.
1386 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1388 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1389 (remote_hw_watchpoint_length_limit): New variable.
1390 (_initialize_remote) add set,show cmds for this new variable.
1391 * gdb.texinfo: document these new commands.
1392 * NEWS: Mention these new commands.
1394 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1396 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1397 true for software watchpoints.
1399 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1403 2011-07-26 Tom Tromey <tromey@redhat.com>
1405 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1406 * dwarf2read.c (read_indirect_string_at_offset): New function.
1407 (read_indirect_string): Use it.
1408 (dwarf_decode_macro_bytes): New function, taken from
1409 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1410 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1411 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1413 (struct dwarf2_per_objfile) <macro>: New field.
1414 (dwarf2_elf_names): Add .debug_macro.
1415 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1416 (dwarf2_locate_sections): Handle new section.
1417 (read_file_scope): Handle DW_AT_GNU_macros.
1418 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1420 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1422 * NEWS: Mention dcache configuration.
1423 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1424 (dcache_size, dcache_line_size): New variables.
1425 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1426 (struct dcache_block): Make it expandable.
1427 (struct dcache_struct): New field.
1428 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1429 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1430 (dcache_poke_byte, dcache_print_line): Adjust.
1431 (set_dcache_size, set_dcache_line_size): New functions.
1432 (set_dcache_command, show_dcache_command): New functions.
1433 (_initialize_dcache): Add new commands.
1435 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1437 * progspace.h (struct program_space): Add solib_add_generation.
1438 * infcmd.c (post_create_inferior): Only call solib_add if not
1440 * solib.c (solib_add): Increment solib_add_generation.
1442 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1444 Fix implicit pointer offsets.
1445 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1448 2011-07-25 Tom Tromey <tromey@redhat.com>
1450 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1452 (ada_exception_sal): Make 'ops' const.
1453 (ada_decode_exception_location): Likewise.
1454 (ada_decode_assert_location): Likewise.
1455 (catch_assert_command): Update.
1456 (catch_ada_exception_command): Update.
1457 (create_ada_exception_catchpoint): Make 'ops' const.
1458 * breakpoint.c (set_raw_breakpoint_without_location)
1459 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1461 (create_internal_breakpoint): Update.
1462 (init_raw_breakpoint_without_location): Make 'ops' const.
1463 (init_raw_breakpoint, init_catchpoint)
1464 (create_fork_vfork_event_catchpoint)
1465 (create_syscall_event_catchpoint, init_breakpoint_sal)
1466 (create_breakpoint_sal, create_breakpoints_sal)
1467 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1468 * breakpoint.h (struct breakpoint) <ops>: Now const.
1469 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1472 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1474 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1476 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1478 * breakpoint.h (print_recreate_thread): Declare.
1479 (struct breakpoint): Move step_count, pass_count,
1480 number_on_target, static_trace_marker_id,
1481 static_trace_marker_id_idx ...
1482 (struct tracepoint): ... to this new struct.
1483 (get_tracepoint, get_tracepoint_by_number_on_target)
1484 (get_tracepoint_by_number): Change return type to struct
1486 * breakpoint.c (is_tracepoint_type): New, factored out from
1488 (is_tracepoint): Adjust.
1489 (print_one_breakpoint_location): Cast to struct tracepoint as
1490 necessary, and adjust.
1491 (print_recreate_catch_fork, print_recreate_catch_vfork)
1492 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1493 print_recreate_thread.
1494 (init_breakpoint_sal): New, factored out from
1495 create_breakpoint_sal.
1496 (create_breakpoint_sal): Reimplement.
1497 (create_breakpoint): Allocate a struct tracecepoint if the caller
1498 wanted a tracepoint. Use init_breakpoint_sal and
1500 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1501 (print_recreate_masked_watchpoint)
1502 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1503 (tracepoint_print_one_detail): Adjust.
1504 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1505 Dump the pass count here.
1506 (update_static_tracepoint): Adjust.
1507 (addr_string_to_sals): Adjust.
1508 (create_tracepoint_from_upload): Adjust. Change return type to
1509 struct tracepoint pointer.
1510 (trace_pass_set_count): Change parameter type to struct tracepoint
1511 pointer, and adjust.
1512 (trace_pass_command): Adjust.
1513 (get_tracepoint, get_tracepoint_by_number_on_target)
1514 (get_tracepoint_by_number): Change return type to struct
1515 tracepoint pointer, and adjust.
1516 (print_recreate_thread): New, factored out from save_breakpoints.
1517 (save_breakpoints): Don't print thread and task and passcount
1519 * remote.c (remote_download_tracepoint): Adjust.
1520 * tracepoint.c (trace_actions_command, validate_actionline)
1521 (start_tracing, tfind_1, trace_find_tracepoint_command)
1522 (trace_dump_command): Adjust.
1523 (find_matching_tracepoint): Change return type to struct
1524 tracepoint pointer, and adjust.
1525 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1526 (tfile_trace_find, tfile_fetch_registers): Adjust.
1527 * tracepoint.h (create_tracepoint_from_upload): Change return type
1528 to struct tracepoint pointer.
1529 * ada-lang.c (print_recreate_exception): Call
1530 print_recreate_thread.
1531 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1533 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1535 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1536 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1537 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1538 watchpoint_thread, watchpoint_triggered ...
1539 (struct watchpoint): ... to this new struct.
1540 (is_watchpoint): Declare.
1541 (install_breakpoint): Add new `internal' parameter.
1542 * breakpoint.c (is_watchpoint): Delete declaration.
1543 (set_breakpoint_condition): Handle watchpoints.
1544 (is_watchpoint): Make public.
1545 (watchpoint_in_thread_scope): Change parameter type to struct
1547 (watchpoint_del_at_next_stop): Change parameter type to struct
1548 watchpoint. Remove assertion. Adjust.
1549 (update_watchpoint): Ditto.
1550 (insert_breakpoints, breakpoint_init_inferior)
1551 (watchpoints_triggered, watchpoint_check)
1552 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1553 (bpstat_stop_status, print_one_breakpoint_location)
1554 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1555 to struct watchpoint as necessary, and adjust.
1556 (install_breakpoint): Add `internal' argument. If true, don't
1557 mention the new breakpoint. Use set_breakpoint_number.
1558 (create_fork_vfork_event_catchpoint)
1559 (create_syscall_event_catchpoint): Adjust.
1560 (dtor_watchpoint): New.
1561 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1562 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1563 (print_it_watchpoint, print_mention_watchpoint)
1564 (print_recreate_watchpoint, insert_masked_watchpoint)
1565 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1566 (print_one_detail_masked_watchpoint)
1567 (print_mention_masked_watchpoint)
1568 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1569 necessary, and adjust.
1570 (watch_command_1): Allocate and initialize a struct watchpoint
1571 instead of a struct breakpoint. Use install_breakpoint.
1572 (catch_exec_command_1): Adjust.
1573 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1575 (delete_breakpoint, enable_breakpoint_disp)
1576 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1577 as necessary, and adjust.
1578 (initialize_breakpoint_ops): Install dtor_watchpoint as
1579 watchpoints' dtor method.
1580 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1581 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1582 to struct watchpoint as necessary, and adjust.
1584 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1586 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1587 the the base class ops table.
1588 (catch_exception_breakpoint_ops)
1589 (catch_exception_unhandled_breakpoint_ops)
1590 (catch_assert_breakpoint_ops): Don't statically initialize.
1591 (initialize_ada_catchpoint_ops): New.
1592 (_initialize_ada_language): Call it.
1593 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1594 (bkpt_breakpoint_ops): Forward declare.
1595 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1596 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1597 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1598 (masked_watchpoint_breakpoint_ops)
1599 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1600 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1601 base class ops table.
1602 (null_re_set, null_check_status, null_works_in_software_mode)
1603 (null_resources_needed, null_print_one_detail): Delete.
1604 (bkpt_dtor): Rename to ...
1605 (base_breakpoint_dtor): ... this. Make static.
1606 (bkpt_allocate_location): Rename to ...
1607 (base_breakpoint_allocate_location): ... this. Make static.
1608 (base_breakpoint_re_set): New.
1609 (internal_error_pure_virtual_called): New.
1610 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1611 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1612 (base_breakpoint_works_in_software_mode)
1613 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1614 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1615 (base_breakpoint_print_recreate): New functions.
1616 (base_breakpoint_ops): New global.
1617 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1618 (bkpt_breakpoint_hit): Make static.
1619 (bkpt_check_status): Delete.
1620 (bkpt_resources_needed): Make static.
1621 (bkpt_works_in_software_mode): Delete.
1622 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1624 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1625 (momentary_breakpoint_ops): Don't statically initialize.
1626 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1628 (tracepoint_insert_location, tracepoint_remove_location)
1629 (tracepoint_check_status, tracepoint_works_in_software_mode)
1630 (tracepoint_print_it): Delete.
1631 (tracepoint_breakpoint_ops): Don't statically initialize.
1632 (initialize_breakpoint_ops): New.
1633 (_initialize_breakpoint): Call it.
1634 * breakpoint.h (null_re_set, null_works_in_software_mode)
1635 (null_resources_needed, null_check_status, null_print_one_detail):
1636 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1637 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1638 (bkpt_check_status, bkpt_resources_needed)
1639 (bkpt_works_in_software_mode, bkpt_print_it)
1640 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1641 Delete declarations.
1642 (initialize_breakpoint_ops): Declare.
1644 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1646 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1647 (momentary_bkpt_print_it): Simplify.
1649 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1651 Split internal, momentary and user breakpoints breakpoint_ops
1654 * breakpoint.c (internal_breakpoint_ops)
1655 (momentary_breakpoint_ops): Forward declare.
1656 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1657 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1658 (create_overlay_event_breakpoint)
1659 (create_std_terminate_master_breakpoint)
1660 (create_exception_master_breakpoint): Create breakpoints with
1661 internal_breakpoint_ops vtable.
1662 (set_longjmp_breakpoint): Create momentary breakpoints with
1663 momentary_breakpoint_ops vtable, using
1664 momentary_breakpoint_from_master.
1665 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1666 (create_solib_event_breakpoint): Create breakpoints with
1667 internal_breakpoint_ops vtable.
1668 (set_momentary_breakpoint): Create breakpoints with
1669 momentary_breakpoint_ops vtable.
1670 (momentary_breakpoint_from_master): New, factored out from
1671 clone_momentary_breakpoint.
1672 (clone_momentary_breakpoint): Adjust.
1673 (watch_command_1): Create scope breakpoints with
1674 momentary_breakpoint_ops vtable.
1675 (bkpt_re_set): Remove handling of internal and momentary
1677 (bkpt_print_mention, bkpt_print_recreate): New.
1678 (bkpt_breakpoint_ops): Adjust.
1679 (internal_bkpt_re_set, internal_bkpt_check_status)
1680 (internal_bkpt_print_it, internal_bkpt_print_mention)
1681 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1682 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1683 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1684 (momentary_bkpt_print_recreate): New.
1685 (momentary_breakpoint_ops): New.
1687 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1689 Implement most breakpoint_ops methods for all breakpoint types,
1690 and move the default handlings to the proper callbacks.
1692 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1693 works_in_software_mode method.
1694 (insert_bp_location): Go through breakpoint_ops->insert_location
1695 for software and hardware watchpoints.
1696 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1698 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1699 for software and hardware watchpoints.
1700 (print_it_typical): Delete.
1701 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1703 (watchpoint_check): Adjust comment.
1704 (bpstat_check_location): Simply always call the breakpoint's
1705 breakpoint_hit method.
1706 (bpstat_stop_status): Always call the breakpoint's check_status
1707 method. Remove special cases for watchpoints and internal event
1708 breakpoints from here (moved to the check_status implementations).
1709 (print_one_breakpoint_location): Assume b->ops is never NULL.
1710 Remove static tracepoint marker id printing from here (moved to
1711 the print_one_detail callback implementation of tracepoints).
1712 (init_bp_location): Assert OPS is never NULL.
1713 (allocate_bp_location): Always call the breakpoint's
1714 allocate_location method, and remove the default code from here.
1715 (free_bp_location): Always call the location's dtor method, and
1716 remove the default code from here.
1717 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1718 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1719 parameter. Pass it down.
1720 (set_raw_breakpoint): Ditto.
1721 (print_it_catch_fork): Adjust to take a bpstat as argument.
1722 (catch_fork_breakpoint_ops): Install methods.
1723 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1724 (catch_vfork_breakpoint_ops): Install methods.
1725 (dtor_catch_syscall): Call the base dtor.
1726 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1727 (catch_syscall_breakpoint_ops): Install methods.
1728 (dtor_catch_exec): Call the base dtor.
1729 (print_it_catch_exec): Adjust to take a bpstat as argument.
1730 (catch_exec_breakpoint_ops): Install methods.
1731 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1732 the breakpoint's resources_needed method, and remove the default
1734 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1736 (clone_momentary_breakpoint): Clone the original's ops.
1737 (mention): Always call the breakpoint's print_mention method, and
1738 remove the default code from here.
1739 (create_breakpoint_sal): Adjust to pass the ops to
1740 set_raw_breakpoint rather than setting it manually.
1741 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1742 ops to set_raw_breakpoint_without_location rather than setting it
1744 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1745 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1746 (ranged_breakpoint_ops): Install methods.
1747 (break_range_command): Adjust to pass the ops to
1748 set_raw_breakpoint rather than setting it manually.
1749 (re_set_watchpoint, breakpoint_hit_watchpoint)
1750 (check_status_watchpoint, resources_needed_watchpoint)
1751 (works_in_software_mode_watchpoint, print_it_watchpoint)
1752 (print_mention_watchpoint, print_recreate_watchpoint): New
1754 (watchpoint_breakpoint_ops): Install new methods.
1755 (print_it_masked_watchpoint): New function.
1756 (masked_watchpoint_breakpoint_ops): Install new methods.
1757 (watch_command_1): Adjust to pass the right breakpoint_ops to
1758 set_raw_breakpoint_without_location rather than setting it
1759 manually later. Record the current pspace.
1760 (print_it_exception_catchpoint): Adjust to take a bpstat as
1762 (gnu_v3_exception_catchpoint_ops): Install new methods.
1763 (say_where): New function.
1764 (null_re_set, null_check_status, null_works_in_software_mode)
1765 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1767 (bp_location_ops): New global.
1768 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1769 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1770 (bkpt_check_status, bkpt_resources_needed)
1771 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1772 (bkpt_print_recreate): New functions.
1773 (bkpt_breakpoint_ops): New global.
1774 (tracepoint_re_set, tracepoint_insert_location)
1775 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1776 (tracepoint_check_status, tracepoint_works_in_software_mode)
1777 (tracepoint_print_it, tracepoint_print_one_detail)
1778 (tracepoint_print_mention, tracepoint_print_recreate): New
1780 (tracepoint_breakpoint_ops): New global.
1781 (delete_breakpoint): Always call the breakpoint's dtor method, and
1782 remove the default handling from here.
1783 (breakpoint_re_set_default): Make static.
1784 (breakpoint_re_set_one): Always call the breakpoints re_set
1785 method, and remove the default handling from here.
1786 (trace_command, ftrace_command, strace_command)
1787 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1788 to create_breakpoint.
1789 (save_breakpoints): Always call the breakpoint's print_recreate
1790 method, and remove the default handling from here.
1792 * ada-lang.c (dtor_exception): Call the base dtor.
1793 (re_set_exception): Call the base method.
1794 (print_it_exception, print_it_catch_exception): Adjust to take a
1796 (catch_exception_breakpoint_ops): Install methods.
1797 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1799 (catch_exception_unhandled_breakpoint_ops): Install methods.
1800 (print_it_catch_assert): Adjust to take a bpstat as argument.
1801 (catch_assert_breakpoint_ops): Install methods.
1803 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1804 to take a bpstat as argument.
1805 (enum print_stop_action): Add describing comments to each enum
1807 (breakpoint_re_set_default): Delete declaration.
1808 (null_re_set, null_works_in_software_mode, null_resources_needed)
1809 (null_check_status, null_print_one_detail): Declare.
1810 (bkpt_breakpoint_ops): Declare.
1811 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1812 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1813 (bkpt_check_status, bkpt_resources_needed)
1814 (bkpt_works_in_software_mode, bkpt_print_it)
1815 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1818 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1819 bkpt_breakpoint_ops.
1820 * python/py-breakpoint.c (bppy_init): Ditto.
1822 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1824 * MAINTAINERS (Write After Approval): Add myself to the list.
1826 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1828 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1830 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1832 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1833 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1834 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1836 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1837 (struct i386_debug_reg_state): New.
1838 (i386_init_dregs): New.
1840 (i386_cleanup_dregs): Use i386_init_dregs.
1841 (i386_show_dr): Add state parameter and adjust.
1842 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1844 (i386_remove_aligned_watchpoint): Likewise.
1845 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1846 (i386_update_inferior_debug_regs): New.
1847 (i386_insert_watchpoint): Work on a local mirror of the debug
1848 registers, and only update the inferior on success.
1849 (i386_remove_watchpoint): Ditto.
1850 (i386_region_ok_for_watchpoint): Adjust.
1851 (i386_stopped_data_address): Adjust.
1852 (i386_insert_hw_breakpoint): Adjust.
1853 (i386_remove_hw_breakpoint): Adjust.
1855 2011-07-22 Tom Tromey <tromey@redhat.com>
1857 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1858 from amd64_pseudo_register_read. Change arguments. Call
1859 mark_value_bytes_unavailable when needed.
1860 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1861 set_gdbarch_pseudo_register_read.
1862 * sentinel-frame.c (sentinel_frame_prev_register): Use
1863 regcache_cooked_read_value.
1864 * regcache.h (regcache_cooked_read_value): Declare.
1865 * regcache.c (regcache_cooked_read_value): New function.
1866 (regcache_cooked_read): Call
1867 gdbarch_pseudo_register_read_value if available.
1868 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1869 (i386_pseudo_register_read): Remove.
1870 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1871 i386_pseudo_register_read. Change arguments. Call
1872 mark_value_bytes_unavailable when needed.
1873 (i386_pseudo_register_read_value): New function.
1874 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1875 not set_gdbarch_pseudo_register_read.
1876 * gdbarch.sh (pseudo_register_read_value): New method.
1877 * gdbarch.c, gdbarch.h: Rebuild.
1878 * findvar.c (value_from_register): Call get_frame_register_value.
1880 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1882 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1884 (display_gdb_prompt): Likewise.
1885 (change_annotation_level): Likewise.
1886 (push_prompt): Likewise.
1887 (pop_prompt): Likewise.
1888 (handle_stop_sig): Use get_prompt with a level.
1889 * top.c (command_loop): Use get_prompt with a level.
1890 (set_async_annotation_level): Use set_prompt with a level.
1891 (get_prefix): New function.
1892 (set_prefix): Ditto.
1893 (set_suffix): Ditto.
1894 (get_suffix): Ditto.
1895 (get_prompt): Accept a level argument.
1896 (set_prompt): Accept a level argument. Free old prompts. Set
1897 new_async_prompt if level is 0.
1898 (init_main): Use set_prompt with a level. Do not set
1900 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1901 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1902 Modify set_prompt, get_prompt to account for levels.
1903 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1905 * python/python.c (before_prompt_hook): Use set_prompt.
1907 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1909 * defs.h: Add guard against inclusion in gdbserver.
1910 (struct ptid, ptid_t): Move to common/ptid.h.
1911 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1912 xsnprintf, internal_error): Move to common/common-utils.h.
1914 * gdb_assert.h: Move into common/ sub-directory.
1915 * gdb_locale.h: Ditto.
1916 * gdb_dirent.h: Ditto.
1917 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1918 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1919 Move into common/ptid.h.
1920 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1921 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1922 Change nomem to malloc_failure.
1923 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1924 * utils.c (nomem): Rename to malloc_failure.
1925 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1926 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1927 (gdb_buildargv): Change nomem to malloc_failure.
1928 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1929 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1930 ptid_is_pid): Move into common/ptid.c.
1931 (initialize_infrun): Delete initialization of null_ptid and
1933 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1934 linux_common_xfer_osdata.
1935 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1936 common/ptid.c and common/buffer.c.
1937 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1938 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1939 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1940 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1942 * common/gdb_assert.h: New.
1943 * common/gdb_dirent.h: New.
1944 * common/gdb_locale.h: New.
1945 * common/buffer.c: New.
1946 * common/buffer.h: New.
1947 * common/ptid.c: New.
1948 * common/ptid.h: New.
1949 * common/xml-utils.c: New.
1950 * common/xml-utils.h: New.
1951 * common/common-utils.c: New.
1952 * common/common-utils.h: New.
1953 * common/linux-osdata.c: New.
1954 * common/linux-osdata.h: New.
1955 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1956 * config/arm/linux.mh (NATDEPFILES): Ditto.
1957 * config/i386/linux.mh (NATDEPFILES): Ditto.
1958 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1959 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1960 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1961 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1962 * config/mips/linux.mh (NATDEPFILES): Ditto.
1963 * config/pa/linux.mh (NATDEPFILES): Ditto.
1964 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1965 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1966 * config/s390/s390.mh (NATDEPFILES): Ditto.
1967 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1968 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1969 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1971 2011-07-21 Matt Rice <ratmice@gmail.com>
1973 * NEWS: Add info macros and info definitions commands.
1975 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1977 * NEWS: Document Python prompt substitution hook.
1979 2011-07-18 Matt Rice <ratmice@gmail.com>
1982 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1983 * macrotab.c (foreach_macro): Ditto.
1984 (foreach_macro_in_scope): Ditto.
1985 * macrocmd.c (print_macro_callback): New function.
1986 (info_macro_command): Move some code to print_macro_definition.
1987 (print_macro_definition): New function.
1988 (print_one_macro): Add new arguments to callback.
1989 (info_definitions_command): New function.
1990 (info_macros_command): Ditto.
1991 (_initialize_macrocmd): Add info macros and info definitions commands.
1992 * symtab.c (add_macro_name): Add new arguments to callback.
1994 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1995 Tom Tromey <tromey@redhat.com>
1997 * top.c (set_prompt): Rewrite to free previous prompt, free
1998 asynch_new_prompt and set both on new prompts.
1999 * event-top.c (display_gdb_prompt): Add prompt substitution
2001 * python/python.c (before_prompt_hook): New function.
2003 2011-07-20 Matt Rice <ratmice@gmail.com>
2005 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
2006 arguments to store_unsigned_integer.
2008 2011-07-20 Tom Tromey <tromey@redhat.com>
2010 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
2011 in some declaration-only cases.
2013 2011-07-18 Tom Tromey <tromey@redhat.com>
2016 * dwarf2read.c (dwarf2_section_info_def): New typedef.
2017 (struct dwarf2_per_objfile) <types>: Change to a VEC.
2018 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
2019 <debug_type_section>: New field.
2020 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
2021 (load_cu): Use appropriate section.
2022 (create_signatured_type_table_from_index): Add 'section'
2024 (dwarf2_read_index): Only allow a single .debug_types section.
2025 (dw2_get_file_names): Use appropriate section.
2026 (read_type_comp_unit_head): Add 'section' argument.
2027 (create_debug_types_hash_table): Loop over all .debug_types
2029 (init_cu_die_reader): Use appropriate section.
2030 (process_psymtab_comp_unit, load_partial_comp_unit)
2031 (load_full_comp_unit, read_die_and_children, find_partial_die)
2032 (lookup_die_type, determine_prefix, follow_die_offset): Update.
2033 (lookup_signatured_type_at_offset): Add 'section' argument.
2034 (read_signatured_type_at_offset): Add 'sect' argument.
2035 (read_signatured_type): Use appropriate section.
2036 (set_die_type, get_die_type_at_offset): Update.
2037 (dwarf2_per_objfile_free): Free all .debug_types sections, and
2039 (write_psymtabs_to_index): Don't allow index with more than one
2040 .debug_types section.
2042 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2044 Fix crash if referenced CU is aged out.
2045 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2046 xfree of block.data.
2047 (indirect_pieced_value): New variable back_to, use to for xfree of
2049 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2051 * dwarf2read.c (dwarf2_find_base_address): New prototype.
2052 (load_cu): New function from ...
2053 (dw2_do_instantiate_symtab): ... the code here ...
2054 (process_full_comp_unit): ... and here.
2055 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
2058 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2060 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2063 2011-07-19 Gary Benson <gbenson@redhat.com>
2065 * infrun.c (struct execution_control_state): New member
2066 stop_func_filled_in.
2067 (clear_stop_func, fill_in_stop_func): New functions.
2068 (handle_inferior_event): Call clear_stop_func rather than
2069 manipulating the execution control state directly.
2070 Call fill_in_stop_func lazily as required rather than
2071 directly calling find_pc_partial_function in all cases.
2073 2011-07-18 Tom Tromey <tromey@redhat.com>
2075 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2076 checking for variable-sized array.
2078 2011-07-18 Jean-Charles Delay <delay@adacore.com>
2080 * varobj.h (varobj_languages): Add vlang_ada definition to the list
2081 of supported languages.
2082 * varobj.c: Add top definitions and basic implementation of the
2083 following callbacks: ada_number_of_children, ada_name_of_variable,
2084 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2085 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2086 (languages): Register Ada-specific callbacks.
2087 (variable_language): Add the Ada case in the language setter switch.
2089 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2091 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2093 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2096 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2097 (execute_stack_op): Use dwarf2_frame_ctx_funcs
2098 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2099 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2100 get_frame_cfa, get_tls_address and dwarf_call via funcs.
2101 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2102 (struct dwarf_expr_context_funcs): New, move here methods from ...
2103 (struct dwarf_expr_context): ... here. New fields funcs.
2104 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2105 (dwarf_expr_ctx_funcs): New.
2106 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2107 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2108 (needs_frame_ctx_funcs): New.
2109 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2111 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2113 * MAINTAINERS (Write After Approval): Add myself to the list.
2115 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2117 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2118 that CIE pointer of an FDE really points to a CIE .
2120 2011-07-15 Hui Zhu <teawater@gmail.com>
2122 * remote.c (remote_get_trace_status): Add comments.
2124 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 Code cleanup - constify struct lval_funcs.
2127 * dwarf2loc.c (pieced_value_funcs): Make it const.
2128 * infrun.c (siginfo_value_funcs): Likewise.
2129 * opencl-lang.c (opencl_value_funcs): Likewise.
2130 * valops.c (value_assign, value_ind): Make the funcs variable const.
2131 * value.c (struct value): Make location.computed.funcs target const.
2132 Rearrange the comments.
2133 (allocate_computed_value): Make the funcs parameter target const.
2134 (value_computed_funcs): Return the funcs target const.
2135 (value_free, value_copy, set_value_component_location): Make the funcs
2137 * value.h (allocate_computed_value): Make the funcs parameter target
2139 (value_computed_funcs): Return the funcs target const.
2140 * windows-tdep.c (tlb_value_funcs): Make it const.
2142 2011-07-14 Hui Zhu <teawater@gmail.com>
2144 * remote.c (remote_get_trace_status): Initialize p.
2146 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * remote.c (remote_get_trace_status): New variable ex. Put
2150 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2152 2011-07-13 Tom Tromey <tromey@redhat.com>
2154 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2155 value_from_contents for final conversion.
2157 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2160 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2161 Indent prototypes so they do not get into tags.
2163 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2165 Code cleanup making also optimized out values lazy.
2166 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2167 allocate_optimized_out_value. Twice.
2168 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2169 * findvar.c (read_var_value): Likewise.
2170 * value.c (allocate_optimized_out_value): New function.
2171 * value.h (allocate_optimized_out_value): New declaration.
2173 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2175 Fix occasional crash of CTRL-C during DWARF read in.
2176 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2178 2011-07-11 Tom Tromey <tromey@redhat.com>
2180 * regcache.c (struct regcache_descr): Fix typo.
2181 * i387-tdep.c (i387_supply_xsave): Fix typo.
2183 2011-07-11 Tom Tromey <tromey@redhat.com>
2185 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2186 (read_file_scope, read_type_unit_scope): Use it.
2188 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2190 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2193 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2196 * python/python.c: Set gdbpy_should_print_stack default to off.
2197 (set_python): Deprecate maint set python print-stack to
2199 (_initialize_python): Deprecate maint set/show python print-stack.
2200 Add new prefix command, python. Add new setting, print-backtrace.
2201 * NEWS: Document set python print-stack. Document default change.
2203 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2205 * python/py-inferior.c (infpy_dealloc): New function.
2206 (inferior_to_inferior_object): Return a new object, or a
2207 new reference to the existing object.
2208 (find_thread_object): Cleanup references to inferior.
2209 (delete_thread_object): Ditto.
2210 * python/py-infthread.c (create_thread_object): Do not increment
2211 inferior reference count.
2213 2011-07-08 Tom Tromey <tromey@redhat.com>
2215 * dwarf2loc.c (locexpr_regname): New function.
2216 (locexpr_describe_location_piece): Use it.
2217 (disassemble_dwarf_expression): Add per_cu argument. Use
2219 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2220 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2222 (locexpr_describe_location_1): Add per_cu argument.
2223 (locexpr_describe_location): Update.
2224 (loclist_describe_location): Update.
2226 2011-07-08 Tom Tromey <tromey@redhat.com>
2228 * dwarf2expr.c (execute_stack_op): Add QUIT.
2230 2011-07-07 Hui Zhu <teawater@gmail.com>
2233 2011-07-06 Hui Zhu <teawater@gmail.com>
2234 * remote.c (remote_start_remote): Add TRY_CATCH for
2235 remote_get_trace_status.
2236 * tracepoint.c (disconnect_tracing): Ditto.
2238 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2240 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2241 variables as signed, not unsigned.
2243 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2245 * jit.c (jit_inferior_init): Reformat forward declaration.
2247 2011-07-06 Matt Rice <ratmice@gmail.com>
2249 * MAINTAINERS (Write After Approval): Add myself to the list.
2251 2011-07-06 Hui Zhu <teawater@gmail.com>
2253 * remote.c (remote_start_remote): Add TRY_CATCH for
2254 remote_get_trace_status.
2255 * tracepoint.c (disconnect_tracing): Ditto.
2257 2011-07-05 Tom Tromey <tromey@redhat.com>
2259 * symtab.c (operator_chars): Now static.
2260 * linespec.c (operator_chars): Don't declare.
2262 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2264 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2266 2011-07-05 Tom Tromey <tromey@redhat.com>
2268 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2269 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2270 (TYPE_CPLUS_REALLY_JAVA): New macro.
2271 * dwarf2read.c (process_structure_scope): Set
2272 TYPE_CPLUS_REALLY_JAVA.
2274 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2276 * ada-lang.c: Fix typos.
2277 * amd64-tdep.c: Likewise.
2278 * breakpoint.c: Likewise.
2279 * cli/cli-decode.c: Likewise.
2280 * findcmd.c: Likewise.
2281 * inline-frame.c: Likewise.
2282 * mi/mi-main.c: Likewise.
2283 * minsyms.c: Likewise.
2284 * monitor.c: Likewise.
2285 * monitor.h: Likewise.
2286 * prologue-value.c: Likewise.
2287 * reverse.c: Likewise.
2288 * s390-tdep.c: Likewise.
2290 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2292 * jit.c (jit_inferior_init): Forward declare.
2293 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2295 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2297 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2299 2011-07-04 Tristan Gingold <gingold@adacore.com>
2301 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2302 (tcb_fieldno): Add activation_link field.
2303 (get_known_tasks_addr): Moved and rewritten.
2304 (get_tcb_types_info): Set activation_link field.
2305 (read_known_tasks_array): Add parameter. Rewritten.
2306 (read_known_tasks_list): New function.
2307 (read_known_tasks): New function.
2308 (ada_build_task_list): Call read_known_tasks instead of
2309 read_known_tasks_array.
2310 * ravenscar-thread.c: Add first_task_name constant.
2311 (has_ravenscar_runtime): Check for task list too.
2313 2011-07-04 Tristan Gingold <gingold@adacore.com>
2315 * ada-tasks.c: Renames fieldno to actb_fieldno.
2316 (ada_get_task_number): Indentation.
2317 (get_tcb_types_info): Remove all parameters. Write directly
2319 (ptid_from_atcb_common): Adjust.
2320 (read_atcb): Adjust.
2322 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2324 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2326 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2328 * ui-out.c (ui_out_field_core_addr): Mention that the function
2329 description is in the header file.
2330 * ui-out.h (ui_out_field_core_addr): Document function.
2332 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2334 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2335 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2337 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2339 * symtab.c (expand_line_sal): Remove empty line.
2341 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2343 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2344 same way as ELFOSABI_NONE.
2345 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2347 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2349 * breakpoint.c: Fix typos in comments.
2350 * linespec.c: Likewise.
2351 * symtab.c: Likewise.
2353 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2355 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2356 section in separate object files.
2358 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2360 Fix false GCC warning.
2361 * linespec.c (decode_line_1): Initialize values.
2363 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2365 * linespec.c (find_method): Accept the function type automatically only
2366 if it was specified with parameter types.
2368 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2370 Stop on first linespec terminator instead of eating what we can.
2371 * linespec.c (is_linespec_boundary): New function.
2372 (name_end): Remove function.
2373 (keep_name_info): New parameter on_boundary, replace the body.
2374 (decode_line_1): Provide the parameter to keep_name_info.
2375 (decode_compound): Likewise. Drop the trailing java return type
2378 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 Fall back linespec to minimal symbols.
2381 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2382 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2383 (find_method, symbol_found): Change error to cplusplus_error.
2385 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2389 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 Tom Tromey <tromey@redhat.com>
2392 * dwarf2read.c (check_physname): New variable.
2393 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2394 (show_check_physname): New function.
2395 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2397 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2399 * machoread.c (macho_symfile_read): Delete OBE comment.
2401 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2403 * machoread.c (struct macho_oso_data): Delete.
2404 (current_oso): Delete.
2405 (macho_relocate_common_syms): New function, mostly extracted
2407 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2408 Remove code that sets and unset current_oso.
2409 (macho_symfile_relocate): Delete handling of common symbols,
2410 now moved to macho_relocate_common_syms.
2412 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2414 * darwin-nat.c (darwin_ptrace): Add documentation.
2415 Set errno to zero before calling ptrace. If ptrace returns
2416 -1 and errno is zero, then change then return zero.
2417 (darwin_kill_inferior): Issue a warning instead of triggering
2418 a failed assertion when the PT_KILL ptrace operations returned
2421 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2423 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2424 only when inf->private->no_ptrace.
2426 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2428 * ada-lang.c (print_it_exception): Print temporary catchpoints
2429 as "Temporary catchpoint".
2430 (print_mention_exception): Likewise.
2432 2011-07-01 Tom Tromey <tromey@redhat.com>
2434 * jv-lang.c (java_language_defn): Use java_printchar,
2436 (java_get_encoding): New function.
2437 (java_emit_char): Use generic_emit_char.
2438 (java_printchar): New function.
2439 (java_printstr): Likewise.
2441 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2443 * ada-typeprint.c (print_record_type): If unable to decode
2444 the name of the parent type, use the encoded name.
2446 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2448 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2449 pointer to constrained packed array type output.
2450 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2451 packed array output.
2453 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2455 * ada-typeprint.c (print_array_type): removed if condition on show
2456 being negative for bounds printing.
2458 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2460 * ada-lang.c (ada_identical_enum_types_p): New function.
2461 (symbols_are_identical_enums): New function.
2462 (remove_extra_symbols): Do nothing if NSYMS < 2.
2463 Use symbols_are_identical_enums.
2465 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2467 * ada-valprint.c (ada_value_print): Handle typedefs.
2469 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2471 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2473 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2475 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2476 (decode_constrained_packed_array): Likewise.
2477 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2479 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2481 * ada-exp.y (convert_char_literal): Handle typedef types.
2483 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2485 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2487 2011-06-30 Tom Tromey <tromey@redhat.com>
2489 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2490 * valops.c (find_overload_match): Call do_cleanups on early exit
2492 * solib.c (solib_find): Call do_cleanups on early exit path.
2494 2011-06-30 Tom Tromey <tromey@redhat.com>
2496 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2497 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2498 return paths. Defer final do_cleanups until last return.
2499 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2502 2011-06-30 Tom Tromey <tromey@redhat.com>
2504 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2506 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2508 * MAINTAINERS (Write After Approval): Add myself to the list.
2510 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2512 Disable epilogue unwinders on recent GCCs.
2513 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2514 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2515 * dwarf2read.c (process_full_comp_unit): Initialize
2516 EPILOGUE_UNWIND_VALID.
2517 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2518 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2519 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2521 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 Code cleanup - reformatting.
2524 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2525 (producer_is_gcc_ge_4): ... here, change the return value.
2526 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2529 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 Fix non-only rename list for Fortran modules import.
2532 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2533 cp_add_using_directive caller.
2534 (cp_add_using_directive): New parameter excludes, describe it. New
2535 variables ix and param. Compare if also excludes match. Allocate NEW
2536 with variable size, initialize EXCLUDES there.
2537 (cp_lookup_symbol_imports): New variable excludep, test
2538 current->EXCLUDES with it.
2539 * cp-support.h: Include vec.h.
2540 (struct using_direct): New field excludes, describe it.
2541 (DEF_VEC_P (const_char_ptr)): New.
2542 (cp_add_using_directive): New parameter excludes.
2543 * defs.h (const_char_ptr): New typedef.
2544 * dwarf2read.c (read_import_statement): New variables child_die,
2545 excludes and cleanups, read in excludes.
2546 (read_namespace): Adjust the cp_add_using_directive caller.
2548 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2551 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2552 negative comparisons.
2554 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2556 * mi/mi-main.c (mi_cmd_list_features): Emit
2557 breakpoint-notifications.
2559 2011-06-29 Tom Tromey <tromey@redhat.com>
2562 * valprint.h (generic_emit_char, generic_printstr): Declare.
2563 * valprint.c (wchar_printable, append_string_as_wide)
2564 (print_wchar): Move from c-lang.c.
2565 (generic_emit_char): New function; mostly taken from c_emit_char.
2566 (generic_printstr): New function; mostly taken from c_printstr.
2567 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2568 represented as arrays.
2569 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2571 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2572 identically to TYPE_CODE_INT.
2573 * f-lang.c (f_get_encoding): New function.
2574 (f_emit_char): Use generic_emit_char.
2575 (f_printchar): Replace comment.
2576 (f_printstr): Use generic_printstr.
2577 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2578 "character" types specially.
2579 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2581 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2583 (c_emit_char): Call generic_emit_char.
2584 (c_printstr): Call generic_printstr.
2586 2011-06-29 Gary Benson <gbenson@redhat.com>
2588 * breakpoint.c (bpstat_what): Removed duplicated case.
2590 2011-06-28 Tom Tromey <tromey@redhat.com>
2592 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2594 2011-06-27 Tom Tromey <tromey@redhat.com>
2596 * valops.c (find_overload_match): Call do_cleanups before early
2598 * top.c (execute_command): Call do_cleanups before early return.
2599 (command_loop): Likewise.
2600 * stack.c (backtrace_command): Make a null cleanup early. Don't
2601 conditionally call do_cleanups.
2602 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2604 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2605 so cleanups are always run.
2606 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2607 * findcmd.c (parse_find_args): Call do_cleanups on early return
2609 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2610 Don't conditionally call do_cleanups.
2611 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2614 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2616 * MAINTAINERS (Write After Approval): Use default email address.
2618 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2620 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2622 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2624 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2625 saved_regs_mask and copied_regs_mask fields.
2626 (sparc_record_save_insn): New prototype.
2627 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2628 (sparc_record_save_insn): New function.
2629 (sparc_analyze_prologue): Add head comment. Recognize store insns
2630 of call-saved registers. Use OFFSET consistently. Recognize flat
2631 frames and cache their settings.
2632 (sparc32_skip_prologue): Handle flat frames.
2633 (sparc_frame_cache): Add frame_offset to the base address.
2634 (sparc32_frame_cache): Adjust to new frame description.
2635 (sparc32_frame_prev_register): Likewise.
2636 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2637 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2638 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2639 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2640 frame by calling sparc_record_save_insn.
2641 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2642 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2643 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2645 2011-06-27 Tristan Gingold <gingold@adacore.com>
2647 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2648 field by map_addr and map_len.
2649 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2650 (munmap_section_buffer): Likewise.
2652 2011-06-24 Tom Tromey <tromey@redhat.com>
2654 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2655 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2656 * python/python.c (gdbpy_parameter): Make 'arg' const.
2657 (execute_gdb_command): Likewise.
2658 (gdbpy_decode_line): Likewise. Copy it.
2659 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2660 (gdbpy_write): Make 'arg' const.
2661 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2663 (gdbpy_lookup_type): Likewise.
2664 * python/py-prettyprint.c (print_children): Make 'name' const.
2665 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2666 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2668 * python/py-function.c (fnpy_init): Make 'name' const.
2669 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2670 (gdbpy_string_to_argv): Make 'input' const.
2671 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2673 * gdbtypes.h (lookup_typename): Update.
2674 * gdbtypes.c (lookup_typename): Make 'name' const.
2675 (lookup_struct): Likewise.
2676 (lookup_union): Likewise.
2677 (lookup_enum): Likewise.
2679 2011-06-24 Tom Tromey <tromey@redhat.com>
2681 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2682 gdb_thread_db.h. Move all common/ entries to be together.
2683 (TAGS): Don't depend on DEPFILES.
2685 2011-06-23 Yao Qi <yao@codesourcery.com>
2687 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2688 * remote.c (remote_start_remote): ... here.
2689 * monitor.c (monitor_open): ... here.
2691 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2693 * gdbtypes.c (append_composite_type_field_aligned): Fix
2694 calculation of bit position based on alignment.
2696 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2698 * breakpoint.c (bpstat_stop_status): Call the check_status
2699 breakpoint_ops method.
2700 (print_one_breakpoint_location): Also print the condition for Ada
2701 exception catchpoints.
2702 (allocate_bp_location): New, factored out from
2703 allocate_bp_location.
2704 (allocate_bp_location): Adjust. Call the owner breakpoint's
2705 allocate_location method, if there is one.
2706 (free_bp_location): Call the locations's dtor method, if there is
2708 (init_raw_breakpoint_without_location): New breakpoint_ops
2710 (set_raw_breakpoint_without_location): Adjust.
2711 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2712 (set_raw_breakpoint): Adjust.
2713 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2714 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2715 re_set and check_status methods.
2716 (init_catchpoint): Don't memset, initialize thread, addr_string
2717 and enable_state. Pass the ops down to init_raw_breakpoint.
2718 (install_catchpoint): Rename to ...
2719 (install_breakpoint): ... this, and make extern.
2720 (create_fork_vfork_event_catchpoint): Adjust.
2721 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2722 re_set and check_status methods.
2723 (create_syscall_event_catchpoint): Adjust.
2724 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2725 (masked_watchpoint_breakpoint_ops): Install NULL
2726 allocate_location, re_set and check_status methods.
2727 (catch_exec_command_1): Adjust.
2728 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2729 re_set and check_status methods.
2730 (create_ada_exception_breakpoint): Rename to ...
2731 (init_ada_exception_breakpoint): ... this. Add a struct
2732 breakpoint parameter, and delete the exp_string, cond_string and
2733 cond parameters. Use init_raw_breakpoint, and don't install or
2734 mention the breakpoint yet. Don't clear breakpoint fields that
2735 init_raw_breakpoint already clears.
2736 (re_set_breakpoint): Delete, split into ...
2737 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2739 (breakpoint_re_set_one): Call the breakpoint's
2740 breakpoint_ops->re_set implementation, if there's one. Adjust.
2741 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2742 (struct bp_location_ops): New type.
2743 (struct bp_location): New field `ops'.
2744 (struct breakpoint_ops): New `allocate_location', `re_set' and
2745 `check_status' fields. Make `breakpoint_hit''s description match
2747 (init_bp_location): Declare.
2748 (breakpoint_re_set_default): Declare.
2749 (create_ada_exception_breakpoint): Rename to ...
2750 (init_ada_exception_breakpoint): ... this. Add a struct
2751 breakpoint parameter, and delete the exp_string, cond_string and
2753 (install_breakpoint): Declare.
2754 * ada-lang.c: Include exceptions.h.
2755 <Ada exceptions description>: Update.
2756 (struct ada_catchpoint_location): New type.
2757 (ada_catchpoint_location_dtor): New function.
2758 (ada_catchpoint_location_ops): New global.
2759 (ada_catchpoint): New type.
2760 (create_excep_cond_exprs): New function.
2761 (dtor_exception, allocate_location_exception, re_set_exception)
2762 (should_stop_exception, check_status_exception): New functions.
2763 (print_one_exception, print_mention_exception)
2764 (print_recreate_exception): Adjust.
2765 (dtor_catch_exception, allocate_location_catch_exception)
2766 (re_set_catch_exception, check_status_catch_exception): New
2768 (catch_exception_breakpoint_ops): Install them.
2769 (dtor_catch_exception_unhandled)
2770 (allocate_location_catch_exception_unhandled)
2771 (re_set_catch_exception_unhandled)
2772 (check_status_catch_exception_unhandled): New functions.
2773 (catch_exception_unhandled_breakpoint_ops): Install them.
2774 (dtor_catch_assert, allocate_location_catch_assert)
2775 (re_set_catch_assert, check_status_catch_assert): New functions.
2776 (catch_assert_breakpoint_ops): Install them.
2777 (ada_exception_catchpoint_p): Delete.
2778 (catch_ada_exception_command_split)
2779 (ada_exception_catchpoint_cond_string): Rename exp_string
2780 parameter to excep_string. Adjust.
2781 (ada_parse_catchpoint_condition): Delete.
2782 (ada_exception_sal): Rename the exp_string parameter to
2783 excep_string. Delete the cond_string and cond parameters.
2785 (ada_decode_exception_location): Rename the exp_string parameter
2786 to excep_string. Delete the cond_string and cond parameters.
2788 (create_ada_exception_catchpoint): New function.
2789 (catch_ada_exception_command, ada_decode_assert_location)
2790 (catch_assert_command): Adjust.
2791 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2793 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2795 * ada-lang.c: Include arch-utils.h.
2796 (ada_decode_exception_location): Make static.
2797 (catch_ada_exception_command): Moved here from breakpoint.c.
2798 (ada_decode_assert_location): Make static.
2799 (catch_assert_command): Moved here from breakpoint.c.
2800 (_initialize_ada_lang): Install the exception and assert
2801 catchpoint commands here.
2802 * ada-lang.h (ada_decode_exception_location)
2803 (ada_decode_assert_location): Delete declarations.
2804 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2806 (create_ada_exception_breakpoint): Make extern.
2807 (catch_ada_exception_command, catch_assert_command): Moved to
2809 (add_catch_command): Make extern.
2810 (_initilize_breakpoint): Don't install the exception and assert
2811 catchpoint commands here.
2812 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2814 (add_catch_command, create_ada_exception_breakpoint): Declare.
2816 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2818 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2819 the breakpoint to the breakpoint chain here.
2820 (set_raw_breakpoint_without_location): Add the breakpoint to the
2821 breakpoint chain here.
2822 (init_raw_breakpoint): Adjust comments.
2823 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2825 (init_catchpoint): Don't set the catchpoint's breakpoint number
2827 (install_catchpoint): New function.
2828 (create_fork_vfork_event_catchpoint)
2829 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2830 use install_catchpoint.
2832 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2834 * breakpoint.c (create_catchpoint_without_mention)
2835 (create_catchpoint): Delete.
2837 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2839 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2840 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2841 reference to exec_pathname.
2842 (struct exec_catchpoint): New type.
2843 (dtor_catch_exec): New function.
2844 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2845 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2846 (catch_exec_command_1): Adjust to use init_catchpoint.
2847 (delete_breakpoint): Remove reference to exec_pathname.
2849 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2851 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2852 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2853 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2854 reference to syscalls_to_be_caught.
2855 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2857 (struct syscall_catchpoint): New type.
2858 (dtor_catch_syscall): New function.
2859 (insert_catch_syscall, remove_catch_syscall)
2860 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2861 (print_recreate_catch_syscall): Adjust.
2862 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2863 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2864 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2865 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2866 (masked_watchpoint_breakpoint_ops)
2867 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2868 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2869 there is one. Remove references to syscalls_to_be_caught.
2870 (catching_syscall_number): Adjust.
2871 * ada-lang.c (catch_exception_breakpoint_ops)
2872 (catch_exception_unhandled_breakpoint_ops)
2873 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2875 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2877 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2879 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2880 reference to forked_inferior_pid.
2881 (struct fork_catchpoint): New type.
2882 (breakpoint_hit_catch_fork, print_it_catch_fork)
2883 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2884 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2885 (create_fork_vfork_event_catchpoint): Adjust to use
2888 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2890 * breakpoint.c (add_to_breakpoint_chain)
2891 (init_raw_breakpoint_without_location): New functions, factored
2893 (set_raw_breakpoint_without_location): ... this one.
2894 (init_raw_breakpoint): New function, factored out from
2895 set_raw_breakpoint and adjusted to use
2896 init_raw_breakpoint_without_location.
2897 (set_raw_breakpoint): Adjust.
2898 (init_catchpoint): New function, factored out from
2899 create_catchpoint_without_mention and adjusted to use
2900 init_raw_breakpoint.
2901 (create_catchpoint_without_mention): Adjust.
2903 2011-06-22 Tom Tromey <tromey@redhat.com>
2905 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2906 argument of 0 specially.
2908 2011-06-22 Yao Qi <yao@codesourcery.com>
2910 * infrun.c (handle_inferior_event): Remove write-only local variable
2911 `sw_single_step_trap_p'.
2913 2011-06-20 Tom Tromey <tromey@redhat.com>
2915 * symtab.c (lookup_language_this): End loop if block is NULL.
2917 2011-06-17 Tom Tromey <tromey@redhat.com>
2919 * valops.c (value_of_this): Use lookup_language_this.
2920 * symtab.h (lookup_language_this): Declare.
2921 * symtab.c (lookup_language_this): New function.
2922 (lookup_symbol_aux): Use lookup_language_this.
2923 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2925 2011-06-17 Tom Tromey <tromey@redhat.com>
2927 * value.h (value_of_this): Update.
2928 (value_of_local): Remove.
2929 * valops.c (value_of_this): Rename from value_of_local. Change
2931 * p-exp.y (exp): Update.
2932 (variable): Likewise.
2933 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2935 2011-06-17 Tom Tromey <tromey@redhat.com>
2937 * valops.c (value_of_local): Complain if NAME is NULL.
2938 * std-operator.def (OP_OBJC_SELF): Remove.
2939 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2940 * objc-exp.y (name_not_typename): Use OP_THIS.
2941 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2943 <OP_OBJC_SELF>: Remove.
2944 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2946 2011-06-16 Tristan Gingold <gingold@adacore.com>
2948 * python/py-events.h (gdb_py_events): Make it extern.
2949 * python/py-evtregistry.c (gdb_py_events): Declare.
2951 2011-06-16 Hui Zhu <teawater@gmail.com>
2953 * remote.c (remote_trace_set_readonly_regions): Add check for
2954 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2957 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2959 * arm-linux-tdep.c: Include "auxv.h".
2961 (ARM_LINUX_SIZEOF_VFP): Define.
2962 (arm_linux_supply_vfp): New function.
2963 (arm_linux_collect_vfp): Likewise.
2964 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2965 (arm_linux_fpa_regset_sections): New variable.
2966 (arm_linux_vfp_regset_sections): Likewise.
2967 (arm_linux_core_read_description): New function.
2968 (arm_linux_init_abi): Install arm_linux_core_read_description and
2969 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2970 appropriate for the architecture.
2971 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2972 (tdesc_arm_with_m): Declare.
2973 (tdesc_arm_with_iwmmxt): Likewise.
2974 (tdesc_arm_with_vfpv2): Likewise.
2975 (tdesc_arm_with_vfpv3): Likewise.
2976 (tdesc_arm_with_neon): Likewise.
2977 * arm-linux-nat.c: Move features/*.c includes ...
2978 * arm-tdep.c: ... here.
2979 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2980 target description data structures ...
2981 * arm-tdep.c (_initialize_arm_tdep): ... here.
2982 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2983 HWCAP_VFPv3D16): Move definitions ...
2984 * arm-linux-tdep.h: ... here.
2986 2011-06-15 Hui Zhu <teawater@gmail.com>
2988 * remote.c (remote_trace_set_readonly_regions): Add a check for
2991 2011-06-14 Tom Tromey <tromey@redhat.com>
2993 * coffread.c (coffread_objfile): Rename from current_objfile.
2994 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2995 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2997 2011-06-14 Tom Tromey <tromey@redhat.com>
2999 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
3000 (class_symtab): Remove.
3001 (jv_dynamics_progspace_key): New global.
3002 (jv_per_objfile_free): Reset program space data. Update assert.
3003 Don't clear globals.
3004 (get_dynamics_objfile): Use and set program space data.
3005 (get_java_class_symtab): Use get_dynamics_objfile.
3006 (add_class_symbol): Likewise.
3007 (java_link_class_type): Likewise.
3008 (java_object_type, jv_clear_object_type, set_java_object_type):
3010 (get_java_object_type): Update. Don't cache result.
3011 (is_object_type): Don't call set_java_object_type.
3012 (_initialize_java_language): Don't set jv_type_objfile_data_key;
3013 initialize jv_dynamics_progspace_key.
3015 2011-06-14 Tom Tromey <tromey@redhat.com>
3017 * symtab.h (current_objfile): Don't declare.
3018 * objfiles.h (current_objfile): Don't declare.
3019 * objfiles.c (current_objfile): Remove.
3020 * mdebugread.c (current_objfile): New file-scope global.
3021 * dbxread.c (current_objfile): New file-scope global.
3022 * coffread.c (current_objfile): New file-scope global.
3024 2011-06-13 Pedro Alves <pedro@codesourcery.com>
3026 * top.h (line): Rename to ...
3027 (saved_command_line): ... this.
3028 (linesize): Rename to ...
3029 (saved_command_line_size): ... this.
3030 * top.c (line): Rename to ...
3031 (saved_command_line): ... this.
3032 (linesize): Rename to ...
3033 (saved_command_line_size): ... this.
3034 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
3035 * event-top.c (command_line_handler): Adjust.
3036 * main.c (captured_main): Adjust.
3038 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3040 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
3041 get_frame_func instead of get_frame_pc to determine the code
3042 address used to construct the frame ID.
3043 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
3044 (i386_epilogue_frame_this_id): Likewise.
3045 (i386_epilogue_frame_prev_register): New function.
3046 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3047 (i386_stack_tramp_frame_sniffer): Fix coding style.
3048 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3049 (i386_gdbarch_init): Fix comments.
3051 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3053 * i386-tdep.c (i386_match_insn_block): Use length of the proper
3054 instruction when walking back through the instruction stream.
3056 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3058 * symtab.c (output_partial_symbol_filename): Exchange the filename and
3059 fullname parameters order.
3061 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3064 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3066 * psymtab.c (map_symbol_filenames_psymtab)
3067 (map_partial_symbol_filenames): Likewise.
3068 * psymtab.h: Include symfile.h.
3069 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3070 * symfile.h (symbol_filename_ftype): New.
3071 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3072 map_symbol_filenames, clarify more the naming in comment.
3074 2011-06-07 Doug Evans <dje@google.com>
3076 * cc-with-index.sh: Fix typos in comment.
3077 Look for ../../gdb, for fullname.exp.
3079 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 Pedro Alves <pedro@codesourcery.com>
3082 * cli/cli-cmds.c (shell_escape): Use waitpid.
3083 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3085 2011-06-07 Tristan Gingold <gingold@adacore.com>
3087 * xcoffread.c (dwarf2_xcoff_names): New variable.
3088 (aix_process_linenos): Add a guard.
3089 (xcoff_symfile_finish): Free dwarf2.
3090 (xcoff_initial_scan): Add dwarf2 support.
3092 2011-06-06 Pedro Alves <pedro@codesourcery.com>
3094 * infcall.c (run_inferior_call): Don't mask async. Instead force
3095 a synchronous wait, if the target can async.
3097 * target.h (struct target_ops): Delete to_async_mask.
3098 (target_async_mask): Delete.
3099 * target.c (update_current_target): Delete references to to_async_mask.
3100 * linux-nat.c (linux_nat_async_mask_value): Delete.
3101 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3102 to linux_nat_async_mask_value.
3103 (linux_nat_async_mask): Delete.
3104 (linux_nat_async, linux_nat_close): Remove references to
3105 linux_nat_async_mask_value.
3106 * record.c (record_async_mask_value): Delete.
3107 (record_async): Remove references to record_async_mask_value.
3108 (record_async_mask): Delete.
3109 (record_can_async_p, record_is_async_p): Remove references to
3110 record_async_mask_value.
3111 (init_record_ops, init_record_core_ops): Remove references to
3113 * remote.c (remote_async_mask_value): Delete.
3114 (init_remote_ops): Remove reference to remote_async_mask.
3115 (remote_can_async_p, remote_is_async_p): Remove references to
3116 remote_async_mask_value.
3117 (remote_async): Remove references to remote_async_mask_value.
3118 (remote_async_mask): Delete.
3120 * infrun.c (fetch_inferior_event): Don't claim registers changed
3121 if the current thread is already not executing.
3123 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3125 From Stephen Kitt <steve@sk2.org>
3126 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3127 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3129 2011-06-03 Joel Brobecker <brobecker@adacore.com>
3131 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3132 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3134 2011-06-03 Tom Tromey <tromey@redhat.com>
3136 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3138 * python/py-exitedevent.c (create_exited_event_object): Change
3139 type of 'exit_code'. Optionally add exit_code attribute.
3140 (emit_exited_event): Change type of 'exit_code'.
3141 * python/py-event.h (emit_exited_event): Update.
3142 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3143 * infrun.c (handle_inferior_event): Set exit code fields on
3145 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3147 * inferior.c (exit_inferior_1): Initialize new fields.
3149 2011-06-03 Tom Tromey <tromey@redhat.com>
3151 * dwarf2expr.c (get_signed_type): New function.
3152 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3154 2011-06-02 Keith Seitz <keiths@redhat.com>
3156 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3158 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3160 * top.h (simplified_command_loop): Delete declaration.
3162 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3164 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3165 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3167 2011-06-01 Yao Qi <yao@codesourcery.com>
3169 * objfiles.h (obj_section_addr): Update reference to objfile from
3171 (obj_section_endaddr): Likewise.
3173 2011-06-01 Daniel Jacobowitz <drow@false.org>
3175 * MAINTAINERS: Update my email address and affiliation. Also
3176 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3178 2010-05-31 Keith Seitz <keiths@redhat.com>
3181 * linespec.c (get_search_block): New function.
3182 (find_methods): Add FILE_SYMTATB parameter and use it and
3183 get_search_block to pass an appropriate block to
3184 lookup_symbol_in_namespace.
3185 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3186 Check if *ARGPTR starts with a filename first.
3187 If it does, call locate_first_half again to locate the next
3188 "first half" of the linespec.
3189 Pass FILE_SYMTATB to decode_objc and decode_compound.
3190 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3191 (locate_first_half): Stop on the first colon seen.
3192 (decode_compound): Add FILE_SYMTAB parameter.
3193 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3194 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3195 get_search_block with lookup_symbol.
3196 (find_method): Add FILE_SYMTAB parameter and pass it to
3198 (decode_objc): Use get_search_block.
3200 2010-05-31 Keith Seitz <keiths@redhat.com>
3203 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3204 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3205 and CP_ANONYMOUS_NAMESPACE_LEN.
3206 (cp_is_anonymous): Likewise.
3207 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3208 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3209 * dwarf2read.c (namespace_name): Likewise.
3210 (fixup_partial_die): Likewise.
3211 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3212 seen in the input, keep it.
3214 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3216 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3217 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3218 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3219 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3220 * remote.c (_initialize_remote): Register
3221 async_remote_interrupt_twice directly as
3222 sigint_remote_twice_token event.
3224 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3226 * target.h (enum inferior_event_type): Delete INF_ERROR.
3227 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3229 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3231 * interps.c (interp_set): Don't cancel continuations.
3233 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3235 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3237 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3239 * continuations.h (continuation_ftype): Add `err' parameter.
3240 Document parameters.
3241 (do_all_continuations, do_all_continuations_thread)
3242 (do_all_intermediate_continuations)
3243 (do_all_intermediate_continuations_thread)
3244 (do_all_inferior_continuations): Add `err' parameter.
3245 * continuations.c (do_my_continuations_1, do_my_continuations)
3246 (do_all_inferior_continuations, do_all_continuations_ptid)
3247 (do_all_continuations_thread_callback)
3248 (do_all_continuations_thread, do_all_continuations)
3249 (do_all_intermediate_continuations_thread_callback)
3250 (do_all_intermediate_continuations_thread)
3251 (do_all_intermediate_continuations): Add `err' parameter, and pass
3252 it down all the way to the continuations proper.
3253 * inf-loop.c (inferior_event_handler): If fetching an inferior
3254 event throws an error, don't pop the target, and still call the
3255 continuations, but with `err' set. Adjust all other continuation
3257 * breakpoint.c (until_break_command_continuation): Add `err'
3259 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3260 issue another step if `err' is set.
3261 (struct until_next_continuation_args): New.
3262 (until_next_continuation): Add `err' parameter. Adjust.
3263 (until_next_command): Adjust.
3264 (struct finish_command_continuation_args): Add `thread' field.
3265 (finish_command_continuation): Add `err' parameter. Handle it.
3266 (finish_forward): Adjust.
3267 (attach_command_continuation): Add `err' parameter. Handle it.
3268 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3269 cancel the continuations.
3270 * interps.c (interp_set): Adjust to cancel the continuations.
3271 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3272 continuations rather than discarding.
3273 (free_thread): Don't clear thread inferior resources here.
3274 (delete_thread_1): Do it here instead. And do it before removing
3275 the thread from the threads list. Tag the thread as exited before
3276 clearing thread inferior resources.
3278 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3280 * infcall.c (call_function_by_hand): Rephrase error message.
3282 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3284 * defs.h (struct thread_info, struct inferior): Delete forward
3286 * breakpoint.h (struct thread_info): New forward declaration.
3287 * observer.sh (struct inferior): New forward declaration.
3288 * python/python-internal.h (struct inferior): New forward
3291 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3293 * defs.h (struct continuation, continuation_ftype)
3294 (continuation_free_arg_ftype, add_continuation)
3295 (do_all_continuations, do_all_continuations_thread)
3296 (discard_all_continuations, discard_all_continuations_thread)
3297 (add_intermediate_continuation, do_all_intermediate_continuations)
3298 (do_all_intermediate_continuations_thread)
3299 (discard_all_intermediate_continuations)
3300 (discard_all_intermediate_continuations_thread)
3301 (add_inferior_continuation, do_all_inferior_continuations)
3302 (discard_all_inferior_continuations): Move to ...
3303 * continuations.h: ... this new file.
3304 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3305 infcmd.c, inferior.c, infrun.c, interps.c: Include
3308 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3309 Doug Evans <dje@google.com>
3311 Fix PR 10970, PR 12702.
3312 * linux-nat.c (linux_lwp_is_zombie): New function.
3313 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3314 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3316 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3318 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3320 (add_continuation, add_intermediate_continuation)
3321 (add_inferior_continuation): Use them.
3322 * continuations.c (struct continuation): Use them.
3323 (make_continuation_ftype): Delete.
3324 (make_continuation, add_inferior_continuation, add_continuation)
3325 (add_intermediate_continuation): Use continuation_ftype and
3326 continuation_free_arg_ftype. Rename parameters to shorter names.
3328 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3330 * continuations.c (make_continuation): Make it return void.
3331 (do_my_continuations): Rename to ...
3332 (do_my_continuations_1): ... this. Remove old_chain parameter and
3334 (do_my_continuations): New.
3335 (discard_my_continuations): Rename to ...
3336 (discard_my_continuations_1): ... this. Remove old_chain
3337 parameter and adjust.
3338 (discard_my_continuations): New.
3339 (add_inferior_continuation): Simplify.
3340 (do_all_inferior_continuations): Reimplement on top
3341 do_my_continuations.
3342 (discard_all_inferior_continuations): Simplify.
3343 (add_continuation): Simplify.
3344 (do_all_continuations_ptid): Simplify.
3345 (discard_all_continuations_thread_callback): Simplify.
3346 (add_intermediate_continuation): Simplify.
3347 (discard_all_intermediate_continuations_thread_callback):
3350 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3352 * utils.c (struct continuation, add_continuation)
3353 (add_inferior_continuation)
3354 (do_all_inferior_continuations, discard_all_inferior_continuations)
3355 (restore_thread_cleanup, do_all_continuations_ptid)
3356 (do_all_continuations_thread_callback)
3357 (do_all_continuations_thread, do_all_continuations)
3358 (discard_all_continuations_thread_callback)
3359 (discard_all_continuations_thread, discard_all_continuations)
3360 (add_intermediate_continuation)
3361 (do_all_intermediate_continuations_thread_callback)
3362 (do_all_intermediate_continuations_thread)
3363 (do_all_intermediate_continuations)
3364 (discard_all_intermediate_continuations_thread_callback)
3365 (discard_all_intermediate_continuations_thread)
3366 (discard_all_intermediate_continuations): Move to ...
3367 * continuations.c: ... this new file, and adjust to no longer
3368 implement continuations on top of cleanups.
3369 * Makefile.in (SFILES): Add continuations.c.
3370 (COMMON_OBS): Add continuations.o.
3372 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3374 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3375 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3376 Internal error on invalid values.
3377 * reverse.c: Don't handle EXEC_ERROR.
3378 * mi/mi-main.c: Don't handle EXEC_ERROR.
3380 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3382 * record.c: Include event-loop.h, inf-loop.h.
3383 (record_beneath_to_async): New global.
3384 (tmp_to_async): New global.
3385 (record_async_inferior_event_token): New global.
3386 (record_open_1): Don't error out if async is enabled.
3387 (record_open): Handle to_async. Create an async event source in
3389 (record_close): Delete the async event source.
3390 (record_resumed): New global.
3391 (record_execution_dir): New global.
3392 (record_resume, record_core_resume): Set them. Register the
3393 target on the event loop.
3394 (record_wait): Rename to ...
3395 (record_wait_1): ... this. Add more debug output. Handle
3396 TARGET_WNOHANG, and the target beneath returning
3397 TARGET_WAITKIND_IGNORE.
3398 (record_wait): Reimplement on top of record_wait_1.
3399 (record_async_mask_value): New global.
3400 (record_async, record_async_mask, record_can_async_p)
3401 (record_is_async_p, record_execution_direction): New functions.
3402 (init_record_ops, init_record_core_ops): Install new methods.
3403 * infrun.c (fetch_inferior_event): Temporarily switch the global
3404 execution direction to the direction the target was going.
3405 (execution_direction): Change type to int.
3406 * target.c (default_execution_direction): New function.
3407 (update_current_target): Inherit and de_fault
3408 to_execution_direction.
3409 * target.h (struct target_ops) <to_execution_direction>: New
3411 (target_execution_direction): New macro.
3412 * inferior.h (execution_direction): Change type to int.
3414 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3416 * infcall.c (call_function_by_hand): Don't allow calling functions
3417 in reverse execution mode.
3419 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3421 * infcmd.c (finish_command): Allow async finish in reverse.
3423 2011-05-26 Yao Qi <yao@codesourcery.com>
3425 * gdb_thread_db.h: Delete. Move to ...
3426 * common/gdb_thread_db.h: ... here.
3428 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3430 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3431 function's entry point instead of a manually managed momentary
3432 breakpoint, and only ever issue one proceed call.
3433 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3434 doing a reverse-finish, switch to stepi mode, to do another step.
3435 (insert_step_resume_breakpoint_at_sal): Make public.
3436 (normal_stop): No need to save function value return registers if
3438 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3440 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3442 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3443 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3444 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3446 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3447 step-resume breakpoints.
3448 (print_it_typical): Handle bp_hp_step_resume.
3449 (bpstat_what): Ditto.
3450 (bptype_string): Ditto.
3451 (print_one_breakpoint_location): Ditto.
3452 (allocate_bp_location): Ditto.
3454 (breakpoint_re_set_one): Ditto.
3455 * infrun.c (handle_inferior_event): Adjust. Split
3456 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3457 BPSTAT_WHAT_HP_STEP_RESUME.
3458 (insert_step_resume_breakpoint_at_sal): Rename to ...
3459 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3460 parameter. Handle it.
3461 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3462 insert_step_resume_breakpoint_at_sal_1.
3463 (insert_step_resume_breakpoint_at_frame): Rename to ...
3464 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3465 set a high-priority step-resume breakpoint.
3466 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3467 (insert_step_resume_breakpoint_at_caller): Ditto.
3469 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3471 * breakpoint.c (iterate_over_related_breakpoints): New.
3472 (do_map_delete_breakpoint): New.
3473 (delete_command): Pass do_map_delete_breakpoint to
3474 map_breakpoint_numbers.
3475 (do_disable_breakpoint): New.
3476 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3478 (do_enable_breakpoint): Rename to ...
3479 (enable_breakpoint_disp): ... this.
3480 (enable_breakpoint): Adjust.
3481 (do_enable_breakpoint): New.
3482 (enable_once_breakpoint): Delete.
3483 (do_map_enable_breakpoint): New.
3484 (do_map_enable_once_breakpoint): New.
3485 (enable_once_command, enable_delete_command)
3486 (delete_trace_command): Iterate over the breakpoint's related
3489 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3491 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3492 for ALPHA_ZERO_REGNUM.
3493 (alpha_supply_int_regs): Explicitly supply zero as the value for
3494 ALPHA_ZERO_REGNUM in the register cache.
3495 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3497 2011-05-26 Yao Qi <yao@codesourcery.com>
3499 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3501 2011-05-26 Tristan Gingold <gingold@adacore.com>
3503 * symfile.h (struct dwarf2_section_names): New type.
3504 (struct dwarf2_debug_sections): New type.
3505 (dwarf2_has_info): Add parameter.
3506 * dwarf2read.c (dwarf2_elf_names): New variable.
3507 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3508 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3509 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3510 (dwarf2_has_info): Add names parameter. Pass names
3511 to dwarf2_locate_sections.
3512 (section_is_p): Rewrite using the names parameter.
3513 (dwarf2_locate_sections): Use section names from the names parameter.
3514 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3515 * elfread.c (read_psyms): Ditto.
3516 * machoread.c (macho_symfile_read): Ditto.
3518 2011-05-25 Andreas Schwab <schwab@redhat.com>
3521 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3523 2011-05-24 Keith Seitz <keiths@redhat.com>
3526 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3527 (decode_compound): Unconditionally call keep_name_info.
3529 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3531 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3532 scope, clear its command list.
3533 (map_breakpoint_numbers): Don't walk the related breakpoints list
3536 2011-05-24 Tom Tromey <tromey@redhat.com>
3538 * MAINTAINERS: Move Jim Blandy to past maintainers.
3540 2011-05-24 Tristan Gingold <gingold@adacore.com>
3542 * symfile.h (enum dwarf2_section_enum): New type.
3543 (dwarf2_get_section_info): New prototype.
3544 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3545 section_name by sect. Use a switch to select the info.
3546 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3547 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3549 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3551 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3552 shared library event breakpoint if there's no execution.
3554 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3556 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3557 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3559 2011-05-23 Tom Tromey <tromey@redhat.com>
3561 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3564 2011-05-23 Doug Evans <dje@google.com>
3566 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3567 entry for RuntimeError to doc string.
3569 2011-05-23 Jerome Guitton <guitton@adacore.com>
3571 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3572 sequence for probing loops.
3574 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3576 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3579 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3581 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3582 zero as the value for %g0 in the register cache.
3583 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3584 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3586 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3588 * infrun.c (proceed): Set previous_inferior_ptid here.
3589 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3590 inferior_ptid, not null_ptid.
3591 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3592 (fetch_inferior_event): Nor here.
3594 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3596 * inf-loop.c (inferior_event_handler): Only output a message if
3599 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3601 * MAINTAINERS: Update my e-mail address.
3603 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3605 * infrun.c (proceed): Switch the inferior event loop to
3606 INF_EXEC_COMPLETE if the target refused to resume from a
3609 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3611 * infcmd.c: Include "inf-loop.h".
3612 (step_once): When stepping into an inline subroutine, pretend the
3613 target has run. If the target can async, switch the inferior
3614 event loop to INF_EXEC_COMPLETE.
3615 * inferior.h (user_visible_resume_ptid): Declare.
3616 * infrun.c (user_visible_resume_ptid): New function, factored out
3619 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3620 that the current thread is running. Merge async and sync
3623 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3625 * infcmd.c (step_1): Simplify synchronous case.
3627 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3629 * tracepoint.c: Include exceptions.h.
3630 (TFILE_PID): Move higher in file.
3631 (tfile_open): Delay pushing the tfile target until we're assured
3632 the tfile header is present in the file. Wrap reading the initial
3633 newline-terminated lines in TRY_CATCH. Pop the target if the
3634 initial setup failed. Add the tfile's thread immediately
3635 aftwards, before any non-essential setup. Don't skip
3636 post_create_inferior if there are no traceframes present in the
3638 (tfile_close): Remove redundant check for null before xfree call.
3639 (tfile_thread_alive): New function.
3640 (init_tfile_ops): Register it as to_thread_alive callback.
3642 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3644 * tracepoint.c (tfile_open): Delete #if 0'd code.
3646 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 Fix -readnow for -gdwarf-4 unused type units.
3649 * dwarf2read.c (struct signatured_type): Remove the field offset.
3650 (create_signatured_type_table_from_index): Remove its initialization.
3651 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3652 instead. Add a complaint call.
3653 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3654 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3655 (lookup_signatured_type_at_offset, read_signatured_type)
3656 (write_one_signatured_type): Update the field for per_cu.
3658 2011-05-19 Tom Tromey <tromey@redhat.com>
3660 * python/py-inferior.c (python_inferior_exit): Use
3662 (python_on_resume): Likewise.
3664 2011-05-19 Matt Rice <ratmice@gmail.com>
3666 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3668 2011-05-19 Hui Zhu <teawater@gmail.com>
3670 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3672 2011-05-19 Hui Zhu <teawater@gmail.com>
3674 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3676 2011-05-18 Tom Tromey <tromey@redhat.com>
3678 * dwarf2read.c (dwarf2_add_field): Constify.
3679 * value.c (value_static_field): Constify.
3680 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3682 * ax-gdb.c (gen_static_field): Constify
3684 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3686 * linux-nat.c (kill_callback): Use SIGKILL first.
3688 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3690 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3692 2011-05-18 Tom Tromey <tromey@redhat.com>
3694 * value.c (value_fn_field): Constify.
3695 * symtab.c (gdb_mangle_name): Constify.
3696 * stabsread.c (update_method_name_from_physname): Make 'physname'
3698 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3699 const. Use explicit fputc_filtered loop.
3700 (pascal_type_print_base): Constify.
3701 * p-lang.h (pascal_type_print_method_args): Update.
3702 * linespec.c (add_matching_methods): Constify.
3703 (add_constructors): Likewise.
3704 * jv-typeprint.c (java_type_print_base): Constify.
3705 * gdbtypes.h (struct cplus_struct_type)
3706 <fn_fieldlist.fn_field.physname>: Now const.
3707 * dwarf2read.c (compute_delayed_physnames): Constify.
3708 (dwarf2_add_member_fn): Likewise.
3709 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3711 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3713 * infrun.c (resume): Mention which is the current thread, and its
3714 current PC in debug output.
3715 (prepare_to_proceed): Mention the thread switching in debug
3718 2011-05-18 Tom Tromey <tromey@redhat.com>
3720 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3721 path check. Use xmalloc and cleanups.
3722 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3724 2011-05-17 Tom Tromey <tromey@redhat.com>
3726 * cp-valprint.c (cp_print_value_fields): Catch errors from
3729 2011-05-17 Tom Tromey <tromey@redhat.com>
3731 * dwarf2read.c (dwarf2_get_die_type): Call
3732 get_die_type_at_offset.
3733 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3734 get_base_type function.
3736 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3738 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3741 2011-05-16 Doug Evans <dje@google.com>
3743 * python/py-auto-load.c (source_section_scripts): Mention objfile
3746 2011-05-15 Doug Evans <dje@google.com>
3748 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3749 (try_thread_db_load_from_pdir): Call it. If unable to find
3750 libthread_db in directory of libpthread, see if we're looking at
3751 the separate-debug-info copy.
3753 * python/py-autoload.c (print_script): Print "Missing" instead of
3754 "No" for missing scripts.
3755 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3757 2011-05-13 Doug Evans <dje@google.com>
3759 * ui-file.c (stdio_file_write_async_safe): Add comment.
3761 2011-05-14 Hui Zhu <teawater@gmail.com>
3763 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3765 2011-05-13 Doug Evans <dje@google.com>
3767 Support $pdir and $sdir in libthread-db-search-path.
3768 * NEWS: Mention $sdir,$pdir.
3769 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3770 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3771 (try_thread_db_load_from_sdir): New function.
3772 (try_thread_db_load_from_dir): New function.
3773 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3774 system directories if search of libthread-db-search-path fails,
3775 that is now done via $sdir.
3776 (has_libpthread): New function.
3777 (thread_db_load): Remove search for libthread_db in directory of
3778 libpthread, that is now done via $pdir.
3780 * NEWS: Mention "info auto-load-scripts".
3781 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3782 script_not_found_warning_printed.
3783 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3784 all callers updated. Initialize script_not_found_warning_printed.
3785 (get_auto_load_pspace_data_for_loading): New function.
3786 (maybe_add_script): New function.
3787 (source_section_scripts): Simplify. Only print one warning regardless
3788 of the number of auto-load scripts not found.
3789 (clear_section_scripts): Clear script_not_found_warning_printed.
3790 (auto_load_objfile_script): Record script in hash table.
3791 (count_matching_scripts): New function.
3792 (maybe_print_script): Renamed from maybe_print_section_script, all
3793 callers updated. Rewrite to use ui_out_*.
3794 (info_auto_load_scripts): Renamed from
3795 maintenance_print_section_scripts, all callers updated.
3796 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3797 renamed as "info auto-load-scripts".
3799 2011-05-13 Tom Tromey <tromey@redhat.com>
3801 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3802 (read_sleb128): Likewise.
3804 2011-05-13 Tom Tromey <tromey@redhat.com>
3806 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3809 2011-05-13 Doug Evans <dje@google.com>
3811 * linux-nat.c (debug_linux_nat_async): Delete.
3812 Replace all references to use debug_linux_nat instead.
3813 (show_debug_linux_nat_async): Delete.
3814 (sigchld_handler): Call ui_file_write_async_safe instead of
3816 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3817 * ui-file.c (struct ui_file): New member to_write_async_safe.
3818 (null_file_write_async_safe): New function.
3819 (ui_file_write_async_safe): New function.
3820 (set_ui_file_write_async_safe): New function.
3821 (ui_file_new): Initialize to_write_async_safe.
3822 (stdio_file_write_async_safe): New function.
3823 (struct stdio_file): New member fd.
3824 (stdio_file_new): Initialize to_write_async_safe, fd.
3825 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3827 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3828 (set_ui_file_write_async_safe): Declare.
3829 (ui_file_write_async_safe): Declare.
3831 2011-05-13 Tom Tromey <tromey@redhat.com>
3833 * utils.c (do_value_free): New function.
3834 (make_cleanup_value_free): Likewise.
3835 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3837 (dwarf2_loc_desc_needs_frame): Call
3838 make_cleanup_value_free_to_mark.
3839 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3840 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3842 (new_dwarf_expr_context): Don't call value_mark.
3843 * dwarf2-frame.c (execute_stack_op): Call
3844 make_cleanup_value_free_to_mark.
3845 * defs.h (make_cleanup_value_free): Declare.
3847 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3849 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3850 prepare_execute_command.
3851 * top.c (prepare_execute_command): Return cleanup.
3852 (execute_command): Use cleanup from prepare_execute_command.
3853 * top.h (prepare_execute_command): Change prototype to return
3855 * defs.h (struct value): Add opaque declaration.
3856 (make_cleanup_value_free_to_mark): Add prototype.
3857 * utils.c (do_value_free_to_mark): New function.
3858 (make_cleanup_value_free_to_mark): Likewise.
3860 2011-05-12 Tom Tromey <tromey@redhat.com>
3862 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3863 cast left-hand-side to unsigned.
3865 2011-05-12 Tom Tromey <tromey@redhat.com>
3868 * value.h (value_from_contents): Declare.
3869 * value.c (value_from_contents): New function.
3870 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3871 (dwarf2_get_die_type): New function.
3872 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3873 (allocate_piece_closure): Acquire reference to values.
3874 (read_pieced_value): Update for value-based expressions.
3875 (write_pieced_value): Likewise.
3876 (free_pieced_value_closure): Call value_free as needed.
3877 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3878 Update for value-based expressions.
3879 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3880 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3881 <get_base_type>: New field.
3882 (struct dwarf_expr_piece) <v.value>: Change type.
3883 <v.regno>: New field.
3884 (struct dwarf_expr_context) <mark>: New field.
3885 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3886 (dwarf_expr_pop, dwarf_expr_push): Remove.
3887 (dwarf_expr_push_address): Declare.
3888 * dwarf2expr.c (dwarf_arch_cookie): New global.
3889 (struct dwarf_gdbarch_types): New.
3890 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3892 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3894 (dwarf_expr_push_address): New function.
3895 (dwarf_expr_pop): Now static.
3896 (dwarf_expr_fetch): Change return type.
3897 (dwarf_require_integral): New function.
3898 (dwarf_expr_fetch): Simplify.
3899 (add_piece): Update.
3900 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3902 (execute_stack_op) <sign_ext>: Remove.
3903 Use values for DWARF stack.
3904 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3905 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3907 (_initialize_dwarf2expr): New function.
3908 (add_piece): Update.
3909 (new_dwarf_expr_context): Set new field.
3910 (free_dwarf_expr_context): Call value_free_to_mark.
3911 * dwarf2-frame.c (no_base_type): New function.
3912 (execute_stack_op): Set get_base_type field. Update.
3914 2011-05-12 Tom Tromey <tromey@redhat.com>
3916 * dwarf2read.c (read_common_block): Fix formatting.
3918 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3920 * breakpoint.c (disable_breakpoint): Disable all locations
3921 associated with a tracepoint on target if a trace experiment is
3923 (disable_command): Disable a specific tracepoint location on target if
3924 a trace experiment is running.
3925 (do_enable_breakpoint): Enable all locations associated with a
3926 tracepoint on target if a trace experiment is running.
3927 (enable_command) Enable a specific tracepoint location on target if a
3928 trace experiment is running.
3929 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3930 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3931 to_disable_tracepoint.
3932 * target.h: Add declaration of struct bp_location.
3933 (struct target_ops): Add new functions
3934 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3935 to_disable_tracepoint to target operations.
3936 (target_supports_enable_disable_tracepoint): New macro.
3937 (target_enable_tracepoint): New macro.
3938 (target_disable_tracepoint): New macro.
3939 * remote.c (struct remote_state): Add new field.
3940 (remote_enable_disable_tracepoint_feature): New.
3941 (remote_protocol_features): Add new entry.
3942 (remote_supports_enable_disable_tracepoint): New.
3943 (remote_enable_tracepoint): New.
3944 (remote_disable_tracepoint): New.
3945 (init_remote_ops): Add remote_enable_tracepoint,
3946 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3947 to remote operations.
3948 * tracepoint.c (start_tracing): Allow tracing to start without any
3949 tracepoints enabled with just a warning if they can be re-enabled
3951 * NEWS: Add news item for the new behaviour of the enable and disable
3952 GDB commands when applied to tracepoints.
3953 Add news items for the new remote packets QTEnable and QTDisable.
3955 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 * config.in: Regenerate.
3958 * configure: Regenerate.
3959 * configure.ac <--with-system-readline> (for readline_echoing_p):
3961 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3962 (tui_old_rl_echoing_p): ... here.
3963 (tui_setup_io): Rename extern declaration readline_echoing_p to
3964 _rl_echoing_p. Adjust assignments for the both renames.
3966 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3968 * symtab.c (lookup_symtab): Run cleanup before returning.
3970 2011-05-11 Tom Tromey <tromey@redhat.com>
3972 * dwarf2read.c (handle_data_member_location): New function.
3973 (dwarf2_add_field): Use it.
3974 (read_common_block): Likewise.
3976 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3978 Make addrs->SECTINDEX always defined.
3979 * symfile.c (relative_addr_info_to_section_offsets): Check for
3980 SECTINDEX -1, not for zero ADDR.
3981 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3982 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3983 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3986 2011-05-10 Doug Evans <dje@google.com>
3988 * linux-thread-db.c: Whitespace cleanup.
3989 (try_thread_db_load_1): Fix comment.
3991 * linux-thread-db.c (set_libthread_db_search_path): New function.
3992 (_initialize_thread_db): Add setter for libthread-db-search-path.
3994 2011-05-09 Doug Evans <dje@google.com>
3996 * NEWS: Mention --with-iconv-bin.
3997 * configure.ac: New option --with-iconv-bin.
3998 * configure: Regenerate.
3999 * config.in: Regenerate.
4000 * defs.h (relocate_gdb_directory): Declare.
4001 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
4002 removed progname parameter, and exported. All callers updated.
4003 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
4005 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
4006 adding missing call to restore_child_signals_mask.
4008 2011-05-09 Pedro Alves <pedro@codesourcery.com>
4010 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
4012 * infrun.c (proceed, start_remote): Adjust.
4013 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
4014 and adjust to not handle it.
4015 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
4016 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
4017 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
4018 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
4019 * windows-nat.c (do_initial_windows_stuff): Adjust.
4020 * infcmd.c (attach_command): Adjust.
4021 (notice_new_inferior): Adjust.
4023 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4025 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
4026 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
4027 * spu-tdep.c (op_selb): Use correct value.
4029 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4031 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
4032 "parent" parameter to symbol_file_add_from_bfd call.
4034 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4035 Thiago Jung Bauermann <bauerman@br.ibm.com>
4037 Implement support for PowerPC BookE masked watchpoints.
4038 * NEWS: Mention masked watchpoint support. Create "Changed commands"
4040 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
4041 method. Initialize to NULL in all existing breakpoint_ops instances.
4042 (struct breakpoint) <hw_wp_mask>: New field.
4043 * breakpoint.c (is_masked_watchpoint): Add prototype.
4044 (update_watchpoint): Don't set b->val for masked watchpoints. Call
4045 breakpoint's breakpoint_ops.works_in_software_mode if available.
4046 (watchpoints_triggered): Handle the case of a hardware masked
4048 (watchpoint_check): Likewise.
4049 (works_in_software_mode_watchpoint): New function.
4050 (insert_masked_watchpoint, remove_masked_watchpoint)
4051 (resources_needed_masked_watchpoint)
4052 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4053 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4054 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4056 (masked_watchpoint_breakpoint_ops): New structure.
4057 (watch_command_1): Check for the existence of the `mask' parameter.
4058 Set b->ops according to the type of hardware watchpoint being created.
4059 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4060 (ppc_linux_remove_mask_watchpoint)
4061 (ppc_linux_masked_watch_num_registers): New functions.
4062 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4063 to_remove_mask_watchpoint and to_masked_watch_num_registers.
4064 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4065 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4066 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4067 (target_masked_watch_num_registers): New functions.
4068 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4069 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4071 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4072 (target_masked_watch_num_registers): Add prototypes.
4074 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4077 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4078 (producer_is_gcc_ge_4_0): New function.
4079 (process_full_comp_unit): Set also symtab->locations_valid. Move the
4080 symtab->language code.
4081 (var_decode_location): Set cu->has_loclist.
4082 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4083 skip. Intialize force_skip from locations_valid. Move the prologue
4084 skipping code into two passes.
4085 * symtab.h (struct symtab): Make the primary field a bitfield. New
4086 field locations_valid.
4088 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4090 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4091 (classify_inner_name): Call cp_lookup_nested_type with
4093 * cp-namespace.c (cp_lookup_nested_type): New variable
4094 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
4095 type_name_no_tag_or_error with saved_parent_type.
4096 * dwarf2read.c (load_partial_dies): Read in any children of
4097 DW_TAG_typedef with complaint in such case.
4098 * gdbtypes.c (type_name_no_tag_or_error): New function.
4099 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4100 * valops.c (destructor_name_p): New comment for parameter type. Remove
4101 type const. Make dname and cp const. Call type_name_no_tag_or_error.
4102 * value.h (destructor_name_p): Remove type const.
4104 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4106 * symtab.c (compare_symbol_name): New function.
4107 (completion_list_add_name, expand_partial_symbol_name): Call it,
4108 remove the variable ncmp.
4109 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4112 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4114 Demote to sw watchpoint only in update_watchpoint.
4115 * breakpoint.c (update_watchpoint): Change between software and
4116 hardware watchpoint for all kinds of watchpoints, not just
4117 read/write ones. Determine b->exact value here instead of
4118 in watch_command_1. Error out if there are not enough resources
4119 for a read or access hardware watchpoint.
4120 (watch_command_1): Remove logic of checking whether there are
4121 enough resources available, since update_watchpoint will do that
4122 work now. Don't set b->exact here. Catch exceptions thrown by
4123 update_watchpoint and delete the watchpoint.
4124 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4125 Use target_exact_watchpoints instead.
4126 (delete_breakpoint): Notify observers only if deleted watchpoint
4127 has a breakpoint number assigned to it.
4129 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
4131 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4133 2011-05-05 Jerome Guitton <guitton@adacore.com>
4135 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4137 (i386_stack_tramp_frame_unwind): New static global.
4138 (i386_match_pattern): New function, extracted from i386_match_insn.
4139 (i386_match_insn): Use i386_match_pattern.
4140 (i386_match_insn_block): New function.
4141 (i386_tramp_chain_in_reg_insns)
4142 (i386_tramp_chain_on_stack_insns): New static variables.
4143 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4146 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4148 * configure.host (xscale*): Don't handle target.
4149 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4152 2011-05-04 Yao Qi <yao@codesourcery.com>
4154 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4156 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4159 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4160 | * elfread.c (elf_symtab_read): Stop memory leak.
4162 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4164 * nto-tdep.c (nto_target): Replace deprecated call to
4165 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4167 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4169 Fix false GCC warning.
4170 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4172 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4174 * breakpoint.c (update_watchpoint): Move code to change
4175 the enable state of breakpoint from here ...
4176 (do_enable_breakpoint): ... to here.
4178 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4180 * valprint.c (val_print_array_elements): Fixed poor performance
4181 of printing very large arrays with repeat_count_threshold set
4182 to unlimited. New comment.
4184 2011-04-29 Tom Tromey <tromey@redhat.com>
4186 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4187 (mi_parse): Likewise.
4188 * breakpoint.c (break_range_command): Use sizeof char*, not
4190 (create_breakpoint): Likewise.
4191 (parse_breakpoint_sals): Likewise.
4193 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4195 * linux-nat.c (linux_child_remove_fork_catchpoint)
4196 (linux_child_remove_vfork_catchpoint)
4197 (linux_child_remove_exec_catchpoint): New functions.
4198 (linux_target_install_ops): Install them.
4200 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4204 * varobj.c (install_default_visualizer): Do not install a
4205 visualizer if the varobj is CPLUS_FAKE_CHILD.
4206 (construct_visualizer): Likewise.
4208 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4211 case insensitive comparison.
4213 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4215 * infrun.c (proceed): Revert previous change.
4216 (resume): Instead, handle the case of signal delivery while stepping
4217 off a breakpoint location here, and only if software single-stepping
4218 is used. Handle nested signals.
4220 2011-04-28 Yao Qi <yao@codesourcery.com>
4222 * arm-tdep.c (copy_unmodified): Rename to ...
4223 (arm_copy_unmodified): .. this. New.
4224 (copy_preload): Move common part to ...
4225 (install_preload): .. this. New.
4226 (arm_copy_preload): New.
4227 (copy_preload_reg): Move common part to ...
4228 (install_preload_reg): ... this. New.
4229 (arm_copy_preload_reg): New.
4230 (copy_b_bl_blx): Move common part to ...
4231 (install_b_bl_blx): .. this. New.
4232 (arm_copy_b_bl_blx): New.
4233 (copy_bx_blx_reg): Move common part to ...
4234 (install_bx_blx_reg): ... this. New.
4235 (arm_copy_bx_blx_reg): New.
4236 (copy_alu_reg): Move common part to ...
4237 (install_alu_reg): ... this. New.
4238 (arm_copy_alu_reg): New.
4239 (copy_alu_shifted_reg): Move common part to ...
4240 (install_alu_shifted_reg): ... this. New.
4241 (copy_ldr_str_ldrb_strb): Move common part to ...
4242 (install_ldr_str_ldrb_strb): ... this. New.
4243 (arm_copy_ldr_str_ldrb_strb): New.
4244 (copy_copro_load_store): Move some common part to ...
4245 (install_copy_copro_load_store): ... this. New.
4246 (arm_copy_copro_load_store): New.
4248 (arm_copy_svc): Renamed from copy_svc.
4249 (copy_undef): Delete.
4250 (arm_copy_undef): Renamed from copy_undef.
4251 (decode_ext_reg_ld_st): Delete.
4252 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4253 (decode_svc_copro): Delete.
4254 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4255 (copy_copro_load_store, copy_alu_imm): update callers.
4256 (copy_extra_ld_st, copy_block_xfer): Likewise.
4257 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4258 (decode_miscellaneous, decode_dp_misc): Likewise.
4259 (decode_ld_st_word_ubyte, decode_media): Likewise.
4260 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4261 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4262 (decode_unconditional, decode_miscellaneous): Likewise.
4263 (decode_media, decode_b_bl_ldmstm): Likewise.
4264 (arm_process_displaced_insn): Likewise..
4265 (decode_misc_memhint_neon): Delete.
4266 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4267 (decode_miscellaneous): Delete.
4268 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4269 (decode_dp_misc): Delete.
4270 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4271 (decode_ld_st_word_ubyte): Delete.
4272 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4273 (decode_media): Delete.
4274 (arm_decode_media): Renamed from decode_media.
4275 (decode_b_bl_ldmstm): Delete.
4276 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4277 (decode_ext_reg_ld_st): Delete.
4278 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4279 (decode_unconditional): Delete.
4280 (arm_decode_unconditional): Renamed from decode_unconditional.
4282 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4284 Case insensitive lookups implementation.
4285 * dwarf2read.c: Include ctype.h.
4286 (struct mapped_index): New field version.
4287 (mapped_index_string_hash): New parameter index_version. New comment
4288 for it. Call tolower appropriately.
4289 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4290 Choose the right index version for mapped_index_string_hash.
4291 (dwarf2_read_index): Support also the index version 5. Initialize the
4292 new struct mapped_index field version.
4293 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4294 (find_slot): Explain the version needs. Pass INT_MAX for the new
4296 (write_psymtabs_to_index): Produce version 5.
4297 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4298 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4299 * psymtab.c (lookup_partial_symbol): Find the
4300 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4302 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4304 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4305 (completion_list_add_name): New variable ncmp, initialize it, use it.
4306 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4307 * utils.c (strcmp_iw): Support case_sensitive_off.
4308 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4309 New function comment part. New variables saved_string1,
4310 saved_string2 and case_pass. Add a proper second pass.
4312 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4314 Replace re_comp/re_exec by regcomp/regexec.
4315 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4316 (search_symbols_name_matches): Use them, use regexec.
4317 (search_symbols): New variable retval_chain, adjust the use of
4318 old_chain against it. Replace re_comp by regcomp. Use the new struct
4319 search_symbols_data fields, use regexec instead of re_exec.
4321 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4323 Format the code for the next patch.
4324 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4325 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4326 New variables c1 and c2.
4328 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4330 * infrun.c (proceed): Do not single-step into signal delivery
4331 when stepping off a breakpoint location.
4332 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4333 (insert_step_resume_breakpoint_at_caller): Likewise.
4334 (insert_step_resume_breakpoint_at_sal): Likewise.
4335 (insert_longjmp_resume_breakpoint): Likewise.
4337 2011-04-27 Yao Qi <yao@codesourcery.com>
4339 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4341 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4343 * procfs.c (procfs_pass_signals): Fix advance declaration.
4345 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4347 * target.h (struct target_ops): Remove to_notice_signals;
4348 add to_pass_signals.
4349 (target_notice_signals): Remove.
4350 (target_pass_signals): Add prototype.
4351 * target.c (update_current_target): Remove to_notice_signals;
4352 mention to_pass_signals.
4353 (target_pass_signals): New function.
4354 (debug_to_notice_signals): Remove.
4355 (setup_target_debug): Do not install debug_to_notice_signals.
4357 * infrun.c (signal_pass): New global.
4358 (resume): Call target_pass_signals.
4359 (handle_inferior_event): Report all signals while stepping over
4360 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4361 are re-inserted when stepping over a signal handler.
4362 (signal_cache_update): New function.
4363 (signal_stop_update): Call it.
4364 (signal_print_update): Likewise.
4365 (signal_pass_update): Likewise.
4366 (handle_command): Call signal_cache_update and target_pass_signals
4367 instead of target_notice_signals.
4368 (_initialize_infrun): Initialize signal_pass.
4370 * linux-nat.c (pass_mask): New global.
4371 (linux_nat_pass_signals): New function.
4372 (linux_nat_create_inferior): Report all signals initially.
4373 (linux_nat_attach): Likewise.
4374 (linux_nat_resume): Use pass_mask to decide whether to directly
4375 handle an inferior signal.
4376 (linux_nat_wait_1): Likewise.
4377 (linux_nat_add_target): Install to_pass_signals callback.
4379 * nto-procfs.c (notice_signals): Remove.
4380 (procfs_resume): Do not call notice_signals.
4381 (procfs_notice_signals): Remove.
4382 (procfs_pass_signals): New function.
4383 (init_procfs_ops): Install to_pass_signals callback instead of
4384 to_notice_signals callback.
4385 (_initialize_procfs): Report all signals initially.
4387 * procfs.c (procfs_notice_signals): Remove.
4388 (procfs_pass_signals): New function.
4389 (procfs_target): Install to_pass_signals callback instead of
4390 to_notice_signals callback.
4391 (register_gdb_signals): Remove.
4392 (procfs_debug_inferior): Report all signals initially.
4393 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4395 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4396 parameters; use them instead of calling signal_..._state routines.
4397 (remote_notice_signals): Remove.
4398 (remote_start_remote): Report all signals initially.
4399 (remote_resume): Do not call remote_pass_signals.
4400 (_initialize_remote): Install to_pass_signals callback instead of
4401 to_notice_signals callback.
4403 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4405 * breakpoint.c (user_settable_breakpoint): Delete.
4406 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4407 (delete_command): Check user_breakpoint_p instead of looking at
4408 the breakpoint's type.
4409 (disable_command): Ditto.
4410 (enable_command): Ditto.
4411 (delete_trace_command): Use user_breakpoint_p instead of looking
4412 at the breakpoint number directly. When checking if there are
4413 user visible tracepoints, in order to know whether to ask the user
4414 for confirmation, check whether the breakpoint is actually a
4417 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4419 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4422 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4424 MI breakpoint notifications.
4426 * annotate.c (breakpoint_changed): Adjust parameter type.
4427 * breakpoint.c (set_breakpoint_condition): Adjust to change
4428 in breakpoint_modified type.
4429 (breakpoint_set_commands): Likewise.
4430 (do_map_commands_command): Likewise.
4431 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4432 changed after bumping hit count.
4433 (bpstat_stop_status): Likewise.
4434 (print_one_breakpoint_location): Don't wrap in tuple here.
4435 (print_one_breakpoint): Always print individual locations.
4436 For locations, use unnamed tuple.
4437 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4439 (create_catchpoint, create_syscall_event_catchpoint): Call
4440 breakpoint_created obsever.
4441 (mention): Don't call breakpoint_created observer.
4442 (create_breakpoint_sal): Call breakpoint_created observer.
4443 (create_breakpoint, watch_command_1): Likewise.
4444 (create_ada_exception_breakpoint): Likewise.
4445 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4446 (locations_are_equal): New.
4447 (update_breakpoint_locations): If locations were changed, notify.
4448 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4449 Call breakpoint_modified observer.
4451 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4452 (mi_cmd_break_insert): Don't set observers for modify and delete.
4453 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4454 (mi_breakpoint_created, mi_breakpoint_deleted)
4455 (mi_breakpoint_modified): New.
4456 (mi_interpreter_init): Hook the above.
4457 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4458 while -break-* commands are executing.
4459 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4460 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4462 (mi_ui_out_impl): Hook in mi_redirect.
4463 (mi_field_skip): True to the name, skip the field, don't output
4464 a field with an empty value.
4466 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4467 (gdbpy_breakpoint_deleted): Adjust.
4468 * tui/tui-hooks.c (tui_event_create_breakpoint)
4469 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4471 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4473 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4474 (procfs_remove_hw_watchpoint): Likewise.
4476 2011-04-26 Michael Walle <michael@walle.cc>
4478 * remote.c (remote_start_remote): Ack packet after sending the
4481 2011-04-26 Yao Qi <yao@codesourcery.com>
4483 * linux-nat.c: Move common macros to ...
4484 Include linux-ptrace.h.
4485 * common/linux-ptrace.h: ... here. New.
4487 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4489 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4490 !objfile_has_partial_symbols. New comment.
4491 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4492 SYM_READ_PSYMBOLS is not present. Extend the comment.
4493 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4495 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4497 * defs.h (ENUM_BITFIELD): Remove.
4499 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4500 Eli Zaretskii <eliz@gnu.org>
4502 * NEWS: Document the new gdbserver --once option.
4504 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4506 * MAINTAINERS: Update my email address.
4508 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4510 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4511 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4512 function call if __STDC_ISO_10646__ macro is defined.
4513 (intermediate_encoding): New prototype.
4514 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4515 to generate compile time error for unsupported gdb_wchar_t size.
4516 (ENDIAN_SUFFIX): New macro.
4517 (intermediate_encoding): New function.
4519 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4521 * ada-lang.c (struct add_partial_datum): Update the comment for
4522 expand_partial_symbol_name.
4523 (ada_add_partial_symbol_completions): Rename to ...
4524 (ada_expand_partial_symbol_name): ... here, change return type, update
4525 function comment, call symbol_completion_match instead of
4526 symbol_completion_add.
4527 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4528 and ada_expand_partial_symbol_name.
4529 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4531 (dw2_map_symbol_names): Remove.
4532 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4533 * psymtab.c (map_symbol_names_psymtab): Remove.
4534 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4535 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4537 (psym_functions): Unlist map_symbol_names_psymtab.
4538 (map_partial_symbol_names): Rename to ...
4539 (expand_partial_symbol_names): ... here, change the FUN type, call
4540 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4541 * psymtab.h (map_partial_symbol_names): Rename to ...
4542 (expand_partial_symbol_names): ... here, change the FUN type.
4543 * symfile.h (struct quick_symbol_functions): Update the description of
4544 expand_symtabs_matching. Remove map_symbol_names.
4545 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4546 (struct add_name_data): Update the comment for
4547 expand_partial_symbol_name.
4548 (add_partial_symbol_name): Rename to ...
4549 (expand_partial_symbol_name): ... here. Replace
4550 completion_list_add_name call by strncmp.
4551 (default_make_symbol_completion_list_break_on): Use now
4552 expand_partial_symbol_names and expand_partial_symbol_name.
4553 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4555 2011-04-20 Tom Tromey <tromey@redhat.com>
4557 * dwarf2read.c (save_gdb_index_command): Replace format
4558 documentation with a pointer to the manual.
4560 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4562 * regcache.c: Include remote.h.
4563 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4564 (regcache_dump): Handle regcache_dump_remote.
4565 (maintenance_print_remote_registers): New function.
4566 (_initialize_regcache): Install "maint print remote-registers"
4568 * remote.c (map_regcache_remote_table): New function, factored out
4570 (init_remote_state): ... here.
4571 (remote_register_number_and_offset): New.
4572 * remote.h (remote_register_number_and_offset): Declare.
4574 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4576 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4577 null_ptid, assume and allow a NULL address space, instead of
4578 asking the target for the ptid's address space.
4579 * infrun.c (ptid_is_pid): Remove assertion.
4581 2011-04-19 Tom Tromey <tromey@redhat.com>
4583 * windows-tdep.c (windows_xfer_shared_library):
4584 * windows-nat.c (get_module_name, windows_make_so):
4585 * v850-tdep.c (v850_handle_pushm):
4586 * utils.c (null_cleanup, gdb_realpath):
4587 * ui-out.c (get_next_header):
4588 * tracepoint.c (clear_traceframe_info):
4589 * symtab.c (lookup_symtab):
4590 * serial.h (struct serial_ops):
4591 * mipsread.c (read_alphacoff_dynamic_symtab):
4592 * infcmd.c (print_return_value):
4593 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4594 * f-exp.y (parse_number):
4595 * exceptions.c (catch_exceptions):
4596 * dummy-frame.c (dummy_frame_this_id):
4597 * defs.h (struct cleanup):
4598 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4599 * arm-tdep.c (arm_push_dummy_call):
4600 * amd64-tdep.h (amd64_collect_xsave):
4601 * amd64-tdep.c (amd64_collect_xsave):
4602 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4603 * README (typing): Remove duplicate words.
4604 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4605 * infrun.c (siginfo_value_read): Fix typo.
4606 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4607 * top.c (source_line_number): Add comma.
4609 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4611 * thread.c (any_live_thread_of_process): Prioritize threads
4612 that are not executing.
4613 * gdbthread.h (any_live_thread_of_process): Update comment
4614 as per above change.
4616 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4618 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4619 (scan_xcoff_symtab): Likewise.
4621 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4623 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4626 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4627 Pedro Alves <pedro@codesourcery.com>
4629 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4630 variables to simplify code and avoid == operator at end of
4631 line as this is against GNU coding standards.
4633 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4635 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4636 lm_name to name_lm to avoid conflict with lm_name function.
4638 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4640 ARI fixes: Use only lowercase function name for static functions.
4641 * nto-tdep.c (LM_ADDR): Rename to...
4642 (lm_addr): New function name.
4643 (nto_relocate_section_addresses): Adapt to change above.
4644 * solib-sunos.c (LM_ADDR): Rename to...
4645 (lm_addr): New function name.
4646 (LM_NEXT): Rename to...
4647 (lm_next): New function name.
4648 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4649 function name changes above.
4650 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4651 (lm_addr_from_link_map): New function name.
4652 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4653 (has_lm_dynamic_from_link_map): New function name.
4654 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4655 (lm_dynamic_from_link_map): New function name.
4656 (LM_ADDR_CHECK): Rename to...
4657 (lm_addr_check): New function name.
4658 (LM_NEXT): Rename to...
4659 (lm_next): New function name.
4660 (LM_PREV): Rename to...
4661 (lm_prev): New function name.
4662 (LM_NAME): Rename to...
4663 (lm_name): New function name.
4664 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4665 (ignore_first_link_map_entry): New function name.
4666 (svr4_keep_data_in_core): Adapt to function name changes above.
4667 (svr4_current_sos): Likewise.
4668 (enable_break): Likewise.
4669 (svr4_relocate_section_addresses): Likewise.
4671 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4674 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4675 sprintf. Simplify code and avoid loosing memory.
4676 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4677 (call0_frame_cache): Remove && operator from end of line.
4679 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4681 Fix libraries displacement if they change whether they were prelinked.
4682 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4683 does not match. Comment why.
4685 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4687 * corelow.c: Include wrapper.h.
4688 (core_open): Call now gdb_target_find_new_threads.
4689 * wrapper.c: Include target.h.
4690 (gdb_target_find_new_threads): New.
4691 * wrapper.h (gdb_target_find_new_threads): New declaration.
4693 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4695 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4696 even if !TARGET_HAS_EXECUTION.
4698 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4700 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4701 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4702 bfd_get_synthetic_symtab.
4703 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4704 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4705 parameter parent, remove the call to add_separate_debug_objfile.
4706 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4707 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4708 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4709 parent, new comment for it, call add_separate_debug_objfile for it.
4710 (symbol_file_add_separate): Pass objfile as the parameter parent,
4711 remove the call to add_separate_debug_objfile.
4712 (symbol_file_add_from_bfd): New parameter parent, pass it.
4713 (symbol_file_add): Pass NULL to the new parameter parent.
4714 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4716 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4721 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4723 Fix Python access to inlined frames.
4724 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4725 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4727 2011-04-15 Tom Tromey <tromey@redhat.com>
4729 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4731 2011-04-15 Gary Benson <gbenson@redhat.com>
4733 * MAINTAINERS: Add myself to write-after-approval section.
4735 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4737 * remote-sim.c (sim_command_completer): New function.
4738 (_initialize_remote_sim): Set completer to sim_command_completer.
4740 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4742 * breakpoint.c (print_exception_catchpoint): Rename to ...
4743 (print_it_exception_catchpoint): ... this.
4744 (gnu_v3_exception_catchpoint_ops): Update with new name
4745 for print_it_exception_catchpoint.
4747 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4749 * MAINTAINERS: Add myself for write after approval privileges.
4751 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4753 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4755 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4757 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4759 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4761 * breakpoint.c (save_breakpoints): Verify whether
4762 breakpoint_ops.print_recreate is defined before calling it.
4764 2011-04-11 Gary Benson <gbenson@redhat.com>
4766 Fix failure with --enable-maintainer-mode.
4767 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4769 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4772 * symtab.c (search_symbols): Reorder the KIND description in the
4773 function comment. Remove the unused 4th element of types, types2,
4774 types3 and types4. New gdb_assert on KIND.
4775 (symtab_symbol_info): Remove the unused 4th element of classnames.
4776 New gdb_assert on KIND.
4777 * symtab.h (enum search_domain): New warning in the enum comment.
4778 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4781 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4783 Fix crash of gdb save-index on a STABS file.
4784 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4787 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4789 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4790 * dwarf2read.c: Include ctype.h.
4791 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4793 (dwarf2_add_field): Fix new_field->accessibility by calling
4794 dwarf2_default_access_attribute. Restructure setting accessibility
4796 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4797 is_private and is_protected by calling
4798 dwarf2_default_access_attribute.
4800 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4802 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4803 to the initialization.
4805 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4807 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4810 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4812 Remove support for old Cygwin 1.5 versions.
4813 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4814 function on old Cygwin version.
4815 * windows-nat.c: Remove cygwin version check and always define
4816 __USEWIDE for Cygwin compilation.
4818 2011-04-07 Yao Qi <yao@codesourcery.com>
4820 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4822 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4823 (arm_copy_svc): Remove parameters INSN and TO.
4824 (decode_svc_copro): Update caller.
4825 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4826 from function pointer `copy_svc_os'.
4828 2011-04-07 Yao Qi <yao@codesourcery.com>
4830 * arm-tdep.c (cleanup_branch): Set a correct return address in
4831 LR for ARM and Thumb.
4833 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4837 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4838 in the function comment, a new note on values compatibility.
4839 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4840 * symtab.h (SYMBOL_HASH_NEXT): New.
4842 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4844 * ppc-linux-nat.c (check_condition): Add len output parameter.
4845 Set it based on the memory region referenced in the condition
4846 expression. Update all callers.
4848 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4850 Fix crash regression on systems featuring .gdb_index.
4851 * objfiles.c (free_objfile): Move the
4852 forget_cached_source_info_for_objfile call earlier. Comment it.
4853 Extend the comment for objfile_free_data.
4855 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4857 Fix regression of displaying the debug format.
4858 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4861 2011-04-04 Tom Tromey <tromey@redhat.com>
4863 * cli/cli-interp.c (struct captured_execute_command_args):
4865 (do_captured_execute_command): Remove.
4866 (safe_execute_command): Use TRY_CATCH.
4867 * cli/cli-script.c (struct wrapped_read_command_file_args):
4869 (wrapped_read_command_file): Remove.
4870 (script_from_file): Use TRY_CATCH.
4871 * exceptions.c (catch_exception): Remove.
4872 * exceptions.h (catch_exception): Remove.
4873 (deprecated_throw_reason): Update comment.
4874 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4875 argument to 'context'.
4876 (mi_execute_command): Use TRY_CATCH.
4877 * remote.c (struct start_remote_args): Remove.
4878 (remote_start_remote): Update; change arguments.
4879 (remote_open_1): Use TRY_CATCH.
4881 2011-04-04 Tom Tromey <tromey@redhat.com>
4883 * tracepoint.c (scope_info): Update.
4884 * symtab.c (decode_line_spec): Update.
4885 * python/python.c (gdbpy_decode_line): Update.
4886 * linespec.h (decode_line_1): Update.
4887 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4888 (decode_compound, find_method, symtab_from_filename)
4889 (decode_variable): Likewise.
4890 * cli/cli-cmds.c (edit_command): Update.
4891 (list_command): Update.
4892 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4894 (create_breakpoint): Update.
4895 (until_break_command): Update.
4896 (addr_string_to_sals): Update.
4897 (decode_line_spec_1): Update.
4899 2011-04-04 Tom Tromey <tromey@redhat.com>
4901 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4902 (do_captured_parse_breakpoint): Remove.
4903 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4904 Use TRY_CATCH directly.
4906 2011-04-04 Tom Tromey <tromey@redhat.com>
4908 * symtab.h (free_symtab): Remove.
4909 (forget_cached_source_info_for_objfile): Declare.
4910 * symmisc.c (free_symtab): Remove.
4911 * source.c (forget_cached_source_info_for_objfile): New function.
4912 (forget_cached_source_info): Use it.
4913 * objfiles.c (free_objfile): Simplify check before calling
4914 clear_current_source_symtab_and_line. Call
4915 forget_cached_source_info_for_objfile.
4917 2011-04-04 Tom Tromey <tromey@redhat.com>
4919 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4920 (new_symtab): Don't set `free_code' on symtab.
4921 (new_linetable): Properly handle size==0.
4922 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4923 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4925 * jv-lang.c (struct jv_per_objfile_data): New.
4926 (jv_per_objfile_free): Free the data.
4927 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4928 (get_java_class_symtab): Set the `dict' field on the
4929 jv_per_objfile_data.
4930 (free_class_block): Remove.
4931 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4934 2011-04-04 Tom Tromey <tromey@redhat.com>
4936 * symfile.c (reread_symbols): Update.
4937 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4939 * objfiles.c (allocate_objfile): Update.
4940 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4942 * cp-namespace.c (lookup_symbol_file): Don't call
4943 lookup_possible_namespace_symbol.
4944 (initialize_namespace_symtab, get_possible_namespace_block)
4945 (free_namespace_block, cp_check_possible_namespace_symbols)
4946 (check_possible_namespace_symbols_loop)
4947 (check_one_possible_namespace_symbol)
4948 (lookup_possible_namespace_symbol): Remove.
4949 (maintenance_cplus_namespace): Replace with notice.
4950 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4952 2011-04-04 Tom Tromey <tromey@redhat.com>
4954 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4955 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4956 * symmisc.c (free_symtab): Don't free debugformat.
4957 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4958 (record_debugformat, record_producer): Document.
4959 * buildsym.c (end_symtab): Don't save debugformat and producer
4961 (end_symtab): Don't free debugformat and producer fields.
4962 (record_debugformat): Don't call xstrdup.
4963 (record_producer): Likewise.
4965 2011-04-04 Tom Tromey <tromey@redhat.com>
4967 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4968 (source_line_charpos, source_charpos_line): Remove.
4970 2011-04-04 Tom Tromey <tromey@redhat.com>
4972 * symtab.h (domain_enum): Split in two...
4973 (enum search_domain): New.
4974 (search_symbols): Update.
4975 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4976 redundant declarations.
4977 (search_symbols): Change 'kind' argument to search_domain.
4979 (print_symbol_info): Likewise.
4980 (symtab_symbol_info): Likewise.
4981 * symfile.h (struct quick_symbol_functions)
4982 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4983 <expand_symtabs_matching>: Likewise.
4984 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4985 (expand_symtabs_matching_via_partial): Update.
4986 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4987 (dw2_expand_symtabs_for_function): Update.
4988 * block.h: Moved anonymous enum...
4989 * defs.h (enum block_enum): ... here. Now named.
4991 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4993 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4994 * version.in: Bump version to 7.3.50.20110403-cvs.
4996 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4998 * NEWS: Create a new section for the next release branch.
4999 Rename the section of the current branch, now that it has
5002 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5004 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
5005 for "fpscr" in target description.
5007 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5009 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
5010 initialize it. Delay HASH initialization. Strip the part after open
5011 parenthesis for languages with qualifiers. Call do_cleanups.
5013 2011-04-01 Tom Tromey <tromey@redhat.com>
5015 * utils.c (report_command_stats): Don't print `-' for negative
5018 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
5020 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
5021 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
5024 2011-04-01 Joel Brobecker <brobecker@adacore.com>
5026 * breakpoint.h (bpdisp_text): Add declaration.
5027 * breakpoint.c (bpdisp_text): Make non-static.
5028 * ada-lang.c: #include "mi/mi-common.h".
5029 (print_it_exception): Rewrite to improve GDB/MI output.
5031 2011-04-01 Pedro Alves <pedro@codesourcery.com>
5033 * arm-tdep.h (struct address_space): Add forward declaration.
5035 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5037 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
5038 * arm-tdep.c (arm_override_mode): New global.
5039 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
5040 execution mode heuristics.
5041 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
5042 second single-step breakpoint if needed, using
5043 arm_insert_single_step_breakpoint.
5044 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
5045 ARM execution mode, do not call thumb_get_next_pc_raw.
5046 (arm_get_next_pc): Encode execution mode in return value. Call
5047 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5048 (arm_insert_single_step_breakpoint): New function.
5049 (arm_software_single_step): Call it.
5050 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5051 argument to return execution mode of sigreturn target.
5052 (arm_linux_syscall_next_pc): Use it.
5053 (arm_linux_copy_svc): Update call.
5054 (arm_linux_software_single_step): Call
5055 arm_insert_single_step_breakpoint.
5057 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5059 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5062 2011-03-31 Tom Tromey <tromey@redhat.com>
5064 * varobj.c (update_dynamic_varobj_children): Properly handle
5065 errors from iterator.
5067 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5069 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
5070 struct linkage name twice.
5072 2011-03-31 Tom Tromey <tromey@redhat.com>
5074 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5075 missing ">" to message.
5077 2011-03-31 Tom Tromey <tromey@redhat.com>
5079 * varobj.c (instantiate_pretty_printer): Remove duplicate
5082 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
5084 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5085 if neither saved value nor register available (e.g. signal frame).
5087 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5089 * macroexp.c (expand): Avoid uninitialized variable
5092 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5094 * breakpoint.c (break_range_command): Fix typo in comment.
5096 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5097 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5099 Implement support for PowerPC BookE ranged breakpoints.
5100 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5101 * breakpoint.h (struct bp_target_info) <length>: New member
5103 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5104 instead of struct breakpoint as argument, and also add ASPACE
5105 and BP_ADDR arguments. Update all callers.
5106 (struct breakpoint_ops) <print_one_detail>: New method.
5107 (struct breakpoint) <addr_string_range_end>: New member variable.
5108 * breakpoint.c (breakpoint_location_address_match): Add function
5110 (insert_bp_location): Set bl->target_info.length.
5111 (breakpoint_here_p): Call breakpoint_location_address_match.
5112 (moribund_breakpoint_here_p): Likewise.
5113 (regular_breakpoint_inserted_here_p): Likewise.
5114 (breakpoint_thread_match): Likewise.
5115 (bpstat_stop_status): Likewise.
5116 (bpstat_check_location): Move call to
5117 breakpoint_ops.breakpoint_hit to the top.
5118 (print_one_breakpoint_location): Call
5119 breakpoint_ops.print_one_detail if available.
5120 (breakpoint_address_match_range): New function.
5121 (breakpoint_location_address_match): Likewise.
5122 (breakpoint_locations_match): Compare the length field of the
5124 (hw_breakpoint_used_count): Count resources used by all locations
5125 in a breakpoint, and use breakpoint_ops.resources_needed if
5127 (breakpoint_hit_ranged_breakpoint): New function.
5128 (resources_needed_ranged_breakpoint): Likewise.
5129 (print_it_ranged_breakpoint): Likewise.
5130 (print_one_ranged_breakpoint): Likewise.
5131 (print_one_detail_ranged_breakpoint): Likewise.
5132 (print_mention_ranged_breakpoint): Likewise.
5133 (print_recreate_ranged_breakpoint): Likewise.
5134 (ranged_breakpoint_ops): New structure.
5135 (find_breakpoint_range_end): New function.
5136 (break_range_command): Likewise.
5137 (delete_breakpoint): Free addr_string_range_end.
5138 (update_breakpoint_locations): Add SALS_END argument. Update
5139 all callers. Calculate breakpoint length if a non-zero SALS_END
5140 is given. Call breakpoint_locations_match instead of
5141 breakpoint_address_match.
5142 (reset_breakpoint): Find SaL of the end of the range if B is a
5144 (_initialize_breakpoint): Register break-range command.
5145 * defs.h (print_core_address): Add function prototype.
5146 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5148 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5149 (ppc_linux_remove_hw_breakpoint): Likewise.
5150 (_initialize_ppc_linux_nat): Initialize
5151 to_ranged_break_num_registers.
5152 * target.c (update_current_target): Add comment about
5153 to_ranged_break_num_registers.
5154 (target_ranged_break_num_registers): New function.
5155 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5157 (target_ranged_break_num_registers): Add function prototype.
5158 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5159 * utils.c (print_core_address): ... here.
5161 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5163 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5164 variable compiler warning.
5166 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5168 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5170 (re_set_breakpoint): ... to here ...
5171 (addr_string_to_sals): ... and here.
5173 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5175 * Makefile.in (SFILES): Add missing C sources.
5176 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5177 Add missing headers.
5179 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5181 * .gitignore: New file.
5183 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5185 * NEWS: Mention new cfi device simulation.
5187 2011-03-29 Tom Tromey <tromey@redhat.com>
5189 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5190 otherwise anonymous types.
5191 (dwarf2_name): Likewise.
5192 * valops.c (value_struct_elt_for_reference): Refine artificial
5193 type logic. Call error if j==-1.
5195 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5197 Fix false GCC warning.
5198 * infcall.c (find_function_addr): Initialize funaddr.
5200 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5202 Fix mingw compilation with --enable-targets=all.
5203 * remote-mips.c (gdb_usleep.h): Include header.
5204 (mips_enter_debug): Use gdb_usleep instead of sleep.
5206 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 Support resolution of STT_GNU_IFUNC via breakpoints.
5209 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5210 bp_gnu_ifunc_resolver_return.
5211 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5212 the loop. Support bp_gnu_ifunc_resolver and
5213 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5214 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5216 (bptype_string, print_one_breakpoint_location): Support
5217 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5218 (user_settable_breakpoint): Return true also for
5219 bp_gnu_ifunc_resolver.
5220 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5221 bp_gnu_ifunc_resolver_return.
5222 (set_breakpoint_location_function): New parameter explicit_loc,
5223 describe it. Call find_pc_partial_function_gnu_ifunc with new
5224 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5225 EXPLICIT_LOC is not set.
5226 (set_raw_breakpoint): Set EXPLICIT_LOC for
5227 set_breakpoint_location_function.
5228 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5229 set_breakpoint_location_function.
5230 (mention): Support bp_gnu_ifunc_resolver and
5231 bp_gnu_ifunc_resolver_return.
5232 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5233 set_breakpoint_location_function.
5234 (update_breakpoint_locations): Remove static.
5235 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5236 bp_gnu_ifunc_resolver_return.
5237 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5238 bp_gnu_ifunc_resolver_return.
5239 (update_breakpoint_locations): New declaration.
5240 * elfread.c: Include gdbthread.h and regcache.h.
5241 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5243 (elf_gnu_ifunc_fns): Install them.
5244 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5245 (stub_gnu_ifunc_resolver_return_stop): New functions.
5246 (stub_gnu_ifunc_fns): Install them.
5247 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5248 and gnu_ifunc_resolver_return_stop.
5249 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5251 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5253 STT_GNU_IFUNC reader implementation.
5254 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5255 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5256 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5257 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5258 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5259 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5260 (elf_gnu_ifunc_resolve_addr): New.
5261 (elf_symfile_read): Call elf_rel_plt_read.
5262 (elf_gnu_ifunc_fns): New.
5263 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5264 Install elf_gnu_ifunc_fns.
5265 * infcall.c (find_function_return_type): New function.
5266 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5267 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5268 (stub_gnu_ifunc_resolve_name): New functions.
5269 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5270 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5271 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5273 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5275 Code cleanup for later STT_GNU_IFUNC support.
5276 * infcall.c (find_function_addr): Remove variable code, use explicit
5277 dereferences for it. Move VALUE_TYPE initialization later.
5279 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5281 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5282 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5283 (clear_pc_function_cache): Clear it.
5284 (find_pc_partial_function): Rename to ...
5285 (find_pc_partial_function_gnu_ifunc): ... this function. New
5286 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5287 (find_pc_partial_function): New wrapper for this function.
5288 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5290 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5292 GDB internal type support for STT_GNU_IFUNC.
5293 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5294 (elf_symtab_read): Set mst_text_gnu_ifunc for
5295 BSF_GNU_INDIRECT_FUNCTION.
5296 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5297 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5298 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5299 nodebug_got_plt_symbol.
5300 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5301 (TYPE_GNU_IFUNC): New.
5302 (struct main_type): New field flag_gnu_ifunc.
5303 (struct builtin_type): New field builtin_func_func.
5304 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5305 nodebug_got_plt_symbol.
5306 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5307 (in_gnu_ifunc_stub): New.
5308 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5310 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5311 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5312 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5314 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5315 * symtab.c (search_symbols): Likewise.
5316 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5317 and mst_slot_got_plt.
5318 (in_gnu_ifunc_stub): New declaration.
5320 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5322 Support a ring of related breakpoints.
5323 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5324 other functions, add gdb_assert.
5325 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5326 watchpoint_del_at_next_stop.
5327 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5328 (bpstat_stop_status): Handle ring in related_breakpoint.
5329 (set_raw_breakpoint_without_location): Initialize ring in
5331 (delete_breakpoint): Handle ring in related_breakpoint, use
5332 watchpoint_del_at_next_stop.
5333 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5335 2011-03-28 Tom Tromey <tromey@redhat.com>
5338 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5339 with `language_minimal'.
5341 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5343 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5344 instead of checking for STT_ARM_TFUNC symbol type.
5346 2011-03-25 Tom Tromey <tromey@redhat.com>
5348 * linespec.c (symbol_found): Restore line-based result for
5349 non-LOC_LABEL symbols.
5351 2011-03-25 Kai Tietz <ktietz@redhat.com>
5353 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5354 instead of strcmp for comparison.
5355 (tui_source_is_displayed): Likewise.
5356 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5358 2011-03-24 Mark Wielaard <mjw@redhat.com>
5360 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5362 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5363 (find_partial_die_in_comp_unit): Likewise in comment.
5364 (read_attribute_value): Likewise.
5365 (lookup_die_type): Likewise.
5366 (dwarf_form_name): Likewise.
5367 (dump_die_shallow): Likewise.
5368 (follow_die_ref_or_sig): Likewise.
5370 2011-03-24 Tom Tromey <tromey@redhat.com>
5372 PR breakpoints/11816:
5373 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5374 (decode_compound): Update.
5375 (find_function_symbol): New function.
5376 (decode_dollar): Update.
5377 (decode_label): Add 'function_symbol' parameter. Handle
5378 function-relative labels.
5379 (decode_variable): Update.
5380 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5381 not its line. Set `special_display' and canonical name for
5384 2011-03-24 Tom Tromey <tromey@redhat.com>
5386 * linespec.h (struct linespec_result) <special_display>: New
5388 * breakpoint.h (struct breakpoint) <display_canonical>: New
5390 * breakpoint.c (print_breakpoint_location): Respect
5392 (create_breakpoint_sal): Add 'display_canonical' parameter.
5393 (create_breakpoints_sal): Update.
5394 (create_breakpoint): Update.
5396 2011-03-24 Tom Tromey <tromey@redhat.com>
5398 * symtab.c (decode_line_spec): Update.
5399 * linespec.c (build_canonical_line_spec): Change type of
5401 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5402 (find_method, decode_all_digits, decode_dollar, decode_label)
5403 (symbol_found): Likewise.
5404 (init_linespec_result): New function.
5405 * breakpoint.c (struct captured_parse_breakpoint_args)
5406 <canonical_p>: New field, replaces addr_string_p.
5407 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5409 (parse_breakpoint_sals): Likewise.
5410 (do_captured_parse_breakpoint): Update.
5411 (create_breakpoint): Use struct linespec_result.
5412 (until_break_command): Update.
5413 (breakpoint_re_set_one): Update.
5414 (decode_line_spec_1): Update.
5415 * linespec.h (struct linespec_result): New.
5416 (init_linespec_result): Declare.
5418 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5420 * regcache.c (regcache_raw_read): If the target didn't supply a
5421 given raw register, mark it as unavailable.
5423 2011-03-23 Kai Tietz <ktietz@redhat.com>
5425 * breakpoint.c (clear_command): Use filename_cmp
5426 instead of strcmp for comparison.
5427 * buildsym.c (watch_main_source_file_lossage): Likewise.
5428 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5429 checking just for slash.
5430 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5431 strrchr and filename_cmp instead of strcmp for filenames.
5432 (add_old_header_file): Use filename_cmp
5433 instead of strcmp for comparison.
5434 * exec.c (exec_set_section_address): Likewise.
5435 * macrotab.c (macro_lookup_inclusion): Likewise.
5436 (macro_lookup_inclusion): Likewise.
5437 * elfread.c (_initialize_elfread): Likewise.
5438 (elfstab_offset_sections): Likewise.
5439 (elfstab_offset_sections): Use lbasename instead of
5441 * mdebugread.c (parse_partial_symbols): Likewise.
5442 (arse_partial_symbols): Use filename_(n)cmp instead of
5443 str(n)cmp for comparison.
5444 * minsyms.c (lookup_minimal_symbol): Likewise.
5445 * psymtab.c (read_psymtabs_with_filename): Likewise.
5446 * solib.c (solib_read_symbols): Likewise.
5447 (reload_shared_libraries_1): Likewise.
5448 * symmisc.c (maintenance_print_symbols): Likewise.
5449 * symfile.c (separate_debug_file_exists): Likewise.
5450 (reread_symbols): Likewise.
5451 (find_separate_debug_file_by_debuglink): Likewise.
5452 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5453 * source.c (add_path): Likewise.
5454 * symtab.c (filename_seen): Likewise.
5455 (file_matches): Likewise.
5456 (print_symbol_info): Likewise.
5457 (maybe_add_partial_symtab_filename): Likewise.
5458 (make_source_files_completion_list): Likewise.
5459 * xml-syscall.c (init_sysinfo): Likewise.
5460 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5461 IS_DIR_SEPARATOR for checking for trailing path separator.
5463 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5465 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5466 label abort_expression.
5467 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5468 DWARF_VALUE_OPTIMIZED_OUT.
5470 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5473 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5474 to linkage_name. Invert its value. Update the function comment.
5475 (c_type_print_varspec_suffix): Invert it at the caller.
5476 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5478 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5480 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5481 errors when reading the `stop_pc'.
5482 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5485 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5487 * NEWS: Document gdb.Write stream keyword.
5489 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5492 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5493 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5494 (dwarf2_add_field): Fix new_field->accessibility for
5495 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5497 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5501 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5502 other error classes. Do not print stack trace.
5504 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5506 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5507 (dwarf2_add_field): Fix new_field->accessibility for
5508 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5510 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5512 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5513 encountering a load via a non-SP register.
5515 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5517 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5518 field in returned unwinder.
5520 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5522 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5524 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5526 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5529 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5531 * frame.c (frame_unwind_register): Throw an error if unwinding the
5533 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5534 an unwind stop reason.
5535 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5536 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5537 UNWIND_UNAVAILABLE>: New.
5538 * inline-frame.c (inline_frame_unwind): Install
5539 default_frame_unwind_stop_reason.
5540 * frame-unwind.c: Include "exceptions.h".
5541 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5542 (default_frame_unwind_stop_reason): New.
5543 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5544 (default_frame_unwind_stop_reason): Declare.
5545 (struct frame_unwind) <stop_reason>: New function pointer.
5547 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5548 * dwarf2-frame.c: Include exceptions.h.
5549 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5550 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5551 computing the CFA. If such an error was thrown, set
5552 unavailable_retaddr.
5553 (dwarf2_frame_unwind_stop_reason): New.
5554 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5556 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5557 (dwarf2_signal_frame_unwind): Ditto.
5559 * amd64-tdep.c: Include "exceptions.h".
5560 (struct amd64_frame_cache): New field "base_p".
5561 (amd64_init_frame_cache): Clear it.
5562 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5563 Avoid reading registers with functions that throw if the register
5564 is not necessary to compute the frame base.
5565 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5566 swallowing NOT_AVAILABLE_ERROR.
5567 (amd64_frame_unwind_stop_reason): New.
5568 (amd64_frame_this_id): Don't build a frame id if the frame base
5570 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5571 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5572 base_p if the frame base was computable.
5573 (amd64_sigtramp_frame_unwind_stop_reason): New.
5574 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5575 frame base was unavailable.
5576 (amd64_sigtramp_frame_unwind): Install
5577 amd64_sigtramp_frame_unwind_stop_reason.
5578 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5579 base_p if the frame base was computable.
5580 (amd64_epilogue_frame_unwind_stop_reason): New.
5581 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5582 frame base was unavailable.
5583 (amd64_epilogue_frame_unwind): Install
5584 amd64_epilogue_frame_unwind_stop_reason.
5585 * i386-tdep.c: Include "exceptions.h".
5586 (struct i386_frame_cache): New field "base_p".
5587 (i386_init_frame_cache): Clear it.
5588 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5589 Avoid reading registers with functions that throw if the register
5590 is not necessary to compute the frame base.
5591 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5592 swallowing NOT_AVAILABLE_ERROR.
5593 (i386_frame_unwind_stop_reason): New.
5594 (i386_frame_this_id): Don't build a frame id if the frame base was
5596 (i386_frame_prev_register): Handle unavailable SP.
5597 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5598 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5599 base_p if the frame base was computable.
5600 (i386_epilogue_frame_unwind_stop_reason): New.
5601 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5602 base was unavailable.
5603 (i386_epilogue_frame_unwind): Install
5604 i386_epilogue_frame_unwind_stop_reason.
5605 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5606 base_p if the frame base was computable.
5607 (i386_sigtramp_frame_unwind_stop_reason): New.
5608 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5609 base was unavailable.
5610 (i386_sigtramp_frame_unwind): Install
5611 i386_sigtramp_frame_unwind_stop_reason.
5612 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5613 type's size, not the register's.
5614 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5616 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5617 default_frame_unwind_stop_reason.
5618 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5619 (alpha_heuristic_frame_unwind): Ditto.
5620 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5621 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5622 * avr-tdep.c (avr_frame_unwind): Ditto.
5623 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5625 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5626 * frv-tdep.c (frv_frame_unwind): Ditto.
5627 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5628 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5629 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5630 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5631 (hppa_stub_frame_unwind): Ditto.
5632 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5633 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5634 (ia64_libunwind_frame_unwind)
5635 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5636 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5637 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5638 * m32c-tdep.c (m32c_unwind): Ditto.
5639 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5640 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5641 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5642 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5643 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5644 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5645 * mep-tdep.c (mep_frame_unwind): Ditto.
5646 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5647 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5648 (mips_stub_frame_unwind): Ditto.
5649 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5650 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5651 * mt-tdep.c (mt_frame_unwind): Ditto.
5652 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5653 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5654 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5655 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5656 (s390_sigtramp_frame_unwind): Ditto.
5657 * score-tdep.c (score_prologue_unwind): Ditto.
5658 * sh-tdep.c (sh_frame_unwind): Ditto.
5659 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5660 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5661 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5662 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5663 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5664 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5665 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5666 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5667 (sparc64obsd_trapframe_unwind): Ditto.
5668 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5669 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5670 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5671 * v850-tdep.c (v850_frame_unwind): Ditto.
5672 * vax-tdep.c (vax_frame_unwind): Ditto.
5673 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5674 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5675 * xtensa-tdep.c (xtensa_unwind): Ditto.
5677 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5679 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5680 there's always a frame. Use get_frame_pc_if_available instead of
5681 get_frame_pc, and if there's no PC available, don't look up a
5684 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5686 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5689 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5691 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5694 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5696 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5697 * frame.c (frame_unwind_caller_pc_if_available): New.
5698 * stack.c (frame_info): Handle unavailable PC.
5700 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5702 * frame.c (frame_unwind_pc): Rename to ...
5703 (frame_unwind_pc_if_available): ... this. New `pc' output
5704 parameter. Change return type to int. Gracefully handle
5705 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5706 happened, or 1 otherwise.
5707 (frame_unwind_pc): Reimplement on top of
5708 frame_unwind_pc_if_available.
5709 (get_frame_func): Rename to ...
5710 (get_frame_func_if_available): New `pc' output parameter. Change
5711 return type to int. Gracefully handle the PC not being available.
5712 (get_frame_func): Reimplement on top of
5713 get_frame_func_if_available.
5714 (select_frame): Handle the PC being unavailable.
5715 (get_prev_frame): Handle the PC being unavailable.
5716 (get_frame_pc_if_available): New.
5717 (get_frame_address_in_block_if_available): New.
5718 (find_frame_sal): Handle the frame PC not being available.
5719 * frame.h (get_frame_pc_if_available): Declare.
5720 (get_frame_address_in_block_if_available): Declare.
5721 (get_frame_func_if_available): Declare.
5722 * stack.c (print_frame_info): Handle the PC being unavailable.
5723 (find_frame_funname): Ditto.
5724 (print_frame): Handle the PC being unavailable.
5725 (get_frame_language): Ditto.
5726 * blockframe.c (get_frame_block): Ditto.
5727 * macroscope.c (default_macro_scope): Ditto.
5728 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5730 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5732 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5733 NOT_AVAILABLE_ERROR when evaluating the location expression.
5735 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5737 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5738 returning that the register piece is unavailable/optimized out.
5739 (write_pieced_value): Handle get_frame_register_bytes returning
5740 that the register piece is unavailable/optimized out when doing a
5741 read-modify write of a bitfield.
5742 * findvar.c (value_from_register): Handle get_frame_register_bytes
5743 returning that the register piece is unavailable/optimized out.
5744 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5745 and `unavailablep'. Throw error on bad debug info. Use
5746 frame_register instead of frame_register_read, to fill in the new
5748 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5750 * valops.c: (value_assign): Adjust, and handle
5751 get_frame_register_bytes failing.
5752 * spu-tdep.c: Include exceptions.h.
5753 (spu_software_single_step): Adjust, and handle
5754 get_frame_register_bytes failing.
5755 (spu_get_longjmp_target): Ditto.
5756 * gdbarch.sh (register_to_value): Change to return int. New
5757 parameters `optimizedp' and `unavailablep'.
5758 * gdbarch.h, gdbarch.c: Regenerate.
5759 * i386-tdep.c (i386_register_to_value): Adjust to new
5760 gdbarch_register_to_value interface.
5761 * i387-tdep.c (i387_register_to_value): Ditto.
5762 * i387-tdep.h (i387_register_to_value): Ditto.
5763 * alpha-tdep.c (alpha_register_to_value): Ditto.
5764 * ia64-tdep.c (ia64_register_to_value): Ditto.
5765 * m68k-tdep.c (m68k_register_to_value): Ditto.
5766 * mips-tdep.c (mips_register_to_value): Ditto.
5767 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5769 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5771 * findvar.c (value_of_register): Mark the value as unavailable, if
5772 the register is unavailable.
5773 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5774 (frame_register): New `unavailablep' parameter.
5775 (frame_register_read): Update comment.
5776 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5777 Set it if the register is unavailable. If the register is
5778 unavailable, clear the output buffer.
5779 (frame_register): New `unavailablep' parameter. Pass it down.
5780 (frame_unwind_register): Adjust.
5781 (put_frame_register): Adjust.
5782 (frame_register_read): Adjust. Also return false if the register
5784 (frame_register_unwind_location): Adjust.
5785 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5786 is unavailable, mark the value accordingly.
5787 * stack.c (frame_info): Handle unavailable registers.
5789 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5791 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5792 simplify, using regcache_cooked_read.
5794 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5796 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5797 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5798 (regcache_raw_read_unsigned, regcache_raw_read_part)
5799 (regcache_cooked_read, regcache_cooked_read_signed)
5800 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5801 (regcache_cooked_read_ftype): Change return to enum
5803 * regcache.c: Include exceptions.h
5804 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5805 (do_cooked_read): Change return to enum register_status. Always
5806 forward to regcache_cooked_read.
5807 (regcache_raw_read): Change return to enum register_status. If
5808 the register is not REG_VALID, memset the buffer. Return the
5810 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5811 return the register's status.
5812 (regcache_raw_read_unsigned): Ditto.
5813 (regcache_cooked_read): Change return to enum register_status.
5814 Assert that with read-only regcaches, the register's status must
5815 be known. If the regcache is read-only, and the register is not
5816 REG_VALID, memset the buffer. Return the register's status.
5817 (regcache_cooked_read_signed): Change return to enum
5818 register_status. Handle non-REG_VALID registers and return the
5820 (regcache_cooked_read_unsigned): Change return to enum
5821 register_status. Handle non-REG_VALID registers and return the
5823 (regcache_xfer_part, regcache_raw_read_part)
5824 (regcache_cooked_read_part): Change return to enum
5825 register_status. Return the register's status.
5826 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5828 (regcache_dump): Handle unavailable cooked registers.
5829 * frame.c (do_frame_register_read): Adjust interface to match
5830 regcache_cooked_read_ftype.
5831 * gdbarch.sh (pseudo_register_read): Change return to enum
5833 * gdbarch.h, gdbarch.c: Regenerate.
5835 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5837 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5838 register_status. If reading a raw register indicates the raw
5839 register is not valid, return the raw register's status,
5840 otherwise, return REG_VALID.
5841 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5842 register_status. Handle non-REG_VALID raw registers and return
5843 the register's status.
5844 * arm-tdep.c (arm_neon_quad_read)
5845 (arm_pseudo_read): Change return to enum register_status. Handle
5846 non-REG_VALID raw registers and return the register's status.
5847 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5848 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5849 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5850 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5851 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5853 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5854 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5855 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5856 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5857 (m32c_pseudo_register_read): Change return to enum
5858 register_status. Adjust.
5859 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5860 enum register_status. Return the register's status.
5861 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5862 register_status. Return the register's status.
5863 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5864 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5865 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5866 * rs6000-tdep.c (move_ev_register_func): New typedef.
5867 (e500_move_ev_register): Use it. Change return to enum
5868 register_status. Return the register's status.
5869 (do_regcache_raw_read): New function.
5870 (do_regcache_raw_write): New function.
5871 (e500_pseudo_register_read): Change return to enum
5872 register_status. Return the register's status. Use
5873 do_regcache_raw_read.
5874 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5875 (dfp_pseudo_register_read): Change return to enum register_status.
5876 Return the register's status.
5877 (vsx_pseudo_register_read): Ditto.
5878 (efpr_pseudo_register_read): Ditto.
5879 (rs6000_pseudo_register_read): Ditto.
5880 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5881 register_status. Return the register's status.
5882 * sh64-tdep.c (pseudo_register_read_portions): New function.
5883 (sh64_pseudo_register_read): Change return to enum
5884 register_status. Use pseudo_register_read_portions. Return the
5886 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5887 register_status. Return the register's status.
5888 * sh-tdep.c (pseudo_register_read_portions): New function.
5889 (sh_pseudo_register_read): Change return to enum register_status.
5890 Use pseudo_register_read_portions. Return the register's status.
5891 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5892 enum register_status. Return the register's status.
5893 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5894 * spu-tdep.c (spu_pseudo_register_read_spu)
5895 (spu_pseudo_register_read): Ditto.
5896 * xtensa-tdep.c (xtensa_register_read_masked)
5897 (xtensa_pseudo_register_read): Ditto.
5898 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5900 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5902 * python/py-value.c (valpy_getitem): Fix formatting of error function
5905 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5907 ARI fixes: Add missing internationalization markups throughout
5909 * darwin-nat-info.c: Ditto.
5912 * mi/mi-main.c: Ditto.
5914 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5916 ARI fixes: Add missing internationalization markups throughout
5919 * cp-name-parser.y: Ditto.
5922 * objc-exp.y: Ditto.
5925 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5927 ARI fixes: Messages should have no trailing new lines.
5928 * darwin-nat.c (mach_check_error): Remove trailing new line from
5929 warning function call message.
5930 * record.c (bfdcore_read): Idem for error call.
5932 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5934 * common/signals.c (target_signal_from_host): Add _ markup to error
5935 function call message.
5936 (target_signal_to_host): Add _ markup and remove trailing new line
5937 from warning call message.
5938 (target_signal_from_command): Add _ markup to error function call
5941 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5945 * python/python.c (gdbpy_write): Accept a stream argument and
5946 operate to the appropriate stream.
5947 (gdbpy_flush): Likewise.
5948 (_initialize_python): Add stream constants.
5949 (finish_python_initialization): Add GdbOutputErrorFile class.
5951 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5953 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5955 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5957 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5958 to store_signed_integer. Add debug message when relocating CALL
5959 instructions. Fix formatting of debug message.
5960 * i386-tdep.c (i386_relocate_instruction): Ditto.
5962 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5964 * target.h (struct target_ops): Remove to_lookup_symbol field.
5965 (target_lookup_symbol): Delete macro.
5966 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5967 (update_current_target, setup_target_debug): Remove handling
5968 of to_lookup_symbol target_ops field.
5969 * ada-tasks.c (get_known_tasks_addr): Remove use of
5970 target_lookup_symbol.
5971 * coffread.c (coff_symtab_read): Likewise.
5972 * dbxread.c (read_dbx_symtab): Ditto.
5974 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5977 * configure.ac: Add getthrds declaration check.
5978 * configure, config.in: Regenerate.
5979 * aix-thread.c (getthrds): Declare only if not already declared
5980 in procinfo.h. More declaration out of get_signaled_thread to
5983 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5985 * python/py-symtab.c: Populate symtab_object_methods,
5987 (stpy_is_valid): New function.
5988 (salpy_is_valid): Ditto.
5989 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5990 (sympy_is_valid): New function.
5991 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5992 (objfpy_is_valid): New function.
5993 * python/py-inferior.c: Populate inferior_object_methods.
5994 (infpy_is_valid): New function.
5995 * python/py-infthread.c: Populate thread_object_methods.
5996 (thpy_is_valid): New function.
5997 * python/py-block.c: Declare block_object_methods. Populate. Declare
5998 block_iterator_object_methods. Populate.
5999 (blpy_is_valid): New function.
6000 (blpy_iter_is_valid): Ditto.
6002 2011-03-16 Keith Seitz <keiths@redhat.com>
6004 * linespec.c (find_methods): Canonicalize NAME before looking
6006 (name_end): New function.
6007 (keep_name_info): New function.
6008 (decode_line_1): Use keep_name_info.
6009 (decode_compound): Likewise.
6010 * cli/cli-utils.h (remove_trailing_whitespace): New function.
6011 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
6014 * linespec.c (locate_first_half): Keep overload information, too.
6015 (decode_compound): Use a string to represent break characters
6017 If P points to a break character, do not increment it.
6018 For C++ and Java, keep overload information and relevant keywords.
6019 If we cannot find a symbol, search the minimal symbols.
6022 * linespec.c (decode_compound): Rename SAVED_ARG to
6024 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
6026 Pass a valid block to lookup_symbol.
6027 (lookup_prefix_sym): Likewise.
6028 (find_method): Construct search name based on SYM_CLASS instead
6030 * psymtab.c (lookup_partial_symbol): Add language parameter.
6031 (lookup_symbol_aux_psymtabs): Likewise.
6032 Don't assume that the psymtab we found was the right one. Search
6033 for the desired symbol in the symtab to be certain.
6034 (psymtab_search_name): New function.
6035 (lookup_partial_symbol): Use psymtab_search_name.
6036 Add language parameter.
6037 (read_symtabs_for_function): Add language parameter and pass to
6038 lookup_partial_symbol.
6039 (find_symbol_file_from_partial): Likewise.
6041 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
6044 * dwarf2read.c (noop_record_line): New function.
6045 (dwarf_decode_lines): Ignore line tables for GCd functions.
6047 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6049 Fix ARI warnings about new lines at the end of messages, which
6050 are unneeded as there is a new line added at the end of the message
6052 * darwin-nat.c (darwin_stop_inferior): Ditto.
6053 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6054 * dfp.c (decimal_to_number): Ditto.
6055 * exec.c (print_section_info): Ditto.
6056 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6057 * osdata.c (get_osdata): Ditto.
6058 * record.c (bfdcore_write): Ditto.
6059 * remote-mips.c (mips_readchar): Ditto.
6060 * remote.c (read_ptid): Ditto.
6061 * ser-mingw.c (ser_windows_raw): Ditto.
6062 * tracepoint.c (add_local_symbols): Ditto.
6063 * windows-nat.c (fake_create_process): Ditto.
6065 2011-03-16 Tom Tromey <tromey@redhat.com>
6067 * tracepoint.c (stop_tracing): Don't declare.
6068 * event-top.c (after_char_processing_hook): Add `(void)'.
6070 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
6072 * NEWS: Add Parameter sub-classing description.
6074 2011-03-16 Kai Tietz <ktietz@redhat.com>
6076 * MAINTAINERS: Update my e-mail address.
6078 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
6080 * MAINTAINERS: Add myself for write after approval privileges.
6082 2011-03-15 Michael Snyder <msnyder@vmware.com>
6084 * frame.c (find_frame_sal): Assert sym is not null.
6086 * dbxread.c (process_one_symbol): Assert 'name' is not null.
6088 * objc-lang.c (selectors_info): Check strchr for null result.
6090 * stabsread.c (define_symbol): Guard against bad stabstring input.
6092 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6094 Remove trailing spaces and tabulations from pascal language
6099 p-valprint.c: Ditto.
6101 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6103 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6104 than LOW. Comment it.
6105 (read_partial_die): Call complaint for inappropriate zero LOWPC or
6106 HIGHPC not strictly higher than LOWPC.
6108 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6110 Fix formatting of function declarations returning a pointer in
6112 * varobj.c (varobj_add_child): Ditto.
6113 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6114 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6116 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6118 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6119 for the "generic" vector ABI used with GCC 4.3 and later.
6120 (ppc64_sysv_abi_return_value): Likewise.
6122 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6124 * infcall.c (call_function_by_hand): Function return value is
6125 always a non_lval, even when using struct_return.
6127 2011-03-15 Pedro Alves <pedro@codesourcery.com>
6129 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6130 (map_display_numbers): New.
6131 (do_delete_display): New.
6132 (undisplay_command): Use map_display_numbers.
6133 (do_enable_disable_display): New.
6134 (enable_disable_display_command): New function.
6135 (enable_display): Delete.
6136 (enable_display_command): New.
6137 (disable_display_command): Reimplement.
6138 (_initialize_printcmd): Adjust "enable display" command to use
6139 `enable_display_command' as callback.
6141 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6143 * NEWS: Add Python breakpoint 'stop' operation.
6145 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6147 * NEWS: Delete duplicate entry. Fix typo.
6149 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6151 Fix ARI warning about function names in first column.
6152 Put prototype declaration on same line as return type.
6153 * objc-exp.y: Ditto.
6155 * python/py-stopevent.h: Ditto.
6156 For long function names, split parameters to
6157 allow function name on same line as return type.
6158 * solib-pa64.c: Ditto.
6161 For long function declaration, use single line.
6162 * hppa-tdep.h: Ditto.
6163 * inferior.h: Ditto.
6165 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6167 * python/python.h: Declare gdbpy_should_stop and
6168 gdbpy_breakpoint_has_py_cond.
6169 * python/python.c: Add python.h to includes. Remove python.h from
6170 HAVE_PYTHON definition
6171 (gdbpy_should_stop): New dummy function.
6172 (gdbpy_breakpoint_has_py_cond): New dummy function.
6173 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6174 sub-classing capabilities.
6175 (gdbpy_should_stop): New function.
6176 (gdbpy_breakpoint_has_py_cond): New function.
6177 (local_setattro): New function.
6178 * breakpoint.c (condition_command): Add check for Python 'stop'
6180 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6181 operation function as part of stop/continue tests.
6183 2011-03-14 Tom Tromey <tromey@redhat.com>
6186 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6187 (needs_frame_dwarf_call): Likewise.
6189 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6191 Fix ARI warning about functions without parameters that do not
6193 * breakpoint.c (all_tracepoints): Replace () by (void).
6194 * f-exp.y (match_string_literal): Ditto.
6196 * m2-exp.y (yylex): Ditto.
6197 * mep-tdep.c (current_me_module): Ditto.
6198 (current_options): Ditto.
6199 (current_cop_data_bus_width): Ditto.
6200 (current_cr_names): Ditto.
6201 (current_cr_is_float): Ditto.
6202 (current_ccr_names): Ditto.
6203 * objc-exp.y (yylex): Ditto.
6204 * p-exp.y (yylex): Ditto.
6205 * remote.c (send_interrupt_sequence): Ditto.
6206 * tracepoint.c (current_trace_status): Ditto.
6207 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6208 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6210 2011-03-11 Michael Snyder <msnyder@vmware.com>
6212 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6213 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6214 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6215 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6216 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6218 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6219 (delete_async_event_handler): Ditto.
6221 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6223 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6225 * top.c (set_verbose): Assert showcmd was found.
6227 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6229 * xtensa-tdep.c (warning_once): Correct style issues.
6231 2011-03-11 Yao Qi <yao@codesourcery.com>
6233 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6235 2011-03-11 Andreas Schwab <schwab@redhat.com>
6237 * common/aclocal.m4: Remove.
6239 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6241 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6242 (xtensa_write_register, xtensa_read_register): Likewise.
6243 (xtensa_hextochar): Removed.
6244 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6246 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6248 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6249 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6250 (xtensa_alloc_frame_cache): Add initialization for new fields.
6251 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6252 (warning_once): New function.
6253 (xtensa_insn_kind): New item c0opc_and.
6254 (call0_classify_opcode): Add the case for AND instruction.
6255 (call0_track_op): Change arguments. New local variable litbase.
6256 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6257 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6259 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6260 (call0_analyze_prologue): Update the comments. Change arguments.
6261 Add the variety of updates to handle extended prologues, which now can
6262 conduct dynamic stack adjustments.
6263 (call0_frame_cache): Likewise.
6264 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6265 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6267 2011-03-10 Michael Snyder <msnyder@vmware.com>
6269 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6270 (cmd_qtframe): Ditto.
6271 (cmd_qtbuffer): Ditto.
6272 (cmd_bigqtbuffer): Ditto.
6274 2011-03-10 Tom Tromey <tromey@redhat.com>
6276 * tracepoint.c (trace_actions_command): Update.
6277 * thread.c (thread_apply_command): Update.
6278 * reverse.c (delete_bookmark_command): Update.
6279 (bookmarks_info): Update.
6280 * printcmd.c (undisplay_command): Update.
6281 * memattr.c (mem_enable_command): Update.
6282 (mem_disable_command): Update.
6283 (mem_delete_command): Update.
6284 * inferior.c (detach_inferior_command): Update.
6285 (kill_inferior_command): Update.
6286 (remove_inferior_command): Update.
6287 * cli/cli-utils.h (struct get_number_or_range_state): New.
6288 (init_number_or_range): Declare.
6289 (get_number_or_range): Update.
6290 * cli/cli-utils.c (init_number_or_range): New function.
6291 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6293 (number_is_in_list): Update.
6294 * breakpoint.h (get_tracepoint_by_number): Update.
6295 * breakpoint.c (map_breakpoint_numbers): Update for change to
6296 get_number_or_range.
6297 (find_location_by_number): Use get_number, not
6298 get_number_or_range.
6299 (trace_pass_set_count): New function.
6300 (trace_pass_command): Update for change to get_number_or_range.
6302 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6305 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6307 * python/py-param.c (add_setshow_generic): Add set/show callback
6308 parameters. Register Python object context.
6309 (get_show_value): New function.
6310 (get_set_value): New function.
6311 (call_doc_function): New function.
6312 (get_doc_string): Move behind get_show_value/get_set_value.
6314 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6316 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6318 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6320 * xtensa-tdep.c (xtensa_read_register): Add comment.
6321 (xtensa_write_register): Likewise.
6322 (xtensa_hextochar): Add comment and update to match coding conventions.
6323 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6324 (execute_l32e, execute_s32e, execute_code): Update comments.
6325 (xtensa_exception_handler_t): Update to match coding conventions.
6326 (xtensa_insn_kind): Likewise.
6328 2011-03-09 Michael Snyder <msnyder@vmware.com>
6330 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6332 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6334 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6336 2011-03-09 Tom Tromey <tromey@redhat.com>
6338 * thread.c (restore_selected_frame): Handle frame_level == -1.
6339 (make_cleanup_restore_current_thread): Use
6340 get_selected_frame_if_set.
6341 * frame.h (get_selected_frame_if_set): Declare.
6342 * frame.c (get_selected_frame_if_set): New function.
6344 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6346 * cli/cli-cmds.c (shell_escape): Use lbasename.
6347 * coffread.c (coff_start_symtab): Constify parameter.
6348 (complete_symtab): Constify `name' parameter.
6349 (coff_symtab_read): Constify `filestring' local.
6350 (coff_getfilename): Constify return and `result' local.
6352 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6353 * linux-fork.c (info_checkpoints_command): Use lbasename.
6354 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6355 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6356 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6357 * procfs.c (procfs_make_note_section): Use lbasename.
6358 * tui/tui-io.c (printable_part): Constity return and parameter.
6360 (print_filename): Constify parameters, and local `s'.
6361 (tui_rl_display_match_list): Constify local `temp'.
6363 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6366 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6367 Fix DWARF-3+ DW_AT_accessibility default assumption.
6368 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6369 cu->header.version >= 3.
6371 2011-03-09 Yao Qi <yao@codesourcery.com>
6373 * common/Makefile.in: Remove.
6374 * common/configure: Remove.
6375 * common/configure.ac: Remove.
6377 2011-03-09 Yao Qi <yao@codesourcery.com>
6380 2011-02-11 Yao Qi <yao@codesourcery.com>
6382 * common/Makefile.in: Add copyright header.
6384 2011-02-11 Yao Qi <yao@codesourcery.com>
6386 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6388 * configure.ac: Add common to sub dir.
6389 * configure: Regenerate.
6391 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6393 * xtensa-tdep.c (call0_ret): New function.
6394 (xtensa_skip_prologue): Speed up analysis.
6396 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6398 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6399 while executing MI command -data-list-changed-registers.
6401 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6403 * xtensa-tdep.c (xtensa_read_register): New function.
6404 (xtensa_write_register): New function.
6405 (xtensa_find_register_by_name): New function.
6406 (xtensa_windowed_frame_cache): Update comments in type description.
6407 (xtensa_frame_cache): Likewise.
6408 (xtensa_window_interrupt_insn): New function.
6409 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6410 (xtensa_insn_kind): Add new instructions.
6411 (rwx_special_register): New function.
6412 (call0_classify_opcode): Add new instructions to the analysis.
6413 (a0_saved, a7_saved, a11_saved): New variables.
6414 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6415 (execute_l32e): New function.
6416 (execute_s32e): New function.
6417 (xtensa_exception_handler_t): New type.
6418 (execute_code): New function.
6419 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6420 analysis for Xtensa Window Exception handlers.
6422 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6424 * xtensa-tdep.c (TX_PS): New.
6425 (windowing_enabled): Update to count for Call0 ABI.
6426 (xtensa_hextochar): New.
6427 (xtensa_init_reggroups): Make algorithm generic.
6428 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6430 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6432 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6434 2011-03-08 Michael Snyder <msnyder@vmware.com>
6436 * i386-tdep.c (i386_follow_jump): Check return value of
6438 (i386_analyze_struct_return): Ditto.
6439 (i386_skip_probe): Ditto.
6440 (i386_match_insn): Ditto.
6441 (i386_skip_noop): Ditto.
6442 (i386_analyze_frame_setup): Ditto.
6443 (i386_analyze_register_saves): Ditto.
6444 (i386_skip_prologue): Ditto.
6445 (i386_skip_main_prologue): Ditto.
6447 * target.c (read_whatever_is_readable): Fix memory leak.
6449 * i386-tdep.c (i386_process_record): Document fall through.
6451 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6453 Fix DWARF-3+ DW_AT_accessibility default assumption.
6454 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6455 cu->header.version >= 3.
6457 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6459 * remote.c (remote_check_symbols): Skip if the target has no
6462 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6464 * target.c (read_whatever_is_readable): Reformat comment,
6465 with a minor typo fix. Minor reformatting of the code.
6467 2011-03-08 Yao Qi <yao@codesourcery.com>
6469 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6470 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6471 Use cached result instead of calling displaced_in_arm_mode again.
6472 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6473 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6474 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6475 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6476 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6477 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6478 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6479 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6480 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6481 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6482 (arm_catch_kernel_helper_return): Likewise.
6483 * gdb/arm-tdep.h : Update function declarations.
6485 2011-03-07 Michael Snyder <msnyder@vmware.com>
6487 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6489 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6491 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6493 * elfread.c (elf_symtab_read): Stop memory leak.
6495 * main.c (captured_main): Fix memory leak.
6497 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6499 * ada-lang.c (compare_names): Call is_name_suffix with string1
6502 2011-03-07 Tom Tromey <tromey@redhat.com>
6504 * xcoffread.c (xcoff_sym_fns): Update.
6505 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6506 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6507 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6508 (symbol_file_add_with_addrs_or_offsets): Likewise.
6509 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6510 * somread.c (som_sym_fns): Update.
6511 * psymtab.h (require_partial_symbols): Declare.
6512 * psymtab.c (require_partial_symbols): New function.
6513 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6514 (ALL_OBJFILE_PSYMTABS): Undef.
6515 (ALL_PSYMTABS): Move from psympriv.h.
6516 (lookup_partial_symtab, find_pc_sect_psymtab)
6517 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6518 (find_last_source_symtab_from_partial)
6519 (forget_cached_source_info_partial)
6520 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6521 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6522 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6523 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6524 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6525 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6526 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6527 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6528 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6530 * mipsread.c (ecoff_sym_fns): Update.
6531 * machoread.c (macho_sym_fns): Update.
6532 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6533 (read_psyms): New function.
6534 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6535 (elf_sym_fns_lazy_psyms): New global.
6536 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6537 dwarf2_build_psymtabs.
6538 * dbxread.c (aout_sym_fns): Update.
6539 * coffread.c (coff_sym_fns): Update.
6541 2011-03-07 Tom Tromey <tromey@redhat.com>
6543 * infrun.c (print_exited_reason): Include inferior id and pid in
6546 2011-03-07 Tom Tromey <tromey@redhat.com>
6548 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6550 (target_has_execution_1): Update.
6551 (target_has_execution_current): Declare.
6552 (target_has_execution): Call target_has_execution_current.
6553 (default_child_has_execution): Update.
6554 * target.c (default_child_has_execution): Add 'the_ptid'
6556 (target_has_execution_1): Likewise.
6557 (target_has_execution_current): New function.
6558 (add_target): Update.
6559 (init_dummy_target): Update.
6560 * remote-m32r-sdi.c (m32r_has_execution): New function.
6561 (init_m32r_ops): Use it.
6562 * record.c (record_core_has_execution): Now static. Add
6563 'the_ptid' parameter.
6564 * inferior.c (have_live_inferiors): Don't save current thread.
6565 Use target_has_execution_1.
6567 2011-03-07 Yao Qi <yao@codesourcery.com>
6569 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6571 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6573 * elfread.c (elf_symtab_read): Minor reformatting.
6575 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6577 * objc-lang.c (selectors_info): Minor reformatting.
6579 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6581 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6583 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6584 Michael Snyder <msnyder@vmware.com>
6586 * ada-valprint.c (ada_val_print_array): Move the declaration of
6587 "byte_order" and "elttype" inside the block where these variables
6588 are actually used. Remove some special handling for the case
6589 where "elttype" and "eltlen" are null. Replace by a comment
6590 and a couple of assertion checks.
6592 2011-03-05 Michael Snyder <msnyder@vmware.com>
6594 * source.c (add_path): Replace semicolon at end of block.
6595 * dwarf2expr.c (execute_stack_op): Ditto.
6597 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6599 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6600 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6601 (bfin-*-*): Likewise.
6603 2011-03-05 Michael Snyder <msnyder@vmware.com>
6605 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6606 * mdebugread.c (parse_symbol): Ditto.
6607 * parse.c (parse_exp_in_context): Ditto.
6608 * source.c (add_path): Ditto.
6609 * utils.c (gnu_debuglink_crc32): Ditto.
6610 * varobj.c (variable_language): Ditto.
6612 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6614 2011-03-04 Michael Snyder <msnyder@vmware.com>
6616 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6618 * symfile.c (simple_overlay_update): Check for null return value
6619 from lookup_minimal_symbol.
6621 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6623 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6625 * eval.c (parse_and_eval_address_1): Remove function.
6626 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6627 instead of parse_and_eval_address_1.
6628 * value.h (parse_and_eval_address_1): Remove prototype.
6630 2011-03-04 Michael Snyder <msnyder@vmware.com>
6632 * remote.c (putpkt_binary): Document that case stmt falls through.
6634 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6636 * breakpointc (print_it_typical): Move NULL check from here...
6637 (print_bp_stop_message): ... to here.
6639 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6641 * breakpoint.c (enable_command): Use break instead of continue,
6642 and fill in a missing break.
6643 (disable_command): Ditto.
6645 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6647 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6648 (terminal_save_ours): Remove misleading comment.
6649 (inflow_inferior_data_cleanup): Free ttystate.
6650 (inflow_inferior_exit): Likewise.
6651 (copy_terminal_info): Copy ttystate.
6653 * serial.c (serial_copy_tty_state): New function.
6654 * serial.h (serial_copy_tty_state): Add prototype.
6655 (struct serial_ops): Add copy_tty_state callback.
6656 * ser-base.c (ser_base_copy_tty_state): New function.
6657 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6658 * ser-go32.c (dos_copy_tty_state): New function.
6659 (dos_ops): Install copy_tty_state callback.
6660 * ser-mingw.c (_initialize_ser_windows): Likewise.
6661 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6662 * ser-unix.c (hardwire_copy_tty_state): New function.
6663 (_initialize_ser_hardwire): Install it.
6665 2011-03-04 Michael Snyder <msnyder@vmware.com>
6667 * breakpoint.c (create_breakpoint): Add missing break statement.
6669 Reverting this patch:
6670 * infcall.c (call_function_by_hand): Add break statements for lint.
6672 Reverting this patch:
6673 * cli/cli-script.c (script_from_file): Add break for lint.
6675 2011-03-04 Michael Snyder <msnyder@vmware.com>
6677 * solib.c (reload_shared_libraries_1): Close memory leak.
6679 2011-03-03 Tom Tromey <tromey@redhat.com>
6682 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6685 2011-03-03 Michael Snyder <msnyder@vmware.com>
6687 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6688 fields of struct 'st' to zero.
6690 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6691 sal.pspace before calling set_current_source_symtab_and_line.
6693 2011-03-03 Yao Qi <yao@codesourcery.com>
6695 * Makefile.in (configure-common): Remove. Let Makefile
6696 in dir common to rebuild itself.
6697 (common/Makefile): Likewise.
6699 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6701 * utils.c (parse_escape): Add i18n markup in error message.
6703 2011-03-03 Yao Qi <yao@codesourcery.com>
6705 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6707 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6708 (displaced_write_reg, displaced_read_reg): Likewise.
6709 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6710 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6711 (cleanup_branch): Replace magic number 14 and 15 with
6712 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6714 2011-03-02 Michael Snyder <msnyder@vmware.com>
6716 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6718 * cli/cli-script.c (script_from_file): Add break for lint.
6720 * mdebugread.c (parse_partial_symbols): Fix indent.
6722 * target-descriptions.c (tdesc_gdb_type): No need to call
6723 xstrdup, callee saves a copy.
6725 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6727 * infcall.c (call_function_by_hand): Add break statements for lint.
6729 * utils.c (parse_escape): Escape the escape char.
6731 * python/py-inferior.c (build_inferior_list): Error out if
6732 PyList_Append fails.
6733 (gdbpy_inferiors): Error out if build_inferior_list fails.
6735 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6738 * record.c (record_restore): Move printf to before error return.
6740 2011-03-02 Yao Qi <yao@codesourcery.com>
6742 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6743 is_thumb and insn_size.
6744 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6745 on both ARM and Thumb mode.
6746 (arm_process_displaced_insn): Set is_thumb and insn_size.
6747 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6748 (arm_displaced_step_fixup): Likewise.
6750 2011-03-01 Michael Snyder <msnyder@vmware.com>
6752 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6754 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6756 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6758 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6760 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6763 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6764 which shadows function parameter.
6766 * tracepoint.c (create_tsv_from_upload): Superfluous call
6767 to xstrdup. Callee already calls xstrdup.
6769 * linespec.c (decode_line_1): Remove unnecessary null check.
6771 * tracepoint.c (scope_info): Fix mem leak, remove underused
6774 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6775 superfluous null check.
6777 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6778 (value_of_builtin_frame_fp_reg): Ditto.
6780 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6782 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6785 * linespec.c (decode_line_1): Check for null before dereference.
6787 * reverse.c (record_restore): Move null-check to before pointer
6790 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6792 * objc-lang.c (selectors_info): Add explanitory comment.
6793 (classes_info): Ditto.
6795 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6797 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6798 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6799 versions of the trampoline. Handle Thumb vs. ARM addresses.
6800 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6801 (arm_linux_init_abi): Install it.
6802 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6803 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6805 2011-02-28 Michael Snyder <msnyder@vmware.com>
6807 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6808 a little bigger, to avoid possibility of an overflow.
6810 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6811 buffers a little bigger, to avoid possibility of an overflow.
6813 * coffread.c (coff_getfilename): Add check to avoid overflow.
6815 * objc-lang.c (selectors_info): Add a small safety margin to
6817 (classes_info): Error out on too long REGEXP.
6819 * infrun.c (handle_inferior_event): Remove unused function call.
6821 * fork-child.c (fork_inferior): Remove ifdef'd code and
6824 * linux-thread-db.c (attach_thread): Discard unused value.
6826 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6828 * remote.c (remote_get_noisy_reply): Discard unused value.
6829 (remote_vcont_resume): Ditto.
6830 (remote_stop_ns): Ditto.
6832 * linespec.c (decode_objc): Delete unused variable.
6834 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6836 * dwarf2read.c (add_partial_symbol): Discard unused values.
6837 (read_base_type): Delete unused variable.
6839 * dbxread.c (read_dbx_symtab): Discard unused value.
6841 * eval.c (evaluate_subexp_standard): Delete unused variable,
6842 and discard unused values.
6844 * infcmd.c (_initialize_infcmd): Discard unused values.
6846 * stabsread.c (rs6000_builtin_type): Missing break statement.
6848 * dbxread.c (process_one_symbol): Discard unused value.
6850 * coffread.c (coff_end_symtab): Delete unused variable.
6852 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6853 (dwarf2_add_typedef): Delete unused variable.
6854 (read_namespace): Ditto.
6855 (dwarf_decode_macros): Ditto.
6857 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6859 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6861 * p-valprint.c (pascal_val_print): Discard unused value.
6863 * utils.c (nquery): Call va_end before return;
6867 * proc-service.c (ps_plog): Call va_end before return.
6869 2011-02-28 Tom Tromey <tromey@redhat.com>
6871 * python/python.c (gdbpy_value_cst): New global.
6872 (_initialize_python): Initialize it.
6873 * python/python-internal.h (gdbpy_value_cst): Declare.
6874 * python/py-value.c (convert_value_from_python): Use
6877 2011-02-28 Michael Snyder <msnyder@vmware.com>
6879 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6881 * breakpoint.c (catch_syscall_completer): Free malloced list.
6883 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6885 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6886 (lval_func_check_synthetic_pointer): Ditto.
6887 (lval_func_free_closure): Fix use-after-free.
6889 2011-02-28 Tom Tromey <tromey@redhat.com>
6891 * psymtab.c (expand_partial_symbol_tables): Use
6892 ALL_OBJFILE_PSYMTABS.
6894 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6896 * objc-lang.c (selectors_info): Error on too long REGEXP.
6898 2011-02-28 Michael Snyder <msnyder@vmware.com>
6900 * python/py-param.c (set_parameter_value): Add missing
6903 * linux-record.c (record_linux_system_call): Add missing
6906 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6908 * breakpoint.c (print_one_breakpoint_location): Remove unused
6909 argument PRINT_ADDRESS_BITS. Update callers.
6910 (print_one_breakpoint): Likewise.
6912 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6914 * breakpoint.c (wrap_indent_at_field): New function.
6915 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6916 Allocate ui_stream locally instead of using STB argument.
6917 (print_one_breakpoint_location): Update call.
6918 * ui-out.c (ui_out_query_field): New function.
6919 * ui-out.h (ui_out_query_field): Add prototype.
6921 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6923 From Michael Snyder <msnyder@vmware.com>
6924 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6926 2011-02-27 Michael Snyder <msnyder@vmware.com>
6928 * objc-lang.c (selectors_info): Prevent string overrun.
6930 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6933 * symtab.c (rbreak_command): Move variable 'file_name' to
6936 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6937 param with a local variable of the same name.
6939 2011-02-27 Michael Snyder <msnyder@vmware.com>
6941 * value.c (value_from_history_ref): New function.
6942 * value.h (value_from_history_ref): Export.
6943 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6944 to parse value history references.
6945 * cli/cli-utils.h (get_number_trailer): Update comment.
6947 2011-02-27 Michael Snyder <msnyder@vmware.com>
6949 * inferior.c (detach_inferior_command): Use get_number_or_range.
6950 (kill_inferior_command): Ditto.
6951 (remove_inferior_command): Ditto.
6952 (initialize_inferiors): Make command names plural.
6953 Update help strings.
6955 2011-02-27 Michael Snyder <msnyder@vmware.com>
6957 * darwin-nat-info.c: Fix comment typo.
6958 * dwarf2expr.h: Ditto.
6959 * fbsd-nat.c: Ditto.
6960 * fbsd-nat.h: Ditto.
6961 * frame-unwind.h: Ditto.
6963 * hppa-hpux-tdep.c: Ditto.
6964 * i386-linux-nat.c: Ditto.
6965 * linux-nat.c: Ditto.
6966 * nbsd-nat.c: Ditto.
6967 * nbsd-nat.h: Ditto.
6968 * ppc-linux-tdep.c: Ditto.
6971 * tui/tui-winsource.c: Ditto.
6973 2011-02-26 Michael Snyder <msnyder@vmware.com>
6975 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6977 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6979 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6980 with a local variable of the same name.
6982 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6983 param with a local variable of the same name.
6984 (i387_supply_xsave): Ditto.
6986 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6987 that it does not shadow a function parameter.
6989 * i386-nat.c (i386_length_and_rw_bits): Document that case
6990 statement is meant to fall through.
6992 * expprint.c (dump_subexp_body_standard): Document that case
6993 statement is meant to fall through.
6995 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6996 dead if statement. Condition can't be false.
6998 2011-02-25 Michael Snyder <msnyder@vmware.com>
7000 * arm-tdep.c: Fix typos in comments.
7001 * bsd-uthread.c: Ditto.
7002 * completer.c: Ditto.
7004 * cp-namespace.c: Ditto.
7005 * cp-support.c: Ditto.
7006 * cris-tdep.c: Ditto.
7008 * dwarf2read.c: Ditto.
7010 * gdbtypes.h: Ditto.
7011 * inferior.h: Ditto.
7012 * mdebugread.c: Ditto.
7013 * mips-tdep.c: Ditto.
7014 * ppc-linux-nat.c: Ditto.
7015 * ppc-linux-tdep.c: Ditto.
7016 * printcmd.c: Ditto.
7017 * sol-thread.c: Ditto.
7018 * solib-frv.c: Ditto.
7020 * sparc64-tdep.c: Ditto.
7021 * spu-tdep.c: Ditto.
7022 * stabsread.c: Ditto.
7027 * python/py-block.c: Ditto.
7028 * python/py-symbol.c: Ditto.
7029 * python/py-symtab.c: Ditto.
7030 * python/py-value.c: Ditto.
7031 * tui/tui-win.c: Ditto.
7033 2011-02-25 Michael Snyder <msnyder@vmware.com>
7035 * inferior.c (print_inferior): Accept a string instead of an int
7036 for requested_inferiors, and use get_number_or_range to parse it.
7037 (info_inferiors_command): Pass args string to print_inferior.
7038 (initialize_inferiors): Change help string for info inferiors.
7039 * inferior.h (print_inferior): Export prototype change.
7041 2011-02-25 Tom Tromey <tromey@redhat.com>
7043 * common/ax.def (invalid2): Set to 0x31.
7045 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7047 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7049 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7051 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7053 2011-02-24 Michael Snyder <msnyder@vmware.com>
7055 * Makefile.in (clean): Make clean should remove generated files
7056 observer.h and observer.inc.
7058 2011-02-24 Joel Brobecker <brobecker@adacore.com>
7060 Revert the following patch (not approved yet):
7061 2011-02-21 Hui Zhu <teawater@gmail.com>
7062 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7063 * ax-gdb.c (gen_printf_expr_callback): New function.
7064 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7065 * ax-general.c (ax_memcpy): New function.
7066 (ax_print): Handle "printf".
7068 * ax.h (ax_memcpy): Forward declare.
7069 * common/ax.def (invalid2): Removed.
7070 (printf): New entry.
7071 * printcmd.c (printcmd.h): New include.
7072 (string_printf): New function.
7073 (ui_printf): Removed.
7074 (printf_command): Remove static. Call string_printf.
7075 (eval_command): Call string_printf.
7076 * printcmd.h: New file.
7077 * tracepoint.c (validate_actionline,
7078 encode_actions_1): handle printf_command.
7080 2011-02-23 Tom Tromey <tromey@redhat.com>
7082 * ax-general.c (ax_pick): Add missing newline.
7084 2011-02-23 Michael Snyder <msnyder@vmware.com>
7086 * breakpoint.c (breakpoint_1): Change first argument from an int
7087 to a char pointer, so that the function now accepts a list of
7088 breakpoints rather than just one. Use new function
7089 'number_is_in_list' to implement.
7090 (breakpoints_info): Pass char * instead of int to breakpoint_1.
7091 (watchpoints_info): Ditto.
7092 (tracepoints_info): Ditto.
7093 (maintenance_info_breakpoints): Ditto.
7094 (_initialize_breakpoint): Update help strings to reflect the fact
7095 that these functions can now take more than one argument.
7096 * cli/cli-utils.c (number_is_in_list): New function.
7097 * cli/cli-utils.h (number_is_in_list): Export.
7099 2011-02-23 Michael Snyder <msnyder@vmware.com>
7101 * memattr.c (mem_enable_command): Use get_number_or_range.
7102 (mem_disable_command): Ditto.
7103 (mem_delete_command): Ditto.
7104 (_initialize_mem): Tweak usage message to reflect multiple
7107 2011-02-22 Doug Evans <dje@google.com>
7109 Add gdb.lookup_global_symbol python function.
7111 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7112 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7113 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7115 2011-02-22 Tom Tromey <tromey@redhat.com>
7117 * language.c (language_class_name_from_physname): Rename
7118 'curr_language' argument to 'lang'; use in body.
7120 2011-02-22 Michael Snyder <msnyder@vmware.com>
7122 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7124 2011-02-22 Pedro Alves <pedro@codesourcery.com>
7126 * frame-unwind.h: Fix comment to mention the this frame, not the
7129 2011-02-22 Tom Tromey <tromey@redhat.com>
7131 * symfile.c (auto_solib_limit): Remove.
7132 * symfile.h (auto_solib_limit): Remove.
7134 2011-02-22 Joel Brobecker <brobecker@adacore.com>
7136 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7138 2011-02-21 Michael Snyder <msnyder@vmware.com>
7140 * gdbthread.h (print_thread_info): Change prototype.
7141 * thread.c (print_thread_info): Accept char* instead of int for
7142 requested_threads argument. Use new function number_is_in_list
7143 to determine which threads to list.
7144 (info_threads_command): Pass char* to print_thread_info.
7145 * cli/cli-utils.c (number_is_in_list): New function.
7146 * cli/cli-utils.h (number_is_in_list): Export.
7147 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7149 (print_one_inferior): Ditto.
7150 (mi_cmd_list_thread_groups): Ditto.
7152 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7154 * common/Makefile.in (CFLAGS): New.
7155 (COMPILE): Add $(CFLAGS).
7157 2011-02-21 Tom Tromey <tromey@redhat.com>
7159 * breakpoint.c (catch_syscall_command_1): Fix typo.
7161 2011-02-21 Tom Tromey <tromey@redhat.com>
7163 * reverse.c: Include cli-utils.h.
7164 * printcmd.c: Include cli-utils.h.
7165 (string_printf): Use skip_spaces.
7166 * cli/cli-utils.h: New file.
7167 * cli/cli-utils.c: New file.
7168 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7169 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7170 * breakpoint.h (get_number, get_number_or_range): Move to
7172 * breakpoint.c: Include cli-utils.h.
7173 (get_number_trailer, get_number, get_number_or_range)
7174 (ep_skip_leading_whitespace): Move to cli-utils.c.
7175 (create_breakpoint_sal, find_condition_and_thread)
7176 (decode_static_tracepoint_spec, watch_command_1)
7177 (watch_maybe_just_location, ep_parse_optional_if_clause)
7178 (catch_fork_command_1, catch_exec_command_1)
7179 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7180 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7181 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7182 (HFILES_NO_SRCDIR): Add cli-utils.h.
7183 (cli-utils.o): New target.
7185 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7187 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7188 before calling discard_all_inferiors.
7190 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7192 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7193 (struct builtin_opencl_type): Remove.
7194 (builtin_opencl_type): Change return type to "struct type **".
7195 (lookup_opencl_vector_type): Update caller.
7196 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7197 (build_opencl_types): Install plain array of "struct type *"
7198 instead of "struct builtin_opencl_type".
7200 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7201 Ulrich Weigand <uweigand@de.ibm.com>
7203 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7204 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7205 (struct arm_linux_hwbp_cap): New type.
7206 (arm_linux_get_hwbp_cap): New function.
7207 (arm_linux_get_hw_breakpoint_count): Likewise.
7208 (arm_linux_get_hw_watchpoint_count): Likewise.
7209 (arm_linux_can_use_hw_breakpoint): Likewise.
7210 (arm_hwbp_type): New type.
7211 (arm_hwbp_control_t): Likewise.
7212 (struct arm_linux_hw_breakpoint): Likewise.
7213 (struct arm_linux_thread_points): Likewise.
7214 (arm_threads): New global variable.
7215 (arm_linux_find_breakpoints_by_tid): New function.
7216 (arm_hwbp_control_initialize): Likewise.
7217 (arm_hwbp_control_is_enabled): Likewise.
7218 (arm_hwbp_control_disable): Likewise.
7219 (arm_linux_hw_breakpoint_initialize): Likewise.
7220 (arm_linux_get_hwbp_type): Likewise.
7221 (arm_linux_hw_watchpoint_initialize): Likewise.
7222 (arm_linux_hw_breakpoint_equal): Likewise.
7223 (arm_linux_insert_hw_breakpoint1): Likewise.
7224 (arm_linux_remove_hw_breakpoint1): Likewise.
7225 (arm_linux_insert_hw_breakpoint): Likewise.
7226 (arm_linux_remove_hw_breakpoint): Likewise.
7227 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7228 (arm_linux_insert_watchpoint): Likewise.
7229 (arm_linux_remove_watchpoint): Likewise.
7230 (arm_linux_stopped_data_address): Likewise.
7231 (arm_linux_stopped_by_watchpoint): Likewise.
7232 (arm_linux_watchpoint_addr_within_range): Likewise.
7233 (arm_linux_new_thread): Likewise.
7234 (arm_linux_thread_exit): Likewise.
7235 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7236 related target callbacks. Register arm_linux_new_thread and
7237 arm_linux_thread_exit.
7238 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7239 * arm-tdep.c (arm_pc_is_thumb): Make global.
7240 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7242 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7244 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7245 per-frame locations while within a function epilogue.
7247 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7249 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7250 to GNU coding standards.
7252 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7254 Allow use of mingw native on Windows 95 OS.
7255 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7256 (ser_windows_close): Only call CancelIo if function exists.
7257 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7258 to check for existence of CancelIo function in kernel32 DLL.
7260 2011-02-21 Hui Zhu <teawater@gmail.com>
7262 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7263 * ax-gdb.c (gen_printf_expr_callback): New function.
7264 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7265 * ax-general.c (ax_memcpy): New function.
7266 (ax_print): Handle "printf".
7268 * ax.h (ax_memcpy): Forward declare.
7269 * common/ax.def (invalid2): Removed.
7270 (printf): New entry.
7271 * printcmd.c (printcmd.h): New include.
7272 (string_printf): New function.
7273 (ui_printf): Removed.
7274 (printf_command): Remove static. Call string_printf.
7275 (eval_command): Call string_printf.
7276 * printcmd.h: New file.
7277 * tracepoint.c (validate_actionline,
7278 encode_actions_1): handle printf_command.
7280 2011-02-19 Michael Snyder <msnyder@vmware.com>
7282 * reverse.c (delete_one_bookmark): Argument is now bookmark
7283 id rather than pointer to bookmark struct.
7284 (delete_bookmark_command): Use get_number_or_range.
7285 (goto_bookmark_command): Parse with get_number instead of strtoul.
7286 (bookmark_1): New function. Print info for one bookmark.
7287 (bookmarks_info): Use get_number_or_range and bookmark_1.
7289 2011-02-18 Michael Snyder <msnyder@vmware.com>
7291 * thread.c (info_threads_command): Re-implement using
7292 get_number_or_range.
7293 (thread_apply_command): Ditto.
7295 2011-02-18 Tom Tromey <tromey@redhat.com>
7297 * common/ax.def: New file.
7298 * ax.h (enum agent_op): Use ax.def.
7299 * ax-general.c (aop_map): Use ax.def.
7301 2011-02-18 Tom Tromey <tromey@redhat.com>
7303 * ax-general.c (aop_map): Add pick and rot.
7304 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7305 <DW_OP_rot>: Implement.
7306 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7308 * ax-general.c (ax_pick): New function.
7310 2011-02-18 Tom Tromey <tromey@redhat.com>
7312 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7314 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7315 Tom Tromey <tromey@redhat.com>
7317 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7318 make_symbol_overload_list_block with NULL BLOCK.
7319 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7321 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7323 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7324 * breakpoint.h (get_number_or_range): Declare.
7325 * printcmd.c (ALL_DISPLAYS): Declare.
7326 (delete_display): Reimplement taking a display pointer.
7327 (undisplay_command): Accept a range of displays to delete, using
7328 get_number_or_range.
7330 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7332 * c-valprint.c (c_val_print): Add embedded_offset to address
7333 for arrays of unspecified length.
7334 * p-valprint.c (pascal_val_print): Likewise.
7336 2011-02-18 Yao Qi <yao@codesourcery.com>
7338 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7339 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7340 (thumb_process_displaced_insn): New.
7341 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7342 call to arm_process_displaced_insn.
7343 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7345 2011-02-17 Tom Tromey <tromey@redhat.com>
7347 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7348 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7349 compile_dwarf_to_ax. No longer static. Call
7350 dwarf2_compile_cfa_to_ax.
7351 (locexpr_tracepoint_var_ref): Update.
7352 (loclist_tracepoint_var_ref): Update.
7353 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7354 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7355 argument; add 'gdbarch' and 'pc'.
7356 (dwarf2_compile_cfa_to_ax): New function.
7357 (dwarf2_frame_cache): Update.
7359 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7361 * ada-lang.c (ada_type_of_array): Fix the size of the array
7362 in the case of an unconstrained packed array.
7364 2011-02-17 Yao Qi <yao@codesourcery.com>
7366 * common/Makefile.in: Add more targets for make.
7368 2011-02-16 Tom Tromey <tromey@redhat.com>
7370 * dwarf2loc.c (unimplemented): Fix typo.
7372 2011-02-16 Tom Tromey <tromey@redhat.com>
7374 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7375 (compile_dwarf_to_ax) <default>: Use unimplemented.
7376 <DW_OP_deref>: Update.
7377 (disassemble_dwarf_expression): Update.
7378 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7379 (decode_locdesc): Update.
7380 * dwarf2expr.h (dwarf_stack_op_name): Update.
7382 2011-02-16 Tom Tromey <tromey@redhat.com>
7384 * ax.h (struct aop_map) <name>: Now const.
7386 2011-02-16 Tom Tromey <tromey@redhat.com>
7388 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7391 2011-02-16 Yao Qi <yao@codesourcery.com>
7393 * infrun.c (get_displaced_step_closure_by_addr): New.
7394 * inferior.h: Declare it.
7395 * arm-tdep.c: (arm_pc_is_thumb): Call
7396 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7399 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7400 Jan Kratochvil <jan.kratochvil@redhat.com>
7403 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7405 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7406 Jan Kratochvil <jan.kratochvil@redhat.com>
7408 * value.c (value_contents_copy_raw): Extend describing comment.
7409 Assert that the destination contents we're overwriting are wholly
7411 (value_contents_copy): Extend describing comment.
7413 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7414 Jan Kratochvil <jan.kratochvil@redhat.com>
7416 * value.c (value_available_contents_eq): Remove redundant local
7417 variables. Fix available contents comparision.
7418 * value.h (value_available_contents_eq): Extend describing
7421 2011-02-16 Yao Qi <yao@codesourcery.com>
7423 * thread.c (info_threads_command): Add missing i18n markup and remove
7426 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7428 * breakpoint.c (longjmp_names): New variable.
7429 (struct breakpoint_objfile_data): New type.
7430 (breakpoint_objfile_key): New variable.
7431 (msym_not_found): New variable.
7432 (msym_not_found_p): New predicate.
7433 (get_breakpoint_objfile_data): New function.
7434 (create_overlay_event_breakpoint): Check per-objfile cache for
7436 (create_longjmp_master_breakpoint): Likewise.
7437 (create_std_terminate_master_breakpoint): Likewise.
7438 (create_exception_master_breakpoint): Likewise.
7439 (_initialize_breakpoint): Register per-objfile data key.
7441 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7443 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7445 (create_longjmp_master_breakpoint): Loop over longjmp names.
7446 (create_std_terminate_master_breakpoint): Const-propagate parameter
7448 (update_breakpoints_after_exec): Adjust.
7449 (breakpoint_re_set): Adjust.
7451 2011-02-15 Michael Snyder <msnyder@vmware.com>
7453 * thread.c (info_threads_command): Process arg as thread id,
7454 or list of thread ids.
7455 (thread_find_command): New command.
7456 (_initialize_thread): Document argument for info threads.
7457 Document 'thread find' command.
7458 * NEWS: Document new command "thread find".
7460 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7462 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7463 * aclocal.m4: Regenerated with aclocal-1.11.1.
7464 * common/configure: Regenerate with autoconf-2.64.
7466 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7468 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7469 bool data type to a size of one byte.
7471 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7472 Jan Kratochvil <jan.kratochvil@redhat.com>
7474 * target.c (memory_xfer_live_readonly_partial): Document where to
7475 look for interface description.
7477 2011-02-15 Yao Qi <yao@codesourcery.com>
7480 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7481 order to store PC value on stack instead of text section.
7483 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7485 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7486 the EFP register set size.
7487 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7488 data from the VMX register.
7489 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7490 and write data from/to the VMX register.
7492 2011-02-14 Michael Snyder <msnyder@vmware.com>
7494 * command.h (enum command_class): New class 'no_set_class', for
7495 "show" commands without a corresponding "set" command.
7496 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7497 * copying.c (_initialize_copying): Ditto for "show copying" and
7499 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7501 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7502 which there is no corresponding "set" command (eg. "show copying").
7504 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7505 Jan Kratochvil <jan.kratochvil@redhat.com>
7507 * exec.c (section_table_available_memory): Change `len' parameter
7509 * exec.h (section_table_available_memory): Ditto.
7510 * value.h (read_value_memory): Rename the `offset' parameter to
7513 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7514 Jan Kratochvil <jan.kratochvil@redhat.com>
7516 * memrange.c (compare_mem_ranges): Mention sort order in
7518 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7519 * tracepoint.c (traceframe_available_memory): Extend comment to
7520 mention what happens to RESULT when the target does not support
7523 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7524 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7529 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7531 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7532 No longer handle NULL values.
7534 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7536 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7537 * value.c: Include "exceptions.h".
7538 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7540 * cp-abi.c: Include gdb_assert.h.
7541 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7542 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7544 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7545 parameters. No longer returns -1 on error.
7546 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7548 * cp-valprint.c: Include exceptions.h.
7549 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7550 the baseclass_offset. Handle unavailable base classes. Use
7551 val_print_invalid_address.
7552 * p-valprint.c: Include exceptions.h.
7553 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7554 when fetching the baseclass_offset. No longer expect
7555 baseclass_offset returning -1. Handle unavailable base classes.
7556 Use val_print_invalid_address.
7557 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7558 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7559 `embedded_offset' and `val' parameters. Adjust.
7560 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7561 parameter, and change its type to gdb_byte pointer. Add
7562 `embedded_offset' and `val' parameters. Adjust. No longer expect
7563 baseclass_offset returning -1.
7564 (value_dynamic_cast): Use value_contents_for_printing rather than
7565 value_contents. Adjust.
7566 (search_struct_field): No longer expect baseclass_offset returning
7568 (search_struct_method): If reading memory from the target is
7569 necessary, wrap it in a new value to pass to baseclass_offset. No
7570 longer expect baseclass_offset returning -1.
7571 (find_method_list): No longer expect baseclass_offset returning
7572 -1. Use value_contents_for_printing rather than value_contents.
7573 * valprint.c (val_print_invalid_address): New function.
7574 * valprint.h (val_print_invalid_address): Declare.
7575 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7576 and `val' parameters. No longer expect baseclass_offset returning
7578 * gnu-v2-abi.c: Include "exceptions.h".
7579 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7580 parameters. Handle unavailable memory. Recurse through
7581 gnuv2_baseclass_offset directly, rather than through
7582 baseclass_offset. No longer returns -1 on not found, instead
7584 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7585 `val' parameters. Adjust.
7587 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7589 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7590 almost but not quite adjacent.
7592 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7594 * value.h (value_entirely_available): Declare.
7595 * value.c (value_entirely_available): New function.
7596 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7597 real type if the pointer is unavailable.
7599 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7601 * valops.c (value_repeat): Use read_value_memory instead of
7604 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7606 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7607 * value.c (value_contents_copy_raw, value_contents_copy): New
7609 (value_primitive_field): Use value_contents_copy_raw instead of
7611 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7613 (value_array, value_slice): Ditto.
7614 * valarith.c (value_subscripted_rvalue): Use
7615 value_contents_copy_raw instead of memcpy.
7617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7619 <unavailable> references.
7621 * valops.c (get_value_at): Use value_from_contents_and_address,
7622 avoiding read_memory.
7624 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7626 * c-valprint.c (c_val_print): Print a string with unavailable
7627 contents as an array.
7629 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7631 * value.h (unpack_bits_as_long): Delete declaration.
7632 (unpack_value_bits_as_long): Declare.
7633 (unpack_value_field_as_long): Declare.
7634 (value_field_bitfield): Declare.
7635 * value.c (unpack_bits_as_long): Rename to...
7636 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7637 value parameters. Return the extracted result in a new output
7638 parameter. If the value contents are unavailable, return false,
7639 otherwise return true.
7640 (unpack_value_bits_as_long): New.
7641 (unpack_field_as_long): Rename to...
7642 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7643 Add embedded_offset and value parameters. Return the extracted
7644 result in a new output parameter. If the value contents are
7645 unavailable, return false, otherwise return true.
7646 (unpack_value_field_as_long): New.
7647 (unpack_field_as_long_1): New.
7648 (unpack_field_as_long): Reimplement as wrapper around
7649 unpack_value_field_as_long_1.
7650 (value_field_bitfield): New function.
7651 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7652 unpack_value_bits_as_long. Mark the value as unavailable, if it
7654 * jv-valprint.c (java_print_value_fields): Use
7655 value_field_bitfield.
7656 * p-valprint.c (pascal_object_print_value_fields): Use
7657 value_field_bitfield.
7658 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7660 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7662 * value.c (get_internalvar_integer): Also return the int value of
7663 TYPE_CODE_INT INTERNALVAR_VALUE values.
7664 (set_internalvar): Don't special case TYPE_CODE_INT.
7666 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7668 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7669 INTERNALVAR_POINTER.
7671 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7672 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7673 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7677 * value.h (value_available_contents_eq): Declare.
7678 * value.c (find_first_range_overlap): New function.
7679 (value_available_contents_eq): New function.
7680 * valprint.c (val_print_array_elements): Use
7681 value_available_contents_eq.
7682 * ada-valprint.c (val_print_packed_array_elements): Use
7683 value_available_contents_eq.
7684 * jv-valprint.c (java_value_print): Use
7685 value_available_contents_eq.
7687 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7689 * target.c (target_read_live_memory): New function.
7690 (memory_xfer_live_readonly_partial): New.
7691 (memory_xfer_partial): If reading from a traceframe, fallback to
7692 reading unavailable read-only memory from read-only regions of
7694 * tracepoint.c (disconnect_tracing): Adjust.
7695 (set_current_traceframe): New, factored out from
7696 set_traceframe_number.
7697 (set_traceframe_number): Reimplement to only change the traceframe
7698 number on the GDB side.
7699 (do_restore_current_traceframe_cleanup): Adjust.
7700 (make_cleanup_restore_traceframe_number): New.
7701 (cur_traceframe_number): New global.
7702 (tfile_open): Set cur_traceframe_number to no traceframe.
7703 (set_tfile_traceframe): New function.
7704 (tfile_trace_find): If looking up a traceframe using any method
7705 other than by number, make sure the current tfile traceframe
7706 matches gdb's current traceframe. Update the current tfile
7707 traceframe if the lookup succeeded.
7708 (tfile_fetch_registers, tfile_xfer_partial)
7709 (tfile_get_trace_state_variable_value): Make sure the remote
7710 traceframe matches gdb's current traceframe.
7711 * remote.c (remote_traceframe_number): New global.
7712 (remote_open_1): Set it to -1.
7713 (set_remote_traceframe): New function.
7714 (remote_fetch_registers, remote_store_registers)
7715 (remote_xfer_memory, remote_xfer_partial)
7716 (remote_get_trace_state_variable_value): Make sure the remote
7717 traceframe matches gdb's current traceframe.
7718 (remote_trace_find): If looking up a traceframe using any method
7719 other than by number, make sure the current remote traceframe
7720 matches gdb's current traceframe. Update the current remote
7721 traceframe if the lookup succeeded.
7722 * infrun.c (fetch_inferior_event): Adjust.
7723 * tracepoint.h (set_current_traceframe): Declare.
7724 (get_traceframe_number, set_traceframe_number): Add describing
7727 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7729 Mark pieces of values as unavailable if the corresponding memory
7732 * valops.c: Include tracepoint.h.
7733 (value_fetch_lazy): Use read_value_memory.
7734 (read_value_memory): New.
7735 * value.h (read_value_memory): Declare.
7736 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7737 * exec.c (section_table_available_memory): New function.
7738 * exec.h (section_table_available_memory): Declare.
7740 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7742 * Makefile.in (SFILES): Add memrange.c.
7743 (HFILES_NO_SRCDIR): Add memrange.h.
7744 (COMMON_OBS): Add memrange.o.
7745 * memrange.c: New file.
7746 * memrange.h: New file.
7747 * tracepoint.c: Include memrange.h.
7748 (struct mem_range): Delete.
7749 (mem_range_s): Delete.
7750 (traceframe_available_memory): New function.
7751 * tracepoint.h (traceframe_available_memory): Declare.
7753 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7755 * target.h (struct traceframe_info): Forward declare.
7756 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7757 (struct target_ops) <to_traceframe_info>: New field.
7758 (target_traceframe_info): New.
7759 * target.c (update_current_target): Inherit and default
7761 * remote.c (PACKET_qXfer_traceframe_info): New.
7762 (remote_protocol_features): Register qXfer:traceframe-info:read.
7763 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7764 (remote_traceframe_info): New.
7765 (init_remote_ops): Install it.
7766 (_initialize_remote): Install "set/show remote traceframe-info"
7768 * tracepoint.h (parse_traceframe_info): Declare.
7769 * tracepoint.c (struct mem_range): New.
7770 (mem_range_s): New typedef.
7771 (struct traceframe_info): New.
7772 (traceframe_info): New global.
7773 (free_traceframe_info): New function.
7774 (clear_traceframe_info): New function.
7775 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7777 (build_traceframe_info): New function.
7778 (tfile_traceframe_info): New function.
7779 (init_tfile_ops): Install tfile_traceframe_info.
7780 (traceframe_info_start_memory, free_result): New functions.
7781 (memory_attributes, traceframe_info_elements): New globals.
7782 (parse_traceframe_info, get_traceframe_info): New functions.
7783 * features/traceframe-info.dtd: New file.
7784 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7786 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7788 Base support for <unavailable> value contents.
7790 * value.h (value_bytes_available): Declare.
7791 (mark_value_bytes_unavailable): Declare.
7792 * value.c (struct range): New struct.
7793 (range_s): New typedef.
7794 (ranges_overlap): New function.
7795 (range_lessthan): New function.
7796 (ranges_contain_p): New function.
7797 (struct value) <unavailable>: New field.
7798 (value_bytes_available): New function.
7799 (mark_value_bytes_unavailable): New function.
7800 (require_not_optimized_out): Constify parameter.
7801 (require_available): New function.
7802 (value_contents_all, value_contents): Require all bytes be
7804 (value_free): Free `unavailable'.
7805 (value_copy): Copy `unavailable'.
7806 * valprint.h (val_print_unavailable): Declare.
7807 * valprint.c (valprint_check_validity): Rename `offset' parameter
7808 to `embedded_offset'. If printing a scalar, check whether the
7809 value chunk is available.
7810 (val_print_unavailable): New.
7811 (val_print_scalar_formatted): Check whether the value is
7813 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7814 pretty-printing unavailable values.
7816 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7818 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7819 * c-typeprint.c (c_type_print_args): Update the function comment. New
7820 variable param_type, initialize it. Remove const/volatile qualifiers
7821 for language_cplus and !show_artificial. Use param_type.
7823 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7825 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7826 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7827 * symtab.h (struct symtab) <next>: Comment extension.
7829 2011-02-12 Yao Qi <yao@codesourcery.com>
7831 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7833 2011-02-11 Yao Qi <yao@codesourcery.com>
7835 * common/Makefile.in: Add copyright header.
7837 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7839 * infrun.c (proceed): Move switching out and in of tfind mode from
7841 (fetch_inferior_event): ... to here.
7843 2011-02-11 Yao Qi <yao@codesourcery.com>
7845 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7847 * configure.ac: Add common to sub dir.
7848 * configure: Regenerate.
7850 2011-02-11 Yao Qi <yao@codesourcery.com>
7854 * common/Makefile.in: New.
7855 * common/configure.ac: New.
7856 * common/aclocal.m4: New.
7857 * common/configure: Generate.
7859 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7861 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7862 side of the parenthesis.
7865 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7866 * vec.h (VEC_block_remove): Fix comment.
7868 2011-02-08 Michael Snyder <msnyder@vmware.com>
7870 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7872 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7874 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7875 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7878 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7881 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7883 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7884 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7886 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7888 * dwarf2read.c (read_subroutine_type): Set special calling
7889 convention flag for functions compiled by IBM XL C for OpenCL.
7890 * ppc-sysv-tdep.c: Include "dwarf2.h"
7891 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7893 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7894 IBM OpenCL vector types calling convention.
7895 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7896 (ppc_sysv_abi_broken_return_value): Likewise.
7897 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7898 types calling convention.
7899 (ppc64_sysv_abi_return_value): Likewise.
7900 * spu-tdep.c: Include "dwarf2.h"
7901 (spu_return_value): Implement IBM OpenCL vector types calling
7904 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7907 correct ABI for AltiVec vector arguments.
7909 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7911 * valprint.c (val_print): Extend comment.
7912 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7913 interface explanation to val_print.
7914 (ada_val_print_array): Adjust comment to current interface.
7915 (print_field_values): Adjust comment to current interface.
7916 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7917 explanation to val_print.
7918 * f-valprint.c (f_val_print): Ditto.
7919 * jv-valprint.c (java_val_print): Ditto.
7920 * m2-valprint.c (m2_val_print): Ditto.
7921 * p-valprint.c (pascal_val_print): Ditto.
7923 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7925 * breakpoint.c (parse_breakpoint_sals): Fix description.
7927 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7928 Oguz Kayral <oguzkayral@gmail.com>
7930 * python/py-inferior.c (python_on_normal_stop): New function.
7931 (python_on_resume): New function.
7932 (python_inferior_exit): New function.
7933 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7934 inferior_exit observers.
7935 * python/py-evtregistry.c: New file.
7936 * python/py-threadevent.c : New file.
7937 * python/py-event.c: New file.
7938 * python/py-evts.c: New file.
7939 * python/py-continueevent.c: New file.
7940 * python/py-bpevent.c: New file.
7941 * python/py-signalevent.c: New file.
7942 * python/py-exetiedevent.c: New file.
7943 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7944 Move struct breakpoint_object from here...
7945 * python/python-internal.h: ... to here.
7946 * python/py-event.h: New file.
7947 * python/py-events.h: New file.
7948 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7949 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7950 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7951 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7952 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7953 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7954 Add build rules for all the above.
7956 2011-02-04 Tom Tromey <tromey@redhat.com>
7958 * dwarf2read.c (dwarf2_section_empty_p): New function.
7959 (dwarf2_read_section): Use dwarf2_section_empty_p.
7960 (dwarf2_section_size): New function.
7961 (dwarf2_get_section_info): Unconditionally read section.
7962 (dwarf2_read_index): Use dwarf2_section_empty_p.
7963 (partial_read_comp_unit_head): Use dwarf2_section_size.
7964 (dwarf2_symbol_mark_computed): Likewise.
7966 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7968 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7970 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7972 * mips-linux-tdep.c: Include xml-syscall.h.
7973 (mips_linux_get_syscall_number): New function.
7974 (mips_linux_init_abi): Add calls to
7975 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7976 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7977 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7978 * syscalls/mips-n32-linux.xml: New file.
7979 * syscalls/mips-n64-linux.xml: New file.
7980 * syscalls/mips-o32-linux.xml: New file.
7982 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7984 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7985 Complain about inverted range entries.
7986 (dwarf2_record_block_ranges): Likewise.
7988 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7991 * breakpoint.c (update_watchpoint): Fix name of the
7992 update_global_location_list function.
7993 (print_one_breakpoint): Fix typo.
7994 (_initialize_breakpoint): Remove extra space in hbreak help
7996 * breakpoint.h (struct bp_location) <length>: Fix field
7999 2011-02-04 Pedro Alves <pedro@codesourcery.com>
8001 * regcache.c (registers_changed_ptid): Don't explictly always
8002 clear `current_regcache'. Only clear current_thread_ptid and
8003 current_thread_arch when PTID matches. Only reinit the frame
8004 cache if PTID matches the current inferior_ptid. Move alloca(0)
8006 (registers_changed): ... here.
8008 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
8010 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
8011 starts with __stack_chk_guard as stack guard symbol.
8013 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
8015 * disasm.c (compare_lines): Handle the end of sequence markers
8016 within the line table to better support disassembling over
8017 compilation unit boundaries.
8019 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8021 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
8022 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
8023 implementation even if no symbols are available.
8024 (thumb_analyze_prologue): Update call to skip_prologue_function.
8025 (arm_analyze_prologue): Likewise.
8027 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8029 * arm-tdep.c: Include "observer.h".
8030 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
8031 (arm_exidx_data_key): New static variable.
8032 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
8033 (struct arm_exidx_data): Likewise.
8034 (arm_exidx_data_free): New function.
8035 (arm_compare_exidx_entries): Likewise.
8036 (arm_obj_section_from_vma): Likewise.
8037 (arm_exidx_new_objfile): Likewise.
8038 (arm_find_exidx_entry): Likewise.
8039 (arm_exidx_fill_cache): Likewise.
8040 (arm_exidx_unwind_sniffer): Likewise.
8041 (arm_exidx_unwind): New global variable.
8042 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
8043 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
8044 observer. Register arm_exidx_data_key as objfile data.
8046 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8048 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8049 due to accessing uninitialized variable. Fix indentation.
8051 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8053 * c-valprint.c (c_value_print): When doing virtual base pointer
8054 adjustment, create a new value with adjusted contents rather than
8055 changing the contents of the value being printed (and getting it
8058 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8060 * xml-support.c (xml_find_attribute): New.
8061 (xinclude_start_include): Use it.
8062 * xml-support.h (xml_find_attribute): Declare.
8063 * memory-map.c (memory_map_start_memory)
8064 (memory_map_start_property): Use xml_find_attribute.
8065 * osdata.c (osdata_start_osdata, osdata_start_column): Use
8067 * remote.c (start_thread): Use xml_find_attribute.
8068 * solib-target.c (library_list_start_segment)
8069 (library_list_start_section, library_list_start_library)
8070 (library_list_start_list): Use xml_find_attribute.
8071 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8072 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8073 (tdesc_start_field): Use xml_find_attribute.
8075 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
8077 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8078 (BUILD_OCL_VTYPES): Update.
8080 2011-02-02 Joel Brobecker <brobecker@adacore.com>
8082 * configure.ac: Work around non-GNU sed limitation when computing
8083 python version number.
8084 * configure: Regenerate.
8086 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8088 Fix debug printing of TYPE_INSTANCE.
8089 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8090 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8092 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8094 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8095 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8096 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8097 * ada-operator.inc: Rename the file to ...
8098 * ada-operator.def: ... here, wrap all the entries by macro OP.
8099 * expprint.c (op_name_standard): Remove all the entries. Include
8100 "std-operator.def" instead.
8101 * expression.h (enum exp_opcode): Include "std-operator.def" and
8102 "ada-operator.def". Move all the entries ...
8103 * std-operator.def: ... here, wrap all the entries by macro OP.
8105 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8107 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8108 * breakpoint.c (remove_jit_event_breakpoints): New function.
8109 * jit.c (jit_descriptor_addr): Delete.
8110 (registering_code): Delete.
8111 (clear_int): Delete.
8112 (jit_inferior_data): New variable.
8113 (struct jit_inferior_data): New type.
8114 (get_jit_inferior_data): New function.
8115 (jit_inferior_data_cleanup): New function.
8116 (jit_read_descriptor): Adjust.
8117 (jit_register_code): Adjust.
8118 (jit_breakpoint_re_set_internal): New function; move code here ...
8119 (jit_inferior_init): ... from here.
8120 (jit_breakpoint_re_set): Adjust.
8121 (jit_reset_inferior_data_and_breakpoints): New function.
8122 (jit_inferior_created_observer): Adjust.
8123 (jit_inferior_exit_hook): Adjust.
8124 (jit_executable_changed_observer): New function.
8125 (jit_event_handler): Adjust.
8126 (_initialize_jit): Adjust.
8128 2011-01-31 Michael Snyder <msnyder@vmware.com>
8130 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8133 2011-01-31 Tom Tromey <tromey@redhat.com>
8136 * python/python.c (execute_gdb_command): Call
8137 prevent_dont_repeat.
8138 * top.c (suppress_dont_repeat): New global.
8139 (dont_repeat): Use it.
8140 (prevent_dont_repeat): New function.
8141 * command.h (prevent_dont_repeat): Declare.
8143 2011-01-31 Tom Tromey <tromey@redhat.com>
8145 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8146 * python/py-breakpoint.c (bppy_set_silent): Use
8147 breakpoint_set_silent.
8148 (bppy_set_thread): Use breakpoint_set_thread.
8149 (bppy_set_task): Use breakpoint_set_task.
8150 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8151 (breakpoint_set_task): Declare.
8152 (make_breakpoint_silent): Remove.
8153 * breakpoint.c (breakpoint_set_silent): New function.
8154 (breakpoint_set_thread): Likewise.
8155 (breakpoint_set_task): Likewise.
8156 (make_breakpoint_silent): Remove.
8158 2011-01-31 Tom Tromey <tromey@redhat.com>
8160 * breakpoint.h (user_breakpoint_p): Declare.
8161 * breakpoint.c (user_breakpoint_p): New function.
8162 (breakpoint_1): Use it.
8163 (save_breakpoints): Likewise.
8165 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8167 * configure.ac: Add handling of Python distribution on Windows.
8168 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8169 sysconfig variables are not defined, then do not use them.
8170 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8171 instead. On Windows, return all paths using forward-slashes
8172 rather than backslashes.
8174 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8176 * configure.ac: Remove fallback behavior for building
8177 against Python. Remove tweaking of Python include path.
8178 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8179 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8180 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8181 Always restore CPPFLAGS and LIBS after linking test.
8182 * configure: Regenerated.
8183 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8184 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8185 * python/python-internal.h: Adjust includes of Python .h files.
8187 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8189 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8192 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8194 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8197 2011-01-31 Yao Qi <yao@codesourcery.com>
8199 * arm-linux-nat.c: Update calls to regcache_register_status
8200 instead of regcache_valid_p.
8201 * aix-thread.c: Likewise.
8202 * i386gnu-nat.c: Likewise.
8204 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8207 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8208 touching TYPE_FIELD_ARTIFICIAL.
8210 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8212 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8215 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8217 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8218 selected, don't try iterating over the traceframe's blocks.
8219 (tfile_has_stack): If there's no traceframe selected, then there's
8221 (tfile_has_registers): If there's no traceframe selected, then
8222 there's no registers.
8224 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8226 * target.c (memory_xfer_partial): No need to restore shadows if we
8227 haven't read anything.
8229 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8231 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8232 and val_print_scalar_formatted.
8234 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8236 * tracepoint.c (tfile_read): New.
8237 (tfile_open): Use it.
8238 (tfile_get_traceframe_address): Use it.
8239 (tfile_trace_find): Use it.
8240 (walk_blocks_callback_func): New typedef.
8241 (match_blocktype): New function.
8242 (traceframe_walk_blocks): New function.
8243 (traceframe_find_block_type): New function.
8244 (tfile_fetch_registers, tfile_xfer_partial)
8245 (tfile_get_trace_state_variable_value): Use
8246 traceframe_find_block_type and tfile_read.
8248 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8250 * remote-mips.c: Add internationalization mark ups. Remove
8251 trailing \n from already marked up strings.
8253 2011-01-26 Tom Tromey <tromey@redhat.com>
8255 * python/py-prettyprint.c (print_string_repr): Clear
8256 'addressprint' option when calling val_print_string.
8257 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8258 option when calling val_print_string.
8260 2011-01-26 Tom Tromey <tromey@redhat.com>
8262 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8264 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8266 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8267 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8268 (gdb_py_long_as_ulongest): New defines.
8269 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8270 (gdb_py_int_as_long): Declare.
8271 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8272 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8273 (valpy_long): Add comment.
8274 * python/py-utils.c (get_addr_from_python): Use
8275 gdb_py_long_as_ulongest. Handle overflow properly.
8276 (gdb_py_object_from_longest): New function.
8277 (gdb_py_object_from_ulongest): Likewise.
8278 (gdb_py_int_as_long): Likewise.
8279 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8280 * python/py-symtab.c (salpy_get_pc): Use
8281 gdb_py_long_from_ulongest.
8282 (salpy_get_line): Use PyInt_FromLong.
8283 * python/py-param.c (set_parameter_value): Use
8285 * python/py-lazy-string.c (stpy_get_address): Use
8286 gdb_py_long_from_ulongest.
8287 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8288 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8289 * python/py-breakpoint.c (bppy_set_thread): Use
8291 (bppy_set_task): Likewise.
8292 (bppy_set_ignore_count): Likewise.
8293 (bppy_set_hit_count): Likewise.
8294 * python/py-block.c (blpy_get_start): Use
8295 gdb_py_object_from_ulongest.
8296 (blpy_get_end): Likewise.
8297 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8299 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8302 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8303 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8304 equality test for objfile, initialize addr_low if needed.
8306 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8308 * tui/tui-regs.c (tui_register_format): Remove dead code.
8310 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8312 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8313 instead of print_scalar_formatted.
8314 (print_scalar_formatted): Don't handle 's' format strings here,
8315 and add an assertion that we never see such format here.
8316 * valprint.h (val_print_scalar_formatted): Declare.
8317 * valprint.c (val_print_scalar_formatted): New.
8318 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8319 instead of print_scalar_formatted.
8320 * jv-valprint.c (java_val_print): Ditto.
8321 * p-valprint.c (pascal_val_print): Ditto.
8322 * ada-valprint.c (ada_val_print_1): Ditto.
8323 * f-valprint.c (f_val_print): Ditto.
8324 * infcmd.c (registers_info): Ditto.
8325 * m2-valprint.c (m2_val_print): Ditto.
8327 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8329 * m2-valprint.c (print_unbounded_array): Pass
8330 value_contents_for_printing rather than value_contents, to
8331 m2_print_array_contents. Also pass in the value.
8333 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8335 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8336 (save_gdb_index_command): Switch to .gdb_index version 4.
8338 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8340 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8341 than frame_register, and always pass a valid value to val_print.
8343 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8345 Centralize printing "<optimized out>".
8347 * valprint.h (val_print_optimized_out): Declare.
8348 * cp-valprint.c (cp_print_value_fields): Use
8349 val_print_optimized_out.
8350 * jv-valprint.c (java_print_value_fields): Ditto.
8351 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8352 * printcmd.c (print_formatted): Ditto.
8353 * valprint.c (valprint_check_validity): Ditto.
8354 (value_check_printable): Ditto.
8355 (val_print_optimized_out): New.
8357 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8359 * infcmd.c (default_print_registers_info): Allocate values so to
8360 never pass a NULL value to val_print.
8362 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8364 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8365 boolean. Make sure to always pass a value that matches the
8366 contents buffer to callees. Preserve `address' for following
8368 * value.c (value_contents_for_printing_const): New.
8369 (value_address): Constify value argument.
8370 * value.h (value_contents_for_printing_const): Declare.
8371 (value_address): Constify value argument.
8373 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8375 * regcache.c (struct regcache_descr): Rename
8376 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8377 and sizeof_cooked_register_valid_p to
8378 sizeof_cooked_register_status.
8379 (init_regcache_descr): Adjust.
8380 (struct regcache): Rename register_valid_p field to
8382 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8383 (do_cooked_read): Adjust.
8384 (regcache_valid_p): Rename to ...
8385 (regcache_register_status): ... this. Adjust.
8386 (regcache_invalidate): Adjust.
8387 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8389 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8390 as unavailable, not valid.
8391 (regcache_dump): Adjust.
8392 * regcache.h (enum register_status): New.
8393 (regcache_register_status): Declare.
8394 (regcache_invalidate): Delete declaration.
8395 * corelow.c (get_core_registers): Adjust.
8396 * tracepoint.c (tfile_fetch_registers): Adjust.
8397 * trad-frame.c (REG_VALUE): Rename to ...
8398 (TF_REG_VALUE): ... this.
8399 (REG_UNKNOWN): Rename to ...
8400 (TF_REG_UNKNOWN): ... this.
8401 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8402 * mi/mi-main.c (register_changed_p): Adjust.
8404 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8406 * regcache.c (struct regcache_descr): Remove outdated comment.
8407 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8409 (regcache_xmalloc): Rename to ...
8410 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8411 Allocate the regcache type accordingly.
8412 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8413 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8414 cooked registers, not raw.
8415 (regcache_dup_no_passthrough): Delete.
8416 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8417 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8418 mention obsolete write_register_bytes.
8419 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8421 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8423 Stop remote_read_bytes from handling partial reads itself.
8425 * remote-fileio.c: Include target.h.
8426 (remote_fileio_write_bytes): Delete.
8427 (remote_fileio_func_open, remote_fileio_func_write)
8428 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8430 (remote_fileio_func_stat): Use target_read_memory and
8431 target_write_memory.
8432 (remote_fileio_func_gettimeofday): Use target_write_memory.
8433 (remote_fileio_func_system): Use target_read_memory.
8434 * remote.c (remote_write_bytes): Make it static.
8435 (remote_read_bytes): Don't handle partial reads here.
8436 * remote.h (remote_read_bytes): Delete declaration.
8438 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8440 Simplify XML parsing a bit.
8442 * xml-support.h (gdb_xml_parse_quick): Declare.
8443 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8444 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8446 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8447 gdb_xml_create_parser_and_cleanup_1.
8448 (gdb_xml_parse_quick): New.
8449 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8450 * osdata.c (osdata_parse): Ditto.
8451 * remote.c (remote_threads_info): Ditto.
8452 * solib-target.c (solib_target_parse_libraries): Ditto.
8453 * xml-syscall.c (syscall_parse_xml): Ditto.
8454 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8456 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8458 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8459 with remote-mips.o added to gdb_target_obs.
8460 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8462 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8464 * ada-valprint.c (val_print_packed_array_elements): Pass the
8465 correct struct value to val_print.
8466 (ada_val_print_1): Ditto.
8468 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8470 Don't lose embedded_offset in printing routines throughout.
8472 * valprint.h (val_print_array_elements): Change prototype.
8473 * valprint.c (val_print_array_elements): Add `embedded_offset'
8474 parameter, and adjust to pass it down to val_print, while passing
8475 `valaddr' or `address' unmodified. Take embedded_offset into
8476 account when checking repetitions.
8477 * c-valprint.c (c_val_print): Pass embedded_offset to
8478 val_print_array_elements instead of adjusting `valaddr' and
8480 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8481 embedded_offset to val_print_array_elements instead of adjusting
8483 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8484 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8485 val_print_array_elements and pascal_object_print_value_fields
8486 instead of adjusting `valaddr'.
8487 (pascal_object_print_value_fields): Add `offset' parameter, and
8489 (pascal_object_print_value): Add `offset' parameter, and adjust to
8491 (pascal_object_print_static_field): Use
8492 value_contents_for_printing/value_embedded_offset, rather than
8494 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8495 parameter, and adjust to use it. Use
8496 value_contents_for_printing/value_embedded_offset, rather than
8498 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8499 (ada_val_print_array): Add `offset' parameter, and adjust to use
8501 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8502 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8503 Instead work with offsets. Use
8504 value_contents_for_printing/value_embedded_offset, rather than
8505 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8506 and use value_from_pointer to extract a target pointer, rather
8507 than value_from_longest.
8508 (print_variant_part): Add `offset' parameter. Replace
8509 `outer_valaddr' parameter by a new `outer_offset' parameter.
8510 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8511 (ada_value_print): Use
8512 value_contents_for_printing/value_embedded_offset, rather than
8514 (print_record): Add `offset' parameter, and adjust to pass it
8516 (print_field_values): Add `offset' parameter. Replace
8517 `outer_valaddr' parameter by a new `outer_offset' parameter.
8518 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8519 Use value_contents_for_printing/value_embedded_offset, rather than
8521 * d-valprint.c (dynamic_array_type): Use
8522 value_contents_for_printing/value_embedded_offset, rather than
8524 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8525 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8526 (java_print_value_fields): Take `offset' into account. Don't
8527 re-adjust `valaddr'. Instead pass down adjusted offsets.
8528 (java_val_print): Take `embedded_offset' into account. Pass it to
8529 java_print_value_fields.
8530 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8531 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8532 down adjusted offsets.
8533 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8534 (f_val_print): Take `embedded_offset' into account.
8536 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8538 * inflow.c: Include "gdbcmd.h".
8539 (interactive_mode): New static global, moved here from top.c.
8540 (show_interactive_mode): New function, moved here from top.c.
8541 use gdb_has_a_terminal instead of input_from_terminal_p to
8542 determine the current mode.
8543 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8545 (_initialize_inflow): Add the "set/show interactive-mode"
8546 commands. Moved here from top.c, after having adjusted slightly
8548 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8550 (input_from_terminal_p): Remove handling of "interactive-mode"
8551 setting, moved to infow.c.
8552 (init_main): Remove creation of the "set/show interactive-mode"
8553 commands, moved to inflow.c.
8555 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8557 * NEWS: Add entry for native ia64-hpux support.
8559 2011-01-19 Tom Tromey <tromey@redhat.com>
8562 * thread.c (free_thread): Free 'name'.
8563 (print_thread_info): Emit thread name. Change CLI output.
8564 (thread_name_command): New function.
8565 (do_captured_thread_select): Emit newline.
8566 (_initialize_thread): Register 'thread name' command.
8567 * target.h (struct target_ops) <to_thread_name>: New field.
8568 (target_thread_name): New macro.
8569 * target.c (update_current_target): Handle to_thread_name.
8570 * python/py-infthread.c (thpy_get_name): New function.
8571 (thpy_set_name): Likewise.
8572 (thread_object_getset): Add "name".
8573 * linux-nat.c (linux_nat_thread_name): New function.
8574 (linux_nat_add_target): Set to_thread_name.
8575 * gdbthread.h (struct thread_info) <name>: New field.
8577 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8579 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8580 (ada_val_print_1): Likewise.
8582 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8584 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8585 upper limit address is not greater than the function end address
8586 when the upper limit could not be computed using the debugging
8589 2011-01-17 Tom Tromey <tromey@redhat.com>
8591 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8593 * utils.c: Include gdb_regex.h.
8594 (do_regfree_cleanup): New function.
8595 (make_regfree_cleanup): Likewise.
8596 (get_regcomp_error): Likewise.
8597 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8599 2011-01-17 Tom Tromey <tromey@redhat.com>
8601 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8604 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8606 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8607 for internal variables.
8608 (last_was_structop): New static variable.
8609 (COMPLETE): New token.
8610 (field_exp): New rule to group all '.' suffix handling.
8611 Add mark_struct_expression calls when approriate to be able
8612 to correctly find fields for completion.
8613 (yylex): Adapt to handle field completion and set INTVAR when
8616 2011-01-14 Yao Qi <yao@codesourcery.com>
8618 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8619 save_reggroup, restore_reggroup and all_reggroup.
8621 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8623 * ada-valprint. (ada_printchar): Use the correct type length
8624 in call to ada_emit_char.
8625 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8627 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8629 * solib-som.h (hpux_major_release): Declare variable here.
8630 * solib-som.c: Remove <sys/utsname.h> header.
8631 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8632 (hpux_major_release): Make global, change default value to
8633 DEFAULT_HPUX_MAJOR_RELEASE.
8634 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8635 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8636 Add "solib-som.h" header.
8637 (set_hpux_major_release): New function.
8638 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8640 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8642 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8644 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8646 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8647 new-line at end of warning message.
8648 (ia64_hpux_store_register): Remove trailing new-line at end of
8650 * ia64-hpux-tdep.c: Rephrase comment.
8651 * solib-ia64-hpux.c (struct dld_info): Change type of field
8652 dld_flags from "long long" to ULONGEST.
8654 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8656 * target.h (deprecated_child_ops): Delete declaration.
8657 * target.c (deprecated_child_ops): Delete definition.
8659 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8661 * Makefile.in (hpux-thread.o): Delete rule.
8662 * configure.ac: Don't check for HPUX DCE threads support.
8663 * configure, config.in: Regenerate.
8664 * hppa-hpux-nat.c (child_suppress_run): Delete.
8665 (hppa_hpux_child_can_run): Delete.
8666 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8667 * hpux-thread.c: Delete.
8669 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8671 * hpux-thread.c (hpux_pid_to_str): Delete.
8673 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8675 * ada-valprint.c (ada_emit_char): Remove strange code.
8676 Check that c is <= UCHAR_MAX before passing it to isascii.
8677 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8679 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8681 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8682 to the case where instream is stdin.
8684 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8686 * ia64-tdep.h (struct regcache): Forward declare.
8687 (struct ia64_infcall_ops): New struct type.
8688 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8690 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8691 Renames ia64_find_global_pointer.
8692 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8693 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8694 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8696 (ia64_infcall_ops): New static global constant.
8697 (ia64_gdbarch_init): Set tdep->infcall_ops.
8698 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8699 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8700 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8701 (ia64_hpux_dummy_code): New static global constant.
8702 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8703 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8704 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8706 (ia64_hpux_infcall_ops): New static global constant.
8707 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8708 for inferior function calls to work properly on ia64-hpux.
8710 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8712 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8713 * ia64-tdep.h (struct frame_info): forward declaration.
8714 (struct gdbarch_tdep): Add field size_of_register_frame.
8715 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8716 to determine the size of the register frame.
8717 (ia64_size_of_register_frame): New function.
8718 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8719 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8720 (IA64_HPUX_UREG_REASON): New macro.
8721 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8723 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8724 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8725 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8728 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8730 Add support for ia64-hpux.
8731 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8732 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8734 * configure.host: Add handling for ia64-hpux hosts. Add associated
8736 * configure.tgt: Add handling for ia64-hpux targets.
8737 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8738 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8739 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8741 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8743 [ttrace] Compute thread list immediately after attach.
8744 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8746 (inf_ttrace_attach): Use it.
8748 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8750 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8751 if we could not determine the frame's function address. Instead,
8752 use the frame's PC, and then continue.
8754 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8756 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8757 not already defined.
8759 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8761 * ia64-tdep.c (ia64_struct_type_p): New function.
8762 (ia64_extract_return_value): Handle integral values that are
8763 less than 8 bytes long.
8764 (ia64_push_dummy_call): Likewise.
8766 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8768 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8769 floatformat_ia64_ext.
8770 (floatformat_ia64_ext_big): New static const.
8771 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8773 2011-01-12 Tom Tromey <tromey@redhat.com>
8775 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8777 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8778 (mi_cmd_thread_list_ids): Likewise.
8779 (mi_cmd_data_list_changed_registers): Likewise.
8780 (mi_cmd_data_list_register_values): Likewise.
8781 (mi_cmd_data_write_register_values): Likewise.
8782 (mi_cmd_data_evaluate_expression): Likewise.
8783 (mi_cmd_data_read_memory): Likewise.
8784 (mi_cmd_data_read_memory_bytes): Likewise.
8785 (mi_cmd_data_write_memory): Likewise.
8786 (mi_cmd_enable_timings): Likewise.
8787 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8788 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8789 (mi_cmd_var_delete): Likewise.
8790 (mi_cmd_var_set_format): Likewise.
8791 (mi_cmd_var_show_format): Likewise.
8792 (mi_cmd_var_info_num_children): Likewise.
8793 (mi_cmd_var_list_children): Likewise.
8794 (mi_cmd_var_info_type): Likewise.
8795 (mi_cmd_var_info_expression): Likewise.
8796 (mi_cmd_var_show_attributes): Likewise.
8797 (mi_cmd_var_assign): Likewise.
8798 (mi_cmd_var_update): Likewise.
8799 (mi_cmd_enable_pretty_printing): Likewise.
8800 (mi_cmd_var_set_update_range): Likewise.
8801 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8803 (mi_cmd_target_file_put): Likewise.
8804 (mi_cmd_target_file_delete): Likewise.
8805 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8807 (mi_cmd_stack_info_depth): Likewise.
8808 (mi_cmd_stack_list_locals): Likewise.
8809 (mi_cmd_stack_list_args): Likewise.
8810 (mi_cmd_stack_select_frame): Likewise.
8811 (mi_cmd_stack_select_frame): Likewise.
8812 (mi_cmd_stack_info_frame): Likewise.
8813 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8815 (mi_cmd_file_list_exec_source_files): Likewise.
8816 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8817 (mi_cmd_env_cd): Likewise.
8818 (mi_cmd_env_path): Likewise.
8819 (mi_cmd_env_dir): Likewise.
8820 (mi_cmd_inferior_tty_show): Likewise.
8821 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8822 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8823 (mi_cmd_break_watch): Likewise.
8825 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8827 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8828 (ppc_linux_insert_hw_breakpoint): Likewise.
8829 (ppc_linux_remove_hw_breakpoint): Likewise.
8830 (ppc_linux_insert_watchpoint): Likewise.
8832 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8833 Jan Kratochvil <jan.kratochvil@redhat.com>
8835 PR fortran/11104 and DWARF unbound arrays detection.
8836 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8837 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8838 unspecified upper bound.
8839 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8840 variables array_size_array, tmp_type and offset_item. New variable
8841 array. Remove call to f77_get_upperbound. New variables array_type
8842 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8843 the final call to deprecated_set_value_type.
8845 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8847 Make value allocations more lazy.
8848 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8849 instead of allocate_value and set_value_lazy when possible.
8850 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8851 instead of allocate_value and set_value_lazy.
8852 * findvar.c (value_of_register_lazy): Likewise.
8853 (read_var_value): Remove V preallocation, call just check_typedef in
8854 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8855 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8856 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8857 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8858 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8859 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8860 the end, remove set_value_lazy there.
8861 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8862 instead of allocate_value and set_value_lazy when possible.
8863 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8864 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8865 of allocate_value and set_value_lazy.
8866 (value_from_contents_and_address): Use allocate_value_lazy instead of
8867 allocate_value and set_value_lazy when possible.
8869 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8871 * disasm.c (dump_insns): Support dumping opcodes for MI.
8872 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8873 dumping of instruction opcodes.
8875 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8877 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8880 2011-01-11 Tom Tromey <tromey@redhat.com>
8882 * thread.c (do_captured_thread_select): Emit newline before
8885 2011-01-11 Michael Snyder <msnyder@vmware.com>
8887 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8888 * score-tdep.c: Ditto.
8889 * score-tdep.h: Ditto.
8890 * ser-base.c: Ditto.
8891 * ser-go32.c: Ditto.
8894 * ser-mingw.c: Ditto.
8895 * ser-pipe.c: Ditto.
8897 * ser-unix.c: Ditto.
8898 * sh64-tdep.c: Ditto.
8899 * shnbsd-nat.c: Ditto.
8903 * solib-darwin.c: Ditto.
8904 * solib-frv.c: Ditto.
8906 * solib-irix.c: Ditto.
8907 * solib-osf.c: Ditto.
8908 * solib-pa64.c: Ditto.
8909 * solib-som.c: Ditto.
8910 * solib-spu.c: Ditto.
8911 * solib-sunos.c: Ditto.
8912 * solib-svr4.c: Ditto.
8914 * sol-thread.c: Ditto.
8918 * sparc64-linux-tdep.c: Ditto.
8919 * sparc64-tdep.c: Ditto.
8920 * sparc-linux-nat.c: Ditto.
8921 * sparc-linux-tdep.c: Ditto.
8922 * sparc-sol2-nat.c: Ditto.
8923 * sparc-sol2-tdep.c: Ditto.
8924 * sparc-tdep.c: Ditto.
8925 * sparc-tdep.h: Ditto.
8926 * spu-tdep.c: Ditto.
8927 * stabsread.c: Ditto.
8928 * stabsread.h: Ditto.
8936 * target-descriptions.c: Ditto.
8937 * target-descriptions.h: Ditto.
8939 * target-memory.c: Ditto.
8940 * terminal.h: Ditto.
8943 * tracepoint.c: Ditto.
8944 * tracepoint.h: Ditto.
8945 * trad-frame.h: Ditto.
8946 * typeprint.c: Ditto.
8948 2011-01-11 Michael Snyder <msnyder@vmware.com>
8950 * ui-file.c: Comment cleanup, mostly periods and spaces.
8955 * v850-tdep.c: Ditto.
8956 * valarith.c: Ditto.
8958 * valprint.c: Ditto.
8959 * valprint.h: Ditto.
8964 * vax-tdep.c: Ditto.
8968 * windows-nat.c: Ditto.
8969 * windows-tdep.c: Ditto.
8970 * xcoffread.c: Ditto.
8971 * xcoffsolib.c: Ditto.
8972 * xml-support.c: Ditto.
8973 * xstormy16-tdep.c: Ditto.
8974 * xtensa-tdep.c: Ditto.
8975 * xtensa-tdep.h: Ditto.
8977 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8979 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8980 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8982 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8983 Thiago Jung Bauermann <bauerman@br.ibm.com>
8985 Implement support for PowerPC BookE ranged watchpoints.
8987 (struct breakpoint_ops) <resources_needed>: New method.
8988 Initialize to NULL in all existing breakpoint_ops instances.
8989 (struct breakpoint) <exact>: New field.
8990 (target_exact_watchpoints): Declare external global.
8991 * breakpoint.c (target_exact_watchpoints): New global flag.
8992 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8993 b->enable_state to bp_enabled before calling
8994 hw_watchpoint_used_count.
8995 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8996 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8998 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8999 if the watchpoint is exact.
9000 (resources_needed_watchpoint): New function.
9001 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
9002 (watch_command_1): Set b->exact if the user asked for an exact
9003 watchpoint and one can be set.
9004 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
9005 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
9006 the user asks for an exact watchpoint and one can be set. Return
9007 number of needed debug registers to watch the expression.
9008 * gdbtypes.c (is_scalar_type): New function, based on
9009 valprint.c:scalar_type_p.
9010 (is_scalar_type_recursive): New function.
9011 * gdbtypes.h (is_scalar_type_recursive): Declare.
9012 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
9013 handle regions when ranged watchpoints are available.
9014 (create_watchpoint_request): New function.
9015 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
9016 create_watchpoint_request.
9017 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
9018 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
9019 `set powerpc' and `show powerpc' commands.
9020 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9021 Mention documentation comment in the target macro.
9022 (target_region_ok_for_hw_watchpoint): Document return value.
9024 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9026 * breakpoint.c (update_watchpoint): Decide on using a software or
9027 hardware watchpoint after the bp_locations are created.
9029 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9031 Convert hardware watchpoints to use breakpoint_ops.
9032 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
9033 <insert_location>: ... this. Return int instead of void.
9034 Accept pointer to struct bp_location instead of pointer to
9035 struct breakpoint. Adapt all implementations.
9036 (breakpoint_ops) <remove>: Rename to...
9037 <remove_location>: ... this. Accept pointer to struct bp_location
9038 instead of pointer to struct breakpoint. Adapt all implementations.
9039 * breakpoint.c (insert_catchpoint): Delete function.
9040 (insert_bp_location): Call the watchpoint or catchpoint's
9041 breakpoint_ops.insert method.
9042 (remove_breakpoint_1): Call the watchpoint or catchpoint's
9043 breakpoint_ops.remove method.
9044 (insert_watchpoint, remove_watchpoint): New functions.
9045 (watchpoint_breakpoint_ops): New structure.
9046 (watch_command_1): Initialize the OPS field.
9047 * inf-child.c (inf_child_insert_fork_catchpoint)
9048 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9049 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9050 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9052 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9053 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9054 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9055 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9056 * target.c (update_current_target): Change default implementation of
9057 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9058 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9059 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9060 to_set_syscall_catchpoint to return_one.
9061 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9062 (debug_to_insert_exec_catchpoint): Report return value.
9063 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9064 (to_insert_exec_catchpoint): Change declaration to return int instead
9067 2011-01-11 Michael Snyder <msnyder@vmware.com>
9069 * arm-tdep.c: Internationalization.
9072 * fork-child.c: Ditto.
9073 * nto-procfs.c: Ditto.
9074 * ppc-sysv-tdep.c: Ditto.
9076 * remote-mips.c: Ditto.
9078 * rs6000-nat.c: Ditto.
9079 * rs6000-tdep.c: Ditto.
9083 * xml-support.c: Ditto.
9084 * mi/mi-cmd-break.c: Ditto.
9085 * mi/mi-cmd-var.c: Ditto.
9086 * mi/mi-interp.c: Ditto.
9087 * mi/mi-main.c: Ditto.
9089 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
9091 * remote-sim.c (gdbsim_store_register): Update API to
9092 sim_store_register to check more error conditions.
9094 2011-01-10 Michael Snyder <msnyder@vmware.com>
9096 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9097 * nto-tdep.c: Ditto.
9098 * nto-tdep.h: Ditto.
9099 * objc-exp.y: Ditto.
9100 * objc-lang.c: Ditto.
9101 * objfiles.c: Ditto.
9102 * objfiles.h: Ditto.
9103 * observer.c: Ditto.
9104 * opencl-lang.c: Ditto.
9107 * parser-defs.h: Ditto.
9110 * posix-hdep.c: Ditto.
9111 * ppcbug-rom.c: Ditto.
9112 * ppc-linux-nat.c: Ditto.
9113 * ppc-linux-tdep.c: Ditto.
9114 * ppc-linux-tdep.h: Ditto.
9115 * ppcnbsd-tdep.c: Ditto.
9116 * ppcobsd-tdep.c: Ditto.
9117 * ppcobsd-tdep.h: Ditto.
9118 * ppc-sysv-tdep.c: Ditto.
9119 * ppc-tdep.h: Ditto.
9120 * printcmd.c: Ditto.
9121 * proc-abi.c: Ditto.
9122 * proc-flags.c: Ditto.
9124 * proc-utils.h: Ditto.
9125 * progspace.h: Ditto.
9126 * prologue-value.c: Ditto.
9127 * prologue-value.h: Ditto.
9128 * psympriv.h: Ditto.
9130 * p-typeprint.c: Ditto.
9131 * p-valprint.c: Ditto.
9132 * ravenscar-sparc-thread.c: Ditto.
9133 * ravenscar-thread.c: Ditto.
9134 * ravenscar-thread.h: Ditto.
9136 * regcache.c: Ditto.
9137 * regcache.h: Ditto.
9139 * remote-fileio.c: Ditto.
9140 * remote-fileio.h: Ditto.
9142 * remote-m32r-sdi.c: Ditto.
9143 * remote-mips.c: Ditto.
9144 * remote-sim.c: Ditto.
9145 * rs6000-aix-tdep.c: Ditto.
9146 * rs6000-nat.c: Ditto.
9147 * rs6000-tdep.c: Ditto.
9149 2011-01-10 Michael Snyder <msnyder@vmware.com>
9151 * charset.c (validate): Internationalization.
9152 * coffread.c (read_one_sym): Ditto.
9153 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9154 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9155 * inflow.c (new_tty): Ditto.
9156 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9157 * m32c-tdep.c (m32c_return_value): Ditto.
9158 * mep-tdep.c (mep_store_return_value): Ditto.
9159 * score-tdep.c (score7_fetch_insn): Ditto.
9160 * ser-mingw.c (pipe_windows_open): Ditto.
9161 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9162 * spu-tdep.c (spu_register_type): Ditto.
9163 * tracepoint.c (trace_find_command): Ditto.
9164 * valarith.c (value_pos): Ditto.
9166 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9168 * ada-valprint.c (printstr): Minor comment reformatting.
9170 2011-01-08 Michael Snyder <msnyder@vmware.com>
9172 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9175 2011-01-08 Michael Snyder <msnyder@vmware.com>
9177 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9178 * hppa-hpux-tdep.c: Ditto.
9179 * hppa-linux-nat.c: Ditto.
9180 * hppa-linux-tdep.c: Ditto.
9181 * hppanbsd-tdep.c: Ditto.
9182 * hppa-tdep.c: Ditto.
9183 * hppa-tdep.h: Ditto.
9184 * hpux-thread.c: Ditto.
9185 * i386-cygwin-tdep.c: Ditto.
9186 * i386-darwin-nat.c: Ditto.
9187 * i386gnu-nat.c: Ditto.
9188 * i386-linux-nat.c: Ditto.
9189 * i386-linux-tdep.c: Ditto.
9190 * i386-nat.c: Ditto.
9191 * i386-nat.h: Ditto.
9192 * i386nbsd-tdep.c: Ditto.
9193 * i386-sol2-nat.c: Ditto.
9194 * i386-stub.c: Ditto.
9195 * i386-tdep.c: Ditto.
9196 * i386-tdep.h: Ditto.
9197 * i387-tdep.c: Ditto.
9198 * ia64-linux-nat.c: Ditto.
9199 * ia64-linux-tdep.c: Ditto.
9200 * ia64-tdep.c: Ditto.
9204 * inferior.c: Ditto.
9205 * inferior.h: Ditto.
9211 * iq2000-tdep.c: Ditto.
9212 * irix5-nat.c: Ditto.
9218 * jv-typeprint.c: Ditto.
9219 * jv-valprint.c: Ditto.
9220 * language.c: Ditto.
9221 * language.h: Ditto.
9222 * linespec.c: Ditto.
9223 * linux-fork.c: Ditto.
9224 * linux-nat.c: Ditto.
9225 * linux-thread-db.c: Ditto.
9226 * lm32-tdep.c: Ditto.
9228 2011-01-08 Michael Snyder <msnyder@vmware.com>
9230 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9232 * m2-typeprint.c: Ditto.
9233 * m2-valprint.c: Ditto.
9234 * m32c-tdep.c: Ditto.
9235 * m32r-linux-nat.c: Ditto.
9236 * m32r-rom.c: Ditto.
9237 * m32r-tdep.c: Ditto.
9238 * m32r-tdep.h: Ditto.
9239 * m68hc11-tdep.c: Ditto.
9240 * m58klinux-nat.c: Ditto.
9241 * m68k-tdep.c: Ditto.
9242 * m88k-tdep.c: Ditto.
9243 * m88k-tdep.h: Ditto.
9244 * machoread.c: Ditto.
9245 * macrocmd.c: Ditto.
9246 * macroexp.c: Ditto.
9247 * macrotab.c: Ditto.
9250 * mdebugread.c: Ditto.
9251 * mdebugread.h: Ditto.
9254 * memory-map.h: Ditto.
9255 * mep-tdep.c: Ditto.
9256 * microblaze-rom.c: Ditto.
9257 * microblaze-tdep.c: Ditto.
9259 * mips-irix-tdep.c: Ditto.
9260 * mips-linux-nat.c: Ditto.
9261 * mips-linux-tdep.c: Ditto.
9262 * mips-linux-tdep.h: Ditto.
9263 * mipsnbsd-nat.c: Ditto.
9264 * mipsnbsd-tdep.c: Ditto.
9265 * mipsread.c: Ditto.
9266 * mips-tdep.c: Ditto.
9267 * mips-tdep.h: Ditto.
9268 * mn10300-linux-tdep.c: Ditto.
9269 * mn10300-tdep.c: Ditto.
9270 * mn10300-tdep.h: Ditto.
9273 * moxie-tdep.c: Ditto.
9274 * moxie-tdep.h: Ditto.
9277 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9279 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9281 2011-01-08 Robert Millan <rmh@gnu.org>
9283 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9285 2011-01-07 Michael Snyder <msnyder@vmware.com>
9287 * charset.c (_initialize_charset): Fix typo in string.
9289 2011-01-07 Michael Snyder <msnyder@vmware.com>
9291 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9293 * tui/tui-layout.c (tui_set_layout_for_display_command):
9294 Split line so that operator goes to beginning of line.
9295 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9296 assignment out of if statement.
9298 2011-01-07 Michael Snyder <msnyder@vmware.com>
9300 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9301 * ada-lang.h: Ditto.
9302 * ada-tasks.c: Ditto.
9303 * ada-valprint.c: Ditto.
9304 * aix-threads.c: Ditto.
9305 * alpha-linux-nat.c: Ditto.
9306 * alpha-linux-tdep.c: Ditto.
9307 * alpha-mdebug-tdep.c: Ditto.
9308 * alpha-nat.c: Ditto.
9309 * alpha-osf1-tdep.c: Ditto.
9310 * alpha-tdep.c: Ditto.
9311 * alphabsd-nat.c: Ditto.
9312 * alphabsd-tdep.c: Ditto.
9313 * amd64-darwin-tdep.c: Ditto.
9314 * amd64-linux-nat.c: Ditto.
9315 * amd64-linux-tdep.c: Ditto.
9316 * amd64-sol2-tdep.c: Ditto.
9317 * amd64-tdep.c: Ditto.
9318 * amd64-fbsd-tdep.c: Ditto.
9319 * amd64-nbsd-tdep.c: Ditto.
9320 * amd64-obsd-tdep.c: Ditto.
9321 * amd64-linux-nat.c: Ditto.
9322 * amd64-linux-tdep.c: Ditto.
9323 * arm-tdep.c: Ditto.
9324 * arm-tdep.h: Ditto.
9325 * armnbsd-nat.c: Ditto.
9326 * avr-tdep.c: Ditto.
9327 * bfin-tdep.c: Ditto.
9329 * c-typeprintc: Ditto.
9330 * c-valprint.c: Ditto.
9331 * coff-pe-read.h: Ditto.
9332 * coffreead.c: Ditto.
9333 * cris-tdep.c: Ditto.
9335 * darwin-nat-info.c: Ditto.
9336 * darwin-nat.c: Ditto.
9337 * dbug-rom.c: Ditto.
9341 * dec-thread.c: Ditto.
9343 * demangle.c: Ditto.
9344 * dicos-tdep.c: Ditto.
9345 * dictionary.c: Ditto.
9346 * dictionary.h: Ditto.
9347 * dink32-rom.c: Ditto.
9349 * doublest.c: Ditto.
9351 * dummy-frame.c: Ditto.
9352 * dwarf2-frame.c: Ditto.
9353 * dwarf2expr.c: Ditto.
9354 * dwarf2loc.c: Ditto.
9355 * dwarf2read.c: Ditto.
9359 * event-top.h: Ditto.
9360 * exceptions.c: Ditto.
9361 * exceptions.h: Ditto.
9363 * expprint.c: Ditto.
9364 * expression.h: Ditto.
9368 * f-typeprint.c: Ditto.
9369 * f-valprint.c: Ditto.
9370 * fbsd-nat.c: Ditto.
9372 * fork-child.c: Ditto.
9375 * frv-linux-tdep.c: Ditto.
9376 * frv-tdep.c: Ditto.
9378 * gdb-stabs.h: Ditto.
9379 * gdb_assert.h: Ditto.
9380 * gdb_string.h: Ditto.
9381 * gdb_thread_db.h: Ditto.
9382 * gdb_wait.h: Ditto.
9383 * gdbarch.sh: Ditto.
9385 * gdbthread.h: Ditto.
9386 * gdbtypes.c: Ditto.
9387 * gdbtypes.h: Ditto.
9390 * gnu-v2-abi.c: Ditto.
9391 * gnu-v3-abi.c: Ditto.
9392 * go32-nat.c: Ditto.
9393 * gdbarch.c: Regenerate.
9394 * gdbarch.h: Regenerate.
9396 2011-01-07 Michael Snyder <msnyder@vmware.com>
9398 * ax-gdb.c: Adjust some long output strings.
9399 * breakpoint.c: Ditto.
9404 * linux-nat.c: Ditto.
9405 * solib-pa64.c: Ditto.
9406 * solib-som.c: Ditto.
9408 2011-01-06 Tom Tromey <tromey@redhat.com>
9412 * python/python.c (GdbMethods): Add "newest_frame" method.
9413 * python/python-internal.h (gdbpy_newest_frame): Declare.
9414 * python/py-frame.c (gdbpy_newest_frame): New function.
9416 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9418 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9419 * jit.c (jit_debug): New variable.
9420 (show_jit_debug): New function.
9421 (struct target_buffer): Use ULONGEST.
9422 (bfd_open_from_target_memory): Likewise.
9423 (jit_register_code, jit_inferior_init): Add debug output.
9424 (_initialize_jit): Register "debug jit" command.
9426 2011-01-06 Tom Tromey <tromey@redhat.com>
9428 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9429 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9432 2011-01-06 Tom Tromey <tromey@redhat.com>
9434 * python/py-frame.c (frapy_block): Use get_frame_block.
9436 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9438 Do not stop on SIGPRIO signals by default
9439 * infrun.c (_initialize_infrun): Unset signal_stop and
9440 signal_print for TARGET_SIGNAL_PRIO.
9442 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9444 * ada-tasks.c: Fix style violation in comment.
9446 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9448 * linespec.c (decode_compound, find_method): Remove trailing \n
9449 at end of error string.
9450 * solib-irix.c (irix_current_sos): Likewise.
9451 * varobj.c (uninstall_variable): Likewise.
9453 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9455 * copyright.py: New script.
9456 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9457 Launch emacs without exec'ing. Call copyright.py afterwards.
9459 2011-01-05 Michael Snyder <msnyder@vmware.com>
9461 * addrmap.c: Shorten lines of >= 80 columns.
9462 * arch-utils.c: Ditto.
9463 * arch-utils.h: Ditto.
9465 * ax-general.c: Ditto.
9467 * blockframe.c: Ditto.
9468 * breakpoint.c: Ditto.
9469 * buildsym.c: Ditto.
9471 * c-typeprint.c: Ditto.
9473 * coffread.c: Ditto.
9477 * cp-namespace.c: Ditto.
9478 * cp-support.c: Ditto.
9479 * dbug-rom.c: Ditto.
9484 * dictionary.c: Ditto.
9486 * doublest.c: Ditto.
9487 * dwarf2-frame.c: Ditto.
9488 * dwarf2expr.c: Ditto.
9489 * dwarf2loc.c: Ditto.
9490 * dwarf2read.c: Ditto.
9493 * event-loop.c: Ditto.
9494 * event-loop.h: Ditto.
9495 * exceptions.h: Ditto.
9497 * expprint.c: Ditto.
9498 * expression.h: Ditto.
9500 * f-valprint.c: Ditto.
9502 * frame-base.c: Ditto.
9503 * frame-unwind.c: Ditto.
9504 * frame-unwind.h: Ditto.
9508 * gdb-stabs.h: Ditto.
9509 * gdb_assert.h: Ditto.
9510 * gdb_dirent.h: Ditto.
9511 * gdb_obstack.h: Ditto.
9513 * gdbtypes.c: Ditto.
9514 * gdbtypes.h: Ditto.
9515 * inf-ttrace.c: Ditto.
9520 * inline-frame.h: Ditto.
9521 * language.c: Ditto.
9522 * language.h: Ditto.
9523 * libunwind-frame.c: Ditto.
9524 * libunwind-frame.h: Ditto.
9525 * linespec.c: Ditto.
9526 * linux-nat.c: Ditto.
9527 * linux-nat.h: Ditto.
9528 * linux-thread-db.c: Ditto.
9529 * machoread.c: Ditto.
9530 * macroexp.c: Ditto.
9531 * macrotab.c: Ditto.
9534 * mdebugread.c: Ditto.
9539 * objfiles.c: Ditto.
9540 * objfiles.h: Ditto.
9542 * p-typeprint.c: Ditto.
9543 * p-valprint.c: Ditto.
9545 * printcmd.c: Ditto.
9546 * proc-events.c: Ditto.
9548 * progspace.c: Ditto.
9549 * progspace.h: Ditto.
9550 * psympriv.h: Ditto.
9553 * regcache.c: Ditto.
9554 * regcache.h: Ditto.
9555 * remote-fileio.c: Ditto.
9557 * ser-mingw.c: Ditto.
9559 * ser-unix.c: Ditto.
9562 * solib-frv.c: Ditto.
9563 * solib-irix.c: Ditto.
9564 * solib-osf.c: Ditto.
9565 * solib-pa64.c: Ditto.
9566 * solib-som.c: Ditto.
9567 * solib-sunos.c: Ditto.
9568 * solib-svr4.c: Ditto.
9569 * solib-target.c: Ditto.
9573 * stabsread.c: Ditto.
9574 * stabsread.c: Ditto.
9577 * symfile-mem.c: Ditto.
9583 * target-descriptions.c: Ditto.
9584 * target-memory.c: Ditto.
9587 * terminal.h: Ditto.
9590 * tracepoint.c: Ditto.
9591 * tracepoint.h: Ditto.
9595 * user-regs.c: Ditto.
9596 * user-regs.h: Ditto.
9598 * valarith.c: Ditto.
9600 * valprint.c: Ditto.
9601 * valprint.h: Ditto.
9606 * xcoffread.c: Ditto.
9607 * xcoffsolib.c: Ditto.
9608 * xcoffsolib.h: Ditto.
9609 * xml-syscall.c: Ditto.
9610 * xml-tdesc.c: Ditto.
9612 2011-01-05 Michael Snyder <msnyder@vmware.com>
9614 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9615 * cli/cli-decode.c: Ditto.
9616 * cli/cli-dump.c: Ditto.
9617 * cli/cli-logging.c: Ditto.
9618 * cli/cli-script.c: Ditto.
9619 * cli/cli-setshow.c: Ditto.
9620 * common/signals.c: Ditto.
9621 * mi/mi-cmd-break.c: Ditto.
9622 * mi/mi-cmd-disas.c: Ditto.
9623 * mi/mi-cmd-stack.c: Ditto.
9624 * mi/mi-cmd-var.c: Ditto.
9625 * mi/mi-cmds.c: Ditto.
9626 * mi/mi-common.h: Ditto.
9627 * mi/mi-console.c: Ditto.
9628 * mi/mi-interp.c: Ditto.
9629 * mi/mi-main.c: Ditto.
9630 * osf-share/cma_attr.c: Ditto.
9631 * osf-share/cma_deb_core.h: Ditto.
9632 * osf-share/cma_debug_client.h: Ditto.
9633 * osf-share/cma_handle.h: Ditto.
9634 * osf-share/cma_mutex.h: Ditto.
9635 * osf-share/cma_stack_int.h: Ditto.
9636 * osf-share/cma_tcb_defs.h: Ditto.
9637 * python/py-auto-load.c: Ditto.
9638 * python/py-breakpoint.c: Ditto.
9639 * python/py-cmd.c: Ditto.
9640 * python/py-frame.c: Ditto.
9641 * python/py-objfile.c: Ditto.
9642 * python/py-param.c: Ditto.
9643 * python/py-progspace.c: Ditto.
9644 * python/py-symbol.c: Ditto.
9645 * python/py-value.c: Ditto.
9646 * python/python-internal.h: Ditto.
9647 * python/python.c: Ditto.
9648 * tui/tui-data.c: Ditto.
9649 * tui/tui-disasm.c: Ditto.
9650 * tui/tui-hooks.c: Ditto.
9651 * tui/tui-io.c: Ditto.
9652 * tui/tui-layout.c: Ditto.
9653 * tui/tui-regs.c: Ditto.
9654 * tui/tui-source.c: Ditto.
9655 * tui/tui-stack.c: Ditto.
9656 * tui/tui-win.c: Ditto.
9657 * tui/tui-windata.c: Ditto.
9658 * tui/tui-winsource.c: Ditto.
9660 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9662 * configure.ac, gdb.1: Copyright year update.
9664 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9666 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9667 this_pc_in_block, morestack_msym and morestack_name. Check for
9668 "__morestack" minimal symbol there.
9670 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9672 * symfile.c (find_sym_fns): Add call to dont_repeat.
9674 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9676 Copyright year update in most files (performed by copyright.sh).
9678 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9680 * top.c (print_gdb_version): Update copyright year in version output.
9682 For older changes see ChangeLog-2010.
9688 version-control: never