2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2 Thiago Jung Bauermann <bauerman@br.ibm.com>
3
4 Implement support for PowerPC BookE masked watchpoints.
5 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6 section.
7 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
8 method. Initialize to NULL in all existing breakpoint_ops instances.
9 (struct breakpoint) <hw_wp_mask>: New field.
10 * breakpoint.c (is_masked_watchpoint): Add prototype.
11 (update_watchpoint): Don't set b->val for masked watchpoints. Call
12 breakpoint's breakpoint_ops.works_in_software_mode if available.
13 (watchpoints_triggered): Handle the case of a hardware masked
14 watchpoint trigger.
15 (watchpoint_check): Likewise.
16 (works_in_software_mode_watchpoint): New function.
17 (insert_masked_watchpoint, remove_masked_watchpoint)
18 (resources_needed_masked_watchpoint)
19 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
20 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
21 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
22 functions.
23 (masked_watchpoint_breakpoint_ops): New structure.
24 (watch_command_1): Check for the existence of the `mask' parameter.
25 Set b->ops according to the type of hardware watchpoint being created.
26 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
27 (ppc_linux_remove_mask_watchpoint)
28 (ppc_linux_masked_watch_num_registers): New functions.
29 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
30 to_remove_mask_watchpoint and to_masked_watch_num_registers.
31 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
32 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
33 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
34 (target_masked_watch_num_registers): New functions.
35 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
36 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
37 methods.
38 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
39 (target_masked_watch_num_registers): Add prototypes.
40
41 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 PR 12573
44 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
45 (producer_is_gcc_ge_4_0): New function.
46 (process_full_comp_unit): Set also symtab->locations_valid. Move the
47 symtab->language code.
48 (var_decode_location): Set cu->has_loclist.
49 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
50 skip. Intialize force_skip from locations_valid. Move the prologue
51 skipping code into two passes.
52 * symtab.h (struct symtab): Make the primary field a bitfield. New
53 field locations_valid.
54
55 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
56
57 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
58 (classify_inner_name): Call cp_lookup_nested_type with
59 yylval.tsym.type.
60 * cp-namespace.c (cp_lookup_nested_type): New variable
61 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
62 type_name_no_tag_or_error with saved_parent_type.
63 * dwarf2read.c (load_partial_dies): Read in any children of
64 DW_TAG_typedef with complaint in such case.
65 * gdbtypes.c (type_name_no_tag_or_error): New function.
66 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
67 * valops.c (destructor_name_p): New comment for parameter type. Remove
68 type const. Make dname and cp const. Call type_name_no_tag_or_error.
69 * value.h (destructor_name_p): Remove type const.
70
71 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
72
73 * symtab.c (compare_symbol_name): New function.
74 (completion_list_add_name, expand_partial_symbol_name): Call it,
75 remove the variable ncmp.
76 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
77 gdb_assert it.
78
79 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
80
81 Demote to sw watchpoint only in update_watchpoint.
82 * breakpoint.c (update_watchpoint): Change between software and
83 hardware watchpoint for all kinds of watchpoints, not just
84 read/write ones. Determine b->exact value here instead of
85 in watch_command_1. Error out if there are not enough resources
86 for a read or access hardware watchpoint.
87 (watch_command_1): Remove logic of checking whether there are
88 enough resources available, since update_watchpoint will do that
89 work now. Don't set b->exact here. Catch exceptions thrown by
90 update_watchpoint and delete the watchpoint.
91 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
92 Use target_exact_watchpoints instead.
93 (delete_breakpoint): Notify observers only if deleted watchpoint
94 has a breakpoint number assigned to it.
95
96 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
97
98 * MAINTAINERS: Add myself as a write-after-approval maintainer.
99
100 2011-05-05 Jerome Guitton <guitton@adacore.com>
101
102 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
103 New functions.
104 (i386_stack_tramp_frame_unwind): New static global.
105 (i386_match_pattern): New function, extracted from i386_match_insn.
106 (i386_match_insn): Use i386_match_pattern.
107 (i386_match_insn_block): New function.
108 (i386_tramp_chain_in_reg_insns)
109 (i386_tramp_chain_on_stack_insns): New static variables.
110 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
111 of unwinders.
112
113 2011-05-04 Joseph Myers <joseph@codesourcery.com>
114
115 * configure.host (xscale*): Don't handle target.
116 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
117 handle targets.
118
119 2011-05-04 Yao Qi <yao@codesourcery.com>
120
121 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
122
123 2011-05-03 Joel Brobecker <brobecker@adacore.com>
124
125 Revert:
126 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
127 | * elfread.c (elf_symtab_read): Stop memory leak.
128
129 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
130
131 * nto-tdep.c (nto_target): Replace deprecated call to
132 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
133
134 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
135
136 Fix false GCC warning.
137 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
138
139 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
140
141 * breakpoint.c (update_watchpoint): Move code to change
142 the enable state of breakpoint from here ...
143 (do_enable_breakpoint): ... to here.
144
145 2011-04-26 Andrew Gontarek <andrewg@cray.com>
146
147 * valprint.c (val_print_array_elements): Fixed poor performance
148 of printing very large arrays with repeat_count_threshold set
149 to unlimited. New comment.
150
151 2011-04-29 Tom Tromey <tromey@redhat.com>
152
153 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
154 (mi_parse): Likewise.
155 * breakpoint.c (break_range_command): Use sizeof char*, not
156 char**.
157 (create_breakpoint): Likewise.
158 (parse_breakpoint_sals): Likewise.
159
160 2011-04-29 Pedro Alves <pedro@codesourcery.com>
161
162 * linux-nat.c (linux_child_remove_fork_catchpoint)
163 (linux_child_remove_vfork_catchpoint)
164 (linux_child_remove_exec_catchpoint): New functions.
165 (linux_target_install_ops): Install them.
166
167 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
168
169 PR mi/12531
170
171 * varobj.c (install_default_visualizer): Do not install a
172 visualizer if the varobj is CPLUS_FAKE_CHILD.
173 (construct_visualizer): Likewise.
174
175 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
178 case insensitive comparison.
179
180 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
181
182 * infrun.c (proceed): Revert previous change.
183 (resume): Instead, handle the case of signal delivery while stepping
184 off a breakpoint location here, and only if software single-stepping
185 is used. Handle nested signals.
186
187 2011-04-28 Yao Qi <yao@codesourcery.com>
188
189 * arm-tdep.c (copy_unmodified): Rename to ...
190 (arm_copy_unmodified): .. this. New.
191 (copy_preload): Move common part to ...
192 (install_preload): .. this. New.
193 (arm_copy_preload): New.
194 (copy_preload_reg): Move common part to ...
195 (install_preload_reg): ... this. New.
196 (arm_copy_preload_reg): New.
197 (copy_b_bl_blx): Move common part to ...
198 (install_b_bl_blx): .. this. New.
199 (arm_copy_b_bl_blx): New.
200 (copy_bx_blx_reg): Move common part to ...
201 (install_bx_blx_reg): ... this. New.
202 (arm_copy_bx_blx_reg): New.
203 (copy_alu_reg): Move common part to ...
204 (install_alu_reg): ... this. New.
205 (arm_copy_alu_reg): New.
206 (copy_alu_shifted_reg): Move common part to ...
207 (install_alu_shifted_reg): ... this. New.
208 (copy_ldr_str_ldrb_strb): Move common part to ...
209 (install_ldr_str_ldrb_strb): ... this. New.
210 (arm_copy_ldr_str_ldrb_strb): New.
211 (copy_copro_load_store): Move some common part to ...
212 (install_copy_copro_load_store): ... this. New.
213 (arm_copy_copro_load_store): New.
214 (copy_svc): Delete.
215 (arm_copy_svc): Renamed from copy_svc.
216 (copy_undef): Delete.
217 (arm_copy_undef): Renamed from copy_undef.
218 (decode_ext_reg_ld_st): Delete.
219 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
220 (decode_svc_copro): Delete.
221 (arm_decode_svc_copro): Renamed from decode_svc_copro.
222 (copy_copro_load_store, copy_alu_imm): update callers.
223 (copy_extra_ld_st, copy_block_xfer): Likewise.
224 (decode_misc_memhint_neon, decode_unconditional): Likewise.
225 (decode_miscellaneous, decode_dp_misc): Likewise.
226 (decode_ld_st_word_ubyte, decode_media): Likewise.
227 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
228 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
229 (decode_unconditional, decode_miscellaneous): Likewise.
230 (decode_media, decode_b_bl_ldmstm): Likewise.
231 (arm_process_displaced_insn): Likewise..
232 (decode_misc_memhint_neon): Delete.
233 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
234 (decode_miscellaneous): Delete.
235 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
236 (decode_dp_misc): Delete.
237 (arm_decode_dp_misc): Renamed from decode_dp_misc.
238 (decode_ld_st_word_ubyte): Delete.
239 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
240 (decode_media): Delete.
241 (arm_decode_media): Renamed from decode_media.
242 (decode_b_bl_ldmstm): Delete.
243 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
244 (decode_ext_reg_ld_st): Delete.
245 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
246 (decode_unconditional): Delete.
247 (arm_decode_unconditional): Renamed from decode_unconditional.
248
249 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
250
251 Case insensitive lookups implementation.
252 * dwarf2read.c: Include ctype.h.
253 (struct mapped_index): New field version.
254 (mapped_index_string_hash): New parameter index_version. New comment
255 for it. Call tolower appropriately.
256 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
257 Choose the right index version for mapped_index_string_hash.
258 (dwarf2_read_index): Support also the index version 5. Initialize the
259 new struct mapped_index field version.
260 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
261 (find_slot): Explain the version needs. Pass INT_MAX for the new
262 parameter.
263 (write_psymtabs_to_index): Produce version 5.
264 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
265 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
266 * psymtab.c (lookup_partial_symbol): Find the
267 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
268 entries.
269 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
270 NAME lowercasing.
271 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
272 (completion_list_add_name): New variable ncmp, initialize it, use it.
273 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
274 * utils.c (strcmp_iw): Support case_sensitive_off.
275 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
276 New function comment part. New variables saved_string1,
277 saved_string2 and case_pass. Add a proper second pass.
278
279 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
280
281 Replace re_comp/re_exec by regcomp/regexec.
282 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
283 (search_symbols_name_matches): Use them, use regexec.
284 (search_symbols): New variable retval_chain, adjust the use of
285 old_chain against it. Replace re_comp by regcomp. Use the new struct
286 search_symbols_data fields, use regexec instead of re_exec.
287
288 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
289
290 Format the code for the next patch.
291 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
292 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
293 New variables c1 and c2.
294
295 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
296
297 * infrun.c (proceed): Do not single-step into signal delivery
298 when stepping off a breakpoint location.
299 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
300 (insert_step_resume_breakpoint_at_caller): Likewise.
301 (insert_step_resume_breakpoint_at_sal): Likewise.
302 (insert_longjmp_resume_breakpoint): Likewise.
303
304 2011-04-27 Yao Qi <yao@codesourcery.com>
305
306 * common/linux-ptrace.h: Remove include <sys/wait.h>.
307
308 2011-04-27 Joel Brobecker <brobecker@adacore.com>
309
310 * procfs.c (procfs_pass_signals): Fix advance declaration.
311
312 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
313
314 * target.h (struct target_ops): Remove to_notice_signals;
315 add to_pass_signals.
316 (target_notice_signals): Remove.
317 (target_pass_signals): Add prototype.
318 * target.c (update_current_target): Remove to_notice_signals;
319 mention to_pass_signals.
320 (target_pass_signals): New function.
321 (debug_to_notice_signals): Remove.
322 (setup_target_debug): Do not install debug_to_notice_signals.
323
324 * infrun.c (signal_pass): New global.
325 (resume): Call target_pass_signals.
326 (handle_inferior_event): Report all signals while stepping over
327 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
328 are re-inserted when stepping over a signal handler.
329 (signal_cache_update): New function.
330 (signal_stop_update): Call it.
331 (signal_print_update): Likewise.
332 (signal_pass_update): Likewise.
333 (handle_command): Call signal_cache_update and target_pass_signals
334 instead of target_notice_signals.
335 (_initialize_infrun): Initialize signal_pass.
336
337 * linux-nat.c (pass_mask): New global.
338 (linux_nat_pass_signals): New function.
339 (linux_nat_create_inferior): Report all signals initially.
340 (linux_nat_attach): Likewise.
341 (linux_nat_resume): Use pass_mask to decide whether to directly
342 handle an inferior signal.
343 (linux_nat_wait_1): Likewise.
344 (linux_nat_add_target): Install to_pass_signals callback.
345
346 * nto-procfs.c (notice_signals): Remove.
347 (procfs_resume): Do not call notice_signals.
348 (procfs_notice_signals): Remove.
349 (procfs_pass_signals): New function.
350 (init_procfs_ops): Install to_pass_signals callback instead of
351 to_notice_signals callback.
352 (_initialize_procfs): Report all signals initially.
353
354 * procfs.c (procfs_notice_signals): Remove.
355 (procfs_pass_signals): New function.
356 (procfs_target): Install to_pass_signals callback instead of
357 to_notice_signals callback.
358 (register_gdb_signals): Remove.
359 (procfs_debug_inferior): Report all signals initially.
360 (procfs_init_inferior): Remove redundant register_gdb_signals call.
361
362 * remote.c (remote_pass_signals): Add numsigs and pass_signals
363 parameters; use them instead of calling signal_..._state routines.
364 (remote_notice_signals): Remove.
365 (remote_start_remote): Report all signals initially.
366 (remote_resume): Do not call remote_pass_signals.
367 (_initialize_remote): Install to_pass_signals callback instead of
368 to_notice_signals callback.
369
370 2011-04-27 Pedro Alves <pedro@codesourcery.com>
371
372 * breakpoint.c (user_settable_breakpoint): Delete.
373 (user_breakpoint_p): Remove check on user_settable_breakpoint.
374 (delete_command): Check user_breakpoint_p instead of looking at
375 the breakpoint's type.
376 (disable_command): Ditto.
377 (enable_command): Ditto.
378 (delete_trace_command): Use user_breakpoint_p instead of looking
379 at the breakpoint number directly. When checking if there are
380 user visible tracepoints, in order to know whether to ask the user
381 for confirmation, check whether the breakpoint is actually a
382 tracepoint.
383
384 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
385
386 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
387 compilation.
388
389 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
390
391 MI breakpoint notifications.
392
393 * annotate.c (breakpoint_changed): Adjust parameter type.
394 * breakpoint.c (set_breakpoint_condition): Adjust to change
395 in breakpoint_modified type.
396 (breakpoint_set_commands): Likewise.
397 (do_map_commands_command): Likewise.
398 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
399 changed after bumping hit count.
400 (bpstat_stop_status): Likewise.
401 (print_one_breakpoint_location): Don't wrap in tuple here.
402 (print_one_breakpoint): Always print individual locations.
403 For locations, use unnamed tuple.
404 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
405 has changed.
406 (create_catchpoint, create_syscall_event_catchpoint): Call
407 breakpoint_created obsever.
408 (mention): Don't call breakpoint_created observer.
409 (create_breakpoint_sal): Call breakpoint_created observer.
410 (create_breakpoint, watch_command_1): Likewise.
411 (create_ada_exception_breakpoint): Likewise.
412 (delete_breakpoint): Call breakpoint_deleted breakpoint.
413 (locations_are_equal): New.
414 (update_breakpoint_locations): If locations were changed, notify.
415 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
416 Call breakpoint_modified observer.
417
418 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
419 (mi_cmd_break_insert): Don't set observers for modify and delete.
420 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
421 (mi_breakpoint_created, mi_breakpoint_deleted)
422 (mi_breakpoint_modified): New.
423 (mi_interpreter_init): Hook the above.
424 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
425 while -break-* commands are executing.
426 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
427 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
428 (mi_redirect): New.
429 (mi_ui_out_impl): Hook in mi_redirect.
430 (mi_field_skip): True to the name, skip the field, don't output
431 a field with an empty value.
432
433 * python/py-breakpoint.c (gdbpy_breakpoint_created)
434 (gdbpy_breakpoint_deleted): Adjust.
435 * tui/tui-hooks.c (tui_event_create_breakpoint)
436 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
437
438 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
439
440 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
441 (procfs_remove_hw_watchpoint): Likewise.
442
443 2011-04-26 Michael Walle <michael@walle.cc>
444
445 * remote.c (remote_start_remote): Ack packet after sending the
446 interrupt sequence.
447
448 2011-04-26 Yao Qi <yao@codesourcery.com>
449
450 * linux-nat.c: Move common macros to ...
451 Include linux-ptrace.h.
452 * common/linux-ptrace.h: ... here. New.
453
454 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
457 !objfile_has_partial_symbols. New comment.
458 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
459 SYM_READ_PSYMBOLS is not present. Extend the comment.
460 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
461
462 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
463
464 * defs.h (ENUM_BITFIELD): Remove.
465
466 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
467 Eli Zaretskii <eliz@gnu.org>
468
469 * NEWS: Document the new gdbserver --once option.
470
471 2011-04-21 Jie Zhang <jzhang918@gmail.com>
472
473 * MAINTAINERS: Update my email address.
474
475 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
476
477 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
478 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
479 function call if __STDC_ISO_10646__ macro is defined.
480 (intermediate_encoding): New prototype.
481 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
482 to generate compile time error for unsupported gdb_wchar_t size.
483 (ENDIAN_SUFFIX): New macro.
484 (intermediate_encoding): New function.
485
486 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
487
488 * ada-lang.c (struct add_partial_datum): Update the comment for
489 expand_partial_symbol_name.
490 (ada_add_partial_symbol_completions): Rename to ...
491 (ada_expand_partial_symbol_name): ... here, change return type, update
492 function comment, call symbol_completion_match instead of
493 symbol_completion_add.
494 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
495 and ada_expand_partial_symbol_name.
496 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
497 FILE_MATCHER.
498 (dw2_map_symbol_names): Remove.
499 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
500 * psymtab.c (map_symbol_names_psymtab): Remove.
501 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
502 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
503 order.
504 (psym_functions): Unlist map_symbol_names_psymtab.
505 (map_partial_symbol_names): Rename to ...
506 (expand_partial_symbol_names): ... here, change the FUN type, call
507 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
508 * psymtab.h (map_partial_symbol_names): Rename to ...
509 (expand_partial_symbol_names): ... here, change the FUN type.
510 * symfile.h (struct quick_symbol_functions): Update the description of
511 expand_symtabs_matching. Remove map_symbol_names.
512 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
513 (struct add_name_data): Update the comment for
514 expand_partial_symbol_name.
515 (add_partial_symbol_name): Rename to ...
516 (expand_partial_symbol_name): ... here. Replace
517 completion_list_add_name call by strncmp.
518 (default_make_symbol_completion_list_break_on): Use now
519 expand_partial_symbol_names and expand_partial_symbol_name.
520 * symtab.h (enum search_domain): New element ALL_DOMAIN.
521
522 2011-04-20 Tom Tromey <tromey@redhat.com>
523
524 * dwarf2read.c (save_gdb_index_command): Replace format
525 documentation with a pointer to the manual.
526
527 2011-04-20 Pedro Alves <pedro@codesourcery.com>
528
529 * regcache.c: Include remote.h.
530 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
531 (regcache_dump): Handle regcache_dump_remote.
532 (maintenance_print_remote_registers): New function.
533 (_initialize_regcache): Install "maint print remote-registers"
534 command.
535 * remote.c (map_regcache_remote_table): New function, factored out
536 from ...
537 (init_remote_state): ... here.
538 (remote_register_number_and_offset): New.
539 * remote.h (remote_register_number_and_offset): Declare.
540
541 2011-04-20 Pedro Alves <pedro@codesourcery.com>
542
543 * regcache.c (get_thread_arch_regcache): If creating a regcache for
544 null_ptid, assume and allow a NULL address space, instead of
545 asking the target for the ptid's address space.
546 * infrun.c (ptid_is_pid): Remove assertion.
547
548 2011-04-19 Tom Tromey <tromey@redhat.com>
549
550 * windows-tdep.c (windows_xfer_shared_library):
551 * windows-nat.c (get_module_name, windows_make_so):
552 * v850-tdep.c (v850_handle_pushm):
553 * utils.c (null_cleanup, gdb_realpath):
554 * ui-out.c (get_next_header):
555 * tracepoint.c (clear_traceframe_info):
556 * symtab.c (lookup_symtab):
557 * serial.h (struct serial_ops):
558 * mipsread.c (read_alphacoff_dynamic_symtab):
559 * infcmd.c (print_return_value):
560 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
561 * f-exp.y (parse_number):
562 * exceptions.c (catch_exceptions):
563 * dummy-frame.c (dummy_frame_this_id):
564 * defs.h (struct cleanup):
565 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
566 * arm-tdep.c (arm_push_dummy_call):
567 * amd64-tdep.h (amd64_collect_xsave):
568 * amd64-tdep.c (amd64_collect_xsave):
569 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
570 * README (typing): Remove duplicate words.
571 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
572 * infrun.c (siginfo_value_read): Fix typo.
573 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
574 * top.c (source_line_number): Add comma.
575
576 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
577
578 * thread.c (any_live_thread_of_process): Prioritize threads
579 that are not executing.
580 * gdbthread.h (any_live_thread_of_process): Update comment
581 as per above change.
582
583 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
584
585 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
586 (scan_xcoff_symtab): Likewise.
587
588 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
589
590 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
591 inside if clause.
592
593 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
594 Pedro Alves <pedro@codesourcery.com>
595
596 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
597 variables to simplify code and avoid == operator at end of
598 line as this is against GNU coding standards.
599
600 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
601
602 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
603 lm_name to name_lm to avoid conflict with lm_name function.
604
605 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
606
607 ARI fixes: Use only lowercase function name for static functions.
608 * nto-tdep.c (LM_ADDR): Rename to...
609 (lm_addr): New function name.
610 (nto_relocate_section_addresses): Adapt to change above.
611 * solib-sunos.c (LM_ADDR): Rename to...
612 (lm_addr): New function name.
613 (LM_NEXT): Rename to...
614 (lm_next): New function name.
615 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
616 function name changes above.
617 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
618 (lm_addr_from_link_map): New function name.
619 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
620 (has_lm_dynamic_from_link_map): New function name.
621 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
622 (lm_dynamic_from_link_map): New function name.
623 (LM_ADDR_CHECK): Rename to...
624 (lm_addr_check): New function name.
625 (LM_NEXT): Rename to...
626 (lm_next): New function name.
627 (LM_PREV): Rename to...
628 (lm_prev): New function name.
629 (LM_NAME): Rename to...
630 (lm_name): New function name.
631 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
632 (ignore_first_link_map_entry): New function name.
633 (svr4_keep_data_in_core): Adapt to function name changes above.
634 (svr4_current_sos): Likewise.
635 (enable_break): Likewise.
636 (svr4_relocate_section_addresses): Likewise.
637
638 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
639
640 ARI cleanup.
641 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
642 sprintf. Simplify code and avoid loosing memory.
643 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
644 (call0_frame_cache): Remove && operator from end of line.
645
646 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
647
648 Fix libraries displacement if they change whether they were prelinked.
649 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
650 does not match. Comment why.
651
652 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
653
654 * corelow.c: Include wrapper.h.
655 (core_open): Call now gdb_target_find_new_threads.
656 * wrapper.c: Include target.h.
657 (gdb_target_find_new_threads): New.
658 * wrapper.h (gdb_target_find_new_threads): New declaration.
659
660 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
661
662 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
663 even if !TARGET_HAS_EXECUTION.
664
665 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
668 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
669 bfd_get_synthetic_symtab.
670 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
671 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
672 parameter parent, remove the call to add_separate_debug_objfile.
673 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
674 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
675 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
676 parent, new comment for it, call add_separate_debug_objfile for it.
677 (symbol_file_add_separate): Pass objfile as the parameter parent,
678 remove the call to add_separate_debug_objfile.
679 (symbol_file_add_from_bfd): New parameter parent, pass it.
680 (symbol_file_add): Pass NULL to the new parameter parent.
681 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
682
683 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
686 BSF_SYNTHETIC.
687
688 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
689
690 Fix Python access to inlined frames.
691 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
692 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
693
694 2011-04-15 Tom Tromey <tromey@redhat.com>
695
696 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
697
698 2011-04-15 Gary Benson <gbenson@redhat.com>
699
700 * MAINTAINERS: Add myself to write-after-approval section.
701
702 2011-04-14 Mike Frysinger <vapier@gentoo.org>
703
704 * remote-sim.c (sim_command_completer): New function.
705 (_initialize_remote_sim): Set completer to sim_command_completer.
706
707 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
708
709 * breakpoint.c (print_exception_catchpoint): Rename to ...
710 (print_it_exception_catchpoint): ... this.
711 (gnu_v3_exception_catchpoint_ops): Update with new name
712 for print_it_exception_catchpoint.
713
714 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
715
716 * MAINTAINERS: Add myself for write after approval privileges.
717
718 2011-04-13 Marek Polacek <mpolacek@redhat.com>
719
720 * MAINTAINERS: Add myself as a write-after-approval maintainer.
721
722 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
723
724 * breakpoint.c (watch_command_1): Remove colon from exp_string.
725
726 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
727
728 * breakpoint.c (save_breakpoints): Verify whether
729 breakpoint_ops.print_recreate is defined before calling it.
730
731 2011-04-11 Gary Benson <gbenson@redhat.com>
732
733 Fix failure with --enable-maintainer-mode.
734 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
735
736 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
737
738 Code cleanup.
739 * symtab.c (search_symbols): Reorder the KIND description in the
740 function comment. Remove the unused 4th element of types, types2,
741 types3 and types4. New gdb_assert on KIND.
742 (symtab_symbol_info): Remove the unused 4th element of classnames.
743 New gdb_assert on KIND.
744 * symtab.h (enum search_domain): New warning in the enum comment.
745 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
746 TYPES_DOMAIN.
747
748 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
749
750 Fix crash of gdb save-index on a STABS file.
751 * dwarf2read.c (write_psymtabs_to_index): Return also on no
752 PSYMTABS_ADDRMAP.
753
754 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
755
756 Fix DW_AT_accessibility compatibility with gcc-4.6+.
757 * dwarf2read.c: Include ctype.h.
758 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
759 functions.
760 (dwarf2_add_field): Fix new_field->accessibility by calling
761 dwarf2_default_access_attribute. Restructure setting accessibility
762 vs. virtuality.
763 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
764 is_private and is_protected by calling
765 dwarf2_default_access_attribute.
766
767 2011-04-08 Kevin Buettner <kevinb@redhat.com>
768
769 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
770 to the initialization.
771
772 2011-04-08 Steve Ellcey <sje@cup.hp.com>
773
774 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
775 initalization.
776
777 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
778
779 Remove support for old Cygwin 1.5 versions.
780 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
781 function on old Cygwin version.
782 * windows-nat.c: Remove cygwin version check and always define
783 __USEWIDE for Cygwin compilation.
784
785 2011-04-07 Yao Qi <yao@codesourcery.com>
786
787 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
788 and TO.
789 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
790 (arm_copy_svc): Remove parameters INSN and TO.
791 (decode_svc_copro): Update caller.
792 * arm-tdep.h (struct displaced_step_closure): Remove parameters
793 from function pointer `copy_svc_os'.
794
795 2011-04-07 Yao Qi <yao@codesourcery.com>
796
797 * arm-tdep.c (cleanup_branch): Set a correct return address in
798 LR for ARM and Thumb.
799
800 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
801
802 Code cleanup.
803 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
804 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
805 in the function comment, a new note on values compatibility.
806 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
807 * symtab.h (SYMBOL_HASH_NEXT): New.
808
809 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
810
811 * ppc-linux-nat.c (check_condition): Add len output parameter.
812 Set it based on the memory region referenced in the condition
813 expression. Update all callers.
814
815 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
816
817 Fix crash regression on systems featuring .gdb_index.
818 * objfiles.c (free_objfile): Move the
819 forget_cached_source_info_for_objfile call earlier. Comment it.
820 Extend the comment for objfile_free_data.
821
822 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
823
824 Fix regression of displaying the debug format.
825 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
826 subfile.
827
828 2011-04-04 Tom Tromey <tromey@redhat.com>
829
830 * cli/cli-interp.c (struct captured_execute_command_args):
831 Remove.
832 (do_captured_execute_command): Remove.
833 (safe_execute_command): Use TRY_CATCH.
834 * cli/cli-script.c (struct wrapped_read_command_file_args):
835 Remove.
836 (wrapped_read_command_file): Remove.
837 (script_from_file): Use TRY_CATCH.
838 * exceptions.c (catch_exception): Remove.
839 * exceptions.h (catch_exception): Remove.
840 (deprecated_throw_reason): Update comment.
841 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
842 argument to 'context'.
843 (mi_execute_command): Use TRY_CATCH.
844 * remote.c (struct start_remote_args): Remove.
845 (remote_start_remote): Update; change arguments.
846 (remote_open_1): Use TRY_CATCH.
847
848 2011-04-04 Tom Tromey <tromey@redhat.com>
849
850 * tracepoint.c (scope_info): Update.
851 * symtab.c (decode_line_spec): Update.
852 * python/python.c (gdbpy_decode_line): Update.
853 * linespec.h (decode_line_1): Update.
854 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
855 (decode_compound, find_method, symtab_from_filename)
856 (decode_variable): Likewise.
857 * cli/cli-cmds.c (edit_command): Update.
858 (list_command): Update.
859 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
860 argument.
861 (create_breakpoint): Update.
862 (until_break_command): Update.
863 (addr_string_to_sals): Update.
864 (decode_line_spec_1): Update.
865
866 2011-04-04 Tom Tromey <tromey@redhat.com>
867
868 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
869 (do_captured_parse_breakpoint): Remove.
870 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
871 Use TRY_CATCH directly.
872
873 2011-04-04 Tom Tromey <tromey@redhat.com>
874
875 * symtab.h (free_symtab): Remove.
876 (forget_cached_source_info_for_objfile): Declare.
877 * symmisc.c (free_symtab): Remove.
878 * source.c (forget_cached_source_info_for_objfile): New function.
879 (forget_cached_source_info): Use it.
880 * objfiles.c (free_objfile): Simplify check before calling
881 clear_current_source_symtab_and_line. Call
882 forget_cached_source_info_for_objfile.
883
884 2011-04-04 Tom Tromey <tromey@redhat.com>
885
886 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
887 (new_symtab): Don't set `free_code' on symtab.
888 (new_linetable): Properly handle size==0.
889 * symtab.h (struct symtab) <free_code, free_func>: Remove.
890 * symmisc.c (free_symtab): Don't free the linetable. Don't call
891 free_func.
892 * jv-lang.c (struct jv_per_objfile_data): New.
893 (jv_per_objfile_free): Free the data.
894 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
895 (get_java_class_symtab): Set the `dict' field on the
896 jv_per_objfile_data.
897 (free_class_block): Remove.
898 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
899 the symtab.
900
901 2011-04-04 Tom Tromey <tromey@redhat.com>
902
903 * symfile.c (reread_symbols): Update.
904 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
905 field.
906 * objfiles.c (allocate_objfile): Update.
907 * cp-support.h (cp_check_possible_namespace_symbols): Don't
908 declare.
909 * cp-namespace.c (lookup_symbol_file): Don't call
910 lookup_possible_namespace_symbol.
911 (initialize_namespace_symtab, get_possible_namespace_block)
912 (free_namespace_block, cp_check_possible_namespace_symbols)
913 (check_possible_namespace_symbols_loop)
914 (check_one_possible_namespace_symbol)
915 (lookup_possible_namespace_symbol): Remove.
916 (maintenance_cplus_namespace): Replace with notice.
917 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
918
919 2011-04-04 Tom Tromey <tromey@redhat.com>
920
921 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
922 * symtab.h (struct symtab) <producer, debugformat>: Now const.
923 * symmisc.c (free_symtab): Don't free debugformat.
924 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
925 (record_debugformat, record_producer): Document.
926 * buildsym.c (end_symtab): Don't save debugformat and producer
927 names on obstack.
928 (end_symtab): Don't free debugformat and producer fields.
929 (record_debugformat): Don't call xstrdup.
930 (record_producer): Likewise.
931
932 2011-04-04 Tom Tromey <tromey@redhat.com>
933
934 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
935 (source_line_charpos, source_charpos_line): Remove.
936
937 2011-04-04 Tom Tromey <tromey@redhat.com>
938
939 * symtab.h (domain_enum): Split in two...
940 (enum search_domain): New.
941 (search_symbols): Update.
942 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
943 redundant declarations.
944 (search_symbols): Change 'kind' argument to search_domain.
945 Update.
946 (print_symbol_info): Likewise.
947 (symtab_symbol_info): Likewise.
948 * symfile.h (struct quick_symbol_functions)
949 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
950 <expand_symtabs_matching>: Likewise.
951 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
952 (expand_symtabs_matching_via_partial): Update.
953 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
954 (dw2_expand_symtabs_for_function): Update.
955 * block.h: Moved anonymous enum...
956 * defs.h (enum block_enum): ... here. Now named.
957
958 2011-04-03 Joel Brobecker <brobecker@adacore.com>
959
960 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
961 * version.in: Bump version to 7.3.50.20110403-cvs.
962
963 2011-04-03 Joel Brobecker <brobecker@adacore.com>
964
965 * NEWS: Create a new section for the next release branch.
966 Rename the section of the current branch, now that it has
967 been cut.
968
969 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
970
971 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
972 for "fpscr" in target description.
973
974 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
975
976 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
977 initialize it. Delay HASH initialization. Strip the part after open
978 parenthesis for languages with qualifiers. Call do_cleanups.
979
980 2011-04-01 Tom Tromey <tromey@redhat.com>
981
982 * utils.c (report_command_stats): Don't print `-' for negative
983 number.
984
985 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
986
987 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
988 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
989 typedefs.
990
991 2011-04-01 Joel Brobecker <brobecker@adacore.com>
992
993 * breakpoint.h (bpdisp_text): Add declaration.
994 * breakpoint.c (bpdisp_text): Make non-static.
995 * ada-lang.c: #include "mi/mi-common.h".
996 (print_it_exception): Rewrite to improve GDB/MI output.
997
998 2011-04-01 Pedro Alves <pedro@codesourcery.com>
999
1000 * arm-tdep.h (struct address_space): Add forward declaration.
1001
1002 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1003
1004 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1005 * arm-tdep.c (arm_override_mode): New global.
1006 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1007 execution mode heuristics.
1008 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1009 second single-step breakpoint if needed, using
1010 arm_insert_single_step_breakpoint.
1011 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1012 ARM execution mode, do not call thumb_get_next_pc_raw.
1013 (arm_get_next_pc): Encode execution mode in return value. Call
1014 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1015 (arm_insert_single_step_breakpoint): New function.
1016 (arm_software_single_step): Call it.
1017 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1018 argument to return execution mode of sigreturn target.
1019 (arm_linux_syscall_next_pc): Use it.
1020 (arm_linux_copy_svc): Update call.
1021 (arm_linux_software_single_step): Call
1022 arm_insert_single_step_breakpoint.
1023
1024 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1025
1026 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1027 the comment.
1028
1029 2011-03-31 Tom Tromey <tromey@redhat.com>
1030
1031 * varobj.c (update_dynamic_varobj_children): Properly handle
1032 errors from iterator.
1033
1034 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1035
1036 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1037 struct linkage name twice.
1038
1039 2011-03-31 Tom Tromey <tromey@redhat.com>
1040
1041 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1042 missing ">" to message.
1043
1044 2011-03-31 Tom Tromey <tromey@redhat.com>
1045
1046 * varobj.c (instantiate_pretty_printer): Remove duplicate
1047 'return'.
1048
1049 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1050
1051 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1052 if neither saved value nor register available (e.g. signal frame).
1053
1054 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1055
1056 * macroexp.c (expand): Avoid uninitialized variable
1057 compiler warning.
1058
1059 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1060
1061 * breakpoint.c (break_range_command): Fix typo in comment.
1062
1063 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1064 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1065
1066 Implement support for PowerPC BookE ranged breakpoints.
1067 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1068 * breakpoint.h (struct bp_target_info) <length>: New member
1069 variable.
1070 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1071 instead of struct breakpoint as argument, and also add ASPACE
1072 and BP_ADDR arguments. Update all callers.
1073 (struct breakpoint_ops) <print_one_detail>: New method.
1074 (struct breakpoint) <addr_string_range_end>: New member variable.
1075 * breakpoint.c (breakpoint_location_address_match): Add function
1076 prototype.
1077 (insert_bp_location): Set bl->target_info.length.
1078 (breakpoint_here_p): Call breakpoint_location_address_match.
1079 (moribund_breakpoint_here_p): Likewise.
1080 (regular_breakpoint_inserted_here_p): Likewise.
1081 (breakpoint_thread_match): Likewise.
1082 (bpstat_stop_status): Likewise.
1083 (bpstat_check_location): Move call to
1084 breakpoint_ops.breakpoint_hit to the top.
1085 (print_one_breakpoint_location): Call
1086 breakpoint_ops.print_one_detail if available.
1087 (breakpoint_address_match_range): New function.
1088 (breakpoint_location_address_match): Likewise.
1089 (breakpoint_locations_match): Compare the length field of the
1090 locations too.
1091 (hw_breakpoint_used_count): Count resources used by all locations
1092 in a breakpoint, and use breakpoint_ops.resources_needed if
1093 available.
1094 (breakpoint_hit_ranged_breakpoint): New function.
1095 (resources_needed_ranged_breakpoint): Likewise.
1096 (print_it_ranged_breakpoint): Likewise.
1097 (print_one_ranged_breakpoint): Likewise.
1098 (print_one_detail_ranged_breakpoint): Likewise.
1099 (print_mention_ranged_breakpoint): Likewise.
1100 (print_recreate_ranged_breakpoint): Likewise.
1101 (ranged_breakpoint_ops): New structure.
1102 (find_breakpoint_range_end): New function.
1103 (break_range_command): Likewise.
1104 (delete_breakpoint): Free addr_string_range_end.
1105 (update_breakpoint_locations): Add SALS_END argument. Update
1106 all callers. Calculate breakpoint length if a non-zero SALS_END
1107 is given. Call breakpoint_locations_match instead of
1108 breakpoint_address_match.
1109 (reset_breakpoint): Find SaL of the end of the range if B is a
1110 ranged breakpoint.
1111 (_initialize_breakpoint): Register break-range command.
1112 * defs.h (print_core_address): Add function prototype.
1113 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1114 function.
1115 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1116 (ppc_linux_remove_hw_breakpoint): Likewise.
1117 (_initialize_ppc_linux_nat): Initialize
1118 to_ranged_break_num_registers.
1119 * target.c (update_current_target): Add comment about
1120 to_ranged_break_num_registers.
1121 (target_ranged_break_num_registers): New function.
1122 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1123 New method.
1124 (target_ranged_break_num_registers): Add function prototype.
1125 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1126 * utils.c (print_core_address): ... here.
1127
1128 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1129
1130 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1131 variable compiler warning.
1132
1133 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1134
1135 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1136 code from here ...
1137 (re_set_breakpoint): ... to here ...
1138 (addr_string_to_sals): ... and here.
1139
1140 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1141
1142 * Makefile.in (SFILES): Add missing C sources.
1143 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1144 Add missing headers.
1145
1146 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1147
1148 * .gitignore: New file.
1149
1150 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1151
1152 * NEWS: Mention new cfi device simulation.
1153
1154 2011-03-29 Tom Tromey <tromey@redhat.com>
1155
1156 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1157 otherwise anonymous types.
1158 (dwarf2_name): Likewise.
1159 * valops.c (value_struct_elt_for_reference): Refine artificial
1160 type logic. Call error if j==-1.
1161
1162 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1163
1164 Fix false GCC warning.
1165 * infcall.c (find_function_addr): Initialize funaddr.
1166
1167 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1168
1169 Fix mingw compilation with --enable-targets=all.
1170 * remote-mips.c (gdb_usleep.h): Include header.
1171 (mips_enter_debug): Use gdb_usleep instead of sleep.
1172
1173 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1174
1175 Support resolution of STT_GNU_IFUNC via breakpoints.
1176 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1177 bp_gnu_ifunc_resolver_return.
1178 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1179 the loop. Support bp_gnu_ifunc_resolver and
1180 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1181 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1182 breakpoints.
1183 (bptype_string, print_one_breakpoint_location): Support
1184 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1185 (user_settable_breakpoint): Return true also for
1186 bp_gnu_ifunc_resolver.
1187 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1188 bp_gnu_ifunc_resolver_return.
1189 (set_breakpoint_location_function): New parameter explicit_loc,
1190 describe it. Call find_pc_partial_function_gnu_ifunc with new
1191 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1192 EXPLICIT_LOC is not set.
1193 (set_raw_breakpoint): Set EXPLICIT_LOC for
1194 set_breakpoint_location_function.
1195 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1196 set_breakpoint_location_function.
1197 (mention): Support bp_gnu_ifunc_resolver and
1198 bp_gnu_ifunc_resolver_return.
1199 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1200 set_breakpoint_location_function.
1201 (update_breakpoint_locations): Remove static.
1202 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1203 bp_gnu_ifunc_resolver_return.
1204 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1205 bp_gnu_ifunc_resolver_return.
1206 (update_breakpoint_locations): New declaration.
1207 * elfread.c: Include gdbthread.h and regcache.h.
1208 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1209 functions.
1210 (elf_gnu_ifunc_fns): Install them.
1211 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1212 (stub_gnu_ifunc_resolver_return_stop): New functions.
1213 (stub_gnu_ifunc_fns): Install them.
1214 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1215 and gnu_ifunc_resolver_return_stop.
1216 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1217
1218 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1219
1220 STT_GNU_IFUNC reader implementation.
1221 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1222 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1223 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1224 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1225 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1226 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1227 (elf_gnu_ifunc_resolve_addr): New.
1228 (elf_symfile_read): Call elf_rel_plt_read.
1229 (elf_gnu_ifunc_fns): New.
1230 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1231 Install elf_gnu_ifunc_fns.
1232 * infcall.c (find_function_return_type): New function.
1233 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1234 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1235 (stub_gnu_ifunc_resolve_name): New functions.
1236 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1237 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1238 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1239
1240 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 Code cleanup for later STT_GNU_IFUNC support.
1243 * infcall.c (find_function_addr): Remove variable code, use explicit
1244 dereferences for it. Move VALUE_TYPE initialization later.
1245
1246 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1247
1248 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1249 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1250 (clear_pc_function_cache): Clear it.
1251 (find_pc_partial_function): Rename to ...
1252 (find_pc_partial_function_gnu_ifunc): ... this function. New
1253 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1254 (find_pc_partial_function): New wrapper for this function.
1255 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1256
1257 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1258
1259 GDB internal type support for STT_GNU_IFUNC.
1260 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1261 (elf_symtab_read): Set mst_text_gnu_ifunc for
1262 BSF_GNU_INDIRECT_FUNCTION.
1263 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1264 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1265 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1266 nodebug_got_plt_symbol.
1267 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1268 (TYPE_GNU_IFUNC): New.
1269 (struct main_type): New field flag_gnu_ifunc.
1270 (struct builtin_type): New field builtin_func_func.
1271 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1272 nodebug_got_plt_symbol.
1273 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1274 (in_gnu_ifunc_stub): New.
1275 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1276 mst_text_gnu_ifunc.
1277 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1278 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1279 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1280 in_gnu_ifunc_stub.
1281 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1282 * symtab.c (search_symbols): Likewise.
1283 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1284 and mst_slot_got_plt.
1285 (in_gnu_ifunc_stub): New declaration.
1286
1287 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 Support a ring of related breakpoints.
1290 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1291 other functions, add gdb_assert.
1292 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1293 watchpoint_del_at_next_stop.
1294 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1295 (bpstat_stop_status): Handle ring in related_breakpoint.
1296 (set_raw_breakpoint_without_location): Initialize ring in
1297 related_breakpoint.
1298 (delete_breakpoint): Handle ring in related_breakpoint, use
1299 watchpoint_del_at_next_stop.
1300 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1301
1302 2011-03-28 Tom Tromey <tromey@redhat.com>
1303
1304 PR symtab/12441:
1305 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1306 with `language_minimal'.
1307
1308 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1309
1310 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1311 instead of checking for STT_ARM_TFUNC symbol type.
1312
1313 2011-03-25 Tom Tromey <tromey@redhat.com>
1314
1315 * linespec.c (symbol_found): Restore line-based result for
1316 non-LOC_LABEL symbols.
1317
1318 2011-03-25 Kai Tietz <ktietz@redhat.com>
1319
1320 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1321 instead of strcmp for comparison.
1322 (tui_source_is_displayed): Likewise.
1323 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1324
1325 2011-03-24 Mark Wielaard <mjw@redhat.com>
1326
1327 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1328 complaint.
1329 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1330 (find_partial_die_in_comp_unit): Likewise in comment.
1331 (read_attribute_value): Likewise.
1332 (lookup_die_type): Likewise.
1333 (dwarf_form_name): Likewise.
1334 (dump_die_shallow): Likewise.
1335 (follow_die_ref_or_sig): Likewise.
1336
1337 2011-03-24 Tom Tromey <tromey@redhat.com>
1338
1339 PR breakpoints/11816:
1340 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1341 (decode_compound): Update.
1342 (find_function_symbol): New function.
1343 (decode_dollar): Update.
1344 (decode_label): Add 'function_symbol' parameter. Handle
1345 function-relative labels.
1346 (decode_variable): Update.
1347 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1348 not its line. Set `special_display' and canonical name for
1349 labels.
1350
1351 2011-03-24 Tom Tromey <tromey@redhat.com>
1352
1353 * linespec.h (struct linespec_result) <special_display>: New
1354 field.
1355 * breakpoint.h (struct breakpoint) <display_canonical>: New
1356 field.
1357 * breakpoint.c (print_breakpoint_location): Respect
1358 display_canonical.
1359 (create_breakpoint_sal): Add 'display_canonical' parameter.
1360 (create_breakpoints_sal): Update.
1361 (create_breakpoint): Update.
1362
1363 2011-03-24 Tom Tromey <tromey@redhat.com>
1364
1365 * symtab.c (decode_line_spec): Update.
1366 * linespec.c (build_canonical_line_spec): Change type of
1367 'canonical'.
1368 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1369 (find_method, decode_all_digits, decode_dollar, decode_label)
1370 (symbol_found): Likewise.
1371 (init_linespec_result): New function.
1372 * breakpoint.c (struct captured_parse_breakpoint_args)
1373 <canonical_p>: New field, replaces addr_string_p.
1374 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1375 'addr_string'.
1376 (parse_breakpoint_sals): Likewise.
1377 (do_captured_parse_breakpoint): Update.
1378 (create_breakpoint): Use struct linespec_result.
1379 (until_break_command): Update.
1380 (breakpoint_re_set_one): Update.
1381 (decode_line_spec_1): Update.
1382 * linespec.h (struct linespec_result): New.
1383 (init_linespec_result): Declare.
1384
1385 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1386
1387 * regcache.c (regcache_raw_read): If the target didn't supply a
1388 given raw register, mark it as unavailable.
1389
1390 2011-03-23 Kai Tietz <ktietz@redhat.com>
1391
1392 * breakpoint.c (clear_command): Use filename_cmp
1393 instead of strcmp for comparison.
1394 * buildsym.c (watch_main_source_file_lossage): Likewise.
1395 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1396 checking just for slash.
1397 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1398 strrchr and filename_cmp instead of strcmp for filenames.
1399 (add_old_header_file): Use filename_cmp
1400 instead of strcmp for comparison.
1401 * exec.c (exec_set_section_address): Likewise.
1402 * macrotab.c (macro_lookup_inclusion): Likewise.
1403 (macro_lookup_inclusion): Likewise.
1404 * elfread.c (_initialize_elfread): Likewise.
1405 (elfstab_offset_sections): Likewise.
1406 (elfstab_offset_sections): Use lbasename instead of
1407 strrchr.
1408 * mdebugread.c (parse_partial_symbols): Likewise.
1409 (arse_partial_symbols): Use filename_(n)cmp instead of
1410 str(n)cmp for comparison.
1411 * minsyms.c (lookup_minimal_symbol): Likewise.
1412 * psymtab.c (read_psymtabs_with_filename): Likewise.
1413 * solib.c (solib_read_symbols): Likewise.
1414 (reload_shared_libraries_1): Likewise.
1415 * symmisc.c (maintenance_print_symbols): Likewise.
1416 * symfile.c (separate_debug_file_exists): Likewise.
1417 (reread_symbols): Likewise.
1418 (find_separate_debug_file_by_debuglink): Likewise.
1419 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1420 * source.c (add_path): Likewise.
1421 * symtab.c (filename_seen): Likewise.
1422 (file_matches): Likewise.
1423 (print_symbol_info): Likewise.
1424 (maybe_add_partial_symtab_filename): Likewise.
1425 (make_source_files_completion_list): Likewise.
1426 * xml-syscall.c (init_sysinfo): Likewise.
1427 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1428 IS_DIR_SEPARATOR for checking for trailing path separator.
1429
1430 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1431
1432 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1433 label abort_expression.
1434 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1435 DWARF_VALUE_OPTIMIZED_OUT.
1436
1437 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 Code cleanup.
1440 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1441 to linkage_name. Invert its value. Update the function comment.
1442 (c_type_print_varspec_suffix): Invert it at the caller.
1443 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1444
1445 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1446
1447 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1448 errors when reading the `stop_pc'.
1449 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1450 get_frame_pc.
1451
1452 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1453
1454 * NEWS: Document gdb.Write stream keyword.
1455
1456 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1457
1458 Revert:
1459 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1461 (dwarf2_add_field): Fix new_field->accessibility for
1462 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1463
1464 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1465
1466 PR python/12183
1467
1468 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1469 other error classes. Do not print stack trace.
1470
1471 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1474 (dwarf2_add_field): Fix new_field->accessibility for
1475 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1476
1477 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1478
1479 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1480 encountering a load via a non-SP register.
1481
1482 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1483
1484 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1485 field in returned unwinder.
1486
1487 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1490
1491 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1492
1493 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1494 of xmalloc.
1495
1496 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1497
1498 * frame.c (frame_unwind_register): Throw an error if unwinding the
1499 register failed.
1500 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1501 an unwind stop reason.
1502 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1503 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1504 UNWIND_UNAVAILABLE>: New.
1505 * inline-frame.c (inline_frame_unwind): Install
1506 default_frame_unwind_stop_reason.
1507 * frame-unwind.c: Include "exceptions.h".
1508 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1509 (default_frame_unwind_stop_reason): New.
1510 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1511 (default_frame_unwind_stop_reason): Declare.
1512 (struct frame_unwind) <stop_reason>: New function pointer.
1513
1514 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1515 * dwarf2-frame.c: Include exceptions.h.
1516 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1517 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1518 computing the CFA. If such an error was thrown, set
1519 unavailable_retaddr.
1520 (dwarf2_frame_unwind_stop_reason): New.
1521 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1522 unavailable.
1523 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1524 (dwarf2_signal_frame_unwind): Ditto.
1525
1526 * amd64-tdep.c: Include "exceptions.h".
1527 (struct amd64_frame_cache): New field "base_p".
1528 (amd64_init_frame_cache): Clear it.
1529 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1530 Avoid reading registers with functions that throw if the register
1531 is not necessary to compute the frame base.
1532 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1533 swallowing NOT_AVAILABLE_ERROR.
1534 (amd64_frame_unwind_stop_reason): New.
1535 (amd64_frame_this_id): Don't build a frame id if the frame base
1536 was unavailable.
1537 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1538 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1539 base_p if the frame base was computable.
1540 (amd64_sigtramp_frame_unwind_stop_reason): New.
1541 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1542 frame base was unavailable.
1543 (amd64_sigtramp_frame_unwind): Install
1544 amd64_sigtramp_frame_unwind_stop_reason.
1545 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1546 base_p if the frame base was computable.
1547 (amd64_epilogue_frame_unwind_stop_reason): New.
1548 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1549 frame base was unavailable.
1550 (amd64_epilogue_frame_unwind): Install
1551 amd64_epilogue_frame_unwind_stop_reason.
1552 * i386-tdep.c: Include "exceptions.h".
1553 (struct i386_frame_cache): New field "base_p".
1554 (i386_init_frame_cache): Clear it.
1555 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1556 Avoid reading registers with functions that throw if the register
1557 is not necessary to compute the frame base.
1558 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1559 swallowing NOT_AVAILABLE_ERROR.
1560 (i386_frame_unwind_stop_reason): New.
1561 (i386_frame_this_id): Don't build a frame id if the frame base was
1562 unavailable.
1563 (i386_frame_prev_register): Handle unavailable SP.
1564 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1565 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1566 base_p if the frame base was computable.
1567 (i386_epilogue_frame_unwind_stop_reason): New.
1568 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1569 base was unavailable.
1570 (i386_epilogue_frame_unwind): Install
1571 i386_epilogue_frame_unwind_stop_reason.
1572 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1573 base_p if the frame base was computable.
1574 (i386_sigtramp_frame_unwind_stop_reason): New.
1575 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1576 base was unavailable.
1577 (i386_sigtramp_frame_unwind): Install
1578 i386_sigtramp_frame_unwind_stop_reason.
1579 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1580 type's size, not the register's.
1581 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1582
1583 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1584 default_frame_unwind_stop_reason.
1585 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1586 (alpha_heuristic_frame_unwind): Ditto.
1587 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1588 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1589 * avr-tdep.c (avr_frame_unwind): Ditto.
1590 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1591 Ditto.
1592 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1593 * frv-tdep.c (frv_frame_unwind): Ditto.
1594 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1595 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1596 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1597 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1598 (hppa_stub_frame_unwind): Ditto.
1599 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1600 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1601 (ia64_libunwind_frame_unwind)
1602 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1603 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1604 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1605 * m32c-tdep.c (m32c_unwind): Ditto.
1606 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1607 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1608 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1609 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1610 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1611 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1612 * mep-tdep.c (mep_frame_unwind): Ditto.
1613 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1614 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1615 (mips_stub_frame_unwind): Ditto.
1616 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1617 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1618 * mt-tdep.c (mt_frame_unwind): Ditto.
1619 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1620 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1621 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1622 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1623 (s390_sigtramp_frame_unwind): Ditto.
1624 * score-tdep.c (score_prologue_unwind): Ditto.
1625 * sh-tdep.c (sh_frame_unwind): Ditto.
1626 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1627 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1628 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1629 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1630 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1631 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1632 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1633 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1634 (sparc64obsd_trapframe_unwind): Ditto.
1635 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1636 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1637 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1638 * v850-tdep.c (v850_frame_unwind): Ditto.
1639 * vax-tdep.c (vax_frame_unwind): Ditto.
1640 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1641 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1642 * xtensa-tdep.c (xtensa_unwind): Ditto.
1643
1644 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1645
1646 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1647 there's always a frame. Use get_frame_pc_if_available instead of
1648 get_frame_pc, and if there's no PC available, don't look up a
1649 symtab.
1650
1651 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1652
1653 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1654 unavailable PC.
1655
1656 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1657
1658 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1659 gracefully.
1660
1661 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1662
1663 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1664 * frame.c (frame_unwind_caller_pc_if_available): New.
1665 * stack.c (frame_info): Handle unavailable PC.
1666
1667 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1668
1669 * frame.c (frame_unwind_pc): Rename to ...
1670 (frame_unwind_pc_if_available): ... this. New `pc' output
1671 parameter. Change return type to int. Gracefully handle
1672 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1673 happened, or 1 otherwise.
1674 (frame_unwind_pc): Reimplement on top of
1675 frame_unwind_pc_if_available.
1676 (get_frame_func): Rename to ...
1677 (get_frame_func_if_available): New `pc' output parameter. Change
1678 return type to int. Gracefully handle the PC not being available.
1679 (get_frame_func): Reimplement on top of
1680 get_frame_func_if_available.
1681 (select_frame): Handle the PC being unavailable.
1682 (get_prev_frame): Handle the PC being unavailable.
1683 (get_frame_pc_if_available): New.
1684 (get_frame_address_in_block_if_available): New.
1685 (find_frame_sal): Handle the frame PC not being available.
1686 * frame.h (get_frame_pc_if_available): Declare.
1687 (get_frame_address_in_block_if_available): Declare.
1688 (get_frame_func_if_available): Declare.
1689 * stack.c (print_frame_info): Handle the PC being unavailable.
1690 (find_frame_funname): Ditto.
1691 (print_frame): Handle the PC being unavailable.
1692 (get_frame_language): Ditto.
1693 * blockframe.c (get_frame_block): Ditto.
1694 * macroscope.c (default_macro_scope): Ditto.
1695 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1696
1697 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1698
1699 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1700 NOT_AVAILABLE_ERROR when evaluating the location expression.
1701
1702 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1703
1704 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1705 returning that the register piece is unavailable/optimized out.
1706 (write_pieced_value): Handle get_frame_register_bytes returning
1707 that the register piece is unavailable/optimized out when doing a
1708 read-modify write of a bitfield.
1709 * findvar.c (value_from_register): Handle get_frame_register_bytes
1710 returning that the register piece is unavailable/optimized out.
1711 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1712 and `unavailablep'. Throw error on bad debug info. Use
1713 frame_register instead of frame_register_read, to fill in the new
1714 arguments.
1715 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1716 and `unavailablep'.
1717 * valops.c: (value_assign): Adjust, and handle
1718 get_frame_register_bytes failing.
1719 * spu-tdep.c: Include exceptions.h.
1720 (spu_software_single_step): Adjust, and handle
1721 get_frame_register_bytes failing.
1722 (spu_get_longjmp_target): Ditto.
1723 * gdbarch.sh (register_to_value): Change to return int. New
1724 parameters `optimizedp' and `unavailablep'.
1725 * gdbarch.h, gdbarch.c: Regenerate.
1726 * i386-tdep.c (i386_register_to_value): Adjust to new
1727 gdbarch_register_to_value interface.
1728 * i387-tdep.c (i387_register_to_value): Ditto.
1729 * i387-tdep.h (i387_register_to_value): Ditto.
1730 * alpha-tdep.c (alpha_register_to_value): Ditto.
1731 * ia64-tdep.c (ia64_register_to_value): Ditto.
1732 * m68k-tdep.c (m68k_register_to_value): Ditto.
1733 * mips-tdep.c (mips_register_to_value): Ditto.
1734 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1735
1736 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1737
1738 * findvar.c (value_of_register): Mark the value as unavailable, if
1739 the register is unavailable.
1740 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1741 (frame_register): New `unavailablep' parameter.
1742 (frame_register_read): Update comment.
1743 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1744 Set it if the register is unavailable. If the register is
1745 unavailable, clear the output buffer.
1746 (frame_register): New `unavailablep' parameter. Pass it down.
1747 (frame_unwind_register): Adjust.
1748 (put_frame_register): Adjust.
1749 (frame_register_read): Adjust. Also return false if the register
1750 is not available.
1751 (frame_register_unwind_location): Adjust.
1752 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1753 is unavailable, mark the value accordingly.
1754 * stack.c (frame_info): Handle unavailable registers.
1755
1756 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1757
1758 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1759 simplify, using regcache_cooked_read.
1760
1761 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1762
1763 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1764 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1765 (regcache_raw_read_unsigned, regcache_raw_read_part)
1766 (regcache_cooked_read, regcache_cooked_read_signed)
1767 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1768 (regcache_cooked_read_ftype): Change return to enum
1769 register_status.
1770 * regcache.c: Include exceptions.h
1771 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1772 (do_cooked_read): Change return to enum register_status. Always
1773 forward to regcache_cooked_read.
1774 (regcache_raw_read): Change return to enum register_status. If
1775 the register is not REG_VALID, memset the buffer. Return the
1776 register's status.
1777 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1778 return the register's status.
1779 (regcache_raw_read_unsigned): Ditto.
1780 (regcache_cooked_read): Change return to enum register_status.
1781 Assert that with read-only regcaches, the register's status must
1782 be known. If the regcache is read-only, and the register is not
1783 REG_VALID, memset the buffer. Return the register's status.
1784 (regcache_cooked_read_signed): Change return to enum
1785 register_status. Handle non-REG_VALID registers and return the
1786 register's status.
1787 (regcache_cooked_read_unsigned): Change return to enum
1788 register_status. Handle non-REG_VALID registers and return the
1789 register's status.
1790 (regcache_xfer_part, regcache_raw_read_part)
1791 (regcache_cooked_read_part): Change return to enum
1792 register_status. Return the register's status.
1793 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1794 unavailable.
1795 (regcache_dump): Handle unavailable cooked registers.
1796 * frame.c (do_frame_register_read): Adjust interface to match
1797 regcache_cooked_read_ftype.
1798 * gdbarch.sh (pseudo_register_read): Change return to enum
1799 register_status.
1800 * gdbarch.h, gdbarch.c: Regenerate.
1801
1802 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1803 register_status.
1804 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1805 register_status. If reading a raw register indicates the raw
1806 register is not valid, return the raw register's status,
1807 otherwise, return REG_VALID.
1808 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1809 register_status. Handle non-REG_VALID raw registers and return
1810 the register's status.
1811 * arm-tdep.c (arm_neon_quad_read)
1812 (arm_pseudo_read): Change return to enum register_status. Handle
1813 non-REG_VALID raw registers and return the register's status.
1814 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1815 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1816 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1817 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1818 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1819 register_status.
1820 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1821 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1822 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1823 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1824 (m32c_pseudo_register_read): Change return to enum
1825 register_status. Adjust.
1826 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1827 enum register_status. Return the register's status.
1828 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1829 register_status. Return the register's status.
1830 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1831 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1832 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1833 * rs6000-tdep.c (move_ev_register_func): New typedef.
1834 (e500_move_ev_register): Use it. Change return to enum
1835 register_status. Return the register's status.
1836 (do_regcache_raw_read): New function.
1837 (do_regcache_raw_write): New function.
1838 (e500_pseudo_register_read): Change return to enum
1839 register_status. Return the register's status. Use
1840 do_regcache_raw_read.
1841 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1842 (dfp_pseudo_register_read): Change return to enum register_status.
1843 Return the register's status.
1844 (vsx_pseudo_register_read): Ditto.
1845 (efpr_pseudo_register_read): Ditto.
1846 (rs6000_pseudo_register_read): Ditto.
1847 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1848 register_status. Return the register's status.
1849 * sh64-tdep.c (pseudo_register_read_portions): New function.
1850 (sh64_pseudo_register_read): Change return to enum
1851 register_status. Use pseudo_register_read_portions. Return the
1852 register's status.
1853 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1854 register_status. Return the register's status.
1855 * sh-tdep.c (pseudo_register_read_portions): New function.
1856 (sh_pseudo_register_read): Change return to enum register_status.
1857 Use pseudo_register_read_portions. Return the register's status.
1858 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1859 enum register_status. Return the register's status.
1860 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1861 * spu-tdep.c (spu_pseudo_register_read_spu)
1862 (spu_pseudo_register_read): Ditto.
1863 * xtensa-tdep.c (xtensa_register_read_masked)
1864 (xtensa_pseudo_register_read): Ditto.
1865 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1866
1867 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1868
1869 * python/py-value.c (valpy_getitem): Fix formatting of error function
1870 call.
1871
1872 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1873
1874 ARI fixes: Add missing internationalization markups throughout
1875 C source files.
1876 * darwin-nat-info.c: Ditto.
1877 * record.c: Ditto.
1878 * remote.c: Ditto.
1879 * mi/mi-main.c: Ditto.
1880
1881 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1882
1883 ARI fixes: Add missing internationalization markups throughout
1884 yacc files.
1885 * c-exp.y: Ditto.
1886 * cp-name-parser.y: Ditto.
1887 * f-exp.y: Ditto.
1888 * m2-exp.y: Ditto.
1889 * objc-exp.y: Ditto.
1890 * p-exp.y: Ditto.
1891
1892 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1893
1894 ARI fixes: Messages should have no trailing new lines.
1895 * darwin-nat.c (mach_check_error): Remove trailing new line from
1896 warning function call message.
1897 * record.c (bfdcore_read): Idem for error call.
1898
1899 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1900
1901 * common/signals.c (target_signal_from_host): Add _ markup to error
1902 function call message.
1903 (target_signal_to_host): Add _ markup and remove trailing new line
1904 from warning call message.
1905 (target_signal_from_command): Add _ markup to error function call
1906 message.
1907
1908 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1909
1910 PR python/12149
1911
1912 * python/python.c (gdbpy_write): Accept a stream argument and
1913 operate to the appropriate stream.
1914 (gdbpy_flush): Likewise.
1915 (_initialize_python): Add stream constants.
1916 (finish_python_initialization): Add GdbOutputErrorFile class.
1917
1918 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1919
1920 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1921
1922 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1923
1924 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1925 to store_signed_integer. Add debug message when relocating CALL
1926 instructions. Fix formatting of debug message.
1927 * i386-tdep.c (i386_relocate_instruction): Ditto.
1928
1929 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1930
1931 * target.h (struct target_ops): Remove to_lookup_symbol field.
1932 (target_lookup_symbol): Delete macro.
1933 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1934 (update_current_target, setup_target_debug): Remove handling
1935 of to_lookup_symbol target_ops field.
1936 * ada-tasks.c (get_known_tasks_addr): Remove use of
1937 target_lookup_symbol.
1938 * coffread.c (coff_symtab_read): Likewise.
1939 * dbxread.c (read_dbx_symtab): Ditto.
1940
1941 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1942
1943 PR gdb/12116:
1944 * configure.ac: Add getthrds declaration check.
1945 * configure, config.in: Regenerate.
1946 * aix-thread.c (getthrds): Declare only if not already declared
1947 in procinfo.h. More declaration out of get_signaled_thread to
1948 global scope.
1949
1950 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1951
1952 * python/py-symtab.c: Populate symtab_object_methods,
1953 sal_object_methods.
1954 (stpy_is_valid): New function.
1955 (salpy_is_valid): Ditto.
1956 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1957 (sympy_is_valid): New function.
1958 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1959 (objfpy_is_valid): New function.
1960 * python/py-inferior.c: Populate inferior_object_methods.
1961 (infpy_is_valid): New function.
1962 * python/py-infthread.c: Populate thread_object_methods.
1963 (thpy_is_valid): New function.
1964 * python/py-block.c: Declare block_object_methods. Populate. Declare
1965 block_iterator_object_methods. Populate.
1966 (blpy_is_valid): New function.
1967 (blpy_iter_is_valid): Ditto.
1968
1969 2011-03-16 Keith Seitz <keiths@redhat.com>
1970
1971 * linespec.c (find_methods): Canonicalize NAME before looking
1972 up the symbol.
1973 (name_end): New function.
1974 (keep_name_info): New function.
1975 (decode_line_1): Use keep_name_info.
1976 (decode_compound): Likewise.
1977 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1978 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1979
1980 PR c++/12273
1981 * linespec.c (locate_first_half): Keep overload information, too.
1982 (decode_compound): Use a string to represent break characters
1983 to escape the loop.
1984 If P points to a break character, do not increment it.
1985 For C++ and Java, keep overload information and relevant keywords.
1986 If we cannot find a symbol, search the minimal symbols.
1987
1988 PR c++/11734
1989 * linespec.c (decode_compound): Rename SAVED_ARG to
1990 THE_REAL_SAVED_ARG.
1991 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1992 single-quotes.
1993 Pass a valid block to lookup_symbol.
1994 (lookup_prefix_sym): Likewise.
1995 (find_method): Construct search name based on SYM_CLASS instead
1996 of SAVED_ARG.
1997 * psymtab.c (lookup_partial_symbol): Add language parameter.
1998 (lookup_symbol_aux_psymtabs): Likewise.
1999 Don't assume that the psymtab we found was the right one. Search
2000 for the desired symbol in the symtab to be certain.
2001 (psymtab_search_name): New function.
2002 (lookup_partial_symbol): Use psymtab_search_name.
2003 Add language parameter.
2004 (read_symtabs_for_function): Add language parameter and pass to
2005 lookup_partial_symbol.
2006 (find_symbol_file_from_partial): Likewise.
2007
2008 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2009
2010 PR gdb/12528
2011 * dwarf2read.c (noop_record_line): New function.
2012 (dwarf_decode_lines): Ignore line tables for GCd functions.
2013
2014 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2015
2016 Fix ARI warnings about new lines at the end of messages, which
2017 are unneeded as there is a new line added at the end of the message
2018 automatically.
2019 * darwin-nat.c (darwin_stop_inferior): Ditto.
2020 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2021 * dfp.c (decimal_to_number): Ditto.
2022 * exec.c (print_section_info): Ditto.
2023 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2024 * osdata.c (get_osdata): Ditto.
2025 * record.c (bfdcore_write): Ditto.
2026 * remote-mips.c (mips_readchar): Ditto.
2027 * remote.c (read_ptid): Ditto.
2028 * ser-mingw.c (ser_windows_raw): Ditto.
2029 * tracepoint.c (add_local_symbols): Ditto.
2030 * windows-nat.c (fake_create_process): Ditto.
2031
2032 2011-03-16 Tom Tromey <tromey@redhat.com>
2033
2034 * tracepoint.c (stop_tracing): Don't declare.
2035 * event-top.c (after_char_processing_hook): Add `(void)'.
2036
2037 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2038
2039 * NEWS: Add Parameter sub-classing description.
2040
2041 2011-03-16 Kai Tietz <ktietz@redhat.com>
2042
2043 * MAINTAINERS: Update my e-mail address.
2044
2045 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2046
2047 * MAINTAINERS: Add myself for write after approval privileges.
2048
2049 2011-03-15 Michael Snyder <msnyder@vmware.com>
2050
2051 * frame.c (find_frame_sal): Assert sym is not null.
2052
2053 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2054
2055 * objc-lang.c (selectors_info): Check strchr for null result.
2056
2057 * stabsread.c (define_symbol): Guard against bad stabstring input.
2058
2059 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2060
2061 Remove trailing spaces and tabulations from pascal language
2062 support sources.
2063 p-exp.y: Ditto.
2064 p-lang.c: Ditto.
2065 p-lang.h: Ditto.
2066 p-valprint.c: Ditto.
2067
2068 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
2070 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2071 than LOW. Comment it.
2072 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2073 HIGHPC not strictly higher than LOWPC.
2074
2075 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2076
2077 Fix formatting of function declarations returning a pointer in
2078 previous commit.
2079 * varobj.c (varobj_add_child): Ditto.
2080 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2081 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2082
2083 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2084
2085 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2086 for the "generic" vector ABI used with GCC 4.3 and later.
2087 (ppc64_sysv_abi_return_value): Likewise.
2088
2089 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2090
2091 * infcall.c (call_function_by_hand): Function return value is
2092 always a non_lval, even when using struct_return.
2093
2094 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2095
2096 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2097 (map_display_numbers): New.
2098 (do_delete_display): New.
2099 (undisplay_command): Use map_display_numbers.
2100 (do_enable_disable_display): New.
2101 (enable_disable_display_command): New function.
2102 (enable_display): Delete.
2103 (enable_display_command): New.
2104 (disable_display_command): Reimplement.
2105 (_initialize_printcmd): Adjust "enable display" command to use
2106 `enable_display_command' as callback.
2107
2108 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2109
2110 * NEWS: Add Python breakpoint 'stop' operation.
2111
2112 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2113
2114 * NEWS: Delete duplicate entry. Fix typo.
2115
2116 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2117
2118 Fix ARI warning about function names in first column.
2119 Put prototype declaration on same line as return type.
2120 * objc-exp.y: Ditto.
2121 * p-exp.y: Ditto.
2122 * python/py-stopevent.h: Ditto.
2123 For long function names, split parameters to
2124 allow function name on same line as return type.
2125 * solib-pa64.c: Ditto.
2126 * varobj.c: Ditto.
2127 * varobj.h: Ditto.
2128 For long function declaration, use single line.
2129 * hppa-tdep.h: Ditto.
2130 * inferior.h: Ditto.
2131
2132 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2133
2134 * python/python.h: Declare gdbpy_should_stop and
2135 gdbpy_breakpoint_has_py_cond.
2136 * python/python.c: Add python.h to includes. Remove python.h from
2137 HAVE_PYTHON definition
2138 (gdbpy_should_stop): New dummy function.
2139 (gdbpy_breakpoint_has_py_cond): New dummy function.
2140 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2141 sub-classing capabilities.
2142 (gdbpy_should_stop): New function.
2143 (gdbpy_breakpoint_has_py_cond): New function.
2144 (local_setattro): New function.
2145 * breakpoint.c (condition_command): Add check for Python 'stop'
2146 operation.
2147 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2148 operation function as part of stop/continue tests.
2149
2150 2011-03-14 Tom Tromey <tromey@redhat.com>
2151
2152 PR gdb/12576:
2153 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2154 (needs_frame_dwarf_call): Likewise.
2155
2156 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2157
2158 Fix ARI warning about functions without parameters that do not
2159 use (void).
2160 * breakpoint.c (all_tracepoints): Replace () by (void).
2161 * f-exp.y (match_string_literal): Ditto.
2162 (yylex): Ditto.
2163 * m2-exp.y (yylex): Ditto.
2164 * mep-tdep.c (current_me_module): Ditto.
2165 (current_options): Ditto.
2166 (current_cop_data_bus_width): Ditto.
2167 (current_cr_names): Ditto.
2168 (current_cr_is_float): Ditto.
2169 (current_ccr_names): Ditto.
2170 * objc-exp.y (yylex): Ditto.
2171 * p-exp.y (yylex): Ditto.
2172 * remote.c (send_interrupt_sequence): Ditto.
2173 * tracepoint.c (current_trace_status): Ditto.
2174 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2175 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2176
2177 2011-03-11 Michael Snyder <msnyder@vmware.com>
2178
2179 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2180 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2181 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2182 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2183 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2184
2185 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2186 (delete_async_event_handler): Ditto.
2187
2188 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2189
2190 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2191
2192 * top.c (set_verbose): Assert showcmd was found.
2193
2194 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2195
2196 * xtensa-tdep.c (warning_once): Correct style issues.
2197
2198 2011-03-11 Yao Qi <yao@codesourcery.com>
2199
2200 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2201
2202 2011-03-11 Andreas Schwab <schwab@redhat.com>
2203
2204 * common/aclocal.m4: Remove.
2205
2206 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2207
2208 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2209 (xtensa_write_register, xtensa_read_register): Likewise.
2210 (xtensa_hextochar): Removed.
2211 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2212
2213 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2214
2215 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2216 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2217 (xtensa_alloc_frame_cache): Add initialization for new fields.
2218 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2219 (warning_once): New function.
2220 (xtensa_insn_kind): New item c0opc_and.
2221 (call0_classify_opcode): Add the case for AND instruction.
2222 (call0_track_op): Change arguments. New local variable litbase.
2223 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2224 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2225 in the prologue.
2226 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2227 (call0_analyze_prologue): Update the comments. Change arguments.
2228 Add the variety of updates to handle extended prologues, which now can
2229 conduct dynamic stack adjustments.
2230 (call0_frame_cache): Likewise.
2231 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2232 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2233
2234 2011-03-10 Michael Snyder <msnyder@vmware.com>
2235
2236 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2237 (cmd_qtframe): Ditto.
2238 (cmd_qtbuffer): Ditto.
2239 (cmd_bigqtbuffer): Ditto.
2240
2241 2011-03-10 Tom Tromey <tromey@redhat.com>
2242
2243 * tracepoint.c (trace_actions_command): Update.
2244 * thread.c (thread_apply_command): Update.
2245 * reverse.c (delete_bookmark_command): Update.
2246 (bookmarks_info): Update.
2247 * printcmd.c (undisplay_command): Update.
2248 * memattr.c (mem_enable_command): Update.
2249 (mem_disable_command): Update.
2250 (mem_delete_command): Update.
2251 * inferior.c (detach_inferior_command): Update.
2252 (kill_inferior_command): Update.
2253 (remove_inferior_command): Update.
2254 * cli/cli-utils.h (struct get_number_or_range_state): New.
2255 (init_number_or_range): Declare.
2256 (get_number_or_range): Update.
2257 * cli/cli-utils.c (init_number_or_range): New function.
2258 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2259 static variables.
2260 (number_is_in_list): Update.
2261 * breakpoint.h (get_tracepoint_by_number): Update.
2262 * breakpoint.c (map_breakpoint_numbers): Update for change to
2263 get_number_or_range.
2264 (find_location_by_number): Use get_number, not
2265 get_number_or_range.
2266 (trace_pass_set_count): New function.
2267 (trace_pass_command): Update for change to get_number_or_range.
2268 Rework loop logic.
2269 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2270 'state' parameter.
2271
2272 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2273
2274 * python/py-param.c (add_setshow_generic): Add set/show callback
2275 parameters. Register Python object context.
2276 (get_show_value): New function.
2277 (get_set_value): New function.
2278 (call_doc_function): New function.
2279 (get_doc_string): Move behind get_show_value/get_set_value.
2280
2281 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2282
2283 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2284
2285 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2286
2287 * xtensa-tdep.c (xtensa_read_register): Add comment.
2288 (xtensa_write_register): Likewise.
2289 (xtensa_hextochar): Add comment and update to match coding conventions.
2290 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2291 (execute_l32e, execute_s32e, execute_code): Update comments.
2292 (xtensa_exception_handler_t): Update to match coding conventions.
2293 (xtensa_insn_kind): Likewise.
2294
2295 2011-03-09 Michael Snyder <msnyder@vmware.com>
2296
2297 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2298
2299 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2300
2301 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2302
2303 2011-03-09 Tom Tromey <tromey@redhat.com>
2304
2305 * thread.c (restore_selected_frame): Handle frame_level == -1.
2306 (make_cleanup_restore_current_thread): Use
2307 get_selected_frame_if_set.
2308 * frame.h (get_selected_frame_if_set): Declare.
2309 * frame.c (get_selected_frame_if_set): New function.
2310
2311 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2312
2313 * cli/cli-cmds.c (shell_escape): Use lbasename.
2314 * coffread.c (coff_start_symtab): Constify parameter.
2315 (complete_symtab): Constify `name' parameter.
2316 (coff_symtab_read): Constify `filestring' local.
2317 (coff_getfilename): Constify return and `result' local.
2318 Use lbasename.
2319 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2320 * linux-fork.c (info_checkpoints_command): Use lbasename.
2321 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2322 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2323 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2324 * procfs.c (procfs_make_note_section): Use lbasename.
2325 * tui/tui-io.c (printable_part): Constity return and parameter.
2326 Use lbasename.
2327 (print_filename): Constify parameters, and local `s'.
2328 (tui_rl_display_match_list): Constify local `temp'.
2329
2330 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 Revert:
2333 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2334 Fix DWARF-3+ DW_AT_accessibility default assumption.
2335 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2336 cu->header.version >= 3.
2337
2338 2011-03-09 Yao Qi <yao@codesourcery.com>
2339
2340 * common/Makefile.in: Remove.
2341 * common/configure: Remove.
2342 * common/configure.ac: Remove.
2343
2344 2011-03-09 Yao Qi <yao@codesourcery.com>
2345
2346 Revert:
2347 2011-02-11 Yao Qi <yao@codesourcery.com>
2348
2349 * common/Makefile.in: Add copyright header.
2350
2351 2011-02-11 Yao Qi <yao@codesourcery.com>
2352
2353 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2354 libcommon.a.
2355 * configure.ac: Add common to sub dir.
2356 * configure: Regenerate.
2357
2358 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2359
2360 * xtensa-tdep.c (call0_ret): New function.
2361 (xtensa_skip_prologue): Speed up analysis.
2362
2363 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2364
2365 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2366 while executing MI command -data-list-changed-registers.
2367
2368 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2369
2370 * xtensa-tdep.c (xtensa_read_register): New function.
2371 (xtensa_write_register): New function.
2372 (xtensa_find_register_by_name): New function.
2373 (xtensa_windowed_frame_cache): Update comments in type description.
2374 (xtensa_frame_cache): Likewise.
2375 (xtensa_window_interrupt_insn): New function.
2376 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2377 (xtensa_insn_kind): Add new instructions.
2378 (rwx_special_register): New function.
2379 (call0_classify_opcode): Add new instructions to the analysis.
2380 (a0_saved, a7_saved, a11_saved): New variables.
2381 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2382 (execute_l32e): New function.
2383 (execute_s32e): New function.
2384 (xtensa_exception_handler_t): New type.
2385 (execute_code): New function.
2386 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2387 analysis for Xtensa Window Exception handlers.
2388
2389 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2390
2391 * xtensa-tdep.c (TX_PS): New.
2392 (windowing_enabled): Update to count for Call0 ABI.
2393 (xtensa_hextochar): New.
2394 (xtensa_init_reggroups): Make algorithm generic.
2395 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2396
2397 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2398
2399 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2400
2401 2011-03-08 Michael Snyder <msnyder@vmware.com>
2402
2403 * i386-tdep.c (i386_follow_jump): Check return value of
2404 target_read_memory.
2405 (i386_analyze_struct_return): Ditto.
2406 (i386_skip_probe): Ditto.
2407 (i386_match_insn): Ditto.
2408 (i386_skip_noop): Ditto.
2409 (i386_analyze_frame_setup): Ditto.
2410 (i386_analyze_register_saves): Ditto.
2411 (i386_skip_prologue): Ditto.
2412 (i386_skip_main_prologue): Ditto.
2413
2414 * target.c (read_whatever_is_readable): Fix memory leak.
2415
2416 * i386-tdep.c (i386_process_record): Document fall through.
2417
2418 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2419
2420 Fix DWARF-3+ DW_AT_accessibility default assumption.
2421 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2422 cu->header.version >= 3.
2423
2424 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2425
2426 * remote.c (remote_check_symbols): Skip if the target has no
2427 execution.
2428
2429 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2430
2431 * target.c (read_whatever_is_readable): Reformat comment,
2432 with a minor typo fix. Minor reformatting of the code.
2433
2434 2011-03-08 Yao Qi <yao@codesourcery.com>
2435
2436 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2437 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2438 Use cached result instead of calling displaced_in_arm_mode again.
2439 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2440 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2441 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2442 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2443 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2444 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2445 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2446 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2447 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2448 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2449 (arm_catch_kernel_helper_return): Likewise.
2450 * gdb/arm-tdep.h : Update function declarations.
2451
2452 2011-03-07 Michael Snyder <msnyder@vmware.com>
2453
2454 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2455
2456 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2457
2458 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2459
2460 * elfread.c (elf_symtab_read): Stop memory leak.
2461
2462 * main.c (captured_main): Fix memory leak.
2463
2464 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2465
2466 * ada-lang.c (compare_names): Call is_name_suffix with string1
2467 instead of string2.
2468
2469 2011-03-07 Tom Tromey <tromey@redhat.com>
2470
2471 * xcoffread.c (xcoff_sym_fns): Update.
2472 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2473 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2474 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2475 (symbol_file_add_with_addrs_or_offsets): Likewise.
2476 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2477 * somread.c (som_sym_fns): Update.
2478 * psymtab.h (require_partial_symbols): Declare.
2479 * psymtab.c (require_partial_symbols): New function.
2480 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2481 (ALL_OBJFILE_PSYMTABS): Undef.
2482 (ALL_PSYMTABS): Move from psympriv.h.
2483 (lookup_partial_symtab, find_pc_sect_psymtab)
2484 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2485 (find_last_source_symtab_from_partial)
2486 (forget_cached_source_info_partial)
2487 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2488 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2489 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2490 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2491 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2492 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2493 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2494 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2495 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2496 psymtabs.
2497 * mipsread.c (ecoff_sym_fns): Update.
2498 * machoread.c (macho_sym_fns): Update.
2499 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2500 (read_psyms): New function.
2501 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2502 (elf_sym_fns_lazy_psyms): New global.
2503 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2504 dwarf2_build_psymtabs.
2505 * dbxread.c (aout_sym_fns): Update.
2506 * coffread.c (coff_sym_fns): Update.
2507
2508 2011-03-07 Tom Tromey <tromey@redhat.com>
2509
2510 * infrun.c (print_exited_reason): Include inferior id and pid in
2511 message.
2512
2513 2011-03-07 Tom Tromey <tromey@redhat.com>
2514
2515 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2516 parameter.
2517 (target_has_execution_1): Update.
2518 (target_has_execution_current): Declare.
2519 (target_has_execution): Call target_has_execution_current.
2520 (default_child_has_execution): Update.
2521 * target.c (default_child_has_execution): Add 'the_ptid'
2522 parameter.
2523 (target_has_execution_1): Likewise.
2524 (target_has_execution_current): New function.
2525 (add_target): Update.
2526 (init_dummy_target): Update.
2527 * remote-m32r-sdi.c (m32r_has_execution): New function.
2528 (init_m32r_ops): Use it.
2529 * record.c (record_core_has_execution): Now static. Add
2530 'the_ptid' parameter.
2531 * inferior.c (have_live_inferiors): Don't save current thread.
2532 Use target_has_execution_1.
2533
2534 2011-03-07 Yao Qi <yao@codesourcery.com>
2535
2536 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2537
2538 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2539
2540 * elfread.c (elf_symtab_read): Minor reformatting.
2541
2542 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2543
2544 * objc-lang.c (selectors_info): Minor reformatting.
2545
2546 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2547
2548 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2549
2550 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2551 Michael Snyder <msnyder@vmware.com>
2552
2553 * ada-valprint.c (ada_val_print_array): Move the declaration of
2554 "byte_order" and "elttype" inside the block where these variables
2555 are actually used. Remove some special handling for the case
2556 where "elttype" and "eltlen" are null. Replace by a comment
2557 and a couple of assertion checks.
2558
2559 2011-03-05 Michael Snyder <msnyder@vmware.com>
2560
2561 * source.c (add_path): Replace semicolon at end of block.
2562 * dwarf2expr.c (execute_stack_op): Ditto.
2563
2564 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2565
2566 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2567 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2568 (bfin-*-*): Likewise.
2569
2570 2011-03-05 Michael Snyder <msnyder@vmware.com>
2571
2572 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2573 * mdebugread.c (parse_symbol): Ditto.
2574 * parse.c (parse_exp_in_context): Ditto.
2575 * source.c (add_path): Ditto.
2576 * utils.c (gnu_debuglink_crc32): Ditto.
2577 * varobj.c (variable_language): Ditto.
2578
2579 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2580
2581 2011-03-04 Michael Snyder <msnyder@vmware.com>
2582
2583 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2584
2585 * symfile.c (simple_overlay_update): Check for null return value
2586 from lookup_minimal_symbol.
2587
2588 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2589
2590 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2591
2592 * eval.c (parse_and_eval_address_1): Remove function.
2593 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2594 instead of parse_and_eval_address_1.
2595 * value.h (parse_and_eval_address_1): Remove prototype.
2596
2597 2011-03-04 Michael Snyder <msnyder@vmware.com>
2598
2599 * remote.c (putpkt_binary): Document that case stmt falls through.
2600
2601 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2602
2603 * breakpointc (print_it_typical): Move NULL check from here...
2604 (print_bp_stop_message): ... to here.
2605
2606 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2607
2608 * breakpoint.c (enable_command): Use break instead of continue,
2609 and fill in a missing break.
2610 (disable_command): Ditto.
2611
2612 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2613
2614 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2615 (terminal_save_ours): Remove misleading comment.
2616 (inflow_inferior_data_cleanup): Free ttystate.
2617 (inflow_inferior_exit): Likewise.
2618 (copy_terminal_info): Copy ttystate.
2619
2620 * serial.c (serial_copy_tty_state): New function.
2621 * serial.h (serial_copy_tty_state): Add prototype.
2622 (struct serial_ops): Add copy_tty_state callback.
2623 * ser-base.c (ser_base_copy_tty_state): New function.
2624 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2625 * ser-go32.c (dos_copy_tty_state): New function.
2626 (dos_ops): Install copy_tty_state callback.
2627 * ser-mingw.c (_initialize_ser_windows): Likewise.
2628 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2629 * ser-unix.c (hardwire_copy_tty_state): New function.
2630 (_initialize_ser_hardwire): Install it.
2631
2632 2011-03-04 Michael Snyder <msnyder@vmware.com>
2633
2634 * breakpoint.c (create_breakpoint): Add missing break statement.
2635
2636 Reverting this patch:
2637 * infcall.c (call_function_by_hand): Add break statements for lint.
2638
2639 Reverting this patch:
2640 * cli/cli-script.c (script_from_file): Add break for lint.
2641
2642 2011-03-04 Michael Snyder <msnyder@vmware.com>
2643
2644 * solib.c (reload_shared_libraries_1): Close memory leak.
2645
2646 2011-03-03 Tom Tromey <tromey@redhat.com>
2647
2648 PR gdb/12538:
2649 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2650 DW_STRING is NULL.
2651
2652 2011-03-03 Michael Snyder <msnyder@vmware.com>
2653
2654 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2655 fields of struct 'st' to zero.
2656
2657 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2658 sal.pspace before calling set_current_source_symtab_and_line.
2659
2660 2011-03-03 Yao Qi <yao@codesourcery.com>
2661
2662 * Makefile.in (configure-common): Remove. Let Makefile
2663 in dir common to rebuild itself.
2664 (common/Makefile): Likewise.
2665
2666 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2667
2668 * utils.c (parse_escape): Add i18n markup in error message.
2669
2670 2011-03-03 Yao Qi <yao@codesourcery.com>
2671
2672 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2673 ARM_PC_REGNUM.
2674 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2675 (displaced_write_reg, displaced_read_reg): Likewise.
2676 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2677 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2678 (cleanup_branch): Replace magic number 14 and 15 with
2679 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2680
2681 2011-03-02 Michael Snyder <msnyder@vmware.com>
2682
2683 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2684
2685 * cli/cli-script.c (script_from_file): Add break for lint.
2686
2687 * mdebugread.c (parse_partial_symbols): Fix indent.
2688
2689 * target-descriptions.c (tdesc_gdb_type): No need to call
2690 xstrdup, callee saves a copy.
2691
2692 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2693
2694 * infcall.c (call_function_by_hand): Add break statements for lint.
2695
2696 * utils.c (parse_escape): Escape the escape char.
2697
2698 * python/py-inferior.c (build_inferior_list): Error out if
2699 PyList_Append fails.
2700 (gdbpy_inferiors): Error out if build_inferior_list fails.
2701
2702 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2703 a function call.
2704
2705 * record.c (record_restore): Move printf to before error return.
2706
2707 2011-03-02 Yao Qi <yao@codesourcery.com>
2708
2709 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2710 is_thumb and insn_size.
2711 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2712 on both ARM and Thumb mode.
2713 (arm_process_displaced_insn): Set is_thumb and insn_size.
2714 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2715 (arm_displaced_step_fixup): Likewise.
2716
2717 2011-03-01 Michael Snyder <msnyder@vmware.com>
2718
2719 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2720
2721 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2722
2723 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2724
2725 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2726
2727 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2728 with xmalloc.
2729
2730 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2731 which shadows function parameter.
2732
2733 * tracepoint.c (create_tsv_from_upload): Superfluous call
2734 to xstrdup. Callee already calls xstrdup.
2735
2736 * linespec.c (decode_line_1): Remove unnecessary null check.
2737
2738 * tracepoint.c (scope_info): Fix mem leak, remove underused
2739 variable.
2740
2741 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2742 superfluous null check.
2743
2744 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2745 (value_of_builtin_frame_fp_reg): Ditto.
2746
2747 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2748
2749 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2750 be null.
2751
2752 * linespec.c (decode_line_1): Check for null before dereference.
2753
2754 * reverse.c (record_restore): Move null-check to before pointer
2755 dereference.
2756
2757 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2758
2759 * objc-lang.c (selectors_info): Add explanitory comment.
2760 (classes_info): Ditto.
2761
2762 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2763
2764 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2765 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2766 versions of the trampoline. Handle Thumb vs. ARM addresses.
2767 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2768 (arm_linux_init_abi): Install it.
2769 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2770 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2771
2772 2011-02-28 Michael Snyder <msnyder@vmware.com>
2773
2774 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2775 a little bigger, to avoid possibility of an overflow.
2776
2777 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2778 buffers a little bigger, to avoid possibility of an overflow.
2779
2780 * coffread.c (coff_getfilename): Add check to avoid overflow.
2781
2782 * objc-lang.c (selectors_info): Add a small safety margin to
2783 avoid overflow.
2784 (classes_info): Error out on too long REGEXP.
2785
2786 * infrun.c (handle_inferior_event): Remove unused function call.
2787
2788 * fork-child.c (fork_inferior): Remove ifdef'd code and
2789 unused variable.
2790
2791 * linux-thread-db.c (attach_thread): Discard unused value.
2792
2793 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2794
2795 * remote.c (remote_get_noisy_reply): Discard unused value.
2796 (remote_vcont_resume): Ditto.
2797 (remote_stop_ns): Ditto.
2798
2799 * linespec.c (decode_objc): Delete unused variable.
2800
2801 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2802
2803 * dwarf2read.c (add_partial_symbol): Discard unused values.
2804 (read_base_type): Delete unused variable.
2805
2806 * dbxread.c (read_dbx_symtab): Discard unused value.
2807
2808 * eval.c (evaluate_subexp_standard): Delete unused variable,
2809 and discard unused values.
2810
2811 * infcmd.c (_initialize_infcmd): Discard unused values.
2812
2813 * stabsread.c (rs6000_builtin_type): Missing break statement.
2814
2815 * dbxread.c (process_one_symbol): Discard unused value.
2816
2817 * coffread.c (coff_end_symtab): Delete unused variable.
2818
2819 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2820 (dwarf2_add_typedef): Delete unused variable.
2821 (read_namespace): Ditto.
2822 (dwarf_decode_macros): Ditto.
2823
2824 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2825
2826 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2827
2828 * p-valprint.c (pascal_val_print): Discard unused value.
2829
2830 * utils.c (nquery): Call va_end before return;
2831 (yquery): Ditto.
2832 (query): Ditto.
2833
2834 * proc-service.c (ps_plog): Call va_end before return.
2835
2836 2011-02-28 Tom Tromey <tromey@redhat.com>
2837
2838 * python/python.c (gdbpy_value_cst): New global.
2839 (_initialize_python): Initialize it.
2840 * python/python-internal.h (gdbpy_value_cst): Declare.
2841 * python/py-value.c (convert_value_from_python): Use
2842 gdbpy_value_cst.
2843
2844 2011-02-28 Michael Snyder <msnyder@vmware.com>
2845
2846 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2847
2848 * breakpoint.c (catch_syscall_completer): Free malloced list.
2849
2850 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2851
2852 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2853 (lval_func_check_synthetic_pointer): Ditto.
2854 (lval_func_free_closure): Fix use-after-free.
2855
2856 2011-02-28 Tom Tromey <tromey@redhat.com>
2857
2858 * psymtab.c (expand_partial_symbol_tables): Use
2859 ALL_OBJFILE_PSYMTABS.
2860
2861 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2862
2863 * objc-lang.c (selectors_info): Error on too long REGEXP.
2864
2865 2011-02-28 Michael Snyder <msnyder@vmware.com>
2866
2867 * python/py-param.c (set_parameter_value): Add missing
2868 break statement.
2869
2870 * linux-record.c (record_linux_system_call): Add missing
2871 break statement.
2872
2873 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2874
2875 * breakpoint.c (print_one_breakpoint_location): Remove unused
2876 argument PRINT_ADDRESS_BITS. Update callers.
2877 (print_one_breakpoint): Likewise.
2878
2879 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2880
2881 * breakpoint.c (wrap_indent_at_field): New function.
2882 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2883 Allocate ui_stream locally instead of using STB argument.
2884 (print_one_breakpoint_location): Update call.
2885 * ui-out.c (ui_out_query_field): New function.
2886 * ui-out.h (ui_out_query_field): Add prototype.
2887
2888 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2889
2890 From Michael Snyder <msnyder@vmware.com>
2891 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2892
2893 2011-02-27 Michael Snyder <msnyder@vmware.com>
2894
2895 * objc-lang.c (selectors_info): Prevent string overrun.
2896
2897 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2898 error in strncpy.
2899
2900 * symtab.c (rbreak_command): Move variable 'file_name' to
2901 outer scope.
2902
2903 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2904 param with a local variable of the same name.
2905
2906 2011-02-27 Michael Snyder <msnyder@vmware.com>
2907
2908 * value.c (value_from_history_ref): New function.
2909 * value.h (value_from_history_ref): Export.
2910 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2911 to parse value history references.
2912 * cli/cli-utils.h (get_number_trailer): Update comment.
2913
2914 2011-02-27 Michael Snyder <msnyder@vmware.com>
2915
2916 * inferior.c (detach_inferior_command): Use get_number_or_range.
2917 (kill_inferior_command): Ditto.
2918 (remove_inferior_command): Ditto.
2919 (initialize_inferiors): Make command names plural.
2920 Update help strings.
2921
2922 2011-02-27 Michael Snyder <msnyder@vmware.com>
2923
2924 * darwin-nat-info.c: Fix comment typo.
2925 * dwarf2expr.h: Ditto.
2926 * fbsd-nat.c: Ditto.
2927 * fbsd-nat.h: Ditto.
2928 * frame-unwind.h: Ditto.
2929 * frame.h: Ditto.
2930 * hppa-hpux-tdep.c: Ditto.
2931 * i386-linux-nat.c: Ditto.
2932 * linux-nat.c: Ditto.
2933 * nbsd-nat.c: Ditto.
2934 * nbsd-nat.h: Ditto.
2935 * ppc-linux-tdep.c: Ditto.
2936 * serial.c: Ditto.
2937 * ui-file.h: Ditto.
2938 * tui/tui-winsource.c: Ditto.
2939
2940 2011-02-26 Michael Snyder <msnyder@vmware.com>
2941
2942 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2943
2944 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2945
2946 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2947 with a local variable of the same name.
2948
2949 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2950 param with a local variable of the same name.
2951 (i387_supply_xsave): Ditto.
2952
2953 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2954 that it does not shadow a function parameter.
2955
2956 * i386-nat.c (i386_length_and_rw_bits): Document that case
2957 statement is meant to fall through.
2958
2959 * expprint.c (dump_subexp_body_standard): Document that case
2960 statement is meant to fall through.
2961
2962 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2963 dead if statement. Condition can't be false.
2964
2965 2011-02-25 Michael Snyder <msnyder@vmware.com>
2966
2967 * arm-tdep.c: Fix typos in comments.
2968 * bsd-uthread.c: Ditto.
2969 * completer.c: Ditto.
2970 * corelow.c: Ditto.
2971 * cp-namespace.c: Ditto.
2972 * cp-support.c: Ditto.
2973 * cris-tdep.c: Ditto.
2974 * dbxread.c: Ditto.
2975 * dwarf2read.c: Ditto.
2976 * frame.h: Ditto.
2977 * gdbtypes.h: Ditto.
2978 * inferior.h: Ditto.
2979 * mdebugread.c: Ditto.
2980 * mips-tdep.c: Ditto.
2981 * ppc-linux-nat.c: Ditto.
2982 * ppc-linux-tdep.c: Ditto.
2983 * printcmd.c: Ditto.
2984 * sol-thread.c: Ditto.
2985 * solib-frv.c: Ditto.
2986 * solist.h: Ditto.
2987 * sparc64-tdep.c: Ditto.
2988 * spu-tdep.c: Ditto.
2989 * stabsread.c: Ditto.
2990 * symfile.c: Ditto.
2991 * valops.c: Ditto.
2992 * varobj.c: Ditto.
2993 * vax-nat.c: Ditto.
2994 * python/py-block.c: Ditto.
2995 * python/py-symbol.c: Ditto.
2996 * python/py-symtab.c: Ditto.
2997 * python/py-value.c: Ditto.
2998 * tui/tui-win.c: Ditto.
2999
3000 2011-02-25 Michael Snyder <msnyder@vmware.com>
3001
3002 * inferior.c (print_inferior): Accept a string instead of an int
3003 for requested_inferiors, and use get_number_or_range to parse it.
3004 (info_inferiors_command): Pass args string to print_inferior.
3005 (initialize_inferiors): Change help string for info inferiors.
3006 * inferior.h (print_inferior): Export prototype change.
3007
3008 2011-02-25 Tom Tromey <tromey@redhat.com>
3009
3010 * common/ax.def (invalid2): Set to 0x31.
3011
3012 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3015 L and plongest.
3016 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3017 use L and plongest.
3018 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3019
3020 2011-02-24 Michael Snyder <msnyder@vmware.com>
3021
3022 * Makefile.in (clean): Make clean should remove generated files
3023 observer.h and observer.inc.
3024
3025 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3026
3027 Revert the following patch (not approved yet):
3028 2011-02-21 Hui Zhu <teawater@gmail.com>
3029 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3030 * ax-gdb.c (gen_printf_expr_callback): New function.
3031 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3032 * ax-general.c (ax_memcpy): New function.
3033 (ax_print): Handle "printf".
3034 (ax_reqs): Ditto.
3035 * ax.h (ax_memcpy): Forward declare.
3036 * common/ax.def (invalid2): Removed.
3037 (printf): New entry.
3038 * printcmd.c (printcmd.h): New include.
3039 (string_printf): New function.
3040 (ui_printf): Removed.
3041 (printf_command): Remove static. Call string_printf.
3042 (eval_command): Call string_printf.
3043 * printcmd.h: New file.
3044 * tracepoint.c (validate_actionline,
3045 encode_actions_1): handle printf_command.
3046
3047 2011-02-23 Tom Tromey <tromey@redhat.com>
3048
3049 * ax-general.c (ax_pick): Add missing newline.
3050
3051 2011-02-23 Michael Snyder <msnyder@vmware.com>
3052
3053 * breakpoint.c (breakpoint_1): Change first argument from an int
3054 to a char pointer, so that the function now accepts a list of
3055 breakpoints rather than just one. Use new function
3056 'number_is_in_list' to implement.
3057 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3058 (watchpoints_info): Ditto.
3059 (tracepoints_info): Ditto.
3060 (maintenance_info_breakpoints): Ditto.
3061 (_initialize_breakpoint): Update help strings to reflect the fact
3062 that these functions can now take more than one argument.
3063 * cli/cli-utils.c (number_is_in_list): New function.
3064 * cli/cli-utils.h (number_is_in_list): Export.
3065
3066 2011-02-23 Michael Snyder <msnyder@vmware.com>
3067
3068 * memattr.c (mem_enable_command): Use get_number_or_range.
3069 (mem_disable_command): Ditto.
3070 (mem_delete_command): Ditto.
3071 (_initialize_mem): Tweak usage message to reflect multiple
3072 arguments.
3073
3074 2011-02-22 Doug Evans <dje@google.com>
3075
3076 Add gdb.lookup_global_symbol python function.
3077 * NEWS: Add entry.
3078 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3079 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3080 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3081
3082 2011-02-22 Tom Tromey <tromey@redhat.com>
3083
3084 * language.c (language_class_name_from_physname): Rename
3085 'curr_language' argument to 'lang'; use in body.
3086
3087 2011-02-22 Michael Snyder <msnyder@vmware.com>
3088
3089 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3090
3091 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3092
3093 * frame-unwind.h: Fix comment to mention the this frame, not the
3094 next.
3095
3096 2011-02-22 Tom Tromey <tromey@redhat.com>
3097
3098 * symfile.c (auto_solib_limit): Remove.
3099 * symfile.h (auto_solib_limit): Remove.
3100
3101 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3102
3103 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3104
3105 2011-02-21 Michael Snyder <msnyder@vmware.com>
3106
3107 * gdbthread.h (print_thread_info): Change prototype.
3108 * thread.c (print_thread_info): Accept char* instead of int for
3109 requested_threads argument. Use new function number_is_in_list
3110 to determine which threads to list.
3111 (info_threads_command): Pass char* to print_thread_info.
3112 * cli/cli-utils.c (number_is_in_list): New function.
3113 * cli/cli-utils.h (number_is_in_list): Export.
3114 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3115 print_thread_info.
3116 (print_one_inferior): Ditto.
3117 (mi_cmd_list_thread_groups): Ditto.
3118
3119 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 * common/Makefile.in (CFLAGS): New.
3122 (COMPILE): Add $(CFLAGS).
3123
3124 2011-02-21 Tom Tromey <tromey@redhat.com>
3125
3126 * breakpoint.c (catch_syscall_command_1): Fix typo.
3127
3128 2011-02-21 Tom Tromey <tromey@redhat.com>
3129
3130 * reverse.c: Include cli-utils.h.
3131 * printcmd.c: Include cli-utils.h.
3132 (string_printf): Use skip_spaces.
3133 * cli/cli-utils.h: New file.
3134 * cli/cli-utils.c: New file.
3135 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3136 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3137 * breakpoint.h (get_number, get_number_or_range): Move to
3138 cli-utils.h.
3139 * breakpoint.c: Include cli-utils.h.
3140 (get_number_trailer, get_number, get_number_or_range)
3141 (ep_skip_leading_whitespace): Move to cli-utils.c.
3142 (create_breakpoint_sal, find_condition_and_thread)
3143 (decode_static_tracepoint_spec, watch_command_1)
3144 (watch_maybe_just_location, ep_parse_optional_if_clause)
3145 (catch_fork_command_1, catch_exec_command_1)
3146 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3147 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3148 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3149 (HFILES_NO_SRCDIR): Add cli-utils.h.
3150 (cli-utils.o): New target.
3151
3152 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3153
3154 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3155 before calling discard_all_inferiors.
3156
3157 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3158
3159 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3160 (struct builtin_opencl_type): Remove.
3161 (builtin_opencl_type): Change return type to "struct type **".
3162 (lookup_opencl_vector_type): Update caller.
3163 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3164 (build_opencl_types): Install plain array of "struct type *"
3165 instead of "struct builtin_opencl_type".
3166
3167 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3168 Ulrich Weigand <uweigand@de.ibm.com>
3169
3170 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3171 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3172 (struct arm_linux_hwbp_cap): New type.
3173 (arm_linux_get_hwbp_cap): New function.
3174 (arm_linux_get_hw_breakpoint_count): Likewise.
3175 (arm_linux_get_hw_watchpoint_count): Likewise.
3176 (arm_linux_can_use_hw_breakpoint): Likewise.
3177 (arm_hwbp_type): New type.
3178 (arm_hwbp_control_t): Likewise.
3179 (struct arm_linux_hw_breakpoint): Likewise.
3180 (struct arm_linux_thread_points): Likewise.
3181 (arm_threads): New global variable.
3182 (arm_linux_find_breakpoints_by_tid): New function.
3183 (arm_hwbp_control_initialize): Likewise.
3184 (arm_hwbp_control_is_enabled): Likewise.
3185 (arm_hwbp_control_disable): Likewise.
3186 (arm_linux_hw_breakpoint_initialize): Likewise.
3187 (arm_linux_get_hwbp_type): Likewise.
3188 (arm_linux_hw_watchpoint_initialize): Likewise.
3189 (arm_linux_hw_breakpoint_equal): Likewise.
3190 (arm_linux_insert_hw_breakpoint1): Likewise.
3191 (arm_linux_remove_hw_breakpoint1): Likewise.
3192 (arm_linux_insert_hw_breakpoint): Likewise.
3193 (arm_linux_remove_hw_breakpoint): Likewise.
3194 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3195 (arm_linux_insert_watchpoint): Likewise.
3196 (arm_linux_remove_watchpoint): Likewise.
3197 (arm_linux_stopped_data_address): Likewise.
3198 (arm_linux_stopped_by_watchpoint): Likewise.
3199 (arm_linux_watchpoint_addr_within_range): Likewise.
3200 (arm_linux_new_thread): Likewise.
3201 (arm_linux_thread_exit): Likewise.
3202 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3203 related target callbacks. Register arm_linux_new_thread and
3204 arm_linux_thread_exit.
3205 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3206 * arm-tdep.c (arm_pc_is_thumb): Make global.
3207 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3208
3209 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3210
3211 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3212 per-frame locations while within a function epilogue.
3213
3214 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3215
3216 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3217 to GNU coding standards.
3218
3219 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3220
3221 Allow use of mingw native on Windows 95 OS.
3222 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3223 (ser_windows_close): Only call CancelIo if function exists.
3224 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3225 to check for existence of CancelIo function in kernel32 DLL.
3226
3227 2011-02-21 Hui Zhu <teawater@gmail.com>
3228
3229 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3230 * ax-gdb.c (gen_printf_expr_callback): New function.
3231 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3232 * ax-general.c (ax_memcpy): New function.
3233 (ax_print): Handle "printf".
3234 (ax_reqs): Ditto.
3235 * ax.h (ax_memcpy): Forward declare.
3236 * common/ax.def (invalid2): Removed.
3237 (printf): New entry.
3238 * printcmd.c (printcmd.h): New include.
3239 (string_printf): New function.
3240 (ui_printf): Removed.
3241 (printf_command): Remove static. Call string_printf.
3242 (eval_command): Call string_printf.
3243 * printcmd.h: New file.
3244 * tracepoint.c (validate_actionline,
3245 encode_actions_1): handle printf_command.
3246
3247 2011-02-19 Michael Snyder <msnyder@vmware.com>
3248
3249 * reverse.c (delete_one_bookmark): Argument is now bookmark
3250 id rather than pointer to bookmark struct.
3251 (delete_bookmark_command): Use get_number_or_range.
3252 (goto_bookmark_command): Parse with get_number instead of strtoul.
3253 (bookmark_1): New function. Print info for one bookmark.
3254 (bookmarks_info): Use get_number_or_range and bookmark_1.
3255
3256 2011-02-18 Michael Snyder <msnyder@vmware.com>
3257
3258 * thread.c (info_threads_command): Re-implement using
3259 get_number_or_range.
3260 (thread_apply_command): Ditto.
3261
3262 2011-02-18 Tom Tromey <tromey@redhat.com>
3263
3264 * common/ax.def: New file.
3265 * ax.h (enum agent_op): Use ax.def.
3266 * ax-general.c (aop_map): Use ax.def.
3267
3268 2011-02-18 Tom Tromey <tromey@redhat.com>
3269
3270 * ax-general.c (aop_map): Add pick and rot.
3271 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3272 <DW_OP_rot>: Implement.
3273 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3274 (ax_pick): Declare.
3275 * ax-general.c (ax_pick): New function.
3276
3277 2011-02-18 Tom Tromey <tromey@redhat.com>
3278
3279 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3280
3281 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3282 Tom Tromey <tromey@redhat.com>
3283
3284 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3285 make_symbol_overload_list_block with NULL BLOCK.
3286 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3287
3288 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3289
3290 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3291 * breakpoint.h (get_number_or_range): Declare.
3292 * printcmd.c (ALL_DISPLAYS): Declare.
3293 (delete_display): Reimplement taking a display pointer.
3294 (undisplay_command): Accept a range of displays to delete, using
3295 get_number_or_range.
3296
3297 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3298
3299 * c-valprint.c (c_val_print): Add embedded_offset to address
3300 for arrays of unspecified length.
3301 * p-valprint.c (pascal_val_print): Likewise.
3302
3303 2011-02-18 Yao Qi <yao@codesourcery.com>
3304
3305 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3306 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3307 (thumb_process_displaced_insn): New.
3308 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3309 call to arm_process_displaced_insn.
3310 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3311
3312 2011-02-17 Tom Tromey <tromey@redhat.com>
3313
3314 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3315 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3316 compile_dwarf_to_ax. No longer static. Call
3317 dwarf2_compile_cfa_to_ax.
3318 (locexpr_tracepoint_var_ref): Update.
3319 (loclist_tracepoint_var_ref): Update.
3320 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3321 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3322 argument; add 'gdbarch' and 'pc'.
3323 (dwarf2_compile_cfa_to_ax): New function.
3324 (dwarf2_frame_cache): Update.
3325
3326 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3327
3328 * ada-lang.c (ada_type_of_array): Fix the size of the array
3329 in the case of an unconstrained packed array.
3330
3331 2011-02-17 Yao Qi <yao@codesourcery.com>
3332
3333 * common/Makefile.in: Add more targets for make.
3334
3335 2011-02-16 Tom Tromey <tromey@redhat.com>
3336
3337 * dwarf2loc.c (unimplemented): Fix typo.
3338
3339 2011-02-16 Tom Tromey <tromey@redhat.com>
3340
3341 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3342 (compile_dwarf_to_ax) <default>: Use unimplemented.
3343 <DW_OP_deref>: Update.
3344 (disassemble_dwarf_expression): Update.
3345 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3346 (decode_locdesc): Update.
3347 * dwarf2expr.h (dwarf_stack_op_name): Update.
3348
3349 2011-02-16 Tom Tromey <tromey@redhat.com>
3350
3351 * ax.h (struct aop_map) <name>: Now const.
3352
3353 2011-02-16 Tom Tromey <tromey@redhat.com>
3354
3355 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3356 than axs_rvalue.
3357
3358 2011-02-16 Yao Qi <yao@codesourcery.com>
3359
3360 * infrun.c (get_displaced_step_closure_by_addr): New.
3361 * inferior.h: Declare it.
3362 * arm-tdep.c: (arm_pc_is_thumb): Call
3363 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3364 returns non-NULL.
3365
3366 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3367 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 gdb/
3370 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3371
3372 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3373 Jan Kratochvil <jan.kratochvil@redhat.com>
3374
3375 * value.c (value_contents_copy_raw): Extend describing comment.
3376 Assert that the destination contents we're overwriting are wholly
3377 available.
3378 (value_contents_copy): Extend describing comment.
3379
3380 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3381 Jan Kratochvil <jan.kratochvil@redhat.com>
3382
3383 * value.c (value_available_contents_eq): Remove redundant local
3384 variables. Fix available contents comparision.
3385 * value.h (value_available_contents_eq): Extend describing
3386 comment.
3387
3388 2011-02-16 Yao Qi <yao@codesourcery.com>
3389
3390 * thread.c (info_threads_command): Add missing i18n markup and remove
3391 trailing newline.
3392
3393 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3394
3395 * breakpoint.c (longjmp_names): New variable.
3396 (struct breakpoint_objfile_data): New type.
3397 (breakpoint_objfile_key): New variable.
3398 (msym_not_found): New variable.
3399 (msym_not_found_p): New predicate.
3400 (get_breakpoint_objfile_data): New function.
3401 (create_overlay_event_breakpoint): Check per-objfile cache for
3402 symbols first.
3403 (create_longjmp_master_breakpoint): Likewise.
3404 (create_std_terminate_master_breakpoint): Likewise.
3405 (create_exception_master_breakpoint): Likewise.
3406 (_initialize_breakpoint): Register per-objfile data key.
3407
3408 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3409
3410 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3411 parameter value.
3412 (create_longjmp_master_breakpoint): Loop over longjmp names.
3413 (create_std_terminate_master_breakpoint): Const-propagate parameter
3414 value.
3415 (update_breakpoints_after_exec): Adjust.
3416 (breakpoint_re_set): Adjust.
3417
3418 2011-02-15 Michael Snyder <msnyder@vmware.com>
3419
3420 * thread.c (info_threads_command): Process arg as thread id,
3421 or list of thread ids.
3422 (thread_find_command): New command.
3423 (_initialize_thread): Document argument for info threads.
3424 Document 'thread find' command.
3425 * NEWS: Document new command "thread find".
3426
3427 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3428
3429 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3430 * aclocal.m4: Regenerated with aclocal-1.11.1.
3431 * common/configure: Regenerate with autoconf-2.64.
3432
3433 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3434
3435 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3436 bool data type to a size of one byte.
3437
3438 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3439 Jan Kratochvil <jan.kratochvil@redhat.com>
3440
3441 * target.c (memory_xfer_live_readonly_partial): Document where to
3442 look for interface description.
3443
3444 2011-02-15 Yao Qi <yao@codesourcery.com>
3445
3446 PR tdep/12352
3447 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3448 order to store PC value on stack instead of text section.
3449
3450 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3451
3452 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3453 the EFP register set size.
3454 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3455 data from the VMX register.
3456 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3457 and write data from/to the VMX register.
3458
3459 2011-02-14 Michael Snyder <msnyder@vmware.com>
3460
3461 * command.h (enum command_class): New class 'no_set_class', for
3462 "show" commands without a corresponding "set" command.
3463 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3464 * copying.c (_initialize_copying): Ditto for "show copying" and
3465 "show warranty".
3466 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3467 "show version".
3468 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3469 which there is no corresponding "set" command (eg. "show copying").
3470
3471 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3472 Jan Kratochvil <jan.kratochvil@redhat.com>
3473
3474 * exec.c (section_table_available_memory): Change `len' parameter
3475 type to ULONGEST.
3476 * exec.h (section_table_available_memory): Ditto.
3477 * value.h (read_value_memory): Rename the `offset' parameter to
3478 `embedded_offset'.
3479
3480 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3481 Jan Kratochvil <jan.kratochvil@redhat.com>
3482
3483 * memrange.c (compare_mem_ranges): Mention sort order in
3484 describing comment.
3485 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3486 * tracepoint.c (traceframe_available_memory): Extend comment to
3487 mention what happens to RESULT when the target does not support
3488 the query.
3489
3490 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3491 Jan Kratochvil <jan.kratochvil@redhat.com>
3492
3493 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3494 range.
3495
3496 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3497
3498 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3499 No longer handle NULL values.
3500
3501 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3502
3503 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3504 * value.c: Include "exceptions.h".
3505 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3506 generic error.
3507 * cp-abi.c: Include gdb_assert.h.
3508 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3509 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3510 errors.
3511 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3512 parameters. No longer returns -1 on error.
3513 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3514 `val' parameters.
3515 * cp-valprint.c: Include exceptions.h.
3516 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3517 the baseclass_offset. Handle unavailable base classes. Use
3518 val_print_invalid_address.
3519 * p-valprint.c: Include exceptions.h.
3520 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3521 when fetching the baseclass_offset. No longer expect
3522 baseclass_offset returning -1. Handle unavailable base classes.
3523 Use val_print_invalid_address.
3524 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3525 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3526 `embedded_offset' and `val' parameters. Adjust.
3527 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3528 parameter, and change its type to gdb_byte pointer. Add
3529 `embedded_offset' and `val' parameters. Adjust. No longer expect
3530 baseclass_offset returning -1.
3531 (value_dynamic_cast): Use value_contents_for_printing rather than
3532 value_contents. Adjust.
3533 (search_struct_field): No longer expect baseclass_offset returning
3534 -1.
3535 (search_struct_method): If reading memory from the target is
3536 necessary, wrap it in a new value to pass to baseclass_offset. No
3537 longer expect baseclass_offset returning -1.
3538 (find_method_list): No longer expect baseclass_offset returning
3539 -1. Use value_contents_for_printing rather than value_contents.
3540 * valprint.c (val_print_invalid_address): New function.
3541 * valprint.h (val_print_invalid_address): Declare.
3542 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3543 and `val' parameters. No longer expect baseclass_offset returning
3544 -1. Adjust.
3545 * gnu-v2-abi.c: Include "exceptions.h".
3546 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3547 parameters. Handle unavailable memory. Recurse through
3548 gnuv2_baseclass_offset directly, rather than through
3549 baseclass_offset. No longer returns -1 on not found, instead
3550 throw an error.
3551 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3552 `val' parameters. Adjust.
3553
3554 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3555
3556 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3557 almost but not quite adjacent.
3558
3559 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3560
3561 * value.h (value_entirely_available): Declare.
3562 * value.c (value_entirely_available): New function.
3563 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3564 real type if the pointer is unavailable.
3565
3566 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3567
3568 * valops.c (value_repeat): Use read_value_memory instead of
3569 read_memory.
3570
3571 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3572
3573 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3574 * value.c (value_contents_copy_raw, value_contents_copy): New
3575 functions.
3576 (value_primitive_field): Use value_contents_copy_raw instead of
3577 memcpy.
3578 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3579 memcpy.
3580 (value_array, value_slice): Ditto.
3581 * valarith.c (value_subscripted_rvalue): Use
3582 value_contents_copy_raw instead of memcpy.
3583
3584 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3585
3586 <unavailable> references.
3587
3588 * valops.c (get_value_at): Use value_from_contents_and_address,
3589 avoiding read_memory.
3590
3591 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3592
3593 * c-valprint.c (c_val_print): Print a string with unavailable
3594 contents as an array.
3595
3596 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3597
3598 * value.h (unpack_bits_as_long): Delete declaration.
3599 (unpack_value_bits_as_long): Declare.
3600 (unpack_value_field_as_long): Declare.
3601 (value_field_bitfield): Declare.
3602 * value.c (unpack_bits_as_long): Rename to...
3603 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3604 value parameters. Return the extracted result in a new output
3605 parameter. If the value contents are unavailable, return false,
3606 otherwise return true.
3607 (unpack_value_bits_as_long): New.
3608 (unpack_field_as_long): Rename to...
3609 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3610 Add embedded_offset and value parameters. Return the extracted
3611 result in a new output parameter. If the value contents are
3612 unavailable, return false, otherwise return true.
3613 (unpack_value_field_as_long): New.
3614 (unpack_field_as_long_1): New.
3615 (unpack_field_as_long): Reimplement as wrapper around
3616 unpack_value_field_as_long_1.
3617 (value_field_bitfield): New function.
3618 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3619 unpack_value_bits_as_long. Mark the value as unavailable, if it
3620 is unavailable.
3621 * jv-valprint.c (java_print_value_fields): Use
3622 value_field_bitfield.
3623 * p-valprint.c (pascal_object_print_value_fields): Use
3624 value_field_bitfield.
3625 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3626
3627 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3628
3629 * value.c (get_internalvar_integer): Also return the int value of
3630 TYPE_CODE_INT INTERNALVAR_VALUE values.
3631 (set_internalvar): Don't special case TYPE_CODE_INT.
3632
3633 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3634
3635 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3636 INTERNALVAR_POINTER.
3637 <pointer>: Delete.
3638 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3639 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3640 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3641
3642 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3643
3644 * value.h (value_available_contents_eq): Declare.
3645 * value.c (find_first_range_overlap): New function.
3646 (value_available_contents_eq): New function.
3647 * valprint.c (val_print_array_elements): Use
3648 value_available_contents_eq.
3649 * ada-valprint.c (val_print_packed_array_elements): Use
3650 value_available_contents_eq.
3651 * jv-valprint.c (java_value_print): Use
3652 value_available_contents_eq.
3653
3654 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3655
3656 * target.c (target_read_live_memory): New function.
3657 (memory_xfer_live_readonly_partial): New.
3658 (memory_xfer_partial): If reading from a traceframe, fallback to
3659 reading unavailable read-only memory from read-only regions of
3660 live target memory.
3661 * tracepoint.c (disconnect_tracing): Adjust.
3662 (set_current_traceframe): New, factored out from
3663 set_traceframe_number.
3664 (set_traceframe_number): Reimplement to only change the traceframe
3665 number on the GDB side.
3666 (do_restore_current_traceframe_cleanup): Adjust.
3667 (make_cleanup_restore_traceframe_number): New.
3668 (cur_traceframe_number): New global.
3669 (tfile_open): Set cur_traceframe_number to no traceframe.
3670 (set_tfile_traceframe): New function.
3671 (tfile_trace_find): If looking up a traceframe using any method
3672 other than by number, make sure the current tfile traceframe
3673 matches gdb's current traceframe. Update the current tfile
3674 traceframe if the lookup succeeded.
3675 (tfile_fetch_registers, tfile_xfer_partial)
3676 (tfile_get_trace_state_variable_value): Make sure the remote
3677 traceframe matches gdb's current traceframe.
3678 * remote.c (remote_traceframe_number): New global.
3679 (remote_open_1): Set it to -1.
3680 (set_remote_traceframe): New function.
3681 (remote_fetch_registers, remote_store_registers)
3682 (remote_xfer_memory, remote_xfer_partial)
3683 (remote_get_trace_state_variable_value): Make sure the remote
3684 traceframe matches gdb's current traceframe.
3685 (remote_trace_find): If looking up a traceframe using any method
3686 other than by number, make sure the current remote traceframe
3687 matches gdb's current traceframe. Update the current remote
3688 traceframe if the lookup succeeded.
3689 * infrun.c (fetch_inferior_event): Adjust.
3690 * tracepoint.h (set_current_traceframe): Declare.
3691 (get_traceframe_number, set_traceframe_number): Add describing
3692 comments.
3693
3694 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3695
3696 Mark pieces of values as unavailable if the corresponding memory
3697 is unavailable.
3698
3699 * valops.c: Include tracepoint.h.
3700 (value_fetch_lazy): Use read_value_memory.
3701 (read_value_memory): New.
3702 * value.h (read_value_memory): Declare.
3703 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3704 * exec.c (section_table_available_memory): New function.
3705 * exec.h (section_table_available_memory): Declare.
3706
3707 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3708
3709 * Makefile.in (SFILES): Add memrange.c.
3710 (HFILES_NO_SRCDIR): Add memrange.h.
3711 (COMMON_OBS): Add memrange.o.
3712 * memrange.c: New file.
3713 * memrange.h: New file.
3714 * tracepoint.c: Include memrange.h.
3715 (struct mem_range): Delete.
3716 (mem_range_s): Delete.
3717 (traceframe_available_memory): New function.
3718 * tracepoint.h (traceframe_available_memory): Declare.
3719
3720 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3721
3722 * target.h (struct traceframe_info): Forward declare.
3723 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3724 (struct target_ops) <to_traceframe_info>: New field.
3725 (target_traceframe_info): New.
3726 * target.c (update_current_target): Inherit and default
3727 to_traceframe_info.
3728 * remote.c (PACKET_qXfer_traceframe_info): New.
3729 (remote_protocol_features): Register qXfer:traceframe-info:read.
3730 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3731 (remote_traceframe_info): New.
3732 (init_remote_ops): Install it.
3733 (_initialize_remote): Install "set/show remote traceframe-info"
3734 commands.
3735 * tracepoint.h (parse_traceframe_info): Declare.
3736 * tracepoint.c (struct mem_range): New.
3737 (mem_range_s): New typedef.
3738 (struct traceframe_info): New.
3739 (traceframe_info): New global.
3740 (free_traceframe_info): New function.
3741 (clear_traceframe_info): New function.
3742 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3743 info.
3744 (build_traceframe_info): New function.
3745 (tfile_traceframe_info): New function.
3746 (init_tfile_ops): Install tfile_traceframe_info.
3747 (traceframe_info_start_memory, free_result): New functions.
3748 (memory_attributes, traceframe_info_elements): New globals.
3749 (parse_traceframe_info, get_traceframe_info): New functions.
3750 * features/traceframe-info.dtd: New file.
3751 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3752
3753 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3754
3755 Base support for <unavailable> value contents.
3756
3757 * value.h (value_bytes_available): Declare.
3758 (mark_value_bytes_unavailable): Declare.
3759 * value.c (struct range): New struct.
3760 (range_s): New typedef.
3761 (ranges_overlap): New function.
3762 (range_lessthan): New function.
3763 (ranges_contain_p): New function.
3764 (struct value) <unavailable>: New field.
3765 (value_bytes_available): New function.
3766 (mark_value_bytes_unavailable): New function.
3767 (require_not_optimized_out): Constify parameter.
3768 (require_available): New function.
3769 (value_contents_all, value_contents): Require all bytes be
3770 available.
3771 (value_free): Free `unavailable'.
3772 (value_copy): Copy `unavailable'.
3773 * valprint.h (val_print_unavailable): Declare.
3774 * valprint.c (valprint_check_validity): Rename `offset' parameter
3775 to `embedded_offset'. If printing a scalar, check whether the
3776 value chunk is available.
3777 (val_print_unavailable): New.
3778 (val_print_scalar_formatted): Check whether the value is
3779 available.
3780 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3781 pretty-printing unavailable values.
3782
3783 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3784
3785 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3786 * c-typeprint.c (c_type_print_args): Update the function comment. New
3787 variable param_type, initialize it. Remove const/volatile qualifiers
3788 for language_cplus and !show_artificial. Use param_type.
3789
3790 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3791
3792 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3793 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3794 * symtab.h (struct symtab) <next>: Comment extension.
3795
3796 2011-02-12 Yao Qi <yao@codesourcery.com>
3797
3798 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3799
3800 2011-02-11 Yao Qi <yao@codesourcery.com>
3801
3802 * common/Makefile.in: Add copyright header.
3803
3804 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3805
3806 * infrun.c (proceed): Move switching out and in of tfind mode from
3807 here ...
3808 (fetch_inferior_event): ... to here.
3809
3810 2011-02-11 Yao Qi <yao@codesourcery.com>
3811
3812 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3813 libcommon.a.
3814 * configure.ac: Add common to sub dir.
3815 * configure: Regenerate.
3816
3817 2011-02-11 Yao Qi <yao@codesourcery.com>
3818
3819 Build libcommon.a.
3820
3821 * common/Makefile.in: New.
3822 * common/configure.ac: New.
3823 * common/aclocal.m4: New.
3824 * common/configure: Generate.
3825
3826 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3827
3828 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3829 side of the parenthesis.
3830
3831 Merge from GCC:
3832 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3833 * vec.h (VEC_block_remove): Fix comment.
3834
3835 2011-02-08 Michael Snyder <msnyder@vmware.com>
3836
3837 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3838
3839 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3840
3841 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3842 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3843 psubd and paddd.
3844
3845 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 PR 12361.
3848 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3849 phsubsw.
3850 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3851 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3852
3853 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3854
3855 * dwarf2read.c (read_subroutine_type): Set special calling
3856 convention flag for functions compiled by IBM XL C for OpenCL.
3857 * ppc-sysv-tdep.c: Include "dwarf2.h"
3858 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3859 calling convention.
3860 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3861 IBM OpenCL vector types calling convention.
3862 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3863 (ppc_sysv_abi_broken_return_value): Likewise.
3864 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3865 types calling convention.
3866 (ppc64_sysv_abi_return_value): Likewise.
3867 * spu-tdep.c: Include "dwarf2.h"
3868 (spu_return_value): Implement IBM OpenCL vector types calling
3869 convention.
3870
3871 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3872
3873 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3874 correct ABI for AltiVec vector arguments.
3875
3876 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3877
3878 * valprint.c (val_print): Extend comment.
3879 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3880 interface explanation to val_print.
3881 (ada_val_print_array): Adjust comment to current interface.
3882 (print_field_values): Adjust comment to current interface.
3883 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3884 explanation to val_print.
3885 * f-valprint.c (f_val_print): Ditto.
3886 * jv-valprint.c (java_val_print): Ditto.
3887 * m2-valprint.c (m2_val_print): Ditto.
3888 * p-valprint.c (pascal_val_print): Ditto.
3889
3890 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3891
3892 * breakpoint.c (parse_breakpoint_sals): Fix description.
3893
3894 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3895 Oguz Kayral <oguzkayral@gmail.com>
3896
3897 * python/py-inferior.c (python_on_normal_stop): New function.
3898 (python_on_resume): New function.
3899 (python_inferior_exit): New function.
3900 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3901 inferior_exit observers.
3902 * python/py-evtregistry.c: New file.
3903 * python/py-threadevent.c : New file.
3904 * python/py-event.c: New file.
3905 * python/py-evts.c: New file.
3906 * python/py-continueevent.c: New file.
3907 * python/py-bpevent.c: New file.
3908 * python/py-signalevent.c: New file.
3909 * python/py-exetiedevent.c: New file.
3910 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3911 Move struct breakpoint_object from here...
3912 * python/python-internal.h: ... to here.
3913 * python/py-event.h: New file.
3914 * python/py-events.h: New file.
3915 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3916 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3917 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3918 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3919 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3920 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3921 Add build rules for all the above.
3922
3923 2011-02-04 Tom Tromey <tromey@redhat.com>
3924
3925 * dwarf2read.c (dwarf2_section_empty_p): New function.
3926 (dwarf2_read_section): Use dwarf2_section_empty_p.
3927 (dwarf2_section_size): New function.
3928 (dwarf2_get_section_info): Unconditionally read section.
3929 (dwarf2_read_index): Use dwarf2_section_empty_p.
3930 (partial_read_comp_unit_head): Use dwarf2_section_size.
3931 (dwarf2_symbol_mark_computed): Likewise.
3932
3933 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3934
3935 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3936
3937 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3938
3939 * mips-linux-tdep.c: Include xml-syscall.h.
3940 (mips_linux_get_syscall_number): New function.
3941 (mips_linux_init_abi): Add calls to
3942 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3943 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3944 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3945 * syscalls/mips-n32-linux.xml: New file.
3946 * syscalls/mips-n64-linux.xml: New file.
3947 * syscalls/mips-o32-linux.xml: New file.
3948
3949 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3950
3951 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3952 Complain about inverted range entries.
3953 (dwarf2_record_block_ranges): Likewise.
3954
3955 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3956
3957 Fix some typos.
3958 * breakpoint.c (update_watchpoint): Fix name of the
3959 update_global_location_list function.
3960 (print_one_breakpoint): Fix typo.
3961 (_initialize_breakpoint): Remove extra space in hbreak help
3962 string.
3963 * breakpoint.h (struct bp_location) <length>: Fix field
3964 description.
3965
3966 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3967
3968 * regcache.c (registers_changed_ptid): Don't explictly always
3969 clear `current_regcache'. Only clear current_thread_ptid and
3970 current_thread_arch when PTID matches. Only reinit the frame
3971 cache if PTID matches the current inferior_ptid. Move alloca(0)
3972 call to ...
3973 (registers_changed): ... here.
3974
3975 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3976
3977 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3978 starts with __stack_chk_guard as stack guard symbol.
3979
3980 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3981
3982 * disasm.c (compare_lines): Handle the end of sequence markers
3983 within the line table to better support disassembling over
3984 compilation unit boundaries.
3985
3986 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3987
3988 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3989 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3990 implementation even if no symbols are available.
3991 (thumb_analyze_prologue): Update call to skip_prologue_function.
3992 (arm_analyze_prologue): Likewise.
3993
3994 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3995
3996 * arm-tdep.c: Include "observer.h".
3997 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3998 (arm_exidx_data_key): New static variable.
3999 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4000 (struct arm_exidx_data): Likewise.
4001 (arm_exidx_data_free): New function.
4002 (arm_compare_exidx_entries): Likewise.
4003 (arm_obj_section_from_vma): Likewise.
4004 (arm_exidx_new_objfile): Likewise.
4005 (arm_find_exidx_entry): Likewise.
4006 (arm_exidx_fill_cache): Likewise.
4007 (arm_exidx_unwind_sniffer): Likewise.
4008 (arm_exidx_unwind): New global variable.
4009 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4010 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4011 observer. Register arm_exidx_data_key as objfile data.
4012
4013 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4014
4015 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4016 due to accessing uninitialized variable. Fix indentation.
4017
4018 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4019
4020 * c-valprint.c (c_value_print): When doing virtual base pointer
4021 adjustment, create a new value with adjusted contents rather than
4022 changing the contents of the value being printed (and getting it
4023 wrong).
4024
4025 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4026
4027 * xml-support.c (xml_find_attribute): New.
4028 (xinclude_start_include): Use it.
4029 * xml-support.h (xml_find_attribute): Declare.
4030 * memory-map.c (memory_map_start_memory)
4031 (memory_map_start_property): Use xml_find_attribute.
4032 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4033 xml_find_attribute.
4034 * remote.c (start_thread): Use xml_find_attribute.
4035 * solib-target.c (library_list_start_segment)
4036 (library_list_start_section, library_list_start_library)
4037 (library_list_start_list): Use xml_find_attribute.
4038 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4039 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4040 (tdesc_start_field): Use xml_find_attribute.
4041
4042 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4043
4044 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4045 (BUILD_OCL_VTYPES): Update.
4046
4047 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4048
4049 * configure.ac: Work around non-GNU sed limitation when computing
4050 python version number.
4051 * configure: Regenerate.
4052
4053 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 Fix debug printing of TYPE_INSTANCE.
4056 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4057 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4058
4059 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4062 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4063 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4064 * ada-operator.inc: Rename the file to ...
4065 * ada-operator.def: ... here, wrap all the entries by macro OP.
4066 * expprint.c (op_name_standard): Remove all the entries. Include
4067 "std-operator.def" instead.
4068 * expression.h (enum exp_opcode): Include "std-operator.def" and
4069 "ada-operator.def". Move all the entries ...
4070 * std-operator.def: ... here, wrap all the entries by macro OP.
4071
4072 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4073
4074 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4075 * breakpoint.c (remove_jit_event_breakpoints): New function.
4076 * jit.c (jit_descriptor_addr): Delete.
4077 (registering_code): Delete.
4078 (clear_int): Delete.
4079 (jit_inferior_data): New variable.
4080 (struct jit_inferior_data): New type.
4081 (get_jit_inferior_data): New function.
4082 (jit_inferior_data_cleanup): New function.
4083 (jit_read_descriptor): Adjust.
4084 (jit_register_code): Adjust.
4085 (jit_breakpoint_re_set_internal): New function; move code here ...
4086 (jit_inferior_init): ... from here.
4087 (jit_breakpoint_re_set): Adjust.
4088 (jit_reset_inferior_data_and_breakpoints): New function.
4089 (jit_inferior_created_observer): Adjust.
4090 (jit_inferior_exit_hook): Adjust.
4091 (jit_executable_changed_observer): New function.
4092 (jit_event_handler): Adjust.
4093 (_initialize_jit): Adjust.
4094
4095 2011-01-31 Michael Snyder <msnyder@vmware.com>
4096
4097 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4098 line.
4099
4100 2011-01-31 Tom Tromey <tromey@redhat.com>
4101
4102 PR python/12216:
4103 * python/python.c (execute_gdb_command): Call
4104 prevent_dont_repeat.
4105 * top.c (suppress_dont_repeat): New global.
4106 (dont_repeat): Use it.
4107 (prevent_dont_repeat): New function.
4108 * command.h (prevent_dont_repeat): Declare.
4109
4110 2011-01-31 Tom Tromey <tromey@redhat.com>
4111
4112 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4113 * python/py-breakpoint.c (bppy_set_silent): Use
4114 breakpoint_set_silent.
4115 (bppy_set_thread): Use breakpoint_set_thread.
4116 (bppy_set_task): Use breakpoint_set_task.
4117 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4118 (breakpoint_set_task): Declare.
4119 (make_breakpoint_silent): Remove.
4120 * breakpoint.c (breakpoint_set_silent): New function.
4121 (breakpoint_set_thread): Likewise.
4122 (breakpoint_set_task): Likewise.
4123 (make_breakpoint_silent): Remove.
4124
4125 2011-01-31 Tom Tromey <tromey@redhat.com>
4126
4127 * breakpoint.h (user_breakpoint_p): Declare.
4128 * breakpoint.c (user_breakpoint_p): New function.
4129 (breakpoint_1): Use it.
4130 (save_breakpoints): Likewise.
4131
4132 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4133
4134 * configure.ac: Add handling of Python distribution on Windows.
4135 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4136 sysconfig variables are not defined, then do not use them.
4137 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4138 instead. On Windows, return all paths using forward-slashes
4139 rather than backslashes.
4140
4141 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4142
4143 * configure.ac: Remove fallback behavior for building
4144 against Python. Remove tweaking of Python include path.
4145 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4146 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4147 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4148 Always restore CPPFLAGS and LIBS after linking test.
4149 * configure: Regenerated.
4150 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4151 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4152 * python/python-internal.h: Adjust includes of Python .h files.
4153
4154 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4155
4156 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4157 in error message.
4158
4159 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4160
4161 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4162 value test.
4163
4164 2011-01-31 Yao Qi <yao@codesourcery.com>
4165
4166 * arm-linux-nat.c: Update calls to regcache_register_status
4167 instead of regcache_valid_p.
4168 * aix-thread.c: Likewise.
4169 * i386gnu-nat.c: Likewise.
4170
4171 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4172
4173 Fix crash.
4174 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4175 touching TYPE_FIELD_ARTIFICIAL.
4176
4177 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4178
4179 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4180 Committers.
4181
4182 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4183
4184 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4185 selected, don't try iterating over the traceframe's blocks.
4186 (tfile_has_stack): If there's no traceframe selected, then there's
4187 no stack.
4188 (tfile_has_registers): If there's no traceframe selected, then
4189 there's no registers.
4190
4191 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4192
4193 * target.c (memory_xfer_partial): No need to restore shadows if we
4194 haven't read anything.
4195
4196 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4197
4198 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4199 and val_print_scalar_formatted.
4200
4201 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4202
4203 * tracepoint.c (tfile_read): New.
4204 (tfile_open): Use it.
4205 (tfile_get_traceframe_address): Use it.
4206 (tfile_trace_find): Use it.
4207 (walk_blocks_callback_func): New typedef.
4208 (match_blocktype): New function.
4209 (traceframe_walk_blocks): New function.
4210 (traceframe_find_block_type): New function.
4211 (tfile_fetch_registers, tfile_xfer_partial)
4212 (tfile_get_trace_state_variable_value): Use
4213 traceframe_find_block_type and tfile_read.
4214
4215 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4216
4217 * remote-mips.c: Add internationalization mark ups. Remove
4218 trailing \n from already marked up strings.
4219
4220 2011-01-26 Tom Tromey <tromey@redhat.com>
4221
4222 * python/py-prettyprint.c (print_string_repr): Clear
4223 'addressprint' option when calling val_print_string.
4224 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4225 option when calling val_print_string.
4226
4227 2011-01-26 Tom Tromey <tromey@redhat.com>
4228
4229 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4230 GDB_PY_LL_ARG.
4231 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4232 macros.
4233 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4234 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4235 (gdb_py_long_as_ulongest): New defines.
4236 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4237 (gdb_py_int_as_long): Declare.
4238 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4239 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4240 (valpy_long): Add comment.
4241 * python/py-utils.c (get_addr_from_python): Use
4242 gdb_py_long_as_ulongest. Handle overflow properly.
4243 (gdb_py_object_from_longest): New function.
4244 (gdb_py_object_from_ulongest): Likewise.
4245 (gdb_py_int_as_long): Likewise.
4246 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4247 * python/py-symtab.c (salpy_get_pc): Use
4248 gdb_py_long_from_ulongest.
4249 (salpy_get_line): Use PyInt_FromLong.
4250 * python/py-param.c (set_parameter_value): Use
4251 gdb_py_int_as_long.
4252 * python/py-lazy-string.c (stpy_get_address): Use
4253 gdb_py_long_from_ulongest.
4254 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4255 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4256 * python/py-breakpoint.c (bppy_set_thread): Use
4257 gdb_py_int_as_long.
4258 (bppy_set_task): Likewise.
4259 (bppy_set_ignore_count): Likewise.
4260 (bppy_set_hit_count): Likewise.
4261 * python/py-block.c (blpy_get_start): Use
4262 gdb_py_object_from_ulongest.
4263 (blpy_get_end): Likewise.
4264 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4265
4266 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4267
4268 PR/symtab 11766:
4269 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4270 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4271 equality test for objfile, initialize addr_low if needed.
4272
4273 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4274
4275 * tui/tui-regs.c (tui_register_format): Remove dead code.
4276
4277 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4278
4279 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4280 instead of print_scalar_formatted.
4281 (print_scalar_formatted): Don't handle 's' format strings here,
4282 and add an assertion that we never see such format here.
4283 * valprint.h (val_print_scalar_formatted): Declare.
4284 * valprint.c (val_print_scalar_formatted): New.
4285 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4286 instead of print_scalar_formatted.
4287 * jv-valprint.c (java_val_print): Ditto.
4288 * p-valprint.c (pascal_val_print): Ditto.
4289 * ada-valprint.c (ada_val_print_1): Ditto.
4290 * f-valprint.c (f_val_print): Ditto.
4291 * infcmd.c (registers_info): Ditto.
4292 * m2-valprint.c (m2_val_print): Ditto.
4293
4294 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4295
4296 * m2-valprint.c (print_unbounded_array): Pass
4297 value_contents_for_printing rather than value_contents, to
4298 m2_print_array_contents. Also pass in the value.
4299
4300 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4301
4302 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4303 (save_gdb_index_command): Switch to .gdb_index version 4.
4304
4305 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4306
4307 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4308 than frame_register, and always pass a valid value to val_print.
4309
4310 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4311
4312 Centralize printing "<optimized out>".
4313
4314 * valprint.h (val_print_optimized_out): Declare.
4315 * cp-valprint.c (cp_print_value_fields): Use
4316 val_print_optimized_out.
4317 * jv-valprint.c (java_print_value_fields): Ditto.
4318 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4319 * printcmd.c (print_formatted): Ditto.
4320 * valprint.c (valprint_check_validity): Ditto.
4321 (value_check_printable): Ditto.
4322 (val_print_optimized_out): New.
4323
4324 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4325
4326 * infcmd.c (default_print_registers_info): Allocate values so to
4327 never pass a NULL value to val_print.
4328
4329 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4330
4331 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4332 boolean. Make sure to always pass a value that matches the
4333 contents buffer to callees. Preserve `address' for following
4334 iterations.
4335 * value.c (value_contents_for_printing_const): New.
4336 (value_address): Constify value argument.
4337 * value.h (value_contents_for_printing_const): Declare.
4338 (value_address): Constify value argument.
4339
4340 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4341
4342 * regcache.c (struct regcache_descr): Rename
4343 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4344 and sizeof_cooked_register_valid_p to
4345 sizeof_cooked_register_status.
4346 (init_regcache_descr): Adjust.
4347 (struct regcache): Rename register_valid_p field to
4348 register_status.
4349 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4350 (do_cooked_read): Adjust.
4351 (regcache_valid_p): Rename to ...
4352 (regcache_register_status): ... this. Adjust.
4353 (regcache_invalidate): Adjust.
4354 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4355 Adjust.
4356 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4357 as unavailable, not valid.
4358 (regcache_dump): Adjust.
4359 * regcache.h (enum register_status): New.
4360 (regcache_register_status): Declare.
4361 (regcache_invalidate): Delete declaration.
4362 * corelow.c (get_core_registers): Adjust.
4363 * tracepoint.c (tfile_fetch_registers): Adjust.
4364 * trad-frame.c (REG_VALUE): Rename to ...
4365 (TF_REG_VALUE): ... this.
4366 (REG_UNKNOWN): Rename to ...
4367 (TF_REG_UNKNOWN): ... this.
4368 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4369 * mi/mi-main.c (register_changed_p): Adjust.
4370
4371 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4372
4373 * regcache.c (struct regcache_descr): Remove outdated comment.
4374 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4375 overallocate hack.
4376 (regcache_xmalloc): Rename to ...
4377 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4378 Allocate the regcache type accordingly.
4379 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4380 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4381 cooked registers, not raw.
4382 (regcache_dup_no_passthrough): Delete.
4383 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4384 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4385 mention obsolete write_register_bytes.
4386 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4387
4388 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4389
4390 Stop remote_read_bytes from handling partial reads itself.
4391
4392 * remote-fileio.c: Include target.h.
4393 (remote_fileio_write_bytes): Delete.
4394 (remote_fileio_func_open, remote_fileio_func_write)
4395 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4396 target_read_memory.
4397 (remote_fileio_func_stat): Use target_read_memory and
4398 target_write_memory.
4399 (remote_fileio_func_gettimeofday): Use target_write_memory.
4400 (remote_fileio_func_system): Use target_read_memory.
4401 * remote.c (remote_write_bytes): Make it static.
4402 (remote_read_bytes): Don't handle partial reads here.
4403 * remote.h (remote_read_bytes): Delete declaration.
4404
4405 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4406
4407 Simplify XML parsing a bit.
4408
4409 * xml-support.h (gdb_xml_parse_quick): Declare.
4410 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4411 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4412 parameter.
4413 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4414 gdb_xml_create_parser_and_cleanup_1.
4415 (gdb_xml_parse_quick): New.
4416 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4417 * osdata.c (osdata_parse): Ditto.
4418 * remote.c (remote_threads_info): Ditto.
4419 * solib-target.c (solib_target_parse_libraries): Ditto.
4420 * xml-syscall.c (syscall_parse_xml): Ditto.
4421 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4422
4423 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4424
4425 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4426 with remote-mips.o added to gdb_target_obs.
4427 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4428
4429 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4430
4431 * ada-valprint.c (val_print_packed_array_elements): Pass the
4432 correct struct value to val_print.
4433 (ada_val_print_1): Ditto.
4434
4435 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4436
4437 Don't lose embedded_offset in printing routines throughout.
4438
4439 * valprint.h (val_print_array_elements): Change prototype.
4440 * valprint.c (val_print_array_elements): Add `embedded_offset'
4441 parameter, and adjust to pass it down to val_print, while passing
4442 `valaddr' or `address' unmodified. Take embedded_offset into
4443 account when checking repetitions.
4444 * c-valprint.c (c_val_print): Pass embedded_offset to
4445 val_print_array_elements instead of adjusting `valaddr' and
4446 `address'.
4447 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4448 embedded_offset to val_print_array_elements instead of adjusting
4449 `valaddr'.
4450 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4451 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4452 val_print_array_elements and pascal_object_print_value_fields
4453 instead of adjusting `valaddr'.
4454 (pascal_object_print_value_fields): Add `offset' parameter, and
4455 adjust to use it.
4456 (pascal_object_print_value): Add `offset' parameter, and adjust to
4457 use it.
4458 (pascal_object_print_static_field): Use
4459 value_contents_for_printing/value_embedded_offset, rather than
4460 value_contents.
4461 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4462 parameter, and adjust to use it. Use
4463 value_contents_for_printing/value_embedded_offset, rather than
4464 value_contents.
4465 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4466 (ada_val_print_array): Add `offset' parameter, and adjust to use
4467 it.
4468 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4469 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4470 Instead work with offsets. Use
4471 value_contents_for_printing/value_embedded_offset, rather than
4472 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4473 and use value_from_pointer to extract a target pointer, rather
4474 than value_from_longest.
4475 (print_variant_part): Add `offset' parameter. Replace
4476 `outer_valaddr' parameter by a new `outer_offset' parameter.
4477 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4478 (ada_value_print): Use
4479 value_contents_for_printing/value_embedded_offset, rather than
4480 value_contents.
4481 (print_record): Add `offset' parameter, and adjust to pass it
4482 down.
4483 (print_field_values): Add `offset' parameter. Replace
4484 `outer_valaddr' parameter by a new `outer_offset' parameter.
4485 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4486 Use value_contents_for_printing/value_embedded_offset, rather than
4487 value_contents.
4488 * d-valprint.c (dynamic_array_type): Use
4489 value_contents_for_printing/value_embedded_offset, rather than
4490 value_contents.
4491 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4492 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4493 (java_print_value_fields): Take `offset' into account. Don't
4494 re-adjust `valaddr'. Instead pass down adjusted offsets.
4495 (java_val_print): Take `embedded_offset' into account. Pass it to
4496 java_print_value_fields.
4497 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4498 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4499 down adjusted offsets.
4500 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4501 (f_val_print): Take `embedded_offset' into account.
4502
4503 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4504
4505 * inflow.c: Include "gdbcmd.h".
4506 (interactive_mode): New static global, moved here from top.c.
4507 (show_interactive_mode): New function, moved here from top.c.
4508 use gdb_has_a_terminal instead of input_from_terminal_p to
4509 determine the current mode.
4510 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4511 setting.
4512 (_initialize_inflow): Add the "set/show interactive-mode"
4513 commands. Moved here from top.c, after having adjusted slightly
4514 the help text.
4515 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4516 to inflow.c.
4517 (input_from_terminal_p): Remove handling of "interactive-mode"
4518 setting, moved to infow.c.
4519 (init_main): Remove creation of the "set/show interactive-mode"
4520 commands, moved to inflow.c.
4521
4522 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4523
4524 * NEWS: Add entry for native ia64-hpux support.
4525
4526 2011-01-19 Tom Tromey <tromey@redhat.com>
4527
4528 PR mi/8618:
4529 * thread.c (free_thread): Free 'name'.
4530 (print_thread_info): Emit thread name. Change CLI output.
4531 (thread_name_command): New function.
4532 (do_captured_thread_select): Emit newline.
4533 (_initialize_thread): Register 'thread name' command.
4534 * target.h (struct target_ops) <to_thread_name>: New field.
4535 (target_thread_name): New macro.
4536 * target.c (update_current_target): Handle to_thread_name.
4537 * python/py-infthread.c (thpy_get_name): New function.
4538 (thpy_set_name): Likewise.
4539 (thread_object_getset): Add "name".
4540 * linux-nat.c (linux_nat_thread_name): New function.
4541 (linux_nat_add_target): Set to_thread_name.
4542 * gdbthread.h (struct thread_info) <name>: New field.
4543
4544 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4545
4546 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4547 (ada_val_print_1): Likewise.
4548
4549 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4550
4551 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4552 upper limit address is not greater than the function end address
4553 when the upper limit could not be computed using the debugging
4554 info.
4555
4556 2011-01-17 Tom Tromey <tromey@redhat.com>
4557
4558 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4559 get_regcomp_error.
4560 * utils.c: Include gdb_regex.h.
4561 (do_regfree_cleanup): New function.
4562 (make_regfree_cleanup): Likewise.
4563 (get_regcomp_error): Likewise.
4564 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4565
4566 2011-01-17 Tom Tromey <tromey@redhat.com>
4567
4568 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4569 re_compile_fastmap.
4570
4571 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4572
4573 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4574 for internal variables.
4575 (last_was_structop): New static variable.
4576 (COMPLETE): New token.
4577 (field_exp): New rule to group all '.' suffix handling.
4578 Add mark_struct_expression calls when approriate to be able
4579 to correctly find fields for completion.
4580 (yylex): Adapt to handle field completion and set INTVAR when
4581 required.
4582
4583 2011-01-14 Yao Qi <yao@codesourcery.com>
4584
4585 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4586 save_reggroup, restore_reggroup and all_reggroup.
4587
4588 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4589
4590 * ada-valprint. (ada_printchar): Use the correct type length
4591 in call to ada_emit_char.
4592 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4593
4594 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4595
4596 * solib-som.h (hpux_major_release): Declare variable here.
4597 * solib-som.c: Remove <sys/utsname.h> header.
4598 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4599 (hpux_major_release): Make global, change default value to
4600 DEFAULT_HPUX_MAJOR_RELEASE.
4601 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4602 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4603 Add "solib-som.h" header.
4604 (set_hpux_major_release): New function.
4605 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4606
4607 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4608
4609 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4610
4611 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4612
4613 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4614 new-line at end of warning message.
4615 (ia64_hpux_store_register): Remove trailing new-line at end of
4616 error message.
4617 * ia64-hpux-tdep.c: Rephrase comment.
4618 * solib-ia64-hpux.c (struct dld_info): Change type of field
4619 dld_flags from "long long" to ULONGEST.
4620
4621 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4622
4623 * target.h (deprecated_child_ops): Delete declaration.
4624 * target.c (deprecated_child_ops): Delete definition.
4625
4626 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4627
4628 * Makefile.in (hpux-thread.o): Delete rule.
4629 * configure.ac: Don't check for HPUX DCE threads support.
4630 * configure, config.in: Regenerate.
4631 * hppa-hpux-nat.c (child_suppress_run): Delete.
4632 (hppa_hpux_child_can_run): Delete.
4633 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4634 * hpux-thread.c: Delete.
4635
4636 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4637
4638 * hpux-thread.c (hpux_pid_to_str): Delete.
4639
4640 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4641
4642 * ada-valprint.c (ada_emit_char): Remove strange code.
4643 Check that c is <= UCHAR_MAX before passing it to isascii.
4644 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4645
4646 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4647
4648 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4649 to the case where instream is stdin.
4650
4651 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4652
4653 * ia64-tdep.h (struct regcache): Forward declare.
4654 (struct ia64_infcall_ops): New struct type.
4655 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4656 and "infcall_ops".
4657 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4658 Renames ia64_find_global_pointer.
4659 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4660 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4661 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4662 methods.
4663 (ia64_infcall_ops): New static global constant.
4664 (ia64_gdbarch_init): Set tdep->infcall_ops.
4665 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4666 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4667 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4668 (ia64_hpux_dummy_code): New static global constant.
4669 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4670 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4671 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4672 New function.
4673 (ia64_hpux_infcall_ops): New static global constant.
4674 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4675 for inferior function calls to work properly on ia64-hpux.
4676
4677 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4678
4679 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4680 * ia64-tdep.h (struct frame_info): forward declaration.
4681 (struct gdbarch_tdep): Add field size_of_register_frame.
4682 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4683 to determine the size of the register frame.
4684 (ia64_size_of_register_frame): New function.
4685 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4686 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4687 (IA64_HPUX_UREG_REASON): New macro.
4688 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4689 New functions.
4690 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4691 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4692 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4693 objects.
4694
4695 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4696
4697 Add support for ia64-hpux.
4698 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4699 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4700
4701 * configure.host: Add handling for ia64-hpux hosts. Add associated
4702 floatformats.
4703 * configure.tgt: Add handling for ia64-hpux targets.
4704 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4705 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4706 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4707
4708 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4709
4710 [ttrace] Compute thread list immediately after attach.
4711 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4712 New subprogram.
4713 (inf_ttrace_attach): Use it.
4714
4715 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4716
4717 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4718 if we could not determine the frame's function address. Instead,
4719 use the frame's PC, and then continue.
4720
4721 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4722
4723 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4724 not already defined.
4725
4726 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4727
4728 * ia64-tdep.c (ia64_struct_type_p): New function.
4729 (ia64_extract_return_value): Handle integral values that are
4730 less than 8 bytes long.
4731 (ia64_push_dummy_call): Likewise.
4732
4733 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4734
4735 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4736 floatformat_ia64_ext.
4737 (floatformat_ia64_ext_big): New static const.
4738 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4739
4740 2011-01-12 Tom Tromey <tromey@redhat.com>
4741
4742 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4743 messages.
4744 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4745 (mi_cmd_thread_list_ids): Likewise.
4746 (mi_cmd_data_list_changed_registers): Likewise.
4747 (mi_cmd_data_list_register_values): Likewise.
4748 (mi_cmd_data_write_register_values): Likewise.
4749 (mi_cmd_data_evaluate_expression): Likewise.
4750 (mi_cmd_data_read_memory): Likewise.
4751 (mi_cmd_data_read_memory_bytes): Likewise.
4752 (mi_cmd_data_write_memory): Likewise.
4753 (mi_cmd_enable_timings): Likewise.
4754 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4755 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4756 (mi_cmd_var_delete): Likewise.
4757 (mi_cmd_var_set_format): Likewise.
4758 (mi_cmd_var_show_format): Likewise.
4759 (mi_cmd_var_info_num_children): Likewise.
4760 (mi_cmd_var_list_children): Likewise.
4761 (mi_cmd_var_info_type): Likewise.
4762 (mi_cmd_var_info_expression): Likewise.
4763 (mi_cmd_var_show_attributes): Likewise.
4764 (mi_cmd_var_assign): Likewise.
4765 (mi_cmd_var_update): Likewise.
4766 (mi_cmd_enable_pretty_printing): Likewise.
4767 (mi_cmd_var_set_update_range): Likewise.
4768 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4769 messages.
4770 (mi_cmd_target_file_put): Likewise.
4771 (mi_cmd_target_file_delete): Likewise.
4772 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4773 messages.
4774 (mi_cmd_stack_info_depth): Likewise.
4775 (mi_cmd_stack_list_locals): Likewise.
4776 (mi_cmd_stack_list_args): Likewise.
4777 (mi_cmd_stack_select_frame): Likewise.
4778 (mi_cmd_stack_select_frame): Likewise.
4779 (mi_cmd_stack_info_frame): Likewise.
4780 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4781 messages.
4782 (mi_cmd_file_list_exec_source_files): Likewise.
4783 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4784 (mi_cmd_env_cd): Likewise.
4785 (mi_cmd_env_path): Likewise.
4786 (mi_cmd_env_dir): Likewise.
4787 (mi_cmd_inferior_tty_show): Likewise.
4788 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4789 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4790 (mi_cmd_break_watch): Likewise.
4791
4792 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4793
4794 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4795 (ppc_linux_insert_hw_breakpoint): Likewise.
4796 (ppc_linux_remove_hw_breakpoint): Likewise.
4797 (ppc_linux_insert_watchpoint): Likewise.
4798
4799 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4800 Jan Kratochvil <jan.kratochvil@redhat.com>
4801
4802 PR fortran/11104 and DWARF unbound arrays detection.
4803 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4804 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4805 unspecified upper bound.
4806 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4807 variables array_size_array, tmp_type and offset_item. New variable
4808 array. Remove call to f77_get_upperbound. New variables array_type
4809 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4810 the final call to deprecated_set_value_type.
4811
4812 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4813
4814 Make value allocations more lazy.
4815 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4816 instead of allocate_value and set_value_lazy when possible.
4817 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4818 instead of allocate_value and set_value_lazy.
4819 * findvar.c (value_of_register_lazy): Likewise.
4820 (read_var_value): Remove V preallocation, call just check_typedef in
4821 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4822 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4823 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4824 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4825 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4826 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4827 the end, remove set_value_lazy there.
4828 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4829 instead of allocate_value and set_value_lazy when possible.
4830 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4831 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4832 of allocate_value and set_value_lazy.
4833 (value_from_contents_and_address): Use allocate_value_lazy instead of
4834 allocate_value and set_value_lazy when possible.
4835
4836 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4837
4838 * disasm.c (dump_insns): Support dumping opcodes for MI.
4839 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4840 dumping of instruction opcodes.
4841
4842 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4843
4844 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4845 appropiately.
4846
4847 2011-01-11 Tom Tromey <tromey@redhat.com>
4848
4849 * thread.c (do_captured_thread_select): Emit newline before
4850 printing frame.
4851
4852 2011-01-11 Michael Snyder <msnyder@vmware.com>
4853
4854 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4855 * score-tdep.c: Ditto.
4856 * score-tdep.h: Ditto.
4857 * ser-base.c: Ditto.
4858 * ser-go32.c: Ditto.
4859 * serial.c: Ditto.
4860 * serial.h: Ditto.
4861 * ser-mingw.c: Ditto.
4862 * ser-pipe.c: Ditto.
4863 * ser-tcp.c: Ditto.
4864 * ser-unix.c: Ditto.
4865 * sh64-tdep.c: Ditto.
4866 * shnbsd-nat.c: Ditto.
4867 * sh-tdep.c: Ditto.
4868 * sh-tdep.h: Ditto.
4869 * solib.c: Ditto.
4870 * solib-darwin.c: Ditto.
4871 * solib-frv.c: Ditto.
4872 * solib.h: Ditto.
4873 * solib-irix.c: Ditto.
4874 * solib-osf.c: Ditto.
4875 * solib-pa64.c: Ditto.
4876 * solib-som.c: Ditto.
4877 * solib-spu.c: Ditto.
4878 * solib-sunos.c: Ditto.
4879 * solib-svr4.c: Ditto.
4880 * solist.h: Ditto.
4881 * sol-thread.c: Ditto.
4882 * somread.c: Ditto.
4883 * source.c: Ditto.
4884 * source.h: Ditto.
4885 * sparc64-linux-tdep.c: Ditto.
4886 * sparc64-tdep.c: Ditto.
4887 * sparc-linux-nat.c: Ditto.
4888 * sparc-linux-tdep.c: Ditto.
4889 * sparc-sol2-nat.c: Ditto.
4890 * sparc-sol2-tdep.c: Ditto.
4891 * sparc-tdep.c: Ditto.
4892 * sparc-tdep.h: Ditto.
4893 * spu-tdep.c: Ditto.
4894 * stabsread.c: Ditto.
4895 * stabsread.h: Ditto.
4896 * stack.c: Ditto.
4897 * symfile.c: Ditto.
4898 * symfile.h: Ditto.
4899 * symmisc.c: Ditto.
4900 * symtab.c: Ditto.
4901 * symtab.h: Ditto.
4902 * target.c: Ditto.
4903 * target-descriptions.c: Ditto.
4904 * target-descriptions.h: Ditto.
4905 * target.h: Ditto.
4906 * target-memory.c: Ditto.
4907 * terminal.h: Ditto.
4908 * thread.c: Ditto.
4909 * top.c: Ditto.
4910 * tracepoint.c: Ditto.
4911 * tracepoint.h: Ditto.
4912 * trad-frame.h: Ditto.
4913 * typeprint.c: Ditto.
4914
4915 2011-01-11 Michael Snyder <msnyder@vmware.com>
4916
4917 * ui-file.c: Comment cleanup, mostly periods and spaces.
4918 * ui-file.h: Ditto.
4919 * ui-out.c: Ditto.
4920 * ui-out.h: Ditto.
4921 * utils.c: Ditto.
4922 * v850-tdep.c: Ditto.
4923 * valarith.c: Ditto.
4924 * valops.c: Ditto.
4925 * valprint.c: Ditto.
4926 * valprint.h: Ditto.
4927 * value.c: Ditto.
4928 * value.h: Ditto.
4929 * varobj.c: Ditto.
4930 * varobj.h: Ditto.
4931 * vax-tdep.c: Ditto.
4932 * vec.c: Ditto.
4933 * vec.h: Ditto.
4934 * version.h: Ditto.
4935 * windows-nat.c: Ditto.
4936 * windows-tdep.c: Ditto.
4937 * xcoffread.c: Ditto.
4938 * xcoffsolib.c: Ditto.
4939 * xml-support.c: Ditto.
4940 * xstormy16-tdep.c: Ditto.
4941 * xtensa-tdep.c: Ditto.
4942 * xtensa-tdep.h: Ditto.
4943
4944 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4945
4946 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4947 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4948
4949 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4950 Thiago Jung Bauermann <bauerman@br.ibm.com>
4951
4952 Implement support for PowerPC BookE ranged watchpoints.
4953 * breakpoint.h
4954 (struct breakpoint_ops) <resources_needed>: New method.
4955 Initialize to NULL in all existing breakpoint_ops instances.
4956 (struct breakpoint) <exact>: New field.
4957 (target_exact_watchpoints): Declare external global.
4958 * breakpoint.c (target_exact_watchpoints): New global flag.
4959 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4960 b->enable_state to bp_enabled before calling
4961 hw_watchpoint_used_count.
4962 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4963 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4964 if available.
4965 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4966 if the watchpoint is exact.
4967 (resources_needed_watchpoint): New function.
4968 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4969 (watch_command_1): Set b->exact if the user asked for an exact
4970 watchpoint and one can be set.
4971 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4972 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4973 the user asks for an exact watchpoint and one can be set. Return
4974 number of needed debug registers to watch the expression.
4975 * gdbtypes.c (is_scalar_type): New function, based on
4976 valprint.c:scalar_type_p.
4977 (is_scalar_type_recursive): New function.
4978 * gdbtypes.h (is_scalar_type_recursive): Declare.
4979 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4980 handle regions when ranged watchpoints are available.
4981 (create_watchpoint_request): New function.
4982 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4983 create_watchpoint_request.
4984 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4985 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4986 `set powerpc' and `show powerpc' commands.
4987 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4988 Mention documentation comment in the target macro.
4989 (target_region_ok_for_hw_watchpoint): Document return value.
4990
4991 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4992
4993 * breakpoint.c (update_watchpoint): Decide on using a software or
4994 hardware watchpoint after the bp_locations are created.
4995
4996 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4997
4998 Convert hardware watchpoints to use breakpoint_ops.
4999 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5000 <insert_location>: ... this. Return int instead of void.
5001 Accept pointer to struct bp_location instead of pointer to
5002 struct breakpoint. Adapt all implementations.
5003 (breakpoint_ops) <remove>: Rename to...
5004 <remove_location>: ... this. Accept pointer to struct bp_location
5005 instead of pointer to struct breakpoint. Adapt all implementations.
5006 * breakpoint.c (insert_catchpoint): Delete function.
5007 (insert_bp_location): Call the watchpoint or catchpoint's
5008 breakpoint_ops.insert method.
5009 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5010 breakpoint_ops.remove method.
5011 (insert_watchpoint, remove_watchpoint): New functions.
5012 (watchpoint_breakpoint_ops): New structure.
5013 (watch_command_1): Initialize the OPS field.
5014 * inf-child.c (inf_child_insert_fork_catchpoint)
5015 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5016 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5017 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5018 Delete functions.
5019 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5020 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5021 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5022 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5023 * target.c (update_current_target): Change default implementation of
5024 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5025 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5026 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5027 to_set_syscall_catchpoint to return_one.
5028 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5029 (debug_to_insert_exec_catchpoint): Report return value.
5030 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5031 (to_insert_exec_catchpoint): Change declaration to return int instead
5032 of void.
5033
5034 2011-01-11 Michael Snyder <msnyder@vmware.com>
5035
5036 * arm-tdep.c: Internationalization.
5037 * c-lang.c: Ditto.
5038 * charset.c: Ditto.
5039 * fork-child.c: Ditto.
5040 * nto-procfs.c: Ditto.
5041 * ppc-sysv-tdep.c: Ditto.
5042 * procfs.c: Ditto.
5043 * remote-mips.c: Ditto.
5044 * remote.c: Ditto.
5045 * rs6000-nat.c: Ditto.
5046 * rs6000-tdep.c: Ditto.
5047 * target.c: Ditto.
5048 * valops.c: Ditto.
5049 * value.c: Ditto.
5050 * xml-support.c: Ditto.
5051 * mi/mi-cmd-break.c: Ditto.
5052 * mi/mi-cmd-var.c: Ditto.
5053 * mi/mi-interp.c: Ditto.
5054 * mi/mi-main.c: Ditto.
5055
5056 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5057
5058 * remote-sim.c (gdbsim_store_register): Update API to
5059 sim_store_register to check more error conditions.
5060
5061 2011-01-10 Michael Snyder <msnyder@vmware.com>
5062
5063 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5064 * nto-tdep.c: Ditto.
5065 * nto-tdep.h: Ditto.
5066 * objc-exp.y: Ditto.
5067 * objc-lang.c: Ditto.
5068 * objfiles.c: Ditto.
5069 * objfiles.h: Ditto.
5070 * observer.c: Ditto.
5071 * opencl-lang.c: Ditto.
5072 * osabi.c: Ditto.
5073 * parse.c: Ditto.
5074 * parser-defs.h: Ditto.
5075 * p-exp.y: Ditto.
5076 * p-lang.c: Ditto.
5077 * posix-hdep.c: Ditto.
5078 * ppcbug-rom.c: Ditto.
5079 * ppc-linux-nat.c: Ditto.
5080 * ppc-linux-tdep.c: Ditto.
5081 * ppc-linux-tdep.h: Ditto.
5082 * ppcnbsd-tdep.c: Ditto.
5083 * ppcobsd-tdep.c: Ditto.
5084 * ppcobsd-tdep.h: Ditto.
5085 * ppc-sysv-tdep.c: Ditto.
5086 * ppc-tdep.h: Ditto.
5087 * printcmd.c: Ditto.
5088 * proc-abi.c: Ditto.
5089 * proc-flags.c: Ditto.
5090 * procfs.c: Ditto.
5091 * proc-utils.h: Ditto.
5092 * progspace.h: Ditto.
5093 * prologue-value.c: Ditto.
5094 * prologue-value.h: Ditto.
5095 * psympriv.h: Ditto.
5096 * psymtab.c: Ditto.
5097 * p-typeprint.c: Ditto.
5098 * p-valprint.c: Ditto.
5099 * ravenscar-sparc-thread.c: Ditto.
5100 * ravenscar-thread.c: Ditto.
5101 * ravenscar-thread.h: Ditto.
5102 * record.c: Ditto.
5103 * regcache.c: Ditto.
5104 * regcache.h: Ditto.
5105 * remote.c: Ditto.
5106 * remote-fileio.c: Ditto.
5107 * remote-fileio.h: Ditto.
5108 * remote.h: Ditto.
5109 * remote-m32r-sdi.c: Ditto.
5110 * remote-mips.c: Ditto.
5111 * remote-sim.c: Ditto.
5112 * rs6000-aix-tdep.c: Ditto.
5113 * rs6000-nat.c: Ditto.
5114 * rs6000-tdep.c: Ditto.
5115
5116 2011-01-10 Michael Snyder <msnyder@vmware.com>
5117
5118 * charset.c (validate): Internationalization.
5119 * coffread.c (read_one_sym): Ditto.
5120 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5121 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5122 * inflow.c (new_tty): Ditto.
5123 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5124 * m32c-tdep.c (m32c_return_value): Ditto.
5125 * mep-tdep.c (mep_store_return_value): Ditto.
5126 * score-tdep.c (score7_fetch_insn): Ditto.
5127 * ser-mingw.c (pipe_windows_open): Ditto.
5128 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5129 * spu-tdep.c (spu_register_type): Ditto.
5130 * tracepoint.c (trace_find_command): Ditto.
5131 * valarith.c (value_pos): Ditto.
5132
5133 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5134
5135 * ada-valprint.c (printstr): Minor comment reformatting.
5136
5137 2011-01-08 Michael Snyder <msnyder@vmware.com>
5138
5139 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5140 markup.
5141
5142 2011-01-08 Michael Snyder <msnyder@vmware.com>
5143
5144 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5145 * hppa-hpux-tdep.c: Ditto.
5146 * hppa-linux-nat.c: Ditto.
5147 * hppa-linux-tdep.c: Ditto.
5148 * hppanbsd-tdep.c: Ditto.
5149 * hppa-tdep.c: Ditto.
5150 * hppa-tdep.h: Ditto.
5151 * hpux-thread.c: Ditto.
5152 * i386-cygwin-tdep.c: Ditto.
5153 * i386-darwin-nat.c: Ditto.
5154 * i386gnu-nat.c: Ditto.
5155 * i386-linux-nat.c: Ditto.
5156 * i386-linux-tdep.c: Ditto.
5157 * i386-nat.c: Ditto.
5158 * i386-nat.h: Ditto.
5159 * i386nbsd-tdep.c: Ditto.
5160 * i386-sol2-nat.c: Ditto.
5161 * i386-stub.c: Ditto.
5162 * i386-tdep.c: Ditto.
5163 * i386-tdep.h: Ditto.
5164 * i387-tdep.c: Ditto.
5165 * ia64-linux-nat.c: Ditto.
5166 * ia64-linux-tdep.c: Ditto.
5167 * ia64-tdep.c: Ditto.
5168 * infcall.c: Ditto.
5169 * infcall.h: Ditto.
5170 * infcmd.c: Ditto.
5171 * inferior.c: Ditto.
5172 * inferior.h: Ditto.
5173 * infloop.c: Ditto.
5174 * inflow.c: Ditto.
5175 * infrun.c: Ditto.
5176 * interps.c: Ditto.
5177 * interps.h: Ditto.
5178 * iq2000-tdep.c: Ditto.
5179 * irix5-nat.c: Ditto.
5180 * jit.c: Ditto.
5181 * jit.h: Ditto.
5182 * jv-exp.y: Ditto.
5183 * jv-lang.c: Ditto.
5184 * jv-lang.h: Ditto.
5185 * jv-typeprint.c: Ditto.
5186 * jv-valprint.c: Ditto.
5187 * language.c: Ditto.
5188 * language.h: Ditto.
5189 * linespec.c: Ditto.
5190 * linux-fork.c: Ditto.
5191 * linux-nat.c: Ditto.
5192 * linux-thread-db.c: Ditto.
5193 * lm32-tdep.c: Ditto.
5194
5195 2011-01-08 Michael Snyder <msnyder@vmware.com>
5196
5197 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5198 * m2-lang.c: Ditto.
5199 * m2-typeprint.c: Ditto.
5200 * m2-valprint.c: Ditto.
5201 * m32c-tdep.c: Ditto.
5202 * m32r-linux-nat.c: Ditto.
5203 * m32r-rom.c: Ditto.
5204 * m32r-tdep.c: Ditto.
5205 * m32r-tdep.h: Ditto.
5206 * m68hc11-tdep.c: Ditto.
5207 * m58klinux-nat.c: Ditto.
5208 * m68k-tdep.c: Ditto.
5209 * m88k-tdep.c: Ditto.
5210 * m88k-tdep.h: Ditto.
5211 * machoread.c: Ditto.
5212 * macrocmd.c: Ditto.
5213 * macroexp.c: Ditto.
5214 * macrotab.c: Ditto.
5215 * main.c: Ditto.
5216 * maint.c: Ditto.
5217 * mdebugread.c: Ditto.
5218 * mdebugread.h: Ditto.
5219 * memattr.c: Ditto.
5220 * memattr.h: Ditto.
5221 * memory-map.h: Ditto.
5222 * mep-tdep.c: Ditto.
5223 * microblaze-rom.c: Ditto.
5224 * microblaze-tdep.c: Ditto.
5225 * minsyms.c: Ditto.
5226 * mips-irix-tdep.c: Ditto.
5227 * mips-linux-nat.c: Ditto.
5228 * mips-linux-tdep.c: Ditto.
5229 * mips-linux-tdep.h: Ditto.
5230 * mipsnbsd-nat.c: Ditto.
5231 * mipsnbsd-tdep.c: Ditto.
5232 * mipsread.c: Ditto.
5233 * mips-tdep.c: Ditto.
5234 * mips-tdep.h: Ditto.
5235 * mn10300-linux-tdep.c: Ditto.
5236 * mn10300-tdep.c: Ditto.
5237 * mn10300-tdep.h: Ditto.
5238 * monitor.c: Ditto.
5239 * monitor.h: Ditto.
5240 * moxie-tdep.c: Ditto.
5241 * moxie-tdep.h: Ditto.
5242 * mt-tdep.c: Ditto.
5243
5244 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5245
5246 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5247
5248 2011-01-08 Robert Millan <rmh@gnu.org>
5249
5250 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5251
5252 2011-01-07 Michael Snyder <msnyder@vmware.com>
5253
5254 * charset.c (_initialize_charset): Fix typo in string.
5255
5256 2011-01-07 Michael Snyder <msnyder@vmware.com>
5257
5258 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5259 for i18n.
5260 * tui/tui-layout.c (tui_set_layout_for_display_command):
5261 Split line so that operator goes to beginning of line.
5262 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5263 assignment out of if statement.
5264
5265 2011-01-07 Michael Snyder <msnyder@vmware.com>
5266
5267 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5268 * ada-lang.h: Ditto.
5269 * ada-tasks.c: Ditto.
5270 * ada-valprint.c: Ditto.
5271 * aix-threads.c: Ditto.
5272 * alpha-linux-nat.c: Ditto.
5273 * alpha-linux-tdep.c: Ditto.
5274 * alpha-mdebug-tdep.c: Ditto.
5275 * alpha-nat.c: Ditto.
5276 * alpha-osf1-tdep.c: Ditto.
5277 * alpha-tdep.c: Ditto.
5278 * alphabsd-nat.c: Ditto.
5279 * alphabsd-tdep.c: Ditto.
5280 * amd64-darwin-tdep.c: Ditto.
5281 * amd64-linux-nat.c: Ditto.
5282 * amd64-linux-tdep.c: Ditto.
5283 * amd64-sol2-tdep.c: Ditto.
5284 * amd64-tdep.c: Ditto.
5285 * amd64-fbsd-tdep.c: Ditto.
5286 * amd64-nbsd-tdep.c: Ditto.
5287 * amd64-obsd-tdep.c: Ditto.
5288 * amd64-linux-nat.c: Ditto.
5289 * amd64-linux-tdep.c: Ditto.
5290 * arm-tdep.c: Ditto.
5291 * arm-tdep.h: Ditto.
5292 * armnbsd-nat.c: Ditto.
5293 * avr-tdep.c: Ditto.
5294 * bfin-tdep.c: Ditto.
5295 * bsd-kvm.c: Ditto.
5296 * c-typeprintc: Ditto.
5297 * c-valprint.c: Ditto.
5298 * coff-pe-read.h: Ditto.
5299 * coffreead.c: Ditto.
5300 * cris-tdep.c: Ditto.
5301 * d-lang.c: Ditto.
5302 * darwin-nat-info.c: Ditto.
5303 * darwin-nat.c: Ditto.
5304 * dbug-rom.c: Ditto.
5305 * dbxread.c: Ditto.
5306 * dcache.c: Ditto.
5307 * dcache.h: Ditto.
5308 * dec-thread.c: Ditto.
5309 * defs.h: Ditto.
5310 * demangle.c: Ditto.
5311 * dicos-tdep.c: Ditto.
5312 * dictionary.c: Ditto.
5313 * dictionary.h: Ditto.
5314 * dink32-rom.c: Ditto.
5315 * disasm.c: Ditto.
5316 * doublest.c: Ditto.
5317 * dsrec.c: Ditto.
5318 * dummy-frame.c: Ditto.
5319 * dwarf2-frame.c: Ditto.
5320 * dwarf2expr.c: Ditto.
5321 * dwarf2loc.c: Ditto.
5322 * dwarf2read.c: Ditto.
5323 * elfread.c: Ditto.
5324 * environ.c: Ditto.
5325 * eval.c: Ditto.
5326 * event-top.h: Ditto.
5327 * exceptions.c: Ditto.
5328 * exceptions.h: Ditto.
5329 * exec.c: Ditto.
5330 * expprint.c: Ditto.
5331 * expression.h: Ditto.
5332 * f-exp.y: Ditto.
5333 * f-lang.c: Ditto.
5334 * f-lang.h: Ditto.
5335 * f-typeprint.c: Ditto.
5336 * f-valprint.c: Ditto.
5337 * fbsd-nat.c: Ditto.
5338 * findvar.c: Ditto.
5339 * fork-child.c: Ditto.
5340 * frame.c: Ditto.
5341 * frame.h: Ditto.
5342 * frv-linux-tdep.c: Ditto.
5343 * frv-tdep.c: Ditto.
5344 * gcore.c: Ditto.
5345 * gdb-stabs.h: Ditto.
5346 * gdb_assert.h: Ditto.
5347 * gdb_string.h: Ditto.
5348 * gdb_thread_db.h: Ditto.
5349 * gdb_wait.h: Ditto.
5350 * gdbarch.sh: Ditto.
5351 * gdbcore.h: Ditto.
5352 * gdbthread.h: Ditto.
5353 * gdbtypes.c: Ditto.
5354 * gdbtypes.h: Ditto.
5355 * gnu-nat.c: Ditto.
5356 * gnu-nat.h: Ditto.
5357 * gnu-v2-abi.c: Ditto.
5358 * gnu-v3-abi.c: Ditto.
5359 * go32-nat.c: Ditto.
5360 * gdbarch.c: Regenerate.
5361 * gdbarch.h: Regenerate.
5362
5363 2011-01-07 Michael Snyder <msnyder@vmware.com>
5364
5365 * ax-gdb.c: Adjust some long output strings.
5366 * breakpoint.c: Ditto.
5367 * charset.c: Ditto.
5368 * cp-abi.c: Ditto.
5369 * infcall.c: Ditto.
5370 * infrun.c: Ditto.
5371 * linux-nat.c: Ditto.
5372 * solib-pa64.c: Ditto.
5373 * solib-som.c: Ditto.
5374
5375 2011-01-06 Tom Tromey <tromey@redhat.com>
5376
5377 PR python/12367:
5378 * NEWS: Add item.
5379 * python/python.c (GdbMethods): Add "newest_frame" method.
5380 * python/python-internal.h (gdbpy_newest_frame): Declare.
5381 * python/py-frame.c (gdbpy_newest_frame): New function.
5382
5383 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5384
5385 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5386 * jit.c (jit_debug): New variable.
5387 (show_jit_debug): New function.
5388 (struct target_buffer): Use ULONGEST.
5389 (bfd_open_from_target_memory): Likewise.
5390 (jit_register_code, jit_inferior_init): Add debug output.
5391 (_initialize_jit): Register "debug jit" command.
5392
5393 2011-01-06 Tom Tromey <tromey@redhat.com>
5394
5395 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5396 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5397 and ARCH_FRAME.
5398
5399 2011-01-06 Tom Tromey <tromey@redhat.com>
5400
5401 * python/py-frame.c (frapy_block): Use get_frame_block.
5402
5403 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5404
5405 Do not stop on SIGPRIO signals by default
5406 * infrun.c (_initialize_infrun): Unset signal_stop and
5407 signal_print for TARGET_SIGNAL_PRIO.
5408
5409 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5410
5411 * ada-tasks.c: Fix style violation in comment.
5412
5413 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5414
5415 * linespec.c (decode_compound, find_method): Remove trailing \n
5416 at end of error string.
5417 * solib-irix.c (irix_current_sos): Likewise.
5418 * varobj.c (uninstall_variable): Likewise.
5419
5420 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5421
5422 * copyright.py: New script.
5423 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5424 Launch emacs without exec'ing. Call copyright.py afterwards.
5425
5426 2011-01-05 Michael Snyder <msnyder@vmware.com>
5427
5428 * addrmap.c: Shorten lines of >= 80 columns.
5429 * arch-utils.c: Ditto.
5430 * arch-utils.h: Ditto.
5431 * ax-gdb.c: Ditto.
5432 * ax-general.c: Ditto.
5433 * bcache.c: Ditto.
5434 * blockframe.c: Ditto.
5435 * breakpoint.c: Ditto.
5436 * buildsym.c: Ditto.
5437 * c-lang.c: Ditto.
5438 * c-typeprint.c: Ditto.
5439 * charset.c: Ditto.
5440 * coffread.c: Ditto.
5441 * command.h: Ditto.
5442 * corelow.c: Ditto.
5443 * cp-abi.c: Ditto.
5444 * cp-namespace.c: Ditto.
5445 * cp-support.c: Ditto.
5446 * dbug-rom.c: Ditto.
5447 * dbxread.c: Ditto.
5448 * defs.h: Ditto.
5449 * dfp.c: Ditto.
5450 * dfp.h: Ditto.
5451 * dictionary.c: Ditto.
5452 * disasm.c: Ditto.
5453 * doublest.c: Ditto.
5454 * dwarf2-frame.c: Ditto.
5455 * dwarf2expr.c: Ditto.
5456 * dwarf2loc.c: Ditto.
5457 * dwarf2read.c: Ditto.
5458 * elfread.c: Ditto.
5459 * eval.c: Ditto.
5460 * event-loop.c: Ditto.
5461 * event-loop.h: Ditto.
5462 * exceptions.h: Ditto.
5463 * exec.c: Ditto.
5464 * expprint.c: Ditto.
5465 * expression.h: Ditto.
5466 * f-lang.c: Ditto.
5467 * f-valprint.c: Ditto.
5468 * findcmd.c: Ditto.
5469 * frame-base.c: Ditto.
5470 * frame-unwind.c: Ditto.
5471 * frame-unwind.h: Ditto.
5472 * frame.c: Ditto.
5473 * frame.h: Ditto.
5474 * gcore.c: Ditto.
5475 * gdb-stabs.h: Ditto.
5476 * gdb_assert.h: Ditto.
5477 * gdb_dirent.h: Ditto.
5478 * gdb_obstack.h: Ditto.
5479 * gdbcore.h: Ditto.
5480 * gdbtypes.c: Ditto.
5481 * gdbtypes.h: Ditto.
5482 * inf-ttrace.c: Ditto.
5483 * infcall.c: Ditto.
5484 * infcmd.c: Ditto.
5485 * inflow.c: Ditto.
5486 * infrun.c: Ditto.
5487 * inline-frame.h: Ditto.
5488 * language.c: Ditto.
5489 * language.h: Ditto.
5490 * libunwind-frame.c: Ditto.
5491 * libunwind-frame.h: Ditto.
5492 * linespec.c: Ditto.
5493 * linux-nat.c: Ditto.
5494 * linux-nat.h: Ditto.
5495 * linux-thread-db.c: Ditto.
5496 * machoread.c: Ditto.
5497 * macroexp.c: Ditto.
5498 * macrotab.c: Ditto.
5499 * main.c: Ditto.
5500 * maint.c: Ditto.
5501 * mdebugread.c: Ditto.
5502 * memattr.c: Ditto.
5503 * minsyms.c: Ditto.
5504 * monitor.c: Ditto.
5505 * monitor.h: Ditto.
5506 * objfiles.c: Ditto.
5507 * objfiles.h: Ditto.
5508 * osabi.c: Ditto.
5509 * p-typeprint.c: Ditto.
5510 * p-valprint.c: Ditto.
5511 * parse.c: Ditto.
5512 * printcmd.c: Ditto.
5513 * proc-events.c: Ditto.
5514 * procfs.c: Ditto.
5515 * progspace.c: Ditto.
5516 * progspace.h: Ditto.
5517 * psympriv.h: Ditto.
5518 * psymtab.c: Ditto.
5519 * record.c: Ditto.
5520 * regcache.c: Ditto.
5521 * regcache.h: Ditto.
5522 * remote-fileio.c: Ditto.
5523 * remote.c: Ditto.
5524 * ser-mingw.c: Ditto.
5525 * ser-tcp.c: Ditto.
5526 * ser-unix.c: Ditto.
5527 * serial.c: Ditto.
5528 * serial.h: Ditto.
5529 * solib-frv.c: Ditto.
5530 * solib-irix.c: Ditto.
5531 * solib-osf.c: Ditto.
5532 * solib-pa64.c: Ditto.
5533 * solib-som.c: Ditto.
5534 * solib-sunos.c: Ditto.
5535 * solib-svr4.c: Ditto.
5536 * solib-target.c: Ditto.
5537 * solib.c: Ditto.
5538 * somread.c: Ditto.
5539 * source.c: Ditto.
5540 * stabsread.c: Ditto.
5541 * stabsread.c: Ditto.
5542 * stack.c: Ditto.
5543 * stack.h: Ditto.
5544 * symfile-mem.c: Ditto.
5545 * symfile.c: Ditto.
5546 * symfile.h: Ditto.
5547 * symmisc.c: Ditto.
5548 * symtab.c: Ditto.
5549 * symtab.h: Ditto.
5550 * target-descriptions.c: Ditto.
5551 * target-memory.c: Ditto.
5552 * target.c: Ditto.
5553 * target.h: Ditto.
5554 * terminal.h: Ditto.
5555 * thread.c: Ditto.
5556 * top.c: Ditto.
5557 * tracepoint.c: Ditto.
5558 * tracepoint.h: Ditto.
5559 * ui-file.c: Ditto.
5560 * ui-file.h: Ditto.
5561 * ui-out.h: Ditto.
5562 * user-regs.c: Ditto.
5563 * user-regs.h: Ditto.
5564 * utils.c: Ditto.
5565 * valarith.c: Ditto.
5566 * valops.c: Ditto.
5567 * valprint.c: Ditto.
5568 * valprint.h: Ditto.
5569 * value.c: Ditto.
5570 * varobj.c: Ditto.
5571 * varobj.h: Ditto.
5572 * vec.h: Ditto.
5573 * xcoffread.c: Ditto.
5574 * xcoffsolib.c: Ditto.
5575 * xcoffsolib.h: Ditto.
5576 * xml-syscall.c: Ditto.
5577 * xml-tdesc.c: Ditto.
5578
5579 2011-01-05 Michael Snyder <msnyder@vmware.com>
5580
5581 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5582 * cli/cli-decode.c: Ditto.
5583 * cli/cli-dump.c: Ditto.
5584 * cli/cli-logging.c: Ditto.
5585 * cli/cli-script.c: Ditto.
5586 * cli/cli-setshow.c: Ditto.
5587 * common/signals.c: Ditto.
5588 * mi/mi-cmd-break.c: Ditto.
5589 * mi/mi-cmd-disas.c: Ditto.
5590 * mi/mi-cmd-stack.c: Ditto.
5591 * mi/mi-cmd-var.c: Ditto.
5592 * mi/mi-cmds.c: Ditto.
5593 * mi/mi-common.h: Ditto.
5594 * mi/mi-console.c: Ditto.
5595 * mi/mi-interp.c: Ditto.
5596 * mi/mi-main.c: Ditto.
5597 * osf-share/cma_attr.c: Ditto.
5598 * osf-share/cma_deb_core.h: Ditto.
5599 * osf-share/cma_debug_client.h: Ditto.
5600 * osf-share/cma_handle.h: Ditto.
5601 * osf-share/cma_mutex.h: Ditto.
5602 * osf-share/cma_stack_int.h: Ditto.
5603 * osf-share/cma_tcb_defs.h: Ditto.
5604 * python/py-auto-load.c: Ditto.
5605 * python/py-breakpoint.c: Ditto.
5606 * python/py-cmd.c: Ditto.
5607 * python/py-frame.c: Ditto.
5608 * python/py-objfile.c: Ditto.
5609 * python/py-param.c: Ditto.
5610 * python/py-progspace.c: Ditto.
5611 * python/py-symbol.c: Ditto.
5612 * python/py-value.c: Ditto.
5613 * python/python-internal.h: Ditto.
5614 * python/python.c: Ditto.
5615 * tui/tui-data.c: Ditto.
5616 * tui/tui-disasm.c: Ditto.
5617 * tui/tui-hooks.c: Ditto.
5618 * tui/tui-io.c: Ditto.
5619 * tui/tui-layout.c: Ditto.
5620 * tui/tui-regs.c: Ditto.
5621 * tui/tui-source.c: Ditto.
5622 * tui/tui-stack.c: Ditto.
5623 * tui/tui-win.c: Ditto.
5624 * tui/tui-windata.c: Ditto.
5625 * tui/tui-winsource.c: Ditto.
5626
5627 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5628
5629 * configure.ac, gdb.1: Copyright year update.
5630
5631 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5632
5633 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5634 this_pc_in_block, morestack_msym and morestack_name. Check for
5635 "__morestack" minimal symbol there.
5636
5637 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5638
5639 * symfile.c (find_sym_fns): Add call to dont_repeat.
5640
5641 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5642
5643 Copyright year update in most files (performed by copyright.sh).
5644
5645 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5646
5647 * top.c (print_gdb_version): Update copyright year in version output.
5648
5649 For older changes see ChangeLog-2010.
5650 \f
5651 Local Variables:
5652 mode: change-log
5653 left-margin: 8
5654 fill-column: 74
5655 version-control: never
5656 coding: utf-8
5657 End:
This page took 0.161765 seconds and 5 git commands to generate.