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