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