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