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