2011-10-06 Justin Lebar <justin.lebar@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1bfeeb0f
JL
12011-10-06 Justin Lebar <justin.lebar@gmail.com>
2
3 * Makefile.in: (SFILES): Add skip.c.
4 (HFILES_NO_SRCDIR): Add skip.h.
5 (COMMON_OBS): Add skip.o.
6 * skip.h, skip.c: New.
7 * breakpoint.h (set_default_breakpoint): Remove.
8 (get_sal_arch): Declare.
9 * breakpoint.c: Remove default_breakpoint_valid,
10 default_breakpoint_address, default_breakpoint_symtab,
11 default_breakpoint_line, default_breakpoint_pspace variables.
12 (get_sal_arch): Make public.
13 (set_default_breakpoint): Remove.
14 (parse_breakpoint_sals, create_breakpoint, clear_command,
15 decode_line_spec_1): Remove uses of default_breakpoint variables;
16 replaced with function calls into stack.c.
17 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
18 * cli/cli-cmds.c: Add skiplist.
19 (init_cmd_lists): Initialize skiplist.
20 (init_cli_cmds): Fix comment (classes of commands appear in
21 alphabetical order).
22 * infrun.c (handle_inferior_event): Add check that we don't step into
23 a function whose pc is marked for skip.
24 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
25 last_displayed_addr, last_displayed_symtab, last_displayed_line
26 variables.
27 (set_last_displayed_sal): New static function.
28 (print_frame_info): Switch call to set_default_breakpoint to call to
29 set_last_displayed_sal.
30 (clear_last_displayed_sal, last_displayed_sal_is_valid,
31 get_last_displayed_pspace, get_last_displayed_addr,
32 get_last_displayed_symtab, get_last_displayed_line,
33 get_last_displayed_sal): New public functions.
34 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
35 get_last_displayed_pspace, get_last_displayed_addr,
36 get_last_displayed_symtab, get_last_displayed_line,
37 get_last_displayed_sal): Declare.
38
b60e1588
JL
392011-11-01 Justin Lebar <justin.lebar@gmail.com>
40
41 * MAINTAINERS (Write After Approval): Add myself to the list.
42
d31647d2
YQ
432011-10-29 Yao Qi <yao@codesourcery.com>
44
45 * infcmd.c (disconnect_command): Call disconnect_tracing.
46
b1d96efd
JK
472011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 Code cleanup.
50 * symtab.c (skip_prologue_sal): Code reformatting.
51
4dfb2365
JK
522011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 PR symtab/13208
55 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
56 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
57 SAI.
58
0e5bf2a8
PA
592011-10-28 Pedro Alves <pedro@codesourcery.com>
60
61 * linux-nat.c (linux_nat_filter_event): Remove `options'
62 parameter, and dead code that used it. If we're handling a
63 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
64 in our lwp list, re-add it.
65 (check_zombie_leaders): New.
66 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
67 wait for children with WNOHANG, and always wait for all children.
68 Don't check for no resumed children upfront. Simplify wait loop.
69 Check for zombie thread group leaders after handling all wait
70 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
71 unwaited-for children left.
72 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
73 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
74 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
75 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
76
821296b7
SA
772011-10-28 Sterling Augustine <saugustine@google.com>
78
79 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
80 * symtab.c (free_completion_list): New function.
81 (do_free_completion_list): Likewise.
82 (default_make_symbol_completion_list_break_on): New variable
83 back_to. Call make_cleanup and discard_cleanups.
84 (make_source_files_completion_list): Likewise.
85
03c3051a
PK
862011-10-28 Paul Koning <paul_koning@dell.com>
87
88 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
89 * NEWS: Mention deep_items.
90
8e7ebaf5
PA
912011-10-28 Alen Skondro <askondro@gmail.com>
92
93 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
94 defined.
95
e0c6ef61
MI
962011-10-27 Meador Inge <meadori@codesourcery.com>
97
98 * MAINTAINERS (Write After Approval): Add myself to the list.
99
b56d6f31
JB
1002011-10-27 Joel Brobecker <brobecker@adacore.com>
101
102 * value.h (read_frame_register_value): Add declaration.
103 * findvar.c (read_frame_register_value): New function.
104 (value_from_register): Use read_frame_register_value
105 instead of get_frame_register_value + value_contents_copy
106 to get value contents.
107
d234ef5c
DE
1082011-10-27 Doug Evans <dje@google.com>
109
110 * cli/cli-cmds.c (source_script_with_search): Pass full path to
111 source_script_from_stream if it may have been found on the search path.
112 * python/py-auto-load.c (source_section_scripts): Pass full path to
113 source_python_script_for_objfile.
114 * python/python.c (source_python_script): Delete stream parameter.
115 All callers updated.
116 (source_python_script_for_objfile): Ditto.
117 * python/python-internal.h (source_python_script_for_objfile): Update.
118 * python/python.h (source_python_script): Update.
119
d849d44f
TT
1202011-10-27 Tom Tromey <tromey@redhat.com>
121
122 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
123 (ada_sals_for_line): Remove declarations.
124
2231f1fb
KP
1252011-10-27 Kevin Pouget <kevin.pouget@st.com>
126
127 Move unwind reasons to an external .def file
128 * frame.c (frame_stop_reason_string): Rewrite using
129 unwind_stop_reasons.def.
130 * frame.h (enum unwind_stop_reason): Likewise.
131 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
132 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
133 constants for bound-checking.
134 * unwind_stop_reasons.def: New file.
135 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
136 instead of a distinct value.
137
f77b9a5d
PM
1382011-10-27 Phil Muldoon <pmuldoon@redhat.com>
139
140 PR python/13331
141
142 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
143 (convert_values_to_python): Return on Python tuple allocation
144 failure. Return NULL on value conversion error.
145
76dce0be
PM
1462011-10-27 Phil Muldoon <pmuldoon@redhat.com>
147
148 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
149 (bppy_set_task): Ditto.
150 (bppy_delete_breakpoint): Ditto.
151 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
152 (gdbpy_lookup_global_symbol): Ditto.
153 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
154 * python/py-frame.c (frapy_is_valid): Ditto.
155 (frame_info_to_frame_object): Ditto.
156 * python/py-type.c (typy_lookup_type): Ditto.
157 (typy_getitem): Ditto.
158 (typy_has_key): Ditto.
159 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
160
f17b6955
JB
1612011-10-26 Joel Brobecker <brobecker@adacore.com>
162
163 * gdbarch.h: Regenerate.
164
86ba1042
JB
1652011-10-26 Meador Inge <meadori@codesourcery.com>
166
167 * gdbarch.sh (function_list): Use 'pstring' when printing
168 'gcore_bfd_target'.
169 * gdbarch.c: Regenerate.
170
c34fd852
UW
1712011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
172
173 * regcache.c (registers_changed_ptid): Invalidate thread architecture
174 and frame caches if PTID refers to all threads of a process.
175
931bb47f
UW
1762011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
177
178 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
179 to create_breakpoint.
180
88aed45e
UW
1812011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
182
183 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
184 (ppc_sysv_abi_push_dummy_call): Use it.
185 (do_ppc_sysv_return_value): Likewise.
186 (ppc64_sysv_abi_push_dummy_call): Likewise.
187 (ppc64_sysv_abi_return_value): Likewise.
188
3eaf3fa2
PK
1892011-10-26 Paul Koning <paul_koning@dell.com>
190
191 * python/lib/gdb/types.py (deepitems): New function.
192
913460fc
PK
1932011-10-25 Paul Koning <paul_koning@dell.com>
194
195 PR python/13327
196
197 * python/py-value.c (value_to_value_object): Remove fetching of
198 the value if it was lazy.
199 (valpy_get_is_lazy): New function.
200 (valpy_fetch_lazy): New function.
201
2b5b9d09
JB
2022011-10-24 Joel Brobecker <brobecker@adacore.com>
203
204 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
205 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
206
e21ffe51
PA
2072011-10-24 Pedro Alves <pedro@codesourcery.com>
208
209 * linux-nat.c (linux_handle_extended_wait): When handling a clone
210 event, in non-stop, if not stopping, make sure the new lwp has
211 last_resume_kind set to resume_continue. Assert that when we're
212 resuming the new lwp, its last_resume_kind is resume_continue.
213
7aee8dc2
PA
2142011-10-24 Pedro Alves <pedro@codesourcery.com>
215
216 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
217 already set when marking the event thread as not executing in
218 non-stop mode.
219
4b4e080e
PA
2202011-10-24 Pedro Alves <pedro@codesourcery.com>
221
222 * infrun.c (handle_inferior_event): Add debug output for
223 TARGET_WAITKIND_NO_HISTORY.
224
baacfb07
PM
2252011-10-24 Phil Muldoon <pmuldoon@redhat.com>
226
227 * NEWS: Move set/show extended-prompt to "New Options". Expand
228 description. Fix typos.
229
8432bc41
PM
2302011-10-24 Phil Muldoon <pmuldoon@redhat.com>
231
232 PR python/13310
233
234 * python/py-param.c (call_doc_function): Correctly deference on
235 function exit.
236
6cda5a20
JB
2372011-10-21 Joel Brobecker <brobecker@adacore.com>
238
239 * ada-tasks.c (print_ada_task_info): Fix computation of
240 number of tasks displayed in command output.
241
13294f7d
JK
2422011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
243 Ulrich Weigand <uweigand@de.ibm.com>
244
245 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
246 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
247 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
248 gdbarch_pc_regnum and frame_unwind_register_unsigned by
249 gdbarch_unwind_pc.
250
460c1c54
CC
2512011-10-20 Cary Coutant <ccoutant@google.com>
252
253 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
254 section to...
255 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
256 flag. Adjust all callers.
257 (process_psymtab_comp_unit): Remove adjustment for type section.
258
a10964d1
AR
2592011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
260
261 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
262 arguments by adding OBJFILE. Instead of getting objfile from
263 symbol's symtab, use new argument OBJFILE.
264 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
265 arguments by adding OBJFILE.
266 * gdb/dwarf2read.c (new_symbol_full): Change call to
267 cp_scan_for_anonymous_namespaces to match new signature.
268 * gdb/stabsread.c (define_symbol): Change call to
269 cp_scan_for_anonymous_namespaces to match new signature.
270
27ca1a5b
PM
2712011-10-20 Phil Muldoon <pmuldoon@redhat.com>
272
273 PR python/13308
274 PR python/13309
275
276 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
277 leak.
278 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
279 leak. Delete unused variables.
280
9df2fbc4
PM
2812011-10-20 Phil Muldoon <pmuldoon@redhat.com>
282
283 PR python/12656
284
285 * python/py-frame.c (frapy_read_var): Use const struct *block.
286 * python/py-type.c (typy_lookup_typename): Likewise.
287 (typy_lookup_type): Likewise.
288 (typy_legacy_template_argument): Likewise.
289 (typy_template_argument): Likewise.
290 (gdbpy_lookup_type): Likewise.
291 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
292 * python/py-block.c (blpy_block_object): Likewise.
293 (blpy_iter): Likewise.
294 (blpy_get_start): Likewise.
295 (blpy_get_end): Likewise.
296 (blpy_get_function): Likewise.
297 (blpy_get_superblock): Likewise.
298 (set_block): Likewise.
299 (block_to_block_object): Likewise.
300 (block_object_to_block): Likewise.
301 (blpy_is_valid): Likewise.
302 (blpy_get_global_block): New function.
303 (blpy_get_static_block): New function.
304 (blpy_is_global): New function.
305 (blpy_is_static): New function.
306 * blockframe.c (block_innermost_frame): Likewise.
307 * valops.c (value_of_variable): Likewise.
308 * frame.h: Update prototypes.
309 * python/python-internal.h: Likewise.
310 * value.h: Likewise.
311
4743b735
CC
3122011-10-19 Cary Coutant <ccoutant@google.com>
313
314 * dwarf2read.c (create_debug_types_hash_table): Fix size of
315 type_offset field.
316
6caca83c
CC
3172011-10-19 Cary Coutant <ccoutant@google.com>
318
319 * dwarf2read.c (peek_abbrev_code): New function.
320 (dw2_get_file_names): Check for dummy compilation units.
321 (create_debug_types_hash_table): Likewise.
322 (process_psymtab_comp_unit): Likewise.
323 (load_partial_comp_unit): Likewise.
324 (load_full_comp_unit): Likewise.
325
43136979
AR
3262011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
327
328 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
329 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
330 pt_phdr if PT_PHDR was found.
331
0a07729b
TT
3322011-10-17 Joost van der Sluis <joost@cnoc.nl>
333
334 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
335 type or "<unnamed type"> when there is no name assigned.
336 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
337 avoid a sigint when no name is assigned.
338
21ae7a4d
JK
3392011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 Revert:
342 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
343 * dwarf2expr.c (ctx_no_read_reg): New function.
344 * dwarf2expr.h (ctx_no_read_reg): New declaration.
345 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
346 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
347 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
348
32d1c362
DE
3492011-10-16 Doug Evans <dje@google.com>
350
351 * NEWS: Document python gdb.printing.register_pretty_printer's new
352 `replace' parameter.
353
da096638
KS
3542011-10-14 Keith Seitz <keiths@redhat.com>
355
356 PR c++/13225
357 * eval.c (evaluate_subexp_standard): Do not construct
358 an array of types; pass the value array directly to
359 find_overload_match.
360 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
361 (rank_function): Take an array of values instead of types.
362 (rank_one_type): Add struct value * parameter.
363 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
364 (rank_function): For each argument, pass the argument's
365 value to rank_one_type.
366 (rank_one_type): Add VALUE parameter.
367 If the parameter type is a pointer and the argument type
368 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
369 VALUE is zero.
370 Update all calls to rank_one_type, passing NULL for new
371 VALUE parameter.
372 * valarith.c (value_user_defined_cpp_op): Do not construct
373 an array of types; pass the value array directly to
374 find_overload_match.
375 * valops.c (find_overload_method_list): Take an array of
376 values instead of types.
377 Save the type of OBJP for later use.
378 Update calls to find_oload_champ, and find_oload_champ_namespace.
379 (find_oload_champ_namespace): Take an array of values instead
380 of types.
381 (find_oload_champ_namespace_loop): Likewise.
382 (find_oload_champ): Likewise.
383 (classify_oload_match): Inspect all arguments
384 until INCOMPATIBLE is found. Return the worst badness found
385 otherwise.
386 (compare_parameters): Update call to rank_one_type.
387 * value.h (find_overload_match): Take an array of values instead
388 of types.
389
3957565a
JK
3902011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 Drop lazy lm_info reading.
393 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
394 l_addr_inferior, l_ld, l_next, l_prev and l_name.
395 (lm_info_read): New function.
396 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
397 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
398 lm_dynamic_from_link_map.
399 (lm_next, lm_prev, lm_name): Remove.
400 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
401 initialization incl. read_memory. No longer use lm_name.
402 (svr4_free_so): Drop lm_info->lm freeing.
403 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
404 explicit lm_addr and lm initialization.
405 (svr4_read_so_list): Use lm_info_read, drop the initailization of
406 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
407 lm_name.
408
cb08cc53
JK
4092011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
410 Paul Pluzhnikov <ppluzhnikov@google.com>
411
412 * defs.h (struct so_list): New forward declaration.
413 (make_cleanup_free_so): New declaration.
414 * solib-svr4.c (ignore_first_link_map_entry): Remove.
415 (svr4_free_so): Move the function here from downwards. Handle NULL
416 so->lm_info.
417 (svr4_free_library_list): New.
418 (svr4_read_so_list): New, moved here code from svr4_current_sos.
419 Use more cleanups. Use new parameter ignore_first instead of
420 ignore_first_link_map_entry.
421 (svr4_current_sos): New variable ignore_first, initialize it. New
422 variable back_to, use it for svr4_free_library_list protection.
423 (svr4_free_so): Remove - move upwards.
424 * utils.c: Include solist.h.
425 (do_free_so, make_cleanup_free_so): New functions.
426
22c05d8a
JK
4272011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 Fix internal error regression.
430 * value.c (value_primitive_field): Handle value_optimized_out. Move
431 packed bitfields comment.
432
d930d06e
TT
4332011-10-13 Tom Tromey <tromey@redhat.com>
434
435 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
436 always released.
437
2ff6b080
TT
4382011-10-13 Tom Tromey <tromey@redhat.com>
439
440 * python/py-type.c (typy_has_key): Make 'field' const.
441
d6c5869f
LM
4422011-10-13 Luis Machado <lgustavo@codesourcery.com>
443
444 * remote.c (remote_save_trace_data): Invert comparison.
445
a70633a2
LM
4462011-10-13 Luis Machado <lgustavo@codesourcery.com>
447
448 * tracepoint.c (trace_save_command): Use filename instead of
449 args when printing.
450
e103e986
JK
4512011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
452
453 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
454 if .size is 0.
455
db24da6d
YQ
4562011-10-13 Yao Qi <yao@codesourcery.com>
457
458 PR gdb/12703
459 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
460 whether insn is a 32-bit Thumb-2 instruction.
461 (thumb_in_function_epilogue_p): Likewise.
462 (thumb_get_next_pc_raw): Likewise.
463 (arm_breakpoint_from_pc): Likewise.
464
1d6edc3c
JK
4652011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
466
467 Fix empty DWARF expressions DATA vs. SIZE conditionals.
468 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
469 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
470 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
471 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
472 zero DATA.
473 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
474 validity.
475 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
476 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
477 clear DATA on zero SIZE.
478
adabb602
DE
4792011-10-12 Doug Evans <dje@google.com>
480
481 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
482 header->first_die_offset here. All callers updated.
483
5048e516
JK
4842011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
485
486 Fix compatibility with texinfo versions older than 4.12.
487 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
488 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
489 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
490 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
491 * configure: Regenerate.
492 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
493 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
494 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
495
0574c78f
GB
4962011-10-12 Gary Benson <gbenson@redhat.com>
497
498 * breakpoint.h (pc_at_non_inline_function): Declare.
499 * breakpoint.c (is_non_inline_function,
500 pc_at_non_inline_function): New functions.
501 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
502 if the stop is at a location where functions cannot be inlined.
503
12d9289a
PA
5042011-10-12 Pedro Alves <pedro@codesourcery.com>
505
506 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
507 the core wanted them stopped, or if they now have a pending event
508 to report.
ecf8e7f5
PA
509 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
510 down to stop_and_resume_callback.
511 (linux_nat_wait_1): Always clear `options' when retrying. Handle
512 having new pending events after calling linux_nat_filter_event.
12d9289a 513
96408a79
SA
5142011-10-11 Sterling Augustine <saugustine@google.com>
515
516 * dwarf2read.c: Undo inadvertent changes in previous commit.
517
9c6c53f7
SA
5182011-10-11 Sterling Augustine <saugustine@google.com>
519
520 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
521 logic.
522
0e8aefe7
UW
5232011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
524
525 * symfile.c (separate_debug_file_exists): Fix condition.
526
349d1385
DM
5272011-10-11 David S. Miller <davem@davemloft.net>
528
529 * regcache.c (regcache_restore): Do not write unavailable regs, mark
530 static.
531 * regcache.h (regcache_restore): Remove declaration.
532
205c306f
DM
533 * gdbarch.sh: New field 'long_long_align_bit'.
534 * gdbarch.c, gdbarch.h: Regenerate.
535 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
536 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
537
941b2081
JK
5382011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
539
540 Revert this part of:
541 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
542 Support @entry in input expressions.
543 * c-exp.y (ENTRY, unknown_cpp_name): New.
544 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
545 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
546 (variable: name_not_typename '@' ENTRY, name: ENTRY)
547 (name_not_typename: ENTRY): New.
548 (yylex): Recognize ENTRY.
549
550 Reimplement @entry in input expressions.
551 * c-exp.y (ENTRY): New.
552 (variable: name_not_typename ENTRY): New.
553 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
554
3c4d7e12
PA
5552011-10-11 Pedro Alves <pedro@codesourcery.com>
556
557 * linux-nat.c (linux_handle_extended_wait): Always dump both the
558 parent and child's pids as soon as we detect a clone event.
559 Adjust another debug message.
560
ea23808b
PA
5612011-10-11 Pedro Alves <pedro@codesourcery.com>
562
563 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
564 not zombie instead of reading the whole file.
565
904578ed
JK
5662011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
567
568 Fix separate debuginfo warning with "remote:" access.
569 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
570 * symfile.c (get_file_crc): New function with the code moved from ...
571 (separate_debug_file_exists): ... this function, specifically variables
572 buffer and count. New variable verified_as_different, set it. Remove
573 file_crc initialization. Verify also if both files are not the same
574 manually, if needed.
575
51370a33
YQ
5762011-10-11 Yao Qi <yao@codesourcery.com>
577
578 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
579 to get address.
580
0838fb57
DE
5812011-10-10 Doug Evans <dje@google.com>
582
583 * linux-thread-db.c (thread_db_new_objfile): Only try to load
584 libthread_db when we load libpthread or the main symbol file.
585 (thread_db_inferior_created): New function.
586 (_initialize_thread_db): Attach inferior_created observer.
587 * linux-nat.c (linux_child_post_attach): Remove call to
588 check_for_thread_db.
589 (linux_child_post_startup_inferior): Ditto.
590 * objfiles.h (OBJF_MAINLINE): Define.
591 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
592 allocate_objfile when appropriate.
593
623bd5b7
UW
5942011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
595
596 PR gdb/13218
597 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
598 Remove unused variables.
599 (get_linux_version): Remove function.
600 (_initialize_arm_linux_nat): Do not call it.
601
79395f92
PA
6022011-10-10 Pedro Alves <pedro@codesourcery.com>
603
604 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
605 new clone lwp if the core asked it to stop. Don't pass on
606 unexpected signals to the new clone; leave them pending instead.
607
eff3df78
PA
6082011-10-10 Pedro Alves <pedro@codesourcery.com>
609
610 * linux-nat.c (resume_lwp): Remove redundant debug output.
611
4b60df3d
PA
6122011-10-10 Pedro Alves <pedro@codesourcery.com>
613
614 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
615 last_resume_kind before clearing it, and use the copy instead to
616 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
617 resume_clear_callback in the non-stop path too.
618
6501578c
YQ
6192011-10-09 Yao Qi <yao@codesourcery.com>
620
621 * valprint.c (value_check_printable): Add one parameter OPTIONS.
622 Honor OPTIONS and VAL's type.
623 (common_val_print, value_print): Update to pass one more parameter.
624
5a56e9c5
DE
6252011-10-09 Doug Evans <dje@google.com>
626
627 Add new "alias" command.
628 * NEWS: Mention new command.
629 * command.h (valid_user_defined_cmd_name_p): Declare.
630 * defs.h (make_cleanup_dyn_string_delete): Declare.
631 * utils.c: #include "dyn-string.h".
632 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
633 * cli/cli-cmds.c: #include "dyn-string.h".
634 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
635 (init_cli_cmds): Add new command.
636 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
637
509f0fd9
JK
6382011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 Fix compatibility with older GCCs.
641 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
642 * stack.c (read_frame_arg): Initialize val_deref.
643
2bda9cc5
JK
6442011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
645
646 Entry values NEWS entries, DWARF disassembly support.
647 * NEWS: New entry values entry.
648 (set print entry-values, show print entry-values)
649 (set debug entry-values, show debug entry-values): New entries.
650 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
651 indent. Remove variable start. Move header printing out. Respect
652 INDENT. Support DW_OP_GNU_entry_value.
653 (locexpr_describe_location_1): Move the header printing here, extend
654 the disassemble_dwarf_expression passed parameters.
655
a471c594
JK
6562011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
657
658 Display @entry parameter values even for references.
659 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
660 coerce_ref_if_computed.
661 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
662 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
663 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
664 existing push_dwarf_reg_entry_value call. Add new detection calling
665 dwarf_block_to_dwarf_reg_deref. Update the error message.
666 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
667 * dwarf2expr.h
668 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
669 parameter deref_size, describe it in the comment.
670 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
671 (dwarf_block_to_dwarf_reg_deref): New declaration.
672 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
673 deref_size, describe it in the function comment. New variables
674 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
675 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
676 describe it in the function comment. Fetch the alternative block
677 accoring to DEREF_SIZE.
678 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
679 (entry_data_value_free_closure, entry_data_value_funcs): New.
680 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
681 outer_val, target_val, val and addr. Try to fetch and create also
682 referenced value content.
683 (pieced_value_funcs): NULL value for coerce_ref.
684 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
685 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
686 coerce_ref_if_computed.
687 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
688 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
689 * stack.c (read_frame_arg): Compare also dereferenced values.
690 * value.c (value_computed_funcs): Make the parameter v const, use
691 value_lval_const for it.
692 (value_lval_const, coerce_ref_if_computed): New function.
693 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
694 * value.h (struct lval_funcs): New field coerce_ref.
695 (value_computed_funcs): Make the parameter v const.
696 (value_lval_const, coerce_ref_if_computed): New declarations.
697
36b11add
JK
6982011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
699
700 Support @entry in input expressions.
701 * c-exp.y (ENTRY, unknown_cpp_name): New.
702 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
703 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
704 (variable: name_not_typename '@' ENTRY, name: ENTRY)
705 (name_not_typename: ENTRY): New.
706 (yylex): Recognize ENTRY.
707 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
708 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
709 Likewise.
710 * parse.c (operator_length_standard): Likewise.
711 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
712
3343315b
JK
7132011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
714
715 Display referenced values in backtraces.
716 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
717 * stack.c (print_frame_arg): Likewise.
718
ac71a68c
JK
7192011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
720
721 Make some lval_funcs methods to default on NULL.
722 * valops.c (value_fetch_lazy): Check if lval_computed read method is
723 NULL.
724 (value_assign): Check if lval_computed write method is NULL.
725 * value.h (struct lval_funcs): Comment NULL values for read and write
726 methods.
727
e18b2753
JK
7282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
729
730 Display @entry parameter values (without references).
731 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
732 New functions.
733 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
734 New declarations.
735 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
736 entry record.
737 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
738 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
739 functions.
740 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
741 (loclist_read_variable_at_entry): New function.
742 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
743 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
744 DW_AT_location, call dwarf_block_to_sp_offset for it.
745 * frame.h (print_entry_values_no, print_entry_values_only)
746 (print_entry_values_preferred, print_entry_values_if_needed)
747 (print_entry_values_both, print_entry_values_compact)
748 (print_entry_values_default, print_entry_values): New declarations.
749 (struct frame_arg): New field entry_kind.
750 (read_frame_arg): New parameter entryargp.
751 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
752 arg->entry_kind. Optionally print the `@entry' suffix.
753 (list_args_or_locals): New variable entryarg, initialize it.
754 Initialize also entry_kind of arg and entryarg. Conditionalize
755 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
756 xfree for entryarg.error.
757 * stack.c (print_entry_values_no, print_entry_values_only)
758 (print_entry_values_preferred, print_entry_values_if_needed)
759 (print_entry_values_both, print_entry_values_compact)
760 (print_entry_values_default, print_entry_values_choices)
761 (print_entry_values): New variables.
762 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
763 print the `@entry' suffix, possibly in combination for
764 print_entry_values_compact.
765 (read_frame_arg): New parameter entryargp, new variables entryval,
766 entryval_error and val_equal. Read in also entryargp, respect
767 print_entry_values, compare the values using val_equal, fill in also
768 argp->entry_kind (together with entryargp->entry_kind).
769 (print_frame_args): New variable entryarg, initialize it.
770 Conditionalize print_frame_arg for arg, add print_frame_arg for
771 entryarg. Call xfree for entryarg.error.
772 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
773 * symtab.h (struct symbol_computed_ops): New field
774 read_variable_at_entry.
775
93d86cef
JK
7762011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 Code reshuffle.
779 * frame.h (struct frame_arg): New definition.
780 (read_frame_arg): New declaration.
781 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
782 (list_args_or_locals): ... the code here. New variable arg, call
783 read_frame_arg and list_arg_or_local with it. Unify the
784 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
785 arg.error.
786 * stack.c (print_frame_arg): New functiom from the code of
787 print_frame_args.
788 (read_frame_arg): New function.
789 (print_frame_args): Remove variable val. New variable arg, call
790 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
791
2d6c5dc2
JK
7922011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
793
794 Protect entry values against self tail calls.
795 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
796 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
797
111c6489
JK
7982011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
799
800 Recognize virtual tail call frames.
801 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
802 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
803 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
804 * dwarf2-frame-tailcall.c: New file.
805 * dwarf2-frame-tailcall.h: New file.
806 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
807 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
808 REGS.PREV only after CIE execution.
809 (struct dwarf2_frame_cache): New field tailcall_cache.
810 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
811 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
812 parts, try to find entry_cfa_sp_offset. Call
813 dwarf2_tailcall_sniffer_first.
814 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
815 when appropriate.
816 (dwarf2_frame_dealloc_cache): New function.
817 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
818 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
819 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
820 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
821 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
822 * dwarf2loc.c (func_addr_to_tail_call_list)
823 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
824 (call_site_find_chain_1, call_site_find_chain): New.
825 * dwarf2loc.h (struct call_site_chain): New.
826 (call_site_find_chain): New declaration.
827 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
828 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
829 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
830 * stack.c (frame_info): Support also TAILCALL_FRAME.
831
bb984ff1
JK
8322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 Tail call sites reader implementation.
835 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
836 fill in TYPE_TAIL_CALL_LIST.
837 * gdbtypes.h (struct func_type): New field tail_call_list.
838 (struct call_site): New field tail_call_next.
839 (TYPE_TAIL_CALL_LIST): New definition.
840
8e3b41a9
JK
8412011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 Implement basic support for DW_TAG_GNU_call_site.
844 * block.c: Include gdbtypes.h and exceptions.h.
845 (call_site_for_pc): New function.
846 * block.h (call_site_for_pc): New declaration.
847 * defs.h: Include hashtab.h.
848 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
849 declarations.
850 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
851 ctx_no_push_dwarf_reg_entry_value.
852 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
853 (dwarf_block_to_dwarf_reg): New function.
854 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
855 (ctx_no_push_dwarf_reg_entry_value): New function.
856 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
857 push_dwarf_reg_entry_value.
858 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
859 declarations.
860 * dwarf2loc.c: Include gdbcmd.h.
861 (dwarf_expr_ctx_funcs): New forward declaration.
862 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
863 (dwarf_expr_reg_to_entry_parameter)
864 (dwarf_expr_push_dwarf_reg_entry_value): New.
865 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
866 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
867 (needs_dwarf_reg_entry_value): New function.
868 (needs_frame_ctx_funcs): Install it.
869 (_initialize_dwarf2loc): New function.
870 * dwarf2loc.h (entry_values_debug): New declaration.
871 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
872 (read_call_site_scope): New forward declaration.
873 (process_full_comp_unit): Copy call_site_htab.
874 (process_die): Support DW_TAG_GNU_call_site.
875 (read_call_site_scope): New function.
876 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
877 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
878 (cleanup_htab): Delete.
879 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
880 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
881 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
882 FIELD_LOC_KIND_DWARF_BLOCK.
883 * gdbtypes.h (enum field_loc_kind): New entry
884 FIELD_LOC_KIND_DWARF_BLOCK.
885 (struct main_type): New loc entry dwarf_block.
886 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
887 (TYPE_FIELD_DWARF_BLOCK): New.
888 * python/py-type.c: Include dwarf2loc.h.
889 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
890 internal_error call on unknown FIELD_LOC_KIND.
891 * symtab.h (struct symtab): New field call_site_htab.
892 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
893 (core_addr_hash, core_addr_eq): New functions.
894
b6cdc2c1
JK
8952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
896
897 Code reshuffle.
898 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
899 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
900 calling_convention under func_stuff there.
901 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
902 (init_type) <TYPE_CODE_FUNC>: Likewise.
903 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
904 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
905 * gdbtypes.h (enum type_specific_kind): Change
906 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
907 (struct main_type) <type_specific>: Change calling_convention to
908 func_stuff. Move calling_convention to ...
909 (struct func_type): ... this new struct.
910 (INIT_FUNC_SPECIFIC): New #define.
911 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
912
181cebd4
JK
9132011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
914
915 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
916 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
917 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
918 ctx->ref_addr_size. Handle its invalid value.
919 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
920 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
921 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
922 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
923 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
924 (dwarf2_per_cu_ref_addr_size): New function.
925
c471e790
JK
9262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
927
928 Code cleanup.
929 * dwarf2read.c (per_cu_header_read_in): New function.
930 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
931 variables cu_header_local and cu_headerp.
932
741f5e3c
JK
9332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
934
935 Fix initial language detection with -readnow.
936 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
937 * symfile.h (struct quick_symbol_functions): State find_symbol_file
938 searches only for global symbols.
939
a73d2258
JK
9402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
941
942 Fix printed anonymous struct name.
943 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
944 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
945 (anonymous_struct_prefix): New function.
946 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
947 (dwarf2_name): Strip for anonymous structs any prefixes.
948
749fd4ea
DE
9492011-10-07 Doug Evans <dje@google.com>
950
1fa57852
DE
951 * python/lib/gdb/printing.py (register_pretty_printer): New argument
952 `replace'.
953
690a4937
DE
954 * python/lib/gdb/printing.py: Whitespace cleanup.
955
749fd4ea
DE
956 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
957 warning.
958
4c38200f
PA
9592011-10-07 Pedro Alves <pedro@codesourcery.com>
960
961 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
962 * amd64-linux-nat.c (amd64_linux_dr_set_control)
963 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
964 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
965 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
966 (arm_linux_remove_watchpoint): Adjust.
967 * i386-linux-nat.c (i386_linux_dr_set_control)
968 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
969 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
970 (ia64_linux_remove_watchpoint): Adjust.
971 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
972 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
973 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
974 (ppc_linux_insert_mask_watchpoint)
975 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
976 (ppc_linux_remove_watchpoint): Adjust.
977 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
978 Adjust.
979
b7ff339d
CV
9802011-10-07 Corinna Vinschen <vinschen@redhat.com>
981
982 * windows-nat.c: Include wchar.h to avoid compiler warnings.
983 (clear_win32_environment): New function for Cygwin to clear out
984 Win32 environment.
985 (windows_create_inferior): Prepare new environment from in_env
986 for Cygwin, too.
987
f287c1f3
PM
9882011-10-07 Phil Muldoon <pmuldoon@redhat.com>
989
5631e596 990 PR python/13264
f287c1f3
PM
991 * python/py-value.c (valpy_call): Check that arguments are
992 a tuple.
993 (is_intlike): Remove call to CHECK_TYPEDEF.
994 (valpy_nonzero): Catch GDB exceptions.
995 (valpy_absolute): Ditto.
996 (valpy_lazy_string): Ditto.
997 (valpy_call): Ditto.
998 (valpy_get_is_optimized_out): Ditto.
999 (valpy_long): Ditto.
1000 (valpy_float): Ditto.
1001 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1002 (valpy_richcompare): Ditto.
1003
03583c20
UW
10042011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1005
1006 * inferior.h (disable_randomization): Declare.
1007 * infrun.c (disable_randomization): New global variable.
1008 (show_disable_randomization): New function.
1009 (set_disable_randomization): Likewise.
1010 (_initialize_infrun): Install set/show disable-randomization
1011 commands.
1012 * linux-nat.c (disable_randomization): Remove.
1013 (show_disable_randomization): Likewise.
1014 (set_disable_randomization): Likewise.
1015 (_initialize_linux_nat): No longer install set/show
1016 disable-randomization commands here.
1017 (linux_nat_supports_disable_randomization): New function.
1018 (linux_nat_add_target): Install it.
1019 * remote.c (PACKET_QDisableRandomization): New enum value.
1020 (remote_protocol_packets): Support QDisableRandomization.
1021 (_initialize_remote): Likewise.
1022 (remote_supports_disable_randomization): New function.
1023 (init_remote_ops): Install it.
1024 (extended_remote_supports_disable_randomization): New function.
1025 (init_extended_remote_ops): Install it.
1026 (extended_remote_disable_randomization): New function.
1027 (extended_remote_create_inferior_1): Call it.
1028 * target.h (struct target_ops): Add to_supports_disable_randomization.
1029 (target_supports_disable_randomization): Add prototype.
1030 * target.c (target_supports_disable_randomization): New function.
1031 (find_default_supports_disable_randomization): Likewise.
1032 (init_dummy_target): Install it.
1033
20c168b5
KP
10342011-10-07 Kevin Pouget <kevin.pouget@st.com>
1035
1036 Allow Python notification of new object-file loadings.
1037 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1038 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1039 Add build rule for this file.
1040 * python/py-event.h (emit_new_objfile_event): New prototype.
1041 (newobjfile): New Python event emitter.
1042 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1043 Python event registry.
1044 * python/py-inferior.c: Include objfiles.h
1045 (python_new_objfile): New function.
1046 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1047 observers.
1048 * python/py-newobjfileevent.c: New file.
1049 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1050 prototype.
1051 * python/python.c (_initialize_python): Add
1052 gdbpy_initialize_new_objfile_event call.
1053 * NEWS: Add item for new Python event "gdb.newobjfile"
1054
b1c8db38
TG
10552011-10-05 Tristan Gingold <gingold@adacore.com>
1056
1057 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1058 Extract the ravenscar task name from the symbol for the atcb.
1059
0dab82e9
PK
10602011-10-04 Paul Koning <paul_koning@dell.com>
1061
1062 * python/py-type.c (typy_make_iter): Add forward declaration.
1063 (typy_fields_items): Use the gdb.Type iterator.
1064
84ad80e6
PK
10652011-10-04 Paul Koning <paul_koning@dell.com>
1066
1067 * NEWS: Add entry for Python gdb.Type mapping methods.
1068
cb6be26b
KP
10692011-10-04 Kevin Pouget <kevin.pouget@st.com>
1070
1071 PR python/12691: Add the inferior to Python exited event
1072 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1073 to exited_event.
1074 * python/py-event.h (emit_exited_event): Likewise
1075 * python/-inferior.c (python_inferior_exit): Likewise
1076
6005b210
JB
10772011-10-03 Joel Brobecker <brobecker@adacore.com>
1078
1079 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1080 in output of -ada-task-info GDB/MI command.
1081
75082e8c
JB
10822011-10-03 Joel Brobecker <brobecker@adacore.com>
1083
1084 * ada-lang.h (struct inferior): Declare.
1085 (print_ada_task_info): Add declaration.
1086 * ada-tasks.c (print_ada_task_info): Make non-static.
1087 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1088 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1089 * mi/mi-main.c: #include "ada-lang.h".
1090 (mi_cmd_list_features): Add "ada-task-info" to the list
1091 of supported features.
1092 (mi_cmd_ada_task_info): New function.
1093
7ed7d719
JB
10942011-10-03 Joel Brobecker <brobecker@adacore.com>
1095
1096 * python/python.c (python_run_simple_file): New function.
1097 (source_python_script, source_python_script_for_objfile):
1098 Replace call to PyRun_SimpleFile by call to
1099 python_run_simple_file.
1100
3fcaed38
PK
11012011-10-03 Paul Koning <paul_koning@dell.com>
1102
1103 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1104 (value_to_value_object): Fetch value if it was lazy.
1105
8e5c319d
JK
11062011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 Code cleanup.
1109 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1110 Rearrange the code for it.
1111
dd11a36c
JB
11122011-10-02 Joel Brobecker <brobecker@adacore.com>
1113
1114 * breakpoint.c (bkpt_print_recreate): Add call to
1115 print_recreate_thread.
1116
723b724b
MF
11172011-09-29 Mike Frysinger <vapier@gentoo.org>
1118
1119 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1120 PTRACE_GETFDPIC_INTERP): Define.
1121
412946b6
YQ
11222011-09-28 Yao Qi <yao@codesourcery.com>
1123
1124 * symfile.c (add_symbol_file_command): Update message on usage.
1125
a73bb892
PK
11262011-09-28 Paul Koning <paul_koning@dell.com>
1127
1128 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1129 (typy_length, typy_get, typy_has_key, typy_make_iter)
1130 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1131 (typy_iterator_iter, typy_iterator_iternext)
1132 (typy_iterator_dealloc): New functions to implement standard
1133 Python mapping methods on gdb.Type object.
1134 (gdb.TypeIterator): New Python type.
1135 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1136
fe10a582
DM
11372011-09-28 David S. Miller <davem@davemloft.net>
1138
1139 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1140 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1141 * sparc-tdep.c (sparc_complex_floating_p): New function.
1142 (sparc32_store_arguments): Handle complex floats.
1143 (sparc32_extract_return_value): Likewise.
1144 (sparc32_store_return_value): Likewise.
1145 (sparc32_stabs_argument_has_addr): Likewise.
1146 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1147 (sparc64_store_floating_fields): Handle complex floats.
1148 (sparc64_store_arguments): Likewise.
1149 (sparc64_store_return_value): Likewise.
1150
c93dbcba
EZ
11512011-09-28 Eli Zaretskii <eliz@gnu.org>
1152
1153 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1154 before the change on 2006-12-09.
1155 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1156 generates the environment block for CreateProcessA, modulo the
1157 Cygwin-specific parts that are not needed here.
1158
f00c55f8
TG
11592011-09-27 Tristan Gingold <gingold@adacore.com>
1160
1161 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1162 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1163 (darwin_solib_get_all_image_info_addr_at_init): New function.
1164 (darwin_solib_read_all_image_info_addr): Likewise.
1165 (darwin_solib_create_inferior_hook): Use the above two functions.
1166 * darwin-nat.c (darwin_execvp): Renames retval to res.
1167 (darwin_read_write_inferior): Update comment.
1168 (darwin_read_dyld_info): New function.
1169 (darwin_xfer_partial): Handle DYLD_INFO.
1170
6710bf39
SS
11712011-09-27 Stan Shebs <stan@codesourcery.com>
1172
1173 Add return address collection for tracepoints.
1174 * tracepoint.c (encode_actions_1): Add case for $_ret.
1175 (validate_actionline): Check for $_ret.
1176 (trace_dump_actions): Ditto.
1177 * ax-gdb.h (gen_trace_for_return_address): Declare.
1178 * ax-gdb.c: Include arch-utils.h.
1179 (gen_trace_for_return_address): New function.
1180 (agent_command): Add return address special case.
1181 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1182 (amd64_gen_return_address): New function.
1183 (amd64_init_abi): Call it.
1184 * i386-tdep.c: Include ax.h and ax-gdb.h.
1185 (i386_gen_return_address): New function.
1186 (i386_init_abi): Call it.
1187 * arch-utils.h (default_gen_return_address): Declare.
1188 * arch-utils.c (default_gen_return_address): New function.
1189 * gdbarch.sh (gen_return_address): New method.
1190 * gdbarch.h, gdbarch.c: Regenerate.
1191
e04e5beb
JM
11922011-09-23 Joseph Myers <joseph@codesourcery.com>
1193
1194 PR gdb/13079
1195 * i386-tdep.c (i386_frame_align): New.
1196 (i386_gdbarch_init): Use i386_frame_align.
1197
f3d6df6d
YQ
11982011-09-23 Yao Qi <yao@codesourcery.com>
1199
1200 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1201 to get address.
1202
e69860f1
TG
12032011-09-22 Tristan Gingold <gingold@adacore.com>
1204
1205 * fork-child.c (fork_inferior): Add exec_fun parameter.
1206 Call exec_fun or execvp.
1207 * inferior.h: Adjust prototype.
1208 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1209 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1210 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1211 * procfs.c (procfs_create_inferior): Ditto.
1212 * darwin-nat.c (darwin_execvp): New function.
1213 (darwin_create_inferior): Use it.
1214
4b51d87b
YQ
12152011-09-22 Yao Qi <yao@codesourcery.com>
1216
1217 * infrun.c (context_switch): Print debug message when switching to
1218 a different thread.
1219
56b9d9ac
UW
12202011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1221
1222 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1223 complex and vector types.
1224 (s390_return_value_convention): Likewise.
1225
1226 (s390_value_from_register): Call check_typedef.
1227 (extend_simple_arg): Likewise.
1228 (alignment_of): Likewise.
1229 (s390_push_dummy_call): Likewise.
1230 (s390_return_value): Likewise.
1231
b2cd6b29
JM
12322011-09-21 Joseph Myers <joseph@codesourcery.com>
1233
1234 * event-top.c (async_disconnect): If an exception is thrown from
1235 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1236 catch_errors.
1237 * top.c (quit_cover): Return void and take no arguments.
1238 * top.h (quit_cover): Update prototype.
1239
67ba4e42
JM
12402011-09-20 Joseph Myers <joseph@codesourcery.com>
1241
1242 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1243 current_uiout, not uiout.
1244
562f943b
DE
12452011-09-19 Doug Evans <dje@google.com>
1246
1247 * python/py-auto-load.c (source_section_scripts): Fix file
1248 descriptor leak.
1249 * python/python.c (source_python_script_for_objfile): Tweak comments.
1250
34518530
YQ
12512011-09-18 Yao Qi <yao@codesourcery.com>
1252 Ulrich Weigand <ulrich.weigand@linaro.org>
1253
1254 Support displaced stepping for Thumb 16-bit insns.
1255 * arm-tdep.c (THUMB_NOP) Define.
1256 (thumb_copy_unmodified_16bit): New.
1257 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1258 (thumb_copy_alu_reg): New.
1259 (arm_copy_svc): Move some common code to ...
1260 (install_svc): ... here. New.
1261 (thumb_copy_svc): New.
1262 (install_pc_relative): New.
1263 (thumb_copy_pc_relative_16bit): New.
1264 (thumb_decode_pc_relative_16bit): New.
1265 (thumb_copy_16bit_ldr_literal): New.
1266 (thumb_copy_cbnz_cbz): New.
1267 (cleanup_pop_pc_16bit_all): New.
1268 (thumb_copy_pop_pc_16bit): New.
1269 (thumb_process_displaced_16bit_insn): New.
1270 (thumb_process_displaced_32bit_insn): New.
1271 (thumb_process_displaced_insn): process thumb instruction.
1272
1273 Support displaced stepping for Thumb 32-bit insns.
1274 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1275 (thumb2_copy_preload): New.
1276 (thumb2_copy_copro_load_store): New.
1277 (thumb2_copy_b_bl_blx): New.
1278 (thumb2_copy_alu_imm): New.
1279 (thumb2_copy_load_reg_imm): New.
1280 (thumb2_copy_load_literal): New
1281 (thumb2_copy_block_xfer): New.
1282 (thumb_32bit_copy_undef): New.
1283 (thumb_32bit_copy_unpred): New.
1284 (thumb2_decode_ext_reg_ld_st): New.
1285 (thumb2_decode_svc_copro): New.
1286 (decode_thumb_32bit_store_single_data_item): New.
1287 (thumb_copy_pc_relative_32bit): New.
1288 (thumb_decode_pc_relative_32bit): New.
1289 (decode_thumb_32bit_ld_mem_hints): New.
1290 (thumb2_copy_table_branch): New
1291 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1292 instructions.
1293
2b16b2e3
YQ
12942011-09-18 Yao Qi <yao@codesourcery.com>
1295
1296 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1297 (install_b_bl_blx): Likewise.
1298
0f6f04ba
YQ
12992011-09-17 Yao Qi <yao@codesourcery.com>
1300
1301 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1302 (install_load_store): ... this. New.
1303 Change parameter BYTE to SIZE.
1304 (arm_copy_ldr_str_ldrb_strb): Update caller.
1305 (arm_decode_ld_st_word_ubyte): Update caller.
1306
e2d96639
YQ
13072011-09-17 Yao Qi <yao@codesourcery.com>
1308
1309 * infrun.c (displaced_step_fixup): Move some code ...
1310 (displaced_step_restore): ... here. New function.
1311 (handle_inferior_event): Cleanup displaced stepping state for both
1312 child and parent when get forked or vforked event.
1313 * regcache.c (get_thread_arch_aspace_regcache): New function.
1314 get_thread_arch_regcache (): Call it.
1315
a8123151
JB
13162011-09-16 Joel Brobecker <brobecker@adacore.com>
1317
1318 * ada-tasks.c (print_ada_task_info): New function, merging
1319 short_task_info and info_tasks together. Reimplement using
1320 ui-out instead of printing to stdout directly. Move the code
1321 building and checking the task list here, instead of leaving it
1322 in info_tasks_command.
1323 (info_task): Move the code building and checking the task
1324 list here, instead of leaving it in info_tasks_command.
1325 (info_tasks_command): Delete code building and checking
1326 the task list - moved elsewhere. Update calls to info_tasks
1327 and info_task.
1328
fbf06824
JB
13292011-09-16 Joel Brobecker <brobecker@adacore.com>
1330
1331 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1332
34a0bc90
JB
13332011-09-16 Joel Brobecker <brobecker@adacore.com>
1334
1335 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1336
79779fa9
JB
13372011-09-16 Joel Brobecker <brobecker@adacore.com>
1338
1339 * ada-lang.h (ada_build_task_list): Remove parameter
1340 `warn_if_null'.
1341 * ada-tasks.c (ada_build_task_list): Remove parameter
1342 `warn_if_null'. Adjust implementation and documentation.
1343 (valid_task_id, ada_get_environment_task)
1344 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1345 (info_tasks_command): Adjust implementation.
1346 (task_command): Likewise.
1347 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1348 to ada_build_task_list.
1349
e225eb91
JB
13502011-09-16 Joel Brobecker <brobecker@adacore.com>
1351
1352 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1353 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1354 (ada_tasks_inferior_data_handle): New static global.
1355 (get_ada_tasks_inferior_data): New function.
1356 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1357 (ada_get_environment_task, iterate_over_live_ada_tasks)
1358 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1359 Adjust.
1360 (ada_set_current_inferior_known_tasks_addr): New function.
1361 (read_known_tasks, ada_build_task_list, short_task_info)
1362 (info_tasks, info_task, info_tasks_command, task_command_1)
1363 (task_command, ada_task_list_changed): Adjust.
1364 (ada_tasks_invalidate_inferior_data): New function.
1365 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1366 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1367 * ada-lang.h (struct inferior): Add declaration.
1368 (ada_task_list_changed): Update profile.
1369 * remote-wtx-pd.c: #include "inferior.h".
1370 (switch_to_pd_internal): Update call to ada_task_list_changed.
1371
6da9ca05
JB
13722011-09-16 Joel Brobecker <brobecker@adacore.com>
1373
1374 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1375 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1376 (atcb_fieldno): Delete these static globals.
1377 (struct ada_tasks_pspace_data): New struct.
1378 (ada_tasks_pspace_data_handle): New static global.
1379 (get_ada_tasks_pspace_data): New function.
1380 (ada_tasks_invalidate_pspace_data): New function.
1381 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1382 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1383 (_initialize_tasks): Create this module's per-progspace
1384 data handle.
1385
dccd3cbd
JB
13862011-09-16 Joel Brobecker <brobecker@adacore.com>
1387
1388 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1389
f877b031
TG
13902011-09-16 Tristan Gingold <gingold@adacore.com>
1391
1392 * fork-child.c (fork_inferior): Update comment. Use alloca
1393 instead of xmalloc for argv. Move len and shell_command
1394 declarations in the block where they are used.
1395 Only call execvp. Factorize failure code.
1396
ae0c443d
JK
13972011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1398
1399 Code cleanup.
1400 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1401 `exp_element' instead of an element of the same and make the function
1402 static.
1403 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1404 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1405 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1406 Change argument of `write_exp_elt' function call.
1407 Remove extra spaces from comments.
1408 * parser-defs.h (write_exp_elt): Remove prototype.
1409
5af65ec0
PK
14102011-09-15 Paul Koning <paul_koning@dell.com>
1411
1412 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1413 count of item appended to list.
1414 * python/py-type.c (typy_fields): Likewise.
1415
72be8ccc
PK
14162011-09-15 Paul Koning <paul_koning@dell.com>
1417
883640a8 1418 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1419
92f6badc
KP
14202011-09-15 Kevin Pouget <kevin.pouget@st.com>
1421
1422 PR threads/12628
1423 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1424 processes with multiple threads.
1425 (inf_has_multiple_thread_cb): New function.
1426 (inf_has_multiple_threads): New function.
1427
0672bf41 14282011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1429
1430 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1431 * python/py-inferior.c (GdbMethods): New Python method definition.
1432
6839b47f
KP
14332011-09-15 Kevin Pouget <kevin.pouget@st.com>
1434
1435 Handle multiple breakpoint hits in Python interface:
1436 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1437 variable to breakpoints.
1438 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1439 bps instead of single breakpoint. Fix some space typos.
1440 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1441 variable to breakpoints.
1442
672f9b60
KP
14432011-09-15 Kevin Pouget <kevin.pouget@st.com>
1444
1445 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1446 note if the breakpoint is internal.
1447
43675ae4
KP
14482011-09-15 Kevin Pouget <kevin.pouget@st.com>
1449
0672bf41 1450 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1451
15148d6a
PA
14522011-09-14 Pedro Alves <pedro@codesourcery.com>
1453
1454 * infrun.c (prepare_for_detach, wait_for_inferior)
1455 (fetch_inferior_event): Don't flush the register cache.
1456 * remote.c (struct stop_reply) <regcache>: Add comment.
1457
d83e736b
JK
14582011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1459
1460 Remove excessive DWARF expressions memory duplication.
1461 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1462 for block.data.
1463 (indirect_pieced_value): Remove variable result. Remove variable
1464 back_to and its use for baton.data.
1465 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1466 block.data.
1467 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1468 Update the function comment.
1469
c65b3e0d
PA
14702011-09-13 Pedro Alves <pedro@codesourcery.com>
1471
1472 * inferior.h (ALL_INFERIORS): New.
1473 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1474 for a stopped thread.
1475 (thread_db_find_new_threads): Look for threads in all inferiors.
1476
a1398e0c
PA
14772011-09-13 Pedro Alves <pedro@codesourcery.com>
1478
1479 * breakpoint.c (update_watchpoint): Handle the case of the
1480 watchpoint to update not being in the breakpoint list yet.
1481 (hw_watchpoint_use_count): New, factored out from
1482 hw_watchpoint_used_count.
1483 (hw_watchpoint_used_count): Rename to ...
1484 (hw_watchpoint_used_count_others): ... this. Add `except'
1485 parameter. Don't count resources of `except'. Use
1486 hw_watchpoint_use_count.
1487
30596231
PA
14882011-09-13 Pedro Alves <pedro@codesourcery.com>
1489
1490 * gdbthread.h (enum thread_state): Moved here.
1491 (struct thread_info): Rename `executing_' field to `executing' and
1492 `state_' to `state'.
1493 * thread.c (enum thread_state): Moved to gdbthread.h.
1494 (new_thread, add_thread_silent, delete_thread_1)
1495 (any_live_thread_of_process, thread_alive, set_running)
1496 (set_running, is_thread_state, any_running, is_executing)
1497 (set_executing, finish_thread_state, print_thread_info)
1498 (do_captured_thread_select): Adjust.
1499
bede5f5f
JK
15002011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1501
1502 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1503 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1504
4801a9a3
PA
15052011-09-12 Pedro Alves <pedro@codesourcery.com>
1506 Matt Rice <ratmice@gmail.com>
1507
1508 PR gdb/13175
1509
1510 * interps.c (struct interp) <interpreter_out>: Delete field.
1511 (interp_new): Remove the data and uiout parameters and adjust.
1512 (interp_set): Only set the current_uiout from the interpreter's
1513 uiout after initializing the interpreter. Adjust call to
1514 init_proc.
1515 (interp_ui_out): Adjust to call procs->ui_out_proc.
1516 (interp_data, interp_name): New.
1517 * interps.h (interp_init_ftype): Add `self' parameter.
1518 (interp_ui_out_ftype): New typedef.
1519 (struct interp_procs) <ui_out_proc>: New method pointer.
1520 (interp_new): Remove the data and uiout parameters.
1521 (interp_data, interp_name): Declare.
1522 * tui/tui-interp.c (tui_init): Adjust prototype.
1523 (tui_ui_out): New.
1524 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1525 tui_out here. Adjust call to interp_new.
1526 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1527 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1528 (cli_ui_out): New.
1529 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1530 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1531 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1532 Initialize mi->uiout depending on the mi_version as extracted from
1533 the interpreter's name.
1534 (mi_ui_out): New.
1535 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1536 interp_new. Don't allocate the ui_out's of the interpreters here.
1537
d0afda03 15382011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 1539
d0afda03 1540 * solib.c (solib_used): New function.
59145f8c
AR
1541 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1542 by another so_list object before freeing it.
1543
bdaf8d4a
JK
15442011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1545
1546 Code cleanup.
1547 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1548 values.
1549
df15bd07
JK
15502011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1551
1552 Code cleanup.
1553 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1554 (amd64_skip_xmm_prologue): ... this new function. Describe its
1555 parameters. No longer use amd64_prologue_line_bug.
1556 * defs.h (producer_is_gcc_ge_4): New declaration.
1557 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1558 (process_full_comp_unit): Update its caller. Remove
1559 amd64_prologue_line_bug initialization.
1560 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1561 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1562
25289eb2
PA
15632011-09-09 Pedro Alves <pedro@codesourcery.com>
1564
1565 * linux-nat.h (enum resume_kind): New.
1566 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
1567 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1568 resume_stop on the new lwp.
25289eb2
PA
1569 (add_lwp): Set last_resume_kind as resume_continue by default.
1570 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1571 (resume_lwp): New, factored out from resume_callback. Also check
1572 for pending status in lp->waitstatus.
1573 (resume_callback): Reimplement.
1574 (resume_clear_callback): Set last_resume_kind as resume_stop.
1575 (resume_set_callback): Set last_resume_kind as resume_continue.
1576 (linux_nat_resume, linux_handle_extended_wait): Set
1577 last_resume_kind.
1578 (running_callback): Also check lp->waitstatus for pending events.
1579 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1580 is resume_step.
1581 (stop_and_resume_callback): Don't re-resume if the core wanted the
1582 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1583 using an invalidated pointer.
1584 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1585 SIGSTOPs if the core wanted the LWP to stop.
1586 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1587 wanted the lwp to stop. If the core wanted the lwp to stop, and
1588 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1589 of TARGET_SIGNAL_STOP.
1590 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1591 here. Instead, signal the lwp, and set the last_resume_kind to
1592 resume_stop.
1593
f687d035
PA
15942011-09-09 Pedro Alves <pedro@codesourcery.com>
1595
1596 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1597 -1 (error), if the lwp exits right after attaching.
1598
bc587a6b
DE
15992011-09-08 Doug Evans <dje@google.com>
1600
63d97a20
DE
1601 * py-cmd.c: Some minor formatting fixes.
1602 (gdbpy_parse_command_name): Rename text arg to name, make const.
1603 All callers updated.
1604 * python-internal.h (gdbpy_parse_command_name): Update.
1605
bc587a6b
DE
1606 * cli/cli-decode.c (add_cmd): Add comment.
1607
08711b9a
JK
16082011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1609
1610 PR breakpoints/12435
1611 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1612 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1613 * dwarf2read.c (process_full_comp_unit): Initialize
1614 amd64_prologue_line_bug.
1615 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1616
b2e7f004
JK
16172011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1618
1619 Fix TUI screen corruption.
1620 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1621 batch_flag.
1622
8afd712c
JK
16232011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1624
1625 * findvar.c (read_var_value): Never return NULL, throw an error
1626 instead. Update the function comment. State symbol name in the error
1627 messages.
1628 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1629 read_var_value.
1630 * stack.c (print_frame_args): Likewise.
1631 * valops.c (value_of_variable): Likewise.
1632
b99b5f66
JK
16332011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 * stack.c (print_frame_args): New variable except. Wrap
1636 read_var_value and common_val_print into TRY_CATCH.
1637
85bc8cb7
JK
16382011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1639
1640 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1641 caller to value_of_this.
1642 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1643 Twice.
1644 * valops.c (value_of_this): Remove parameter complain and variable ret.
1645 Update function comment. Never return NULL by this code.
1646 (value_of_this_silent): New function.
1647 * value.h (value_of_this): Remove parameter complain.
1648 (value_of_this_silent): New declaration.
1649
ede1849f
YQ
16502011-09-07 Yao Qi <yao@codesourcery.com>
1651
1652 * gdbthread.h (struct thread_info): Remove fields
1653 `stepping_through_solib_after_catch' and
1654 `stepping_through_solib_catchpoints'.
1655 * infrun.c (init_thread_stepping_state): Update.
1656 (process_event_stop_test, currently_stepping): Update.
1657 (currently_stepping_or_nexting_callback): Update.
1658
6aa27652
YQ
16592011-09-07 Yao Qi <yao@codesourcery.com>
1660
1661 * gdbthread.h (struct thread_info): Comment on field
1662 `step_after_step_resume_breakpoint'.
1663
00db5b94
PA
16642011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1665
1666 * remote.c (remote_console_output): Reindent.
1667
861152be
LM
16682011-09-06 Luis Machado <lgustavo@codesourcery.com>
1669
1670 * frame.c (has_stack_frames): Check for currently selected
1671 traceframe.
1672
ab821bc6
PA
16732011-09-06 Pedro Alves <pedro@codesourcery.com>
1674
1675 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1676 (set_async_annotation_level, set_async_prompt, pop_prompt)
1677 (push_prompt, new_async_prompt): Delete declarations.
1678 * top.h (get_prompt, set_prompt): Change prototype.
1679 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1680 declarations.
1681 * top.c (command_loop):
1682 (top_prompt): New global.
1683 (get_prefix, set_prefix, get_suffix, ): Delete.
1684 (get_prompt, set_prompt): Rewrite.
1685 (show_new_async_prompt): Rename to ...
1686 (show_prompt): ... this.
1687 (init_main): Adjust. Don't handle --annotate=2 here.
1688 * event-top.c (new_async_prompt): Delete.
1689 (the_prompts): Delete.
1690 (more_to_come): Make static.
1691 (display_gdb_prompt): Use top_level_prompt() to compute the top
1692 level prompt, and don't notify the before_prompt observers
1693 directly here. Always trick readline into not trying to display
1694 the prompt if sync_execution and displaying the primary prompt.
1695 If displaying a local/secondary prompt, always show it, even if
1696 sync_execution is set.
1697 (change_annotation_level): Delete.
1698 (top_level_prompt): New, based on change_annotation_level.
1699 (push_prompt, pop_prompt): Delete.
1700 (async_disable_stdin): No longer pushes prompt.
1701 (command_line_handler): No longer pushes or pops prompt. If more
1702 input is expected, call display_gdb_prompt with an explicit empty
1703 prompt.
1704 (async_stop_sig): Adjust.
1705 (set_async_annotation_level, set_async_prompt): Delete.
1706 * python/python.c (before_prompt_hook): Adjust.
1707
f1d90504
PA
17082011-09-05 Pedro Alves <pedro@codesourcery.com>
1709
1710 PR cli/13110
1711
1712 * infrun.c (fetch_inferior_event): Check if there's a selected
1713 thread before checking if the selected thread is executing.
1714
0f641c01
PA
17152011-09-05 Pedro Alves <pedro@codesourcery.com>
1716
1717 * inf-loop.c (execute_command): Don't check if the current thread
1718 if running before synchronously waiting for command completion.
1719 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1720 here.
1721 (normal_stop): Call async_enable_stdin here.
1722 * inf-loop.c (inferior_event_handler): Don't call
1723 async_enable_stdin, nor handle "set exec-done-display" here.
1724
30368258 17252011-09-04 Joel Brobecker <brobecker@adacore.com>
1726
1727 GDB 7.3.1 released.
1728
31916278
JB
17292011-09-04 Joel Brobecker <brobecker@adacore.com>
1730
1731 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1732
e8d56f18
JB
17332011-09-04 Joel Brobecker <brobecker@adacore.com>
1734
1735 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1736
5dd05d8c
JK
17372011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1738
1739 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1740
7d8e6458 17412011-09-02 Matt Rice <ratmice@gmail.com>
1742
1743 PR gdb/10720
1744 * event-top.c (cli_command_loop): Replace readline setup with
1745 direct call to display_gdb_prompt.
1746 (display_gdb_prompt): Do not call observer mechanism during
1747 synchronous execution.
1748
84636d28
PA
17492011-09-02 Pedro Alves <pedro@codesourcery.com>
1750
1751 * linux-nat.c (in_pid_list_p): New.
1752 (linux_record_stopped_pid): Delete.
1753 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1754 already attached to the LWP. Return an indication if so.
1755 (linux_nat_filter_event): Adjust.
1756 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1757 returning an indication to ignore this thread.
1758
b4a14fd0
PA
17592011-09-02 Pedro Alves <pedro@codesourcery.com>
1760
1761 * top.c: Include interps.h.
1762 (execute_command): If the target can async, but the interpreter is
1763 in sync mode, synchronously wait for the command to finish before
1764 returning.
1765 (execute_command_to_string): Force the interpreter to sync mode.
1766 * infrun.c: Include interps.h.
1767 (fetch_inferior_event): Don't restore the prompt yet if the
1768 interpreter is in sync mode.
1769 * interps.c (interpreter_async): New global.
1770 * interps.h (interpreter_async): Declare.
1771 * inf-loop.c: Include interps.h.
1772 (inferior_event_handler): Don't print the language change or run
1773 breakpoint commands yet if the interpreter in is sync mode.
1774 * main.c (captured_command_loop): Flip the interpreter to async
1775 mode.
1776 * cli/cli-script.c: Include interps.h.
1777 (execute_user_command, while_command, if_command): Force the
1778 interpreter to sync mode.
1779 * python/python.c: Include interps.h.
1780 (python_command, execute_gdb_command): Force the interpreter to
1781 sync mode.
1782
c709acd1
PA
17832011-09-02 Pedro Alves <pedro@codesourcery.com>
1784
1785 * value.c (show_convenience): Catch errors thrown while printing
1786 each internal variable.
1787 * infrun.c (validate_siginfo_access): New function.
1788 (siginfo_value_read, siginfo_value_write): Call it.
1789
9655e943
JK
17902011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1791
1792 Revert:
1793 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1794 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1795 attribute.
1796
cb457ae2
YQ
17972011-08-29 Yao Qi <yao@codesourcery.com>
1798
1799 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1800 (cmp_name): New.
1801 (enable_break2): Update caller.
1802 * solib-frv.c (bfd_lookup_symbol): Removed.
1803 (cmp_name): New.
1804 (enable_break2): Update caller.
1805 * solib-pa64.c (bfd_lookup_symbol): Removed.
1806 (cmp_name): New.
1807 * solib-svr4.c (bfd_lookup_symbol): Removed.
1808 (cmp_name_and_sec_flags): New.
1809 (enable_break): Update caller.
1810 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1811 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1812 (gdb_bfd_lookup_symbol): New.
1813 * solib.h: Functions declarations.
1814
83d1a36a
YQ
18152011-08-29 Yao Qi <yao@codesourcery.com>
1816
1817 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1818 and solib-dsbt.o.
1819
c04b3e8f
JK
18202011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 Fix TUI stepi on code without symbols.
1823 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1824 current PC instead.
1825
cb0fd152
JK
18262011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1827
1828 Code cleanup.
1829 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1830 and the static keyword.
1831 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1832 Make prefix an array.
1833 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1834 * mi/mi-main.c (get_register): Remove stb initialization and the static
1835 keyword.
1836
91174723
JK
18372011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 Code cleanup - make mi_opt const.
1840 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1841 opts const.
1842 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1843 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1844 (mi_cmd_env_dir): Likewise.
1845 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1846 (mi_cmd_target_file_put): Likewise.
1847 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1848 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1849 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1850 (mi_valid_noargs): Make opts const.
1851 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1852 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1853 (mi_cmd_data_read_memory): Likewise.
1854 (mi_cmd_data_read_memory_bytes): Likewise.
1855 (mi_cmd_data_write_memory): Likewise.
1856
5068b8e8 18572011-08-26 Matt Rice <ratmice@gmail.com>
1858
1859 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1860 bcache_xmalloc, replace bcache_xmalloc with call to
1861 psymbol_bcache_init for psymbol_cache.
1862 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1863
a4f2ce05
JK
18642011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 * inf-loop.c (inferior_event_handler): Add exception_print in
1867 INF_EXEC_COMPLETE.
1868
353d1d73
JK
18692011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1870
1871 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1872 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1873 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1874 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1875 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1876 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1877 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1878 * infrun.c (fetch_inferior_event): Call
1879 make_bpstat_clear_actions_cleanup.
1880 * top.c (execute_command): New variable cleanup_if_error, call
1881 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1882 * utils.c (do_bpstat_clear_actions_cleanup)
1883 (make_bpstat_clear_actions_cleanup): New functions.
1884
3ced3da4
PA
18852011-08-26 Pedro Alves <pedro@codesourcery.com>
1886
1887 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1888 either the parent or the child forks. Rename a couple locals.
1889
a9f4bb21
PA
18902011-08-26 Pedro Alves <pedro@codesourcery.com>
1891
1892 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1893 library call. Avoid reading the `status' local if all waitpid
1894 calls failed.
1895
e5798bef
PA
18962011-08-26 Pedro Alves <pedro@codesourcery.com>
1897
1898 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1899 opening /proc/PID/task always succeeds.
1900
edb2aadf
AR
19012011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1902
1903 * linespec.c (symtab_from_filename): Check for the end of string.
1904
0d932b2f
MK
19052011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1906
1907 PR mi/11912
1908 * varobj.c (cplus_describe_child): Add the keyword
1909 'class' to the output of the method when dealing
1910 with a cast to a base class.
1911
e93ca019
JK
19122011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1913
1914 No functionality change.
1915 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1916 function comment a reference, new variables tp and bs, move here code
1917 from throw_exception.
1918 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1919 describe it in the comment.
1920 * exceptions.c (throw_exception): Remove variable tp, move the code for
1921 bpstat_clear_actions to bpstat_clear_actions.
1922
13da1c97
LM
19232011-08-24 Luis Machado <lgustavo@codesourcery.com>
1924
1925 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1926 * linux-nat.c: Include linux-procfs.h.
1927 (linux_proc_get_tgid): Move to ...
1928 * common/linux-procfs.c: ... here. New file.
1929 * common/linux-procfs.h: New file.
1930 * linux-thread-db.c: Include linux-procfs.h.
1931 * Makefile.in: Update dependencies.
1932 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1933 * config/arm/linux.mh: Likewise.
1934 * config/i386/linux.mh: Likewise.
1935 * config/i386/linux64.mh: Likewise.
1936 * config/ia64/linux.mh: Likewise.
1937 * config/m32r/linux.mh: Likewise.
1938 * config/m68k/linux.mh: Likewise.
1939 * config/mips/linux.mh: Likewise.
1940 * config/pa/linux.mh: Likewise.
1941 * config/pa/linux.mh: Likewise.
1942 * config/powerpc/linux.mh: Likewise.
1943 * config/powerpc/ppc64-linux.mh: Likewise.
1944 * config/powerpc/spu-linux.mh: Likewise.
1945 * config/sparc/linux.mh: Likewise.
1946 * config/sparc/linux64.mh: Likewise.
1947 * config/xtensa/linux.mh: Likewise.
1948
4e5c165d
HZ
19492011-08-24 Hui Zhu <teawater@gmail.com>
1950
1951 * tracepoint.c (cond_string_is_same): New function.
1952 (find_matching_tracepoint): Add condition check
1953 by cond_string_is_same.
1954
6e2f5b22
JK
19552011-08-23 Josh Matthews <josh@joshmatthews.net>
1956
1957 Fix build error in Darwin port.
1958 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
1959
abf85f46
JK
19602011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1961
1962 Code cleanup.
1963 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
1964 (command_line_is_silent): New function.
1965 (bpstat_do_actions_1): No longer use commands_left, use
1966 command_line_is_silent for commands.
1967 (bpstat_alloc): Remove clearing of commands_left.
1968 (bpstat_stop_status): Remove initialization of commands_left, use
1969 command_line_is_silent.
1970 * breakpoint.h (struct bpstats): Remove commands_left.
1971
3a93a0c2
KS
19722011-08-18 Keith Seitz <keiths@redhat.com>
1973
1974 PR c++/12266
1975 * cp-name-parser.y (struct demangle_info): Remove unused
1976 member PREV.
1977 (d_grab): Likewise.
1978 (allocate_info): Change return type to struct demangle_info *.
1979 Always allocate a new demangle_info.
1980 Remove unused PREV pointer.
1981 (cp_new_demangle_parse_info): New function.
1982 (cp_demangled_name_parse_free): New function.
1983 (do_demangled_name_parse_free_cleanup): New function.
1984 (make_cleanup_cp_demangled_name_parse_free): New function.
1985 (cp_demangled_name_to_comp): Change return type to
1986 struct demangle_parse_info *.
1987 Allocate a new storage for each call.
1988 (main): Update usage for cp_demangled_name_to_comp
1989 API change.
1990 * cp-support.h (struct demangle_parse_info): New structure.
1991 (cp_demangled_name_to_comp): Update API change for
1992 return type.
1993 (cp_new_demangle_parse_info): Declare.
1994 (make_cleanup_cp_demangled_name_parse_free): New declaration.
1995 (cp_demangled_name_parse_free): Declare.
1996 * cp-support.c (cp_canonicalize_string): Update API
1997 change for cp_demangled_name_to_comp.
1998 (mangled_name_to_comp): Likewise.
1999 Return struct demangle_parse_info, too.
2000 (cp_class_name_from_physname): Update mangled_name_to_comp
2001 API change.
2002 (method_name_from_physname): Likewise.
2003 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2004 (cp_remove_params): Likewise.
2005 * python/py-type.c (typy_legacy_template_argument): Likewise.
2006
2007 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2008 (cp_merge_demangle_parse_infos): Declare.
2009 * cp-support.c (ignore_typedefs): New file global.
2010 (copy_string_to_obstack): New function.
2011 (inspect_type): New function.
2012 (replace_typedefs): New function.
2013 (replace_typedefs_qualified_name): New function.
2014 (cp_canonicalize_string_no_typedefs): New function.
2015 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2016 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2017 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2018 instead of cp_canonicalize_string.
2019 (find_method): Likewise.
2020 (decode_compound): Before looking up the name, call
2021 cp_canonicalize_string_no_typedefs.
2022 (decode_variable): Likewise.
2023
fa3a4f15
PM
20242011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2025 Tom Tromey <tromey@redhat.com>
2026 Matt Rice <ratmice@gmail.com>
2027
2028 * python/lib/gdb/prompt.py: New file.
2029 * python/lib/gdb/command/prompt.py: New file.
2030 * NEWS: Document set extended-prompt and gdb.prompt library
2031
85661b1e
YQ
20322011-08-16 Yao Qi <yao@codesourcery.com>
2033
2034 * tic6x-linux-tdep.c: Move const arrays definition from here...
2035 * tic6x-tdep.c: to here ...
2036
11315641
YQ
20372011-08-14 Yao Qi <yao@codesourcery.com>
2038
2039 * NEWS: New port to Texas Instruments TMS320C6x.
2040
8cd64e00
YQ
20412011-08-14 Andrew Jenner <andrew@codesourcery.com>
2042 Bernd Schmidt <bernds@codesourcery.com>
2043 Yao Qi <yao@codesourcery.com>
2044
2045 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2046 * solib-dsbt.c: New file. Support DSBT shared object.
2047 * tic6x-linux-tdep.c: New file.
2048 * tic6x-tdep.c: New file.
2049 * tic6x-tdep.h: New file.
2050
78d85199
YQ
20512011-08-14 Andrew Stubbs <ams@codesourcery.com>
2052 Yao Qi <yao@codesourcery.com>
2053
2054 * remote.c (PACKET_qXfer_fdpic): New enum value.
2055 (remote_protocol_features): Add qXfer:fdpic:read packet.
2056 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2057 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2058 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2059
224bbe49
YQ
20602011-08-14 Yao Qi <yao@codesourcery.com>
2061
2062 Target description for tic6x.
2063 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2064 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2065 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2066 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2067 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2068 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2069 * features/tic6x-c64xp-linux.xml: New.
2070 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2071 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2072 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2073 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2074 * regformats/tic6x-c64xp.dat,
2075 regformats/tic6x-c62x-linux.dat: Generated.
2076 * regformats/tic6x-c64x-linux.dat,
2077 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2078 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2079 features/tic6x-*.c files.
2080 Add regformats/tic6x-*.dat files.
2081
457e09f0
DE
20822011-08-12 Doug Evans <dje@google.com>
2083
2084 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2085 * python/py-symbol.c (sympy_get_type): New function.
2086 (symbol_object_getset): Add "type".
2087
d20c1c3f
PA
20882011-08-12 Pedro Alves <pedro@codesourcery.com>
2089
2090 PR tui/13073
2091
2092 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2093 empty name.
2094 (tui_show_register_group): Don't store a byte buffer in the data
2095 element's value.
2096 (tui_register_format): Skip registers with an empty name.
2097 (tui_get_register): Store a struct value in the data element's
2098 value field instead of a byte buffer holding the raw register
2099 contents. Account for optimized-out and unavailable registers
2100 when comparing register contents.
2101
9d8fa392
PA
21022011-08-09 Pedro Alves <pedro@codesourcery.com>
2103
2104 * printcmd.c (current_display_number): Update comment.
2105 (disable_current_display_cleanup): Delete.
2106 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2107 catch errors thrown while evaluating and printing the display.
2108
401a70b8
TT
21092011-08-09 Tom Tromey <tromey@redhat.com>
2110
2111 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2112
7f86f058
PA
21132011-08-09 Pedro Alves <pedro@codesourcery.com>
2114
94b71cca 2115 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2116 * maint.c (maintenance_command): Ditto.
2117 * somread.c (som_symtab_read): Ditto.
2118 * solib.c (solib_find, solib_map_sections, update_solib_list)
2119 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2120 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2121 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2122 * solib-irix.c (locate_base, disable_break, enable_break)
2123 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2124 (irix_current_sos, irix_open_symbol_file_object)
2125 (irix_special_symbol_handling): Ditto.
2126 * solib-sunos.c (locate_base, first_link_map_member)
2127 (sunos_current_sos, disable_break, enable_break)
2128 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2129 Ditto.
2130 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2131 (open_symbol_file_object, svr4_current_sos, enable_break)
2132 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2133 Ditto.
2134 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2135 (frv_current_sos, enable_break, frv_special_symbol_handling)
2136 (frv_solib_create_inferior_hook): Ditto.
2137 * solist.h (struct target_so_ops): Extend the comments of the
2138 special_symbol_handling, current_sos and open_symbol_file_object
2139 methods.
2140
5e239b84
PM
21412011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2142
2143 * python/lib/gdb/__init__.py: Auto-load files in command and
2144 function directories.
2145 * python/python.c (finish_python_initialization): Use
2146 os.path.join.
2147 * python/lib/gdb/command/pretty_printers.py: Self register
2148 command.
2149 * NEWS: Document auto-loading.
2150
b6cede78
JK
21512011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2152
2153 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2154 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2155 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2156
29d0bb3d
TT
21572011-08-08 Tom Tromey <tromey@redhat.com>
2158
2159 * breakpoint.c (clean_up_filters): Remove.
2160 (catch_syscall_split_args): Use VEC_cleanup.
2161
2f7fb8e4
JK
21622011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2163
2164 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2165 (main): Uncomment "Demangling error\n".
2166
d6c10e95
PP
21672011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2168
2169 * solib-target.c (segment_attributes): Make them static.
2170 (section_attributes, library_children, library_attributes): Likewise.
2171 (library_list_children, library_list_attributes): Likesise.
2172 (library_list_elements): Likewise.
2173
af6e93b2
PA
21742011-08-05 Pedro Alves <pedro@codesourcery.com>
2175
2176 * exceptions.c (throw_exception): Don't disable the current
2177 display.
2178 * printcmd.c (disable_current_display_cleanup): New function.
2179 (do_one_display): Install a cleanup to disable the current display
2180 if doing the display throws.
2181
6a1b1664
EZ
21822011-08-05 Eli Zaretskii <eliz@gnu.org>
2183
2184 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2185 initialization of the tp_new member to the corresponding
2186 gdbpy_initialize_* function.
2187 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2188 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2189 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2190 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2191 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2192
31a0ae49
JK
21932011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2194
2195 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2196 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2197 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2198 references to current_uiout.
2199
e0dd0826
PA
22002011-08-04 Pedro Alves <pedro@codesourcery.com>
2201
2202 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2203 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2204 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2205 * top.c (gdb_readline_wrapper): Adjust.
2206 * tui/tui-interp.c (tui_command_loop):
2207 (_initialize_tui_interp): Don't install it.
2208
79a45e25
PA
22092011-08-04 Pedro Alves <pedro@codesourcery.com>
2210
2211 * ui-out.h (uiout): Rename to ...
2212 (current_uiout): ... this.
2213 * ui-out.c (uiout): Rename to ...
2214 (current_uiout): ... this.
2215 * ada-lang.c (print_it_exception, print_one_exception)
2216 (print_mention_exception): Adjust.
2217 * breakpoint.c (watchpoint_check): Adjust.
2218 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2219 (default_collect_info, watchpoints_info, print_one_catch_fork)
2220 (print_one_catch_vfork, print_one_catch_syscall)
2221 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2222 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2223 (print_it_watchpoint, print_mention_watchpoint)
2224 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2225 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2226 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2227 (bkpt_print_mention, momentary_bkpt_print_it)
2228 (tracepoint_print_mention, update_static_tracepoint)
2229 (tracepoints_info, save_breakpoints): Adjust.
2230 * cli-out.c (field_separator): Adjust.
2231 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2232 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2233 * frame.c (get_current_frame): Adjust.
2234 * infcmd.c (run_command_1, print_return_value): Adjust.
2235 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2236 * infrun.c (print_end_stepping_range_reason): Adjust.
2237 (print_signal_exited_reason, print_exited_reason): Adjust.
2238 (print_signal_received_reason, print_no_history_reason): Adjust.
2239 * interps.c (interp_set): Adjust.
2240 * osdata.c (info_osdata_command): Adjust.
2241 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2242 * remote-fileio.c (remote_fileio_request): Adjust.
2243 * remote.c (show_remote_cmd): Adjust.
2244 * solib.c (info_sharedlibrary_command): Adjust.
2245 * source.c (print_source_lines_base): Adjust.
2246 * stack.c (print_stack_frame): Adjust.
2247 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2248 * symfile-mem.c (add_vsyscall_page): Adjust.
2249 * symfile.c (load_progress, generic_load)
2250 (print_transfer_performance): Adjust.
2251 * thread.c (info_threads_command, restore_selected_frame)
2252 (thread_command): Adjust.
2253 * top.c (make_cleanup_restore_ui_file): Adjust.
2254 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2255 (print_one_static_tracepoint_marker): Adjust.
2256 * cli/cli-cmds.c (print_disassembly): Adjust.
2257 * cli/cli-decode.c (print_doc_line): Adjust.
2258 * cli/cli-interp.c (safe_execute_command): Adjust.
2259 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2260 (handle_redirections): Adjust.
2261 * cli/cli-script.c (show_user_1): Adjust.
2262 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2263 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2264 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2265 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2266 (mi_cmd_env_dir): Adjust.
2267 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2268 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2269 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2270 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2271 (list_args_or_locals): Adjust.
2272 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2273 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2274 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2275 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2276 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2277 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2278 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2279 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2280 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2281 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2282 (list_available_thread_groups, mi_cmd_list_thread_groups)
2283 (mi_cmd_data_list_register_names)
2284 (mi_cmd_data_list_changed_registers)
2285 (mi_cmd_data_list_register_values, get_register)
2286 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2287 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2288 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2289 (mi_execute_command, mi_load_progress): Adjust.
2290 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2291 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2292 Adjust.
2293 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2294 * tui/tui-interp.c (tui_command_loop): Adjust.
2295 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2296
f9679975
PA
22972011-08-04 Pedro Alves <pedro@codesourcery.com>
2298
2299 * exceptions.c (struct catcher): Remove saved_uiout field.
2300 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2301 no longer save/resvore the global ui_out builder.
2302 (catch_exceptions_with_msg): Save/override/restore the global
2303 ui_out builder manually instead of relying on TRY_CATCH to do it.
2304 (catch_errors): Save/restore the global ui_out builder manually
2305 instead of relying on TRY_CATCH to do it.
2306 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2307 parameter.
2308 (TRY_CATCH): Adjust.
2309 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2310 the global ui_out builder manually instead of relying on TRY_CATCH
2311 to do it.
2312
934709f0
PW
23132011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2314
2315 * breakpoint.c (update_global_location_list): Ensure
2316 invariant 'first loc marked not duplicated and inserted,
2317 following locs marked duplicated/not inserted' is respected
2318 for multiple locations at the same address.
2319 (unduplicated_should_be_inserted) New function.
2320 (swap_insertion) New function.
2321
2421fe6f
JK
23222011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 * stack.c (print_frame_arguments_choices): Comment typo fix.
2325
3fbb6ffa
TJB
23262011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2327
2328 Revert:
2329 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2330 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2331 argument. Update callers.
2332
fbe12357
PP
23332011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2334
2335 PR gdb/13045
2336 * doublest.c (convert_doublest_to_floatformat): Pass correct
2337 mantissa length to put_field.
2338
b1d288d3
JK
23392011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2342 exception_print code path.
2343 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2344 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2345 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2346
311b5970
JK
23472011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2348
2349 Code cleanup.
2350 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2351 Remove, merge them into ...
2352 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2353 variable args and its initialization.
2354 (struct print_args_args, print_args_stub): Remove, merge them into
2355 print_frame.
2356 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2357 them into ...
2358 (do_gdb_disassembly): ... here. Remove variable args and its
2359 initialization.
2360 (print_frame): Remove variable args and its initialization, new
2361 variable gdbarch and numargs (from print_args_stub), inline here
2362 print_args_stub with a TRY_CATCH.
2363 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2364 them into ...
2365 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2366 New variable e, remove variable btargs and its initialization.
311b5970 2367
484a26a8
TG
23682011-08-01 Tristan Gingold <gingold@adacore.com>
2369
2370 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2371
c30eee59
TJB
23722011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2373
2374 * breakpoint.c (insert_bp_location): Document return value.
2375 (insert_breakpoint_locations): Fix documentation.
2376 (remove_breakpoints): Add documentation.
2377
f116073b
TJB
23782011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2379
2380 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2381 argument. Update callers.
2382
65aa373f
JK
23832011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2384
2385 * stack.c (print_frame_info): Comment typo fix.
2386
a50242fb
SA
23872011-07-29 Sterling Augustine <saugustine@google.com>
2388
2389 * MAINTAINERS (Write After Approval): Add myself to the list.
2390
267f6504
TT
23912011-07-29 Tom Tromey <tromey@redhat.com>
2392
2393 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2394 (library_list_start_segment): Update.
2395 (library_list_start_section): Update.
2396
00bd41d6
PM
23972011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2398
2399 * varobj.c (value_get_print_value): Move hint check later into the
2400 function. Comment function. Free thevalue before reusing it.
2401
18a46dbe
JK
24022011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2403 Pedro Alves <pedro@codesourcery.com>
2404
2405 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2406 value_one.
2407 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2408 Assert the result kind.
2409 * value.h (value_one): Remove parameter lv.
2410
bb7da2bf
JK
24112011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2412
2413 Fix crash on lval_computed values.
2414 * valops.c (value_zero): Use not_lval for lval_computed.
2415
2d5213f8
TT
24162011-07-27 Tom Tromey <tromey@redhat.com>
2417
2418 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2419 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2420
11081198
JK
24212011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2422
2423 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2424 "ptype" by their typedefs difference.
2425
3c6e0cb3
JK
24262011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2427
2428 * dwarf2expr.c (ctx_no_read_reg): New function.
2429 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2430 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2431 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2432 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2433
523f3620
JK
24342011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2437 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2438 file.
2439 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2440 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2441 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2442 (ctx_no_get_base_type): Move the functions here.
2443 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2444 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2445 (ctx_no_get_base_type): New declarations.
2446
24d3216f
TT
24472011-07-27 Tom Tromey <tromey@redhat.com>
2448
2449 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2450 entries.
2451 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2452 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2453
5005c8a9
PP
24542011-07-26 Sterling Augustine <saugustine@google.com>
2455
2456 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2457 ULONGEST.
2458 (dump_bfd_file): Likewise.
2459
480a3f21
PW
24602011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2461
2462 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2463 (remote_hw_watchpoint_length_limit): New variable.
2464 (_initialize_remote) add set,show cmds for this new variable.
2465 * gdb.texinfo: document these new commands.
2466 * NEWS: Mention these new commands.
2467
efa80663
PA
24682011-07-26 Pedro Alves <pedro@codesourcery.com>
2469
2470 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2471 true for software watchpoints.
2472
dbdaa232 24732011-07-26 Joel Brobecker <brobecker@adacore.com>
2474
2475 GDB 7.3 released.
2476
cf2c3c16
TT
24772011-07-26 Tom Tromey <tromey@redhat.com>
2478
2479 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2480 * dwarf2read.c (read_indirect_string_at_offset): New function.
2481 (read_indirect_string): Use it.
2482 (dwarf_decode_macro_bytes): New function, taken from
2483 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2484 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2485 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2486 New functions.
2487 (struct dwarf2_per_objfile) <macro>: New field.
2488 (dwarf2_elf_names): Add .debug_macro.
2489 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2490 (dwarf2_locate_sections): Handle new section.
2491 (read_file_scope): Handle DW_AT_GNU_macros.
2492 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2493
1a532630
PP
24942011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2495
2496 * NEWS: Mention dcache configuration.
2497 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2498 (dcache_size, dcache_line_size): New variables.
2499 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2500 (struct dcache_block): Make it expandable.
2501 (struct dcache_struct): New field.
2502 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2503 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2504 (dcache_poke_byte, dcache_print_line): Adjust.
2505 (set_dcache_size, set_dcache_line_size): New functions.
2506 (set_dcache_command, show_dcache_command): New functions.
2507 (_initialize_dcache): Add new commands.
2508
2eff07b3
PP
25092011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2510
2511 * progspace.h (struct program_space): Add solib_add_generation.
2512 * infcmd.c (post_create_inferior): Only call solib_add if not
2513 already done.
2514 * solib.c (solib_add): Increment solib_add_generation.
2515
543305c9
JK
25162011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2517
2518 Fix implicit pointer offsets.
2519 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2520 ptr.OFFSET.
2521
c0a91b2b
TT
25222011-07-25 Tom Tromey <tromey@redhat.com>
2523
2524 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2525 const.
2526 (ada_exception_sal): Make 'ops' const.
2527 (ada_decode_exception_location): Likewise.
2528 (ada_decode_assert_location): Likewise.
2529 (catch_assert_command): Update.
2530 (catch_ada_exception_command): Update.
2531 (create_ada_exception_catchpoint): Make 'ops' const.
2532 * breakpoint.c (set_raw_breakpoint_without_location)
2533 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2534 const.
2535 (create_internal_breakpoint): Update.
2536 (init_raw_breakpoint_without_location): Make 'ops' const.
2537 (init_raw_breakpoint, init_catchpoint)
2538 (create_fork_vfork_event_catchpoint)
2539 (create_syscall_event_catchpoint, init_breakpoint_sal)
2540 (create_breakpoint_sal, create_breakpoints_sal)
2541 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2542 * breakpoint.h (struct breakpoint) <ops>: Now const.
2543 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2544 const.
2545
6cb9b55b
PP
25462011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2547
2548 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2549
d9b3f62e
PA
25502011-07-25 Pedro Alves <pedro@codesourcery.com>
2551
2552 * breakpoint.h (print_recreate_thread): Declare.
2553 (struct breakpoint): Move step_count, pass_count,
2554 number_on_target, static_trace_marker_id,
2555 static_trace_marker_id_idx ...
2556 (struct tracepoint): ... to this new struct.
2557 (get_tracepoint, get_tracepoint_by_number_on_target)
2558 (get_tracepoint_by_number): Change return type to struct
2559 tracepoint pointer.
2560 * breakpoint.c (is_tracepoint_type): New, factored out from
2561 is_tracepoint.
2562 (is_tracepoint): Adjust.
2563 (print_one_breakpoint_location): Cast to struct tracepoint as
2564 necessary, and adjust.
2565 (print_recreate_catch_fork, print_recreate_catch_vfork)
2566 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2567 print_recreate_thread.
2568 (init_breakpoint_sal): New, factored out from
2569 create_breakpoint_sal.
2570 (create_breakpoint_sal): Reimplement.
2571 (create_breakpoint): Allocate a struct tracecepoint if the caller
2572 wanted a tracepoint. Use init_breakpoint_sal and
2573 install_breakpoint.
2574 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2575 (print_recreate_masked_watchpoint)
2576 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2577 (tracepoint_print_one_detail): Adjust.
2578 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2579 Dump the pass count here.
2580 (update_static_tracepoint): Adjust.
2581 (addr_string_to_sals): Adjust.
2582 (create_tracepoint_from_upload): Adjust. Change return type to
2583 struct tracepoint pointer.
2584 (trace_pass_set_count): Change parameter type to struct tracepoint
2585 pointer, and adjust.
2586 (trace_pass_command): Adjust.
2587 (get_tracepoint, get_tracepoint_by_number_on_target)
2588 (get_tracepoint_by_number): Change return type to struct
2589 tracepoint pointer, and adjust.
2590 (print_recreate_thread): New, factored out from save_breakpoints.
2591 (save_breakpoints): Don't print thread and task and passcount
2592 recreation here.
2593 * remote.c (remote_download_tracepoint): Adjust.
2594 * tracepoint.c (trace_actions_command, validate_actionline)
2595 (start_tracing, tfind_1, trace_find_tracepoint_command)
2596 (trace_dump_command): Adjust.
2597 (find_matching_tracepoint): Change return type to struct
2598 tracepoint pointer, and adjust.
2599 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2600 (tfile_trace_find, tfile_fetch_registers): Adjust.
2601 * tracepoint.h (create_tracepoint_from_upload): Change return type
2602 to struct tracepoint pointer.
2603 * ada-lang.c (print_recreate_exception): Call
2604 print_recreate_thread.
2605 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2606
3a5c3e22
PA
26072011-07-25 Pedro Alves <pedro@codesourcery.com>
2608
2609 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2610 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2611 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2612 watchpoint_thread, watchpoint_triggered ...
2613 (struct watchpoint): ... to this new struct.
2614 (is_watchpoint): Declare.
2615 (install_breakpoint): Add new `internal' parameter.
2616 * breakpoint.c (is_watchpoint): Delete declaration.
2617 (set_breakpoint_condition): Handle watchpoints.
2618 (is_watchpoint): Make public.
2619 (watchpoint_in_thread_scope): Change parameter type to struct
2620 watchpoint.
2621 (watchpoint_del_at_next_stop): Change parameter type to struct
2622 watchpoint. Remove assertion. Adjust.
2623 (update_watchpoint): Ditto.
2624 (insert_breakpoints, breakpoint_init_inferior)
2625 (watchpoints_triggered, watchpoint_check)
2626 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2627 (bpstat_stop_status, print_one_breakpoint_location)
2628 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2629 to struct watchpoint as necessary, and adjust.
2630 (install_breakpoint): Add `internal' argument. If true, don't
2631 mention the new breakpoint. Use set_breakpoint_number.
2632 (create_fork_vfork_event_catchpoint)
2633 (create_syscall_event_catchpoint): Adjust.
2634 (dtor_watchpoint): New.
2635 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2636 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2637 (print_it_watchpoint, print_mention_watchpoint)
2638 (print_recreate_watchpoint, insert_masked_watchpoint)
2639 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2640 (print_one_detail_masked_watchpoint)
2641 (print_mention_masked_watchpoint)
2642 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2643 necessary, and adjust.
2644 (watch_command_1): Allocate and initialize a struct watchpoint
2645 instead of a struct breakpoint. Use install_breakpoint.
2646 (catch_exec_command_1): Adjust.
2647 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2648 fields.
2649 (delete_breakpoint, enable_breakpoint_disp)
2650 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2651 as necessary, and adjust.
2652 (initialize_breakpoint_ops): Install dtor_watchpoint as
2653 watchpoints' dtor method.
2654 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2655 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2656 to struct watchpoint as necessary, and adjust.
2657
2060206e
PA
26582011-07-25 Pedro Alves <pedro@codesourcery.com>
2659
2660 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2661 the the base class ops table.
2662 (catch_exception_breakpoint_ops)
2663 (catch_exception_unhandled_breakpoint_ops)
2664 (catch_assert_breakpoint_ops): Don't statically initialize.
2665 (initialize_ada_catchpoint_ops): New.
2666 (_initialize_ada_language): Call it.
2667 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2668 (bkpt_breakpoint_ops): Forward declare.
2669 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2670 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2671 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2672 (masked_watchpoint_breakpoint_ops)
2673 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2674 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2675 base class ops table.
2676 (null_re_set, null_check_status, null_works_in_software_mode)
2677 (null_resources_needed, null_print_one_detail): Delete.
2678 (bkpt_dtor): Rename to ...
2679 (base_breakpoint_dtor): ... this. Make static.
2680 (bkpt_allocate_location): Rename to ...
2681 (base_breakpoint_allocate_location): ... this. Make static.
2682 (base_breakpoint_re_set): New.
2683 (internal_error_pure_virtual_called): New.
2684 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2685 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2686 (base_breakpoint_works_in_software_mode)
2687 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2688 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2689 (base_breakpoint_print_recreate): New functions.
2690 (base_breakpoint_ops): New global.
2691 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2692 (bkpt_breakpoint_hit): Make static.
2693 (bkpt_check_status): Delete.
2694 (bkpt_resources_needed): Make static.
2695 (bkpt_works_in_software_mode): Delete.
2696 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2697 static.
2698 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2699 (momentary_breakpoint_ops): Don't statically initialize.
2700 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2701 Delete.
2702 (tracepoint_insert_location, tracepoint_remove_location)
2703 (tracepoint_check_status, tracepoint_works_in_software_mode)
2704 (tracepoint_print_it): Delete.
2705 (tracepoint_breakpoint_ops): Don't statically initialize.
2706 (initialize_breakpoint_ops): New.
2707 (_initialize_breakpoint): Call it.
2708 * breakpoint.h (null_re_set, null_works_in_software_mode)
2709 (null_resources_needed, null_check_status, null_print_one_detail):
2710 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2711 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2712 (bkpt_check_status, bkpt_resources_needed)
2713 (bkpt_works_in_software_mode, bkpt_print_it)
2714 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2715 Delete declarations.
2716 (initialize_breakpoint_ops): Declare.
2717
001c8c33
PA
27182011-07-25 Pedro Alves <pedro@codesourcery.com>
2719
2720 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2721 (momentary_bkpt_print_it): Simplify.
2722
06edf0c0
PA
27232011-07-25 Pedro Alves <pedro@codesourcery.com>
2724
2725 Split internal, momentary and user breakpoints breakpoint_ops
2726 tables.
2727
2728 * breakpoint.c (internal_breakpoint_ops)
2729 (momentary_breakpoint_ops): Forward declare.
2730 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2731 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2732 (create_overlay_event_breakpoint)
2733 (create_std_terminate_master_breakpoint)
2734 (create_exception_master_breakpoint): Create breakpoints with
2735 internal_breakpoint_ops vtable.
2736 (set_longjmp_breakpoint): Create momentary breakpoints with
2737 momentary_breakpoint_ops vtable, using
2738 momentary_breakpoint_from_master.
2739 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2740 (create_solib_event_breakpoint): Create breakpoints with
2741 internal_breakpoint_ops vtable.
2742 (set_momentary_breakpoint): Create breakpoints with
2743 momentary_breakpoint_ops vtable.
2744 (momentary_breakpoint_from_master): New, factored out from
2745 clone_momentary_breakpoint.
2746 (clone_momentary_breakpoint): Adjust.
2747 (watch_command_1): Create scope breakpoints with
2748 momentary_breakpoint_ops vtable.
2749 (bkpt_re_set): Remove handling of internal and momentary
2750 breakpoints.
2751 (bkpt_print_mention, bkpt_print_recreate): New.
2752 (bkpt_breakpoint_ops): Adjust.
2753 (internal_bkpt_re_set, internal_bkpt_check_status)
2754 (internal_bkpt_print_it, internal_bkpt_print_mention)
2755 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2756 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2757 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2758 (momentary_bkpt_print_recreate): New.
2759 (momentary_breakpoint_ops): New.
2760
348d480f
PA
27612011-07-25 Pedro Alves <pedro@codesourcery.com>
2762
2763 Implement most breakpoint_ops methods for all breakpoint types,
2764 and move the default handlings to the proper callbacks.
2765
2766 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2767 works_in_software_mode method.
2768 (insert_bp_location): Go through breakpoint_ops->insert_location
2769 for software and hardware watchpoints.
2770 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2771 breakpoint_ops.
2772 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2773 for software and hardware watchpoints.
2774 (print_it_typical): Delete.
2775 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2776 method.
2777 (watchpoint_check): Adjust comment.
2778 (bpstat_check_location): Simply always call the breakpoint's
2779 breakpoint_hit method.
2780 (bpstat_stop_status): Always call the breakpoint's check_status
2781 method. Remove special cases for watchpoints and internal event
2782 breakpoints from here (moved to the check_status implementations).
2783 (print_one_breakpoint_location): Assume b->ops is never NULL.
2784 Remove static tracepoint marker id printing from here (moved to
2785 the print_one_detail callback implementation of tracepoints).
2786 (init_bp_location): Assert OPS is never NULL.
2787 (allocate_bp_location): Always call the breakpoint's
2788 allocate_location method, and remove the default code from here.
2789 (free_bp_location): Always call the location's dtor method, and
2790 remove the default code from here.
2791 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2792 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2793 parameter. Pass it down.
2794 (set_raw_breakpoint): Ditto.
2795 (print_it_catch_fork): Adjust to take a bpstat as argument.
2796 (catch_fork_breakpoint_ops): Install methods.
2797 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2798 (catch_vfork_breakpoint_ops): Install methods.
2799 (dtor_catch_syscall): Call the base dtor.
2800 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2801 (catch_syscall_breakpoint_ops): Install methods.
2802 (dtor_catch_exec): Call the base dtor.
2803 (print_it_catch_exec): Adjust to take a bpstat as argument.
2804 (catch_exec_breakpoint_ops): Install methods.
2805 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2806 the breakpoint's resources_needed method, and remove the default
2807 code from here.
2808 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2809 breakpoint_ops.
2810 (clone_momentary_breakpoint): Clone the original's ops.
2811 (mention): Always call the breakpoint's print_mention method, and
2812 remove the default code from here.
2813 (create_breakpoint_sal): Adjust to pass the ops to
2814 set_raw_breakpoint rather than setting it manually.
2815 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2816 ops to set_raw_breakpoint_without_location rather than setting it
2817 manually.
2818 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2819 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2820 (ranged_breakpoint_ops): Install methods.
2821 (break_range_command): Adjust to pass the ops to
2822 set_raw_breakpoint rather than setting it manually.
2823 (re_set_watchpoint, breakpoint_hit_watchpoint)
2824 (check_status_watchpoint, resources_needed_watchpoint)
2825 (works_in_software_mode_watchpoint, print_it_watchpoint)
2826 (print_mention_watchpoint, print_recreate_watchpoint): New
2827 functions.
2828 (watchpoint_breakpoint_ops): Install new methods.
2829 (print_it_masked_watchpoint): New function.
2830 (masked_watchpoint_breakpoint_ops): Install new methods.
2831 (watch_command_1): Adjust to pass the right breakpoint_ops to
2832 set_raw_breakpoint_without_location rather than setting it
2833 manually later. Record the current pspace.
2834 (print_it_exception_catchpoint): Adjust to take a bpstat as
2835 argument.
2836 (gnu_v3_exception_catchpoint_ops): Install new methods.
2837 (say_where): New function.
2838 (null_re_set, null_check_status, null_works_in_software_mode)
2839 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2840 New functions.
2841 (bp_location_ops): New global.
2842 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2843 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2844 (bkpt_check_status, bkpt_resources_needed)
2845 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2846 (bkpt_print_recreate): New functions.
2847 (bkpt_breakpoint_ops): New global.
2848 (tracepoint_re_set, tracepoint_insert_location)
2849 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2850 (tracepoint_check_status, tracepoint_works_in_software_mode)
2851 (tracepoint_print_it, tracepoint_print_one_detail)
2852 (tracepoint_print_mention, tracepoint_print_recreate): New
2853 functions.
2854 (tracepoint_breakpoint_ops): New global.
2855 (delete_breakpoint): Always call the breakpoint's dtor method, and
2856 remove the default handling from here.
2857 (breakpoint_re_set_default): Make static.
2858 (breakpoint_re_set_one): Always call the breakpoints re_set
2859 method, and remove the default handling from here.
2860 (trace_command, ftrace_command, strace_command)
2861 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2862 to create_breakpoint.
2863 (save_breakpoints): Always call the breakpoint's print_recreate
2864 method, and remove the default handling from here.
2865
2866 * ada-lang.c (dtor_exception): Call the base dtor.
2867 (re_set_exception): Call the base method.
2868 (print_it_exception, print_it_catch_exception): Adjust to take a
2869 bpstat as argument.
2870 (catch_exception_breakpoint_ops): Install methods.
2871 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2872 argument.
2873 (catch_exception_unhandled_breakpoint_ops): Install methods.
2874 (print_it_catch_assert): Adjust to take a bpstat as argument.
2875 (catch_assert_breakpoint_ops): Install methods.
2876
2877 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2878 to take a bpstat as argument.
2879 (enum print_stop_action): Add describing comments to each enum
2880 value.
2881 (breakpoint_re_set_default): Delete declaration.
2882 (null_re_set, null_works_in_software_mode, null_resources_needed)
2883 (null_check_status, null_print_one_detail): Declare.
2884 (bkpt_breakpoint_ops): Declare.
2885 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2886 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2887 (bkpt_check_status, bkpt_resources_needed)
2888 (bkpt_works_in_software_mode, bkpt_print_it)
2889 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2890 Declare.
2891
2892 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2893 bkpt_breakpoint_ops.
2894 * python/py-breakpoint.c (bppy_init): Ditto.
2895
be8f8133
PW
28962011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2897
2898 * MAINTAINERS (Write After Approval): Add myself to the list.
2899
3807f613
PP
29002011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2901
2902 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2903
1ced966e
PA
29042011-07-22 Pedro Alves <pedro@codesourcery.com>
2905
2906 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2907 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2908 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2909 adjust.
2910 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2911 (struct i386_debug_reg_state): New.
2912 (i386_init_dregs): New.
2913 (dr_mirror): New.
2914 (i386_cleanup_dregs): Use i386_init_dregs.
2915 (i386_show_dr): Add state parameter and adjust.
2916 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2917 the inferior here.
2918 (i386_remove_aligned_watchpoint): Likewise.
2919 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2920 (i386_update_inferior_debug_regs): New.
2921 (i386_insert_watchpoint): Work on a local mirror of the debug
2922 registers, and only update the inferior on success.
2923 (i386_remove_watchpoint): Ditto.
2924 (i386_region_ok_for_watchpoint): Adjust.
2925 (i386_stopped_data_address): Adjust.
2926 (i386_insert_hw_breakpoint): Adjust.
2927 (i386_remove_hw_breakpoint): Adjust.
2928
3543a589
TT
29292011-07-22 Tom Tromey <tromey@redhat.com>
2930
2931 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2932 from amd64_pseudo_register_read. Change arguments. Call
2933 mark_value_bytes_unavailable when needed.
2934 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2935 set_gdbarch_pseudo_register_read.
2936 * sentinel-frame.c (sentinel_frame_prev_register): Use
2937 regcache_cooked_read_value.
2938 * regcache.h (regcache_cooked_read_value): Declare.
2939 * regcache.c (regcache_cooked_read_value): New function.
2940 (regcache_cooked_read): Call
2941 gdbarch_pseudo_register_read_value if available.
2942 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2943 (i386_pseudo_register_read): Remove.
2944 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
2945 i386_pseudo_register_read. Change arguments. Call
2946 mark_value_bytes_unavailable when needed.
2947 (i386_pseudo_register_read_value): New function.
2948 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
2949 not set_gdbarch_pseudo_register_read.
2950 * gdbarch.sh (pseudo_register_read_value): New method.
2951 * gdbarch.c, gdbarch.h: Rebuild.
2952 * findvar.c (value_from_register): Call get_frame_register_value.
2953
95298e72
PM
29542011-07-22 Phil Muldoon <pmuldoon@redhat.com>
2955
2956 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
2957 get_prefix.
2958 (display_gdb_prompt): Likewise.
2959 (change_annotation_level): Likewise.
2960 (push_prompt): Likewise.
2961 (pop_prompt): Likewise.
2962 (handle_stop_sig): Use get_prompt with a level.
2963 * top.c (command_loop): Use get_prompt with a level.
2964 (set_async_annotation_level): Use set_prompt with a level.
2965 (get_prefix): New function.
2966 (set_prefix): Ditto.
2967 (set_suffix): Ditto.
2968 (get_suffix): Ditto.
2969 (get_prompt): Accept a level argument.
2970 (set_prompt): Accept a level argument. Free old prompts. Set
2971 new_async_prompt if level is 0.
2972 (init_main): Use set_prompt with a level. Do not set
2973 new_async_prompt.
2974 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
2975 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
2976 Modify set_prompt, get_prompt to account for levels.
2977 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
2978 level.
2979 * python/python.c (before_prompt_hook): Use set_prompt.
2980
d26e3629
KY
29812011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
2982
2983 * defs.h: Add guard against inclusion in gdbserver.
2984 (struct ptid, ptid_t): Move to common/ptid.h.
2985 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
2986 xsnprintf, internal_error): Move to common/common-utils.h.
2987 (nomem): Delete.
2988 * gdb_assert.h: Move into common/ sub-directory.
2989 * gdb_locale.h: Ditto.
2990 * gdb_dirent.h: Ditto.
2991 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
2992 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
2993 Move into common/ptid.h.
2994 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
2995 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
2996 Change nomem to malloc_failure.
2997 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
2998 * utils.c (nomem): Rename to malloc_failure.
2999 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3000 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3001 (gdb_buildargv): Change nomem to malloc_failure.
3002 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3003 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3004 ptid_is_pid): Move into common/ptid.c.
3005 (initialize_infrun): Delete initialization of null_ptid and
3006 minus_one_ptid.
3007 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3008 linux_common_xfer_osdata.
3009 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3010 common/ptid.c and common/buffer.c.
3011 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3012 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3013 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3014 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3015 rules.
3016 * common/gdb_assert.h: New.
3017 * common/gdb_dirent.h: New.
3018 * common/gdb_locale.h: New.
3019 * common/buffer.c: New.
3020 * common/buffer.h: New.
3021 * common/ptid.c: New.
3022 * common/ptid.h: New.
3023 * common/xml-utils.c: New.
3024 * common/xml-utils.h: New.
3025 * common/common-utils.c: New.
3026 * common/common-utils.h: New.
3027 * common/linux-osdata.c: New.
3028 * common/linux-osdata.h: New.
3029 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3030 * config/arm/linux.mh (NATDEPFILES): Ditto.
3031 * config/i386/linux.mh (NATDEPFILES): Ditto.
3032 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3033 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3034 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3035 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3036 * config/mips/linux.mh (NATDEPFILES): Ditto.
3037 * config/pa/linux.mh (NATDEPFILES): Ditto.
3038 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3039 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3040 * config/s390/s390.mh (NATDEPFILES): Ditto.
3041 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3042 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3043 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3044
edc84990 30452011-07-21 Matt Rice <ratmice@gmail.com>
3046
3047 * NEWS: Add info macros and info definitions commands.
3048
3a7bf607
PM
30492011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3050
3051 * NEWS: Document Python prompt substitution hook.
3052
9b158ba0 30532011-07-18 Matt Rice <ratmice@gmail.com>
3054
3055 PR macros/12999
3056 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3057 * macrotab.c (foreach_macro): Ditto.
3058 (foreach_macro_in_scope): Ditto.
3059 * macrocmd.c (print_macro_callback): New function.
3060 (info_macro_command): Move some code to print_macro_definition.
3061 (print_macro_definition): New function.
3062 (print_one_macro): Add new arguments to callback.
3063 (info_definitions_command): New function.
3064 (info_macros_command): Ditto.
3065 (_initialize_macrocmd): Add info macros and info definitions commands.
3066 * symtab.c (add_macro_name): Add new arguments to callback.
3067
d17b6f81
PM
30682011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3069 Tom Tromey <tromey@redhat.com>
3070
3071 * top.c (set_prompt): Rewrite to free previous prompt, free
3072 asynch_new_prompt and set both on new prompts.
3073 * event-top.c (display_gdb_prompt): Add prompt substitution
3074 logic.
3075 * python/python.c (before_prompt_hook): New function.
3076
1364323a 30772011-07-20 Matt Rice <ratmice@gmail.com>
3078
3079 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3080 arguments to store_unsigned_integer.
3081
8b70b953
TT
30822011-07-20 Tom Tromey <tromey@redhat.com>
3083
6c83ed52
TT
3084 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3085 in some declaration-only cases.
3086
30872011-07-18 Tom Tromey <tromey@redhat.com>
3088
8b70b953
TT
3089 PR symtab/12984:
3090 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3091 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3092 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3093 <debug_type_section>: New field.
3094 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3095 (load_cu): Use appropriate section.
3096 (create_signatured_type_table_from_index): Add 'section'
3097 argument.
3098 (dwarf2_read_index): Only allow a single .debug_types section.
3099 (dw2_get_file_names): Use appropriate section.
3100 (read_type_comp_unit_head): Add 'section' argument.
3101 (create_debug_types_hash_table): Loop over all .debug_types
3102 sections.
3103 (init_cu_die_reader): Use appropriate section.
3104 (process_psymtab_comp_unit, load_partial_comp_unit)
3105 (load_full_comp_unit, read_die_and_children, find_partial_die)
3106 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3107 (lookup_signatured_type_at_offset): Add 'section' argument.
3108 (read_signatured_type_at_offset): Add 'sect' argument.
3109 (read_signatured_type): Use appropriate section.
3110 (set_die_type, get_die_type_at_offset): Update.
3111 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3112 VEC.
3113 (write_psymtabs_to_index): Don't allow index with more than one
3114 .debug_types section.
3115
918dd910
JK
31162011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 Fix crash if referenced CU is aged out.
3119 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3120 xfree of block.data.
3121 (indirect_pieced_value): New variable back_to, use to for xfree of
3122 baton.data.
3123 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3124 block.data.
3125 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3126 (load_cu): New function from ...
3127 (dw2_do_instantiate_symtab): ... the code here ...
3128 (process_full_comp_unit): ... and here.
3129 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3130 retval.data.
3131
0e37a63c
JK
31322011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3135 type.
3136
7e324e48
GB
31372011-07-19 Gary Benson <gbenson@redhat.com>
3138
3139 * infrun.c (struct execution_control_state): New member
3140 stop_func_filled_in.
3141 (clear_stop_func, fill_in_stop_func): New functions.
3142 (handle_inferior_event): Call clear_stop_func rather than
3143 manipulating the execution control state directly.
3144 Call fill_in_stop_func lazily as required rather than
3145 directly calling find_pc_partial_function in all cases.
3146
d48323d8
TT
31472011-07-18 Tom Tromey <tromey@redhat.com>
3148
3149 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3150 checking for variable-sized array.
3151
40591b7d
JCD
31522011-07-18 Jean-Charles Delay <delay@adacore.com>
3153
3154 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3155 of supported languages.
3156 * varobj.c: Add top definitions and basic implementation of the
3157 following callbacks: ada_number_of_children, ada_name_of_variable,
3158 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3159 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3160 (languages): Register Ada-specific callbacks.
3161 (variable_language): Add the Ada case in the language setter switch.
3162
2e424e08
JK
31632011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3166
9e8b7a03
JK
31672011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3168
3169 Code cleanup.
3170 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3171 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3172 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3173 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3174 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3175 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3176 (struct dwarf_expr_context_funcs): New, move here methods from ...
3177 (struct dwarf_expr_context): ... here. New fields funcs.
3178 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3179 (dwarf_expr_ctx_funcs): New.
3180 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3181 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3182 (needs_frame_ctx_funcs): New.
3183 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3184
2b1260ab
FM
31852011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3186
3187 * MAINTAINERS (Write After Approval): Add myself to the list.
3188
8bd90839
FM
31892011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3190
3191 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3192 that CIE pointer of an FDE really points to a CIE .
3193
953b98d1
HZ
31942011-07-15 Hui Zhu <teawater@gmail.com>
3195
3196 * remote.c (remote_get_trace_status): Add comments.
3197
c8f2448a
JK
31982011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 Code cleanup - constify struct lval_funcs.
3201 * dwarf2loc.c (pieced_value_funcs): Make it const.
3202 * infrun.c (siginfo_value_funcs): Likewise.
3203 * opencl-lang.c (opencl_value_funcs): Likewise.
3204 * valops.c (value_assign, value_ind): Make the funcs variable const.
3205 * value.c (struct value): Make location.computed.funcs target const.
3206 Rearrange the comments.
3207 (allocate_computed_value): Make the funcs parameter target const.
3208 (value_computed_funcs): Return the funcs target const.
3209 (value_free, value_copy, set_value_component_location): Make the funcs
3210 variable const.
3211 * value.h (allocate_computed_value): Make the funcs parameter target
3212 const.
3213 (value_computed_funcs): Return the funcs target const.
3214 * windows-tdep.c (tlb_value_funcs): Make it const.
3215
f652de6f
HZ
32162011-07-14 Hui Zhu <teawater@gmail.com>
3217
3218 * remote.c (remote_get_trace_status): Initialize p.
3219
67f41397
JK
32202011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3221
3222 Work around kgdb.
3223 * remote.c (remote_get_trace_status): New variable ex. Put
3224 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3225
d1b66e6d
TT
32262011-07-13 Tom Tromey <tromey@redhat.com>
3227
3228 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3229 value_from_contents for final conversion.
3230
1632a688
JK
32312011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3232
3233 Code cleanup.
3234 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3235 Indent prototypes so they do not get into tags.
3236
a7035dbb
JK
32372011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3238
3239 Code cleanup making also optimized out values lazy.
3240 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3241 allocate_optimized_out_value. Twice.
3242 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3243 * findvar.c (read_var_value): Likewise.
3244 * value.c (allocate_optimized_out_value): New function.
3245 * value.h (allocate_optimized_out_value): New declaration.
3246
d07ed419
JK
32472011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3248
3249 Fix occasional crash of CTRL-C during DWARF read in.
3250 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3251
86d31898
TT
32522011-07-11 Tom Tromey <tromey@redhat.com>
3253
3254 * regcache.c (struct regcache_descr): Fix typo.
3255 * i387-tdep.c (i387_supply_xsave): Fix typo.
3256
2ab95328
TT
32572011-07-11 Tom Tromey <tromey@redhat.com>
3258
3259 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3260 (read_file_scope, read_type_unit_scope): Use it.
3261
04ad99e6
JK
32622011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3263
3264 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3265 `int'.
3266
713389e0
PM
32672011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3268
3269 PR python/12438
3270 * python/python.c: Set gdbpy_should_print_stack default to off.
3271 (set_python): Deprecate maint set python print-stack to
3272 class_deprecate.
3273 (_initialize_python): Deprecate maint set/show python print-stack.
3274 Add new prefix command, python. Add new setting, print-backtrace.
3275 * NEWS: Document set python print-stack. Document default change.
3276
754eadd1
PM
32772011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3278
3279 * python/py-inferior.c (infpy_dealloc): New function.
3280 (inferior_to_inferior_object): Return a new object, or a
3281 new reference to the existing object.
3282 (find_thread_object): Cleanup references to inferior.
3283 (delete_thread_object): Ditto.
3284 * python/py-infthread.c (create_thread_object): Do not increment
3285 inferior reference count.
3286
5e44ecb3
TT
32872011-07-08 Tom Tromey <tromey@redhat.com>
3288
3289 * dwarf2loc.c (locexpr_regname): New function.
3290 (locexpr_describe_location_piece): Use it.
3291 (disassemble_dwarf_expression): Add per_cu argument. Use
3292 locexpr_regname.
3293 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3294 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3295 New cases.
3296 (locexpr_describe_location_1): Add per_cu argument.
3297 (locexpr_describe_location): Update.
3298 (loclist_describe_location): Update.
3299
e0e9434c
TT
33002011-07-08 Tom Tromey <tromey@redhat.com>
3301
3302 * dwarf2expr.c (execute_stack_op): Add QUIT.
3303
26afc0d7
HZ
33042011-07-07 Hui Zhu <teawater@gmail.com>
3305
3306 Revert:
3307 2011-07-06 Hui Zhu <teawater@gmail.com>
3308 * remote.c (remote_start_remote): Add TRY_CATCH for
3309 remote_get_trace_status.
3310 * tracepoint.c (disconnect_tracing): Ditto.
3311
a40a111f
AB
33122011-07-07 Andrew Burgess <aburgess@broadcom.com>
3313
3314 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3315 variables as signed, not unsigned.
3316
e2bd3b15
JB
33172011-07-06 Joel Brobecker <brobecker@adacore.com>
3318
3319 * jit.c (jit_inferior_init): Reformat forward declaration.
3320
e3d961fe 33212011-07-06 Matt Rice <ratmice@gmail.com>
3322
3323 * MAINTAINERS (Write After Approval): Add myself to the list.
3324
0f3428f0
HZ
33252011-07-06 Hui Zhu <teawater@gmail.com>
3326
3327 * remote.c (remote_start_remote): Add TRY_CATCH for
3328 remote_get_trace_status.
3329 * tracepoint.c (disconnect_tracing): Ditto.
3330
fc9f3a69
TT
33312011-07-05 Tom Tromey <tromey@redhat.com>
3332
3333 * symtab.c (operator_chars): Now static.
3334 * linespec.c (operator_chars): Don't declare.
3335
26e519b9
TJB
33362011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3337
3338 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3339
eb2a6f42
TT
33402011-07-05 Tom Tromey <tromey@redhat.com>
3341
3342 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3343 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3344 (TYPE_CPLUS_REALLY_JAVA): New macro.
3345 * dwarf2read.c (process_structure_scope): Set
3346 TYPE_CPLUS_REALLY_JAVA.
3347
21083d0f 33482011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3349
3350 * ada-lang.c: Fix typos.
3351 * amd64-tdep.c: Likewise.
3352 * breakpoint.c: Likewise.
3353 * cli/cli-decode.c: Likewise.
3354 * findcmd.c: Likewise.
3355 * inline-frame.c: Likewise.
3356 * mi/mi-main.c: Likewise.
3357 * minsyms.c: Likewise.
3358 * monitor.c: Likewise.
3359 * monitor.h: Likewise.
3360 * prologue-value.c: Likewise.
3361 * reverse.c: Likewise.
3362 * s390-tdep.c: Likewise.
3363
3b2a0cf2
JB
33642011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3365
3366 * jit.c (jit_inferior_init): Forward declare.
3367 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3368
efae1d92
JB
33692011-07-04 Joel Brobecker <brobecker@adacore.com>
3370
3371 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3372
6040a59d
JB
33732011-07-04 Tristan Gingold <gingold@adacore.com>
3374
3375 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3376 (tcb_fieldno): Add activation_link field.
3377 (get_known_tasks_addr): Moved and rewritten.
3378 (get_tcb_types_info): Set activation_link field.
3379 (read_known_tasks_array): Add parameter. Rewritten.
3380 (read_known_tasks_list): New function.
3381 (read_known_tasks): New function.
3382 (ada_build_task_list): Call read_known_tasks instead of
3383 read_known_tasks_array.
3384 * ravenscar-thread.c: Add first_task_name constant.
3385 (has_ravenscar_runtime): Check for task list too.
3386
cb741e45
JB
33872011-07-04 Tristan Gingold <gingold@adacore.com>
3388
3389 * ada-tasks.c: Renames fieldno to actb_fieldno.
3390 (ada_get_task_number): Indentation.
3391 (get_tcb_types_info): Remove all parameters. Write directly
3392 the globals.
3393 (ptid_from_atcb_common): Adjust.
3394 (read_atcb): Adjust.
3395
7475b06c
TJB
33962011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3397
3398 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3399
15230f37
TJB
34002011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3401
3402 * ui-out.c (ui_out_field_core_addr): Mention that the function
3403 description is in the header file.
3404 * ui-out.h (ui_out_field_core_addr): Document function.
3405
65743aba
TJB
34062011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3407
3408 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3409 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3410
c37a5aab
TJB
34112011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3412
3413 * symtab.c (expand_line_sal): Remove empty line.
3414
59adf69e
TS
34152011-07-04 Thomas Schwinge <thomas@schwinge.name>
3416
3417 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3418 same way as ELFOSABI_NONE.
3419 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3420
e5dd4106
TJB
34212011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3422
3423 * breakpoint.c: Fix typos in comments.
3424 * linespec.c: Likewise.
3425 * symtab.c: Likewise.
3426
d40102a1
JB
34272011-07-04 Joel Brobecker <brobecker@adacore.com>
3428
3429 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3430 section in separate object files.
3431
2f741504
JK
34322011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 Fix false GCC warning.
3435 * linespec.c (decode_line_1): Initialize values.
3436
418c7cf7
JK
34372011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3438
3439 * linespec.c (find_method): Accept the function type automatically only
3440 if it was specified with parameter types.
3441
3d50dd94
JK
34422011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3443
3444 Stop on first linespec terminator instead of eating what we can.
3445 * linespec.c (is_linespec_boundary): New function.
3446 (name_end): Remove function.
3447 (keep_name_info): New parameter on_boundary, replace the body.
3448 (decode_line_1): Provide the parameter to keep_name_info.
3449 (decode_compound): Likewise. Drop the trailing java return type
3450 handling. Twice.
3451
dcf9f4ab
JK
34522011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 Fall back linespec to minimal symbols.
3455 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3456 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3457 (find_method, symbol_found): Change error to cplusplus_error.
3458
3f542ed1
JK
34592011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3460
bc68c4e5 3461 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3462
900e11f9
JK
34632011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3464 Tom Tromey <tromey@redhat.com>
3465
3466 * dwarf2read.c (check_physname): New variable.
3467 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3468 (show_check_physname): New function.
3469 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3470
2301925d
JB
34712011-07-01 Joel Brobecker <brobecker@adacore.com>
3472
3473 * machoread.c (macho_symfile_read): Delete OBE comment.
3474
38947cca
JB
34752011-07-01 Joel Brobecker <brobecker@adacore.com>
3476
3477 * machoread.c (struct macho_oso_data): Delete.
3478 (current_oso): Delete.
3479 (macho_relocate_common_syms): New function, mostly extracted
3480 out of
3481 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3482 Remove code that sets and unset current_oso.
3483 (macho_symfile_relocate): Delete handling of common symbols,
3484 now moved to macho_relocate_common_syms.
3485
a7aa0d73
JB
34862011-07-01 Joel Brobecker <brobecker@adacore.com>
3487
3488 * darwin-nat.c (darwin_ptrace): Add documentation.
3489 Set errno to zero before calling ptrace. If ptrace returns
3490 -1 and errno is zero, then change then return zero.
3491 (darwin_kill_inferior): Issue a warning instead of triggering
3492 a failed assertion when the PT_KILL ptrace operations returned
3493 nonzero.
3494
5e9bc145
JB
34952011-07-01 Joel Brobecker <brobecker@adacore.com>
3496
3497 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3498 only when inf->private->no_ptrace.
3499
00eb2c4a
JB
35002011-07-01 Joel Brobecker <brobecker@adacore.com>
3501
3502 * ada-lang.c (print_it_exception): Print temporary catchpoints
3503 as "Temporary catchpoint".
3504 (print_mention_exception): Likewise.
3505
127c81bc
TT
35062011-07-01 Tom Tromey <tromey@redhat.com>
3507
3508 * jv-lang.c (java_language_defn): Use java_printchar,
3509 java_printstr.
3510 (java_get_encoding): New function.
3511 (java_emit_char): Use generic_emit_char.
3512 (java_printchar): New function.
3513 (java_printstr): Likewise.
3514
25552254
JB
35152011-07-01 Joel Brobecker <brobecker@adacore.com>
3516
3517 * ada-typeprint.c (print_record_type): If unable to decode
3518 the name of the parent type, use the encoded name.
3519
d2d43431
JB
35202011-07-01 Jean-Charles Delay <delay@adacore.com>
3521
3522 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3523 pointer to constrained packed array type output.
3524 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3525 packed array output.
3526
54ae186f
JB
35272011-07-01 Jean-Charles Delay <delay@adacore.com>
3528
3529 * ada-typeprint.c (print_array_type): removed if condition on show
3530 being negative for bounds printing.
3531
8f17729f
JB
35322011-07-01 Joel Brobecker <brobecker@adacore.com>
3533
3534 * ada-lang.c (ada_identical_enum_types_p): New function.
3535 (symbols_are_identical_enums): New function.
3536 (remove_extra_symbols): Do nothing if NSYMS < 2.
3537 Use symbols_are_identical_enums.
3538
f5aa6869
JB
35392011-07-01 Joel Brobecker <brobecker@adacore.com>
3540
3541 * ada-valprint.c (ada_value_print): Handle typedefs.
3542
8f465ea7
JB
35432011-07-01 Joel Brobecker <brobecker@adacore.com>
3544
3545 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3546
828292f2
JB
35472011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3548
3549 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3550 (decode_constrained_packed_array): Likewise.
3551 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3552
18920c42
JB
35532011-07-01 Joel Brobecker <brobecker@adacore.com>
3554
3555 * ada-exp.y (convert_char_literal): Handle typedef types.
3556
c90092fe
JB
35572011-07-01 Joel Brobecker <brobecker@adacore.com>
3558
3559 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3560
f748fb40
TT
35612011-06-30 Tom Tromey <tromey@redhat.com>
3562
3563 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3564 * valops.c (find_overload_match): Call do_cleanups on early exit
3565 path.
3566 * solib.c (solib_find): Call do_cleanups on early exit path.
3567
3bb47e8b
TT
35682011-06-30 Tom Tromey <tromey@redhat.com>
3569
3570 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3571 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3572 return paths. Defer final do_cleanups until last return.
3573 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3574 early return.
3575
4727bad3
TT
35762011-06-30 Tom Tromey <tromey@redhat.com>
3577
3578 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3579
bb361dbf
AB
35802011-06-30 Andrew Burgess <aburgess@broadcom.com>
3581
3582 * MAINTAINERS (Write After Approval): Add myself to the list.
3583
e0d00bc7
JK
35842011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3585
3586 Disable epilogue unwinders on recent GCCs.
3587 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3588 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3589 * dwarf2read.c (process_full_comp_unit): Initialize
3590 EPILOGUE_UNWIND_VALID.
3591 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3592 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3593 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3594
4632c0d0
JK
35952011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3596
3597 Code cleanup - reformatting.
3598 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3599 (producer_is_gcc_ge_4): ... here, change the return value.
3600 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3601 interpretation.
3602
32019081
JK
36032011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3604
3605 Fix non-only rename list for Fortran modules import.
3606 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3607 cp_add_using_directive caller.
3608 (cp_add_using_directive): New parameter excludes, describe it. New
3609 variables ix and param. Compare if also excludes match. Allocate NEW
3610 with variable size, initialize EXCLUDES there.
3611 (cp_lookup_symbol_imports): New variable excludep, test
3612 current->EXCLUDES with it.
3613 * cp-support.h: Include vec.h.
3614 (struct using_direct): New field excludes, describe it.
3615 (DEF_VEC_P (const_char_ptr)): New.
3616 (cp_add_using_directive): New parameter excludes.
3617 * defs.h (const_char_ptr): New typedef.
3618 * dwarf2read.c (read_import_statement): New variables child_die,
3619 excludes and cleanups, read in excludes.
3620 (read_namespace): Adjust the cp_add_using_directive caller.
3621
70c622a3
JK
36222011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3623
3624 Code cleanup.
3625 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3626 negative comparisons.
3627
39c4d40a
TT
36282011-06-29 André Pönitz <andre.poenitz@nokia.com>
3629
3630 * mi/mi-main.c (mi_cmd_list_features): Emit
3631 breakpoint-notifications.
3632
3b2b8fea
TT
36332011-06-29 Tom Tromey <tromey@redhat.com>
3634
3635 PR fortran/10036:
3636 * valprint.h (generic_emit_char, generic_printstr): Declare.
3637 * valprint.c (wchar_printable, append_string_as_wide)
3638 (print_wchar): Move from c-lang.c.
3639 (generic_emit_char): New function; mostly taken from c_emit_char.
3640 (generic_printstr): New function; mostly taken from c_printstr.
3641 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3642 represented as arrays.
3643 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3644 type.
3645 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3646 identically to TYPE_CODE_INT.
3647 * f-lang.c (f_get_encoding): New function.
3648 (f_emit_char): Use generic_emit_char.
3649 (f_printchar): Replace comment.
3650 (f_printstr): Use generic_printstr.
3651 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3652 "character" types specially.
3653 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3654 for Fortran.
3655 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3656 Move to valprint.c
3657 (c_emit_char): Call generic_emit_char.
3658 (c_printstr): Call generic_printstr.
3659
168e6d44
GB
36602011-06-29 Gary Benson <gbenson@redhat.com>
3661
3662 * breakpoint.c (bpstat_what): Removed duplicated case.
3663
1c033f8c
TT
36642011-06-28 Tom Tromey <tromey@redhat.com>
3665
3666 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3667
5fe41fbf
TT
36682011-06-27 Tom Tromey <tromey@redhat.com>
3669
3670 * valops.c (find_overload_match): Call do_cleanups before early
3671 return.
3672 * top.c (execute_command): Call do_cleanups before early return.
3673 (command_loop): Likewise.
3674 * stack.c (backtrace_command): Make a null cleanup early. Don't
3675 conditionally call do_cleanups.
3676 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3677 TRY_CATCH.
3678 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3679 so cleanups are always run.
3680 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3681 * findcmd.c (parse_find_args): Call do_cleanups on early return
3682 path.
3683 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3684 Don't conditionally call do_cleanups.
3685 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3686 later.
3687
e26bd57d
EB
36882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3689
3690 * MAINTAINERS (Write After Approval): Use default email address.
3691
6c3097fc
JB
36922011-06-27 Joel Brobecker <brobecker@adacore.com>
3693
3694 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3695
369c397b
JB
36962011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3697
3698 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3699 saved_regs_mask and copied_regs_mask fields.
3700 (sparc_record_save_insn): New prototype.
3701 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3702 (sparc_record_save_insn): New function.
3703 (sparc_analyze_prologue): Add head comment. Recognize store insns
3704 of call-saved registers. Use OFFSET consistently. Recognize flat
3705 frames and cache their settings.
3706 (sparc32_skip_prologue): Handle flat frames.
3707 (sparc_frame_cache): Add frame_offset to the base address.
3708 (sparc32_frame_cache): Adjust to new frame description.
3709 (sparc32_frame_prev_register): Likewise.
3710 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3711 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3712 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3713 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3714 frame by calling sparc_record_save_insn.
3715 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3716 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3717 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3718
b315ab21
TG
37192011-06-27 Tristan Gingold <gingold@adacore.com>
3720
3721 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3722 field by map_addr and map_len.
3723 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3724 (munmap_section_buffer): Likewise.
3725
ddd49eee
TT
37262011-06-24 Tom Tromey <tromey@redhat.com>
3727
3728 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3729 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3730 * python/python.c (gdbpy_parameter): Make 'arg' const.
3731 (execute_gdb_command): Likewise.
3732 (gdbpy_decode_line): Likewise. Copy it.
3733 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3734 (gdbpy_write): Make 'arg' const.
3735 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3736 const.
3737 (gdbpy_lookup_type): Likewise.
3738 * python/py-prettyprint.c (print_children): Make 'name' const.
3739 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3740 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3741 Py_ssize_t.
3742 * python/py-function.c (fnpy_init): Make 'name' const.
3743 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3744 (gdbpy_string_to_argv): Make 'input' const.
3745 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3746 it.
3747 * gdbtypes.h (lookup_typename): Update.
3748 * gdbtypes.c (lookup_typename): Make 'name' const.
3749 (lookup_struct): Likewise.
3750 (lookup_union): Likewise.
3751 (lookup_enum): Likewise.
3752
5998129b
TT
37532011-06-24 Tom Tromey <tromey@redhat.com>
3754
3755 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3756 gdb_thread_db.h. Move all common/ entries to be together.
3757 (TAGS): Don't depend on DEPFILES.
3758
6e586cc5
YQ
37592011-06-23 Yao Qi <yao@codesourcery.com>
3760
3761 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3762 * remote.c (remote_start_remote): ... here.
3763 * monitor.c (monitor_open): ... here.
3764
86c3c1fc
AB
37652011-06-23 Andrew Burgess <aburgess@broadcom.com>
3766
3767 * gdbtypes.c (append_composite_type_field_aligned): Fix
3768 calculation of bit position based on alignment.
3769
28010a5d
PA
37702011-06-22 Pedro Alves <pedro@codesourcery.com>
3771
3772 * breakpoint.c (bpstat_stop_status): Call the check_status
3773 breakpoint_ops method.
3774 (print_one_breakpoint_location): Also print the condition for Ada
3775 exception catchpoints.
3776 (allocate_bp_location): New, factored out from
3777 allocate_bp_location.
3778 (allocate_bp_location): Adjust. Call the owner breakpoint's
3779 allocate_location method, if there is one.
3780 (free_bp_location): Call the locations's dtor method, if there is
3781 one.
3782 (init_raw_breakpoint_without_location): New breakpoint_ops
3783 parameter. Use it.
3784 (set_raw_breakpoint_without_location): Adjust.
3785 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3786 (set_raw_breakpoint): Adjust.
3787 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3788 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3789 re_set and check_status methods.
3790 (init_catchpoint): Don't memset, initialize thread, addr_string
3791 and enable_state. Pass the ops down to init_raw_breakpoint.
3792 (install_catchpoint): Rename to ...
3793 (install_breakpoint): ... this, and make extern.
3794 (create_fork_vfork_event_catchpoint): Adjust.
3795 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3796 re_set and check_status methods.
3797 (create_syscall_event_catchpoint): Adjust.
3798 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3799 (masked_watchpoint_breakpoint_ops): Install NULL
3800 allocate_location, re_set and check_status methods.
3801 (catch_exec_command_1): Adjust.
3802 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3803 re_set and check_status methods.
3804 (create_ada_exception_breakpoint): Rename to ...
3805 (init_ada_exception_breakpoint): ... this. Add a struct
3806 breakpoint parameter, and delete the exp_string, cond_string and
3807 cond parameters. Use init_raw_breakpoint, and don't install or
3808 mention the breakpoint yet. Don't clear breakpoint fields that
3809 init_raw_breakpoint already clears.
3810 (re_set_breakpoint): Delete, split into ...
3811 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3812 functions.
3813 (breakpoint_re_set_one): Call the breakpoint's
3814 breakpoint_ops->re_set implementation, if there's one. Adjust.
3815 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3816 (struct bp_location_ops): New type.
3817 (struct bp_location): New field `ops'.
3818 (struct breakpoint_ops): New `allocate_location', `re_set' and
3819 `check_status' fields. Make `breakpoint_hit''s description match
3820 reality.
3821 (init_bp_location): Declare.
3822 (breakpoint_re_set_default): Declare.
3823 (create_ada_exception_breakpoint): Rename to ...
3824 (init_ada_exception_breakpoint): ... this. Add a struct
3825 breakpoint parameter, and delete the exp_string, cond_string and
3826 cond parameters.
3827 (install_breakpoint): Declare.
3828 * ada-lang.c: Include exceptions.h.
3829 <Ada exceptions description>: Update.
3830 (struct ada_catchpoint_location): New type.
3831 (ada_catchpoint_location_dtor): New function.
3832 (ada_catchpoint_location_ops): New global.
3833 (ada_catchpoint): New type.
3834 (create_excep_cond_exprs): New function.
3835 (dtor_exception, allocate_location_exception, re_set_exception)
3836 (should_stop_exception, check_status_exception): New functions.
3837 (print_one_exception, print_mention_exception)
3838 (print_recreate_exception): Adjust.
3839 (dtor_catch_exception, allocate_location_catch_exception)
3840 (re_set_catch_exception, check_status_catch_exception): New
3841 functions.
3842 (catch_exception_breakpoint_ops): Install them.
3843 (dtor_catch_exception_unhandled)
3844 (allocate_location_catch_exception_unhandled)
3845 (re_set_catch_exception_unhandled)
3846 (check_status_catch_exception_unhandled): New functions.
3847 (catch_exception_unhandled_breakpoint_ops): Install them.
3848 (dtor_catch_assert, allocate_location_catch_assert)
3849 (re_set_catch_assert, check_status_catch_assert): New functions.
3850 (catch_assert_breakpoint_ops): Install them.
3851 (ada_exception_catchpoint_p): Delete.
3852 (catch_ada_exception_command_split)
3853 (ada_exception_catchpoint_cond_string): Rename exp_string
3854 parameter to excep_string. Adjust.
3855 (ada_parse_catchpoint_condition): Delete.
3856 (ada_exception_sal): Rename the exp_string parameter to
3857 excep_string. Delete the cond_string and cond parameters.
3858 Adjust.
3859 (ada_decode_exception_location): Rename the exp_string parameter
3860 to excep_string. Delete the cond_string and cond parameters.
3861 Adjust.
3862 (create_ada_exception_catchpoint): New function.
3863 (catch_ada_exception_command, ada_decode_assert_location)
3864 (catch_assert_command): Adjust.
3865 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3866
9ac4176b
PA
38672011-06-22 Pedro Alves <pedro@codesourcery.com>
3868
3869 * ada-lang.c: Include arch-utils.h.
3870 (ada_decode_exception_location): Make static.
3871 (catch_ada_exception_command): Moved here from breakpoint.c.
3872 (ada_decode_assert_location): Make static.
3873 (catch_assert_command): Moved here from breakpoint.c.
3874 (_initialize_ada_lang): Install the exception and assert
3875 catchpoint commands here.
3876 * ada-lang.h (ada_decode_exception_location)
3877 (ada_decode_assert_location): Delete declarations.
3878 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3879 breakpoint.h.
3880 (create_ada_exception_breakpoint): Make extern.
3881 (catch_ada_exception_command, catch_assert_command): Moved to
3882 ada-lang.c.
3883 (add_catch_command): Make extern.
3884 (_initilize_breakpoint): Don't install the exception and assert
3885 catchpoint commands here.
3886 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3887 breakpoint.c
3888 (add_catch_command, create_ada_exception_breakpoint): Declare.
3889
c56053d2
PA
38902011-06-22 Pedro Alves <pedro@codesourcery.com>
3891
3892 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3893 the breakpoint to the breakpoint chain here.
3894 (set_raw_breakpoint_without_location): Add the breakpoint to the
3895 breakpoint chain here.
3896 (init_raw_breakpoint): Adjust comments.
3897 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3898 here.
3899 (init_catchpoint): Don't set the catchpoint's breakpoint number
3900 here.
3901 (install_catchpoint): New function.
3902 (create_fork_vfork_event_catchpoint)
3903 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3904 use install_catchpoint.
3905
d2f3fc74
PA
39062011-06-22 Pedro Alves <pedro@codesourcery.com>
3907
3908 * breakpoint.c (create_catchpoint_without_mention)
3909 (create_catchpoint): Delete.
3910
b4d90040
PA
39112011-06-22 Pedro Alves <pedro@codesourcery.com>
3912
3913 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3914 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3915 reference to exec_pathname.
3916 (struct exec_catchpoint): New type.
3917 (dtor_catch_exec): New function.
3918 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3919 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3920 (catch_exec_command_1): Adjust to use init_catchpoint.
3921 (delete_breakpoint): Remove reference to exec_pathname.
3922
be5c67c1
PA
39232011-06-22 Pedro Alves <pedro@codesourcery.com>
3924
3925 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3926 (struct breakpoint): Delete field `syscalls_to_be_caught'.
3927 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3928 reference to syscalls_to_be_caught.
3929 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3930 NULL `dtor'.
3931 (struct syscall_catchpoint): New type.
3932 (dtor_catch_syscall): New function.
3933 (insert_catch_syscall, remove_catch_syscall)
3934 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3935 (print_recreate_catch_syscall): Adjust.
3936 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3937 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3938 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3939 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3940 (masked_watchpoint_breakpoint_ops)
3941 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3942 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3943 there is one. Remove references to syscalls_to_be_caught.
3944 (catching_syscall_number): Adjust.
3945 * ada-lang.c (catch_exception_breakpoint_ops)
3946 (catch_exception_unhandled_breakpoint_ops)
3947 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
3948
e29a4733
PA
39492011-06-22 Pedro Alves <pedro@codesourcery.com>
3950
3951 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
3952 field.
3953 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3954 reference to forked_inferior_pid.
3955 (struct fork_catchpoint): New type.
3956 (breakpoint_hit_catch_fork, print_it_catch_fork)
3957 (print_one_catch_fork, breakpoint_hit_catch_vfork)
3958 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
3959 (create_fork_vfork_event_catchpoint): Adjust to use
3960 init_catchpoint.
3961
346774a9
PA
39622011-06-22 Pedro Alves <pedro@codesourcery.com>
3963
3964 * breakpoint.c (add_to_breakpoint_chain)
3965 (init_raw_breakpoint_without_location): New functions, factored
3966 out from ...
3967 (set_raw_breakpoint_without_location): ... this one.
3968 (init_raw_breakpoint): New function, factored out from
3969 set_raw_breakpoint and adjusted to use
3970 init_raw_breakpoint_without_location.
3971 (set_raw_breakpoint): Adjust.
3972 (init_catchpoint): New function, factored out from
3973 create_catchpoint_without_mention and adjusted to use
3974 init_raw_breakpoint.
3975 (create_catchpoint_without_mention): Adjust.
3976
c38c4bc5
TT
39772011-06-22 Tom Tromey <tromey@redhat.com>
3978
3979 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
3980 argument of 0 specially.
3981
b138ce37
YQ
39822011-06-22 Yao Qi <yao@codesourcery.com>
3983
3984 * infrun.c (handle_inferior_event): Remove write-only local variable
3985 `sw_single_step_trap_p'.
3986
03de6823
TT
39872011-06-20 Tom Tromey <tromey@redhat.com>
3988
3989 * symtab.c (lookup_language_this): End loop if block is NULL.
3990
66a17cb6
TT
39912011-06-17 Tom Tromey <tromey@redhat.com>
3992
3993 * valops.c (value_of_this): Use lookup_language_this.
3994 * symtab.h (lookup_language_this): Declare.
3995 * symtab.c (lookup_language_this): New function.
3996 (lookup_symbol_aux): Use lookup_language_this.
3997 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
3998
7518bff5
TT
39992011-06-17 Tom Tromey <tromey@redhat.com>
4000
4001 * value.h (value_of_this): Update.
4002 (value_of_local): Remove.
4003 * valops.c (value_of_this): Rename from value_of_local. Change
4004 parameters.
4005 * p-exp.y (exp): Update.
4006 (variable): Likewise.
4007 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4008
aee28ec6
TT
40092011-06-17 Tom Tromey <tromey@redhat.com>
4010
4011 * valops.c (value_of_local): Complain if NAME is NULL.
4012 * std-operator.def (OP_OBJC_SELF): Remove.
4013 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4014 * objc-exp.y (name_not_typename): Use OP_THIS.
4015 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4016 name for "this".
4017 <OP_OBJC_SELF>: Remove.
4018 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4019
eed8f803
TG
40202011-06-16 Tristan Gingold <gingold@adacore.com>
4021
4022 * python/py-events.h (gdb_py_events): Make it extern.
4023 * python/py-evtregistry.c (gdb_py_events): Declare.
4024
864ac8a7
HZ
40252011-06-16 Hui Zhu <teawater@gmail.com>
4026
4027 * remote.c (remote_trace_set_readonly_regions): Add check for
4028 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4029 output warning.
4030
ef7e8358
UW
40312011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4032
4033 * arm-linux-tdep.c: Include "auxv.h".
4034 (AT_HWCAP): Define.
4035 (ARM_LINUX_SIZEOF_VFP): Define.
4036 (arm_linux_supply_vfp): New function.
4037 (arm_linux_collect_vfp): Likewise.
4038 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4039 (arm_linux_fpa_regset_sections): New variable.
4040 (arm_linux_vfp_regset_sections): Likewise.
4041 (arm_linux_core_read_description): New function.
4042 (arm_linux_init_abi): Install arm_linux_core_read_description and
4043 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4044 appropriate for the architecture.
4045 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4046 (tdesc_arm_with_m): Declare.
4047 (tdesc_arm_with_iwmmxt): Likewise.
4048 (tdesc_arm_with_vfpv2): Likewise.
4049 (tdesc_arm_with_vfpv3): Likewise.
4050 (tdesc_arm_with_neon): Likewise.
4051 * arm-linux-nat.c: Move features/*.c includes ...
4052 * arm-tdep.c: ... here.
4053 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4054 target description data structures ...
4055 * arm-tdep.c (_initialize_arm_tdep): ... here.
4056 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4057 HWCAP_VFPv3D16): Move definitions ...
4058 * arm-linux-tdep.h: ... here.
4059
c2fa21f1
HZ
40602011-06-15 Hui Zhu <teawater@gmail.com>
4061
4062 * remote.c (remote_trace_set_readonly_regions): Add a check for
4063 target_buf_size.
4064
dd707e8e
TT
40652011-06-14 Tom Tromey <tromey@redhat.com>
4066
4067 * coffread.c (coffread_objfile): Rename from current_objfile.
4068 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4069 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4070
86cc0029
TT
40712011-06-14 Tom Tromey <tromey@redhat.com>
4072
4073 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4074 (class_symtab): Remove.
4075 (jv_dynamics_progspace_key): New global.
4076 (jv_per_objfile_free): Reset program space data. Update assert.
4077 Don't clear globals.
4078 (get_dynamics_objfile): Use and set program space data.
4079 (get_java_class_symtab): Use get_dynamics_objfile.
4080 (add_class_symbol): Likewise.
4081 (java_link_class_type): Likewise.
4082 (java_object_type, jv_clear_object_type, set_java_object_type):
4083 Remove.
4084 (get_java_object_type): Update. Don't cache result.
4085 (is_object_type): Don't call set_java_object_type.
4086 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4087 initialize jv_dynamics_progspace_key.
4088
91a81f69
TT
40892011-06-14 Tom Tromey <tromey@redhat.com>
4090
4091 * symtab.h (current_objfile): Don't declare.
4092 * objfiles.h (current_objfile): Don't declare.
4093 * objfiles.c (current_objfile): Remove.
4094 * mdebugread.c (current_objfile): New file-scope global.
4095 * dbxread.c (current_objfile): New file-scope global.
4096 * coffread.c (current_objfile): New file-scope global.
4097
dc7eb48e
PA
40982011-06-13 Pedro Alves <pedro@codesourcery.com>
4099
4100 * top.h (line): Rename to ...
4101 (saved_command_line): ... this.
4102 (linesize): Rename to ...
4103 (saved_command_line_size): ... this.
4104 * top.c (line): Rename to ...
4105 (saved_command_line): ... this.
4106 (linesize): Rename to ...
4107 (saved_command_line_size): ... this.
4108 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4109 * event-top.c (command_line_handler): Adjust.
4110 * main.c (captured_main): Adjust.
4111
0d6c2135
MK
41122011-06-12 Mark Kettenis <kettenis@gnu.org>
4113
4114 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4115 get_frame_func instead of get_frame_pc to determine the code
4116 address used to construct the frame ID.
4117 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4118 (i386_epilogue_frame_this_id): Likewise.
4119 (i386_epilogue_frame_prev_register): New function.
4120 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4121 (i386_stack_tramp_frame_sniffer): Fix coding style.
4122 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4123 (i386_gdbarch_init): Fix comments.
4124
8bbdd3f4
MK
41252011-06-12 Mark Kettenis <kettenis@gnu.org>
4126
4127 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4128 instruction when walking back through the instruction stream.
4129
533a737e
JK
41302011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4131
4132 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4133 fullname parameters order.
4134
44b13c5a
JK
41352011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4136
4137 Code cleanup.
4138 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4139 for fun.
4140 * psymtab.c (map_symbol_filenames_psymtab)
4141 (map_partial_symbol_filenames): Likewise.
4142 * psymtab.h: Include symfile.h.
4143 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4144 * symfile.h (symbol_filename_ftype): New.
4145 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4146 map_symbol_filenames, clarify more the naming in comment.
4147
0b5574da
DE
41482011-06-07 Doug Evans <dje@google.com>
4149
4150 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4151 Look for ../../gdb, for fullname.exp.
0b5574da 4152
5be4dfca
JK
41532011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 Pedro Alves <pedro@codesourcery.com>
4155
4156 * cli/cli-cmds.c (shell_escape): Use waitpid.
4157 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4158
316a8b21
TG
41592011-06-07 Tristan Gingold <gingold@adacore.com>
4160
4161 * xcoffread.c (dwarf2_xcoff_names): New variable.
4162 (aix_process_linenos): Add a guard.
4163 (xcoff_symfile_finish): Free dwarf2.
4164 (xcoff_initial_scan): Add dwarf2 support.
4165
3dd5b83d
PA
41662011-06-06 Pedro Alves <pedro@codesourcery.com>
4167
4168 * infcall.c (run_inferior_call): Don't mask async. Instead force
4169 a synchronous wait, if the target can async.
4170
4171 * target.h (struct target_ops): Delete to_async_mask.
4172 (target_async_mask): Delete.
4173 * target.c (update_current_target): Delete references to to_async_mask.
4174 * linux-nat.c (linux_nat_async_mask_value): Delete.
4175 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4176 to linux_nat_async_mask_value.
4177 (linux_nat_async_mask): Delete.
4178 (linux_nat_async, linux_nat_close): Remove references to
4179 linux_nat_async_mask_value.
4180 * record.c (record_async_mask_value): Delete.
4181 (record_async): Remove references to record_async_mask_value.
4182 (record_async_mask): Delete.
4183 (record_can_async_p, record_is_async_p): Remove references to
4184 record_async_mask_value.
4185 (init_record_ops, init_record_core_ops): Remove references to
4186 record_async_mask.
4187 * remote.c (remote_async_mask_value): Delete.
4188 (init_remote_ops): Remove reference to remote_async_mask.
4189 (remote_can_async_p, remote_is_async_p): Remove references to
4190 remote_async_mask_value.
4191 (remote_async): Remove references to remote_async_mask_value.
4192 (remote_async_mask): Delete.
4193
4194 * infrun.c (fetch_inferior_event): Don't claim registers changed
4195 if the current thread is already not executing.
4196
64b9b334
JB
41972011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4198
4199 From Stephen Kitt <steve@sk2.org>
4200 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4201 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4202
325663dc
JB
42032011-06-03 Joel Brobecker <brobecker@adacore.com>
4204
4205 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4206 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4207
8cf64490
TT
42082011-06-03 Tom Tromey <tromey@redhat.com>
4209
4210 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4211 code fields.
4212 * python/py-exitedevent.c (create_exited_event_object): Change
4213 type of 'exit_code'. Optionally add exit_code attribute.
4214 (emit_exited_event): Change type of 'exit_code'.
4215 * python/py-event.h (emit_exited_event): Update.
4216 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4217 * infrun.c (handle_inferior_event): Set exit code fields on
4218 inferior.
4219 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4220 fields.
4221 * inferior.c (exit_inferior_1): Initialize new fields.
4222
8ddd9a20
TT
42232011-06-03 Tom Tromey <tromey@redhat.com>
4224
4225 * dwarf2expr.c (get_signed_type): New function.
4226 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4227
8dfd1e6d
KS
42282011-06-02 Keith Seitz <keiths@redhat.com>
4229
4230 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4231
65fdb766
PA
42322011-06-02 Pedro Alves <pedro@codesourcery.com>
4233
4234 * top.h (simplified_command_loop): Delete declaration.
4235
f4b8c29b
MF
42362011-06-01 Mike Frysinger <vapier@gentoo.org>
4237
4238 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4239 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4240
1706c199
YQ
42412011-06-01 Yao Qi <yao@codesourcery.com>
4242
4243 * objfiles.h (obj_section_addr): Update reference to objfile from
4244 `abfd' to `obfd'.
4245 (obj_section_endaddr): Likewise.
4246
d19cd713 42472011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4248
4249 * MAINTAINERS: Update my email address and affiliation. Also
4250 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4251
e8eb7bc5
KS
42522010-05-31 Keith Seitz <keiths@redhat.com>
4253
4254 PR c++/12750
4255 * linespec.c (get_search_block): New function.
4256 (find_methods): Add FILE_SYMTATB parameter and use it and
4257 get_search_block to pass an appropriate block to
4258 lookup_symbol_in_namespace.
4259 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4260 Check if *ARGPTR starts with a filename first.
4261 If it does, call locate_first_half again to locate the next
4262 "first half" of the linespec.
4263 Pass FILE_SYMTATB to decode_objc and decode_compound.
4264 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4265 (locate_first_half): Stop on the first colon seen.
4266 (decode_compound): Add FILE_SYMTAB parameter.
4267 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4268 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4269 get_search_block with lookup_symbol.
4270 (find_method): Add FILE_SYMTAB parameter and pass it to
4271 find_methods.
4272 (decode_objc): Use get_search_block.
4273
2b1dbab0
KS
42742010-05-31 Keith Seitz <keiths@redhat.com>
4275
4276 PR symtab/12704
4277 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4278 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4279 and CP_ANONYMOUS_NAMESPACE_LEN.
4280 (cp_is_anonymous): Likewise.
4281 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4282 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4283 * dwarf2read.c (namespace_name): Likewise.
4284 (fixup_partial_die): Likewise.
4285 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4286 seen in the input, keep it.
4287
6d549500
PA
42882011-05-30 Pedro Alves <pedro@codesourcery.com>
4289
4290 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4291 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4292 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4293 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4294 * remote.c (_initialize_remote): Register
4295 async_remote_interrupt_twice directly as
4296 sigint_remote_twice_token event.
4297
395bff70
PA
42982011-05-30 Pedro Alves <pedro@codesourcery.com>
4299
4300 * target.h (enum inferior_event_type): Delete INF_ERROR.
4301 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4302
97224164
PA
43032011-05-30 Pedro Alves <pedro@codesourcery.com>
4304
4305 * interps.c (interp_set): Don't cancel continuations.
4306
07e78767
JK
43072011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4308
4309 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4310
fa4cd53f
PA
43112011-05-30 Pedro Alves <pedro@codesourcery.com>
4312
4313 * continuations.h (continuation_ftype): Add `err' parameter.
4314 Document parameters.
4315 (do_all_continuations, do_all_continuations_thread)
4316 (do_all_intermediate_continuations)
4317 (do_all_intermediate_continuations_thread)
4318 (do_all_inferior_continuations): Add `err' parameter.
4319 * continuations.c (do_my_continuations_1, do_my_continuations)
4320 (do_all_inferior_continuations, do_all_continuations_ptid)
4321 (do_all_continuations_thread_callback)
4322 (do_all_continuations_thread, do_all_continuations)
4323 (do_all_intermediate_continuations_thread_callback)
4324 (do_all_intermediate_continuations_thread)
4325 (do_all_intermediate_continuations): Add `err' parameter, and pass
4326 it down all the way to the continuations proper.
4327 * inf-loop.c (inferior_event_handler): If fetching an inferior
4328 event throws an error, don't pop the target, and still call the
4329 continuations, but with `err' set. Adjust all other continuation
4330 calls.
4331 * breakpoint.c (until_break_command_continuation): Add `err'
4332 parameter.
4333 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4334 issue another step if `err' is set.
4335 (struct until_next_continuation_args): New.
4336 (until_next_continuation): Add `err' parameter. Adjust.
4337 (until_next_command): Adjust.
4338 (struct finish_command_continuation_args): Add `thread' field.
4339 (finish_command_continuation): Add `err' parameter. Handle it.
4340 (finish_forward): Adjust.
4341 (attach_command_continuation): Add `err' parameter. Handle it.
4342 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4343 cancel the continuations.
4344 * interps.c (interp_set): Adjust to cancel the continuations.
4345 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4346 continuations rather than discarding.
4347 (free_thread): Don't clear thread inferior resources here.
4348 (delete_thread_1): Do it here instead. And do it before removing
4349 the thread from the threads list. Tag the thread as exited before
4350 clearing thread inferior resources.
4351
c2949be0
JB
43522011-05-30 Joel Brobecker <brobecker@adacore.com>
4353
4354 * infcall.c (call_function_by_hand): Rephrase error message.
4355
619cebe8
PA
43562011-05-27 Pedro Alves <pedro@codesourcery.com>
4357
4358 * defs.h (struct thread_info, struct inferior): Delete forward
4359 declarations.
4360 * breakpoint.h (struct thread_info): New forward declaration.
4361 * observer.sh (struct inferior): New forward declaration.
4362 * python/python-internal.h (struct inferior): New forward
4363 declaration.
4364
be34f849
PA
43652011-05-27 Pedro Alves <pedro@codesourcery.com>
4366
4367 * defs.h (struct continuation, continuation_ftype)
4368 (continuation_free_arg_ftype, add_continuation)
4369 (do_all_continuations, do_all_continuations_thread)
4370 (discard_all_continuations, discard_all_continuations_thread)
4371 (add_intermediate_continuation, do_all_intermediate_continuations)
4372 (do_all_intermediate_continuations_thread)
4373 (discard_all_intermediate_continuations)
4374 (discard_all_intermediate_continuations_thread)
4375 (add_inferior_continuation, do_all_inferior_continuations)
4376 (discard_all_inferior_continuations): Move to ...
4377 * continuations.h: ... this new file.
4378 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4379 infcmd.c, inferior.c, infrun.c, interps.c: Include
4380 continuations.h.
4381
432b4d03
JK
43822011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 Doug Evans <dje@google.com>
4384
4385 Fix PR 10970, PR 12702.
4386 * linux-nat.c (linux_lwp_is_zombie): New function.
4387 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4388 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4389
b0f260d6
PA
43902011-05-27 Pedro Alves <pedro@codesourcery.com>
4391
4392 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4393 typedefs.
4394 (add_continuation, add_intermediate_continuation)
4395 (add_inferior_continuation): Use them.
4396 * continuations.c (struct continuation): Use them.
4397 (make_continuation_ftype): Delete.
4398 (make_continuation, add_inferior_continuation, add_continuation)
4399 (add_intermediate_continuation): Use continuation_ftype and
4400 continuation_free_arg_ftype. Rename parameters to shorter names.
4401
af1e9a32
PA
44022011-05-27 Pedro Alves <pedro@codesourcery.com>
4403
4404 * continuations.c (make_continuation): Make it return void.
4405 (do_my_continuations): Rename to ...
4406 (do_my_continuations_1): ... this. Remove old_chain parameter and
4407 adjust.
4408 (do_my_continuations): New.
4409 (discard_my_continuations): Rename to ...
4410 (discard_my_continuations_1): ... this. Remove old_chain
4411 parameter and adjust.
4412 (discard_my_continuations): New.
4413 (add_inferior_continuation): Simplify.
4414 (do_all_inferior_continuations): Reimplement on top
4415 do_my_continuations.
4416 (discard_all_inferior_continuations): Simplify.
4417 (add_continuation): Simplify.
4418 (do_all_continuations_ptid): Simplify.
4419 (discard_all_continuations_thread_callback): Simplify.
4420 (add_intermediate_continuation): Simplify.
4421 (discard_all_intermediate_continuations_thread_callback):
4422 Simplify.
4423
50c0c017
PA
44242011-05-27 Pedro Alves <pedro@codesourcery.com>
4425
4426 * utils.c (struct continuation, add_continuation)
4427 (add_inferior_continuation)
4428 (do_all_inferior_continuations, discard_all_inferior_continuations)
4429 (restore_thread_cleanup, do_all_continuations_ptid)
4430 (do_all_continuations_thread_callback)
4431 (do_all_continuations_thread, do_all_continuations)
4432 (discard_all_continuations_thread_callback)
4433 (discard_all_continuations_thread, discard_all_continuations)
4434 (add_intermediate_continuation)
4435 (do_all_intermediate_continuations_thread_callback)
4436 (do_all_intermediate_continuations_thread)
4437 (do_all_intermediate_continuations)
4438 (discard_all_intermediate_continuations_thread_callback)
4439 (discard_all_intermediate_continuations_thread)
4440 (discard_all_intermediate_continuations): Move to ...
4441 * continuations.c: ... this new file, and adjust to no longer
4442 implement continuations on top of cleanups.
4443 * Makefile.in (SFILES): Add continuations.c.
4444 (COMMON_OBS): Add continuations.o.
4445
d8b34453
PA
44462011-05-26 Pedro Alves <pedro@codesourcery.com>
4447
4448 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4449 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4450 Internal error on invalid values.
4451 * reverse.c: Don't handle EXEC_ERROR.
4452 * mi/mi-main.c: Don't handle EXEC_ERROR.
4453
32231432
PA
44542011-05-26 Pedro Alves <pedro@codesourcery.com>
4455
4456 * record.c: Include event-loop.h, inf-loop.h.
4457 (record_beneath_to_async): New global.
4458 (tmp_to_async): New global.
4459 (record_async_inferior_event_token): New global.
4460 (record_open_1): Don't error out if async is enabled.
4461 (record_open): Handle to_async. Create an async event source in
4462 the event loop.
4463 (record_close): Delete the async event source.
4464 (record_resumed): New global.
4465 (record_execution_dir): New global.
4466 (record_resume, record_core_resume): Set them. Register the
4467 target on the event loop.
4468 (record_wait): Rename to ...
4469 (record_wait_1): ... this. Add more debug output. Handle
4470 TARGET_WNOHANG, and the target beneath returning
4471 TARGET_WAITKIND_IGNORE.
4472 (record_wait): Reimplement on top of record_wait_1.
4473 (record_async_mask_value): New global.
4474 (record_async, record_async_mask, record_can_async_p)
4475 (record_is_async_p, record_execution_direction): New functions.
4476 (init_record_ops, init_record_core_ops): Install new methods.
4477 * infrun.c (fetch_inferior_event): Temporarily switch the global
4478 execution direction to the direction the target was going.
4479 (execution_direction): Change type to int.
4480 * target.c (default_execution_direction): New function.
4481 (update_current_target): Inherit and de_fault
4482 to_execution_direction.
4483 * target.h (struct target_ops) <to_execution_direction>: New
4484 field.
4485 (target_execution_direction): New macro.
4486 * inferior.h (execution_direction): Change type to int.
4487
949dc678
PA
44882011-05-26 Pedro Alves <pedro@codesourcery.com>
4489
4490 * infcall.c (call_function_by_hand): Don't allow calling functions
4491 in reverse execution mode.
4492
c13bd2b5
PA
44932011-05-26 Pedro Alves <pedro@codesourcery.com>
4494
4495 * infcmd.c (finish_command): Allow async finish in reverse.
4496
6938fd34
YQ
44972011-05-26 Yao Qi <yao@codesourcery.com>
4498
4499 * gdb_thread_db.h: Delete. Move to ...
4500 * common/gdb_thread_db.h: ... here.
4501
9da8c2a0
PA
45022011-05-26 Pedro Alves <pedro@codesourcery.com>
4503
4504 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4505 function's entry point instead of a manually managed momentary
4506 breakpoint, and only ever issue one proceed call.
4507 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4508 doing a reverse-finish, switch to stepi mode, to do another step.
4509 (insert_step_resume_breakpoint_at_sal): Make public.
4510 (normal_stop): No need to save function value return registers if
4511 going reverse.
4512 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4513
2c03e5be
PA
45142011-05-26 Pedro Alves <pedro@codesourcery.com>
4515
4516 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4517 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4518 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4519 at the end.
4520 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4521 step-resume breakpoints.
4522 (print_it_typical): Handle bp_hp_step_resume.
4523 (bpstat_what): Ditto.
4524 (bptype_string): Ditto.
4525 (print_one_breakpoint_location): Ditto.
4526 (allocate_bp_location): Ditto.
4527 (mention): Ditto.
4528 (breakpoint_re_set_one): Ditto.
4529 * infrun.c (handle_inferior_event): Adjust. Split
4530 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4531 BPSTAT_WHAT_HP_STEP_RESUME.
4532 (insert_step_resume_breakpoint_at_sal): Rename to ...
4533 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4534 parameter. Handle it.
4535 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4536 insert_step_resume_breakpoint_at_sal_1.
4537 (insert_step_resume_breakpoint_at_frame): Rename to ...
4538 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4539 set a high-priority step-resume breakpoint.
4540 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4541 (insert_step_resume_breakpoint_at_caller): Ditto.
4542
51be5b68
PA
45432011-05-26 Pedro Alves <pedro@codesourcery.com>
4544
4545 * breakpoint.c (iterate_over_related_breakpoints): New.
4546 (do_map_delete_breakpoint): New.
4547 (delete_command): Pass do_map_delete_breakpoint to
4548 map_breakpoint_numbers.
4549 (do_disable_breakpoint): New.
4550 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4551 breakpoints.
4552 (do_enable_breakpoint): Rename to ...
4553 (enable_breakpoint_disp): ... this.
4554 (enable_breakpoint): Adjust.
4555 (do_enable_breakpoint): New.
4556 (enable_once_breakpoint): Delete.
4557 (do_map_enable_breakpoint): New.
4558 (do_map_enable_once_breakpoint): New.
4559 (enable_once_command, enable_delete_command)
4560 (delete_trace_command): Iterate over the breakpoint's related
4561 breakpoints.
4562
4a1be8d2
PA
45632011-05-26 Pedro Alves <pedro@codesourcery.com>
4564
4565 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4566 for ALPHA_ZERO_REGNUM.
4567 (alpha_supply_int_regs): Explicitly supply zero as the value for
4568 ALPHA_ZERO_REGNUM in the register cache.
4569 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4570
59d70315
YQ
45712011-05-26 Yao Qi <yao@codesourcery.com>
4572
4573 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4574
251d32d9
TG
45752011-05-26 Tristan Gingold <gingold@adacore.com>
4576
4577 * symfile.h (struct dwarf2_section_names): New type.
4578 (struct dwarf2_debug_sections): New type.
4579 (dwarf2_has_info): Add parameter.
4580 * dwarf2read.c (dwarf2_elf_names): New variable.
4581 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4582 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4583 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4584 (dwarf2_has_info): Add names parameter. Pass names
4585 to dwarf2_locate_sections.
4586 (section_is_p): Rewrite using the names parameter.
4587 (dwarf2_locate_sections): Use section names from the names parameter.
4588 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4589 * elfread.c (read_psyms): Ditto.
4590 * machoread.c (macho_symfile_read): Ditto.
4591
652c71b4
AS
45922011-05-25 Andreas Schwab <schwab@redhat.com>
4593
4594 PR gdb/8677
4595 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4596
f17170e5
KS
45972011-05-24 Keith Seitz <keiths@redhat.com>
4598
4599 PR breakpoint/12803
4600 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4601 (decode_compound): Unconditionally call keep_name_info.
4602
cdac0397
PA
46032011-05-24 Pedro Alves <pedro@codesourcery.com>
4604
4605 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4606 scope, clear its command list.
4607 (map_breakpoint_numbers): Don't walk the related breakpoints list
4608 of each breakpoint.
4609
91d4fe3f
TT
46102011-05-24 Tom Tromey <tromey@redhat.com>
4611
4612 * MAINTAINERS: Move Jim Blandy to past maintainers.
4613
3017a003
TG
46142011-05-24 Tristan Gingold <gingold@adacore.com>
4615
4616 * symfile.h (enum dwarf2_section_enum): New type.
4617 (dwarf2_get_section_info): New prototype.
4618 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4619 section_name by sect. Use a switch to select the info.
4620 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4621 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4622
c91c8c16
PA
46232011-05-24 Pedro Alves <pedro@codesourcery.com>
4624
4625 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4626 shared library event breakpoint if there's no execution.
4627
77bc418a
TJB
46282011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4629
4630 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4631 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4632
c50491a7
TT
46332011-05-23 Tom Tromey <tromey@redhat.com>
4634
4635 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4636 NULL.
4637
6d64e6d4
DE
46382011-05-23 Doug Evans <dje@google.com>
4639
4640 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4641 entry for RuntimeError to doc string.
4642
2067c8d4
JG
46432011-05-23 Jerome Guitton <guitton@adacore.com>
4644
4645 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4646 sequence for probing loops.
4647
b136cd05
PA
46482011-05-23 Pedro Alves <pedro@codesourcery.com>
4649
4650 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4651 comment.
4652
22e74ef9
MK
46532011-05-21 Mark Kettenis <kettenis@gnu.org>
4654
4655 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4656 zero as the value for %g0 in the register cache.
4657 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4658 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4659
842951eb
PA
46602011-05-20 Pedro Alves <pedro@codesourcery.com>
4661
4662 * infrun.c (proceed): Set previous_inferior_ptid here.
4663 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4664 inferior_ptid, not null_ptid.
4665 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4666 (fetch_inferior_event): Nor here.
4667
46cf51e6
PA
46682011-05-20 Pedro Alves <pedro@codesourcery.com>
4669
4670 * inf-loop.c (inferior_event_handler): Only output a message if
4671 verbose.
4672
29ef4c46
LM
46732011-05-20 Luis Machado <lgustavo@codesourcery.com>
4674
4675 * MAINTAINERS: Update my e-mail address.
4676
f148b27e
PA
46772011-05-20 Pedro Alves <pedro@codesourcery.com>
4678
4679 * infrun.c (proceed): Switch the inferior event loop to
4680 INF_EXEC_COMPLETE if the target refused to resume from a
4681 vfork/fork.
4682
09cee04b
PA
46832011-05-20 Pedro Alves <pedro@codesourcery.com>
4684
4685 * infcmd.c: Include "inf-loop.h".
4686 (step_once): When stepping into an inline subroutine, pretend the
4687 target has run. If the target can async, switch the inferior
4688 event loop to INF_EXEC_COMPLETE.
4689 * inferior.h (user_visible_resume_ptid): Declare.
4690 * infrun.c (user_visible_resume_ptid): New function, factored out
4691 from `resume'.
4692 (resume): Use it.
4693 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4694 that the current thread is running. Merge async and sync
4695 branches.
4696
751b8ce1
PA
46972011-05-20 Pedro Alves <pedro@codesourcery.com>
4698
4699 * infcmd.c (step_1): Simplify synchronous case.
4700
e93a69ed
PA
47012011-05-20 Pedro Alves <pedro@codesourcery.com>
4702
4703 * tracepoint.c: Include exceptions.h.
4704 (TFILE_PID): Move higher in file.
4705 (tfile_open): Delay pushing the tfile target until we're assured
4706 the tfile header is present in the file. Wrap reading the initial
4707 newline-terminated lines in TRY_CATCH. Pop the target if the
4708 initial setup failed. Add the tfile's thread immediately
4709 aftwards, before any non-essential setup. Don't skip
4710 post_create_inferior if there are no traceframes present in the
4711 file.
4712 (tfile_close): Remove redundant check for null before xfree call.
4713 (tfile_thread_alive): New function.
4714 (init_tfile_ops): Register it as to_thread_alive callback.
4715
6823e2b1
PA
47162011-05-20 Pedro Alves <pedro@codesourcery.com>
4717
4718 * tracepoint.c (tfile_open): Delete #if 0'd code.
4719
b3c8eb43
JK
47202011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4721
4722 Fix -readnow for -gdwarf-4 unused type units.
4723 * dwarf2read.c (struct signatured_type): Remove the field offset.
4724 (create_signatured_type_table_from_index): Remove its initialization.
4725 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4726 instead. Add a complaint call.
4727 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4728 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4729 (lookup_signatured_type_at_offset, read_signatured_type)
4730 (write_one_signatured_type): Update the field for per_cu.
4731
310afc76
TT
47322011-05-19 Tom Tromey <tromey@redhat.com>
4733
4734 * python/py-inferior.c (python_inferior_exit): Use
4735 target_gdbarch.
4736 (python_on_resume): Likewise.
4737
cf6c5ffb
TT
47382011-05-19 Matt Rice <ratmice@gmail.com>
4739
4740 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4741
fb80a3c5
HZ
47422011-05-19 Hui Zhu <teawater@gmail.com>
4743
4744 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4745
3672b1be
HZ
47462011-05-19 Hui Zhu <teawater@gmail.com>
4747
4748 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4749
ff355380
TT
47502011-05-18 Tom Tromey <tromey@redhat.com>
4751
4752 * dwarf2read.c (dwarf2_add_field): Constify.
4753 * value.c (value_static_field): Constify.
4754 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4755 Now const.
4756 * ax-gdb.c (gen_static_field): Constify
4757
ed731959
JK
47582011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4759
4760 * linux-nat.c (kill_callback): Use SIGKILL first.
4761
967cff16
JB
47622011-05-18 Joel Brobecker <brobecker@adacore.com>
4763
4764 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4765
1d06ead6
TT
47662011-05-18 Tom Tromey <tromey@redhat.com>
4767
4768 * value.c (value_fn_field): Constify.
4769 * symtab.c (gdb_mangle_name): Constify.
4770 * stabsread.c (update_method_name_from_physname): Make 'physname'
4771 argument const.
4772 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4773 const. Use explicit fputc_filtered loop.
4774 (pascal_type_print_base): Constify.
4775 * p-lang.h (pascal_type_print_method_args): Update.
4776 * linespec.c (add_matching_methods): Constify.
4777 (add_constructors): Likewise.
4778 * jv-typeprint.c (java_type_print_base): Constify.
4779 * gdbtypes.h (struct cplus_struct_type)
4780 <fn_fieldlist.fn_field.physname>: Now const.
4781 * dwarf2read.c (compute_delayed_physnames): Constify.
4782 (dwarf2_add_member_fn): Likewise.
4783 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4784
0d9a9a5f
PA
47852011-05-18 Pedro Alves <pedro@codesourcery.com>
4786
4787 * infrun.c (resume): Mention which is the current thread, and its
4788 current PC in debug output.
4789 (prepare_to_proceed): Mention the thread switching in debug
4790 output.
4791
05386e9e
TT
47922011-05-18 Tom Tromey <tromey@redhat.com>
4793
4794 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4795 path check. Use xmalloc and cleanups.
4796 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4797
ee86786c
TT
47982011-05-17 Tom Tromey <tromey@redhat.com>
4799
4800 * cp-valprint.c (cp_print_value_fields): Catch errors from
4801 value_static_field.
4802
9ff3b74f
TT
48032011-05-17 Tom Tromey <tromey@redhat.com>
4804
4805 * dwarf2read.c (dwarf2_get_die_type): Call
4806 get_die_type_at_offset.
4807 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4808 get_base_type function.
4809
cd3da28e
PA
48102011-05-17 Tomas Martinec <fyzmat@gmail.com>
4811
4812 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4813 trap_expected.
4814
fd20d931
DE
48152011-05-16 Doug Evans <dje@google.com>
4816
4817 * python/py-auto-load.c (source_section_scripts): Mention objfile
4818 name in warning.
4819
75fc9810
DE
48202011-05-15 Doug Evans <dje@google.com>
4821
290351b8
DE
4822 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4823 (try_thread_db_load_from_pdir): Call it. If unable to find
4824 libthread_db in directory of libpthread, see if we're looking at
4825 the separate-debug-info copy.
4826
75fc9810
DE
4827 * python/py-autoload.c (print_script): Print "Missing" instead of
4828 "No" for missing scripts.
4829 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4830
9f7bc587
DE
48312011-05-13 Doug Evans <dje@google.com>
4832
4833 * ui-file.c (stdio_file_write_async_safe): Add comment.
4834
093cee7d
HZ
48352011-05-14 Hui Zhu <teawater@gmail.com>
4836
4837 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4838
dbaefcf7
DE
48392011-05-13 Doug Evans <dje@google.com>
4840
98a5dd13
DE
4841 Support $pdir and $sdir in libthread-db-search-path.
4842 * NEWS: Mention $sdir,$pdir.
4843 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4844 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4845 (try_thread_db_load_from_sdir): New function.
4846 (try_thread_db_load_from_dir): New function.
4847 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4848 system directories if search of libthread-db-search-path fails,
4849 that is now done via $sdir.
4850 (has_libpthread): New function.
4851 (thread_db_load): Remove search for libthread_db in directory of
4852 libpthread, that is now done via $pdir.
4853
dbaefcf7
DE
4854 * NEWS: Mention "info auto-load-scripts".
4855 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4856 script_not_found_warning_printed.
4857 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4858 all callers updated. Initialize script_not_found_warning_printed.
4859 (get_auto_load_pspace_data_for_loading): New function.
4860 (maybe_add_script): New function.
4861 (source_section_scripts): Simplify. Only print one warning regardless
4862 of the number of auto-load scripts not found.
4863 (clear_section_scripts): Clear script_not_found_warning_printed.
4864 (auto_load_objfile_script): Record script in hash table.
4865 (count_matching_scripts): New function.
4866 (maybe_print_script): Renamed from maybe_print_section_script, all
4867 callers updated. Rewrite to use ui_out_*.
4868 (info_auto_load_scripts): Renamed from
4869 maintenance_print_section_scripts, all callers updated.
4870 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4871 renamed as "info auto-load-scripts".
4872
9930639c
TT
48732011-05-13 Tom Tromey <tromey@redhat.com>
4874
4875 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4876 (read_sleb128): Likewise.
4877
06826322
TT
48782011-05-13 Tom Tromey <tromey@redhat.com>
4879
4880 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4881 offset display.
4882
01124a23
DE
48832011-05-13 Doug Evans <dje@google.com>
4884
4885 * linux-nat.c (debug_linux_nat_async): Delete.
4886 Replace all references to use debug_linux_nat instead.
4887 (show_debug_linux_nat_async): Delete.
4888 (sigchld_handler): Call ui_file_write_async_safe instead of
4889 fprintf_unfiltered.
4890 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4891 * ui-file.c (struct ui_file): New member to_write_async_safe.
4892 (null_file_write_async_safe): New function.
4893 (ui_file_write_async_safe): New function.
4894 (set_ui_file_write_async_safe): New function.
4895 (ui_file_new): Initialize to_write_async_safe.
4896 (stdio_file_write_async_safe): New function.
4897 (struct stdio_file): New member fd.
4898 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
4899 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4900 fileno.
01124a23
DE
4901 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4902 (set_ui_file_write_async_safe): Declare.
4903 (ui_file_write_async_safe): Declare.
4904
72fc29ff
TT
49052011-05-13 Tom Tromey <tromey@redhat.com>
4906
4907 * utils.c (do_value_free): New function.
4908 (make_cleanup_value_free): Likewise.
4909 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4910 freeing correctly.
4911 (dwarf2_loc_desc_needs_frame): Call
4912 make_cleanup_value_free_to_mark.
4913 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4914 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4915 value_free_to_mark.
4916 (new_dwarf_expr_context): Don't call value_mark.
4917 * dwarf2-frame.c (execute_stack_op): Call
4918 make_cleanup_value_free_to_mark.
4919 * defs.h (make_cleanup_value_free): Declare.
4920
028d0ed5
TJB
49212011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4922
4923 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4924 prepare_execute_command.
4925 * top.c (prepare_execute_command): Return cleanup.
4926 (execute_command): Use cleanup from prepare_execute_command.
4927 * top.h (prepare_execute_command): Change prototype to return
4928 cleanup.
4929 * defs.h (struct value): Add opaque declaration.
4930 (make_cleanup_value_free_to_mark): Add prototype.
4931 * utils.c (do_value_free_to_mark): New function.
4932 (make_cleanup_value_free_to_mark): Likewise.
4933
b087e0ed
TT
49342011-05-12 Tom Tromey <tromey@redhat.com>
4935
4936 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4937 cast left-hand-side to unsigned.
4938
8a9b8146
TT
49392011-05-12 Tom Tromey <tromey@redhat.com>
4940
4941 PR gdb/12617:
4942 * value.h (value_from_contents): Declare.
4943 * value.c (value_from_contents): New function.
4944 * dwarf2read.c (dwarf_stack_op_name): Add new values.
4945 (dwarf2_get_die_type): New function.
4946 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
4947 (allocate_piece_closure): Acquire reference to values.
4948 (read_pieced_value): Update for value-based expressions.
4949 (write_pieced_value): Likewise.
4950 (free_pieced_value_closure): Call value_free as needed.
4951 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
4952 Update for value-based expressions.
4953 * dwarf2loc.h (dwarf2_get_die_type): Declare.
4954 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
4955 <get_base_type>: New field.
4956 (struct dwarf_expr_piece) <v.value>: Change type.
4957 <v.regno>: New field.
4958 (struct dwarf_expr_context) <mark>: New field.
4959 (dwarf_expr_piece, dwarf_expr_fetch): Update.
4960 (dwarf_expr_pop, dwarf_expr_push): Remove.
4961 (dwarf_expr_push_address): Declare.
4962 * dwarf2expr.c (dwarf_arch_cookie): New global.
4963 (struct dwarf_gdbarch_types): New.
4964 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
4965 functions.
4966 (dwarf_expr_push): Change type of 'value' argument. Update. Now
4967 static.
4968 (dwarf_expr_push_address): New function.
4969 (dwarf_expr_pop): Now static.
4970 (dwarf_expr_fetch): Change return type.
4971 (dwarf_require_integral): New function.
4972 (dwarf_expr_fetch): Simplify.
4973 (add_piece): Update.
4974 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
4975 functions.
4976 (execute_stack_op) <sign_ext>: Remove.
4977 Use values for DWARF stack.
4978 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
4979 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4980 New cases.
4981 (_initialize_dwarf2expr): New function.
4982 (add_piece): Update.
4983 (new_dwarf_expr_context): Set new field.
4984 (free_dwarf_expr_context): Call value_free_to_mark.
4985 * dwarf2-frame.c (no_base_type): New function.
4986 (execute_stack_op): Set get_base_type field. Update.
4987
e8d28ef4
TT
49882011-05-12 Tom Tromey <tromey@redhat.com>
4989
4990 * dwarf2read.c (read_common_block): Fix formatting.
4991
d248b706
KY
49922011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
4993
4994 * breakpoint.c (disable_breakpoint): Disable all locations
4995 associated with a tracepoint on target if a trace experiment is
4996 running.
4997 (disable_command): Disable a specific tracepoint location on target if
4998 a trace experiment is running.
4999 (do_enable_breakpoint): Enable all locations associated with a
5000 tracepoint on target if a trace experiment is running.
5001 (enable_command) Enable a specific tracepoint location on target if a
5002 trace experiment is running.
5003 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5004 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5005 to_disable_tracepoint.
5006 * target.h: Add declaration of struct bp_location.
5007 (struct target_ops): Add new functions
5008 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5009 to_disable_tracepoint to target operations.
5010 (target_supports_enable_disable_tracepoint): New macro.
5011 (target_enable_tracepoint): New macro.
5012 (target_disable_tracepoint): New macro.
5013 * remote.c (struct remote_state): Add new field.
5014 (remote_enable_disable_tracepoint_feature): New.
5015 (remote_protocol_features): Add new entry.
5016 (remote_supports_enable_disable_tracepoint): New.
5017 (remote_enable_tracepoint): New.
5018 (remote_disable_tracepoint): New.
5019 (init_remote_ops): Add remote_enable_tracepoint,
5020 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5021 to remote operations.
5022 * tracepoint.c (start_tracing): Allow tracing to start without any
5023 tracepoints enabled with just a warning if they can be re-enabled
5024 later.
5025 * NEWS: Add news item for the new behaviour of the enable and disable
5026 GDB commands when applied to tracepoints.
5027 Add news items for the new remote packets QTEnable and QTDisable.
5028
cc88a640
JK
50292011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5030
5031 * config.in: Regenerate.
5032 * configure: Regenerate.
5033 * configure.ac <--with-system-readline> (for readline_echoing_p):
5034 Remove the test.
5035 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5036 (tui_old_rl_echoing_p): ... here.
5037 (tui_setup_io): Rename extern declaration readline_echoing_p to
5038 _rl_echoing_p. Adjust assignments for the both renames.
5039
1f84b619
TJB
50402011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5041
5042 * symtab.c (lookup_symtab): Run cleanup before returning.
5043
74ac6d43
TT
50442011-05-11 Tom Tromey <tromey@redhat.com>
5045
5046 * dwarf2read.c (handle_data_member_location): New function.
5047 (dwarf2_add_field): Use it.
5048 (read_common_block): Likewise.
5049
5488dafb
JK
50502011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5051
5052 Make addrs->SECTINDEX always defined.
5053 * symfile.c (relative_addr_info_to_section_offsets): Check for
5054 SECTINDEX -1, not for zero ADDR.
5055 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5056 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5057 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5058 on its validity.
5059
84e578fb
DE
50602011-05-10 Doug Evans <dje@google.com>
5061
2471d008
DE
5062 * linux-thread-db.c: Whitespace cleanup.
5063 (try_thread_db_load_1): Fix comment.
5064
84e578fb
DE
5065 * linux-thread-db.c (set_libthread_db_search_path): New function.
5066 (_initialize_thread_db): Add setter for libthread-db-search-path.
5067
673c2bbe
DE
50682011-05-09 Doug Evans <dje@google.com>
5069
478aac75
DE
5070 * NEWS: Mention --with-iconv-bin.
5071 * configure.ac: New option --with-iconv-bin.
5072 * configure: Regenerate.
5073 * config.in: Regenerate.
5074 * defs.h (relocate_gdb_directory): Declare.
5075 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5076 removed progname parameter, and exported. All callers updated.
5077 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5078
673c2bbe
DE
5079 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5080 adding missing call to restore_child_signals_mask.
5081
e4c8541f
PA
50822011-05-09 Pedro Alves <pedro@codesourcery.com>
5083
5084 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5085 parameter.
5086 * infrun.c (proceed, start_remote): Adjust.
5087 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5088 and adjust to not handle it.
5089 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5090 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5091 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5092 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5093 * windows-nat.c (do_initial_windows_stuff): Adjust.
5094 * infcmd.c (attach_command): Adjust.
5095 (notice_new_inferior): Adjust.
5096
a536c6d7
UW
50972011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5098
5099 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5100 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5101 * spu-tdep.c (op_selb): Use correct value.
5102
7845b013
UW
51032011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5104
5105 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5106 "parent" parameter to symbol_file_add_from_bfd call.
5107
9c06b0b4
TJB
51082011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5109 Thiago Jung Bauermann <bauerman@br.ibm.com>
5110
5111 Implement support for PowerPC BookE masked watchpoints.
5112 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5113 section.
5114 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5115 method. Initialize to NULL in all existing breakpoint_ops instances.
5116 (struct breakpoint) <hw_wp_mask>: New field.
5117 * breakpoint.c (is_masked_watchpoint): Add prototype.
5118 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5119 breakpoint's breakpoint_ops.works_in_software_mode if available.
5120 (watchpoints_triggered): Handle the case of a hardware masked
5121 watchpoint trigger.
5122 (watchpoint_check): Likewise.
5123 (works_in_software_mode_watchpoint): New function.
5124 (insert_masked_watchpoint, remove_masked_watchpoint)
5125 (resources_needed_masked_watchpoint)
5126 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5127 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5128 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5129 functions.
5130 (masked_watchpoint_breakpoint_ops): New structure.
5131 (watch_command_1): Check for the existence of the `mask' parameter.
5132 Set b->ops according to the type of hardware watchpoint being created.
5133 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5134 (ppc_linux_remove_mask_watchpoint)
5135 (ppc_linux_masked_watch_num_registers): New functions.
5136 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5137 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5138 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5139 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5140 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5141 (target_masked_watch_num_registers): New functions.
5142 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5143 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5144 methods.
5145 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5146 (target_masked_watch_num_registers): Add prototypes.
5147
8be455d7
JK
51482011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5149
5150 PR 12573
5151 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5152 (producer_is_gcc_ge_4_0): New function.
5153 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5154 symtab->language code.
5155 (var_decode_location): Set cu->has_loclist.
5156 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5157 skip. Intialize force_skip from locations_valid. Move the prologue
5158 skipping code into two passes.
5159 * symtab.h (struct symtab): Make the primary field a bitfield. New
5160 field locations_valid.
5161
d8228535
JK
51622011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5165 (classify_inner_name): Call cp_lookup_nested_type with
5166 yylval.tsym.type.
5167 * cp-namespace.c (cp_lookup_nested_type): New variable
5168 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5169 type_name_no_tag_or_error with saved_parent_type.
5170 * dwarf2read.c (load_partial_dies): Read in any children of
5171 DW_TAG_typedef with complaint in such case.
5172 * gdbtypes.c (type_name_no_tag_or_error): New function.
5173 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5174 * valops.c (destructor_name_p): New comment for parameter type. Remove
5175 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5176 * value.h (destructor_name_p): Remove type const.
5177
1976171a
JK
51782011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5179
5180 * symtab.c (compare_symbol_name): New function.
5181 (completion_list_add_name, expand_partial_symbol_name): Call it,
5182 remove the variable ncmp.
5183 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5184 gdb_assert it.
5185
a9634178
TJB
51862011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5187
5188 Demote to sw watchpoint only in update_watchpoint.
5189 * breakpoint.c (update_watchpoint): Change between software and
5190 hardware watchpoint for all kinds of watchpoints, not just
5191 read/write ones. Determine b->exact value here instead of
5192 in watch_command_1. Error out if there are not enough resources
5193 for a read or access hardware watchpoint.
5194 (watch_command_1): Remove logic of checking whether there are
5195 enough resources available, since update_watchpoint will do that
5196 work now. Don't set b->exact here. Catch exceptions thrown by
5197 update_watchpoint and delete the watchpoint.
5198 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5199 Use target_exact_watchpoints instead.
5200 (delete_breakpoint): Notify observers only if deleted watchpoint
5201 has a breakpoint number assigned to it.
5202
4c67c798
JJ
52032011-05-05 Janis Johnson <janisjo@codesourcery.com>
5204
5205 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5206
a3fcb948
JG
52072011-05-05 Jerome Guitton <guitton@adacore.com>
5208
5209 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5210 New functions.
5211 (i386_stack_tramp_frame_unwind): New static global.
5212 (i386_match_pattern): New function, extracted from i386_match_insn.
5213 (i386_match_insn): Use i386_match_pattern.
5214 (i386_match_insn_block): New function.
5215 (i386_tramp_chain_in_reg_insns)
5216 (i386_tramp_chain_on_stack_insns): New static variables.
5217 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5218 of unwinders.
5219
4d393d60
JM
52202011-05-04 Joseph Myers <joseph@codesourcery.com>
5221
5222 * configure.host (xscale*): Don't handle target.
5223 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5224 handle targets.
5225
f70bd40b
YQ
52262011-05-04 Yao Qi <yao@codesourcery.com>
5227
5228 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5229
dd3295ee
JB
52302011-05-03 Joel Brobecker <brobecker@adacore.com>
5231
5232 Revert:
5233 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5234 | * elfread.c (elf_symtab_read): Stop memory leak.
5235
90375a0e
PM
52362011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5237
5238 * nto-tdep.c (nto_target): Replace deprecated call to
5239 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5240
d07205c2
JK
52412011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5242
5243 Fix false GCC warning.
5244 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5245
1e718ff1
TJB
52462011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5247
5248 * breakpoint.c (update_watchpoint): Move code to change
5249 the enable state of breakpoint from here ...
5250 (do_enable_breakpoint): ... to here.
5251
35bef4fd
TT
52522011-04-26 Andrew Gontarek <andrewg@cray.com>
5253
78290264
PP
5254 * valprint.c (val_print_array_elements): Fixed poor performance
5255 of printing very large arrays with repeat_count_threshold set
5256 to unlimited. New comment.
35bef4fd 5257
38a714bb
TT
52582011-04-29 Tom Tromey <tromey@redhat.com>
5259
5260 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5261 (mi_parse): Likewise.
5262 * breakpoint.c (break_range_command): Use sizeof char*, not
5263 char**.
5264 (create_breakpoint): Likewise.
5265 (parse_breakpoint_sals): Likewise.
5266
eb73ad13
PA
52672011-04-29 Pedro Alves <pedro@codesourcery.com>
5268
5269 * linux-nat.c (linux_child_remove_fork_catchpoint)
5270 (linux_child_remove_vfork_catchpoint)
5271 (linux_child_remove_exec_catchpoint): New functions.
5272 (linux_target_install_ops): Install them.
5273
d65aec65
PM
52742011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5275
5276 PR mi/12531
5277
5278 * varobj.c (install_default_visualizer): Do not install a
5279 visualizer if the varobj is CPLUS_FAKE_CHILD.
5280 (construct_visualizer): Likewise.
5281
165195f4
JK
52822011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5283
5284 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5285 case insensitive comparison.
5286
30852783
UW
52872011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5288
5289 * infrun.c (proceed): Revert previous change.
5290 (resume): Instead, handle the case of signal delivery while stepping
5291 off a breakpoint location here, and only if software single-stepping
5292 is used. Handle nested signals.
5293
7ff120b4
YQ
52942011-04-28 Yao Qi <yao@codesourcery.com>
5295
5296 * arm-tdep.c (copy_unmodified): Rename to ...
5297 (arm_copy_unmodified): .. this. New.
5298 (copy_preload): Move common part to ...
5299 (install_preload): .. this. New.
5300 (arm_copy_preload): New.
5301 (copy_preload_reg): Move common part to ...
5302 (install_preload_reg): ... this. New.
5303 (arm_copy_preload_reg): New.
5304 (copy_b_bl_blx): Move common part to ...
5305 (install_b_bl_blx): .. this. New.
5306 (arm_copy_b_bl_blx): New.
5307 (copy_bx_blx_reg): Move common part to ...
5308 (install_bx_blx_reg): ... this. New.
5309 (arm_copy_bx_blx_reg): New.
5310 (copy_alu_reg): Move common part to ...
5311 (install_alu_reg): ... this. New.
5312 (arm_copy_alu_reg): New.
5313 (copy_alu_shifted_reg): Move common part to ...
5314 (install_alu_shifted_reg): ... this. New.
5315 (copy_ldr_str_ldrb_strb): Move common part to ...
5316 (install_ldr_str_ldrb_strb): ... this. New.
5317 (arm_copy_ldr_str_ldrb_strb): New.
5318 (copy_copro_load_store): Move some common part to ...
5319 (install_copy_copro_load_store): ... this. New.
5320 (arm_copy_copro_load_store): New.
5321 (copy_svc): Delete.
5322 (arm_copy_svc): Renamed from copy_svc.
5323 (copy_undef): Delete.
5324 (arm_copy_undef): Renamed from copy_undef.
5325 (decode_ext_reg_ld_st): Delete.
5326 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5327 (decode_svc_copro): Delete.
5328 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5329 (copy_copro_load_store, copy_alu_imm): update callers.
5330 (copy_extra_ld_st, copy_block_xfer): Likewise.
5331 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5332 (decode_miscellaneous, decode_dp_misc): Likewise.
5333 (decode_ld_st_word_ubyte, decode_media): Likewise.
5334 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5335 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5336 (decode_unconditional, decode_miscellaneous): Likewise.
5337 (decode_media, decode_b_bl_ldmstm): Likewise.
5338 (arm_process_displaced_insn): Likewise..
5339 (decode_misc_memhint_neon): Delete.
5340 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5341 (decode_miscellaneous): Delete.
5342 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5343 (decode_dp_misc): Delete.
5344 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5345 (decode_ld_st_word_ubyte): Delete.
5346 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5347 (decode_media): Delete.
5348 (arm_decode_media): Renamed from decode_media.
5349 (decode_b_bl_ldmstm): Delete.
5350 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5351 (decode_ext_reg_ld_st): Delete.
5352 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5353 (decode_unconditional): Delete.
5354 (arm_decode_unconditional): Renamed from decode_unconditional.
5355
559a7a62
JK
53562011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 Case insensitive lookups implementation.
5359 * dwarf2read.c: Include ctype.h.
5360 (struct mapped_index): New field version.
5361 (mapped_index_string_hash): New parameter index_version. New comment
5362 for it. Call tolower appropriately.
5363 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5364 Choose the right index version for mapped_index_string_hash.
5365 (dwarf2_read_index): Support also the index version 5. Initialize the
5366 new struct mapped_index field version.
5367 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5368 (find_slot): Explain the version needs. Pass INT_MAX for the new
5369 parameter.
5370 (write_psymtabs_to_index): Produce version 5.
5371 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5372 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5373 * psymtab.c (lookup_partial_symbol): Find the
5374 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5375 entries.
5376 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5377 NAME lowercasing.
5378 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5379 (completion_list_add_name): New variable ncmp, initialize it, use it.
5380 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5381 * utils.c (strcmp_iw): Support case_sensitive_off.
5382 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5383 New function comment part. New variables saved_string1,
5384 saved_string2 and case_pass. Add a proper second pass.
5385
681bf369
JK
53862011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5387
5388 Replace re_comp/re_exec by regcomp/regexec.
5389 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5390 (search_symbols_name_matches): Use them, use regexec.
5391 (search_symbols): New variable retval_chain, adjust the use of
5392 old_chain against it. Replace re_comp by regcomp. Use the new struct
5393 search_symbols_data fields, use regexec instead of re_exec.
5394
b11b1f88
JK
53952011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5396
5397 Format the code for the next patch.
5398 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5399 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5400 New variables c1 and c2.
5401
2484c66b
UW
54022011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5403
5404 * infrun.c (proceed): Do not single-step into signal delivery
5405 when stepping off a breakpoint location.
5406 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5407 (insert_step_resume_breakpoint_at_caller): Likewise.
5408 (insert_step_resume_breakpoint_at_sal): Likewise.
5409 (insert_longjmp_resume_breakpoint): Likewise.
5410
47423772
YQ
54112011-04-27 Yao Qi <yao@codesourcery.com>
5412
5413 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5414
13bdd2e7
JB
54152011-04-27 Joel Brobecker <brobecker@adacore.com>
5416
5417 * procfs.c (procfs_pass_signals): Fix advance declaration.
5418
2455069d
UW
54192011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5420
5421 * target.h (struct target_ops): Remove to_notice_signals;
5422 add to_pass_signals.
5423 (target_notice_signals): Remove.
5424 (target_pass_signals): Add prototype.
5425 * target.c (update_current_target): Remove to_notice_signals;
5426 mention to_pass_signals.
5427 (target_pass_signals): New function.
5428 (debug_to_notice_signals): Remove.
5429 (setup_target_debug): Do not install debug_to_notice_signals.
5430
5431 * infrun.c (signal_pass): New global.
5432 (resume): Call target_pass_signals.
5433 (handle_inferior_event): Report all signals while stepping over
5434 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5435 are re-inserted when stepping over a signal handler.
5436 (signal_cache_update): New function.
5437 (signal_stop_update): Call it.
5438 (signal_print_update): Likewise.
5439 (signal_pass_update): Likewise.
5440 (handle_command): Call signal_cache_update and target_pass_signals
5441 instead of target_notice_signals.
5442 (_initialize_infrun): Initialize signal_pass.
5443
5444 * linux-nat.c (pass_mask): New global.
5445 (linux_nat_pass_signals): New function.
5446 (linux_nat_create_inferior): Report all signals initially.
5447 (linux_nat_attach): Likewise.
5448 (linux_nat_resume): Use pass_mask to decide whether to directly
5449 handle an inferior signal.
5450 (linux_nat_wait_1): Likewise.
5451 (linux_nat_add_target): Install to_pass_signals callback.
5452
5453 * nto-procfs.c (notice_signals): Remove.
5454 (procfs_resume): Do not call notice_signals.
5455 (procfs_notice_signals): Remove.
5456 (procfs_pass_signals): New function.
5457 (init_procfs_ops): Install to_pass_signals callback instead of
5458 to_notice_signals callback.
5459 (_initialize_procfs): Report all signals initially.
5460
5461 * procfs.c (procfs_notice_signals): Remove.
5462 (procfs_pass_signals): New function.
5463 (procfs_target): Install to_pass_signals callback instead of
5464 to_notice_signals callback.
5465 (register_gdb_signals): Remove.
5466 (procfs_debug_inferior): Report all signals initially.
5467 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5468
5469 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5470 parameters; use them instead of calling signal_..._state routines.
5471 (remote_notice_signals): Remove.
5472 (remote_start_remote): Report all signals initially.
5473 (remote_resume): Do not call remote_pass_signals.
5474 (_initialize_remote): Install to_pass_signals callback instead of
5475 to_notice_signals callback.
5476
46c6471b
PA
54772011-04-27 Pedro Alves <pedro@codesourcery.com>
5478
5479 * breakpoint.c (user_settable_breakpoint): Delete.
5480 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5481 (delete_command): Check user_breakpoint_p instead of looking at
5482 the breakpoint's type.
5483 (disable_command): Ditto.
5484 (enable_command): Ditto.
5485 (delete_trace_command): Use user_breakpoint_p instead of looking
5486 at the breakpoint number directly. When checking if there are
5487 user visible tracepoints, in order to know whether to ask the user
5488 for confirmation, check whether the breakpoint is actually a
5489 tracepoint.
5490
f6d90398
VP
54912011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5492
5493 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5494 compilation.
5495
8d3788bd
VP
54962011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5497
5498 MI breakpoint notifications.
5499
f33edef8
PP
5500 * annotate.c (breakpoint_changed): Adjust parameter type.
5501 * breakpoint.c (set_breakpoint_condition): Adjust to change
5502 in breakpoint_modified type.
5503 (breakpoint_set_commands): Likewise.
5504 (do_map_commands_command): Likewise.
5505 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5506 changed after bumping hit count.
5507 (bpstat_stop_status): Likewise.
5508 (print_one_breakpoint_location): Don't wrap in tuple here.
5509 (print_one_breakpoint): Always print individual locations.
5510 For locations, use unnamed tuple.
5511 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5512 has changed.
5513 (create_catchpoint, create_syscall_event_catchpoint): Call
5514 breakpoint_created obsever.
5515 (mention): Don't call breakpoint_created observer.
5516 (create_breakpoint_sal): Call breakpoint_created observer.
5517 (create_breakpoint, watch_command_1): Likewise.
5518 (create_ada_exception_breakpoint): Likewise.
5519 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5520 (locations_are_equal): New.
5521 (update_breakpoint_locations): If locations were changed, notify.
5522 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5523 Call breakpoint_modified observer.
5524
5525 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5526 (mi_cmd_break_insert): Don't set observers for modify and delete.
5527 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5528 (mi_breakpoint_created, mi_breakpoint_deleted)
5529 (mi_breakpoint_modified): New.
5530 (mi_interpreter_init): Hook the above.
5531 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5532 while -break-* commands are executing.
5533 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5534 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5535 (mi_redirect): New.
5536 (mi_ui_out_impl): Hook in mi_redirect.
5537 (mi_field_skip): True to the name, skip the field, don't output
5538 a field with an empty value.
5539
5540 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5541 (gdbpy_breakpoint_deleted): Adjust.
5542 * tui/tui-hooks.c (tui_event_create_breakpoint)
5543 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5544
a8f42b45
UW
55452011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5546
5547 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5548 (procfs_remove_hw_watchpoint): Likewise.
5549
57e12211
TT
55502011-04-26 Michael Walle <michael@walle.cc>
5551
5552 * remote.c (remote_start_remote): Ack packet after sending the
5553 interrupt sequence.
5554
af96c192
YQ
55552011-04-26 Yao Qi <yao@codesourcery.com>
5556
f33edef8
PP
5557 * linux-nat.c: Move common macros to ...
5558 Include linux-ptrace.h.
5559 * common/linux-ptrace.h: ... here. New.
af96c192 5560
3e03848b
JK
55612011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5562
5563 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5564 !objfile_has_partial_symbols. New comment.
5565 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5566 SYM_READ_PSYMBOLS is not present. Extend the comment.
5567 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5568
1ae0d051
JK
55692011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5570
5571 * defs.h (ENUM_BITFIELD): Remove.
5572
03f2bd59
JK
55732011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5574 Eli Zaretskii <eliz@gnu.org>
5575
5576 * NEWS: Document the new gdbserver --once option.
5577
4161fbb0
JZ
55782011-04-21 Jie Zhang <jzhang918@gmail.com>
5579
5580 * MAINTAINERS: Update my email address.
5581
bcb28afc
PM
55822011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5583
5584 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5585 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5586 function call if __STDC_ISO_10646__ macro is defined.
5587 (intermediate_encoding): New prototype.
5588 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5589 to generate compile time error for unsupported gdb_wchar_t size.
5590 (ENDIAN_SUFFIX): New macro.
5591 (intermediate_encoding): New function.
5592
7b08b9eb
JK
55932011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5594
5595 * ada-lang.c (struct add_partial_datum): Update the comment for
5596 expand_partial_symbol_name.
5597 (ada_add_partial_symbol_completions): Rename to ...
5598 (ada_expand_partial_symbol_name): ... here, change return type, update
5599 function comment, call symbol_completion_match instead of
5600 symbol_completion_add.
5601 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5602 and ada_expand_partial_symbol_name.
5603 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5604 FILE_MATCHER.
5605 (dw2_map_symbol_names): Remove.
5606 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5607 * psymtab.c (map_symbol_names_psymtab): Remove.
5608 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5609 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5610 order.
5611 (psym_functions): Unlist map_symbol_names_psymtab.
5612 (map_partial_symbol_names): Rename to ...
5613 (expand_partial_symbol_names): ... here, change the FUN type, call
5614 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5615 * psymtab.h (map_partial_symbol_names): Rename to ...
5616 (expand_partial_symbol_names): ... here, change the FUN type.
5617 * symfile.h (struct quick_symbol_functions): Update the description of
5618 expand_symtabs_matching. Remove map_symbol_names.
5619 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5620 (struct add_name_data): Update the comment for
5621 expand_partial_symbol_name.
5622 (add_partial_symbol_name): Rename to ...
5623 (expand_partial_symbol_name): ... here. Replace
5624 completion_list_add_name call by strncmp.
5625 (default_make_symbol_completion_list_break_on): Use now
5626 expand_partial_symbol_names and expand_partial_symbol_name.
5627 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5628
90476074
TT
56292011-04-20 Tom Tromey <tromey@redhat.com>
5630
5631 * dwarf2read.c (save_gdb_index_command): Replace format
5632 documentation with a pointer to the manual.
5633
c21236dc
PA
56342011-04-20 Pedro Alves <pedro@codesourcery.com>
5635
5636 * regcache.c: Include remote.h.
5637 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5638 (regcache_dump): Handle regcache_dump_remote.
5639 (maintenance_print_remote_registers): New function.
5640 (_initialize_regcache): Install "maint print remote-registers"
5641 command.
5642 * remote.c (map_regcache_remote_table): New function, factored out
5643 from ...
5644 (init_remote_state): ... here.
5645 (remote_register_number_and_offset): New.
5646 * remote.h (remote_register_number_and_offset): Declare.
5647
b78974c3
PA
56482011-04-20 Pedro Alves <pedro@codesourcery.com>
5649
5650 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5651 null_ptid, assume and allow a NULL address space, instead of
5652 asking the target for the ptid's address space.
5653 * infrun.c (ptid_is_pid): Remove assertion.
5654
7a9dd1b2
TT
56552011-04-19 Tom Tromey <tromey@redhat.com>
5656
5657 * windows-tdep.c (windows_xfer_shared_library):
5658 * windows-nat.c (get_module_name, windows_make_so):
5659 * v850-tdep.c (v850_handle_pushm):
5660 * utils.c (null_cleanup, gdb_realpath):
5661 * ui-out.c (get_next_header):
5662 * tracepoint.c (clear_traceframe_info):
5663 * symtab.c (lookup_symtab):
5664 * serial.h (struct serial_ops):
5665 * mipsread.c (read_alphacoff_dynamic_symtab):
5666 * infcmd.c (print_return_value):
5667 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5668 * f-exp.y (parse_number):
5669 * exceptions.c (catch_exceptions):
5670 * dummy-frame.c (dummy_frame_this_id):
5671 * defs.h (struct cleanup):
5672 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5673 * arm-tdep.c (arm_push_dummy_call):
5674 * amd64-tdep.h (amd64_collect_xsave):
5675 * amd64-tdep.c (amd64_collect_xsave):
5676 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5677 * README (typing): Remove duplicate words.
5678 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5679 * infrun.c (siginfo_value_read): Fix typo.
5680 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5681 * top.c (source_line_number): Add comma.
5682
9941e0c5
MK
56832011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5684
5685 * thread.c (any_live_thread_of_process): Prioritize threads
5686 that are not executing.
5687 * gdbthread.h (any_live_thread_of_process): Update comment
5688 as per above change.
5689
ed4b0e6a
AS
56902011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5691
5692 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5693 (scan_xcoff_symtab): Likewise.
5694
9b13a2db
PM
56952011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5696
5697 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5698 inside if clause.
5699
1c6e1b0d
PM
57002011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5701 Pedro Alves <pedro@codesourcery.com>
5702
5703 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5704 variables to simplify code and avoid == operator at end of
5705 line as this is against GNU coding standards.
5706
74de0234
PM
57072011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5708
5709 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5710 lm_name to name_lm to avoid conflict with lm_name function.
5711
b23518f0
PM
57122011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5713
5714 ARI fixes: Use only lowercase function name for static functions.
5715 * nto-tdep.c (LM_ADDR): Rename to...
5716 (lm_addr): New function name.
5717 (nto_relocate_section_addresses): Adapt to change above.
5718 * solib-sunos.c (LM_ADDR): Rename to...
5719 (lm_addr): New function name.
5720 (LM_NEXT): Rename to...
5721 (lm_next): New function name.
5722 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5723 function name changes above.
5724 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5725 (lm_addr_from_link_map): New function name.
5726 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5727 (has_lm_dynamic_from_link_map): New function name.
5728 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5729 (lm_dynamic_from_link_map): New function name.
5730 (LM_ADDR_CHECK): Rename to...
5731 (lm_addr_check): New function name.
5732 (LM_NEXT): Rename to...
5733 (lm_next): New function name.
5734 (LM_PREV): Rename to...
5735 (lm_prev): New function name.
5736 (LM_NAME): Rename to...
5737 (lm_name): New function name.
5738 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5739 (ignore_first_link_map_entry): New function name.
5740 (svr4_keep_data_in_core): Adapt to function name changes above.
5741 (svr4_current_sos): Likewise.
5742 (enable_break): Likewise.
5743 (svr4_relocate_section_addresses): Likewise.
5744
1448a0a2
PM
57452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5746
5747 ARI cleanup.
5748 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5749 sprintf. Simplify code and avoid loosing memory.
5750 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5751 (call0_frame_cache): Remove && operator from end of line.
5752
02835898
JK
57532011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5754
5755 Fix libraries displacement if they change whether they were prelinked.
5756 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5757 does not match. Comment why.
5758
9a845ea2
JK
57592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 * corelow.c: Include wrapper.h.
5762 (core_open): Call now gdb_target_find_new_threads.
5763 * wrapper.c: Include target.h.
5764 (gdb_target_find_new_threads): New.
5765 * wrapper.h (gdb_target_find_new_threads): New declaration.
5766
254f582e
JK
57672011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5768
5769 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5770 even if !TARGET_HAS_EXECUTION.
5771
63524580
JK
57722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5773
5774 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5775 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5776 bfd_get_synthetic_symtab.
5777 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5778 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5779 parameter parent, remove the call to add_separate_debug_objfile.
5780 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5781 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5782 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5783 parent, new comment for it, call add_separate_debug_objfile for it.
5784 (symbol_file_add_separate): Pass objfile as the parameter parent,
5785 remove the call to add_separate_debug_objfile.
5786 (symbol_file_add_from_bfd): New parameter parent, pass it.
5787 (symbol_file_add): Pass NULL to the new parameter parent.
5788 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5789
90359a16
JK
57902011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5793 BSF_SYNTHETIC.
5794
626e7282
JK
57952011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 Fix Python access to inlined frames.
5798 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5799 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5800
cf31e6f9
TT
58012011-04-15 Tom Tromey <tromey@redhat.com>
5802
5803 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5804
c8d895f1
GB
58052011-04-15 Gary Benson <gbenson@redhat.com>
5806
5807 * MAINTAINERS: Add myself to write-after-approval section.
5808
56a9aa1d
MF
58092011-04-14 Mike Frysinger <vapier@gentoo.org>
5810
5811 * remote-sim.c (sim_command_completer): New function.
5812 (_initialize_remote_sim): Set completer to sim_command_completer.
5813
ba770c9c
TJB
58142011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5815
5816 * breakpoint.c (print_exception_catchpoint): Rename to ...
5817 (print_it_exception_catchpoint): ... this.
5818 (gnu_v3_exception_catchpoint_ops): Update with new name
5819 for print_it_exception_catchpoint.
5820
51bf2553
EBM
58212011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5822
5823 * MAINTAINERS: Add myself for write after approval privileges.
5824
d242658c
MP
58252011-04-13 Marek Polacek <mpolacek@redhat.com>
5826
5827 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5828
4a4106ca
TJB
58292011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5830
5831 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5832
26063d49
TJB
58332011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5834
5835 * breakpoint.c (save_breakpoints): Verify whether
5836 breakpoint_ops.print_recreate is defined before calling it.
5837
7782b183
GB
58382011-04-11 Gary Benson <gbenson@redhat.com>
5839
5840 Fix failure with --enable-maintainer-mode.
5841 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5842
e8930875
JK
58432011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5844
5845 Code cleanup.
5846 * symtab.c (search_symbols): Reorder the KIND description in the
5847 function comment. Remove the unused 4th element of types, types2,
5848 types3 and types4. New gdb_assert on KIND.
5849 (symtab_symbol_info): Remove the unused 4th element of classnames.
5850 New gdb_assert on KIND.
5851 * symtab.h (enum search_domain): New warning in the enum comment.
5852 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5853 TYPES_DOMAIN.
5854
b4f2f049
JK
58552011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5856
5857 Fix crash of gdb save-index on a STABS file.
5858 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5859 PSYMTABS_ADDRMAP.
5860
60d5a603
JK
58612011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5862
5863 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5864 * dwarf2read.c: Include ctype.h.
5865 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5866 functions.
5867 (dwarf2_add_field): Fix new_field->accessibility by calling
5868 dwarf2_default_access_attribute. Restructure setting accessibility
5869 vs. virtuality.
5870 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5871 is_private and is_protected by calling
5872 dwarf2_default_access_attribute.
5873
e0f68161
KB
58742011-04-08 Kevin Buettner <kevinb@redhat.com>
5875
5876 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5877 to the initialization.
5878
2e1aae43
SE
58792011-04-08 Steve Ellcey <sje@cup.hp.com>
5880
5881 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5882 initalization.
5883
c6ca3dab
PM
58842011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5885
5886 Remove support for old Cygwin 1.5 versions.
5887 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5888 function on old Cygwin version.
5889 * windows-nat.c: Remove cygwin version check and always define
5890 __USEWIDE for Cygwin compilation.
5891
bd18283a
YQ
58922011-04-07 Yao Qi <yao@codesourcery.com>
5893
5894 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5895 and TO.
5896 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5897 (arm_copy_svc): Remove parameters INSN and TO.
5898 (decode_svc_copro): Update caller.
5899 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5900 from function pointer `copy_svc_os'.
5901
8c8dba6d
YQ
59022011-04-07 Yao Qi <yao@codesourcery.com>
5903
5904 * arm-tdep.c (cleanup_branch): Set a correct return address in
5905 LR for ARM and Thumb.
5906
59d7bcaf
JK
59072011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5908
5909 Code cleanup.
5910 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5911 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5912 in the function comment, a new note on values compatibility.
5913 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5914 * symtab.h (SYMBOL_HASH_NEXT): New.
5915
e7db58ea
TJB
59162011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5917
5918 * ppc-linux-nat.c (check_condition): Add len output parameter.
5919 Set it based on the memory region referenced in the condition
5920 expression. Update all callers.
5921
9f743ef6
JK
59222011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5923
5924 Fix crash regression on systems featuring .gdb_index.
5925 * objfiles.c (free_objfile): Move the
5926 forget_cached_source_info_for_objfile call earlier. Comment it.
5927 Extend the comment for objfile_free_data.
5928
9182c5bc
JK
59292011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5930
5931 Fix regression of displaying the debug format.
5932 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5933 subfile.
5934
04bd08de
TT
59352011-04-04 Tom Tromey <tromey@redhat.com>
5936
5937 * cli/cli-interp.c (struct captured_execute_command_args):
5938 Remove.
5939 (do_captured_execute_command): Remove.
5940 (safe_execute_command): Use TRY_CATCH.
5941 * cli/cli-script.c (struct wrapped_read_command_file_args):
5942 Remove.
5943 (wrapped_read_command_file): Remove.
5944 (script_from_file): Use TRY_CATCH.
5945 * exceptions.c (catch_exception): Remove.
5946 * exceptions.h (catch_exception): Remove.
5947 (deprecated_throw_reason): Update comment.
5948 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
5949 argument to 'context'.
5950 (mi_execute_command): Use TRY_CATCH.
5951 * remote.c (struct start_remote_args): Remove.
5952 (remote_start_remote): Update; change arguments.
5953 (remote_open_1): Use TRY_CATCH.
5954
58438ac1
TT
59552011-04-04 Tom Tromey <tromey@redhat.com>
5956
5957 * tracepoint.c (scope_info): Update.
5958 * symtab.c (decode_line_spec): Update.
5959 * python/python.c (gdbpy_decode_line): Update.
5960 * linespec.h (decode_line_1): Update.
5961 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
5962 (decode_compound, find_method, symtab_from_filename)
5963 (decode_variable): Likewise.
5964 * cli/cli-cmds.c (edit_command): Update.
5965 (list_command): Update.
5966 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
5967 argument.
5968 (create_breakpoint): Update.
5969 (until_break_command): Update.
5970 (addr_string_to_sals): Update.
5971 (decode_line_spec_1): Update.
5972
b78a6381
TT
59732011-04-04 Tom Tromey <tromey@redhat.com>
5974
5975 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
5976 (do_captured_parse_breakpoint): Remove.
5977 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
5978 Use TRY_CATCH directly.
5979
00174a86
TT
59802011-04-04 Tom Tromey <tromey@redhat.com>
5981
5982 * symtab.h (free_symtab): Remove.
5983 (forget_cached_source_info_for_objfile): Declare.
5984 * symmisc.c (free_symtab): Remove.
5985 * source.c (forget_cached_source_info_for_objfile): New function.
5986 (forget_cached_source_info): Use it.
5987 * objfiles.c (free_objfile): Simplify check before calling
5988 clear_current_source_symtab_and_line. Call
5989 forget_cached_source_info_for_objfile.
5990
30cc903e
TT
59912011-04-04 Tom Tromey <tromey@redhat.com>
5992
5993 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
5994 (new_symtab): Don't set `free_code' on symtab.
5995 (new_linetable): Properly handle size==0.
5996 * symtab.h (struct symtab) <free_code, free_func>: Remove.
5997 * symmisc.c (free_symtab): Don't free the linetable. Don't call
5998 free_func.
5999 * jv-lang.c (struct jv_per_objfile_data): New.
6000 (jv_per_objfile_free): Free the data.
6001 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6002 (get_java_class_symtab): Set the `dict' field on the
6003 jv_per_objfile_data.
6004 (free_class_block): Remove.
6005 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6006 the symtab.
6007
0c2e6019
TT
60082011-04-04 Tom Tromey <tromey@redhat.com>
6009
6010 * symfile.c (reread_symbols): Update.
6011 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6012 field.
6013 * objfiles.c (allocate_objfile): Update.
6014 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6015 declare.
6016 * cp-namespace.c (lookup_symbol_file): Don't call
6017 lookup_possible_namespace_symbol.
6018 (initialize_namespace_symtab, get_possible_namespace_block)
6019 (free_namespace_block, cp_check_possible_namespace_symbols)
6020 (check_possible_namespace_symbols_loop)
6021 (check_one_possible_namespace_symbol)
6022 (lookup_possible_namespace_symbol): Remove.
6023 (maintenance_cplus_namespace): Replace with notice.
6024 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6025
554d387d
TT
60262011-04-04 Tom Tromey <tromey@redhat.com>
6027
6028 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6029 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6030 * symmisc.c (free_symtab): Don't free debugformat.
6031 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6032 (record_debugformat, record_producer): Document.
6033 * buildsym.c (end_symtab): Don't save debugformat and producer
6034 names on obstack.
6035 (end_symtab): Don't free debugformat and producer fields.
6036 (record_debugformat): Don't call xstrdup.
6037 (record_producer): Likewise.
6038
d4d4db8a
TT
60392011-04-04 Tom Tromey <tromey@redhat.com>
6040
6041 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6042 (source_line_charpos, source_charpos_line): Remove.
6043
8903c50d
TT
60442011-04-04 Tom Tromey <tromey@redhat.com>
6045
6046 * symtab.h (domain_enum): Split in two...
6047 (enum search_domain): New.
6048 (search_symbols): Update.
6049 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6050 redundant declarations.
6051 (search_symbols): Change 'kind' argument to search_domain.
6052 Update.
6053 (print_symbol_info): Likewise.
6054 (symtab_symbol_info): Likewise.
6055 * symfile.h (struct quick_symbol_functions)
6056 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6057 <expand_symtabs_matching>: Likewise.
6058 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6059 (expand_symtabs_matching_via_partial): Update.
6060 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6061 (dw2_expand_symtabs_for_function): Update.
6062 * block.h: Moved anonymous enum...
6063 * defs.h (enum block_enum): ... here. Now named.
6064
d9351f5f 60652011-04-03 Joel Brobecker <brobecker@adacore.com>
6066
6067 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6068 * version.in: Bump version to 7.3.50.20110403-cvs.
6069
d6e00af6
JB
60702011-04-03 Joel Brobecker <brobecker@adacore.com>
6071
6072 * NEWS: Create a new section for the next release branch.
6073 Rename the section of the current branch, now that it has
6074 been cut.
6075
2b9e5ea6
UW
60762011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6077
6078 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6079 for "fpscr" in target description.
6080
0cf03b49
JK
60812011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6082
6083 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6084 initialize it. Delay HASH initialization. Strip the part after open
6085 parenthesis for languages with qualifiers. Call do_cleanups.
6086
5d901a73
TT
60872011-04-01 Tom Tromey <tromey@redhat.com>
6088
6089 * utils.c (report_command_stats): Don't print `-' for negative
6090 number.
6091
b0dd7688
JB
60922011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6093
6094 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6095 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6096 typedefs.
6097
956a9fb9
JB
60982011-04-01 Joel Brobecker <brobecker@adacore.com>
6099
6100 * breakpoint.h (bpdisp_text): Add declaration.
6101 * breakpoint.c (bpdisp_text): Make non-static.
6102 * ada-lang.c: #include "mi/mi-common.h".
6103 (print_it_exception): Rewrite to improve GDB/MI output.
6104
3352110b
PA
61052011-04-01 Pedro Alves <pedro@codesourcery.com>
6106
6107 * arm-tdep.h (struct address_space): Add forward declaration.
6108
18819fa6
UW
61092011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6110
6111 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6112 * arm-tdep.c (arm_override_mode): New global.
6113 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6114 execution mode heuristics.
6115 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6116 second single-step breakpoint if needed, using
6117 arm_insert_single_step_breakpoint.
6118 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6119 ARM execution mode, do not call thumb_get_next_pc_raw.
6120 (arm_get_next_pc): Encode execution mode in return value. Call
6121 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6122 (arm_insert_single_step_breakpoint): New function.
6123 (arm_software_single_step): Call it.
6124 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6125 argument to return execution mode of sigreturn target.
6126 (arm_linux_syscall_next_pc): Use it.
6127 (arm_linux_copy_svc): Update call.
6128 (arm_linux_software_single_step): Call
6129 arm_insert_single_step_breakpoint.
6130
a6e293d1
JK
61312011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6132
6133 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6134 the comment.
6135
a4c8e806
TT
61362011-03-31 Tom Tromey <tromey@redhat.com>
6137
6138 * varobj.c (update_dynamic_varobj_children): Properly handle
6139 errors from iterator.
6140
df5c6c50
JK
61412011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6142
6143 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6144 struct linkage name twice.
6145
1dae3efc
TT
61462011-03-31 Tom Tromey <tromey@redhat.com>
6147
6148 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6149 missing ">" to message.
6150
f4f7ab05
TT
61512011-03-31 Tom Tromey <tromey@redhat.com>
6152
6153 * varobj.c (instantiate_pretty_printer): Remove duplicate
6154 'return'.
6155
fcf250e2
UW
61562011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6157
6158 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6159 if neither saved value nor register available (e.g. signal frame).
6160
ee6436e3
TJB
61612011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6162
6163 * macroexp.c (expand): Avoid uninitialized variable
6164 compiler warning.
6165
423f41a5
TJB
61662011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6167
6168 * breakpoint.c (break_range_command): Fix typo in comment.
6169
f1310107
TJB
61702011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6171 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6172
6173 Implement support for PowerPC BookE ranged breakpoints.
6174 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6175 * breakpoint.h (struct bp_target_info) <length>: New member
6176 variable.
6177 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6178 instead of struct breakpoint as argument, and also add ASPACE
6179 and BP_ADDR arguments. Update all callers.
6180 (struct breakpoint_ops) <print_one_detail>: New method.
6181 (struct breakpoint) <addr_string_range_end>: New member variable.
6182 * breakpoint.c (breakpoint_location_address_match): Add function
6183 prototype.
6184 (insert_bp_location): Set bl->target_info.length.
6185 (breakpoint_here_p): Call breakpoint_location_address_match.
6186 (moribund_breakpoint_here_p): Likewise.
6187 (regular_breakpoint_inserted_here_p): Likewise.
6188 (breakpoint_thread_match): Likewise.
6189 (bpstat_stop_status): Likewise.
6190 (bpstat_check_location): Move call to
6191 breakpoint_ops.breakpoint_hit to the top.
6192 (print_one_breakpoint_location): Call
6193 breakpoint_ops.print_one_detail if available.
6194 (breakpoint_address_match_range): New function.
6195 (breakpoint_location_address_match): Likewise.
6196 (breakpoint_locations_match): Compare the length field of the
6197 locations too.
6198 (hw_breakpoint_used_count): Count resources used by all locations
6199 in a breakpoint, and use breakpoint_ops.resources_needed if
6200 available.
6201 (breakpoint_hit_ranged_breakpoint): New function.
6202 (resources_needed_ranged_breakpoint): Likewise.
6203 (print_it_ranged_breakpoint): Likewise.
6204 (print_one_ranged_breakpoint): Likewise.
6205 (print_one_detail_ranged_breakpoint): Likewise.
6206 (print_mention_ranged_breakpoint): Likewise.
6207 (print_recreate_ranged_breakpoint): Likewise.
6208 (ranged_breakpoint_ops): New structure.
6209 (find_breakpoint_range_end): New function.
6210 (break_range_command): Likewise.
6211 (delete_breakpoint): Free addr_string_range_end.
6212 (update_breakpoint_locations): Add SALS_END argument. Update
6213 all callers. Calculate breakpoint length if a non-zero SALS_END
6214 is given. Call breakpoint_locations_match instead of
6215 breakpoint_address_match.
6216 (reset_breakpoint): Find SaL of the end of the range if B is a
6217 ranged breakpoint.
6218 (_initialize_breakpoint): Register break-range command.
6219 * defs.h (print_core_address): Add function prototype.
6220 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6221 function.
6222 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6223 (ppc_linux_remove_hw_breakpoint): Likewise.
6224 (_initialize_ppc_linux_nat): Initialize
6225 to_ranged_break_num_registers.
6226 * target.c (update_current_target): Add comment about
6227 to_ranged_break_num_registers.
6228 (target_ranged_break_num_registers): New function.
6229 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6230 New method.
6231 (target_ranged_break_num_registers): Add function prototype.
6232 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6233 * utils.c (print_core_address): ... here.
6234
02d20e4a
UW
62352011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6236
6237 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6238 variable compiler warning.
6239
ef23e705
TJB
62402011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6241
6242 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6243 code from here ...
6244 (re_set_breakpoint): ... to here ...
6245 (addr_string_to_sals): ... and here.
6246
311e6ab3
PM
62472011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6248
6249 * Makefile.in (SFILES): Add missing C sources.
6250 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6251 Add missing headers.
6252
acd1d99c
MF
62532011-03-29 Mike Frysinger <vapier@gentoo.org>
6254
6255 * .gitignore: New file.
6256
66ee2731
MF
62572011-03-29 Mike Frysinger <vapier@gentoo.org>
6258
6259 * NEWS: Mention new cfi device simulation.
6260
53832f31
TT
62612011-03-29 Tom Tromey <tromey@redhat.com>
6262
6263 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6264 otherwise anonymous types.
6265 (dwarf2_name): Likewise.
6266 * valops.c (value_struct_elt_for_reference): Refine artificial
6267 type logic. Call error if j==-1.
6268
09b58708
JK
62692011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6270
6271 Fix false GCC warning.
6272 * infcall.c (find_function_addr): Initialize funaddr.
6273
6023c606
PM
62742011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6275
6276 Fix mingw compilation with --enable-targets=all.
6277 * remote-mips.c (gdb_usleep.h): Include header.
6278 (mips_enter_debug): Use gdb_usleep instead of sleep.
6279
0e30163f
JK
62802011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 Support resolution of STT_GNU_IFUNC via breakpoints.
6283 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6284 bp_gnu_ifunc_resolver_return.
6285 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6286 the loop. Support bp_gnu_ifunc_resolver and
6287 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6288 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6289 breakpoints.
6290 (bptype_string, print_one_breakpoint_location): Support
6291 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6292 (user_settable_breakpoint): Return true also for
6293 bp_gnu_ifunc_resolver.
6294 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6295 bp_gnu_ifunc_resolver_return.
6296 (set_breakpoint_location_function): New parameter explicit_loc,
6297 describe it. Call find_pc_partial_function_gnu_ifunc with new
6298 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6299 EXPLICIT_LOC is not set.
6300 (set_raw_breakpoint): Set EXPLICIT_LOC for
6301 set_breakpoint_location_function.
6302 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6303 set_breakpoint_location_function.
6304 (mention): Support bp_gnu_ifunc_resolver and
6305 bp_gnu_ifunc_resolver_return.
6306 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6307 set_breakpoint_location_function.
6308 (update_breakpoint_locations): Remove static.
6309 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6310 bp_gnu_ifunc_resolver_return.
6311 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6312 bp_gnu_ifunc_resolver_return.
6313 (update_breakpoint_locations): New declaration.
6314 * elfread.c: Include gdbthread.h and regcache.h.
6315 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6316 functions.
6317 (elf_gnu_ifunc_fns): Install them.
6318 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6319 (stub_gnu_ifunc_resolver_return_stop): New functions.
6320 (stub_gnu_ifunc_fns): Install them.
6321 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6322 and gnu_ifunc_resolver_return_stop.
6323 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6324
07be84bf
JK
63252011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6326
6327 STT_GNU_IFUNC reader implementation.
6328 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6329 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6330 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6331 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6332 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6333 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6334 (elf_gnu_ifunc_resolve_addr): New.
6335 (elf_symfile_read): Call elf_rel_plt_read.
6336 (elf_gnu_ifunc_fns): New.
6337 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6338 Install elf_gnu_ifunc_fns.
6339 * infcall.c (find_function_return_type): New function.
6340 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6341 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6342 (stub_gnu_ifunc_resolve_name): New functions.
6343 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6344 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6345 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6346
300f8e10
JK
63472011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6348
6349 Code cleanup for later STT_GNU_IFUNC support.
6350 * infcall.c (find_function_addr): Remove variable code, use explicit
6351 dereferences for it. Move VALUE_TYPE initialization later.
6352
11c81455
JK
63532011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6356 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6357 (clear_pc_function_cache): Clear it.
6358 (find_pc_partial_function): Rename to ...
6359 (find_pc_partial_function_gnu_ifunc): ... this function. New
6360 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6361 (find_pc_partial_function): New wrapper for this function.
6362 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6363
0875794a
JK
63642011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6365
6366 GDB internal type support for STT_GNU_IFUNC.
6367 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6368 (elf_symtab_read): Set mst_text_gnu_ifunc for
6369 BSF_GNU_INDIRECT_FUNCTION.
6370 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6371 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6372 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6373 nodebug_got_plt_symbol.
6374 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6375 (TYPE_GNU_IFUNC): New.
6376 (struct main_type): New field flag_gnu_ifunc.
6377 (struct builtin_type): New field builtin_func_func.
6378 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6379 nodebug_got_plt_symbol.
6380 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6381 (in_gnu_ifunc_stub): New.
6382 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6383 mst_text_gnu_ifunc.
6384 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6385 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6386 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6387 in_gnu_ifunc_stub.
6388 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6389 * symtab.c (search_symbols): Likewise.
6390 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6391 and mst_slot_got_plt.
6392 (in_gnu_ifunc_stub): New declaration.
6393
d0fb5eae
JK
63942011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6395
6396 Support a ring of related breakpoints.
6397 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6398 other functions, add gdb_assert.
6399 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6400 watchpoint_del_at_next_stop.
6401 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6402 (bpstat_stop_status): Handle ring in related_breakpoint.
6403 (set_raw_breakpoint_without_location): Initialize ring in
6404 related_breakpoint.
6405 (delete_breakpoint): Handle ring in related_breakpoint, use
6406 watchpoint_del_at_next_stop.
6407 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6408
9cded63f
TT
64092011-03-28 Tom Tromey <tromey@redhat.com>
6410
6411 PR symtab/12441:
6412 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6413 with `language_minimal'.
6414
467d42c4
UW
64152011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6416
6417 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6418 instead of checking for STT_ARM_TFUNC symbol type.
6419
62853458
TT
64202011-03-25 Tom Tromey <tromey@redhat.com>
6421
6422 * linespec.c (symbol_found): Restore line-based result for
6423 non-LOC_LABEL symbols.
6424
a7417d46
KT
64252011-03-25 Kai Tietz <ktietz@redhat.com>
6426
6427 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6428 instead of strcmp for comparison.
6429 (tui_source_is_displayed): Likewise.
6430 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6431
55f1336d
TT
64322011-03-24 Mark Wielaard <mjw@redhat.com>
6433
f33edef8
PP
6434 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6435 complaint.
6436 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6437 (find_partial_die_in_comp_unit): Likewise in comment.
6438 (read_attribute_value): Likewise.
6439 (lookup_die_type): Likewise.
6440 (dwarf_form_name): Likewise.
6441 (dump_die_shallow): Likewise.
6442 (follow_die_ref_or_sig): Likewise.
55f1336d 6443
9ef07c8c
TT
64442011-03-24 Tom Tromey <tromey@redhat.com>
6445
6446 PR breakpoints/11816:
6447 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6448 (decode_compound): Update.
6449 (find_function_symbol): New function.
6450 (decode_dollar): Update.
6451 (decode_label): Add 'function_symbol' parameter. Handle
6452 function-relative labels.
6453 (decode_variable): Update.
6454 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6455 not its line. Set `special_display' and canonical name for
6456 labels.
6457
56435ebe
TT
64582011-03-24 Tom Tromey <tromey@redhat.com>
6459
6460 * linespec.h (struct linespec_result) <special_display>: New
6461 field.
6462 * breakpoint.h (struct breakpoint) <display_canonical>: New
6463 field.
6464 * breakpoint.c (print_breakpoint_location): Respect
6465 display_canonical.
6466 (create_breakpoint_sal): Add 'display_canonical' parameter.
6467 (create_breakpoints_sal): Update.
6468 (create_breakpoint): Update.
6469
7efd8fc2
TT
64702011-03-24 Tom Tromey <tromey@redhat.com>
6471
6472 * symtab.c (decode_line_spec): Update.
6473 * linespec.c (build_canonical_line_spec): Change type of
6474 'canonical'.
6475 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6476 (find_method, decode_all_digits, decode_dollar, decode_label)
6477 (symbol_found): Likewise.
6478 (init_linespec_result): New function.
6479 * breakpoint.c (struct captured_parse_breakpoint_args)
6480 <canonical_p>: New field, replaces addr_string_p.
6481 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6482 'addr_string'.
6483 (parse_breakpoint_sals): Likewise.
6484 (do_captured_parse_breakpoint): Update.
6485 (create_breakpoint): Use struct linespec_result.
6486 (until_break_command): Update.
6487 (breakpoint_re_set_one): Update.
6488 (decode_line_spec_1): Update.
6489 * linespec.h (struct linespec_result): New.
6490 (init_linespec_result): Declare.
6491
788c8b10
PA
64922011-03-23 Pedro Alves <pedro@codesourcery.com>
6493
6494 * regcache.c (regcache_raw_read): If the target didn't supply a
6495 given raw register, mark it as unavailable.
6496
0ba1096a
KT
64972011-03-23 Kai Tietz <ktietz@redhat.com>
6498
6499 * breakpoint.c (clear_command): Use filename_cmp
6500 instead of strcmp for comparison.
6501 * buildsym.c (watch_main_source_file_lossage): Likewise.
6502 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6503 checking just for slash.
6504 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6505 strrchr and filename_cmp instead of strcmp for filenames.
6506 (add_old_header_file): Use filename_cmp
6507 instead of strcmp for comparison.
6508 * exec.c (exec_set_section_address): Likewise.
6509 * macrotab.c (macro_lookup_inclusion): Likewise.
6510 (macro_lookup_inclusion): Likewise.
6511 * elfread.c (_initialize_elfread): Likewise.
6512 (elfstab_offset_sections): Likewise.
6513 (elfstab_offset_sections): Use lbasename instead of
6514 strrchr.
6515 * mdebugread.c (parse_partial_symbols): Likewise.
6516 (arse_partial_symbols): Use filename_(n)cmp instead of
6517 str(n)cmp for comparison.
6518 * minsyms.c (lookup_minimal_symbol): Likewise.
6519 * psymtab.c (read_psymtabs_with_filename): Likewise.
6520 * solib.c (solib_read_symbols): Likewise.
6521 (reload_shared_libraries_1): Likewise.
6522 * symmisc.c (maintenance_print_symbols): Likewise.
6523 * symfile.c (separate_debug_file_exists): Likewise.
6524 (reread_symbols): Likewise.
6525 (find_separate_debug_file_by_debuglink): Likewise.
6526 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6527 * source.c (add_path): Likewise.
6528 * symtab.c (filename_seen): Likewise.
6529 (file_matches): Likewise.
6530 (print_symbol_info): Likewise.
6531 (maybe_add_partial_symtab_filename): Likewise.
6532 (make_source_files_completion_list): Likewise.
6533 * xml-syscall.c (init_sysinfo): Likewise.
6534 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6535 IS_DIR_SEPARATOR for checking for trailing path separator.
6536
dd90784c
JK
65372011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6538
6539 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6540 label abort_expression.
6541 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6542 DWARF_VALUE_OPTIMIZED_OUT.
6543
3167638f
JK
65442011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6545
6546 Code cleanup.
6547 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6548 to linkage_name. Invert its value. Update the function comment.
6549 (c_type_print_varspec_suffix): Invert it at the caller.
6550 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6551
ce406537
PA
65522011-03-22 Pedro Alves <pedro@codesourcery.com>
6553
6554 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6555 errors when reading the `stop_pc'.
6556 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6557 get_frame_pc.
6558
da5d4055
PM
65592011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6560
6561 * NEWS: Document gdb.Write stream keyword.
6562
29e0eb9c
JK
65632011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 Revert:
6566 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6567 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6568 (dwarf2_add_field): Fix new_field->accessibility for
6569 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6570
05775840
PM
65712011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6572
f33edef8 6573 PR python/12183
05775840
PM
6574
6575 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6576 other error classes. Do not print stack trace.
6577
a0cb7835
JK
65782011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6579
6580 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6581 (dwarf2_add_field): Fix new_field->accessibility for
6582 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6583
d19f7eee
UW
65842011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6585
6586 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6587 encountering a load via a non-SP register.
6588
4a2fbb50
UW
65892011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6590
6591 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6592 field in returned unwinder.
6593
3489610d
JB
65942012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6595
6596 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6597
8c1a34e7
JB
65982012-03-21 Joel Brobecker <brobecker@adacore.com>
6599
6600 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6601 of xmalloc.
6602
8fbca658
PA
66032012-03-18 Pedro Alves <pedro@codesourcery.com>
6604
6605 * frame.c (frame_unwind_register): Throw an error if unwinding the
6606 register failed.
6607 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6608 an unwind stop reason.
6609 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6610 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6611 UNWIND_UNAVAILABLE>: New.
6612 * inline-frame.c (inline_frame_unwind): Install
6613 default_frame_unwind_stop_reason.
6614 * frame-unwind.c: Include "exceptions.h".
6615 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6616 (default_frame_unwind_stop_reason): New.
6617 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6618 (default_frame_unwind_stop_reason): Declare.
6619 (struct frame_unwind) <stop_reason>: New function pointer.
6620
6621 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6622 * dwarf2-frame.c: Include exceptions.h.
6623 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6624 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6625 computing the CFA. If such an error was thrown, set
6626 unavailable_retaddr.
6627 (dwarf2_frame_unwind_stop_reason): New.
6628 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6629 unavailable.
6630 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6631 (dwarf2_signal_frame_unwind): Ditto.
6632
6633 * amd64-tdep.c: Include "exceptions.h".
6634 (struct amd64_frame_cache): New field "base_p".
6635 (amd64_init_frame_cache): Clear it.
6636 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6637 Avoid reading registers with functions that throw if the register
6638 is not necessary to compute the frame base.
6639 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6640 swallowing NOT_AVAILABLE_ERROR.
6641 (amd64_frame_unwind_stop_reason): New.
6642 (amd64_frame_this_id): Don't build a frame id if the frame base
6643 was unavailable.
6644 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6645 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6646 base_p if the frame base was computable.
6647 (amd64_sigtramp_frame_unwind_stop_reason): New.
6648 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6649 frame base was unavailable.
6650 (amd64_sigtramp_frame_unwind): Install
6651 amd64_sigtramp_frame_unwind_stop_reason.
6652 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6653 base_p if the frame base was computable.
6654 (amd64_epilogue_frame_unwind_stop_reason): New.
6655 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6656 frame base was unavailable.
6657 (amd64_epilogue_frame_unwind): Install
6658 amd64_epilogue_frame_unwind_stop_reason.
6659 * i386-tdep.c: Include "exceptions.h".
6660 (struct i386_frame_cache): New field "base_p".
6661 (i386_init_frame_cache): Clear it.
6662 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6663 Avoid reading registers with functions that throw if the register
6664 is not necessary to compute the frame base.
6665 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6666 swallowing NOT_AVAILABLE_ERROR.
6667 (i386_frame_unwind_stop_reason): New.
6668 (i386_frame_this_id): Don't build a frame id if the frame base was
6669 unavailable.
6670 (i386_frame_prev_register): Handle unavailable SP.
6671 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6672 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6673 base_p if the frame base was computable.
6674 (i386_epilogue_frame_unwind_stop_reason): New.
6675 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6676 base was unavailable.
6677 (i386_epilogue_frame_unwind): Install
6678 i386_epilogue_frame_unwind_stop_reason.
6679 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6680 base_p if the frame base was computable.
6681 (i386_sigtramp_frame_unwind_stop_reason): New.
6682 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6683 base was unavailable.
6684 (i386_sigtramp_frame_unwind): Install
6685 i386_sigtramp_frame_unwind_stop_reason.
6686 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6687 type's size, not the register's.
6688 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6689
6690 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6691 default_frame_unwind_stop_reason.
6692 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6693 (alpha_heuristic_frame_unwind): Ditto.
6694 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6695 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6696 * avr-tdep.c (avr_frame_unwind): Ditto.
6697 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6698 Ditto.
6699 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6700 * frv-tdep.c (frv_frame_unwind): Ditto.
6701 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6702 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6703 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6704 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6705 (hppa_stub_frame_unwind): Ditto.
6706 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6707 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6708 (ia64_libunwind_frame_unwind)
6709 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6710 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6711 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6712 * m32c-tdep.c (m32c_unwind): Ditto.
6713 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6714 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6715 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6716 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6717 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6718 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6719 * mep-tdep.c (mep_frame_unwind): Ditto.
6720 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6721 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6722 (mips_stub_frame_unwind): Ditto.
6723 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6724 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6725 * mt-tdep.c (mt_frame_unwind): Ditto.
6726 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6727 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6728 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6729 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6730 (s390_sigtramp_frame_unwind): Ditto.
6731 * score-tdep.c (score_prologue_unwind): Ditto.
6732 * sh-tdep.c (sh_frame_unwind): Ditto.
6733 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6734 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6735 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6736 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6737 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6738 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6739 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6740 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6741 (sparc64obsd_trapframe_unwind): Ditto.
6742 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6743 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6744 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6745 * v850-tdep.c (v850_frame_unwind): Ditto.
6746 * vax-tdep.c (vax_frame_unwind): Ditto.
6747 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6748 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6749 * xtensa-tdep.c (xtensa_unwind): Ditto.
6750
f23d1b92
PA
67512011-03-18 Pedro Alves <pedro@codesourcery.com>
6752
6753 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6754 there's always a frame. Use get_frame_pc_if_available instead of
6755 get_frame_pc, and if there's no PC available, don't look up a
6756 symtab.
6757
1d4f5741
PA
67582011-03-18 Pedro Alves <pedro@codesourcery.com>
6759
6760 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6761 unavailable PC.
6762
dba09041
PA
67632011-03-18 Pedro Alves <pedro@codesourcery.com>
6764
6765 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6766 gracefully.
6767
9a26e44c
PA
67682011-03-18 Pedro Alves <pedro@codesourcery.com>
6769
6770 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6771 * frame.c (frame_unwind_caller_pc_if_available): New.
6772 * stack.c (frame_info): Handle unavailable PC.
6773
67742011-03-18 Pedro Alves <pedro@codesourcery.com>
6775
6776 * frame.c (frame_unwind_pc): Rename to ...
6777 (frame_unwind_pc_if_available): ... this. New `pc' output
6778 parameter. Change return type to int. Gracefully handle
6779 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6780 happened, or 1 otherwise.
6781 (frame_unwind_pc): Reimplement on top of
6782 frame_unwind_pc_if_available.
6783 (get_frame_func): Rename to ...
6784 (get_frame_func_if_available): New `pc' output parameter. Change
6785 return type to int. Gracefully handle the PC not being available.
6786 (get_frame_func): Reimplement on top of
6787 get_frame_func_if_available.
6788 (select_frame): Handle the PC being unavailable.
6789 (get_prev_frame): Handle the PC being unavailable.
6790 (get_frame_pc_if_available): New.
6791 (get_frame_address_in_block_if_available): New.
6792 (find_frame_sal): Handle the frame PC not being available.
6793 * frame.h (get_frame_pc_if_available): Declare.
6794 (get_frame_address_in_block_if_available): Declare.
6795 (get_frame_func_if_available): Declare.
6796 * stack.c (print_frame_info): Handle the PC being unavailable.
6797 (find_frame_funname): Ditto.
6798 (print_frame): Handle the PC being unavailable.
6799 (get_frame_language): Ditto.
6800 * blockframe.c (get_frame_block): Ditto.
6801 * macroscope.c (default_macro_scope): Ditto.
6802 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6803
68042011-03-18 Pedro Alves <pedro@codesourcery.com>
6805
6806 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6807 NOT_AVAILABLE_ERROR when evaluating the location expression.
6808
68092011-03-18 Pedro Alves <pedro@codesourcery.com>
6810
6811 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6812 returning that the register piece is unavailable/optimized out.
6813 (write_pieced_value): Handle get_frame_register_bytes returning
6814 that the register piece is unavailable/optimized out when doing a
6815 read-modify write of a bitfield.
6816 * findvar.c (value_from_register): Handle get_frame_register_bytes
6817 returning that the register piece is unavailable/optimized out.
6818 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6819 and `unavailablep'. Throw error on bad debug info. Use
6820 frame_register instead of frame_register_read, to fill in the new
6821 arguments.
6822 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6823 and `unavailablep'.
6824 * valops.c: (value_assign): Adjust, and handle
6825 get_frame_register_bytes failing.
6826 * spu-tdep.c: Include exceptions.h.
6827 (spu_software_single_step): Adjust, and handle
6828 get_frame_register_bytes failing.
6829 (spu_get_longjmp_target): Ditto.
6830 * gdbarch.sh (register_to_value): Change to return int. New
6831 parameters `optimizedp' and `unavailablep'.
6832 * gdbarch.h, gdbarch.c: Regenerate.
6833 * i386-tdep.c (i386_register_to_value): Adjust to new
6834 gdbarch_register_to_value interface.
6835 * i387-tdep.c (i387_register_to_value): Ditto.
6836 * i387-tdep.h (i387_register_to_value): Ditto.
6837 * alpha-tdep.c (alpha_register_to_value): Ditto.
6838 * ia64-tdep.c (ia64_register_to_value): Ditto.
6839 * m68k-tdep.c (m68k_register_to_value): Ditto.
6840 * mips-tdep.c (mips_register_to_value): Ditto.
6841 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6842
0fdb4f18
PA
68432011-03-18 Pedro Alves <pedro@codesourcery.com>
6844
6845 * findvar.c (value_of_register): Mark the value as unavailable, if
6846 the register is unavailable.
6847 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6848 (frame_register): New `unavailablep' parameter.
6849 (frame_register_read): Update comment.
6850 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6851 Set it if the register is unavailable. If the register is
6852 unavailable, clear the output buffer.
6853 (frame_register): New `unavailablep' parameter. Pass it down.
6854 (frame_unwind_register): Adjust.
6855 (put_frame_register): Adjust.
6856 (frame_register_read): Adjust. Also return false if the register
6857 is not available.
6858 (frame_register_unwind_location): Adjust.
6859 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6860 is unavailable, mark the value accordingly.
6861 * stack.c (frame_info): Handle unavailable registers.
6862
e69aa73e
PA
68632011-03-18 Pedro Alves <pedro@codesourcery.com>
6864
6865 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6866 simplify, using regcache_cooked_read.
6867
05d1431c
PA
68682011-03-18 Pedro Alves <pedro@codesourcery.com>
6869
6870 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6871 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6872 (regcache_raw_read_unsigned, regcache_raw_read_part)
6873 (regcache_cooked_read, regcache_cooked_read_signed)
6874 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6875 (regcache_cooked_read_ftype): Change return to enum
6876 register_status.
6877 * regcache.c: Include exceptions.h
6878 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6879 (do_cooked_read): Change return to enum register_status. Always
6880 forward to regcache_cooked_read.
6881 (regcache_raw_read): Change return to enum register_status. If
6882 the register is not REG_VALID, memset the buffer. Return the
6883 register's status.
6884 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6885 return the register's status.
6886 (regcache_raw_read_unsigned): Ditto.
6887 (regcache_cooked_read): Change return to enum register_status.
6888 Assert that with read-only regcaches, the register's status must
6889 be known. If the regcache is read-only, and the register is not
6890 REG_VALID, memset the buffer. Return the register's status.
6891 (regcache_cooked_read_signed): Change return to enum
6892 register_status. Handle non-REG_VALID registers and return the
6893 register's status.
6894 (regcache_cooked_read_unsigned): Change return to enum
6895 register_status. Handle non-REG_VALID registers and return the
6896 register's status.
6897 (regcache_xfer_part, regcache_raw_read_part)
6898 (regcache_cooked_read_part): Change return to enum
6899 register_status. Return the register's status.
6900 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6901 unavailable.
6902 (regcache_dump): Handle unavailable cooked registers.
6903 * frame.c (do_frame_register_read): Adjust interface to match
6904 regcache_cooked_read_ftype.
6905 * gdbarch.sh (pseudo_register_read): Change return to enum
6906 register_status.
6907 * gdbarch.h, gdbarch.c: Regenerate.
6908
6909 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6910 register_status.
6911 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6912 register_status. If reading a raw register indicates the raw
6913 register is not valid, return the raw register's status,
6914 otherwise, return REG_VALID.
6915 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6916 register_status. Handle non-REG_VALID raw registers and return
6917 the register's status.
6918 * arm-tdep.c (arm_neon_quad_read)
6919 (arm_pseudo_read): Change return to enum register_status. Handle
6920 non-REG_VALID raw registers and return the register's status.
6921 * avr-tdep.c (avr_pseudo_register_read): Ditto.
6922 * frv-tdep.c (frv_pseudo_register_read): Ditto.
6923 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6924 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6925 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6926 register_status.
6927 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6928 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6929 (m32c_part_write, m32c_cat_read, m32c_cat_write)
6930 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6931 (m32c_pseudo_register_read): Change return to enum
6932 register_status. Adjust.
6933 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6934 enum register_status. Return the register's status.
6935 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6936 register_status. Return the register's status.
6937 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6938 * mips-tdep.c (mips_pseudo_register_read): Ditto.
6939 * mt-tdep.c (mt_pseudo_register_read): Ditto.
6940 * rs6000-tdep.c (move_ev_register_func): New typedef.
6941 (e500_move_ev_register): Use it. Change return to enum
6942 register_status. Return the register's status.
6943 (do_regcache_raw_read): New function.
6944 (do_regcache_raw_write): New function.
6945 (e500_pseudo_register_read): Change return to enum
6946 register_status. Return the register's status. Use
6947 do_regcache_raw_read.
6948 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
6949 (dfp_pseudo_register_read): Change return to enum register_status.
6950 Return the register's status.
6951 (vsx_pseudo_register_read): Ditto.
6952 (efpr_pseudo_register_read): Ditto.
6953 (rs6000_pseudo_register_read): Ditto.
6954 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
6955 register_status. Return the register's status.
6956 * sh64-tdep.c (pseudo_register_read_portions): New function.
6957 (sh64_pseudo_register_read): Change return to enum
6958 register_status. Use pseudo_register_read_portions. Return the
6959 register's status.
6960 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
6961 register_status. Return the register's status.
6962 * sh-tdep.c (pseudo_register_read_portions): New function.
6963 (sh_pseudo_register_read): Change return to enum register_status.
6964 Use pseudo_register_read_portions. Return the register's status.
6965 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
6966 enum register_status. Return the register's status.
6967 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
6968 * spu-tdep.c (spu_pseudo_register_read_spu)
6969 (spu_pseudo_register_read): Ditto.
6970 * xtensa-tdep.c (xtensa_register_read_masked)
6971 (xtensa_pseudo_register_read): Ditto.
6972 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
6973
e10abd8f
PM
69742011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6975
6976 * python/py-value.c (valpy_getitem): Fix formatting of error function
6977 call.
6978
7ea6d463
PM
69792011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6980
6981 ARI fixes: Add missing internationalization markups throughout
6982 C source files.
6983 * darwin-nat-info.c: Ditto.
6984 * record.c: Ditto.
6985 * remote.c: Ditto.
6986 * mi/mi-main.c: Ditto.
6987
001083c6
PM
69882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6989
6990 ARI fixes: Add missing internationalization markups throughout
6991 yacc files.
6992 * c-exp.y: Ditto.
6993 * cp-name-parser.y: Ditto.
6994 * f-exp.y: Ditto.
6995 * m2-exp.y: Ditto.
6996 * objc-exp.y: Ditto.
6997 * p-exp.y: Ditto.
6998
4f1cdeec
PM
69992011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7000
7001 ARI fixes: Messages should have no trailing new lines.
7002 * darwin-nat.c (mach_check_error): Remove trailing new line from
7003 warning function call message.
7004 * record.c (bfdcore_read): Idem for error call.
7005
28e698f1
PM
70062011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7007
7008 * common/signals.c (target_signal_from_host): Add _ markup to error
7009 function call message.
7010 (target_signal_to_host): Add _ markup and remove trailing new line
7011 from warning call message.
7012 (target_signal_from_command): Add _ markup to error function call
7013 message.
7014
99c3dc11
PM
70152011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7016
f33edef8 7017 PR python/12149
99c3dc11
PM
7018
7019 * python/python.c (gdbpy_write): Accept a stream argument and
7020 operate to the appropriate stream.
7021 (gdbpy_flush): Likewise.
7022 (_initialize_python): Add stream constants.
7023 (finish_python_initialization): Add GdbOutputErrorFile class.
7024
c20800be
KY
70252011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7026
7027 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7028
f4a1794a
KY
70292011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7030
7031 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7032 to store_signed_integer. Add debug message when relocating CALL
7033 instructions. Fix formatting of debug message.
7034 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7035
d4862372
JB
70362011-03-17 Joel Brobecker <brobecker@gnat.com>
7037
7038 * target.h (struct target_ops): Remove to_lookup_symbol field.
7039 (target_lookup_symbol): Delete macro.
7040 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7041 (update_current_target, setup_target_debug): Remove handling
7042 of to_lookup_symbol target_ops field.
7043 * ada-tasks.c (get_known_tasks_addr): Remove use of
7044 target_lookup_symbol.
7045 * coffread.c (coff_symtab_read): Likewise.
7046 * dbxread.c (read_dbx_symtab): Ditto.
7047
d645e32e
JB
70482011-03-17 Joel Brobecker <brobecker@gnat.com>
7049
7050 PR gdb/12116:
7051 * configure.ac: Add getthrds declaration check.
7052 * configure, config.in: Regenerate.
7053 * aix-thread.c (getthrds): Declare only if not already declared
7054 in procinfo.h. More declaration out of get_signaled_thread to
7055 global scope.
7056
29703da4
PM
70572011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7058
7059 * python/py-symtab.c: Populate symtab_object_methods,
7060 sal_object_methods.
7061 (stpy_is_valid): New function.
7062 (salpy_is_valid): Ditto.
7063 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7064 (sympy_is_valid): New function.
7065 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7066 (objfpy_is_valid): New function.
7067 * python/py-inferior.c: Populate inferior_object_methods.
7068 (infpy_is_valid): New function.
7069 * python/py-infthread.c: Populate thread_object_methods.
7070 (thpy_is_valid): New function.
7071 * python/py-block.c: Declare block_object_methods. Populate. Declare
7072 block_iterator_object_methods. Populate.
7073 (blpy_is_valid): New function.
7074 (blpy_iter_is_valid): Ditto.
7075
c00f8484
KS
70762011-03-16 Keith Seitz <keiths@redhat.com>
7077
7078 * linespec.c (find_methods): Canonicalize NAME before looking
7079 up the symbol.
7080 (name_end): New function.
7081 (keep_name_info): New function.
7082 (decode_line_1): Use keep_name_info.
7083 (decode_compound): Likewise.
7084 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7085 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7086
7087 PR c++/12273
7088 * linespec.c (locate_first_half): Keep overload information, too.
7089 (decode_compound): Use a string to represent break characters
7090 to escape the loop.
7091 If P points to a break character, do not increment it.
7092 For C++ and Java, keep overload information and relevant keywords.
7093 If we cannot find a symbol, search the minimal symbols.
7094
7095 PR c++/11734
7096 * linespec.c (decode_compound): Rename SAVED_ARG to
7097 THE_REAL_SAVED_ARG.
7098 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7099 single-quotes.
7100 Pass a valid block to lookup_symbol.
7101 (lookup_prefix_sym): Likewise.
7102 (find_method): Construct search name based on SYM_CLASS instead
7103 of SAVED_ARG.
7104 * psymtab.c (lookup_partial_symbol): Add language parameter.
7105 (lookup_symbol_aux_psymtabs): Likewise.
7106 Don't assume that the psymtab we found was the right one. Search
7107 for the desired symbol in the symtab to be certain.
7108 (psymtab_search_name): New function.
7109 (lookup_partial_symbol): Use psymtab_search_name.
7110 Add language parameter.
7111 (read_symtabs_for_function): Add language parameter and pass to
7112 lookup_partial_symbol.
7113 (find_symbol_file_from_partial): Likewise.
7114
c91513d8
PP
71152011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7116
7117 PR gdb/12528
7118 * dwarf2read.c (noop_record_line): New function.
7119 (dwarf_decode_lines): Ignore line tables for GCd functions.
7120
b37520b6
PM
71212011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7122
7123 Fix ARI warnings about new lines at the end of messages, which
7124 are unneeded as there is a new line added at the end of the message
7125 automatically.
7126 * darwin-nat.c (darwin_stop_inferior): Ditto.
7127 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7128 * dfp.c (decimal_to_number): Ditto.
7129 * exec.c (print_section_info): Ditto.
7130 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7131 * osdata.c (get_osdata): Ditto.
7132 * record.c (bfdcore_write): Ditto.
7133 * remote-mips.c (mips_readchar): Ditto.
7134 * remote.c (read_ptid): Ditto.
7135 * ser-mingw.c (ser_windows_raw): Ditto.
7136 * tracepoint.c (add_local_symbols): Ditto.
7137 * windows-nat.c (fake_create_process): Ditto.
7138
b08ee6a2
TT
71392011-03-16 Tom Tromey <tromey@redhat.com>
7140
7141 * tracepoint.c (stop_tracing): Don't declare.
7142 * event-top.c (after_char_processing_hook): Add `(void)'.
7143
9a6f1302
PM
71442011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7145
7146 * NEWS: Add Parameter sub-classing description.
7147
7ceb86b1
KT
71482011-03-16 Kai Tietz <ktietz@redhat.com>
7149
7150 * MAINTAINERS: Update my e-mail address.
7151
efeff6cf
AT
71522011-03-15 Andreas Tobler <andreast@fgznet.ch>
7153
7154 * MAINTAINERS: Add myself for write after approval privileges.
7155
681c238c
MS
71562011-03-15 Michael Snyder <msnyder@vmware.com>
7157
f3df5b08
MS
7158 * frame.c (find_frame_sal): Assert sym is not null.
7159
13f6513c
MS
7160 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7161
50412521
MS
7162 * objc-lang.c (selectors_info): Check strchr for null result.
7163
681c238c
MS
7164 * stabsread.c (define_symbol): Guard against bad stabstring input.
7165
6ced1581
PM
71662011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7167
7168 Remove trailing spaces and tabulations from pascal language
7169 support sources.
7170 p-exp.y: Ditto.
7171 p-lang.c: Ditto.
7172 p-lang.h: Ditto.
7173 p-valprint.c: Ditto.
7174
9373cf26
JK
71752011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7176
7177 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7178 than LOW. Comment it.
7179 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7180 HIGHPC not strictly higher than LOWPC.
7181
9a1edae6
PM
71822011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7183
7184 Fix formatting of function declarations returning a pointer in
7185 previous commit.
7186 * varobj.c (varobj_add_child): Ditto.
7187 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7188 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7189
24e9cda0
UW
71902011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7191
7192 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7193 for the "generic" vector ABI used with GCC 4.3 and later.
7194 (ppc64_sysv_abi_return_value): Likewise.
7195
71962011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7197
7198 * infcall.c (call_function_by_hand): Function return value is
7199 always a non_lval, even when using struct_return.
7200
c9174737
PA
72012011-03-15 Pedro Alves <pedro@codesourcery.com>
7202
7203 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7204 (map_display_numbers): New.
7205 (do_delete_display): New.
7206 (undisplay_command): Use map_display_numbers.
7207 (do_enable_disable_display): New.
7208 (enable_disable_display_command): New function.
7209 (enable_display): Delete.
7210 (enable_display_command): New.
7211 (disable_display_command): Reimplement.
7212 (_initialize_printcmd): Adjust "enable display" command to use
7213 `enable_display_command' as callback.
7214
350c6c65
PM
72152011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7216
7217 * NEWS: Add Python breakpoint 'stop' operation.
7218
824446ad
PM
72192011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7220
7221 * NEWS: Delete duplicate entry. Fix typo.
7222
2021ad3a
PM
72232011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7224
7225 Fix ARI warning about function names in first column.
7226 Put prototype declaration on same line as return type.
7227 * objc-exp.y: Ditto.
7228 * p-exp.y: Ditto.
7229 * python/py-stopevent.h: Ditto.
7230 For long function names, split parameters to
7231 allow function name on same line as return type.
7232 * solib-pa64.c: Ditto.
7233 * varobj.c: Ditto.
7234 * varobj.h: Ditto.
7235 For long function declaration, use single line.
7236 * hppa-tdep.h: Ditto.
7237 * inferior.h: Ditto.
7238
7371cf6d
PM
72392011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7240
7241 * python/python.h: Declare gdbpy_should_stop and
7242 gdbpy_breakpoint_has_py_cond.
7243 * python/python.c: Add python.h to includes. Remove python.h from
7244 HAVE_PYTHON definition
7245 (gdbpy_should_stop): New dummy function.
7246 (gdbpy_breakpoint_has_py_cond): New dummy function.
7247 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7248 sub-classing capabilities.
7249 (gdbpy_should_stop): New function.
7250 (gdbpy_breakpoint_has_py_cond): New function.
7251 (local_setattro): New function.
7252 * breakpoint.c (condition_command): Add check for Python 'stop'
7253 operation.
7254 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7255 operation function as part of stop/continue tests.
7256
37b50a69
TT
72572011-03-14 Tom Tromey <tromey@redhat.com>
7258
7259 PR gdb/12576:
7260 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7261 (needs_frame_dwarf_call): Likewise.
7262
eeae04df
PM
72632011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7264
7265 Fix ARI warning about functions without parameters that do not
7266 use (void).
7267 * breakpoint.c (all_tracepoints): Replace () by (void).
7268 * f-exp.y (match_string_literal): Ditto.
7269 (yylex): Ditto.
7270 * m2-exp.y (yylex): Ditto.
7271 * mep-tdep.c (current_me_module): Ditto.
7272 (current_options): Ditto.
7273 (current_cop_data_bus_width): Ditto.
7274 (current_cr_names): Ditto.
7275 (current_cr_is_float): Ditto.
7276 (current_ccr_names): Ditto.
7277 * objc-exp.y (yylex): Ditto.
7278 * p-exp.y (yylex): Ditto.
7279 * remote.c (send_interrupt_sequence): Ditto.
7280 * tracepoint.c (current_trace_status): Ditto.
7281 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7282 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7283
6dc3565d
MS
72842011-03-11 Michael Snyder <msnyder@vmware.com>
7285
1427fe5e
MS
7286 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7287 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7288 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7289 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7290 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7291
60bc018f
MS
7292 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7293 (delete_async_event_handler): Ditto.
7294
f3be5b64
MS
7295 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7296
4c2d5724
MS
7297 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7298
6dc3565d
MS
7299 * top.c (set_verbose): Assert showcmd was found.
7300
4e6ca6d5
MG
73012011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7302
7303 * xtensa-tdep.c (warning_once): Correct style issues.
7304
815a83e4
YQ
73052011-03-11 Yao Qi <yao@codesourcery.com>
7306
7307 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7308
f2eb0bc8
AS
73092011-03-11 Andreas Schwab <schwab@redhat.com>
7310
7311 * common/aclocal.m4: Remove.
7312
b801de47
MG
73132011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7314
7315 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7316 (xtensa_write_register, xtensa_read_register): Likewise.
7317 (xtensa_hextochar): Removed.
7318 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7319
dbab50de
MG
73202011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7321
7322 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7323 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7324 (xtensa_alloc_frame_cache): Add initialization for new fields.
7325 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7326 (warning_once): New function.
7327 (xtensa_insn_kind): New item c0opc_and.
7328 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7329 (call0_track_op): Change arguments. New local variable litbase.
7330 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7331 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7332 in the prologue.
dbab50de 7333 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7334 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7335 Add the variety of updates to handle extended prologues, which now can
7336 conduct dynamic stack adjustments.
7337 (call0_frame_cache): Likewise.
7338 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7339 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7340
b2c04452
MS
73412011-03-10 Michael Snyder <msnyder@vmware.com>
7342
f8f67713
MS
7343 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7344 (cmd_qtframe): Ditto.
7345 (cmd_qtbuffer): Ditto.
7346 (cmd_bigqtbuffer): Ditto.
7347
197f0a60
TT
73482011-03-10 Tom Tromey <tromey@redhat.com>
7349
7350 * tracepoint.c (trace_actions_command): Update.
7351 * thread.c (thread_apply_command): Update.
7352 * reverse.c (delete_bookmark_command): Update.
7353 (bookmarks_info): Update.
7354 * printcmd.c (undisplay_command): Update.
7355 * memattr.c (mem_enable_command): Update.
7356 (mem_disable_command): Update.
7357 (mem_delete_command): Update.
7358 * inferior.c (detach_inferior_command): Update.
7359 (kill_inferior_command): Update.
7360 (remove_inferior_command): Update.
7361 * cli/cli-utils.h (struct get_number_or_range_state): New.
7362 (init_number_or_range): Declare.
7363 (get_number_or_range): Update.
7364 * cli/cli-utils.c (init_number_or_range): New function.
7365 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7366 static variables.
7367 (number_is_in_list): Update.
7368 * breakpoint.h (get_tracepoint_by_number): Update.
7369 * breakpoint.c (map_breakpoint_numbers): Update for change to
7370 get_number_or_range.
7371 (find_location_by_number): Use get_number, not
7372 get_number_or_range.
7373 (trace_pass_set_count): New function.
7374 (trace_pass_command): Update for change to get_number_or_range.
7375 Rework loop logic.
7376 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7377 'state' parameter.
7378
ecec24e6
PM
73792011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7380
7381 * python/py-param.c (add_setshow_generic): Add set/show callback
7382 parameters. Register Python object context.
7383 (get_show_value): New function.
7384 (get_set_value): New function.
7385 (call_doc_function): New function.
7386 (get_doc_string): Move behind get_show_value/get_set_value.
7387
6d6c6b1f
JK
73882011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7389
7390 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7391
68d6df83
MG
73922011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7393
dbab50de 7394 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7395 (xtensa_write_register): Likewise.
7396 (xtensa_hextochar): Add comment and update to match coding conventions.
7397 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7398 (execute_l32e, execute_s32e, execute_code): Update comments.
7399 (xtensa_exception_handler_t): Update to match coding conventions.
7400 (xtensa_insn_kind): Likewise.
7401
85c9d6a6
MS
74022011-03-09 Michael Snyder <msnyder@vmware.com>
7403
7404 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7405
91495617
PA
74062011-03-09 Pedro Alves <pedro@codesourcery.com>
7407
7408 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7409
eb8c0621
TT
74102011-03-09 Tom Tromey <tromey@redhat.com>
7411
7412 * thread.c (restore_selected_frame): Handle frame_level == -1.
7413 (make_cleanup_restore_current_thread): Use
7414 get_selected_frame_if_set.
7415 * frame.h (get_selected_frame_if_set): Declare.
7416 * frame.c (get_selected_frame_if_set): New function.
7417
9f37bbcc
PA
74182011-03-09 Pedro Alves <pedro@codesourcery.com>
7419
7420 * cli/cli-cmds.c (shell_escape): Use lbasename.
7421 * coffread.c (coff_start_symtab): Constify parameter.
7422 (complete_symtab): Constify `name' parameter.
7423 (coff_symtab_read): Constify `filestring' local.
7424 (coff_getfilename): Constify return and `result' local.
7425 Use lbasename.
7426 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7427 * linux-fork.c (info_checkpoints_command): Use lbasename.
7428 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7429 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7430 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7431 * procfs.c (procfs_make_note_section): Use lbasename.
7432 * tui/tui-io.c (printable_part): Constity return and parameter.
7433 Use lbasename.
7434 (print_filename): Constify parameters, and local `s'.
7435 (tui_rl_display_match_list): Constify local `temp'.
7436
f8de3c55
JK
74372011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7438
7439 Revert:
7440 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7441 Fix DWARF-3+ DW_AT_accessibility default assumption.
7442 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7443 cu->header.version >= 3.
7444
d9837b00
YQ
74452011-03-09 Yao Qi <yao@codesourcery.com>
7446
7447 * common/Makefile.in: Remove.
7448 * common/configure: Remove.
7449 * common/configure.ac: Remove.
7450
e637a4f5
YQ
74512011-03-09 Yao Qi <yao@codesourcery.com>
7452
7453 Revert:
7454 2011-02-11 Yao Qi <yao@codesourcery.com>
7455
7456 * common/Makefile.in: Add copyright header.
7457
7458 2011-02-11 Yao Qi <yao@codesourcery.com>
7459
7460 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7461 libcommon.a.
7462 * configure.ac: Add common to sub dir.
7463 * configure: Regenerate.
7464
f976a05d
MG
74652011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7466
7467 * xtensa-tdep.c (call0_ret): New function.
7468 (xtensa_skip_prologue): Speed up analysis.
7469
57041825
MG
74702011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7471
7472 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7473 while executing MI command -data-list-changed-registers.
7474
08b9c608
MG
74752011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7476
7477 * xtensa-tdep.c (xtensa_read_register): New function.
7478 (xtensa_write_register): New function.
7479 (xtensa_find_register_by_name): New function.
7480 (xtensa_windowed_frame_cache): Update comments in type description.
7481 (xtensa_frame_cache): Likewise.
7482 (xtensa_window_interrupt_insn): New function.
7483 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7484 (xtensa_insn_kind): Add new instructions.
7485 (rwx_special_register): New function.
7486 (call0_classify_opcode): Add new instructions to the analysis.
7487 (a0_saved, a7_saved, a11_saved): New variables.
7488 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7489 (execute_l32e): New function.
7490 (execute_s32e): New function.
7491 (xtensa_exception_handler_t): New type.
7492 (execute_code): New function.
7493 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7494 analysis for Xtensa Window Exception handlers.
7495
4d1acb11
MG
74962011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7497
98689b25
MG
7498 * xtensa-tdep.c (TX_PS): New.
7499 (windowing_enabled): Update to count for Call0 ABI.
7500 (xtensa_hextochar): New.
7501 (xtensa_init_reggroups): Make algorithm generic.
7502 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7503
75042011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7505
7506 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7507
d3f323f3
MS
75082011-03-08 Michael Snyder <msnyder@vmware.com>
7509
3dcabaa8
MS
7510 * i386-tdep.c (i386_follow_jump): Check return value of
7511 target_read_memory.
7512 (i386_analyze_struct_return): Ditto.
7513 (i386_skip_probe): Ditto.
7514 (i386_match_insn): Ditto.
7515 (i386_skip_noop): Ditto.
7516 (i386_analyze_frame_setup): Ditto.
7517 (i386_analyze_register_saves): Ditto.
7518 (i386_skip_prologue): Ditto.
7519 (i386_skip_main_prologue): Ditto.
7520
13b3fd9b
MS
7521 * target.c (read_whatever_is_readable): Fix memory leak.
7522
d3f323f3
MS
7523 * i386-tdep.c (i386_process_record): Document fall through.
7524
421d5c74
JK
75252011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7526
7527 Fix DWARF-3+ DW_AT_accessibility default assumption.
7528 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7529 cu->header.version >= 3.
7530
63154eca
PA
75312011-03-08 Pedro Alves <pedro@codesourcery.com>
7532
7533 * remote.c (remote_check_symbols): Skip if the target has no
7534 execution.
7535
f1a507a1
JB
75362011-03-08 Joel Brobecker <brobecker@adacore.com>
7537
7538 * target.c (read_whatever_is_readable): Reformat comment,
7539 with a minor typo fix. Minor reformatting of the code.
7540
36073a92
YQ
75412011-03-08 Yao Qi <yao@codesourcery.com>
7542
7543 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7544 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7545 Use cached result instead of calling displaced_in_arm_mode again.
7546 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7547 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7548 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7549 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7550 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7551 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7552 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7553 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7554 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7555 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7556 (arm_catch_kernel_helper_return): Likewise.
7557 * gdb/arm-tdep.h : Update function declarations.
7558
d3f323f3 75592011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 7560
e0e40094
MS
7561 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7562
0b2381f5
MS
7563 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7564
0350914a
MS
7565 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7566
69feea6f
MS
7567 * elfread.c (elf_symtab_read): Stop memory leak.
7568
e6040cbd
MS
7569 * main.c (captured_main): Fix memory leak.
7570
052874e8
AS
75712011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7572
7573 * ada-lang.c (compare_names): Call is_name_suffix with string1
7574 instead of string2.
7575
b11896a5
TT
75762011-03-07 Tom Tromey <tromey@redhat.com>
7577
7578 * xcoffread.c (xcoff_sym_fns): Update.
7579 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7580 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7581 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7582 (symbol_file_add_with_addrs_or_offsets): Likewise.
7583 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7584 * somread.c (som_sym_fns): Update.
7585 * psymtab.h (require_partial_symbols): Declare.
7586 * psymtab.c (require_partial_symbols): New function.
7587 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7588 (ALL_OBJFILE_PSYMTABS): Undef.
7589 (ALL_PSYMTABS): Move from psympriv.h.
7590 (lookup_partial_symtab, find_pc_sect_psymtab)
7591 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7592 (find_last_source_symtab_from_partial)
7593 (forget_cached_source_info_partial)
7594 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7595 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7596 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7597 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7598 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7599 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7600 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7601 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7602 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7603 psymtabs.
7604 * mipsread.c (ecoff_sym_fns): Update.
7605 * machoread.c (macho_sym_fns): Update.
7606 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7607 (read_psyms): New function.
7608 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7609 (elf_sym_fns_lazy_psyms): New global.
7610 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7611 dwarf2_build_psymtabs.
7612 * dbxread.c (aout_sym_fns): Update.
7613 * coffread.c (coff_sym_fns): Update.
7614
fda326dd
TT
76152011-03-07 Tom Tromey <tromey@redhat.com>
7616
7617 * infrun.c (print_exited_reason): Include inferior id and pid in
7618 message.
7619
aeaec162
TT
76202011-03-07 Tom Tromey <tromey@redhat.com>
7621
7622 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7623 parameter.
7624 (target_has_execution_1): Update.
7625 (target_has_execution_current): Declare.
7626 (target_has_execution): Call target_has_execution_current.
7627 (default_child_has_execution): Update.
7628 * target.c (default_child_has_execution): Add 'the_ptid'
7629 parameter.
7630 (target_has_execution_1): Likewise.
7631 (target_has_execution_current): New function.
7632 (add_target): Update.
7633 (init_dummy_target): Update.
7634 * remote-m32r-sdi.c (m32r_has_execution): New function.
7635 (init_m32r_ops): Use it.
7636 * record.c (record_core_has_execution): Now static. Add
7637 'the_ptid' parameter.
7638 * inferior.c (have_live_inferiors): Don't save current thread.
7639 Use target_has_execution_1.
7640
08e14083
YQ
76412011-03-07 Yao Qi <yao@codesourcery.com>
7642
7643 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7644
c05d19c5
JB
76452011-03-07 Joel Brobecker <brobecker@adacore.com>
7646
7647 * elfread.c (elf_symtab_read): Minor reformatting.
7648
3e6ef9e4
JB
76492011-03-07 Joel Brobecker <brobecker@adacore.com>
7650
7651 * objc-lang.c (selectors_info): Minor reformatting.
7652
dbb8534f
JB
76532011-03-07 Joel Brobecker <brobecker@adacore.com>
7654
7655 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7656
dd70cc93
JB
76572011-03-07 Joel Brobecker <brobecker@adacore.com>
7658 Michael Snyder <msnyder@vmware.com>
7659
7660 * ada-valprint.c (ada_val_print_array): Move the declaration of
7661 "byte_order" and "elttype" inside the block where these variables
7662 are actually used. Remove some special handling for the case
7663 where "elttype" and "eltlen" are null. Replace by a comment
7664 and a couple of assertion checks.
7665
b27cf2b3
MS
76662011-03-05 Michael Snyder <msnyder@vmware.com>
7667
7668 * source.c (add_path): Replace semicolon at end of block.
7669 * dwarf2expr.c (execute_stack_op): Ditto.
7670
5387a0c6
MF
76712011-03-05 Mike Frysinger <vapier@gentoo.org>
7672
7673 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7674 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7675 (bfin-*-*): Likewise.
7676
e3aa49af
MS
76772011-03-05 Michael Snyder <msnyder@vmware.com>
7678
82ae4854
MS
7679 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7680 * mdebugread.c (parse_symbol): Ditto.
7681 * parse.c (parse_exp_in_context): Ditto.
7682 * source.c (add_path): Ditto.
7683 * utils.c (gnu_debuglink_crc32): Ditto.
7684 * varobj.c (variable_language): Ditto.
7685
e3aa49af
MS
7686 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7687
154f592e
MS
76882011-03-04 Michael Snyder <msnyder@vmware.com>
7689
da3ecdc6
MS
7690 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7691
9cc89665
MS
7692 * symfile.c (simple_overlay_update): Check for null return value
7693 from lookup_minimal_symbol.
7694
154f592e
MS
7695 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7696
63ffa6ee
TJB
76972011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7698
7699 * eval.c (parse_and_eval_address_1): Remove function.
7700 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7701 instead of parse_and_eval_address_1.
7702 * value.h (parse_and_eval_address_1): Remove prototype.
7703
a17d146e
MS
77042011-03-04 Michael Snyder <msnyder@vmware.com>
7705
7706 * remote.c (putpkt_binary): Document that case stmt falls through.
7707
1a6a67de
TJB
77082011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7709
7710 * breakpointc (print_it_typical): Move NULL check from here...
7711 (print_bp_stop_message): ... to here.
7712
488919c4
MS
77132011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7714
7715 * breakpoint.c (enable_command): Use break instead of continue,
7716 and fill in a missing break.
7717 (disable_command): Ditto.
7718
1e182ce8
UW
77192011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7720
7721 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7722 (terminal_save_ours): Remove misleading comment.
7723 (inflow_inferior_data_cleanup): Free ttystate.
7724 (inflow_inferior_exit): Likewise.
7725 (copy_terminal_info): Copy ttystate.
7726
7727 * serial.c (serial_copy_tty_state): New function.
7728 * serial.h (serial_copy_tty_state): Add prototype.
7729 (struct serial_ops): Add copy_tty_state callback.
7730 * ser-base.c (ser_base_copy_tty_state): New function.
7731 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7732 * ser-go32.c (dos_copy_tty_state): New function.
7733 (dos_ops): Install copy_tty_state callback.
7734 * ser-mingw.c (_initialize_ser_windows): Likewise.
7735 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7736 * ser-unix.c (hardwire_copy_tty_state): New function.
7737 (_initialize_ser_hardwire): Install it.
7738
b2c5f112
MS
77392011-03-04 Michael Snyder <msnyder@vmware.com>
7740
2abae994
MS
7741 * breakpoint.c (create_breakpoint): Add missing break statement.
7742
7f5936f9
MS
7743 Reverting this patch:
7744 * infcall.c (call_function_by_hand): Add break statements for lint.
7745
b2c5f112
MS
7746 Reverting this patch:
7747 * cli/cli-script.c (script_from_file): Add break for lint.
7748
42b1321c
MS
77492011-03-04 Michael Snyder <msnyder@vmware.com>
7750
7751 * solib.c (reload_shared_libraries_1): Close memory leak.
7752
3e2a0cee
TT
77532011-03-03 Tom Tromey <tromey@redhat.com>
7754
7755 PR gdb/12538:
7756 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7757 DW_STRING is NULL.
7758
58397cb7
MS
77592011-03-03 Michael Snyder <msnyder@vmware.com>
7760
2e3fd767
MS
7761 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7762 fields of struct 'st' to zero.
7763
58397cb7
MS
7764 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7765 sal.pspace before calling set_current_source_symtab_and_line.
7766
ced54c8f
YQ
77672011-03-03 Yao Qi <yao@codesourcery.com>
7768
7769 * Makefile.in (configure-common): Remove. Let Makefile
7770 in dir common to rebuild itself.
7771 (common/Makefile): Likewise.
7772
3351ea09
JB
77732011-03-03 Joel Brobecker <brobecker@adacore.com>
7774
7775 * utils.c (parse_escape): Add i18n markup in error message.
7776
bf9f652a
YQ
77772011-03-03 Yao Qi <yao@codesourcery.com>
7778
7779 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7780 ARM_PC_REGNUM.
7781 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7782 (displaced_write_reg, displaced_read_reg): Likewise.
7783 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7784 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7785 (cleanup_branch): Replace magic number 14 and 15 with
7786 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7787
d42de051
MS
77882011-03-02 Michael Snyder <msnyder@vmware.com>
7789
240f9570
MS
7790 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7791
10dd8b54
MS
7792 * cli/cli-script.c (script_from_file): Add break for lint.
7793
b98bd911
MS
7794 * mdebugread.c (parse_partial_symbols): Fix indent.
7795
3494b66d
MS
7796 * target-descriptions.c (tdesc_gdb_type): No need to call
7797 xstrdup, callee saves a copy.
7798
daac021a
MS
7799 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7800
c38d16a7
MS
7801 * infcall.c (call_function_by_hand): Add break statements for lint.
7802
905b671b
MS
7803 * utils.c (parse_escape): Escape the escape char.
7804
f2eb0bc8 7805 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
7806 PyList_Append fails.
7807 (gdbpy_inferiors): Error out if build_inferior_list fails.
7808
8c6a60d1
MS
7809 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7810 a function call.
7811
d42de051
MS
7812 * record.c (record_restore): Move printf to before error return.
7813
4db71c0b
YQ
78142011-03-02 Yao Qi <yao@codesourcery.com>
7815
7816 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7817 is_thumb and insn_size.
7818 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7819 on both ARM and Thumb mode.
7820 (arm_process_displaced_insn): Set is_thumb and insn_size.
7821 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7822 (arm_displaced_step_fixup): Likewise.
7823
a9dc8dcc
MS
78242011-03-01 Michael Snyder <msnyder@vmware.com>
7825
53624a93
MS
7826 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7827
77766669
MS
7828 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7829
62d5b8da
MS
7830 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7831
5e9e105f
MS
7832 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7833
dc19db01
MS
7834 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7835 with xmalloc.
7836
5ce64950
MS
7837 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7838 which shadows function parameter.
7839
a0aa2878
MS
7840 * tracepoint.c (create_tsv_from_upload): Superfluous call
7841 to xstrdup. Callee already calls xstrdup.
7842
e325fb69
MS
7843 * linespec.c (decode_line_1): Remove unnecessary null check.
7844
21cbba77
MS
7845 * tracepoint.c (scope_info): Fix mem leak, remove underused
7846 variable.
7847
63360adc
MS
7848 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7849 superfluous null check.
7850
18ea20ac 7851 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 7852 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 7853
d014929c
MS
7854 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7855
6e9130cf
MS
7856 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7857 be null.
7858
5f01dbc0
MS
7859 * linespec.c (decode_line_1): Check for null before dereference.
7860
d684ab85
MS
7861 * reverse.c (record_restore): Move null-check to before pointer
7862 dereference.
7863
bfffb7e3
MS
7864 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7865
a9dc8dcc
MS
7866 * objc-lang.c (selectors_info): Add explanitory comment.
7867 (classes_info): Ditto.
7868
478fd957
UW
78692011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7870
7871 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7872 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7873 versions of the trampoline. Handle Thumb vs. ARM addresses.
7874 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7875 (arm_linux_init_abi): Install it.
7876 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7877 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7878
0480cefa
MS
78792011-02-28 Michael Snyder <msnyder@vmware.com>
7880
ac50ab3b
MS
7881 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7882 a little bigger, to avoid possibility of an overflow.
7883
f63fbe86
MS
7884 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7885 buffers a little bigger, to avoid possibility of an overflow.
7886
9e91a352
MS
7887 * coffread.c (coff_getfilename): Add check to avoid overflow.
7888
f2eb0bc8 7889 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
7890 avoid overflow.
7891 (classes_info): Error out on too long REGEXP.
7892
098ab512
MS
7893 * infrun.c (handle_inferior_event): Remove unused function call.
7894
bcbd1de9
MS
7895 * fork-child.c (fork_inferior): Remove ifdef'd code and
7896 unused variable.
7897
2e456570
MS
7898 * linux-thread-db.c (attach_thread): Discard unused value.
7899
14571dad
MS
7900 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7901
a9cbf802
MS
7902 * remote.c (remote_get_noisy_reply): Discard unused value.
7903 (remote_vcont_resume): Ditto.
7904 (remote_stop_ns): Ditto.
7905
5715d26e
MS
7906 * linespec.c (decode_objc): Delete unused variable.
7907
4a9bca80
MS
7908 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7909
f47fb265
MS
7910 * dwarf2read.c (add_partial_symbol): Discard unused values.
7911 (read_base_type): Delete unused variable.
7912
e81cff30
MS
7913 * dbxread.c (read_dbx_symtab): Discard unused value.
7914
262acaeb
MS
7915 * eval.c (evaluate_subexp_standard): Delete unused variable,
7916 and discard unused values.
7917
df983543
MS
7918 * infcmd.c (_initialize_infcmd): Discard unused values.
7919
89acf84d
MS
7920 * stabsread.c (rs6000_builtin_type): Missing break statement.
7921
ab8b8aca
MS
7922 * dbxread.c (process_one_symbol): Discard unused value.
7923
6b4511ab
MS
7924 * coffread.c (coff_end_symtab): Delete unused variable.
7925
e8e80198
MS
7926 * dwarf2read.c (dw2_get_file_names): Discard unused value.
7927 (dwarf2_add_typedef): Delete unused variable.
7928 (read_namespace): Ditto.
7929 (dwarf_decode_macros): Ditto.
7930
976aa66e
MS
7931 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7932
5b92b49f
MS
7933 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7934
91e8df85
MS
7935 * p-valprint.c (pascal_val_print): Discard unused value.
7936
899500d6
MS
7937 * utils.c (nquery): Call va_end before return;
7938 (yquery): Ditto.
7939 (query): Ditto.
7940
0480cefa
MS
7941 * proc-service.c (ps_plog): Call va_end before return.
7942
fb6a3ed3
TT
79432011-02-28 Tom Tromey <tromey@redhat.com>
7944
7945 * python/python.c (gdbpy_value_cst): New global.
7946 (_initialize_python): Initialize it.
7947 * python/python-internal.h (gdbpy_value_cst): Declare.
7948 * python/py-value.c (convert_value_from_python): Use
7949 gdbpy_value_cst.
7950
c05202a1
MS
79512011-02-28 Michael Snyder <msnyder@vmware.com>
7952
e463f587
MS
7953 * python/py-cmd.c (cmdpy_init): Fix memory leak.
7954
c38eea1a
MS
7955 * breakpoint.c (catch_syscall_completer): Free malloced list.
7956
3ef09ab5
MS
7957 * jv-lang.c (java_primitive_type_from_name): Add missing break.
7958
8f9a01ee
MS
7959 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
7960 (lval_func_check_synthetic_pointer): Ditto.
7961 (lval_func_free_closure): Fix use-after-free.
c05202a1 7962
477d0d57
TT
79632011-02-28 Tom Tromey <tromey@redhat.com>
7964
7965 * psymtab.c (expand_partial_symbol_tables): Use
7966 ALL_OBJFILE_PSYMTABS.
7967
20937029
JK
79682011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 * objc-lang.c (selectors_info): Error on too long REGEXP.
7971
907b7f4f
MS
79722011-02-28 Michael Snyder <msnyder@vmware.com>
7973
92e96192
MS
7974 * python/py-param.c (set_parameter_value): Add missing
7975 break statement.
7976
907b7f4f
MS
7977 * linux-record.c (record_linux_system_call): Add missing
7978 break statement.
7979
12c5a436
UW
79802011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7981
7982 * breakpoint.c (print_one_breakpoint_location): Remove unused
7983 argument PRINT_ADDRESS_BITS. Update callers.
7984 (print_one_breakpoint): Likewise.
7985
170b53b2
UW
79862011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7987
7988 * breakpoint.c (wrap_indent_at_field): New function.
7989 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
7990 Allocate ui_stream locally instead of using STB argument.
7991 (print_one_breakpoint_location): Update call.
7992 * ui-out.c (ui_out_query_field): New function.
7993 * ui-out.h (ui_out_query_field): Add prototype.
7994
8ab1f94d
JB
79952011-02-28 Joel Brobecker <brobecker@adacore.com>
7996
7997 From Michael Snyder <msnyder@vmware.com>
7998 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
7999
7d488639
MS
80002011-02-27 Michael Snyder <msnyder@vmware.com>
8001
ae179fba
MS
8002 * objc-lang.c (selectors_info): Prevent string overrun.
8003
086dbf66
MS
8004 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8005 error in strncpy.
8006
f2eb0bc8 8007 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8008 outer scope.
8009
7d488639
MS
8010 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8011 param with a local variable of the same name.
8012
3bd0f5ef
MS
80132011-02-27 Michael Snyder <msnyder@vmware.com>
8014
8015 * value.c (value_from_history_ref): New function.
8016 * value.h (value_from_history_ref): Export.
8017 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8018 to parse value history references.
8019 * cli/cli-utils.h (get_number_trailer): Update comment.
8020
80212011-02-27 Michael Snyder <msnyder@vmware.com>
8022
8023 * inferior.c (detach_inferior_command): Use get_number_or_range.
8024 (kill_inferior_command): Ditto.
8025 (remove_inferior_command): Ditto.
8026 (initialize_inferiors): Make command names plural.
8027 Update help strings.
8028
766062f6
MS
80292011-02-27 Michael Snyder <msnyder@vmware.com>
8030
8031 * darwin-nat-info.c: Fix comment typo.
8032 * dwarf2expr.h: Ditto.
8033 * fbsd-nat.c: Ditto.
8034 * fbsd-nat.h: Ditto.
8035 * frame-unwind.h: Ditto.
8036 * frame.h: Ditto.
8037 * hppa-hpux-tdep.c: Ditto.
8038 * i386-linux-nat.c: Ditto.
8039 * linux-nat.c: Ditto.
8040 * nbsd-nat.c: Ditto.
8041 * nbsd-nat.h: Ditto.
8042 * ppc-linux-tdep.c: Ditto.
8043 * serial.c: Ditto.
8044 * ui-file.h: Ditto.
8045 * tui/tui-winsource.c: Ditto.
8046
f2c4ead5
MS
80472011-02-26 Michael Snyder <msnyder@vmware.com>
8048
86b887df
MS
8049 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8050
66fd3b1e
MS
8051 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8052
8c814cdd
MS
8053 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8054 with a local variable of the same name.
8055
6d5e094a 8056 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8057 param with a local variable of the same name.
6d5e094a 8058 (i387_supply_xsave): Ditto.
e5b3d7d6 8059
5eee517d
MS
8060 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8061 that it does not shadow a function parameter.
8062
8fbf6b93
MS
8063 * i386-nat.c (i386_length_and_rw_bits): Document that case
8064 statement is meant to fall through.
8065
cb969d61
MS
8066 * expprint.c (dump_subexp_body_standard): Document that case
8067 statement is meant to fall through.
8068
f2c4ead5
MS
8069 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8070 dead if statement. Condition can't be false.
8071
b021a221
MS
80722011-02-25 Michael Snyder <msnyder@vmware.com>
8073
8074 * arm-tdep.c: Fix typos in comments.
8075 * bsd-uthread.c: Ditto.
8076 * completer.c: Ditto.
8077 * corelow.c: Ditto.
8078 * cp-namespace.c: Ditto.
8079 * cp-support.c: Ditto.
8080 * cris-tdep.c: Ditto.
8081 * dbxread.c: Ditto.
8082 * dwarf2read.c: Ditto.
8083 * frame.h: Ditto.
8084 * gdbtypes.h: Ditto.
8085 * inferior.h: Ditto.
8086 * mdebugread.c: Ditto.
8087 * mips-tdep.c: Ditto.
8088 * ppc-linux-nat.c: Ditto.
8089 * ppc-linux-tdep.c: Ditto.
8090 * printcmd.c: Ditto.
8091 * sol-thread.c: Ditto.
8092 * solib-frv.c: Ditto.
8093 * solist.h: Ditto.
8094 * sparc64-tdep.c: Ditto.
8095 * spu-tdep.c: Ditto.
8096 * stabsread.c: Ditto.
8097 * symfile.c: Ditto.
8098 * valops.c: Ditto.
8099 * varobj.c: Ditto.
8100 * vax-nat.c: Ditto.
8101 * python/py-block.c: Ditto.
8102 * python/py-symbol.c: Ditto.
8103 * python/py-symtab.c: Ditto.
8104 * python/py-value.c: Ditto.
8105 * tui/tui-win.c: Ditto.
8106
c82c0b55
MS
81072011-02-25 Michael Snyder <msnyder@vmware.com>
8108
8109 * inferior.c (print_inferior): Accept a string instead of an int
8110 for requested_inferiors, and use get_number_or_range to parse it.
8111 (info_inferiors_command): Pass args string to print_inferior.
8112 (initialize_inferiors): Change help string for info inferiors.
8113 * inferior.h (print_inferior): Export prototype change.
8114
ee00cd23
TT
81152011-02-25 Tom Tromey <tromey@redhat.com>
8116
8117 * common/ax.def (invalid2): Set to 0x31.
8118
0502ed8c
JK
81192011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8120
8121 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8122 L and plongest.
8123 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8124 use L and plongest.
8125 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8126
2c9de912
MS
81272011-02-24 Michael Snyder <msnyder@vmware.com>
8128
8129 * Makefile.in (clean): Make clean should remove generated files
8130 observer.h and observer.inc.
8131
a04b0428
JB
81322011-02-24 Joel Brobecker <brobecker@adacore.com>
8133
8134 Revert the following patch (not approved yet):
8135 2011-02-21 Hui Zhu <teawater@gmail.com>
8136 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8137 * ax-gdb.c (gen_printf_expr_callback): New function.
8138 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8139 * ax-general.c (ax_memcpy): New function.
8140 (ax_print): Handle "printf".
8141 (ax_reqs): Ditto.
8142 * ax.h (ax_memcpy): Forward declare.
8143 * common/ax.def (invalid2): Removed.
8144 (printf): New entry.
8145 * printcmd.c (printcmd.h): New include.
8146 (string_printf): New function.
8147 (ui_printf): Removed.
8148 (printf_command): Remove static. Call string_printf.
8149 (eval_command): Call string_printf.
8150 * printcmd.h: New file.
8151 * tracepoint.c (validate_actionline,
8152 encode_actions_1): handle printf_command.
8153
2b52013f
TT
81542011-02-23 Tom Tromey <tromey@redhat.com>
8155
8156 * ax-general.c (ax_pick): Add missing newline.
8157
e5a67952
MS
81582011-02-23 Michael Snyder <msnyder@vmware.com>
8159
8160 * breakpoint.c (breakpoint_1): Change first argument from an int
8161 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8162 breakpoints rather than just one. Use new function
e5a67952
MS
8163 'number_is_in_list' to implement.
8164 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8165 (watchpoints_info): Ditto.
8166 (tracepoints_info): Ditto.
8167 (maintenance_info_breakpoints): Ditto.
8168 (_initialize_breakpoint): Update help strings to reflect the fact
8169 that these functions can now take more than one argument.
8170 * cli/cli-utils.c (number_is_in_list): New function.
8171 * cli/cli-utils.h (number_is_in_list): Export.
8172
81732011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8174
8175 * memattr.c (mem_enable_command): Use get_number_or_range.
8176 (mem_disable_command): Ditto.
8177 (mem_delete_command): Ditto.
8178 (_initialize_mem): Tweak usage message to reflect multiple
8179 arguments.
8180
6e6fbe60
DE
81812011-02-22 Doug Evans <dje@google.com>
8182
8183 Add gdb.lookup_global_symbol python function.
8184 * NEWS: Add entry.
8185 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8186 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8187 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8188
79b97fa8
TT
81892011-02-22 Tom Tromey <tromey@redhat.com>
8190
8191 * language.c (language_class_name_from_physname): Rename
8192 'curr_language' argument to 'lang'; use in body.
8193
298f437a
MS
81942011-02-22 Michael Snyder <msnyder@vmware.com>
8195
8196 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8197
b7ea3126
PA
81982011-02-22 Pedro Alves <pedro@codesourcery.com>
8199
8200 * frame-unwind.h: Fix comment to mention the this frame, not the
8201 next.
8202
58ee6d60
TT
82032011-02-22 Tom Tromey <tromey@redhat.com>
8204
8205 * symfile.c (auto_solib_limit): Remove.
8206 * symfile.h (auto_solib_limit): Remove.
8207
36238dbc
JB
82082011-02-22 Joel Brobecker <brobecker@adacore.com>
8209
8210 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8211
aea5b279
MS
82122011-02-21 Michael Snyder <msnyder@vmware.com>
8213
8214 * gdbthread.h (print_thread_info): Change prototype.
8215 * thread.c (print_thread_info): Accept char* instead of int for
8216 requested_threads argument. Use new function number_is_in_list
8217 to determine which threads to list.
8218 (info_threads_command): Pass char* to print_thread_info.
8219 * cli/cli-utils.c (number_is_in_list): New function.
8220 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8221 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8222 print_thread_info.
8223 (print_one_inferior): Ditto.
8224 (mi_cmd_list_thread_groups): Ditto.
8225
8caa75ee
JK
82262011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8227
8228 * common/Makefile.in (CFLAGS): New.
8229 (COMPILE): Add $(CFLAGS).
8230
ea666128
TT
82312011-02-21 Tom Tromey <tromey@redhat.com>
8232
8233 * breakpoint.c (catch_syscall_command_1): Fix typo.
8234
e9cafbcc
TT
82352011-02-21 Tom Tromey <tromey@redhat.com>
8236
8237 * reverse.c: Include cli-utils.h.
8238 * printcmd.c: Include cli-utils.h.
8239 (string_printf): Use skip_spaces.
8240 * cli/cli-utils.h: New file.
8241 * cli/cli-utils.c: New file.
8242 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8243 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8244 * breakpoint.h (get_number, get_number_or_range): Move to
8245 cli-utils.h.
8246 * breakpoint.c: Include cli-utils.h.
8247 (get_number_trailer, get_number, get_number_or_range)
8248 (ep_skip_leading_whitespace): Move to cli-utils.c.
8249 (create_breakpoint_sal, find_condition_and_thread)
8250 (decode_static_tracepoint_spec, watch_command_1)
8251 (watch_maybe_just_location, ep_parse_optional_if_clause)
8252 (catch_fork_command_1, catch_exec_command_1)
8253 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8254 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8255 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8256 (HFILES_NO_SRCDIR): Add cli-utils.h.
8257 (cli-utils.o): New target.
8258
f67fd822
PM
82592011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8260
8261 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8262 before calling discard_all_inferiors.
8263
c9def01d
UW
82642011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8265
8266 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8267 (struct builtin_opencl_type): Remove.
8268 (builtin_opencl_type): Change return type to "struct type **".
8269 (lookup_opencl_vector_type): Update caller.
8270 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8271 (build_opencl_types): Install plain array of "struct type *"
8272 instead of "struct builtin_opencl_type".
8273
e3039479
UW
82742011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8275 Ulrich Weigand <uweigand@de.ibm.com>
8276
8277 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8278 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8279 (struct arm_linux_hwbp_cap): New type.
8280 (arm_linux_get_hwbp_cap): New function.
8281 (arm_linux_get_hw_breakpoint_count): Likewise.
8282 (arm_linux_get_hw_watchpoint_count): Likewise.
8283 (arm_linux_can_use_hw_breakpoint): Likewise.
8284 (arm_hwbp_type): New type.
8285 (arm_hwbp_control_t): Likewise.
8286 (struct arm_linux_hw_breakpoint): Likewise.
8287 (struct arm_linux_thread_points): Likewise.
8288 (arm_threads): New global variable.
8289 (arm_linux_find_breakpoints_by_tid): New function.
8290 (arm_hwbp_control_initialize): Likewise.
8291 (arm_hwbp_control_is_enabled): Likewise.
8292 (arm_hwbp_control_disable): Likewise.
8293 (arm_linux_hw_breakpoint_initialize): Likewise.
8294 (arm_linux_get_hwbp_type): Likewise.
8295 (arm_linux_hw_watchpoint_initialize): Likewise.
8296 (arm_linux_hw_breakpoint_equal): Likewise.
8297 (arm_linux_insert_hw_breakpoint1): Likewise.
8298 (arm_linux_remove_hw_breakpoint1): Likewise.
8299 (arm_linux_insert_hw_breakpoint): Likewise.
8300 (arm_linux_remove_hw_breakpoint): Likewise.
8301 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8302 (arm_linux_insert_watchpoint): Likewise.
8303 (arm_linux_remove_watchpoint): Likewise.
8304 (arm_linux_stopped_data_address): Likewise.
8305 (arm_linux_stopped_by_watchpoint): Likewise.
8306 (arm_linux_watchpoint_addr_within_range): Likewise.
8307 (arm_linux_new_thread): Likewise.
8308 (arm_linux_thread_exit): Likewise.
8309 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8310 related target callbacks. Register arm_linux_new_thread and
8311 arm_linux_thread_exit.
8312 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8313 * arm-tdep.c (arm_pc_is_thumb): Make global.
8314 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8315
b5db5dfc
UW
83162011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8317
8318 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8319 per-frame locations while within a function epilogue.
8320
e25b2cfa
PM
83212011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8322
8323 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8324 to GNU coding standards.
8325
4af53f97
PM
83262011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8327
8328 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8329 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8330 (ser_windows_close): Only call CancelIo if function exists.
8331 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8332 to check for existence of CancelIo function in kernel32 DLL.
8333
d0e92d82
HZ
83342011-02-21 Hui Zhu <teawater@gmail.com>
8335
8336 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8337 * ax-gdb.c (gen_printf_expr_callback): New function.
8338 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8339 * ax-general.c (ax_memcpy): New function.
8340 (ax_print): Handle "printf".
8341 (ax_reqs): Ditto.
8342 * ax.h (ax_memcpy): Forward declare.
8343 * common/ax.def (invalid2): Removed.
8344 (printf): New entry.
8345 * printcmd.c (printcmd.h): New include.
8346 (string_printf): New function.
8347 (ui_printf): Removed.
8348 (printf_command): Remove static. Call string_printf.
8349 (eval_command): Call string_printf.
8350 * printcmd.h: New file.
8351 * tracepoint.c (validate_actionline,
8352 encode_actions_1): handle printf_command.
8353
7d357efd
MS
83542011-02-19 Michael Snyder <msnyder@vmware.com>
8355
8356 * reverse.c (delete_one_bookmark): Argument is now bookmark
8357 id rather than pointer to bookmark struct.
8358 (delete_bookmark_command): Use get_number_or_range.
8359 (goto_bookmark_command): Parse with get_number instead of strtoul.
8360 (bookmark_1): New function. Print info for one bookmark.
8361 (bookmarks_info): Use get_number_or_range and bookmark_1.
8362
7a45ebd7
MS
83632011-02-18 Michael Snyder <msnyder@vmware.com>
8364
f2eb0bc8 8365 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8366 get_number_or_range.
65ebfb52 8367 (thread_apply_command): Ditto.
7a45ebd7 8368
94d5e490
TT
83692011-02-18 Tom Tromey <tromey@redhat.com>
8370
8371 * common/ax.def: New file.
8372 * ax.h (enum agent_op): Use ax.def.
8373 * ax-general.c (aop_map): Use ax.def.
8374
c7f96d2b
TT
83752011-02-18 Tom Tromey <tromey@redhat.com>
8376
8377 * ax-general.c (aop_map): Add pick and rot.
8378 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8379 <DW_OP_rot>: Implement.
8380 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8381 (ax_pick): Declare.
8382 * ax-general.c (ax_pick): New function.
8383
66694b75
TT
83842011-02-18 Tom Tromey <tromey@redhat.com>
8385
8386 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8387
eeaafae2
JK
83882011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8389 Tom Tromey <tromey@redhat.com>
8390
8391 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8392 make_symbol_overload_list_block with NULL BLOCK.
8393 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8394
3c3fe74c
PA
83952011-02-18 Pedro Alves <pedro@codesourcery.com>
8396
8397 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8398 * breakpoint.h (get_number_or_range): Declare.
8399 * printcmd.c (ALL_DISPLAYS): Declare.
8400 (delete_display): Reimplement taking a display pointer.
8401 (undisplay_command): Accept a range of displays to delete, using
8402 get_number_or_range.
8403
13163d80
PM
84042011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8405
8406 * c-valprint.c (c_val_print): Add embedded_offset to address
8407 for arrays of unspecified length.
8408 * p-valprint.c (pascal_val_print): Likewise.
8409
b434a28f
YQ
84102011-02-18 Yao Qi <yao@codesourcery.com>
8411
8412 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8413 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8414 (thumb_process_displaced_insn): New.
8415 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8416 call to arm_process_displaced_insn.
8417 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8418
9f6f94ff
TT
84192011-02-17 Tom Tromey <tromey@redhat.com>
8420
8421 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8422 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8423 compile_dwarf_to_ax. No longer static. Call
8424 dwarf2_compile_cfa_to_ax.
8425 (locexpr_tracepoint_var_ref): Update.
8426 (loclist_tracepoint_var_ref): Update.
8427 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8428 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8429 argument; add 'gdbarch' and 'pc'.
8430 (dwarf2_compile_cfa_to_ax): New function.
8431 (dwarf2_frame_cache): Update.
8432
e67ad678
JB
84332011-02-17 Joel Brobecker <brobecker@adacore.com>
8434
8435 * ada-lang.c (ada_type_of_array): Fix the size of the array
8436 in the case of an unconstrained packed array.
8437
946ebb0d
YQ
84382011-02-17 Yao Qi <yao@codesourcery.com>
8439
8440 * common/Makefile.in: Add more targets for make.
8441
1ba1b353
TT
84422011-02-16 Tom Tromey <tromey@redhat.com>
8443
8444 * dwarf2loc.c (unimplemented): Fix typo.
8445
b1bfef65
TT
84462011-02-16 Tom Tromey <tromey@redhat.com>
8447
8448 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8449 (compile_dwarf_to_ax) <default>: Use unimplemented.
8450 <DW_OP_deref>: Update.
8451 (disassemble_dwarf_expression): Update.
8452 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8453 (decode_locdesc): Update.
8454 * dwarf2expr.h (dwarf_stack_op_name): Update.
8455
5f1e6f19
TT
84562011-02-16 Tom Tromey <tromey@redhat.com>
8457
8458 * ax.h (struct aop_map) <name>: Now const.
8459
a0c78a73
PA
84602011-02-16 Tom Tromey <tromey@redhat.com>
8461
8462 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8463 than axs_rvalue.
8464
946ebb0d 84652011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8466
8467 * infrun.c (get_displaced_step_closure_by_addr): New.
8468 * inferior.h: Declare it.
8469 * arm-tdep.c: (arm_pc_is_thumb): Call
8470 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8471 returns non-NULL.
8472
08807d5a
PA
84732011-02-16 Pedro Alves <pedro@codesourcery.com>
8474 Jan Kratochvil <jan.kratochvil@redhat.com>
8475
8476 gdb/
8477 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8478
29976f3f
PA
84792011-02-16 Pedro Alves <pedro@codesourcery.com>
8480 Jan Kratochvil <jan.kratochvil@redhat.com>
8481
8482 * value.c (value_contents_copy_raw): Extend describing comment.
8483 Assert that the destination contents we're overwriting are wholly
8484 available.
fb68ae73 8485 (value_contents_copy): Extend describing comment.
29976f3f 8486
cd24cfaa
PA
84872011-02-16 Pedro Alves <pedro@codesourcery.com>
8488 Jan Kratochvil <jan.kratochvil@redhat.com>
8489
8490 * value.c (value_available_contents_eq): Remove redundant local
8491 variables. Fix available contents comparision.
8492 * value.h (value_available_contents_eq): Extend describing
8493 comment.
8494
60bbf338
YQ
84952011-02-16 Yao Qi <yao@codesourcery.com>
8496
8497 * thread.c (info_threads_command): Add missing i18n markup and remove
8498 trailing newline.
8499
17450429
PP
85002011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8501
8502 * breakpoint.c (longjmp_names): New variable.
8503 (struct breakpoint_objfile_data): New type.
8504 (breakpoint_objfile_key): New variable.
8505 (msym_not_found): New variable.
8506 (msym_not_found_p): New predicate.
8507 (get_breakpoint_objfile_data): New function.
8508 (create_overlay_event_breakpoint): Check per-objfile cache for
8509 symbols first.
8510 (create_longjmp_master_breakpoint): Likewise.
8511 (create_std_terminate_master_breakpoint): Likewise.
8512 (create_exception_master_breakpoint): Likewise.
8513 (_initialize_breakpoint): Register per-objfile data key.
8514
af02033e
PP
85152011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8516
8517 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8518 parameter value.
8519 (create_longjmp_master_breakpoint): Loop over longjmp names.
8520 (create_std_terminate_master_breakpoint): Const-propagate parameter
8521 value.
8522 (update_breakpoints_after_exec): Adjust.
8523 (breakpoint_re_set): Adjust.
8524
60f98dde
MS
85252011-02-15 Michael Snyder <msnyder@vmware.com>
8526
cdf99611
MS
8527 * thread.c (info_threads_command): Process arg as thread id,
8528 or list of thread ids.
8529 (thread_find_command): New command.
8530 (_initialize_thread): Document argument for info threads.
8531 Document 'thread find' command.
8532 * NEWS: Document new command "thread find".
60f98dde 8533
0feedb2c
JK
85342011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8535
8536 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8537 * aclocal.m4: Regenerated with aclocal-1.11.1.
8538 * common/configure: Regenerate with autoconf-2.64.
8539
648cd113
KW
85402011-02-15 Ken Werner <ken.werner@de.ibm.com>
8541
8542 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8543 bool data type to a size of one byte.
8544
5657161f
PA
85452011-02-15 Pedro Alves <pedro@codesourcery.com>
8546 Jan Kratochvil <jan.kratochvil@redhat.com>
8547
8548 * target.c (memory_xfer_live_readonly_partial): Document where to
8549 look for interface description.
8550
494e194e
YQ
85512011-02-15 Yao Qi <yao@codesourcery.com>
8552
8553 PR tdep/12352
8554 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8555 order to store PC value on stack instead of text section.
8556
d9492458
TJB
85572011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8558
8559 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8560 the EFP register set size.
8561 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8562 data from the VMX register.
8563 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8564 and write data from/to the VMX register.
8565
cdf99611
MS
85662011-02-14 Michael Snyder <msnyder@vmware.com>
8567
8568 * command.h (enum command_class): New class 'no_set_class', for
8569 "show" commands without a corresponding "set" command.
8570 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8571 * copying.c (_initialize_copying): Ditto for "show copying" and
8572 "show warranty".
8573 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8574 "show version".
8575 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8576 which there is no corresponding "set" command (eg. "show copying").
8577
424447ee
PA
85782011-02-14 Pedro Alves <pedro@codesourcery.com>
8579 Jan Kratochvil <jan.kratochvil@redhat.com>
8580
8581 * exec.c (section_table_available_memory): Change `len' parameter
8582 type to ULONGEST.
8583 * exec.h (section_table_available_memory): Ditto.
8584 * value.h (read_value_memory): Rename the `offset' parameter to
8585 `embedded_offset'.
8586
c0f61f9c 85872011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 8588 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
8589
8590 * memrange.c (compare_mem_ranges): Mention sort order in
8591 describing comment.
8592 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8593 * tracepoint.c (traceframe_available_memory): Extend comment to
8594 mention what happens to RESULT when the target does not support
8595 the query.
8596
6bfc80c7
PA
85972011-02-14 Pedro Alves <pedro@codesourcery.com>
8598 Jan Kratochvil <jan.kratochvil@redhat.com>
8599
8600 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8601 range.
8602
e7303042
PA
86032011-02-14 Pedro Alves <pedro@codesourcery.com>
8604
8605 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8606 No longer handle NULL values.
8607
8af8e3bc
PA
86082011-02-14 Pedro Alves <pedro@codesourcery.com>
8609
8610 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8611 * value.c: Include "exceptions.h".
8612 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8613 generic error.
8614 * cp-abi.c: Include gdb_assert.h.
8615 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8616 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8617 errors.
8618 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8619 parameters. No longer returns -1 on error.
8620 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8621 `val' parameters.
8622 * cp-valprint.c: Include exceptions.h.
8623 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8624 the baseclass_offset. Handle unavailable base classes. Use
8625 val_print_invalid_address.
8626 * p-valprint.c: Include exceptions.h.
8627 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8628 when fetching the baseclass_offset. No longer expect
8629 baseclass_offset returning -1. Handle unavailable base classes.
8630 Use val_print_invalid_address.
8631 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8632 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8633 `embedded_offset' and `val' parameters. Adjust.
8634 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8635 parameter, and change its type to gdb_byte pointer. Add
8636 `embedded_offset' and `val' parameters. Adjust. No longer expect
8637 baseclass_offset returning -1.
8638 (value_dynamic_cast): Use value_contents_for_printing rather than
8639 value_contents. Adjust.
8640 (search_struct_field): No longer expect baseclass_offset returning
8641 -1.
8642 (search_struct_method): If reading memory from the target is
8643 necessary, wrap it in a new value to pass to baseclass_offset. No
8644 longer expect baseclass_offset returning -1.
8645 (find_method_list): No longer expect baseclass_offset returning
8646 -1. Use value_contents_for_printing rather than value_contents.
8647 * valprint.c (val_print_invalid_address): New function.
8648 * valprint.h (val_print_invalid_address): Declare.
8649 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8650 and `val' parameters. No longer expect baseclass_offset returning
8651 -1. Adjust.
8652 * gnu-v2-abi.c: Include "exceptions.h".
8653 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8654 parameters. Handle unavailable memory. Recurse through
8655 gnuv2_baseclass_offset directly, rather than through
8656 baseclass_offset. No longer returns -1 on not found, instead
8657 throw an error.
8658 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8659 `val' parameters. Adjust.
8660
1b28d0b3
PA
86612011-02-14 Pedro Alves <pedro@codesourcery.com>
8662
8663 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8664 almost but not quite adjacent.
8665
ec0a52e1
PA
86662011-02-14 Pedro Alves <pedro@codesourcery.com>
8667
8668 * value.h (value_entirely_available): Declare.
8669 * value.c (value_entirely_available): New function.
8670 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8671 real type if the pointer is unavailable.
8672
24e6bcee
PA
86732011-02-14 Pedro Alves <pedro@codesourcery.com>
8674
8675 * valops.c (value_repeat): Use read_value_memory instead of
8676 read_memory.
8677
39d37385
PA
86782011-02-14 Pedro Alves <pedro@codesourcery.com>
8679
8680 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8681 * value.c (value_contents_copy_raw, value_contents_copy): New
8682 functions.
8683 (value_primitive_field): Use value_contents_copy_raw instead of
8684 memcpy.
8685 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8686 memcpy.
8687 (value_array, value_slice): Ditto.
8688 * valarith.c (value_subscripted_rvalue): Use
8689 value_contents_copy_raw instead of memcpy.
8690
a3d34bf4
PA
86912011-02-14 Pedro Alves <pedro@codesourcery.com>
8692
8693 <unavailable> references.
8694
8695 * valops.c (get_value_at): Use value_from_contents_and_address,
8696 avoiding read_memory.
8697
9fc6d940
PA
86982011-02-14 Pedro Alves <pedro@codesourcery.com>
8699
8700 * c-valprint.c (c_val_print): Print a string with unavailable
8701 contents as an array.
8702
5467c6c8
PA
87032011-02-14 Pedro Alves <pedro@codesourcery.com>
8704
8705 * value.h (unpack_bits_as_long): Delete declaration.
8706 (unpack_value_bits_as_long): Declare.
8707 (unpack_value_field_as_long): Declare.
8708 (value_field_bitfield): Declare.
8709 * value.c (unpack_bits_as_long): Rename to...
8710 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8711 value parameters. Return the extracted result in a new output
8712 parameter. If the value contents are unavailable, return false,
8713 otherwise return true.
8714 (unpack_value_bits_as_long): New.
8715 (unpack_field_as_long): Rename to...
8716 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8717 Add embedded_offset and value parameters. Return the extracted
8718 result in a new output parameter. If the value contents are
8719 unavailable, return false, otherwise return true.
8720 (unpack_value_field_as_long): New.
8721 (unpack_field_as_long_1): New.
8722 (unpack_field_as_long): Reimplement as wrapper around
8723 unpack_value_field_as_long_1.
8724 (value_field_bitfield): New function.
8725 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8726 unpack_value_bits_as_long. Mark the value as unavailable, if it
8727 is unavailable.
8728 * jv-valprint.c (java_print_value_fields): Use
8729 value_field_bitfield.
8730 * p-valprint.c (pascal_object_print_value_fields): Use
8731 value_field_bitfield.
8732 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8733
3158c6ed
PA
87342011-02-14 Pedro Alves <pedro@codesourcery.com>
8735
8736 * value.c (get_internalvar_integer): Also return the int value of
8737 TYPE_CODE_INT INTERNALVAR_VALUE values.
8738 (set_internalvar): Don't special case TYPE_CODE_INT.
8739
9fbdca0d
PA
87402011-02-14 Pedro Alves <pedro@codesourcery.com>
8741
8742 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8743 INTERNALVAR_POINTER.
8744 <pointer>: Delete.
8745 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8746 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8747 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8748
c8c1c22f
PA
87492011-02-14 Pedro Alves <pedro@codesourcery.com>
8750
8751 * value.h (value_available_contents_eq): Declare.
8752 * value.c (find_first_range_overlap): New function.
8753 (value_available_contents_eq): New function.
8754 * valprint.c (val_print_array_elements): Use
8755 value_available_contents_eq.
8756 * ada-valprint.c (val_print_packed_array_elements): Use
8757 value_available_contents_eq.
8758 * jv-valprint.c (java_value_print): Use
8759 value_available_contents_eq.
8760
e6e4e701
PA
87612011-02-14 Pedro Alves <pedro@codesourcery.com>
8762
8763 * target.c (target_read_live_memory): New function.
8764 (memory_xfer_live_readonly_partial): New.
8765 (memory_xfer_partial): If reading from a traceframe, fallback to
8766 reading unavailable read-only memory from read-only regions of
8767 live target memory.
8768 * tracepoint.c (disconnect_tracing): Adjust.
8769 (set_current_traceframe): New, factored out from
8770 set_traceframe_number.
8771 (set_traceframe_number): Reimplement to only change the traceframe
8772 number on the GDB side.
8773 (do_restore_current_traceframe_cleanup): Adjust.
8774 (make_cleanup_restore_traceframe_number): New.
8775 (cur_traceframe_number): New global.
8776 (tfile_open): Set cur_traceframe_number to no traceframe.
8777 (set_tfile_traceframe): New function.
8778 (tfile_trace_find): If looking up a traceframe using any method
8779 other than by number, make sure the current tfile traceframe
8780 matches gdb's current traceframe. Update the current tfile
8781 traceframe if the lookup succeeded.
8782 (tfile_fetch_registers, tfile_xfer_partial)
8783 (tfile_get_trace_state_variable_value): Make sure the remote
8784 traceframe matches gdb's current traceframe.
8785 * remote.c (remote_traceframe_number): New global.
8786 (remote_open_1): Set it to -1.
8787 (set_remote_traceframe): New function.
8788 (remote_fetch_registers, remote_store_registers)
8789 (remote_xfer_memory, remote_xfer_partial)
8790 (remote_get_trace_state_variable_value): Make sure the remote
8791 traceframe matches gdb's current traceframe.
8792 (remote_trace_find): If looking up a traceframe using any method
8793 other than by number, make sure the current remote traceframe
8794 matches gdb's current traceframe. Update the current remote
8795 traceframe if the lookup succeeded.
8796 * infrun.c (fetch_inferior_event): Adjust.
8797 * tracepoint.h (set_current_traceframe): Declare.
8798 (get_traceframe_number, set_traceframe_number): Add describing
8799 comments.
8800
e6ca34fc
PA
88012011-02-14 Pedro Alves <pedro@codesourcery.com>
8802
8803 Mark pieces of values as unavailable if the corresponding memory
8804 is unavailable.
8805
8806 * valops.c: Include tracepoint.h.
8807 (value_fetch_lazy): Use read_value_memory.
8808 (read_value_memory): New.
8809 * value.h (read_value_memory): Declare.
8810 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8811 * exec.c (section_table_available_memory): New function.
8812 * exec.h (section_table_available_memory): Declare.
8813
2a7498d8
PA
88142011-02-14 Pedro Alves <pedro@codesourcery.com>
8815
8816 * Makefile.in (SFILES): Add memrange.c.
8817 (HFILES_NO_SRCDIR): Add memrange.h.
8818 (COMMON_OBS): Add memrange.o.
8819 * memrange.c: New file.
8820 * memrange.h: New file.
8821 * tracepoint.c: Include memrange.h.
8822 (struct mem_range): Delete.
8823 (mem_range_s): Delete.
8824 (traceframe_available_memory): New function.
8825 * tracepoint.h (traceframe_available_memory): Declare.
8826
b3b9301e
PA
88272011-02-14 Pedro Alves <pedro@codesourcery.com>
8828
8829 * target.h (struct traceframe_info): Forward declare.
8830 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8831 (struct target_ops) <to_traceframe_info>: New field.
8832 (target_traceframe_info): New.
8833 * target.c (update_current_target): Inherit and default
8834 to_traceframe_info.
8835 * remote.c (PACKET_qXfer_traceframe_info): New.
8836 (remote_protocol_features): Register qXfer:traceframe-info:read.
8837 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8838 (remote_traceframe_info): New.
8839 (init_remote_ops): Install it.
8840 (_initialize_remote): Install "set/show remote traceframe-info"
8841 commands.
8842 * tracepoint.h (parse_traceframe_info): Declare.
8843 * tracepoint.c (struct mem_range): New.
8844 (mem_range_s): New typedef.
8845 (struct traceframe_info): New.
8846 (traceframe_info): New global.
8847 (free_traceframe_info): New function.
8848 (clear_traceframe_info): New function.
8849 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8850 info.
8851 (build_traceframe_info): New function.
8852 (tfile_traceframe_info): New function.
8853 (init_tfile_ops): Install tfile_traceframe_info.
8854 (traceframe_info_start_memory, free_result): New functions.
8855 (memory_attributes, traceframe_info_elements): New globals.
8856 (parse_traceframe_info, get_traceframe_info): New functions.
8857 * features/traceframe-info.dtd: New file.
8858 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8859
4e07d55f
PA
88602011-02-14 Pedro Alves <pedro@codesourcery.com>
8861
8862 Base support for <unavailable> value contents.
8863
4e07d55f
PA
8864 * value.h (value_bytes_available): Declare.
8865 (mark_value_bytes_unavailable): Declare.
8866 * value.c (struct range): New struct.
8867 (range_s): New typedef.
8868 (ranges_overlap): New function.
8869 (range_lessthan): New function.
8870 (ranges_contain_p): New function.
8871 (struct value) <unavailable>: New field.
8872 (value_bytes_available): New function.
8873 (mark_value_bytes_unavailable): New function.
8874 (require_not_optimized_out): Constify parameter.
8875 (require_available): New function.
8876 (value_contents_all, value_contents): Require all bytes be
8877 available.
8878 (value_free): Free `unavailable'.
8879 (value_copy): Copy `unavailable'.
8880 * valprint.h (val_print_unavailable): Declare.
8881 * valprint.c (valprint_check_validity): Rename `offset' parameter
8882 to `embedded_offset'. If printing a scalar, check whether the
8883 value chunk is available.
8884 (val_print_unavailable): New.
8885 (val_print_scalar_formatted): Check whether the value is
8886 available.
8887 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8888 pretty-printing unavailable values.
8889
bc9a5551
JK
88902011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8891
8892 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8893 * c-typeprint.c (c_type_print_args): Update the function comment. New
8894 variable param_type, initialize it. Remove const/volatile qualifiers
8895 for language_cplus and !show_artificial. Use param_type.
8896
93b55aa1
JK
88972011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8898
8899 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8900 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8901 * symtab.h (struct symtab) <next>: Comment extension.
8902
181d9476
YQ
89032011-02-12 Yao Qi <yao@codesourcery.com>
8904
8905 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8906
b708a5c7
JK
89072011-02-11 Yao Qi <yao@codesourcery.com>
8908
8909 * common/Makefile.in: Add copyright header.
8910
c5187ac6
PA
89112011-02-11 Pedro Alves <pedro@codesourcery.com>
8912
8913 * infrun.c (proceed): Move switching out and in of tfind mode from
8914 here ...
8915 (fetch_inferior_event): ... to here.
8916
4f3e6fb7
YQ
89172011-02-11 Yao Qi <yao@codesourcery.com>
8918
8919 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8920 libcommon.a.
8921 * configure.ac: Add common to sub dir.
8922 * configure: Regenerate.
8923
b708a5c7
JK
89242011-02-11 Yao Qi <yao@codesourcery.com>
8925
8926 Build libcommon.a.
8927
8928 * common/Makefile.in: New.
8929 * common/configure.ac: New.
8930 * common/aclocal.m4: New.
8931 * common/configure: Generate.
8932
2287cc7e
PA
89332011-02-10 Pedro Alves <pedro@codesourcery.com>
8934
8935 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8936 side of the parenthesis.
8937
8938 Merge from GCC:
8939 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 8940 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 8941
fd62cb89
MS
89422011-02-08 Michael Snyder <msnyder@vmware.com>
8943
8944 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
8945
56d2815c
JK
89462011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8947
8948 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
8949 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
8950 psubd and paddd.
8951
4f7d61a8
JK
89522011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8953
8954 PR 12361.
8955 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
8956 phsubsw.
8957 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
8958 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
8959
54fcddd0
UW
89602011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8961
8962 * dwarf2read.c (read_subroutine_type): Set special calling
8963 convention flag for functions compiled by IBM XL C for OpenCL.
8964 * ppc-sysv-tdep.c: Include "dwarf2.h"
8965 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
8966 calling convention.
8967 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
8968 IBM OpenCL vector types calling convention.
8969 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
8970 (ppc_sysv_abi_broken_return_value): Likewise.
8971 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
8972 types calling convention.
8973 (ppc64_sysv_abi_return_value): Likewise.
8974 * spu-tdep.c: Include "dwarf2.h"
8975 (spu_return_value): Implement IBM OpenCL vector types calling
8976 convention.
8977
d6dafb7c
UW
89782011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8979
8980 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
8981 correct ABI for AltiVec vector arguments.
8982
32b72a42
PA
89832011-02-07 Pedro Alves <pedro@codesourcery.com>
8984
8985 * valprint.c (val_print): Extend comment.
8986 * ada-valprint.c (ada_valprint): Rewrite comment deferring
8987 interface explanation to val_print.
8988 (ada_val_print_array): Adjust comment to current interface.
8989 (print_field_values): Adjust comment to current interface.
8990 * c-valprint.c (c_val_print): Rewrite comment deferring interface
8991 explanation to val_print.
8992 * f-valprint.c (f_val_print): Ditto.
8993 * jv-valprint.c (java_val_print): Ditto.
8994 * m2-valprint.c (m2_val_print): Ditto.
8995 * p-valprint.c (pascal_val_print): Ditto.
8996
9998af43
TJB
89972011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8998
8999 * breakpoint.c (parse_breakpoint_sals): Fix description.
9000
505500db 90012011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9002 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9003
9004 * python/py-inferior.c (python_on_normal_stop): New function.
9005 (python_on_resume): New function.
9006 (python_inferior_exit): New function.
9007 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9008 inferior_exit observers.
9009 * python/py-evtregistry.c: New file.
9010 * python/py-threadevent.c : New file.
9011 * python/py-event.c: New file.
9012 * python/py-evts.c: New file.
9013 * python/py-continueevent.c: New file.
9014 * python/py-bpevent.c: New file.
9015 * python/py-signalevent.c: New file.
9016 * python/py-exetiedevent.c: New file.
9017 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9018 Move struct breakpoint_object from here...
9019 * python/python-internal.h: ... to here.
9020 * python/py-event.h: New file.
9021 * python/py-events.h: New file.
9022 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9023 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9024 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9025 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9026 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9027 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9028 Add build rules for all the above.
9029
9e0ac564
TT
90302011-02-04 Tom Tromey <tromey@redhat.com>
9031
9032 * dwarf2read.c (dwarf2_section_empty_p): New function.
9033 (dwarf2_read_section): Use dwarf2_section_empty_p.
9034 (dwarf2_section_size): New function.
9035 (dwarf2_get_section_info): Unconditionally read section.
9036 (dwarf2_read_index): Use dwarf2_section_empty_p.
9037 (partial_read_comp_unit_head): Use dwarf2_section_size.
9038 (dwarf2_symbol_mark_computed): Likewise.
9039
eee5b35e
DD
90402011-02-04 David Daney <ddaney@caviumnetworks.com>
9041
9042 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9043
385203ed
DD
90442011-02-04 David Daney <ddaney@caviumnetworks.com>
9045
9046 * mips-linux-tdep.c: Include xml-syscall.h.
9047 (mips_linux_get_syscall_number): New function.
9048 (mips_linux_init_abi): Add calls to
9049 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9050 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9051 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9052 * syscalls/mips-n32-linux.xml: New file.
9053 * syscalls/mips-n64-linux.xml: New file.
9054 * syscalls/mips-o32-linux.xml: New file.
9055
9277c30c
UW
90562011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9057
9058 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9059 Complain about inverted range entries.
9060 (dwarf2_record_block_ranges): Likewise.
9061
a3be7890
TJB
90622011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9063
9064 Fix some typos.
9065 * breakpoint.c (update_watchpoint): Fix name of the
9066 update_global_location_list function.
9067 (print_one_breakpoint): Fix typo.
9068 (_initialize_breakpoint): Remove extra space in hbreak help
9069 string.
9070 * breakpoint.h (struct bp_location) <length>: Fix field
9071 description.
9072
041274d8
PA
90732011-02-04 Pedro Alves <pedro@codesourcery.com>
9074
9075 * regcache.c (registers_changed_ptid): Don't explictly always
9076 clear `current_regcache'. Only clear current_thread_ptid and
9077 current_thread_arch when PTID matches. Only reinit the frame
9078 cache if PTID matches the current inferior_ptid. Move alloca(0)
9079 call to ...
9080 (registers_changed): ... here.
9081
c1c2ab58
UW
90822011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9083
9084 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9085 starts with __stack_chk_guard as stack guard symbol.
9086
9011945e
AB
90872011-02-03 Andrew Burgess <aburgess@broadcom.com>
9088
9089 * disasm.c (compare_lines): Handle the end of sequence markers
9090 within the line table to better support disassembling over
9091 compilation unit boundaries.
9092
e0634ccf
UW
90932011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9094
9095 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9096 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9097 implementation even if no symbols are available.
9098 (thumb_analyze_prologue): Update call to skip_prologue_function.
9099 (arm_analyze_prologue): Likewise.
9100
0e9e9abd
UW
91012011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9102
9103 * arm-tdep.c: Include "observer.h".
9104 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9105 (arm_exidx_data_key): New static variable.
9106 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9107 (struct arm_exidx_data): Likewise.
9108 (arm_exidx_data_free): New function.
9109 (arm_compare_exidx_entries): Likewise.
9110 (arm_obj_section_from_vma): Likewise.
9111 (arm_exidx_new_objfile): Likewise.
9112 (arm_find_exidx_entry): Likewise.
9113 (arm_exidx_fill_cache): Likewise.
9114 (arm_exidx_unwind_sniffer): Likewise.
9115 (arm_exidx_unwind): New global variable.
9116 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9117 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9118 observer. Register arm_exidx_data_key as objfile data.
9119
2e9e421f
UW
91202011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9121
9122 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9123 due to accessing uninitialized variable. Fix indentation.
9124
580688f3
PA
91252011-02-02 Pedro Alves <pedro@codesourcery.com>
9126
9127 * c-valprint.c (c_value_print): When doing virtual base pointer
9128 adjustment, create a new value with adjusted contents rather than
9129 changing the contents of the value being printed (and getting it
9130 wrong).
9131
3d2c1d41
PA
91322011-02-02 Pedro Alves <pedro@codesourcery.com>
9133
9134 * xml-support.c (xml_find_attribute): New.
9135 (xinclude_start_include): Use it.
9136 * xml-support.h (xml_find_attribute): Declare.
9137 * memory-map.c (memory_map_start_memory)
9138 (memory_map_start_property): Use xml_find_attribute.
9139 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9140 xml_find_attribute.
9141 * remote.c (start_thread): Use xml_find_attribute.
9142 * solib-target.c (library_list_start_segment)
9143 (library_list_start_section, library_list_start_library)
9144 (library_list_start_list): Use xml_find_attribute.
9145 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9146 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9147 (tdesc_start_field): Use xml_find_attribute.
9148
0af3e2db
UW
91492011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9150
9151 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9152 (BUILD_OCL_VTYPES): Update.
9153
c1039e3c
JB
91542011-02-02 Joel Brobecker <brobecker@adacore.com>
9155
9156 * configure.ac: Work around non-GNU sed limitation when computing
9157 python version number.
9158 * configure: Regenerate.
9159
600ea1be
JK
91602011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9161
9162 Fix debug printing of TYPE_INSTANCE.
9163 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9164 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9165
56c12414
JK
91662011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9167
9168 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9169 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9170 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9171 * ada-operator.inc: Rename the file to ...
9172 * ada-operator.def: ... here, wrap all the entries by macro OP.
9173 * expprint.c (op_name_standard): Remove all the entries. Include
9174 "std-operator.def" instead.
9175 * expression.h (enum exp_opcode): Include "std-operator.def" and
9176 "ada-operator.def". Move all the entries ...
9177 * std-operator.def: ... here, wrap all the entries by macro OP.
9178
c52b559d
PP
91792011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9180
9181 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9182 * breakpoint.c (remove_jit_event_breakpoints): New function.
9183 * jit.c (jit_descriptor_addr): Delete.
9184 (registering_code): Delete.
9185 (clear_int): Delete.
9186 (jit_inferior_data): New variable.
9187 (struct jit_inferior_data): New type.
9188 (get_jit_inferior_data): New function.
9189 (jit_inferior_data_cleanup): New function.
9190 (jit_read_descriptor): Adjust.
9191 (jit_register_code): Adjust.
9192 (jit_breakpoint_re_set_internal): New function; move code here ...
9193 (jit_inferior_init): ... from here.
9194 (jit_breakpoint_re_set): Adjust.
9195 (jit_reset_inferior_data_and_breakpoints): New function.
9196 (jit_inferior_created_observer): Adjust.
9197 (jit_inferior_exit_hook): Adjust.
9198 (jit_executable_changed_observer): New function.
9199 (jit_event_handler): Adjust.
9200 (_initialize_jit): Adjust.
9201
e839132d
MS
92022011-01-31 Michael Snyder <msnyder@vmware.com>
9203
9204 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9205 line.
9206
47a80e90
TT
92072011-01-31 Tom Tromey <tromey@redhat.com>
9208
9209 PR python/12216:
9210 * python/python.c (execute_gdb_command): Call
9211 prevent_dont_repeat.
9212 * top.c (suppress_dont_repeat): New global.
9213 (dont_repeat): Use it.
9214 (prevent_dont_repeat): New function.
9215 * command.h (prevent_dont_repeat): Declare.
9216
45a43567
TT
92172011-01-31 Tom Tromey <tromey@redhat.com>
9218
9219 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9220 * python/py-breakpoint.c (bppy_set_silent): Use
9221 breakpoint_set_silent.
9222 (bppy_set_thread): Use breakpoint_set_thread.
9223 (bppy_set_task): Use breakpoint_set_task.
9224 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9225 (breakpoint_set_task): Declare.
9226 (make_breakpoint_silent): Remove.
9227 * breakpoint.c (breakpoint_set_silent): New function.
9228 (breakpoint_set_thread): Likewise.
9229 (breakpoint_set_task): Likewise.
9230 (make_breakpoint_silent): Remove.
9231
09d682a4
TT
92322011-01-31 Tom Tromey <tromey@redhat.com>
9233
9234 * breakpoint.h (user_breakpoint_p): Declare.
9235 * breakpoint.c (user_breakpoint_p): New function.
9236 (breakpoint_1): Use it.
9237 (save_breakpoints): Likewise.
9238
9c4ea6c5
JB
92392011-01-31 Joel Brobecker <brobecker@adacore.com>
9240
9241 * configure.ac: Add handling of Python distribution on Windows.
9242 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9243 sysconfig variables are not defined, then do not use them.
9244 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9245 instead. On Windows, return all paths using forward-slashes
9246 rather than backslashes.
9247
ac534cba
JB
92482011-01-31 Joel Brobecker <brobecker@adacore.com>
9249
9250 * configure.ac: Remove fallback behavior for building
9251 against Python. Remove tweaking of Python include path.
9252 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9253 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9254 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9255 Always restore CPPFLAGS and LIBS after linking test.
9256 * configure: Regenerated.
9257 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9258 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9259 * python/python-internal.h: Adjust includes of Python .h files.
9260
c2f0d045
JB
92612011-01-31 Joel Brobecker <brobecker@adacore.com>
9262
9263 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9264 in error message.
9265
6b0c4c1f
JB
92662011-01-31 Joel Brobecker <brobecker@adacore.com>
9267
9268 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9269 value test.
9270
672c9795
YQ
92712011-01-31 Yao Qi <yao@codesourcery.com>
9272
9273 * arm-linux-nat.c: Update calls to regcache_register_status
9274 instead of regcache_valid_p.
9275 * aix-thread.c: Likewise.
9276 * i386gnu-nat.c: Likewise.
9277
80b23b6a
JK
92782011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9279
9280 Fix crash.
9281 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9282 touching TYPE_FIELD_ARTIFICIAL.
9283
4cd712bd
RE
92842011-01-28 Richard Earnshaw <rearnsha@arm.com>
9285
9286 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9287 Committers.
9288
ffd5ec24
PA
92892011-01-28 Pedro Alves <pedro@codesourcery.com>
9290
9291 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9292 selected, don't try iterating over the traceframe's blocks.
9293 (tfile_has_stack): If there's no traceframe selected, then there's
9294 no stack.
9295 (tfile_has_registers): If there's no traceframe selected, then
9296 there's no registers.
9297
e8c9e0a1
PA
92982011-01-28 Pedro Alves <pedro@codesourcery.com>
9299
9300 * target.c (memory_xfer_partial): No need to restore shadows if we
9301 haven't read anything.
9302
de15c4ab
PA
93032011-01-28 Pedro Alves <pedro@codesourcery.com>
9304
9305 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9306 and val_print_scalar_formatted.
9307
9f41c731
PA
93082011-01-27 Pedro Alves <pedro@codesourcery.com>
9309
9310 * tracepoint.c (tfile_read): New.
9311 (tfile_open): Use it.
9312 (tfile_get_traceframe_address): Use it.
9313 (tfile_trace_find): Use it.
9314 (walk_blocks_callback_func): New typedef.
9315 (match_blocktype): New function.
9316 (traceframe_walk_blocks): New function.
9317 (traceframe_find_block_type): New function.
9318 (tfile_fetch_registers, tfile_xfer_partial)
9319 (tfile_get_trace_state_variable_value): Use
9320 traceframe_find_block_type and tfile_read.
9321
cdefc55d
KB
93222011-01-26 Kevin Buettner <kevinb@redhat.com>
9323
9324 * remote-mips.c: Add internationalization mark ups. Remove
9325 trailing \n from already marked up strings.
9326
a81766d8
TT
93272011-01-26 Tom Tromey <tromey@redhat.com>
9328
9329 * python/py-prettyprint.c (print_string_repr): Clear
9330 'addressprint' option when calling val_print_string.
9331 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9332 option when calling val_print_string.
9333
74aedc46
TT
93342011-01-26 Tom Tromey <tromey@redhat.com>
9335
9336 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9337 GDB_PY_LL_ARG.
9338 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9339 macros.
9340 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9341 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9342 (gdb_py_long_as_ulongest): New defines.
9343 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9344 (gdb_py_int_as_long): Declare.
9345 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9346 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9347 (valpy_long): Add comment.
9348 * python/py-utils.c (get_addr_from_python): Use
9349 gdb_py_long_as_ulongest. Handle overflow properly.
9350 (gdb_py_object_from_longest): New function.
9351 (gdb_py_object_from_ulongest): Likewise.
9352 (gdb_py_int_as_long): Likewise.
9353 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9354 * python/py-symtab.c (salpy_get_pc): Use
9355 gdb_py_long_from_ulongest.
9356 (salpy_get_line): Use PyInt_FromLong.
9357 * python/py-param.c (set_parameter_value): Use
9358 gdb_py_int_as_long.
9359 * python/py-lazy-string.c (stpy_get_address): Use
9360 gdb_py_long_from_ulongest.
9361 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9362 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9363 * python/py-breakpoint.c (bppy_set_thread): Use
9364 gdb_py_int_as_long.
9365 (bppy_set_task): Likewise.
9366 (bppy_set_ignore_count): Likewise.
9367 (bppy_set_hit_count): Likewise.
9368 * python/py-block.c (blpy_get_start): Use
9369 gdb_py_object_from_ulongest.
9370 (blpy_get_end): Likewise.
9371 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9372
e4f6d2ec
TJB
93732011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9374
9375 PR/symtab 11766:
9376 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9377 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9378 equality test for objfile, initialize addr_low if needed.
9379
b30aa278
PA
93802011-01-25 Pedro Alves <pedro@codesourcery.com>
9381
9382 * tui/tui-regs.c (tui_register_format): Remove dead code.
9383
ab2188aa
PA
93842011-01-25 Pedro Alves <pedro@codesourcery.com>
9385
9386 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9387 instead of print_scalar_formatted.
9388 (print_scalar_formatted): Don't handle 's' format strings here,
9389 and add an assertion that we never see such format here.
9390 * valprint.h (val_print_scalar_formatted): Declare.
9391 * valprint.c (val_print_scalar_formatted): New.
9392 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9393 instead of print_scalar_formatted.
9394 * jv-valprint.c (java_val_print): Ditto.
9395 * p-valprint.c (pascal_val_print): Ditto.
9396 * ada-valprint.c (ada_val_print_1): Ditto.
9397 * f-valprint.c (f_val_print): Ditto.
9398 * infcmd.c (registers_info): Ditto.
9399 * m2-valprint.c (m2_val_print): Ditto.
9400
66d61a4c
PA
94012011-01-25 Pedro Alves <pedro@codesourcery.com>
9402
9403 * m2-valprint.c (print_unbounded_array): Pass
9404 value_contents_for_printing rather than value_contents, to
9405 m2_print_array_contents. Also pass in the value.
9406
831adc1f
JK
94072011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9410 (save_gdb_index_command): Switch to .gdb_index version 4.
9411
20622269
PA
94122011-01-25 Pedro Alves <pedro@codesourcery.com>
9413
9414 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9415 than frame_register, and always pass a valid value to val_print.
9416
585fdaa1
PA
94172011-01-25 Pedro Alves <pedro@codesourcery.com>
9418
9419 Centralize printing "<optimized out>".
9420
9421 * valprint.h (val_print_optimized_out): Declare.
9422 * cp-valprint.c (cp_print_value_fields): Use
9423 val_print_optimized_out.
9424 * jv-valprint.c (java_print_value_fields): Ditto.
9425 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9426 * printcmd.c (print_formatted): Ditto.
9427 * valprint.c (valprint_check_validity): Ditto.
9428 (value_check_printable): Ditto.
9429 (val_print_optimized_out): New.
9430
29ec5263
PA
94312011-01-25 Pedro Alves <pedro@codesourcery.com>
9432
9433 * infcmd.c (default_print_registers_info): Allocate values so to
9434 never pass a NULL value to val_print.
9435
de4127a3
PA
94362011-01-25 Pedro Alves <pedro@codesourcery.com>
9437
9438 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9439 boolean. Make sure to always pass a value that matches the
9440 contents buffer to callees. Preserve `address' for following
9441 iterations.
9442 * value.c (value_contents_for_printing_const): New.
9443 (value_address): Constify value argument.
9444 * value.h (value_contents_for_printing_const): Declare.
9445 (value_address): Constify value argument.
9446
ee99023e
PA
94472011-01-25 Pedro Alves <pedro@codesourcery.com>
9448
9449 * regcache.c (struct regcache_descr): Rename
9450 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9451 and sizeof_cooked_register_valid_p to
9452 sizeof_cooked_register_status.
9453 (init_regcache_descr): Adjust.
9454 (struct regcache): Rename register_valid_p field to
9455 register_status.
9456 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9457 (do_cooked_read): Adjust.
9458 (regcache_valid_p): Rename to ...
9459 (regcache_register_status): ... this. Adjust.
9460 (regcache_invalidate): Adjust.
9461 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9462 Adjust.
9463 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9464 as unavailable, not valid.
9465 (regcache_dump): Adjust.
9466 * regcache.h (enum register_status): New.
9467 (regcache_register_status): Declare.
9468 (regcache_invalidate): Delete declaration.
9469 * corelow.c (get_core_registers): Adjust.
9470 * tracepoint.c (tfile_fetch_registers): Adjust.
9471 * trad-frame.c (REG_VALUE): Rename to ...
9472 (TF_REG_VALUE): ... this.
9473 (REG_UNKNOWN): Rename to ...
9474 (TF_REG_UNKNOWN): ... this.
9475 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9476 * mi/mi-main.c (register_changed_p): Adjust.
9477
99e42fd8
PA
94782011-01-25 Pedro Alves <pedro@codesourcery.com>
9479
9480 * regcache.c (struct regcache_descr): Remove outdated comment.
9481 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9482 overallocate hack.
9483 (regcache_xmalloc): Rename to ...
9484 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9485 Allocate the regcache type accordingly.
9486 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9487 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9488 cooked registers, not raw.
9489 (regcache_dup_no_passthrough): Delete.
9490 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9491 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9492 mention obsolete write_register_bytes.
9493 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9494
f7605bc2
PA
94952011-01-25 Pedro Alves <pedro@codesourcery.com>
9496
9497 Stop remote_read_bytes from handling partial reads itself.
9498
9499 * remote-fileio.c: Include target.h.
9500 (remote_fileio_write_bytes): Delete.
9501 (remote_fileio_func_open, remote_fileio_func_write)
9502 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9503 target_read_memory.
9504 (remote_fileio_func_stat): Use target_read_memory and
9505 target_write_memory.
9506 (remote_fileio_func_gettimeofday): Use target_write_memory.
9507 (remote_fileio_func_system): Use target_read_memory.
9508 * remote.c (remote_write_bytes): Make it static.
9509 (remote_read_bytes): Don't handle partial reads here.
9510 * remote.h (remote_read_bytes): Delete declaration.
9511
efc0eabd
PA
95122011-01-25 Pedro Alves <pedro@codesourcery.com>
9513
9514 Simplify XML parsing a bit.
9515
9516 * xml-support.h (gdb_xml_parse_quick): Declare.
9517 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9518 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9519 parameter.
9520 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9521 gdb_xml_create_parser_and_cleanup_1.
9522 (gdb_xml_parse_quick): New.
9523 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9524 * osdata.c (osdata_parse): Ditto.
9525 * remote.c (remote_threads_info): Ditto.
9526 * solib-target.c (solib_target_parse_libraries): Ditto.
9527 * xml-syscall.c (syscall_parse_xml): Ditto.
9528 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9529
314d366a
KB
95302011-01-24 Kevin Buettner <kevinb@redhat.com>
9531
9532 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9533 with remote-mips.o added to gdb_target_obs.
9534 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9535
a491d753
PA
95362011-01-24 Pedro Alves <pedro@codesourcery.com>
9537
9538 * ada-valprint.c (val_print_packed_array_elements): Pass the
9539 correct struct value to val_print.
9540 (ada_val_print_1): Ditto.
9541
490f124f
PA
95422011-01-24 Pedro Alves <pedro@codesourcery.com>
9543
9544 Don't lose embedded_offset in printing routines throughout.
9545
9546 * valprint.h (val_print_array_elements): Change prototype.
9547 * valprint.c (val_print_array_elements): Add `embedded_offset'
9548 parameter, and adjust to pass it down to val_print, while passing
9549 `valaddr' or `address' unmodified. Take embedded_offset into
9550 account when checking repetitions.
9551 * c-valprint.c (c_val_print): Pass embedded_offset to
9552 val_print_array_elements instead of adjusting `valaddr' and
9553 `address'.
9554 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9555 embedded_offset to val_print_array_elements instead of adjusting
9556 `valaddr'.
9557 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9558 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9559 val_print_array_elements and pascal_object_print_value_fields
9560 instead of adjusting `valaddr'.
9561 (pascal_object_print_value_fields): Add `offset' parameter, and
9562 adjust to use it.
9563 (pascal_object_print_value): Add `offset' parameter, and adjust to
9564 use it.
9565 (pascal_object_print_static_field): Use
9566 value_contents_for_printing/value_embedded_offset, rather than
9567 value_contents.
9568 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9569 parameter, and adjust to use it. Use
9570 value_contents_for_printing/value_embedded_offset, rather than
9571 value_contents.
9572 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9573 (ada_val_print_array): Add `offset' parameter, and adjust to use
9574 it.
9575 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9576 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9577 Instead work with offsets. Use
9578 value_contents_for_printing/value_embedded_offset, rather than
9579 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9580 and use value_from_pointer to extract a target pointer, rather
9581 than value_from_longest.
9582 (print_variant_part): Add `offset' parameter. Replace
9583 `outer_valaddr' parameter by a new `outer_offset' parameter.
9584 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9585 (ada_value_print): Use
9586 value_contents_for_printing/value_embedded_offset, rather than
9587 value_contents.
9588 (print_record): Add `offset' parameter, and adjust to pass it
9589 down.
9590 (print_field_values): Add `offset' parameter. Replace
9591 `outer_valaddr' parameter by a new `outer_offset' parameter.
9592 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9593 Use value_contents_for_printing/value_embedded_offset, rather than
9594 value_contents.
9595 * d-valprint.c (dynamic_array_type): Use
9596 value_contents_for_printing/value_embedded_offset, rather than
9597 value_contents.
9598 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9599 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9600 (java_print_value_fields): Take `offset' into account. Don't
9601 re-adjust `valaddr'. Instead pass down adjusted offsets.
9602 (java_val_print): Take `embedded_offset' into account. Pass it to
9603 java_print_value_fields.
9604 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9605 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9606 down adjusted offsets.
9607 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9608 (f_val_print): Take `embedded_offset' into account.
9609
7bfc9434
JB
96102011-01-21 Joel Brobecker <brobecker@adacore.com>
9611
9612 * inflow.c: Include "gdbcmd.h".
9613 (interactive_mode): New static global, moved here from top.c.
9614 (show_interactive_mode): New function, moved here from top.c.
9615 use gdb_has_a_terminal instead of input_from_terminal_p to
9616 determine the current mode.
9617 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9618 setting.
9619 (_initialize_inflow): Add the "set/show interactive-mode"
9620 commands. Moved here from top.c, after having adjusted slightly
9621 the help text.
9622 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9623 to inflow.c.
9624 (input_from_terminal_p): Remove handling of "interactive-mode"
9625 setting, moved to infow.c.
9626 (init_main): Remove creation of the "set/show interactive-mode"
9627 commands, moved to inflow.c.
9628
44603653
JB
96292011-01-19 Joel Brobecker <brobecker@adacore.com>
9630
9631 * NEWS: Add entry for native ia64-hpux support.
9632
4694da01
TT
96332011-01-19 Tom Tromey <tromey@redhat.com>
9634
9635 PR mi/8618:
9636 * thread.c (free_thread): Free 'name'.
9637 (print_thread_info): Emit thread name. Change CLI output.
9638 (thread_name_command): New function.
9639 (do_captured_thread_select): Emit newline.
9640 (_initialize_thread): Register 'thread name' command.
9641 * target.h (struct target_ops) <to_thread_name>: New field.
9642 (target_thread_name): New macro.
9643 * target.c (update_current_target): Handle to_thread_name.
9644 * python/py-infthread.c (thpy_get_name): New function.
9645 (thpy_set_name): Likewise.
9646 (thread_object_getset): Add "name".
9647 * linux-nat.c (linux_nat_thread_name): New function.
9648 (linux_nat_add_target): Set to_thread_name.
9649 * gdbthread.h (struct thread_info) <name>: New field.
9650
10d44370
JB
96512011-01-18 Joel Brobecker <brobecker@adacore.com>
9652
9653 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9654 (ada_val_print_1): Likewise.
9655
e3acb115
JB
96562011-01-18 Joel Brobecker <brobecker@adacore.com>
9657
9658 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9659 upper limit address is not greater than the function end address
9660 when the upper limit could not be computed using the debugging
9661 info.
9662
dc92e161
TT
96632011-01-17 Tom Tromey <tromey@redhat.com>
9664
9665 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9666 get_regcomp_error.
9667 * utils.c: Include gdb_regex.h.
9668 (do_regfree_cleanup): New function.
9669 (make_regfree_cleanup): Likewise.
9670 (get_regcomp_error): Likewise.
9671 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9672
f55af66d
TT
96732011-01-17 Tom Tromey <tromey@redhat.com>
9674
9675 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9676 re_compile_fastmap.
9677
a5a44b53
PM
96782011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9679
9680 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9681 for internal variables.
9682 (last_was_structop): New static variable.
9683 (COMPLETE): New token.
9684 (field_exp): New rule to group all '.' suffix handling.
9685 Add mark_struct_expression calls when approriate to be able
9686 to correctly find fields for completion.
9687 (yylex): Adapt to handle field completion and set INTVAR when
9688 required.
9689
2c291032
YQ
96902011-01-14 Yao Qi <yao@codesourcery.com>
9691
9692 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9693 save_reggroup, restore_reggroup and all_reggroup.
9694
447b483c
JB
96952011-01-14 Joel Brobecker <brobecker@adacore.com>
9696
9697 * ada-valprint. (ada_printchar): Use the correct type length
9698 in call to ada_emit_char.
9699 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9700
7b64a93b
PM
97012011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9702
9703 * solib-som.h (hpux_major_release): Declare variable here.
9704 * solib-som.c: Remove <sys/utsname.h> header.
9705 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9706 (hpux_major_release): Make global, change default value to
9707 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 9708 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
9709 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9710 Add "solib-som.h" header.
9711 (set_hpux_major_release): New function.
9712 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9713
4e18c053
MF
97142011-01-14 Mike Frysinger <vapier@gentoo.org>
9715
9716 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9717
a9df6b22
JB
97182011-01-14 Joel Brobecker <brobecker@adacore.com>
9719
9720 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9721 new-line at end of warning message.
9722 (ia64_hpux_store_register): Remove trailing new-line at end of
9723 error message.
9724 * ia64-hpux-tdep.c: Rephrase comment.
9725 * solib-ia64-hpux.c (struct dld_info): Change type of field
9726 dld_flags from "long long" to ULONGEST.
9727
ecb956dd
PA
97282011-01-14 Pedro Alves <pedro@codesourcery.com>
9729
9730 * target.h (deprecated_child_ops): Delete declaration.
9731 * target.c (deprecated_child_ops): Delete definition.
9732
76adfcae
PA
97332011-01-14 Pedro Alves <pedro@codesourcery.com>
9734
9735 * Makefile.in (hpux-thread.o): Delete rule.
9736 * configure.ac: Don't check for HPUX DCE threads support.
9737 * configure, config.in: Regenerate.
9738 * hppa-hpux-nat.c (child_suppress_run): Delete.
9739 (hppa_hpux_child_can_run): Delete.
9740 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9741 * hpux-thread.c: Delete.
9742
042e866e
JB
97432011-01-13 Joel Brobecker <brobecker@adacore.com>
9744
9745 * hpux-thread.c (hpux_pid_to_str): Delete.
9746
4ffa5a33
JB
97472011-01-13 Joel Brobecker <brobecker@adacore.com>
9748
9749 * ada-valprint.c (ada_emit_char): Remove strange code.
9750 Check that c is <= UCHAR_MAX before passing it to isascii.
9751 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9752
de8fa76c
JB
97532011-01-13 Joel Brobecker <brobecker@adacore.com>
9754
9755 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9756 to the case where instream is stdin.
9757
c4de7027
JB
97582011-01-13 Joel Brobecker <brobecker@adacore.com>
9759
9760 * ia64-tdep.h (struct regcache): Forward declare.
9761 (struct ia64_infcall_ops): New struct type.
9762 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9763 and "infcall_ops".
9764 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9765 Renames ia64_find_global_pointer.
9766 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9767 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9768 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9769 methods.
9770 (ia64_infcall_ops): New static global constant.
9771 (ia64_gdbarch_init): Set tdep->infcall_ops.
9772 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9773 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9774 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9775 (ia64_hpux_dummy_code): New static global constant.
9776 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9777 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9778 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9779 New function.
9780 (ia64_hpux_infcall_ops): New static global constant.
9781 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9782 for inferior function calls to work properly on ia64-hpux.
9783
77ca787b
JB
97842011-01-13 Joel Brobecker <brobecker@adacore.com>
9785
9786 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9787 * ia64-tdep.h (struct frame_info): forward declaration.
9788 (struct gdbarch_tdep): Add field size_of_register_frame.
9789 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9790 to determine the size of the register frame.
9791 (ia64_size_of_register_frame): New function.
9792 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9793 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9794 (IA64_HPUX_UREG_REASON): New macro.
9795 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9796 New functions.
9797 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9798 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9799 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9800 objects.
9801
92c9a463
JB
98022011-01-13 Joel Brobecker <brobecker@adacore.com>
9803
9804 Add support for ia64-hpux.
9805 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9806 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9807
9808 * configure.host: Add handling for ia64-hpux hosts. Add associated
9809 floatformats.
9810 * configure.tgt: Add handling for ia64-hpux targets.
9811 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9812 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9813 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9814
f688d93f
JB
98152011-01-13 Joel Brobecker <brobecker@adacore.com>
9816
9817 [ttrace] Compute thread list immediately after attach.
9818 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9819 New subprogram.
9820 (inf_ttrace_attach): Use it.
9821
1b89e62f
JB
98222011-01-13 Joel Brobecker <brobecker@adacore.com>
9823
9824 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9825 if we could not determine the frame's function address. Instead,
9826 use the frame's PC, and then continue.
9827
3e5e6e2a
JB
98282011-01-13 Joel Brobecker <brobecker@adacore.com>
9829
9830 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9831 not already defined.
9832
825d6d8a
JB
98332011-01-13 Joel Brobecker <brobecker@adacore.com>
9834
9835 * ia64-tdep.c (ia64_struct_type_p): New function.
9836 (ia64_extract_return_value): Handle integral values that are
9837 less than 8 bytes long.
9838 (ia64_push_dummy_call): Likewise.
9839
7458e667
JB
98402011-01-13 Joel Brobecker <brobecker@adacore.com>
9841
9842 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9843 floatformat_ia64_ext.
9844 (floatformat_ia64_ext_big): New static const.
9845 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9846
1b05df00
TT
98472011-01-12 Tom Tromey <tromey@redhat.com>
9848
9849 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9850 messages.
9851 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9852 (mi_cmd_thread_list_ids): Likewise.
9853 (mi_cmd_data_list_changed_registers): Likewise.
9854 (mi_cmd_data_list_register_values): Likewise.
9855 (mi_cmd_data_write_register_values): Likewise.
9856 (mi_cmd_data_evaluate_expression): Likewise.
9857 (mi_cmd_data_read_memory): Likewise.
9858 (mi_cmd_data_read_memory_bytes): Likewise.
9859 (mi_cmd_data_write_memory): Likewise.
9860 (mi_cmd_enable_timings): Likewise.
9861 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9862 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9863 (mi_cmd_var_delete): Likewise.
9864 (mi_cmd_var_set_format): Likewise.
9865 (mi_cmd_var_show_format): Likewise.
9866 (mi_cmd_var_info_num_children): Likewise.
9867 (mi_cmd_var_list_children): Likewise.
9868 (mi_cmd_var_info_type): Likewise.
9869 (mi_cmd_var_info_expression): Likewise.
9870 (mi_cmd_var_show_attributes): Likewise.
9871 (mi_cmd_var_assign): Likewise.
9872 (mi_cmd_var_update): Likewise.
9873 (mi_cmd_enable_pretty_printing): Likewise.
9874 (mi_cmd_var_set_update_range): Likewise.
9875 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9876 messages.
9877 (mi_cmd_target_file_put): Likewise.
9878 (mi_cmd_target_file_delete): Likewise.
9879 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9880 messages.
9881 (mi_cmd_stack_info_depth): Likewise.
9882 (mi_cmd_stack_list_locals): Likewise.
9883 (mi_cmd_stack_list_args): Likewise.
9884 (mi_cmd_stack_select_frame): Likewise.
9885 (mi_cmd_stack_select_frame): Likewise.
9886 (mi_cmd_stack_info_frame): Likewise.
9887 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9888 messages.
9889 (mi_cmd_file_list_exec_source_files): Likewise.
9890 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9891 (mi_cmd_env_cd): Likewise.
9892 (mi_cmd_env_path): Likewise.
9893 (mi_cmd_env_dir): Likewise.
9894 (mi_cmd_inferior_tty_show): Likewise.
9895 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9896 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9897 (mi_cmd_break_watch): Likewise.
9898
ad422571
TJB
98992011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9900
9901 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9902 (ppc_linux_insert_hw_breakpoint): Likewise.
9903 (ppc_linux_remove_hw_breakpoint): Likewise.
9904 (ppc_linux_insert_watchpoint): Likewise.
9905
c2ff108b
JK
99062011-01-12 Andrew Burgess <aburgess@broadcom.com>
9907 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 PR fortran/11104 and DWARF unbound arrays detection.
9910 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9911 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9912 unspecified upper bound.
9913 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9914 variables array_size_array, tmp_type and offset_item. New variable
9915 array. Remove call to f77_get_upperbound. New variables array_type
9916 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9917 the final call to deprecated_set_value_type.
9918
41e8491f
JK
99192011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9920
9921 Make value allocations more lazy.
9922 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9923 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 9924 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
9925 instead of allocate_value and set_value_lazy.
9926 * findvar.c (value_of_register_lazy): Likewise.
9927 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 9928 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
9929 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9930 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
9931 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
9932 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
9933 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
9934 the end, remove set_value_lazy there.
9935 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9936 instead of allocate_value and set_value_lazy when possible.
9937 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9938 * value.c (allocate_computed_value): Use allocate_value_lazy instead
9939 of allocate_value and set_value_lazy.
9940 (value_from_contents_and_address): Use allocate_value_lazy instead of
9941 allocate_value and set_value_lazy when possible.
9942
b716877b
AB
99432011-01-12 Andrew Burgess <aburgess@broadcom.com>
9944
9945 * disasm.c (dump_insns): Support dumping opcodes for MI.
9946 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
9947 dumping of instruction opcodes.
9948
d5ae309f
JB
99492011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
9950
9951 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
9952 appropiately.
9953
98871305
TT
99542011-01-11 Tom Tromey <tromey@redhat.com>
9955
9956 * thread.c (do_captured_thread_select): Emit newline before
9957 printing frame.
9958
c378eb4e
MS
99592011-01-11 Michael Snyder <msnyder@vmware.com>
9960
9961 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
9962 * score-tdep.c: Ditto.
9963 * score-tdep.h: Ditto.
9964 * ser-base.c: Ditto.
9965 * ser-go32.c: Ditto.
9966 * serial.c: Ditto.
9967 * serial.h: Ditto.
9968 * ser-mingw.c: Ditto.
9969 * ser-pipe.c: Ditto.
9970 * ser-tcp.c: Ditto.
9971 * ser-unix.c: Ditto.
9972 * sh64-tdep.c: Ditto.
9973 * shnbsd-nat.c: Ditto.
9974 * sh-tdep.c: Ditto.
9975 * sh-tdep.h: Ditto.
9976 * solib.c: Ditto.
9977 * solib-darwin.c: Ditto.
9978 * solib-frv.c: Ditto.
9979 * solib.h: Ditto.
9980 * solib-irix.c: Ditto.
9981 * solib-osf.c: Ditto.
9982 * solib-pa64.c: Ditto.
9983 * solib-som.c: Ditto.
9984 * solib-spu.c: Ditto.
9985 * solib-sunos.c: Ditto.
9986 * solib-svr4.c: Ditto.
9987 * solist.h: Ditto.
9988 * sol-thread.c: Ditto.
9989 * somread.c: Ditto.
9990 * source.c: Ditto.
9991 * source.h: Ditto.
9992 * sparc64-linux-tdep.c: Ditto.
9993 * sparc64-tdep.c: Ditto.
9994 * sparc-linux-nat.c: Ditto.
9995 * sparc-linux-tdep.c: Ditto.
9996 * sparc-sol2-nat.c: Ditto.
9997 * sparc-sol2-tdep.c: Ditto.
9998 * sparc-tdep.c: Ditto.
9999 * sparc-tdep.h: Ditto.
10000 * spu-tdep.c: Ditto.
10001 * stabsread.c: Ditto.
10002 * stabsread.h: Ditto.
10003 * stack.c: Ditto.
10004 * symfile.c: Ditto.
10005 * symfile.h: Ditto.
10006 * symmisc.c: Ditto.
10007 * symtab.c: Ditto.
10008 * symtab.h: Ditto.
10009 * target.c: Ditto.
10010 * target-descriptions.c: Ditto.
10011 * target-descriptions.h: Ditto.
10012 * target.h: Ditto.
10013 * target-memory.c: Ditto.
10014 * terminal.h: Ditto.
10015 * thread.c: Ditto.
10016 * top.c: Ditto.
10017 * tracepoint.c: Ditto.
10018 * tracepoint.h: Ditto.
10019 * trad-frame.h: Ditto.
10020 * typeprint.c: Ditto.
10021
581e13c1
MS
100222011-01-11 Michael Snyder <msnyder@vmware.com>
10023
10024 * ui-file.c: Comment cleanup, mostly periods and spaces.
10025 * ui-file.h: Ditto.
10026 * ui-out.c: Ditto.
10027 * ui-out.h: Ditto.
10028 * utils.c: Ditto.
10029 * v850-tdep.c: Ditto.
10030 * valarith.c: Ditto.
10031 * valops.c: Ditto.
10032 * valprint.c: Ditto.
10033 * valprint.h: Ditto.
10034 * value.c: Ditto.
10035 * value.h: Ditto.
10036 * varobj.c: Ditto.
10037 * varobj.h: Ditto.
10038 * vax-tdep.c: Ditto.
10039 * vec.c: Ditto.
10040 * vec.h: Ditto.
10041 * version.h: Ditto.
10042 * windows-nat.c: Ditto.
10043 * windows-tdep.c: Ditto.
10044 * xcoffread.c: Ditto.
10045 * xcoffsolib.c: Ditto.
10046 * xml-support.c: Ditto.
10047 * xstormy16-tdep.c: Ditto.
10048 * xtensa-tdep.c: Ditto.
10049 * xtensa-tdep.h: Ditto.
10050
90e4670f
TJB
100512011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10052
10053 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10054 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10055
e09342b5
TJB
100562011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10057 Thiago Jung Bauermann <bauerman@br.ibm.com>
10058
10059 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10060 * breakpoint.h
e09342b5
TJB
10061 (struct breakpoint_ops) <resources_needed>: New method.
10062 Initialize to NULL in all existing breakpoint_ops instances.
10063 (struct breakpoint) <exact>: New field.
10064 (target_exact_watchpoints): Declare external global.
10065 * breakpoint.c (target_exact_watchpoints): New global flag.
10066 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10067 b->enable_state to bp_enabled before calling
10068 hw_watchpoint_used_count.
10069 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10070 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10071 if available.
10072 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10073 if the watchpoint is exact.
10074 (resources_needed_watchpoint): New function.
10075 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10076 (watch_command_1): Set b->exact if the user asked for an exact
10077 watchpoint and one can be set.
10078 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10079 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10080 the user asks for an exact watchpoint and one can be set. Return
10081 number of needed debug registers to watch the expression.
10082 * gdbtypes.c (is_scalar_type): New function, based on
10083 valprint.c:scalar_type_p.
10084 (is_scalar_type_recursive): New function.
10085 * gdbtypes.h (is_scalar_type_recursive): Declare.
10086 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10087 handle regions when ranged watchpoints are available.
10088 (create_watchpoint_request): New function.
10089 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10090 create_watchpoint_request.
10091 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10092 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10093 `set powerpc' and `show powerpc' commands.
10094 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10095 Mention documentation comment in the target macro.
10096 (target_region_ok_for_hw_watchpoint): Document return value.
10097
9fa40276
TJB
100982011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10099
10100 * breakpoint.c (update_watchpoint): Decide on using a software or
10101 hardware watchpoint after the bp_locations are created.
10102
77b06cd7
TJB
101032010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10104
10105 Convert hardware watchpoints to use breakpoint_ops.
10106 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10107 <insert_location>: ... this. Return int instead of void.
10108 Accept pointer to struct bp_location instead of pointer to
10109 struct breakpoint. Adapt all implementations.
f2eb0bc8 10110 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10111 <remove_location>: ... this. Accept pointer to struct bp_location
10112 instead of pointer to struct breakpoint. Adapt all implementations.
10113 * breakpoint.c (insert_catchpoint): Delete function.
10114 (insert_bp_location): Call the watchpoint or catchpoint's
10115 breakpoint_ops.insert method.
10116 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10117 breakpoint_ops.remove method.
10118 (insert_watchpoint, remove_watchpoint): New functions.
10119 (watchpoint_breakpoint_ops): New structure.
10120 (watch_command_1): Initialize the OPS field.
10121 * inf-child.c (inf_child_insert_fork_catchpoint)
10122 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10123 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10124 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10125 Delete functions.
10126 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10127 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10128 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10129 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10130 * target.c (update_current_target): Change default implementation of
10131 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10132 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10133 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10134 to_set_syscall_catchpoint to return_one.
10135 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10136 (debug_to_insert_exec_catchpoint): Report return value.
10137 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10138 (to_insert_exec_catchpoint): Change declaration to return int instead
10139 of void.
10140
9b20d036
MS
101412011-01-11 Michael Snyder <msnyder@vmware.com>
10142
10143 * arm-tdep.c: Internationalization.
10144 * c-lang.c: Ditto.
10145 * charset.c: Ditto.
10146 * fork-child.c: Ditto.
10147 * nto-procfs.c: Ditto.
10148 * ppc-sysv-tdep.c: Ditto.
10149 * procfs.c: Ditto.
10150 * remote-mips.c: Ditto.
10151 * remote.c: Ditto.
10152 * rs6000-nat.c: Ditto.
10153 * rs6000-tdep.c: Ditto.
10154 * target.c: Ditto.
10155 * valops.c: Ditto.
10156 * value.c: Ditto.
10157 * xml-support.c: Ditto.
10158 * mi/mi-cmd-break.c: Ditto.
10159 * mi/mi-cmd-var.c: Ditto.
10160 * mi/mi-interp.c: Ditto.
10161 * mi/mi-main.c: Ditto.
10162
dae477fe
AB
101632011-01-11 Andrew Burgess <aburgess@broadcom.com>
10164
10165 * remote-sim.c (gdbsim_store_register): Update API to
10166 sim_store_register to check more error conditions.
10167
0df8b418
MS
101682011-01-10 Michael Snyder <msnyder@vmware.com>
10169
10170 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10171 * nto-tdep.c: Ditto.
10172 * nto-tdep.h: Ditto.
10173 * objc-exp.y: Ditto.
10174 * objc-lang.c: Ditto.
10175 * objfiles.c: Ditto.
10176 * objfiles.h: Ditto.
10177 * observer.c: Ditto.
10178 * opencl-lang.c: Ditto.
10179 * osabi.c: Ditto.
10180 * parse.c: Ditto.
10181 * parser-defs.h: Ditto.
10182 * p-exp.y: Ditto.
10183 * p-lang.c: Ditto.
10184 * posix-hdep.c: Ditto.
10185 * ppcbug-rom.c: Ditto.
10186 * ppc-linux-nat.c: Ditto.
10187 * ppc-linux-tdep.c: Ditto.
10188 * ppc-linux-tdep.h: Ditto.
10189 * ppcnbsd-tdep.c: Ditto.
10190 * ppcobsd-tdep.c: Ditto.
10191 * ppcobsd-tdep.h: Ditto.
10192 * ppc-sysv-tdep.c: Ditto.
10193 * ppc-tdep.h: Ditto.
10194 * printcmd.c: Ditto.
10195 * proc-abi.c: Ditto.
10196 * proc-flags.c: Ditto.
10197 * procfs.c: Ditto.
10198 * proc-utils.h: Ditto.
10199 * progspace.h: Ditto.
10200 * prologue-value.c: Ditto.
10201 * prologue-value.h: Ditto.
10202 * psympriv.h: Ditto.
10203 * psymtab.c: Ditto.
10204 * p-typeprint.c: Ditto.
10205 * p-valprint.c: Ditto.
10206 * ravenscar-sparc-thread.c: Ditto.
10207 * ravenscar-thread.c: Ditto.
10208 * ravenscar-thread.h: Ditto.
10209 * record.c: Ditto.
10210 * regcache.c: Ditto.
10211 * regcache.h: Ditto.
10212 * remote.c: Ditto.
10213 * remote-fileio.c: Ditto.
10214 * remote-fileio.h: Ditto.
10215 * remote.h: Ditto.
10216 * remote-m32r-sdi.c: Ditto.
10217 * remote-mips.c: Ditto.
10218 * remote-sim.c: Ditto.
10219 * rs6000-aix-tdep.c: Ditto.
10220 * rs6000-nat.c: Ditto.
10221 * rs6000-tdep.c: Ditto.
10222
0d7a18f7
MS
102232011-01-10 Michael Snyder <msnyder@vmware.com>
10224
10225 * charset.c (validate): Internationalization.
10226 * coffread.c (read_one_sym): Ditto.
10227 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10228 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10229 * inflow.c (new_tty): Ditto.
10230 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10231 * m32c-tdep.c (m32c_return_value): Ditto.
10232 * mep-tdep.c (mep_store_return_value): Ditto.
10233 * score-tdep.c (score7_fetch_insn): Ditto.
10234 * ser-mingw.c (pipe_windows_open): Ditto.
10235 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10236 * spu-tdep.c (spu_register_type): Ditto.
10237 * tracepoint.c (trace_find_command): Ditto.
10238 * valarith.c (value_pos): Ditto.
10239
9a153e0b
JB
102402011-01-10 Joel Brobecker <brobecker@adacore.com>
10241
10242 * ada-valprint.c (printstr): Minor comment reformatting.
10243
35ecd2d6
MS
102442011-01-08 Michael Snyder <msnyder@vmware.com>
10245
10246 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10247 markup.
10248
1777feb0
MS
102492011-01-08 Michael Snyder <msnyder@vmware.com>
10250
10251 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10252 * hppa-hpux-tdep.c: Ditto.
10253 * hppa-linux-nat.c: Ditto.
10254 * hppa-linux-tdep.c: Ditto.
10255 * hppanbsd-tdep.c: Ditto.
10256 * hppa-tdep.c: Ditto.
10257 * hppa-tdep.h: Ditto.
10258 * hpux-thread.c: Ditto.
10259 * i386-cygwin-tdep.c: Ditto.
10260 * i386-darwin-nat.c: Ditto.
10261 * i386gnu-nat.c: Ditto.
10262 * i386-linux-nat.c: Ditto.
10263 * i386-linux-tdep.c: Ditto.
10264 * i386-nat.c: Ditto.
10265 * i386-nat.h: Ditto.
10266 * i386nbsd-tdep.c: Ditto.
10267 * i386-sol2-nat.c: Ditto.
10268 * i386-stub.c: Ditto.
10269 * i386-tdep.c: Ditto.
10270 * i386-tdep.h: Ditto.
10271 * i387-tdep.c: Ditto.
10272 * ia64-linux-nat.c: Ditto.
10273 * ia64-linux-tdep.c: Ditto.
10274 * ia64-tdep.c: Ditto.
10275 * infcall.c: Ditto.
10276 * infcall.h: Ditto.
10277 * infcmd.c: Ditto.
10278 * inferior.c: Ditto.
10279 * inferior.h: Ditto.
10280 * infloop.c: Ditto.
10281 * inflow.c: Ditto.
10282 * infrun.c: Ditto.
10283 * interps.c: Ditto.
10284 * interps.h: Ditto.
10285 * iq2000-tdep.c: Ditto.
10286 * irix5-nat.c: Ditto.
10287 * jit.c: Ditto.
10288 * jit.h: Ditto.
10289 * jv-exp.y: Ditto.
10290 * jv-lang.c: Ditto.
10291 * jv-lang.h: Ditto.
10292 * jv-typeprint.c: Ditto.
10293 * jv-valprint.c: Ditto.
10294 * language.c: Ditto.
10295 * language.h: Ditto.
10296 * linespec.c: Ditto.
10297 * linux-fork.c: Ditto.
10298 * linux-nat.c: Ditto.
10299 * linux-thread-db.c: Ditto.
10300 * lm32-tdep.c: Ditto.
10301
025bb325
MS
103022011-01-08 Michael Snyder <msnyder@vmware.com>
10303
10304 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10305 * m2-lang.c: Ditto.
10306 * m2-typeprint.c: Ditto.
10307 * m2-valprint.c: Ditto.
10308 * m32c-tdep.c: Ditto.
10309 * m32r-linux-nat.c: Ditto.
10310 * m32r-rom.c: Ditto.
10311 * m32r-tdep.c: Ditto.
10312 * m32r-tdep.h: Ditto.
10313 * m68hc11-tdep.c: Ditto.
10314 * m58klinux-nat.c: Ditto.
10315 * m68k-tdep.c: Ditto.
10316 * m88k-tdep.c: Ditto.
10317 * m88k-tdep.h: Ditto.
10318 * machoread.c: Ditto.
10319 * macrocmd.c: Ditto.
10320 * macroexp.c: Ditto.
10321 * macrotab.c: Ditto.
10322 * main.c: Ditto.
10323 * maint.c: Ditto.
10324 * mdebugread.c: Ditto.
10325 * mdebugread.h: Ditto.
10326 * memattr.c: Ditto.
10327 * memattr.h: Ditto.
10328 * memory-map.h: Ditto.
10329 * mep-tdep.c: Ditto.
10330 * microblaze-rom.c: Ditto.
10331 * microblaze-tdep.c: Ditto.
10332 * minsyms.c: Ditto.
10333 * mips-irix-tdep.c: Ditto.
10334 * mips-linux-nat.c: Ditto.
10335 * mips-linux-tdep.c: Ditto.
10336 * mips-linux-tdep.h: Ditto.
10337 * mipsnbsd-nat.c: Ditto.
10338 * mipsnbsd-tdep.c: Ditto.
10339 * mipsread.c: Ditto.
10340 * mips-tdep.c: Ditto.
10341 * mips-tdep.h: Ditto.
10342 * mn10300-linux-tdep.c: Ditto.
10343 * mn10300-tdep.c: Ditto.
10344 * mn10300-tdep.h: Ditto.
10345 * monitor.c: Ditto.
10346 * monitor.h: Ditto.
10347 * moxie-tdep.c: Ditto.
10348 * moxie-tdep.h: Ditto.
10349 * mt-tdep.c: Ditto.
10350
1642781b
MF
103512011-01-08 Mike Frysinger <vapier@gentoo.org>
10352
10353 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10354
394b0adb
JB
103552011-01-08 Robert Millan <rmh@gnu.org>
10356
10357 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10358
b670013c
MS
103592011-01-07 Michael Snyder <msnyder@vmware.com>
10360
10361 * charset.c (_initialize_charset): Fix typo in string.
10362
a743e542
MS
103632011-01-07 Michael Snyder <msnyder@vmware.com>
10364
10365 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10366 for i18n.
f2eb0bc8 10367 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10368 Split line so that operator goes to beginning of line.
10369 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10370 assignment out of if statement.
10371
0963b4bd
MS
103722011-01-07 Michael Snyder <msnyder@vmware.com>
10373
10374 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10375 * ada-lang.h: Ditto.
10376 * ada-tasks.c: Ditto.
10377 * ada-valprint.c: Ditto.
10378 * aix-threads.c: Ditto.
10379 * alpha-linux-nat.c: Ditto.
10380 * alpha-linux-tdep.c: Ditto.
10381 * alpha-mdebug-tdep.c: Ditto.
10382 * alpha-nat.c: Ditto.
10383 * alpha-osf1-tdep.c: Ditto.
10384 * alpha-tdep.c: Ditto.
10385 * alphabsd-nat.c: Ditto.
10386 * alphabsd-tdep.c: Ditto.
10387 * amd64-darwin-tdep.c: Ditto.
10388 * amd64-linux-nat.c: Ditto.
10389 * amd64-linux-tdep.c: Ditto.
10390 * amd64-sol2-tdep.c: Ditto.
10391 * amd64-tdep.c: Ditto.
10392 * amd64-fbsd-tdep.c: Ditto.
10393 * amd64-nbsd-tdep.c: Ditto.
10394 * amd64-obsd-tdep.c: Ditto.
10395 * amd64-linux-nat.c: Ditto.
10396 * amd64-linux-tdep.c: Ditto.
10397 * arm-tdep.c: Ditto.
10398 * arm-tdep.h: Ditto.
10399 * armnbsd-nat.c: Ditto.
10400 * avr-tdep.c: Ditto.
10401 * bfin-tdep.c: Ditto.
10402 * bsd-kvm.c: Ditto.
10403 * c-typeprintc: Ditto.
10404 * c-valprint.c: Ditto.
10405 * coff-pe-read.h: Ditto.
10406 * coffreead.c: Ditto.
10407 * cris-tdep.c: Ditto.
10408 * d-lang.c: Ditto.
10409 * darwin-nat-info.c: Ditto.
10410 * darwin-nat.c: Ditto.
10411 * dbug-rom.c: Ditto.
10412 * dbxread.c: Ditto.
10413 * dcache.c: Ditto.
10414 * dcache.h: Ditto.
10415 * dec-thread.c: Ditto.
10416 * defs.h: Ditto.
10417 * demangle.c: Ditto.
10418 * dicos-tdep.c: Ditto.
10419 * dictionary.c: Ditto.
10420 * dictionary.h: Ditto.
10421 * dink32-rom.c: Ditto.
10422 * disasm.c: Ditto.
10423 * doublest.c: Ditto.
10424 * dsrec.c: Ditto.
10425 * dummy-frame.c: Ditto.
10426 * dwarf2-frame.c: Ditto.
10427 * dwarf2expr.c: Ditto.
10428 * dwarf2loc.c: Ditto.
10429 * dwarf2read.c: Ditto.
10430 * elfread.c: Ditto.
10431 * environ.c: Ditto.
10432 * eval.c: Ditto.
10433 * event-top.h: Ditto.
10434 * exceptions.c: Ditto.
10435 * exceptions.h: Ditto.
10436 * exec.c: Ditto.
10437 * expprint.c: Ditto.
10438 * expression.h: Ditto.
10439 * f-exp.y: Ditto.
10440 * f-lang.c: Ditto.
10441 * f-lang.h: Ditto.
10442 * f-typeprint.c: Ditto.
10443 * f-valprint.c: Ditto.
10444 * fbsd-nat.c: Ditto.
10445 * findvar.c: Ditto.
10446 * fork-child.c: Ditto.
10447 * frame.c: Ditto.
10448 * frame.h: Ditto.
10449 * frv-linux-tdep.c: Ditto.
10450 * frv-tdep.c: Ditto.
10451 * gcore.c: Ditto.
10452 * gdb-stabs.h: Ditto.
10453 * gdb_assert.h: Ditto.
10454 * gdb_string.h: Ditto.
10455 * gdb_thread_db.h: Ditto.
10456 * gdb_wait.h: Ditto.
10457 * gdbarch.sh: Ditto.
10458 * gdbcore.h: Ditto.
10459 * gdbthread.h: Ditto.
10460 * gdbtypes.c: Ditto.
10461 * gdbtypes.h: Ditto.
10462 * gnu-nat.c: Ditto.
10463 * gnu-nat.h: Ditto.
10464 * gnu-v2-abi.c: Ditto.
10465 * gnu-v3-abi.c: Ditto.
10466 * go32-nat.c: Ditto.
10467 * gdbarch.c: Regenerate.
10468 * gdbarch.h: Regenerate.
10469
ac74f770
MS
104702011-01-07 Michael Snyder <msnyder@vmware.com>
10471
10472 * ax-gdb.c: Adjust some long output strings.
10473 * breakpoint.c: Ditto.
10474 * charset.c: Ditto.
10475 * cp-abi.c: Ditto.
10476 * infcall.c: Ditto.
10477 * infrun.c: Ditto.
10478 * linux-nat.c: Ditto.
10479 * solib-pa64.c: Ditto.
10480 * solib-som.c: Ditto.
10481
d8e22779
TT
104822011-01-06 Tom Tromey <tromey@redhat.com>
10483
10484 PR python/12367:
10485 * NEWS: Add item.
10486 * python/python.c (GdbMethods): Add "newest_frame" method.
10487 * python/python-internal.h (gdbpy_newest_frame): Declare.
10488 * python/py-frame.c (gdbpy_newest_frame): New function.
10489
a255712f
PP
104902010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10491
10492 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10493 * jit.c (jit_debug): New variable.
10494 (show_jit_debug): New function.
10495 (struct target_buffer): Use ULONGEST.
10496 (bfd_open_from_target_memory): Likewise.
10497 (jit_register_code, jit_inferior_init): Add debug output.
10498 (_initialize_jit): Register "debug jit" command.
10499
ccfc3d6e
TT
105002011-01-06 Tom Tromey <tromey@redhat.com>
10501
10502 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10503 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10504 and ARCH_FRAME.
10505
57126e4a
TT
105062011-01-06 Tom Tromey <tromey@redhat.com>
10507
10508 * python/py-frame.c (frapy_block): Use get_frame_block.
10509
16dfc9ce
JB
105102011-01-06 Joel Brobecker <brobecker@adacore.com>
10511
10512 Do not stop on SIGPRIO signals by default
10513 * infrun.c (_initialize_infrun): Unset signal_stop and
10514 signal_print for TARGET_SIGNAL_PRIO.
10515
b1ce2347
JB
105162011-01-06 Joel Brobecker <brobecker@adacore.com>
10517
10518 * ada-tasks.c: Fix style violation in comment.
10519
8f7e195f
JB
105202011-01-06 Joel Brobecker <brobecker@adacore.com>
10521
10522 * linespec.c (decode_compound, find_method): Remove trailing \n
10523 at end of error string.
10524 * solib-irix.c (irix_current_sos): Likewise.
10525 * varobj.c (uninstall_variable): Likewise.
10526
e9bdf92c
JB
105272011-01-06 Joel Brobecker <brobecker@adacore.com>
10528
10529 * copyright.py: New script.
10530 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10531 Launch emacs without exec'ing. Call copyright.py afterwards.
10532
3e43a32a
MS
105332011-01-05 Michael Snyder <msnyder@vmware.com>
10534
10535 * addrmap.c: Shorten lines of >= 80 columns.
10536 * arch-utils.c: Ditto.
10537 * arch-utils.h: Ditto.
10538 * ax-gdb.c: Ditto.
10539 * ax-general.c: Ditto.
10540 * bcache.c: Ditto.
10541 * blockframe.c: Ditto.
10542 * breakpoint.c: Ditto.
10543 * buildsym.c: Ditto.
10544 * c-lang.c: Ditto.
10545 * c-typeprint.c: Ditto.
10546 * charset.c: Ditto.
10547 * coffread.c: Ditto.
10548 * command.h: Ditto.
10549 * corelow.c: Ditto.
10550 * cp-abi.c: Ditto.
10551 * cp-namespace.c: Ditto.
10552 * cp-support.c: Ditto.
10553 * dbug-rom.c: Ditto.
10554 * dbxread.c: Ditto.
10555 * defs.h: Ditto.
10556 * dfp.c: Ditto.
10557 * dfp.h: Ditto.
10558 * dictionary.c: Ditto.
10559 * disasm.c: Ditto.
10560 * doublest.c: Ditto.
10561 * dwarf2-frame.c: Ditto.
10562 * dwarf2expr.c: Ditto.
10563 * dwarf2loc.c: Ditto.
10564 * dwarf2read.c: Ditto.
10565 * elfread.c: Ditto.
10566 * eval.c: Ditto.
10567 * event-loop.c: Ditto.
10568 * event-loop.h: Ditto.
10569 * exceptions.h: Ditto.
10570 * exec.c: Ditto.
10571 * expprint.c: Ditto.
10572 * expression.h: Ditto.
10573 * f-lang.c: Ditto.
10574 * f-valprint.c: Ditto.
10575 * findcmd.c: Ditto.
10576 * frame-base.c: Ditto.
10577 * frame-unwind.c: Ditto.
10578 * frame-unwind.h: Ditto.
10579 * frame.c: Ditto.
10580 * frame.h: Ditto.
10581 * gcore.c: Ditto.
10582 * gdb-stabs.h: Ditto.
10583 * gdb_assert.h: Ditto.
10584 * gdb_dirent.h: Ditto.
10585 * gdb_obstack.h: Ditto.
10586 * gdbcore.h: Ditto.
10587 * gdbtypes.c: Ditto.
10588 * gdbtypes.h: Ditto.
10589 * inf-ttrace.c: Ditto.
10590 * infcall.c: Ditto.
10591 * infcmd.c: Ditto.
10592 * inflow.c: Ditto.
10593 * infrun.c: Ditto.
10594 * inline-frame.h: Ditto.
10595 * language.c: Ditto.
10596 * language.h: Ditto.
10597 * libunwind-frame.c: Ditto.
10598 * libunwind-frame.h: Ditto.
10599 * linespec.c: Ditto.
10600 * linux-nat.c: Ditto.
10601 * linux-nat.h: Ditto.
10602 * linux-thread-db.c: Ditto.
10603 * machoread.c: Ditto.
10604 * macroexp.c: Ditto.
10605 * macrotab.c: Ditto.
10606 * main.c: Ditto.
10607 * maint.c: Ditto.
10608 * mdebugread.c: Ditto.
10609 * memattr.c: Ditto.
10610 * minsyms.c: Ditto.
10611 * monitor.c: Ditto.
10612 * monitor.h: Ditto.
10613 * objfiles.c: Ditto.
10614 * objfiles.h: Ditto.
10615 * osabi.c: Ditto.
10616 * p-typeprint.c: Ditto.
10617 * p-valprint.c: Ditto.
10618 * parse.c: Ditto.
10619 * printcmd.c: Ditto.
10620 * proc-events.c: Ditto.
10621 * procfs.c: Ditto.
10622 * progspace.c: Ditto.
10623 * progspace.h: Ditto.
10624 * psympriv.h: Ditto.
10625 * psymtab.c: Ditto.
10626 * record.c: Ditto.
10627 * regcache.c: Ditto.
10628 * regcache.h: Ditto.
10629 * remote-fileio.c: Ditto.
10630 * remote.c: Ditto.
10631 * ser-mingw.c: Ditto.
10632 * ser-tcp.c: Ditto.
10633 * ser-unix.c: Ditto.
10634 * serial.c: Ditto.
10635 * serial.h: Ditto.
10636 * solib-frv.c: Ditto.
10637 * solib-irix.c: Ditto.
10638 * solib-osf.c: Ditto.
10639 * solib-pa64.c: Ditto.
10640 * solib-som.c: Ditto.
10641 * solib-sunos.c: Ditto.
10642 * solib-svr4.c: Ditto.
10643 * solib-target.c: Ditto.
10644 * solib.c: Ditto.
10645 * somread.c: Ditto.
10646 * source.c: Ditto.
10647 * stabsread.c: Ditto.
10648 * stabsread.c: Ditto.
10649 * stack.c: Ditto.
10650 * stack.h: Ditto.
10651 * symfile-mem.c: Ditto.
10652 * symfile.c: Ditto.
10653 * symfile.h: Ditto.
10654 * symmisc.c: Ditto.
10655 * symtab.c: Ditto.
10656 * symtab.h: Ditto.
10657 * target-descriptions.c: Ditto.
10658 * target-memory.c: Ditto.
10659 * target.c: Ditto.
10660 * target.h: Ditto.
10661 * terminal.h: Ditto.
10662 * thread.c: Ditto.
10663 * top.c: Ditto.
10664 * tracepoint.c: Ditto.
10665 * tracepoint.h: Ditto.
10666 * ui-file.c: Ditto.
10667 * ui-file.h: Ditto.
10668 * ui-out.h: Ditto.
10669 * user-regs.c: Ditto.
10670 * user-regs.h: Ditto.
10671 * utils.c: Ditto.
10672 * valarith.c: Ditto.
10673 * valops.c: Ditto.
10674 * valprint.c: Ditto.
10675 * valprint.h: Ditto.
10676 * value.c: Ditto.
10677 * varobj.c: Ditto.
10678 * varobj.h: Ditto.
10679 * vec.h: Ditto.
10680 * xcoffread.c: Ditto.
10681 * xcoffsolib.c: Ditto.
10682 * xcoffsolib.h: Ditto.
10683 * xml-syscall.c: Ditto.
10684 * xml-tdesc.c: Ditto.
10685
9a2b4c1b
MS
106862011-01-05 Michael Snyder <msnyder@vmware.com>
10687
10688 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10689 * cli/cli-decode.c: Ditto.
10690 * cli/cli-dump.c: Ditto.
10691 * cli/cli-logging.c: Ditto.
10692 * cli/cli-script.c: Ditto.
10693 * cli/cli-setshow.c: Ditto.
10694 * common/signals.c: Ditto.
10695 * mi/mi-cmd-break.c: Ditto.
10696 * mi/mi-cmd-disas.c: Ditto.
10697 * mi/mi-cmd-stack.c: Ditto.
10698 * mi/mi-cmd-var.c: Ditto.
10699 * mi/mi-cmds.c: Ditto.
10700 * mi/mi-common.h: Ditto.
10701 * mi/mi-console.c: Ditto.
10702 * mi/mi-interp.c: Ditto.
10703 * mi/mi-main.c: Ditto.
10704 * osf-share/cma_attr.c: Ditto.
10705 * osf-share/cma_deb_core.h: Ditto.
10706 * osf-share/cma_debug_client.h: Ditto.
10707 * osf-share/cma_handle.h: Ditto.
10708 * osf-share/cma_mutex.h: Ditto.
10709 * osf-share/cma_stack_int.h: Ditto.
10710 * osf-share/cma_tcb_defs.h: Ditto.
10711 * python/py-auto-load.c: Ditto.
10712 * python/py-breakpoint.c: Ditto.
10713 * python/py-cmd.c: Ditto.
10714 * python/py-frame.c: Ditto.
10715 * python/py-objfile.c: Ditto.
10716 * python/py-param.c: Ditto.
10717 * python/py-progspace.c: Ditto.
10718 * python/py-symbol.c: Ditto.
10719 * python/py-value.c: Ditto.
10720 * python/python-internal.h: Ditto.
10721 * python/python.c: Ditto.
10722 * tui/tui-data.c: Ditto.
10723 * tui/tui-disasm.c: Ditto.
10724 * tui/tui-hooks.c: Ditto.
10725 * tui/tui-io.c: Ditto.
10726 * tui/tui-layout.c: Ditto.
10727 * tui/tui-regs.c: Ditto.
10728 * tui/tui-source.c: Ditto.
10729 * tui/tui-stack.c: Ditto.
10730 * tui/tui-win.c: Ditto.
10731 * tui/tui-windata.c: Ditto.
10732 * tui/tui-winsource.c: Ditto.
10733
44944448
JB
107342011-01-05 Joel Brobecker <brobecker@adacore.com>
10735
10736 * configure.ac, gdb.1: Copyright year update.
10737
ebedcab5
JK
107382011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10739
10740 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10741 this_pc_in_block, morestack_msym and morestack_name. Check for
10742 "__morestack" minimal symbol there.
10743
e5cc9f32
JB
107442011-01-03 Joel Brobecker <brobecker@adacore.com>
10745
10746 * symfile.c (find_sym_fns): Add call to dont_repeat.
10747
7b6bb8da
JB
107482011-01-01 Joel Brobecker <brobecker@adacore.com>
10749
10750 Copyright year update in most files (performed by copyright.sh).
10751
71ce852c
JB
107522011-01-01 Joel Brobecker <brobecker@adacore.com>
10753
10754 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 10755
c3c1ebe8 10756For older changes see ChangeLog-2010.
c906108c
SS
10757\f
10758Local Variables:
10759mode: change-log
10760left-margin: 8
10761fill-column: 74
10762version-control: never
57da7796 10763coding: utf-8
c906108c 10764End:
This page took 1.788885 seconds and 4 git commands to generate.