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