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