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