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