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