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