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