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