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