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