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