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