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