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