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