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