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