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