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