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