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