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