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