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