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