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