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