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