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