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