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