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