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