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