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