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