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