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