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