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