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