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