*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6953d224
PA
12011-11-10 Pedro Alves <pedro@codesourcery.com>
2
3 * linux-nat.c (linux_nat_wait): Don't force waking up the event
4 loop when returning a TARGET_WAITKIND_NO_RESUMED.
5
0c94aa73
PA
62011-11-10 Pedro Alves <pedro@codesourcery.com>
7
8 * target.c (target_waitstatus_to_string): Handle
9 TARGET_WAITKIND_NO_RESUMED.
10
f6b47be4
DE
112011-11-10 Doug Evans <dje@google.com>
12
256f06f3
DE
13 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
14 * source.c (symtab_to_fullname): Ditto.
15
50f182aa
DE
16 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
17 * gdb-demangle.h: ... here. New file.
18 * demangle.c: #include "gdb-demangle.h".
19 (_initialize_demangler): Use initialize_file_ftype for prototype.
20 Move "set demangle" and "set asm-demangle" parameters here from utils.c
21 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
22 from utils.c
23 * utils.c: Update. #include "gdb-demangle.h".
24 * symtab.h (asm_demangle): Delete.
25 (demangle): Move declaration next to use.
26 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
27 * dwarf2read.c: #include "gdb-demangle.h".
28 * gnu-v2-abi.c: Ditto.
29 * jv-typeprint.c: Ditto.
30 * mdebugread.c: Ditto.
31 * p-typeprint.c: Ditto.
32 * stabsread.c: Ditto.
33 * printcmd.c: Ditto.
34 (asm_demangle): Delete declaration.
35 * tui/tui-stack.c: #include "gdb-demangle.h".
36
f6b47be4
DE
37 * python/py-type.c (typy_fields_items): Call check_typedef.
38
22355c90
JB
392011-11-10 Joel Brobecker <brobecker@adacore.com>
40
41 * findvar.c (read_frame_register_value): Read the correct bytes
42 from registers on big-endian architectures.
43
bd119cf1 442011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
45
46 * procfs.c (load_syscalls): Make a cleanup.
47 (open_procinfo_files): fd==0 is ok.
48
0a86f364
JB
492011-11-10 Joel Brobecker <brobecker@adacore.com>
50
51 * procfs.c (iterate_over_mappings): Call do_cleanups before
52 returning.
53
9bc118a5
DE
542011-11-09 Doug Evans <dje@google.com>
55
56 * gdbtypes.c (check_typedef): Document that this function can
57 throw an exception.
58
a7860e76
TT
592011-11-09 Tom Tromey <tromey@redhat.com>
60
61 PR c++/13342:
62 * valops.c (value_full_object): Return early if real type is
63 smaller than the enclosing type.
64
60965737
YQ
652011-11-08 Yao Qi <yao@codesourcery.com>
66
67 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
68
72a2e3dc
MI
692011-11-08 Meador Inge <meadori@codesourcery.com>
70
71 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
72 register when the frame can't be determined.
73 * arm-tdep.c (arm_analyze_prologue): Ditto.
74
ce3b0ff7
SS
752011-11-07 Stan Shebs <stan@codesourcery.com>
76
77 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
78
2b914b52
JB
792011-11-07 Joel Brobecker <brobecker@adacore.com>
80
81 * infrun.c (handle_inferior_event): Minor reformatting.
82
6f809020
DE
832011-11-05 Doug Evans <dje@google.com>
84
85 * source.c (forget_cached_source_info_for_objfile): Move call to
86 objfile->sf->qf->forget_cached_source_info outside of
87 ALL_OBJFILE_SYMTABS loop.
88 (forget_cached_source_info): Delete unused variable `s'.
89
75d12218
JK
902011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
91
92 * i386-nat.c (dr_ref_count): Remove unused variable.
93
e565b837
DE
942011-11-05 Doug Evans <dje@google.com>
95
96 * main.c (captured_main): Set lim_at_start before calling
97 make_command_stats_cleanup.
98
0a1c4d10
DE
992011-11-04 Doug Evans <dje@google.com>
100
101 * utils.c: #include "timeval-utils.h".
102 (cmd_stats): Rename start_time to start_cpu_time.
103 New member start_wall_time.
104 (report_command_stats): Report wall time.
105 (make_command_stats_cleanup): Record start wall time.
106
a1d705ee
TT
1072011-11-04 Tom Tromey <tromey@redhat.com>
108
109 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
110
81de56be
RO
1112011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
112
113 * coff-pe-read.c: Include defs.h before bfd.h.
114
3ab1ec27
PM
1152011-11-04 Phil Muldoon <pmuldoon@redhat.com>
116
117 PR Python/13345
118
119 * python/python.c (python_run_simple_file): Expand tilde in path.
120
cd829959
PM
1212011-11-04 Phil Muldoon <pmuldoon@redhat.com>
122
123 PR Python/13363
124
125 * python/py-type.c (typy_lookup_type): Do not return a type in
126 an exception handler.
127
080ad648
JK
1282011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
129 Eli Zaretskii <eliz@gnu.org>
130
131 * linux-nat.c (_initialize_linux_nat): Improve help
132 for `info proc stat', `info proc status', `info proc cwd',
133 `info proc cmdline' and `info proc exe'.
134
3065dfb6
SS
1352011-11-02 Stan Shebs <stan@codesourcery.com>
136
137 String collection for tracepoints.
138 * NEWS: Mention string collection.
139 * common/ax.def (tracenz): New bytecode.
140 * ax-gdb.h (trace_string_kludge): Declare.
141 * ax-gdb.c: Include valprint.h and c-lang.h.
142 (trace_string_kludge): New global.
143 (gen_traced_pop): Add string case.
144 (agent_command): Add string case.
145 * tracepoint.h (decode_agent_options): Declare.
146 * tracepoint.c: Include cli-utils.h.
147 (decode_agent_options): New function.
148 (validate_actionline): Call it.
149 (encode_actions_1): Ditto.
150 * target.h (struct target_ops): New method to_supports_string_tracing.
151 (target_supports_string_tracing): New macro.
152 * target.c (update_current_target): Add to_supports_string_tracing.
153 * remote.c (struct remote_state): New field string_tracing.
154 (remote_string_tracing_feature): New function.
155 (remote_protocol_features): New feature tracenz.
156 (remote_supports_string_tracing): New function.
157 (init_remote_ops): Set to_supports_string_tracing.
158
f179e162
JK
1592011-11-02 Pedro Alves <pedro@codesourcery.com>
160 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 * linux-nat.c: Include cli/cli-utils.h.
163 (enum info_proc_what): New.
164 (linux_nat_info_proc_cmd): Rename to ...
165 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
166 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
167 status_f and stat_f from WHAT. Throw error on extra parameters.
168 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
169 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
170 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
171 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
172 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
173 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
174 `info proc cmdline', `info proc exe' and `info proc all' as real
175 subcommands of `info proc'.
176
7b35ec7f 1772011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
178
179 * Makefile.in: (SFILES): Add skip.c.
180 (HFILES_NO_SRCDIR): Add skip.h.
181 (COMMON_OBS): Add skip.o.
182 * skip.h, skip.c: New.
183 * breakpoint.h (set_default_breakpoint): Remove.
184 (get_sal_arch): Declare.
185 * breakpoint.c: Remove default_breakpoint_valid,
186 default_breakpoint_address, default_breakpoint_symtab,
187 default_breakpoint_line, default_breakpoint_pspace variables.
188 (get_sal_arch): Make public.
189 (set_default_breakpoint): Remove.
190 (parse_breakpoint_sals, create_breakpoint, clear_command,
191 decode_line_spec_1): Remove uses of default_breakpoint variables;
192 replaced with function calls into stack.c.
193 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
194 * cli/cli-cmds.c: Add skiplist.
195 (init_cmd_lists): Initialize skiplist.
196 (init_cli_cmds): Fix comment (classes of commands appear in
197 alphabetical order).
198 * infrun.c (handle_inferior_event): Add check that we don't step into
199 a function whose pc is marked for skip.
200 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
201 last_displayed_addr, last_displayed_symtab, last_displayed_line
202 variables.
203 (set_last_displayed_sal): New static function.
204 (print_frame_info): Switch call to set_default_breakpoint to call to
205 set_last_displayed_sal.
206 (clear_last_displayed_sal, last_displayed_sal_is_valid,
207 get_last_displayed_pspace, get_last_displayed_addr,
208 get_last_displayed_symtab, get_last_displayed_line,
209 get_last_displayed_sal): New public functions.
210 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
211 get_last_displayed_pspace, get_last_displayed_addr,
212 get_last_displayed_symtab, get_last_displayed_line,
213 get_last_displayed_sal): Declare.
214
b60e1588
JL
2152011-11-01 Justin Lebar <justin.lebar@gmail.com>
216
217 * MAINTAINERS (Write After Approval): Add myself to the list.
218
d31647d2
YQ
2192011-10-29 Yao Qi <yao@codesourcery.com>
220
221 * infcmd.c (disconnect_command): Call disconnect_tracing.
222
b1d96efd
JK
2232011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
224
225 Code cleanup.
226 * symtab.c (skip_prologue_sal): Code reformatting.
227
4dfb2365
JK
2282011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
229
230 PR symtab/13208
231 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
232 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
233 SAI.
234
0e5bf2a8
PA
2352011-10-28 Pedro Alves <pedro@codesourcery.com>
236
237 * linux-nat.c (linux_nat_filter_event): Remove `options'
238 parameter, and dead code that used it. If we're handling a
239 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
240 in our lwp list, re-add it.
241 (check_zombie_leaders): New.
242 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
243 wait for children with WNOHANG, and always wait for all children.
244 Don't check for no resumed children upfront. Simplify wait loop.
245 Check for zombie thread group leaders after handling all wait
246 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
247 unwaited-for children left.
248 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
249 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
250 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
251 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
252
821296b7
SA
2532011-10-28 Sterling Augustine <saugustine@google.com>
254
255 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
256 * symtab.c (free_completion_list): New function.
257 (do_free_completion_list): Likewise.
258 (default_make_symbol_completion_list_break_on): New variable
259 back_to. Call make_cleanup and discard_cleanups.
260 (make_source_files_completion_list): Likewise.
261
03c3051a
PK
2622011-10-28 Paul Koning <paul_koning@dell.com>
263
264 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
265 * NEWS: Mention deep_items.
266
8e7ebaf5
PA
2672011-10-28 Alen Skondro <askondro@gmail.com>
268
269 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
270 defined.
271
e0c6ef61
MI
2722011-10-27 Meador Inge <meadori@codesourcery.com>
273
274 * MAINTAINERS (Write After Approval): Add myself to the list.
275
b56d6f31
JB
2762011-10-27 Joel Brobecker <brobecker@adacore.com>
277
278 * value.h (read_frame_register_value): Add declaration.
279 * findvar.c (read_frame_register_value): New function.
280 (value_from_register): Use read_frame_register_value
281 instead of get_frame_register_value + value_contents_copy
282 to get value contents.
283
d234ef5c
DE
2842011-10-27 Doug Evans <dje@google.com>
285
286 * cli/cli-cmds.c (source_script_with_search): Pass full path to
287 source_script_from_stream if it may have been found on the search path.
288 * python/py-auto-load.c (source_section_scripts): Pass full path to
289 source_python_script_for_objfile.
290 * python/python.c (source_python_script): Delete stream parameter.
291 All callers updated.
292 (source_python_script_for_objfile): Ditto.
293 * python/python-internal.h (source_python_script_for_objfile): Update.
294 * python/python.h (source_python_script): Update.
295
d849d44f
TT
2962011-10-27 Tom Tromey <tromey@redhat.com>
297
298 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
299 (ada_sals_for_line): Remove declarations.
300
2231f1fb
KP
3012011-10-27 Kevin Pouget <kevin.pouget@st.com>
302
303 Move unwind reasons to an external .def file
304 * frame.c (frame_stop_reason_string): Rewrite using
305 unwind_stop_reasons.def.
306 * frame.h (enum unwind_stop_reason): Likewise.
307 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
308 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
309 constants for bound-checking.
310 * unwind_stop_reasons.def: New file.
311 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
312 instead of a distinct value.
313
f77b9a5d
PM
3142011-10-27 Phil Muldoon <pmuldoon@redhat.com>
315
316 PR python/13331
317
318 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
319 (convert_values_to_python): Return on Python tuple allocation
320 failure. Return NULL on value conversion error.
321
76dce0be
PM
3222011-10-27 Phil Muldoon <pmuldoon@redhat.com>
323
324 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
325 (bppy_set_task): Ditto.
326 (bppy_delete_breakpoint): Ditto.
327 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
328 (gdbpy_lookup_global_symbol): Ditto.
329 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
330 * python/py-frame.c (frapy_is_valid): Ditto.
331 (frame_info_to_frame_object): Ditto.
332 * python/py-type.c (typy_lookup_type): Ditto.
333 (typy_getitem): Ditto.
334 (typy_has_key): Ditto.
335 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
336
f17b6955
JB
3372011-10-26 Joel Brobecker <brobecker@adacore.com>
338
339 * gdbarch.h: Regenerate.
340
86ba1042
JB
3412011-10-26 Meador Inge <meadori@codesourcery.com>
342
343 * gdbarch.sh (function_list): Use 'pstring' when printing
344 'gcore_bfd_target'.
345 * gdbarch.c: Regenerate.
346
c34fd852
UW
3472011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
348
349 * regcache.c (registers_changed_ptid): Invalidate thread architecture
350 and frame caches if PTID refers to all threads of a process.
351
931bb47f
UW
3522011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
353
354 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
355 to create_breakpoint.
356
88aed45e
UW
3572011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
358
359 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
360 (ppc_sysv_abi_push_dummy_call): Use it.
361 (do_ppc_sysv_return_value): Likewise.
362 (ppc64_sysv_abi_push_dummy_call): Likewise.
363 (ppc64_sysv_abi_return_value): Likewise.
364
3eaf3fa2
PK
3652011-10-26 Paul Koning <paul_koning@dell.com>
366
367 * python/lib/gdb/types.py (deepitems): New function.
368
913460fc
PK
3692011-10-25 Paul Koning <paul_koning@dell.com>
370
371 PR python/13327
372
373 * python/py-value.c (value_to_value_object): Remove fetching of
374 the value if it was lazy.
375 (valpy_get_is_lazy): New function.
376 (valpy_fetch_lazy): New function.
377
2b5b9d09
JB
3782011-10-24 Joel Brobecker <brobecker@adacore.com>
379
380 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
381 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
382
e21ffe51
PA
3832011-10-24 Pedro Alves <pedro@codesourcery.com>
384
385 * linux-nat.c (linux_handle_extended_wait): When handling a clone
386 event, in non-stop, if not stopping, make sure the new lwp has
387 last_resume_kind set to resume_continue. Assert that when we're
388 resuming the new lwp, its last_resume_kind is resume_continue.
389
7aee8dc2
PA
3902011-10-24 Pedro Alves <pedro@codesourcery.com>
391
392 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
393 already set when marking the event thread as not executing in
394 non-stop mode.
395
4b4e080e
PA
3962011-10-24 Pedro Alves <pedro@codesourcery.com>
397
398 * infrun.c (handle_inferior_event): Add debug output for
399 TARGET_WAITKIND_NO_HISTORY.
400
baacfb07
PM
4012011-10-24 Phil Muldoon <pmuldoon@redhat.com>
402
403 * NEWS: Move set/show extended-prompt to "New Options". Expand
404 description. Fix typos.
405
8432bc41
PM
4062011-10-24 Phil Muldoon <pmuldoon@redhat.com>
407
408 PR python/13310
409
410 * python/py-param.c (call_doc_function): Correctly deference on
411 function exit.
412
6cda5a20
JB
4132011-10-21 Joel Brobecker <brobecker@adacore.com>
414
415 * ada-tasks.c (print_ada_task_info): Fix computation of
416 number of tasks displayed in command output.
417
13294f7d
JK
4182011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
419 Ulrich Weigand <uweigand@de.ibm.com>
420
421 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
422 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
423 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
424 gdbarch_pc_regnum and frame_unwind_register_unsigned by
425 gdbarch_unwind_pc.
426
460c1c54
CC
4272011-10-20 Cary Coutant <ccoutant@google.com>
428
429 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
430 section to...
431 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
432 flag. Adjust all callers.
433 (process_psymtab_comp_unit): Remove adjustment for type section.
434
a10964d1
AR
4352011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
436
437 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
438 arguments by adding OBJFILE. Instead of getting objfile from
439 symbol's symtab, use new argument OBJFILE.
440 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
441 arguments by adding OBJFILE.
442 * gdb/dwarf2read.c (new_symbol_full): Change call to
443 cp_scan_for_anonymous_namespaces to match new signature.
444 * gdb/stabsread.c (define_symbol): Change call to
445 cp_scan_for_anonymous_namespaces to match new signature.
446
27ca1a5b
PM
4472011-10-20 Phil Muldoon <pmuldoon@redhat.com>
448
449 PR python/13308
450 PR python/13309
451
452 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
453 leak.
454 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
455 leak. Delete unused variables.
456
9df2fbc4
PM
4572011-10-20 Phil Muldoon <pmuldoon@redhat.com>
458
459 PR python/12656
460
461 * python/py-frame.c (frapy_read_var): Use const struct *block.
462 * python/py-type.c (typy_lookup_typename): Likewise.
463 (typy_lookup_type): Likewise.
464 (typy_legacy_template_argument): Likewise.
465 (typy_template_argument): Likewise.
466 (gdbpy_lookup_type): Likewise.
467 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
468 * python/py-block.c (blpy_block_object): Likewise.
469 (blpy_iter): Likewise.
470 (blpy_get_start): Likewise.
471 (blpy_get_end): Likewise.
472 (blpy_get_function): Likewise.
473 (blpy_get_superblock): Likewise.
474 (set_block): Likewise.
475 (block_to_block_object): Likewise.
476 (block_object_to_block): Likewise.
477 (blpy_is_valid): Likewise.
478 (blpy_get_global_block): New function.
479 (blpy_get_static_block): New function.
480 (blpy_is_global): New function.
481 (blpy_is_static): New function.
482 * blockframe.c (block_innermost_frame): Likewise.
483 * valops.c (value_of_variable): Likewise.
484 * frame.h: Update prototypes.
485 * python/python-internal.h: Likewise.
486 * value.h: Likewise.
487
4743b735
CC
4882011-10-19 Cary Coutant <ccoutant@google.com>
489
490 * dwarf2read.c (create_debug_types_hash_table): Fix size of
491 type_offset field.
492
6caca83c
CC
4932011-10-19 Cary Coutant <ccoutant@google.com>
494
495 * dwarf2read.c (peek_abbrev_code): New function.
496 (dw2_get_file_names): Check for dummy compilation units.
497 (create_debug_types_hash_table): Likewise.
498 (process_psymtab_comp_unit): Likewise.
499 (load_partial_comp_unit): Likewise.
500 (load_full_comp_unit): Likewise.
501
43136979
AR
5022011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
503
504 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
505 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
506 pt_phdr if PT_PHDR was found.
507
0a07729b
TT
5082011-10-17 Joost van der Sluis <joost@cnoc.nl>
509
510 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
511 type or "<unnamed type"> when there is no name assigned.
512 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
513 avoid a sigint when no name is assigned.
514
21ae7a4d
JK
5152011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
516
517 Revert:
518 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
519 * dwarf2expr.c (ctx_no_read_reg): New function.
520 * dwarf2expr.h (ctx_no_read_reg): New declaration.
521 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
522 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
523 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
524
32d1c362
DE
5252011-10-16 Doug Evans <dje@google.com>
526
527 * NEWS: Document python gdb.printing.register_pretty_printer's new
528 `replace' parameter.
529
da096638
KS
5302011-10-14 Keith Seitz <keiths@redhat.com>
531
532 PR c++/13225
533 * eval.c (evaluate_subexp_standard): Do not construct
534 an array of types; pass the value array directly to
535 find_overload_match.
536 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
537 (rank_function): Take an array of values instead of types.
538 (rank_one_type): Add struct value * parameter.
539 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
540 (rank_function): For each argument, pass the argument's
541 value to rank_one_type.
542 (rank_one_type): Add VALUE parameter.
543 If the parameter type is a pointer and the argument type
544 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
545 VALUE is zero.
546 Update all calls to rank_one_type, passing NULL for new
547 VALUE parameter.
548 * valarith.c (value_user_defined_cpp_op): Do not construct
549 an array of types; pass the value array directly to
550 find_overload_match.
551 * valops.c (find_overload_method_list): Take an array of
552 values instead of types.
553 Save the type of OBJP for later use.
554 Update calls to find_oload_champ, and find_oload_champ_namespace.
555 (find_oload_champ_namespace): Take an array of values instead
556 of types.
557 (find_oload_champ_namespace_loop): Likewise.
558 (find_oload_champ): Likewise.
559 (classify_oload_match): Inspect all arguments
560 until INCOMPATIBLE is found. Return the worst badness found
561 otherwise.
562 (compare_parameters): Update call to rank_one_type.
563 * value.h (find_overload_match): Take an array of values instead
564 of types.
565
3957565a
JK
5662011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
567
568 Drop lazy lm_info reading.
569 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
570 l_addr_inferior, l_ld, l_next, l_prev and l_name.
571 (lm_info_read): New function.
572 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
573 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
574 lm_dynamic_from_link_map.
575 (lm_next, lm_prev, lm_name): Remove.
576 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
577 initialization incl. read_memory. No longer use lm_name.
578 (svr4_free_so): Drop lm_info->lm freeing.
579 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
580 explicit lm_addr and lm initialization.
581 (svr4_read_so_list): Use lm_info_read, drop the initailization of
582 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
583 lm_name.
584
cb08cc53
JK
5852011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
586 Paul Pluzhnikov <ppluzhnikov@google.com>
587
588 * defs.h (struct so_list): New forward declaration.
589 (make_cleanup_free_so): New declaration.
590 * solib-svr4.c (ignore_first_link_map_entry): Remove.
591 (svr4_free_so): Move the function here from downwards. Handle NULL
592 so->lm_info.
593 (svr4_free_library_list): New.
594 (svr4_read_so_list): New, moved here code from svr4_current_sos.
595 Use more cleanups. Use new parameter ignore_first instead of
596 ignore_first_link_map_entry.
597 (svr4_current_sos): New variable ignore_first, initialize it. New
598 variable back_to, use it for svr4_free_library_list protection.
599 (svr4_free_so): Remove - move upwards.
600 * utils.c: Include solist.h.
601 (do_free_so, make_cleanup_free_so): New functions.
602
22c05d8a
JK
6032011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 Fix internal error regression.
606 * value.c (value_primitive_field): Handle value_optimized_out. Move
607 packed bitfields comment.
608
d930d06e
TT
6092011-10-13 Tom Tromey <tromey@redhat.com>
610
611 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
612 always released.
613
2ff6b080
TT
6142011-10-13 Tom Tromey <tromey@redhat.com>
615
616 * python/py-type.c (typy_has_key): Make 'field' const.
617
d6c5869f
LM
6182011-10-13 Luis Machado <lgustavo@codesourcery.com>
619
620 * remote.c (remote_save_trace_data): Invert comparison.
621
a70633a2
LM
6222011-10-13 Luis Machado <lgustavo@codesourcery.com>
623
624 * tracepoint.c (trace_save_command): Use filename instead of
625 args when printing.
626
e103e986
JK
6272011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
628
629 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
630 if .size is 0.
631
db24da6d
YQ
6322011-10-13 Yao Qi <yao@codesourcery.com>
633
634 PR gdb/12703
635 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
636 whether insn is a 32-bit Thumb-2 instruction.
637 (thumb_in_function_epilogue_p): Likewise.
638 (thumb_get_next_pc_raw): Likewise.
639 (arm_breakpoint_from_pc): Likewise.
640
1d6edc3c
JK
6412011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
642
643 Fix empty DWARF expressions DATA vs. SIZE conditionals.
644 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
645 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
646 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
647 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
648 zero DATA.
649 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
650 validity.
651 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
652 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
653 clear DATA on zero SIZE.
654
adabb602
DE
6552011-10-12 Doug Evans <dje@google.com>
656
657 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
658 header->first_die_offset here. All callers updated.
659
5048e516
JK
6602011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
661
662 Fix compatibility with texinfo versions older than 4.12.
663 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
664 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
665 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
666 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
667 * configure: Regenerate.
668 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
669 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
670 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
671
0574c78f
GB
6722011-10-12 Gary Benson <gbenson@redhat.com>
673
674 * breakpoint.h (pc_at_non_inline_function): Declare.
675 * breakpoint.c (is_non_inline_function,
676 pc_at_non_inline_function): New functions.
677 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
678 if the stop is at a location where functions cannot be inlined.
679
12d9289a
PA
6802011-10-12 Pedro Alves <pedro@codesourcery.com>
681
682 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
683 the core wanted them stopped, or if they now have a pending event
684 to report.
ecf8e7f5
PA
685 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
686 down to stop_and_resume_callback.
687 (linux_nat_wait_1): Always clear `options' when retrying. Handle
688 having new pending events after calling linux_nat_filter_event.
12d9289a 689
96408a79
SA
6902011-10-11 Sterling Augustine <saugustine@google.com>
691
692 * dwarf2read.c: Undo inadvertent changes in previous commit.
693
9c6c53f7
SA
6942011-10-11 Sterling Augustine <saugustine@google.com>
695
696 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
697 logic.
698
0e8aefe7
UW
6992011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
700
701 * symfile.c (separate_debug_file_exists): Fix condition.
702
349d1385
DM
7032011-10-11 David S. Miller <davem@davemloft.net>
704
705 * regcache.c (regcache_restore): Do not write unavailable regs, mark
706 static.
707 * regcache.h (regcache_restore): Remove declaration.
708
205c306f
DM
709 * gdbarch.sh: New field 'long_long_align_bit'.
710 * gdbarch.c, gdbarch.h: Regenerate.
711 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
712 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
713
941b2081
JK
7142011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
715
716 Revert this part of:
717 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
718 Support @entry in input expressions.
719 * c-exp.y (ENTRY, unknown_cpp_name): New.
720 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
721 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
722 (variable: name_not_typename '@' ENTRY, name: ENTRY)
723 (name_not_typename: ENTRY): New.
724 (yylex): Recognize ENTRY.
725
726 Reimplement @entry in input expressions.
727 * c-exp.y (ENTRY): New.
728 (variable: name_not_typename ENTRY): New.
729 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
730
3c4d7e12
PA
7312011-10-11 Pedro Alves <pedro@codesourcery.com>
732
733 * linux-nat.c (linux_handle_extended_wait): Always dump both the
734 parent and child's pids as soon as we detect a clone event.
735 Adjust another debug message.
736
ea23808b
PA
7372011-10-11 Pedro Alves <pedro@codesourcery.com>
738
739 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
740 not zombie instead of reading the whole file.
741
904578ed
JK
7422011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
743
744 Fix separate debuginfo warning with "remote:" access.
745 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
746 * symfile.c (get_file_crc): New function with the code moved from ...
747 (separate_debug_file_exists): ... this function, specifically variables
748 buffer and count. New variable verified_as_different, set it. Remove
749 file_crc initialization. Verify also if both files are not the same
750 manually, if needed.
751
51370a33
YQ
7522011-10-11 Yao Qi <yao@codesourcery.com>
753
754 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
755 to get address.
756
0838fb57
DE
7572011-10-10 Doug Evans <dje@google.com>
758
759 * linux-thread-db.c (thread_db_new_objfile): Only try to load
760 libthread_db when we load libpthread or the main symbol file.
761 (thread_db_inferior_created): New function.
762 (_initialize_thread_db): Attach inferior_created observer.
763 * linux-nat.c (linux_child_post_attach): Remove call to
764 check_for_thread_db.
765 (linux_child_post_startup_inferior): Ditto.
766 * objfiles.h (OBJF_MAINLINE): Define.
767 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
768 allocate_objfile when appropriate.
769
623bd5b7
UW
7702011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
771
772 PR gdb/13218
773 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
774 Remove unused variables.
775 (get_linux_version): Remove function.
776 (_initialize_arm_linux_nat): Do not call it.
777
79395f92
PA
7782011-10-10 Pedro Alves <pedro@codesourcery.com>
779
780 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
781 new clone lwp if the core asked it to stop. Don't pass on
782 unexpected signals to the new clone; leave them pending instead.
783
eff3df78
PA
7842011-10-10 Pedro Alves <pedro@codesourcery.com>
785
786 * linux-nat.c (resume_lwp): Remove redundant debug output.
787
4b60df3d
PA
7882011-10-10 Pedro Alves <pedro@codesourcery.com>
789
790 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
791 last_resume_kind before clearing it, and use the copy instead to
792 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
793 resume_clear_callback in the non-stop path too.
794
6501578c
YQ
7952011-10-09 Yao Qi <yao@codesourcery.com>
796
797 * valprint.c (value_check_printable): Add one parameter OPTIONS.
798 Honor OPTIONS and VAL's type.
799 (common_val_print, value_print): Update to pass one more parameter.
800
5a56e9c5
DE
8012011-10-09 Doug Evans <dje@google.com>
802
803 Add new "alias" command.
804 * NEWS: Mention new command.
805 * command.h (valid_user_defined_cmd_name_p): Declare.
806 * defs.h (make_cleanup_dyn_string_delete): Declare.
807 * utils.c: #include "dyn-string.h".
808 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
809 * cli/cli-cmds.c: #include "dyn-string.h".
810 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
811 (init_cli_cmds): Add new command.
812 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
813
509f0fd9
JK
8142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
815
816 Fix compatibility with older GCCs.
817 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
818 * stack.c (read_frame_arg): Initialize val_deref.
819
2bda9cc5
JK
8202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
821
822 Entry values NEWS entries, DWARF disassembly support.
823 * NEWS: New entry values entry.
824 (set print entry-values, show print entry-values)
825 (set debug entry-values, show debug entry-values): New entries.
826 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
827 indent. Remove variable start. Move header printing out. Respect
828 INDENT. Support DW_OP_GNU_entry_value.
829 (locexpr_describe_location_1): Move the header printing here, extend
830 the disassemble_dwarf_expression passed parameters.
831
a471c594
JK
8322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 Display @entry parameter values even for references.
835 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
836 coerce_ref_if_computed.
837 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
838 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
839 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
840 existing push_dwarf_reg_entry_value call. Add new detection calling
841 dwarf_block_to_dwarf_reg_deref. Update the error message.
842 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
843 * dwarf2expr.h
844 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
845 parameter deref_size, describe it in the comment.
846 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
847 (dwarf_block_to_dwarf_reg_deref): New declaration.
848 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
849 deref_size, describe it in the function comment. New variables
850 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
851 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
852 describe it in the function comment. Fetch the alternative block
853 accoring to DEREF_SIZE.
854 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
855 (entry_data_value_free_closure, entry_data_value_funcs): New.
856 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
857 outer_val, target_val, val and addr. Try to fetch and create also
858 referenced value content.
859 (pieced_value_funcs): NULL value for coerce_ref.
860 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
861 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
862 coerce_ref_if_computed.
863 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
864 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
865 * stack.c (read_frame_arg): Compare also dereferenced values.
866 * value.c (value_computed_funcs): Make the parameter v const, use
867 value_lval_const for it.
868 (value_lval_const, coerce_ref_if_computed): New function.
869 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
870 * value.h (struct lval_funcs): New field coerce_ref.
871 (value_computed_funcs): Make the parameter v const.
872 (value_lval_const, coerce_ref_if_computed): New declarations.
873
36b11add
JK
8742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 Support @entry in input expressions.
877 * c-exp.y (ENTRY, unknown_cpp_name): New.
878 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
879 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
880 (variable: name_not_typename '@' ENTRY, name: ENTRY)
881 (name_not_typename: ENTRY): New.
882 (yylex): Recognize ENTRY.
883 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
884 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
885 Likewise.
886 * parse.c (operator_length_standard): Likewise.
887 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
888
3343315b
JK
8892011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
890
891 Display referenced values in backtraces.
892 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
893 * stack.c (print_frame_arg): Likewise.
894
ac71a68c
JK
8952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
896
897 Make some lval_funcs methods to default on NULL.
898 * valops.c (value_fetch_lazy): Check if lval_computed read method is
899 NULL.
900 (value_assign): Check if lval_computed write method is NULL.
901 * value.h (struct lval_funcs): Comment NULL values for read and write
902 methods.
903
e18b2753
JK
9042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
905
906 Display @entry parameter values (without references).
907 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
908 New functions.
909 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
910 New declarations.
911 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
912 entry record.
913 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
914 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
915 functions.
916 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
917 (loclist_read_variable_at_entry): New function.
918 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
919 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
920 DW_AT_location, call dwarf_block_to_sp_offset for it.
921 * frame.h (print_entry_values_no, print_entry_values_only)
922 (print_entry_values_preferred, print_entry_values_if_needed)
923 (print_entry_values_both, print_entry_values_compact)
924 (print_entry_values_default, print_entry_values): New declarations.
925 (struct frame_arg): New field entry_kind.
926 (read_frame_arg): New parameter entryargp.
927 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
928 arg->entry_kind. Optionally print the `@entry' suffix.
929 (list_args_or_locals): New variable entryarg, initialize it.
930 Initialize also entry_kind of arg and entryarg. Conditionalize
931 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
932 xfree for entryarg.error.
933 * stack.c (print_entry_values_no, print_entry_values_only)
934 (print_entry_values_preferred, print_entry_values_if_needed)
935 (print_entry_values_both, print_entry_values_compact)
936 (print_entry_values_default, print_entry_values_choices)
937 (print_entry_values): New variables.
938 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
939 print the `@entry' suffix, possibly in combination for
940 print_entry_values_compact.
941 (read_frame_arg): New parameter entryargp, new variables entryval,
942 entryval_error and val_equal. Read in also entryargp, respect
943 print_entry_values, compare the values using val_equal, fill in also
944 argp->entry_kind (together with entryargp->entry_kind).
945 (print_frame_args): New variable entryarg, initialize it.
946 Conditionalize print_frame_arg for arg, add print_frame_arg for
947 entryarg. Call xfree for entryarg.error.
948 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
949 * symtab.h (struct symbol_computed_ops): New field
950 read_variable_at_entry.
951
93d86cef
JK
9522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
953
954 Code reshuffle.
955 * frame.h (struct frame_arg): New definition.
956 (read_frame_arg): New declaration.
957 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
958 (list_args_or_locals): ... the code here. New variable arg, call
959 read_frame_arg and list_arg_or_local with it. Unify the
960 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
961 arg.error.
962 * stack.c (print_frame_arg): New functiom from the code of
963 print_frame_args.
964 (read_frame_arg): New function.
965 (print_frame_args): Remove variable val. New variable arg, call
966 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
967
2d6c5dc2
JK
9682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
969
970 Protect entry values against self tail calls.
971 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
972 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
973
111c6489
JK
9742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
975
976 Recognize virtual tail call frames.
977 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
978 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
979 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
980 * dwarf2-frame-tailcall.c: New file.
981 * dwarf2-frame-tailcall.h: New file.
982 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
983 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
984 REGS.PREV only after CIE execution.
985 (struct dwarf2_frame_cache): New field tailcall_cache.
986 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
987 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
988 parts, try to find entry_cfa_sp_offset. Call
989 dwarf2_tailcall_sniffer_first.
990 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
991 when appropriate.
992 (dwarf2_frame_dealloc_cache): New function.
993 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
994 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
995 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
996 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
997 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
998 * dwarf2loc.c (func_addr_to_tail_call_list)
999 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1000 (call_site_find_chain_1, call_site_find_chain): New.
1001 * dwarf2loc.h (struct call_site_chain): New.
1002 (call_site_find_chain): New declaration.
1003 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1004 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1005 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1006 * stack.c (frame_info): Support also TAILCALL_FRAME.
1007
bb984ff1
JK
10082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1009
1010 Tail call sites reader implementation.
1011 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1012 fill in TYPE_TAIL_CALL_LIST.
1013 * gdbtypes.h (struct func_type): New field tail_call_list.
1014 (struct call_site): New field tail_call_next.
1015 (TYPE_TAIL_CALL_LIST): New definition.
1016
8e3b41a9
JK
10172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1018
1019 Implement basic support for DW_TAG_GNU_call_site.
1020 * block.c: Include gdbtypes.h and exceptions.h.
1021 (call_site_for_pc): New function.
1022 * block.h (call_site_for_pc): New declaration.
1023 * defs.h: Include hashtab.h.
1024 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1025 declarations.
1026 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1027 ctx_no_push_dwarf_reg_entry_value.
1028 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1029 (dwarf_block_to_dwarf_reg): New function.
1030 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1031 (ctx_no_push_dwarf_reg_entry_value): New function.
1032 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1033 push_dwarf_reg_entry_value.
1034 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1035 declarations.
1036 * dwarf2loc.c: Include gdbcmd.h.
1037 (dwarf_expr_ctx_funcs): New forward declaration.
1038 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1039 (dwarf_expr_reg_to_entry_parameter)
1040 (dwarf_expr_push_dwarf_reg_entry_value): New.
1041 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1042 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1043 (needs_dwarf_reg_entry_value): New function.
1044 (needs_frame_ctx_funcs): Install it.
1045 (_initialize_dwarf2loc): New function.
1046 * dwarf2loc.h (entry_values_debug): New declaration.
1047 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1048 (read_call_site_scope): New forward declaration.
1049 (process_full_comp_unit): Copy call_site_htab.
1050 (process_die): Support DW_TAG_GNU_call_site.
1051 (read_call_site_scope): New function.
1052 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1053 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1054 (cleanup_htab): Delete.
1055 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1056 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1057 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1058 FIELD_LOC_KIND_DWARF_BLOCK.
1059 * gdbtypes.h (enum field_loc_kind): New entry
1060 FIELD_LOC_KIND_DWARF_BLOCK.
1061 (struct main_type): New loc entry dwarf_block.
1062 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1063 (TYPE_FIELD_DWARF_BLOCK): New.
1064 * python/py-type.c: Include dwarf2loc.h.
1065 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1066 internal_error call on unknown FIELD_LOC_KIND.
1067 * symtab.h (struct symtab): New field call_site_htab.
1068 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1069 (core_addr_hash, core_addr_eq): New functions.
1070
b6cdc2c1
JK
10712011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 Code reshuffle.
1074 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1075 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1076 calling_convention under func_stuff there.
1077 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1078 (init_type) <TYPE_CODE_FUNC>: Likewise.
1079 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1080 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1081 * gdbtypes.h (enum type_specific_kind): Change
1082 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1083 (struct main_type) <type_specific>: Change calling_convention to
1084 func_stuff. Move calling_convention to ...
1085 (struct func_type): ... this new struct.
1086 (INIT_FUNC_SPECIFIC): New #define.
1087 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1088
181cebd4
JK
10892011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1090
1091 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1092 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1093 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1094 ctx->ref_addr_size. Handle its invalid value.
1095 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1097 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1098 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1099 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1100 (dwarf2_per_cu_ref_addr_size): New function.
1101
c471e790
JK
11022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1103
1104 Code cleanup.
1105 * dwarf2read.c (per_cu_header_read_in): New function.
1106 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1107 variables cu_header_local and cu_headerp.
1108
741f5e3c
JK
11092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 Fix initial language detection with -readnow.
1112 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1113 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1114 searches only for global symbols.
1115
a73d2258
JK
11162011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 Fix printed anonymous struct name.
1119 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1120 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1121 (anonymous_struct_prefix): New function.
1122 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1123 (dwarf2_name): Strip for anonymous structs any prefixes.
1124
749fd4ea
DE
11252011-10-07 Doug Evans <dje@google.com>
1126
1fa57852
DE
1127 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1128 `replace'.
1129
690a4937
DE
1130 * python/lib/gdb/printing.py: Whitespace cleanup.
1131
749fd4ea
DE
1132 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1133 warning.
1134
4c38200f
PA
11352011-10-07 Pedro Alves <pedro@codesourcery.com>
1136
1137 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1138 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1139 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1140 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1141 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1142 (arm_linux_remove_watchpoint): Adjust.
1143 * i386-linux-nat.c (i386_linux_dr_set_control)
1144 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1145 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1146 (ia64_linux_remove_watchpoint): Adjust.
1147 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1148 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1149 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1150 (ppc_linux_insert_mask_watchpoint)
1151 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1152 (ppc_linux_remove_watchpoint): Adjust.
1153 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1154 Adjust.
1155
b7ff339d
CV
11562011-10-07 Corinna Vinschen <vinschen@redhat.com>
1157
1158 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1159 (clear_win32_environment): New function for Cygwin to clear out
1160 Win32 environment.
1161 (windows_create_inferior): Prepare new environment from in_env
1162 for Cygwin, too.
1163
f287c1f3
PM
11642011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1165
5631e596 1166 PR python/13264
f287c1f3
PM
1167 * python/py-value.c (valpy_call): Check that arguments are
1168 a tuple.
1169 (is_intlike): Remove call to CHECK_TYPEDEF.
1170 (valpy_nonzero): Catch GDB exceptions.
1171 (valpy_absolute): Ditto.
1172 (valpy_lazy_string): Ditto.
1173 (valpy_call): Ditto.
1174 (valpy_get_is_optimized_out): Ditto.
1175 (valpy_long): Ditto.
1176 (valpy_float): Ditto.
1177 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1178 (valpy_richcompare): Ditto.
1179
03583c20
UW
11802011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1181
1182 * inferior.h (disable_randomization): Declare.
1183 * infrun.c (disable_randomization): New global variable.
1184 (show_disable_randomization): New function.
1185 (set_disable_randomization): Likewise.
1186 (_initialize_infrun): Install set/show disable-randomization
1187 commands.
1188 * linux-nat.c (disable_randomization): Remove.
1189 (show_disable_randomization): Likewise.
1190 (set_disable_randomization): Likewise.
1191 (_initialize_linux_nat): No longer install set/show
1192 disable-randomization commands here.
1193 (linux_nat_supports_disable_randomization): New function.
1194 (linux_nat_add_target): Install it.
1195 * remote.c (PACKET_QDisableRandomization): New enum value.
1196 (remote_protocol_packets): Support QDisableRandomization.
1197 (_initialize_remote): Likewise.
1198 (remote_supports_disable_randomization): New function.
1199 (init_remote_ops): Install it.
1200 (extended_remote_supports_disable_randomization): New function.
1201 (init_extended_remote_ops): Install it.
1202 (extended_remote_disable_randomization): New function.
1203 (extended_remote_create_inferior_1): Call it.
1204 * target.h (struct target_ops): Add to_supports_disable_randomization.
1205 (target_supports_disable_randomization): Add prototype.
1206 * target.c (target_supports_disable_randomization): New function.
1207 (find_default_supports_disable_randomization): Likewise.
1208 (init_dummy_target): Install it.
1209
20c168b5
KP
12102011-10-07 Kevin Pouget <kevin.pouget@st.com>
1211
1212 Allow Python notification of new object-file loadings.
1213 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1214 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1215 Add build rule for this file.
1216 * python/py-event.h (emit_new_objfile_event): New prototype.
1217 (newobjfile): New Python event emitter.
1218 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1219 Python event registry.
1220 * python/py-inferior.c: Include objfiles.h
1221 (python_new_objfile): New function.
1222 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1223 observers.
1224 * python/py-newobjfileevent.c: New file.
1225 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1226 prototype.
1227 * python/python.c (_initialize_python): Add
1228 gdbpy_initialize_new_objfile_event call.
1229 * NEWS: Add item for new Python event "gdb.newobjfile"
1230
b1c8db38
TG
12312011-10-05 Tristan Gingold <gingold@adacore.com>
1232
1233 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1234 Extract the ravenscar task name from the symbol for the atcb.
1235
0dab82e9
PK
12362011-10-04 Paul Koning <paul_koning@dell.com>
1237
1238 * python/py-type.c (typy_make_iter): Add forward declaration.
1239 (typy_fields_items): Use the gdb.Type iterator.
1240
84ad80e6
PK
12412011-10-04 Paul Koning <paul_koning@dell.com>
1242
1243 * NEWS: Add entry for Python gdb.Type mapping methods.
1244
cb6be26b
KP
12452011-10-04 Kevin Pouget <kevin.pouget@st.com>
1246
1247 PR python/12691: Add the inferior to Python exited event
1248 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1249 to exited_event.
1250 * python/py-event.h (emit_exited_event): Likewise
1251 * python/-inferior.c (python_inferior_exit): Likewise
1252
6005b210
JB
12532011-10-03 Joel Brobecker <brobecker@adacore.com>
1254
1255 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1256 in output of -ada-task-info GDB/MI command.
1257
75082e8c
JB
12582011-10-03 Joel Brobecker <brobecker@adacore.com>
1259
1260 * ada-lang.h (struct inferior): Declare.
1261 (print_ada_task_info): Add declaration.
1262 * ada-tasks.c (print_ada_task_info): Make non-static.
1263 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1264 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1265 * mi/mi-main.c: #include "ada-lang.h".
1266 (mi_cmd_list_features): Add "ada-task-info" to the list
1267 of supported features.
1268 (mi_cmd_ada_task_info): New function.
1269
7ed7d719
JB
12702011-10-03 Joel Brobecker <brobecker@adacore.com>
1271
1272 * python/python.c (python_run_simple_file): New function.
1273 (source_python_script, source_python_script_for_objfile):
1274 Replace call to PyRun_SimpleFile by call to
1275 python_run_simple_file.
1276
3fcaed38
PK
12772011-10-03 Paul Koning <paul_koning@dell.com>
1278
1279 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1280 (value_to_value_object): Fetch value if it was lazy.
1281
8e5c319d
JK
12822011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1283
1284 Code cleanup.
1285 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1286 Rearrange the code for it.
1287
dd11a36c
JB
12882011-10-02 Joel Brobecker <brobecker@adacore.com>
1289
1290 * breakpoint.c (bkpt_print_recreate): Add call to
1291 print_recreate_thread.
1292
723b724b
MF
12932011-09-29 Mike Frysinger <vapier@gentoo.org>
1294
1295 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1296 PTRACE_GETFDPIC_INTERP): Define.
1297
412946b6
YQ
12982011-09-28 Yao Qi <yao@codesourcery.com>
1299
1300 * symfile.c (add_symbol_file_command): Update message on usage.
1301
a73bb892
PK
13022011-09-28 Paul Koning <paul_koning@dell.com>
1303
1304 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1305 (typy_length, typy_get, typy_has_key, typy_make_iter)
1306 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1307 (typy_iterator_iter, typy_iterator_iternext)
1308 (typy_iterator_dealloc): New functions to implement standard
1309 Python mapping methods on gdb.Type object.
1310 (gdb.TypeIterator): New Python type.
1311 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1312
fe10a582
DM
13132011-09-28 David S. Miller <davem@davemloft.net>
1314
1315 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1316 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1317 * sparc-tdep.c (sparc_complex_floating_p): New function.
1318 (sparc32_store_arguments): Handle complex floats.
1319 (sparc32_extract_return_value): Likewise.
1320 (sparc32_store_return_value): Likewise.
1321 (sparc32_stabs_argument_has_addr): Likewise.
1322 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1323 (sparc64_store_floating_fields): Handle complex floats.
1324 (sparc64_store_arguments): Likewise.
1325 (sparc64_store_return_value): Likewise.
1326
c93dbcba
EZ
13272011-09-28 Eli Zaretskii <eliz@gnu.org>
1328
1329 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1330 before the change on 2006-12-09.
1331 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1332 generates the environment block for CreateProcessA, modulo the
1333 Cygwin-specific parts that are not needed here.
1334
f00c55f8
TG
13352011-09-27 Tristan Gingold <gingold@adacore.com>
1336
1337 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1338 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1339 (darwin_solib_get_all_image_info_addr_at_init): New function.
1340 (darwin_solib_read_all_image_info_addr): Likewise.
1341 (darwin_solib_create_inferior_hook): Use the above two functions.
1342 * darwin-nat.c (darwin_execvp): Renames retval to res.
1343 (darwin_read_write_inferior): Update comment.
1344 (darwin_read_dyld_info): New function.
1345 (darwin_xfer_partial): Handle DYLD_INFO.
1346
6710bf39
SS
13472011-09-27 Stan Shebs <stan@codesourcery.com>
1348
1349 Add return address collection for tracepoints.
1350 * tracepoint.c (encode_actions_1): Add case for $_ret.
1351 (validate_actionline): Check for $_ret.
1352 (trace_dump_actions): Ditto.
1353 * ax-gdb.h (gen_trace_for_return_address): Declare.
1354 * ax-gdb.c: Include arch-utils.h.
1355 (gen_trace_for_return_address): New function.
1356 (agent_command): Add return address special case.
1357 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1358 (amd64_gen_return_address): New function.
1359 (amd64_init_abi): Call it.
1360 * i386-tdep.c: Include ax.h and ax-gdb.h.
1361 (i386_gen_return_address): New function.
1362 (i386_init_abi): Call it.
1363 * arch-utils.h (default_gen_return_address): Declare.
1364 * arch-utils.c (default_gen_return_address): New function.
1365 * gdbarch.sh (gen_return_address): New method.
1366 * gdbarch.h, gdbarch.c: Regenerate.
1367
e04e5beb
JM
13682011-09-23 Joseph Myers <joseph@codesourcery.com>
1369
1370 PR gdb/13079
1371 * i386-tdep.c (i386_frame_align): New.
1372 (i386_gdbarch_init): Use i386_frame_align.
1373
f3d6df6d
YQ
13742011-09-23 Yao Qi <yao@codesourcery.com>
1375
1376 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1377 to get address.
1378
e69860f1
TG
13792011-09-22 Tristan Gingold <gingold@adacore.com>
1380
1381 * fork-child.c (fork_inferior): Add exec_fun parameter.
1382 Call exec_fun or execvp.
1383 * inferior.h: Adjust prototype.
1384 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1385 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1386 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1387 * procfs.c (procfs_create_inferior): Ditto.
1388 * darwin-nat.c (darwin_execvp): New function.
1389 (darwin_create_inferior): Use it.
1390
4b51d87b
YQ
13912011-09-22 Yao Qi <yao@codesourcery.com>
1392
1393 * infrun.c (context_switch): Print debug message when switching to
1394 a different thread.
1395
56b9d9ac
UW
13962011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1397
1398 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1399 complex and vector types.
1400 (s390_return_value_convention): Likewise.
1401
1402 (s390_value_from_register): Call check_typedef.
1403 (extend_simple_arg): Likewise.
1404 (alignment_of): Likewise.
1405 (s390_push_dummy_call): Likewise.
1406 (s390_return_value): Likewise.
1407
b2cd6b29
JM
14082011-09-21 Joseph Myers <joseph@codesourcery.com>
1409
1410 * event-top.c (async_disconnect): If an exception is thrown from
1411 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1412 catch_errors.
1413 * top.c (quit_cover): Return void and take no arguments.
1414 * top.h (quit_cover): Update prototype.
1415
67ba4e42
JM
14162011-09-20 Joseph Myers <joseph@codesourcery.com>
1417
1418 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1419 current_uiout, not uiout.
1420
562f943b
DE
14212011-09-19 Doug Evans <dje@google.com>
1422
1423 * python/py-auto-load.c (source_section_scripts): Fix file
1424 descriptor leak.
1425 * python/python.c (source_python_script_for_objfile): Tweak comments.
1426
34518530
YQ
14272011-09-18 Yao Qi <yao@codesourcery.com>
1428 Ulrich Weigand <ulrich.weigand@linaro.org>
1429
1430 Support displaced stepping for Thumb 16-bit insns.
1431 * arm-tdep.c (THUMB_NOP) Define.
1432 (thumb_copy_unmodified_16bit): New.
1433 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1434 (thumb_copy_alu_reg): New.
1435 (arm_copy_svc): Move some common code to ...
1436 (install_svc): ... here. New.
1437 (thumb_copy_svc): New.
1438 (install_pc_relative): New.
1439 (thumb_copy_pc_relative_16bit): New.
1440 (thumb_decode_pc_relative_16bit): New.
1441 (thumb_copy_16bit_ldr_literal): New.
1442 (thumb_copy_cbnz_cbz): New.
1443 (cleanup_pop_pc_16bit_all): New.
1444 (thumb_copy_pop_pc_16bit): New.
1445 (thumb_process_displaced_16bit_insn): New.
1446 (thumb_process_displaced_32bit_insn): New.
1447 (thumb_process_displaced_insn): process thumb instruction.
1448
1449 Support displaced stepping for Thumb 32-bit insns.
1450 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1451 (thumb2_copy_preload): New.
1452 (thumb2_copy_copro_load_store): New.
1453 (thumb2_copy_b_bl_blx): New.
1454 (thumb2_copy_alu_imm): New.
1455 (thumb2_copy_load_reg_imm): New.
1456 (thumb2_copy_load_literal): New
1457 (thumb2_copy_block_xfer): New.
1458 (thumb_32bit_copy_undef): New.
1459 (thumb_32bit_copy_unpred): New.
1460 (thumb2_decode_ext_reg_ld_st): New.
1461 (thumb2_decode_svc_copro): New.
1462 (decode_thumb_32bit_store_single_data_item): New.
1463 (thumb_copy_pc_relative_32bit): New.
1464 (thumb_decode_pc_relative_32bit): New.
1465 (decode_thumb_32bit_ld_mem_hints): New.
1466 (thumb2_copy_table_branch): New
1467 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1468 instructions.
1469
2b16b2e3
YQ
14702011-09-18 Yao Qi <yao@codesourcery.com>
1471
1472 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1473 (install_b_bl_blx): Likewise.
1474
0f6f04ba
YQ
14752011-09-17 Yao Qi <yao@codesourcery.com>
1476
1477 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1478 (install_load_store): ... this. New.
1479 Change parameter BYTE to SIZE.
1480 (arm_copy_ldr_str_ldrb_strb): Update caller.
1481 (arm_decode_ld_st_word_ubyte): Update caller.
1482
e2d96639
YQ
14832011-09-17 Yao Qi <yao@codesourcery.com>
1484
1485 * infrun.c (displaced_step_fixup): Move some code ...
1486 (displaced_step_restore): ... here. New function.
1487 (handle_inferior_event): Cleanup displaced stepping state for both
1488 child and parent when get forked or vforked event.
1489 * regcache.c (get_thread_arch_aspace_regcache): New function.
1490 get_thread_arch_regcache (): Call it.
1491
a8123151
JB
14922011-09-16 Joel Brobecker <brobecker@adacore.com>
1493
1494 * ada-tasks.c (print_ada_task_info): New function, merging
1495 short_task_info and info_tasks together. Reimplement using
1496 ui-out instead of printing to stdout directly. Move the code
1497 building and checking the task list here, instead of leaving it
1498 in info_tasks_command.
1499 (info_task): Move the code building and checking the task
1500 list here, instead of leaving it in info_tasks_command.
1501 (info_tasks_command): Delete code building and checking
1502 the task list - moved elsewhere. Update calls to info_tasks
1503 and info_task.
1504
fbf06824
JB
15052011-09-16 Joel Brobecker <brobecker@adacore.com>
1506
1507 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1508
34a0bc90
JB
15092011-09-16 Joel Brobecker <brobecker@adacore.com>
1510
1511 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1512
79779fa9
JB
15132011-09-16 Joel Brobecker <brobecker@adacore.com>
1514
1515 * ada-lang.h (ada_build_task_list): Remove parameter
1516 `warn_if_null'.
1517 * ada-tasks.c (ada_build_task_list): Remove parameter
1518 `warn_if_null'. Adjust implementation and documentation.
1519 (valid_task_id, ada_get_environment_task)
1520 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1521 (info_tasks_command): Adjust implementation.
1522 (task_command): Likewise.
1523 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1524 to ada_build_task_list.
1525
e225eb91
JB
15262011-09-16 Joel Brobecker <brobecker@adacore.com>
1527
1528 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1529 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1530 (ada_tasks_inferior_data_handle): New static global.
1531 (get_ada_tasks_inferior_data): New function.
1532 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1533 (ada_get_environment_task, iterate_over_live_ada_tasks)
1534 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1535 Adjust.
1536 (ada_set_current_inferior_known_tasks_addr): New function.
1537 (read_known_tasks, ada_build_task_list, short_task_info)
1538 (info_tasks, info_task, info_tasks_command, task_command_1)
1539 (task_command, ada_task_list_changed): Adjust.
1540 (ada_tasks_invalidate_inferior_data): New function.
1541 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1542 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1543 * ada-lang.h (struct inferior): Add declaration.
1544 (ada_task_list_changed): Update profile.
1545 * remote-wtx-pd.c: #include "inferior.h".
1546 (switch_to_pd_internal): Update call to ada_task_list_changed.
1547
6da9ca05
JB
15482011-09-16 Joel Brobecker <brobecker@adacore.com>
1549
1550 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1551 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1552 (atcb_fieldno): Delete these static globals.
1553 (struct ada_tasks_pspace_data): New struct.
1554 (ada_tasks_pspace_data_handle): New static global.
1555 (get_ada_tasks_pspace_data): New function.
1556 (ada_tasks_invalidate_pspace_data): New function.
1557 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1558 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1559 (_initialize_tasks): Create this module's per-progspace
1560 data handle.
1561
dccd3cbd
JB
15622011-09-16 Joel Brobecker <brobecker@adacore.com>
1563
1564 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1565
f877b031
TG
15662011-09-16 Tristan Gingold <gingold@adacore.com>
1567
1568 * fork-child.c (fork_inferior): Update comment. Use alloca
1569 instead of xmalloc for argv. Move len and shell_command
1570 declarations in the block where they are used.
1571 Only call execvp. Factorize failure code.
1572
ae0c443d
JK
15732011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1574
1575 Code cleanup.
1576 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1577 `exp_element' instead of an element of the same and make the function
1578 static.
1579 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1580 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1581 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1582 Change argument of `write_exp_elt' function call.
1583 Remove extra spaces from comments.
1584 * parser-defs.h (write_exp_elt): Remove prototype.
1585
5af65ec0
PK
15862011-09-15 Paul Koning <paul_koning@dell.com>
1587
1588 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1589 count of item appended to list.
1590 * python/py-type.c (typy_fields): Likewise.
1591
72be8ccc
PK
15922011-09-15 Paul Koning <paul_koning@dell.com>
1593
883640a8 1594 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1595
92f6badc
KP
15962011-09-15 Kevin Pouget <kevin.pouget@st.com>
1597
1598 PR threads/12628
1599 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1600 processes with multiple threads.
1601 (inf_has_multiple_thread_cb): New function.
1602 (inf_has_multiple_threads): New function.
1603
0672bf41 16042011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1605
1606 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1607 * python/py-inferior.c (GdbMethods): New Python method definition.
1608
6839b47f
KP
16092011-09-15 Kevin Pouget <kevin.pouget@st.com>
1610
1611 Handle multiple breakpoint hits in Python interface:
1612 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1613 variable to breakpoints.
1614 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1615 bps instead of single breakpoint. Fix some space typos.
1616 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1617 variable to breakpoints.
1618
672f9b60
KP
16192011-09-15 Kevin Pouget <kevin.pouget@st.com>
1620
1621 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1622 note if the breakpoint is internal.
1623
43675ae4
KP
16242011-09-15 Kevin Pouget <kevin.pouget@st.com>
1625
0672bf41 1626 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1627
15148d6a
PA
16282011-09-14 Pedro Alves <pedro@codesourcery.com>
1629
1630 * infrun.c (prepare_for_detach, wait_for_inferior)
1631 (fetch_inferior_event): Don't flush the register cache.
1632 * remote.c (struct stop_reply) <regcache>: Add comment.
1633
d83e736b
JK
16342011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 Remove excessive DWARF expressions memory duplication.
1637 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1638 for block.data.
1639 (indirect_pieced_value): Remove variable result. Remove variable
1640 back_to and its use for baton.data.
1641 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1642 block.data.
1643 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1644 Update the function comment.
1645
c65b3e0d
PA
16462011-09-13 Pedro Alves <pedro@codesourcery.com>
1647
1648 * inferior.h (ALL_INFERIORS): New.
1649 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1650 for a stopped thread.
1651 (thread_db_find_new_threads): Look for threads in all inferiors.
1652
a1398e0c
PA
16532011-09-13 Pedro Alves <pedro@codesourcery.com>
1654
1655 * breakpoint.c (update_watchpoint): Handle the case of the
1656 watchpoint to update not being in the breakpoint list yet.
1657 (hw_watchpoint_use_count): New, factored out from
1658 hw_watchpoint_used_count.
1659 (hw_watchpoint_used_count): Rename to ...
1660 (hw_watchpoint_used_count_others): ... this. Add `except'
1661 parameter. Don't count resources of `except'. Use
1662 hw_watchpoint_use_count.
1663
30596231
PA
16642011-09-13 Pedro Alves <pedro@codesourcery.com>
1665
1666 * gdbthread.h (enum thread_state): Moved here.
1667 (struct thread_info): Rename `executing_' field to `executing' and
1668 `state_' to `state'.
1669 * thread.c (enum thread_state): Moved to gdbthread.h.
1670 (new_thread, add_thread_silent, delete_thread_1)
1671 (any_live_thread_of_process, thread_alive, set_running)
1672 (set_running, is_thread_state, any_running, is_executing)
1673 (set_executing, finish_thread_state, print_thread_info)
1674 (do_captured_thread_select): Adjust.
1675
bede5f5f
JK
16762011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1677
1678 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1679 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1680
4801a9a3
PA
16812011-09-12 Pedro Alves <pedro@codesourcery.com>
1682 Matt Rice <ratmice@gmail.com>
1683
1684 PR gdb/13175
1685
1686 * interps.c (struct interp) <interpreter_out>: Delete field.
1687 (interp_new): Remove the data and uiout parameters and adjust.
1688 (interp_set): Only set the current_uiout from the interpreter's
1689 uiout after initializing the interpreter. Adjust call to
1690 init_proc.
1691 (interp_ui_out): Adjust to call procs->ui_out_proc.
1692 (interp_data, interp_name): New.
1693 * interps.h (interp_init_ftype): Add `self' parameter.
1694 (interp_ui_out_ftype): New typedef.
1695 (struct interp_procs) <ui_out_proc>: New method pointer.
1696 (interp_new): Remove the data and uiout parameters.
1697 (interp_data, interp_name): Declare.
1698 * tui/tui-interp.c (tui_init): Adjust prototype.
1699 (tui_ui_out): New.
1700 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1701 tui_out here. Adjust call to interp_new.
1702 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1703 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1704 (cli_ui_out): New.
1705 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1706 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1707 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1708 Initialize mi->uiout depending on the mi_version as extracted from
1709 the interpreter's name.
1710 (mi_ui_out): New.
1711 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1712 interp_new. Don't allocate the ui_out's of the interpreters here.
1713
d0afda03 17142011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 1715
d0afda03 1716 * solib.c (solib_used): New function.
59145f8c
AR
1717 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1718 by another so_list object before freeing it.
1719
bdaf8d4a
JK
17202011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 Code cleanup.
1723 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1724 values.
1725
df15bd07
JK
17262011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1727
1728 Code cleanup.
1729 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1730 (amd64_skip_xmm_prologue): ... this new function. Describe its
1731 parameters. No longer use amd64_prologue_line_bug.
1732 * defs.h (producer_is_gcc_ge_4): New declaration.
1733 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1734 (process_full_comp_unit): Update its caller. Remove
1735 amd64_prologue_line_bug initialization.
1736 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1737 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1738
25289eb2
PA
17392011-09-09 Pedro Alves <pedro@codesourcery.com>
1740
1741 * linux-nat.h (enum resume_kind): New.
1742 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
1743 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1744 resume_stop on the new lwp.
25289eb2
PA
1745 (add_lwp): Set last_resume_kind as resume_continue by default.
1746 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1747 (resume_lwp): New, factored out from resume_callback. Also check
1748 for pending status in lp->waitstatus.
1749 (resume_callback): Reimplement.
1750 (resume_clear_callback): Set last_resume_kind as resume_stop.
1751 (resume_set_callback): Set last_resume_kind as resume_continue.
1752 (linux_nat_resume, linux_handle_extended_wait): Set
1753 last_resume_kind.
1754 (running_callback): Also check lp->waitstatus for pending events.
1755 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1756 is resume_step.
1757 (stop_and_resume_callback): Don't re-resume if the core wanted the
1758 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1759 using an invalidated pointer.
1760 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1761 SIGSTOPs if the core wanted the LWP to stop.
1762 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1763 wanted the lwp to stop. If the core wanted the lwp to stop, and
1764 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1765 of TARGET_SIGNAL_STOP.
1766 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1767 here. Instead, signal the lwp, and set the last_resume_kind to
1768 resume_stop.
1769
f687d035
PA
17702011-09-09 Pedro Alves <pedro@codesourcery.com>
1771
1772 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1773 -1 (error), if the lwp exits right after attaching.
1774
bc587a6b
DE
17752011-09-08 Doug Evans <dje@google.com>
1776
63d97a20
DE
1777 * py-cmd.c: Some minor formatting fixes.
1778 (gdbpy_parse_command_name): Rename text arg to name, make const.
1779 All callers updated.
1780 * python-internal.h (gdbpy_parse_command_name): Update.
1781
bc587a6b
DE
1782 * cli/cli-decode.c (add_cmd): Add comment.
1783
08711b9a
JK
17842011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 PR breakpoints/12435
1787 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1788 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1789 * dwarf2read.c (process_full_comp_unit): Initialize
1790 amd64_prologue_line_bug.
1791 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1792
b2e7f004
JK
17932011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 Fix TUI screen corruption.
1796 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1797 batch_flag.
1798
8afd712c
JK
17992011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1800
1801 * findvar.c (read_var_value): Never return NULL, throw an error
1802 instead. Update the function comment. State symbol name in the error
1803 messages.
1804 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1805 read_var_value.
1806 * stack.c (print_frame_args): Likewise.
1807 * valops.c (value_of_variable): Likewise.
1808
b99b5f66
JK
18092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1810
1811 * stack.c (print_frame_args): New variable except. Wrap
1812 read_var_value and common_val_print into TRY_CATCH.
1813
85bc8cb7
JK
18142011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1815
1816 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1817 caller to value_of_this.
1818 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1819 Twice.
1820 * valops.c (value_of_this): Remove parameter complain and variable ret.
1821 Update function comment. Never return NULL by this code.
1822 (value_of_this_silent): New function.
1823 * value.h (value_of_this): Remove parameter complain.
1824 (value_of_this_silent): New declaration.
1825
ede1849f
YQ
18262011-09-07 Yao Qi <yao@codesourcery.com>
1827
1828 * gdbthread.h (struct thread_info): Remove fields
1829 `stepping_through_solib_after_catch' and
1830 `stepping_through_solib_catchpoints'.
1831 * infrun.c (init_thread_stepping_state): Update.
1832 (process_event_stop_test, currently_stepping): Update.
1833 (currently_stepping_or_nexting_callback): Update.
1834
6aa27652
YQ
18352011-09-07 Yao Qi <yao@codesourcery.com>
1836
1837 * gdbthread.h (struct thread_info): Comment on field
1838 `step_after_step_resume_breakpoint'.
1839
00db5b94
PA
18402011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1841
1842 * remote.c (remote_console_output): Reindent.
1843
861152be
LM
18442011-09-06 Luis Machado <lgustavo@codesourcery.com>
1845
1846 * frame.c (has_stack_frames): Check for currently selected
1847 traceframe.
1848
ab821bc6
PA
18492011-09-06 Pedro Alves <pedro@codesourcery.com>
1850
1851 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1852 (set_async_annotation_level, set_async_prompt, pop_prompt)
1853 (push_prompt, new_async_prompt): Delete declarations.
1854 * top.h (get_prompt, set_prompt): Change prototype.
1855 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1856 declarations.
1857 * top.c (command_loop):
1858 (top_prompt): New global.
1859 (get_prefix, set_prefix, get_suffix, ): Delete.
1860 (get_prompt, set_prompt): Rewrite.
1861 (show_new_async_prompt): Rename to ...
1862 (show_prompt): ... this.
1863 (init_main): Adjust. Don't handle --annotate=2 here.
1864 * event-top.c (new_async_prompt): Delete.
1865 (the_prompts): Delete.
1866 (more_to_come): Make static.
1867 (display_gdb_prompt): Use top_level_prompt() to compute the top
1868 level prompt, and don't notify the before_prompt observers
1869 directly here. Always trick readline into not trying to display
1870 the prompt if sync_execution and displaying the primary prompt.
1871 If displaying a local/secondary prompt, always show it, even if
1872 sync_execution is set.
1873 (change_annotation_level): Delete.
1874 (top_level_prompt): New, based on change_annotation_level.
1875 (push_prompt, pop_prompt): Delete.
1876 (async_disable_stdin): No longer pushes prompt.
1877 (command_line_handler): No longer pushes or pops prompt. If more
1878 input is expected, call display_gdb_prompt with an explicit empty
1879 prompt.
1880 (async_stop_sig): Adjust.
1881 (set_async_annotation_level, set_async_prompt): Delete.
1882 * python/python.c (before_prompt_hook): Adjust.
1883
f1d90504
PA
18842011-09-05 Pedro Alves <pedro@codesourcery.com>
1885
1886 PR cli/13110
1887
1888 * infrun.c (fetch_inferior_event): Check if there's a selected
1889 thread before checking if the selected thread is executing.
1890
0f641c01
PA
18912011-09-05 Pedro Alves <pedro@codesourcery.com>
1892
1893 * inf-loop.c (execute_command): Don't check if the current thread
1894 if running before synchronously waiting for command completion.
1895 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1896 here.
1897 (normal_stop): Call async_enable_stdin here.
1898 * inf-loop.c (inferior_event_handler): Don't call
1899 async_enable_stdin, nor handle "set exec-done-display" here.
1900
30368258 19012011-09-04 Joel Brobecker <brobecker@adacore.com>
1902
1903 GDB 7.3.1 released.
1904
31916278
JB
19052011-09-04 Joel Brobecker <brobecker@adacore.com>
1906
1907 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1908
e8d56f18
JB
19092011-09-04 Joel Brobecker <brobecker@adacore.com>
1910
1911 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1912
5dd05d8c
JK
19132011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1914
1915 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1916
7d8e6458 19172011-09-02 Matt Rice <ratmice@gmail.com>
1918
1919 PR gdb/10720
1920 * event-top.c (cli_command_loop): Replace readline setup with
1921 direct call to display_gdb_prompt.
1922 (display_gdb_prompt): Do not call observer mechanism during
1923 synchronous execution.
1924
84636d28
PA
19252011-09-02 Pedro Alves <pedro@codesourcery.com>
1926
1927 * linux-nat.c (in_pid_list_p): New.
1928 (linux_record_stopped_pid): Delete.
1929 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1930 already attached to the LWP. Return an indication if so.
1931 (linux_nat_filter_event): Adjust.
1932 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1933 returning an indication to ignore this thread.
1934
b4a14fd0
PA
19352011-09-02 Pedro Alves <pedro@codesourcery.com>
1936
1937 * top.c: Include interps.h.
1938 (execute_command): If the target can async, but the interpreter is
1939 in sync mode, synchronously wait for the command to finish before
1940 returning.
1941 (execute_command_to_string): Force the interpreter to sync mode.
1942 * infrun.c: Include interps.h.
1943 (fetch_inferior_event): Don't restore the prompt yet if the
1944 interpreter is in sync mode.
1945 * interps.c (interpreter_async): New global.
1946 * interps.h (interpreter_async): Declare.
1947 * inf-loop.c: Include interps.h.
1948 (inferior_event_handler): Don't print the language change or run
1949 breakpoint commands yet if the interpreter in is sync mode.
1950 * main.c (captured_command_loop): Flip the interpreter to async
1951 mode.
1952 * cli/cli-script.c: Include interps.h.
1953 (execute_user_command, while_command, if_command): Force the
1954 interpreter to sync mode.
1955 * python/python.c: Include interps.h.
1956 (python_command, execute_gdb_command): Force the interpreter to
1957 sync mode.
1958
c709acd1
PA
19592011-09-02 Pedro Alves <pedro@codesourcery.com>
1960
1961 * value.c (show_convenience): Catch errors thrown while printing
1962 each internal variable.
1963 * infrun.c (validate_siginfo_access): New function.
1964 (siginfo_value_read, siginfo_value_write): Call it.
1965
9655e943
JK
19662011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1967
1968 Revert:
1969 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1970 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1971 attribute.
1972
cb457ae2
YQ
19732011-08-29 Yao Qi <yao@codesourcery.com>
1974
1975 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1976 (cmp_name): New.
1977 (enable_break2): Update caller.
1978 * solib-frv.c (bfd_lookup_symbol): Removed.
1979 (cmp_name): New.
1980 (enable_break2): Update caller.
1981 * solib-pa64.c (bfd_lookup_symbol): Removed.
1982 (cmp_name): New.
1983 * solib-svr4.c (bfd_lookup_symbol): Removed.
1984 (cmp_name_and_sec_flags): New.
1985 (enable_break): Update caller.
1986 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1987 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1988 (gdb_bfd_lookup_symbol): New.
1989 * solib.h: Functions declarations.
1990
83d1a36a
YQ
19912011-08-29 Yao Qi <yao@codesourcery.com>
1992
1993 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1994 and solib-dsbt.o.
1995
c04b3e8f
JK
19962011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1997
1998 Fix TUI stepi on code without symbols.
1999 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2000 current PC instead.
2001
cb0fd152
JK
20022011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2003
2004 Code cleanup.
2005 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2006 and the static keyword.
2007 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2008 Make prefix an array.
2009 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2010 * mi/mi-main.c (get_register): Remove stb initialization and the static
2011 keyword.
2012
91174723
JK
20132011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 Code cleanup - make mi_opt const.
2016 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2017 opts const.
2018 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2019 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2020 (mi_cmd_env_dir): Likewise.
2021 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2022 (mi_cmd_target_file_put): Likewise.
2023 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2024 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2025 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2026 (mi_valid_noargs): Make opts const.
2027 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2028 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2029 (mi_cmd_data_read_memory): Likewise.
2030 (mi_cmd_data_read_memory_bytes): Likewise.
2031 (mi_cmd_data_write_memory): Likewise.
2032
5068b8e8 20332011-08-26 Matt Rice <ratmice@gmail.com>
2034
2035 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2036 bcache_xmalloc, replace bcache_xmalloc with call to
2037 psymbol_bcache_init for psymbol_cache.
2038 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2039
a4f2ce05
JK
20402011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * inf-loop.c (inferior_event_handler): Add exception_print in
2043 INF_EXEC_COMPLETE.
2044
353d1d73
JK
20452011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2048 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2049 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2050 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2051 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2052 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2053 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2054 * infrun.c (fetch_inferior_event): Call
2055 make_bpstat_clear_actions_cleanup.
2056 * top.c (execute_command): New variable cleanup_if_error, call
2057 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2058 * utils.c (do_bpstat_clear_actions_cleanup)
2059 (make_bpstat_clear_actions_cleanup): New functions.
2060
3ced3da4
PA
20612011-08-26 Pedro Alves <pedro@codesourcery.com>
2062
2063 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2064 either the parent or the child forks. Rename a couple locals.
2065
a9f4bb21
PA
20662011-08-26 Pedro Alves <pedro@codesourcery.com>
2067
2068 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2069 library call. Avoid reading the `status' local if all waitpid
2070 calls failed.
2071
e5798bef
PA
20722011-08-26 Pedro Alves <pedro@codesourcery.com>
2073
2074 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2075 opening /proc/PID/task always succeeds.
2076
edb2aadf
AR
20772011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2078
2079 * linespec.c (symtab_from_filename): Check for the end of string.
2080
0d932b2f
MK
20812011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2082
2083 PR mi/11912
2084 * varobj.c (cplus_describe_child): Add the keyword
2085 'class' to the output of the method when dealing
2086 with a cast to a base class.
2087
e93ca019
JK
20882011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2089
2090 No functionality change.
2091 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2092 function comment a reference, new variables tp and bs, move here code
2093 from throw_exception.
2094 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2095 describe it in the comment.
2096 * exceptions.c (throw_exception): Remove variable tp, move the code for
2097 bpstat_clear_actions to bpstat_clear_actions.
2098
13da1c97
LM
20992011-08-24 Luis Machado <lgustavo@codesourcery.com>
2100
2101 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2102 * linux-nat.c: Include linux-procfs.h.
2103 (linux_proc_get_tgid): Move to ...
2104 * common/linux-procfs.c: ... here. New file.
2105 * common/linux-procfs.h: New file.
2106 * linux-thread-db.c: Include linux-procfs.h.
2107 * Makefile.in: Update dependencies.
2108 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2109 * config/arm/linux.mh: Likewise.
2110 * config/i386/linux.mh: Likewise.
2111 * config/i386/linux64.mh: Likewise.
2112 * config/ia64/linux.mh: Likewise.
2113 * config/m32r/linux.mh: Likewise.
2114 * config/m68k/linux.mh: Likewise.
2115 * config/mips/linux.mh: Likewise.
2116 * config/pa/linux.mh: Likewise.
2117 * config/pa/linux.mh: Likewise.
2118 * config/powerpc/linux.mh: Likewise.
2119 * config/powerpc/ppc64-linux.mh: Likewise.
2120 * config/powerpc/spu-linux.mh: Likewise.
2121 * config/sparc/linux.mh: Likewise.
2122 * config/sparc/linux64.mh: Likewise.
2123 * config/xtensa/linux.mh: Likewise.
2124
4e5c165d
HZ
21252011-08-24 Hui Zhu <teawater@gmail.com>
2126
2127 * tracepoint.c (cond_string_is_same): New function.
2128 (find_matching_tracepoint): Add condition check
2129 by cond_string_is_same.
2130
6e2f5b22
JK
21312011-08-23 Josh Matthews <josh@joshmatthews.net>
2132
2133 Fix build error in Darwin port.
2134 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2135
abf85f46
JK
21362011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 Code cleanup.
2139 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2140 (command_line_is_silent): New function.
2141 (bpstat_do_actions_1): No longer use commands_left, use
2142 command_line_is_silent for commands.
2143 (bpstat_alloc): Remove clearing of commands_left.
2144 (bpstat_stop_status): Remove initialization of commands_left, use
2145 command_line_is_silent.
2146 * breakpoint.h (struct bpstats): Remove commands_left.
2147
3a93a0c2
KS
21482011-08-18 Keith Seitz <keiths@redhat.com>
2149
2150 PR c++/12266
2151 * cp-name-parser.y (struct demangle_info): Remove unused
2152 member PREV.
2153 (d_grab): Likewise.
2154 (allocate_info): Change return type to struct demangle_info *.
2155 Always allocate a new demangle_info.
2156 Remove unused PREV pointer.
2157 (cp_new_demangle_parse_info): New function.
2158 (cp_demangled_name_parse_free): New function.
2159 (do_demangled_name_parse_free_cleanup): New function.
2160 (make_cleanup_cp_demangled_name_parse_free): New function.
2161 (cp_demangled_name_to_comp): Change return type to
2162 struct demangle_parse_info *.
2163 Allocate a new storage for each call.
2164 (main): Update usage for cp_demangled_name_to_comp
2165 API change.
2166 * cp-support.h (struct demangle_parse_info): New structure.
2167 (cp_demangled_name_to_comp): Update API change for
2168 return type.
2169 (cp_new_demangle_parse_info): Declare.
2170 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2171 (cp_demangled_name_parse_free): Declare.
2172 * cp-support.c (cp_canonicalize_string): Update API
2173 change for cp_demangled_name_to_comp.
2174 (mangled_name_to_comp): Likewise.
2175 Return struct demangle_parse_info, too.
2176 (cp_class_name_from_physname): Update mangled_name_to_comp
2177 API change.
2178 (method_name_from_physname): Likewise.
2179 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2180 (cp_remove_params): Likewise.
2181 * python/py-type.c (typy_legacy_template_argument): Likewise.
2182
2183 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2184 (cp_merge_demangle_parse_infos): Declare.
2185 * cp-support.c (ignore_typedefs): New file global.
2186 (copy_string_to_obstack): New function.
2187 (inspect_type): New function.
2188 (replace_typedefs): New function.
2189 (replace_typedefs_qualified_name): New function.
2190 (cp_canonicalize_string_no_typedefs): New function.
2191 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2192 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2193 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2194 instead of cp_canonicalize_string.
2195 (find_method): Likewise.
2196 (decode_compound): Before looking up the name, call
2197 cp_canonicalize_string_no_typedefs.
2198 (decode_variable): Likewise.
2199
fa3a4f15
PM
22002011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2201 Tom Tromey <tromey@redhat.com>
2202 Matt Rice <ratmice@gmail.com>
2203
2204 * python/lib/gdb/prompt.py: New file.
2205 * python/lib/gdb/command/prompt.py: New file.
2206 * NEWS: Document set extended-prompt and gdb.prompt library
2207
85661b1e
YQ
22082011-08-16 Yao Qi <yao@codesourcery.com>
2209
2210 * tic6x-linux-tdep.c: Move const arrays definition from here...
2211 * tic6x-tdep.c: to here ...
2212
11315641
YQ
22132011-08-14 Yao Qi <yao@codesourcery.com>
2214
2215 * NEWS: New port to Texas Instruments TMS320C6x.
2216
8cd64e00
YQ
22172011-08-14 Andrew Jenner <andrew@codesourcery.com>
2218 Bernd Schmidt <bernds@codesourcery.com>
2219 Yao Qi <yao@codesourcery.com>
2220
2221 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2222 * solib-dsbt.c: New file. Support DSBT shared object.
2223 * tic6x-linux-tdep.c: New file.
2224 * tic6x-tdep.c: New file.
2225 * tic6x-tdep.h: New file.
2226
78d85199
YQ
22272011-08-14 Andrew Stubbs <ams@codesourcery.com>
2228 Yao Qi <yao@codesourcery.com>
2229
2230 * remote.c (PACKET_qXfer_fdpic): New enum value.
2231 (remote_protocol_features): Add qXfer:fdpic:read packet.
2232 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2233 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2234 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2235
224bbe49
YQ
22362011-08-14 Yao Qi <yao@codesourcery.com>
2237
2238 Target description for tic6x.
2239 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2240 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2241 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2242 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2243 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2244 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2245 * features/tic6x-c64xp-linux.xml: New.
2246 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2247 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2248 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2249 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2250 * regformats/tic6x-c64xp.dat,
2251 regformats/tic6x-c62x-linux.dat: Generated.
2252 * regformats/tic6x-c64x-linux.dat,
2253 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2254 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2255 features/tic6x-*.c files.
2256 Add regformats/tic6x-*.dat files.
2257
457e09f0
DE
22582011-08-12 Doug Evans <dje@google.com>
2259
2260 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2261 * python/py-symbol.c (sympy_get_type): New function.
2262 (symbol_object_getset): Add "type".
2263
d20c1c3f
PA
22642011-08-12 Pedro Alves <pedro@codesourcery.com>
2265
2266 PR tui/13073
2267
2268 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2269 empty name.
2270 (tui_show_register_group): Don't store a byte buffer in the data
2271 element's value.
2272 (tui_register_format): Skip registers with an empty name.
2273 (tui_get_register): Store a struct value in the data element's
2274 value field instead of a byte buffer holding the raw register
2275 contents. Account for optimized-out and unavailable registers
2276 when comparing register contents.
2277
9d8fa392
PA
22782011-08-09 Pedro Alves <pedro@codesourcery.com>
2279
2280 * printcmd.c (current_display_number): Update comment.
2281 (disable_current_display_cleanup): Delete.
2282 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2283 catch errors thrown while evaluating and printing the display.
2284
401a70b8
TT
22852011-08-09 Tom Tromey <tromey@redhat.com>
2286
2287 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2288
7f86f058
PA
22892011-08-09 Pedro Alves <pedro@codesourcery.com>
2290
94b71cca 2291 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2292 * maint.c (maintenance_command): Ditto.
2293 * somread.c (som_symtab_read): Ditto.
2294 * solib.c (solib_find, solib_map_sections, update_solib_list)
2295 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2296 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2297 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2298 * solib-irix.c (locate_base, disable_break, enable_break)
2299 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2300 (irix_current_sos, irix_open_symbol_file_object)
2301 (irix_special_symbol_handling): Ditto.
2302 * solib-sunos.c (locate_base, first_link_map_member)
2303 (sunos_current_sos, disable_break, enable_break)
2304 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2305 Ditto.
2306 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2307 (open_symbol_file_object, svr4_current_sos, enable_break)
2308 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2309 Ditto.
2310 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2311 (frv_current_sos, enable_break, frv_special_symbol_handling)
2312 (frv_solib_create_inferior_hook): Ditto.
2313 * solist.h (struct target_so_ops): Extend the comments of the
2314 special_symbol_handling, current_sos and open_symbol_file_object
2315 methods.
2316
5e239b84
PM
23172011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2318
2319 * python/lib/gdb/__init__.py: Auto-load files in command and
2320 function directories.
2321 * python/python.c (finish_python_initialization): Use
2322 os.path.join.
2323 * python/lib/gdb/command/pretty_printers.py: Self register
2324 command.
2325 * NEWS: Document auto-loading.
2326
b6cede78
JK
23272011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2328
2329 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2330 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2331 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2332
29d0bb3d
TT
23332011-08-08 Tom Tromey <tromey@redhat.com>
2334
2335 * breakpoint.c (clean_up_filters): Remove.
2336 (catch_syscall_split_args): Use VEC_cleanup.
2337
2f7fb8e4
JK
23382011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2341 (main): Uncomment "Demangling error\n".
2342
d6c10e95
PP
23432011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2344
2345 * solib-target.c (segment_attributes): Make them static.
2346 (section_attributes, library_children, library_attributes): Likewise.
2347 (library_list_children, library_list_attributes): Likesise.
2348 (library_list_elements): Likewise.
2349
af6e93b2
PA
23502011-08-05 Pedro Alves <pedro@codesourcery.com>
2351
2352 * exceptions.c (throw_exception): Don't disable the current
2353 display.
2354 * printcmd.c (disable_current_display_cleanup): New function.
2355 (do_one_display): Install a cleanup to disable the current display
2356 if doing the display throws.
2357
6a1b1664
EZ
23582011-08-05 Eli Zaretskii <eliz@gnu.org>
2359
2360 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2361 initialization of the tp_new member to the corresponding
2362 gdbpy_initialize_* function.
2363 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2364 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2365 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2366 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2367 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2368
31a0ae49
JK
23692011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2370
2371 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2372 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2373 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2374 references to current_uiout.
2375
e0dd0826
PA
23762011-08-04 Pedro Alves <pedro@codesourcery.com>
2377
2378 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2379 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2380 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2381 * top.c (gdb_readline_wrapper): Adjust.
2382 * tui/tui-interp.c (tui_command_loop):
2383 (_initialize_tui_interp): Don't install it.
2384
79a45e25
PA
23852011-08-04 Pedro Alves <pedro@codesourcery.com>
2386
2387 * ui-out.h (uiout): Rename to ...
2388 (current_uiout): ... this.
2389 * ui-out.c (uiout): Rename to ...
2390 (current_uiout): ... this.
2391 * ada-lang.c (print_it_exception, print_one_exception)
2392 (print_mention_exception): Adjust.
2393 * breakpoint.c (watchpoint_check): Adjust.
2394 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2395 (default_collect_info, watchpoints_info, print_one_catch_fork)
2396 (print_one_catch_vfork, print_one_catch_syscall)
2397 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2398 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2399 (print_it_watchpoint, print_mention_watchpoint)
2400 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2401 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2402 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2403 (bkpt_print_mention, momentary_bkpt_print_it)
2404 (tracepoint_print_mention, update_static_tracepoint)
2405 (tracepoints_info, save_breakpoints): Adjust.
2406 * cli-out.c (field_separator): Adjust.
2407 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2408 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2409 * frame.c (get_current_frame): Adjust.
2410 * infcmd.c (run_command_1, print_return_value): Adjust.
2411 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2412 * infrun.c (print_end_stepping_range_reason): Adjust.
2413 (print_signal_exited_reason, print_exited_reason): Adjust.
2414 (print_signal_received_reason, print_no_history_reason): Adjust.
2415 * interps.c (interp_set): Adjust.
2416 * osdata.c (info_osdata_command): Adjust.
2417 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2418 * remote-fileio.c (remote_fileio_request): Adjust.
2419 * remote.c (show_remote_cmd): Adjust.
2420 * solib.c (info_sharedlibrary_command): Adjust.
2421 * source.c (print_source_lines_base): Adjust.
2422 * stack.c (print_stack_frame): Adjust.
2423 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2424 * symfile-mem.c (add_vsyscall_page): Adjust.
2425 * symfile.c (load_progress, generic_load)
2426 (print_transfer_performance): Adjust.
2427 * thread.c (info_threads_command, restore_selected_frame)
2428 (thread_command): Adjust.
2429 * top.c (make_cleanup_restore_ui_file): Adjust.
2430 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2431 (print_one_static_tracepoint_marker): Adjust.
2432 * cli/cli-cmds.c (print_disassembly): Adjust.
2433 * cli/cli-decode.c (print_doc_line): Adjust.
2434 * cli/cli-interp.c (safe_execute_command): Adjust.
2435 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2436 (handle_redirections): Adjust.
2437 * cli/cli-script.c (show_user_1): Adjust.
2438 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2439 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2440 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2441 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2442 (mi_cmd_env_dir): Adjust.
2443 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2444 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2445 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2446 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2447 (list_args_or_locals): Adjust.
2448 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2449 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2450 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2451 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2452 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2453 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2454 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2455 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2456 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2457 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2458 (list_available_thread_groups, mi_cmd_list_thread_groups)
2459 (mi_cmd_data_list_register_names)
2460 (mi_cmd_data_list_changed_registers)
2461 (mi_cmd_data_list_register_values, get_register)
2462 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2463 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2464 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2465 (mi_execute_command, mi_load_progress): Adjust.
2466 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2467 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2468 Adjust.
2469 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2470 * tui/tui-interp.c (tui_command_loop): Adjust.
2471 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2472
f9679975
PA
24732011-08-04 Pedro Alves <pedro@codesourcery.com>
2474
2475 * exceptions.c (struct catcher): Remove saved_uiout field.
2476 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2477 no longer save/resvore the global ui_out builder.
2478 (catch_exceptions_with_msg): Save/override/restore the global
2479 ui_out builder manually instead of relying on TRY_CATCH to do it.
2480 (catch_errors): Save/restore the global ui_out builder manually
2481 instead of relying on TRY_CATCH to do it.
2482 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2483 parameter.
2484 (TRY_CATCH): Adjust.
2485 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2486 the global ui_out builder manually instead of relying on TRY_CATCH
2487 to do it.
2488
934709f0
PW
24892011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2490
2491 * breakpoint.c (update_global_location_list): Ensure
2492 invariant 'first loc marked not duplicated and inserted,
2493 following locs marked duplicated/not inserted' is respected
2494 for multiple locations at the same address.
2495 (unduplicated_should_be_inserted) New function.
2496 (swap_insertion) New function.
2497
2421fe6f
JK
24982011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2499
2500 * stack.c (print_frame_arguments_choices): Comment typo fix.
2501
3fbb6ffa
TJB
25022011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2503
2504 Revert:
2505 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2506 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2507 argument. Update callers.
2508
fbe12357
PP
25092011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2510
2511 PR gdb/13045
2512 * doublest.c (convert_doublest_to_floatformat): Pass correct
2513 mantissa length to put_field.
2514
b1d288d3
JK
25152011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2518 exception_print code path.
2519 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2520 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2521 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2522
311b5970
JK
25232011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 Code cleanup.
2526 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2527 Remove, merge them into ...
2528 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2529 variable args and its initialization.
2530 (struct print_args_args, print_args_stub): Remove, merge them into
2531 print_frame.
2532 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2533 them into ...
2534 (do_gdb_disassembly): ... here. Remove variable args and its
2535 initialization.
2536 (print_frame): Remove variable args and its initialization, new
2537 variable gdbarch and numargs (from print_args_stub), inline here
2538 print_args_stub with a TRY_CATCH.
2539 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2540 them into ...
2541 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2542 New variable e, remove variable btargs and its initialization.
311b5970 2543
484a26a8
TG
25442011-08-01 Tristan Gingold <gingold@adacore.com>
2545
2546 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2547
c30eee59
TJB
25482011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2549
2550 * breakpoint.c (insert_bp_location): Document return value.
2551 (insert_breakpoint_locations): Fix documentation.
2552 (remove_breakpoints): Add documentation.
2553
f116073b
TJB
25542011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2555
2556 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2557 argument. Update callers.
2558
65aa373f
JK
25592011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2560
2561 * stack.c (print_frame_info): Comment typo fix.
2562
a50242fb
SA
25632011-07-29 Sterling Augustine <saugustine@google.com>
2564
2565 * MAINTAINERS (Write After Approval): Add myself to the list.
2566
267f6504
TT
25672011-07-29 Tom Tromey <tromey@redhat.com>
2568
2569 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2570 (library_list_start_segment): Update.
2571 (library_list_start_section): Update.
2572
00bd41d6
PM
25732011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2574
2575 * varobj.c (value_get_print_value): Move hint check later into the
2576 function. Comment function. Free thevalue before reusing it.
2577
18a46dbe
JK
25782011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2579 Pedro Alves <pedro@codesourcery.com>
2580
2581 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2582 value_one.
2583 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2584 Assert the result kind.
2585 * value.h (value_one): Remove parameter lv.
2586
bb7da2bf
JK
25872011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2588
2589 Fix crash on lval_computed values.
2590 * valops.c (value_zero): Use not_lval for lval_computed.
2591
2d5213f8
TT
25922011-07-27 Tom Tromey <tromey@redhat.com>
2593
2594 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2595 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2596
11081198
JK
25972011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2598
2599 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2600 "ptype" by their typedefs difference.
2601
3c6e0cb3
JK
26022011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 * dwarf2expr.c (ctx_no_read_reg): New function.
2605 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2606 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2607 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2608 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2609
523f3620
JK
26102011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2611
2612 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2613 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2614 file.
2615 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2616 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2617 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2618 (ctx_no_get_base_type): Move the functions here.
2619 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2620 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2621 (ctx_no_get_base_type): New declarations.
2622
24d3216f
TT
26232011-07-27 Tom Tromey <tromey@redhat.com>
2624
2625 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2626 entries.
2627 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2628 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2629
5005c8a9
PP
26302011-07-26 Sterling Augustine <saugustine@google.com>
2631
2632 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2633 ULONGEST.
2634 (dump_bfd_file): Likewise.
2635
480a3f21
PW
26362011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637
2638 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2639 (remote_hw_watchpoint_length_limit): New variable.
2640 (_initialize_remote) add set,show cmds for this new variable.
2641 * gdb.texinfo: document these new commands.
2642 * NEWS: Mention these new commands.
2643
efa80663
PA
26442011-07-26 Pedro Alves <pedro@codesourcery.com>
2645
2646 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2647 true for software watchpoints.
2648
dbdaa232 26492011-07-26 Joel Brobecker <brobecker@adacore.com>
2650
2651 GDB 7.3 released.
2652
cf2c3c16
TT
26532011-07-26 Tom Tromey <tromey@redhat.com>
2654
2655 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2656 * dwarf2read.c (read_indirect_string_at_offset): New function.
2657 (read_indirect_string): Use it.
2658 (dwarf_decode_macro_bytes): New function, taken from
2659 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2660 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2661 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2662 New functions.
2663 (struct dwarf2_per_objfile) <macro>: New field.
2664 (dwarf2_elf_names): Add .debug_macro.
2665 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2666 (dwarf2_locate_sections): Handle new section.
2667 (read_file_scope): Handle DW_AT_GNU_macros.
2668 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2669
1a532630
PP
26702011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2671
2672 * NEWS: Mention dcache configuration.
2673 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2674 (dcache_size, dcache_line_size): New variables.
2675 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2676 (struct dcache_block): Make it expandable.
2677 (struct dcache_struct): New field.
2678 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2679 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2680 (dcache_poke_byte, dcache_print_line): Adjust.
2681 (set_dcache_size, set_dcache_line_size): New functions.
2682 (set_dcache_command, show_dcache_command): New functions.
2683 (_initialize_dcache): Add new commands.
2684
2eff07b3
PP
26852011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2686
2687 * progspace.h (struct program_space): Add solib_add_generation.
2688 * infcmd.c (post_create_inferior): Only call solib_add if not
2689 already done.
2690 * solib.c (solib_add): Increment solib_add_generation.
2691
543305c9
JK
26922011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2693
2694 Fix implicit pointer offsets.
2695 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2696 ptr.OFFSET.
2697
c0a91b2b
TT
26982011-07-25 Tom Tromey <tromey@redhat.com>
2699
2700 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2701 const.
2702 (ada_exception_sal): Make 'ops' const.
2703 (ada_decode_exception_location): Likewise.
2704 (ada_decode_assert_location): Likewise.
2705 (catch_assert_command): Update.
2706 (catch_ada_exception_command): Update.
2707 (create_ada_exception_catchpoint): Make 'ops' const.
2708 * breakpoint.c (set_raw_breakpoint_without_location)
2709 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2710 const.
2711 (create_internal_breakpoint): Update.
2712 (init_raw_breakpoint_without_location): Make 'ops' const.
2713 (init_raw_breakpoint, init_catchpoint)
2714 (create_fork_vfork_event_catchpoint)
2715 (create_syscall_event_catchpoint, init_breakpoint_sal)
2716 (create_breakpoint_sal, create_breakpoints_sal)
2717 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2718 * breakpoint.h (struct breakpoint) <ops>: Now const.
2719 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2720 const.
2721
6cb9b55b
PP
27222011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2723
2724 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2725
d9b3f62e
PA
27262011-07-25 Pedro Alves <pedro@codesourcery.com>
2727
2728 * breakpoint.h (print_recreate_thread): Declare.
2729 (struct breakpoint): Move step_count, pass_count,
2730 number_on_target, static_trace_marker_id,
2731 static_trace_marker_id_idx ...
2732 (struct tracepoint): ... to this new struct.
2733 (get_tracepoint, get_tracepoint_by_number_on_target)
2734 (get_tracepoint_by_number): Change return type to struct
2735 tracepoint pointer.
2736 * breakpoint.c (is_tracepoint_type): New, factored out from
2737 is_tracepoint.
2738 (is_tracepoint): Adjust.
2739 (print_one_breakpoint_location): Cast to struct tracepoint as
2740 necessary, and adjust.
2741 (print_recreate_catch_fork, print_recreate_catch_vfork)
2742 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2743 print_recreate_thread.
2744 (init_breakpoint_sal): New, factored out from
2745 create_breakpoint_sal.
2746 (create_breakpoint_sal): Reimplement.
2747 (create_breakpoint): Allocate a struct tracecepoint if the caller
2748 wanted a tracepoint. Use init_breakpoint_sal and
2749 install_breakpoint.
2750 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2751 (print_recreate_masked_watchpoint)
2752 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2753 (tracepoint_print_one_detail): Adjust.
2754 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2755 Dump the pass count here.
2756 (update_static_tracepoint): Adjust.
2757 (addr_string_to_sals): Adjust.
2758 (create_tracepoint_from_upload): Adjust. Change return type to
2759 struct tracepoint pointer.
2760 (trace_pass_set_count): Change parameter type to struct tracepoint
2761 pointer, and adjust.
2762 (trace_pass_command): Adjust.
2763 (get_tracepoint, get_tracepoint_by_number_on_target)
2764 (get_tracepoint_by_number): Change return type to struct
2765 tracepoint pointer, and adjust.
2766 (print_recreate_thread): New, factored out from save_breakpoints.
2767 (save_breakpoints): Don't print thread and task and passcount
2768 recreation here.
2769 * remote.c (remote_download_tracepoint): Adjust.
2770 * tracepoint.c (trace_actions_command, validate_actionline)
2771 (start_tracing, tfind_1, trace_find_tracepoint_command)
2772 (trace_dump_command): Adjust.
2773 (find_matching_tracepoint): Change return type to struct
2774 tracepoint pointer, and adjust.
2775 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2776 (tfile_trace_find, tfile_fetch_registers): Adjust.
2777 * tracepoint.h (create_tracepoint_from_upload): Change return type
2778 to struct tracepoint pointer.
2779 * ada-lang.c (print_recreate_exception): Call
2780 print_recreate_thread.
2781 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2782
3a5c3e22
PA
27832011-07-25 Pedro Alves <pedro@codesourcery.com>
2784
2785 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2786 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2787 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2788 watchpoint_thread, watchpoint_triggered ...
2789 (struct watchpoint): ... to this new struct.
2790 (is_watchpoint): Declare.
2791 (install_breakpoint): Add new `internal' parameter.
2792 * breakpoint.c (is_watchpoint): Delete declaration.
2793 (set_breakpoint_condition): Handle watchpoints.
2794 (is_watchpoint): Make public.
2795 (watchpoint_in_thread_scope): Change parameter type to struct
2796 watchpoint.
2797 (watchpoint_del_at_next_stop): Change parameter type to struct
2798 watchpoint. Remove assertion. Adjust.
2799 (update_watchpoint): Ditto.
2800 (insert_breakpoints, breakpoint_init_inferior)
2801 (watchpoints_triggered, watchpoint_check)
2802 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2803 (bpstat_stop_status, print_one_breakpoint_location)
2804 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2805 to struct watchpoint as necessary, and adjust.
2806 (install_breakpoint): Add `internal' argument. If true, don't
2807 mention the new breakpoint. Use set_breakpoint_number.
2808 (create_fork_vfork_event_catchpoint)
2809 (create_syscall_event_catchpoint): Adjust.
2810 (dtor_watchpoint): New.
2811 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2812 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2813 (print_it_watchpoint, print_mention_watchpoint)
2814 (print_recreate_watchpoint, insert_masked_watchpoint)
2815 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2816 (print_one_detail_masked_watchpoint)
2817 (print_mention_masked_watchpoint)
2818 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2819 necessary, and adjust.
2820 (watch_command_1): Allocate and initialize a struct watchpoint
2821 instead of a struct breakpoint. Use install_breakpoint.
2822 (catch_exec_command_1): Adjust.
2823 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2824 fields.
2825 (delete_breakpoint, enable_breakpoint_disp)
2826 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2827 as necessary, and adjust.
2828 (initialize_breakpoint_ops): Install dtor_watchpoint as
2829 watchpoints' dtor method.
2830 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2831 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2832 to struct watchpoint as necessary, and adjust.
2833
2060206e
PA
28342011-07-25 Pedro Alves <pedro@codesourcery.com>
2835
2836 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2837 the the base class ops table.
2838 (catch_exception_breakpoint_ops)
2839 (catch_exception_unhandled_breakpoint_ops)
2840 (catch_assert_breakpoint_ops): Don't statically initialize.
2841 (initialize_ada_catchpoint_ops): New.
2842 (_initialize_ada_language): Call it.
2843 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2844 (bkpt_breakpoint_ops): Forward declare.
2845 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2846 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2847 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2848 (masked_watchpoint_breakpoint_ops)
2849 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2850 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2851 base class ops table.
2852 (null_re_set, null_check_status, null_works_in_software_mode)
2853 (null_resources_needed, null_print_one_detail): Delete.
2854 (bkpt_dtor): Rename to ...
2855 (base_breakpoint_dtor): ... this. Make static.
2856 (bkpt_allocate_location): Rename to ...
2857 (base_breakpoint_allocate_location): ... this. Make static.
2858 (base_breakpoint_re_set): New.
2859 (internal_error_pure_virtual_called): New.
2860 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2861 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2862 (base_breakpoint_works_in_software_mode)
2863 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2864 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2865 (base_breakpoint_print_recreate): New functions.
2866 (base_breakpoint_ops): New global.
2867 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2868 (bkpt_breakpoint_hit): Make static.
2869 (bkpt_check_status): Delete.
2870 (bkpt_resources_needed): Make static.
2871 (bkpt_works_in_software_mode): Delete.
2872 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2873 static.
2874 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2875 (momentary_breakpoint_ops): Don't statically initialize.
2876 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2877 Delete.
2878 (tracepoint_insert_location, tracepoint_remove_location)
2879 (tracepoint_check_status, tracepoint_works_in_software_mode)
2880 (tracepoint_print_it): Delete.
2881 (tracepoint_breakpoint_ops): Don't statically initialize.
2882 (initialize_breakpoint_ops): New.
2883 (_initialize_breakpoint): Call it.
2884 * breakpoint.h (null_re_set, null_works_in_software_mode)
2885 (null_resources_needed, null_check_status, null_print_one_detail):
2886 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2887 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2888 (bkpt_check_status, bkpt_resources_needed)
2889 (bkpt_works_in_software_mode, bkpt_print_it)
2890 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2891 Delete declarations.
2892 (initialize_breakpoint_ops): Declare.
2893
001c8c33
PA
28942011-07-25 Pedro Alves <pedro@codesourcery.com>
2895
2896 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2897 (momentary_bkpt_print_it): Simplify.
2898
06edf0c0
PA
28992011-07-25 Pedro Alves <pedro@codesourcery.com>
2900
2901 Split internal, momentary and user breakpoints breakpoint_ops
2902 tables.
2903
2904 * breakpoint.c (internal_breakpoint_ops)
2905 (momentary_breakpoint_ops): Forward declare.
2906 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2907 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2908 (create_overlay_event_breakpoint)
2909 (create_std_terminate_master_breakpoint)
2910 (create_exception_master_breakpoint): Create breakpoints with
2911 internal_breakpoint_ops vtable.
2912 (set_longjmp_breakpoint): Create momentary breakpoints with
2913 momentary_breakpoint_ops vtable, using
2914 momentary_breakpoint_from_master.
2915 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2916 (create_solib_event_breakpoint): Create breakpoints with
2917 internal_breakpoint_ops vtable.
2918 (set_momentary_breakpoint): Create breakpoints with
2919 momentary_breakpoint_ops vtable.
2920 (momentary_breakpoint_from_master): New, factored out from
2921 clone_momentary_breakpoint.
2922 (clone_momentary_breakpoint): Adjust.
2923 (watch_command_1): Create scope breakpoints with
2924 momentary_breakpoint_ops vtable.
2925 (bkpt_re_set): Remove handling of internal and momentary
2926 breakpoints.
2927 (bkpt_print_mention, bkpt_print_recreate): New.
2928 (bkpt_breakpoint_ops): Adjust.
2929 (internal_bkpt_re_set, internal_bkpt_check_status)
2930 (internal_bkpt_print_it, internal_bkpt_print_mention)
2931 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2932 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2933 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2934 (momentary_bkpt_print_recreate): New.
2935 (momentary_breakpoint_ops): New.
2936
348d480f
PA
29372011-07-25 Pedro Alves <pedro@codesourcery.com>
2938
2939 Implement most breakpoint_ops methods for all breakpoint types,
2940 and move the default handlings to the proper callbacks.
2941
2942 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2943 works_in_software_mode method.
2944 (insert_bp_location): Go through breakpoint_ops->insert_location
2945 for software and hardware watchpoints.
2946 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2947 breakpoint_ops.
2948 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2949 for software and hardware watchpoints.
2950 (print_it_typical): Delete.
2951 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2952 method.
2953 (watchpoint_check): Adjust comment.
2954 (bpstat_check_location): Simply always call the breakpoint's
2955 breakpoint_hit method.
2956 (bpstat_stop_status): Always call the breakpoint's check_status
2957 method. Remove special cases for watchpoints and internal event
2958 breakpoints from here (moved to the check_status implementations).
2959 (print_one_breakpoint_location): Assume b->ops is never NULL.
2960 Remove static tracepoint marker id printing from here (moved to
2961 the print_one_detail callback implementation of tracepoints).
2962 (init_bp_location): Assert OPS is never NULL.
2963 (allocate_bp_location): Always call the breakpoint's
2964 allocate_location method, and remove the default code from here.
2965 (free_bp_location): Always call the location's dtor method, and
2966 remove the default code from here.
2967 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2968 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2969 parameter. Pass it down.
2970 (set_raw_breakpoint): Ditto.
2971 (print_it_catch_fork): Adjust to take a bpstat as argument.
2972 (catch_fork_breakpoint_ops): Install methods.
2973 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2974 (catch_vfork_breakpoint_ops): Install methods.
2975 (dtor_catch_syscall): Call the base dtor.
2976 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2977 (catch_syscall_breakpoint_ops): Install methods.
2978 (dtor_catch_exec): Call the base dtor.
2979 (print_it_catch_exec): Adjust to take a bpstat as argument.
2980 (catch_exec_breakpoint_ops): Install methods.
2981 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2982 the breakpoint's resources_needed method, and remove the default
2983 code from here.
2984 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2985 breakpoint_ops.
2986 (clone_momentary_breakpoint): Clone the original's ops.
2987 (mention): Always call the breakpoint's print_mention method, and
2988 remove the default code from here.
2989 (create_breakpoint_sal): Adjust to pass the ops to
2990 set_raw_breakpoint rather than setting it manually.
2991 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2992 ops to set_raw_breakpoint_without_location rather than setting it
2993 manually.
2994 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2995 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2996 (ranged_breakpoint_ops): Install methods.
2997 (break_range_command): Adjust to pass the ops to
2998 set_raw_breakpoint rather than setting it manually.
2999 (re_set_watchpoint, breakpoint_hit_watchpoint)
3000 (check_status_watchpoint, resources_needed_watchpoint)
3001 (works_in_software_mode_watchpoint, print_it_watchpoint)
3002 (print_mention_watchpoint, print_recreate_watchpoint): New
3003 functions.
3004 (watchpoint_breakpoint_ops): Install new methods.
3005 (print_it_masked_watchpoint): New function.
3006 (masked_watchpoint_breakpoint_ops): Install new methods.
3007 (watch_command_1): Adjust to pass the right breakpoint_ops to
3008 set_raw_breakpoint_without_location rather than setting it
3009 manually later. Record the current pspace.
3010 (print_it_exception_catchpoint): Adjust to take a bpstat as
3011 argument.
3012 (gnu_v3_exception_catchpoint_ops): Install new methods.
3013 (say_where): New function.
3014 (null_re_set, null_check_status, null_works_in_software_mode)
3015 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3016 New functions.
3017 (bp_location_ops): New global.
3018 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3019 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3020 (bkpt_check_status, bkpt_resources_needed)
3021 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3022 (bkpt_print_recreate): New functions.
3023 (bkpt_breakpoint_ops): New global.
3024 (tracepoint_re_set, tracepoint_insert_location)
3025 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3026 (tracepoint_check_status, tracepoint_works_in_software_mode)
3027 (tracepoint_print_it, tracepoint_print_one_detail)
3028 (tracepoint_print_mention, tracepoint_print_recreate): New
3029 functions.
3030 (tracepoint_breakpoint_ops): New global.
3031 (delete_breakpoint): Always call the breakpoint's dtor method, and
3032 remove the default handling from here.
3033 (breakpoint_re_set_default): Make static.
3034 (breakpoint_re_set_one): Always call the breakpoints re_set
3035 method, and remove the default handling from here.
3036 (trace_command, ftrace_command, strace_command)
3037 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3038 to create_breakpoint.
3039 (save_breakpoints): Always call the breakpoint's print_recreate
3040 method, and remove the default handling from here.
3041
3042 * ada-lang.c (dtor_exception): Call the base dtor.
3043 (re_set_exception): Call the base method.
3044 (print_it_exception, print_it_catch_exception): Adjust to take a
3045 bpstat as argument.
3046 (catch_exception_breakpoint_ops): Install methods.
3047 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3048 argument.
3049 (catch_exception_unhandled_breakpoint_ops): Install methods.
3050 (print_it_catch_assert): Adjust to take a bpstat as argument.
3051 (catch_assert_breakpoint_ops): Install methods.
3052
3053 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3054 to take a bpstat as argument.
3055 (enum print_stop_action): Add describing comments to each enum
3056 value.
3057 (breakpoint_re_set_default): Delete declaration.
3058 (null_re_set, null_works_in_software_mode, null_resources_needed)
3059 (null_check_status, null_print_one_detail): Declare.
3060 (bkpt_breakpoint_ops): Declare.
3061 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3062 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3063 (bkpt_check_status, bkpt_resources_needed)
3064 (bkpt_works_in_software_mode, bkpt_print_it)
3065 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3066 Declare.
3067
3068 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3069 bkpt_breakpoint_ops.
3070 * python/py-breakpoint.c (bppy_init): Ditto.
3071
be8f8133
PW
30722011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3073
3074 * MAINTAINERS (Write After Approval): Add myself to the list.
3075
3807f613
PP
30762011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3077
3078 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3079
1ced966e
PA
30802011-07-22 Pedro Alves <pedro@codesourcery.com>
3081
3082 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3083 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3084 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3085 adjust.
3086 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3087 (struct i386_debug_reg_state): New.
3088 (i386_init_dregs): New.
3089 (dr_mirror): New.
3090 (i386_cleanup_dregs): Use i386_init_dregs.
3091 (i386_show_dr): Add state parameter and adjust.
3092 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3093 the inferior here.
3094 (i386_remove_aligned_watchpoint): Likewise.
3095 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3096 (i386_update_inferior_debug_regs): New.
3097 (i386_insert_watchpoint): Work on a local mirror of the debug
3098 registers, and only update the inferior on success.
3099 (i386_remove_watchpoint): Ditto.
3100 (i386_region_ok_for_watchpoint): Adjust.
3101 (i386_stopped_data_address): Adjust.
3102 (i386_insert_hw_breakpoint): Adjust.
3103 (i386_remove_hw_breakpoint): Adjust.
3104
3543a589
TT
31052011-07-22 Tom Tromey <tromey@redhat.com>
3106
3107 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3108 from amd64_pseudo_register_read. Change arguments. Call
3109 mark_value_bytes_unavailable when needed.
3110 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3111 set_gdbarch_pseudo_register_read.
3112 * sentinel-frame.c (sentinel_frame_prev_register): Use
3113 regcache_cooked_read_value.
3114 * regcache.h (regcache_cooked_read_value): Declare.
3115 * regcache.c (regcache_cooked_read_value): New function.
3116 (regcache_cooked_read): Call
3117 gdbarch_pseudo_register_read_value if available.
3118 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3119 (i386_pseudo_register_read): Remove.
3120 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3121 i386_pseudo_register_read. Change arguments. Call
3122 mark_value_bytes_unavailable when needed.
3123 (i386_pseudo_register_read_value): New function.
3124 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3125 not set_gdbarch_pseudo_register_read.
3126 * gdbarch.sh (pseudo_register_read_value): New method.
3127 * gdbarch.c, gdbarch.h: Rebuild.
3128 * findvar.c (value_from_register): Call get_frame_register_value.
3129
95298e72
PM
31302011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3131
3132 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3133 get_prefix.
3134 (display_gdb_prompt): Likewise.
3135 (change_annotation_level): Likewise.
3136 (push_prompt): Likewise.
3137 (pop_prompt): Likewise.
3138 (handle_stop_sig): Use get_prompt with a level.
3139 * top.c (command_loop): Use get_prompt with a level.
3140 (set_async_annotation_level): Use set_prompt with a level.
3141 (get_prefix): New function.
3142 (set_prefix): Ditto.
3143 (set_suffix): Ditto.
3144 (get_suffix): Ditto.
3145 (get_prompt): Accept a level argument.
3146 (set_prompt): Accept a level argument. Free old prompts. Set
3147 new_async_prompt if level is 0.
3148 (init_main): Use set_prompt with a level. Do not set
3149 new_async_prompt.
3150 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3151 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3152 Modify set_prompt, get_prompt to account for levels.
3153 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3154 level.
3155 * python/python.c (before_prompt_hook): Use set_prompt.
3156
d26e3629
KY
31572011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3158
3159 * defs.h: Add guard against inclusion in gdbserver.
3160 (struct ptid, ptid_t): Move to common/ptid.h.
3161 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3162 xsnprintf, internal_error): Move to common/common-utils.h.
3163 (nomem): Delete.
3164 * gdb_assert.h: Move into common/ sub-directory.
3165 * gdb_locale.h: Ditto.
3166 * gdb_dirent.h: Ditto.
3167 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3168 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3169 Move into common/ptid.h.
3170 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3171 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3172 Change nomem to malloc_failure.
3173 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3174 * utils.c (nomem): Rename to malloc_failure.
3175 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3176 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3177 (gdb_buildargv): Change nomem to malloc_failure.
3178 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3179 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3180 ptid_is_pid): Move into common/ptid.c.
3181 (initialize_infrun): Delete initialization of null_ptid and
3182 minus_one_ptid.
3183 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3184 linux_common_xfer_osdata.
3185 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3186 common/ptid.c and common/buffer.c.
3187 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3188 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3189 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3190 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3191 rules.
3192 * common/gdb_assert.h: New.
3193 * common/gdb_dirent.h: New.
3194 * common/gdb_locale.h: New.
3195 * common/buffer.c: New.
3196 * common/buffer.h: New.
3197 * common/ptid.c: New.
3198 * common/ptid.h: New.
3199 * common/xml-utils.c: New.
3200 * common/xml-utils.h: New.
3201 * common/common-utils.c: New.
3202 * common/common-utils.h: New.
3203 * common/linux-osdata.c: New.
3204 * common/linux-osdata.h: New.
3205 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3206 * config/arm/linux.mh (NATDEPFILES): Ditto.
3207 * config/i386/linux.mh (NATDEPFILES): Ditto.
3208 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3209 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3210 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3211 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3212 * config/mips/linux.mh (NATDEPFILES): Ditto.
3213 * config/pa/linux.mh (NATDEPFILES): Ditto.
3214 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3215 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3216 * config/s390/s390.mh (NATDEPFILES): Ditto.
3217 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3218 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3219 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3220
edc84990 32212011-07-21 Matt Rice <ratmice@gmail.com>
3222
3223 * NEWS: Add info macros and info definitions commands.
3224
3a7bf607
PM
32252011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3226
3227 * NEWS: Document Python prompt substitution hook.
3228
9b158ba0 32292011-07-18 Matt Rice <ratmice@gmail.com>
3230
3231 PR macros/12999
3232 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3233 * macrotab.c (foreach_macro): Ditto.
3234 (foreach_macro_in_scope): Ditto.
3235 * macrocmd.c (print_macro_callback): New function.
3236 (info_macro_command): Move some code to print_macro_definition.
3237 (print_macro_definition): New function.
3238 (print_one_macro): Add new arguments to callback.
3239 (info_definitions_command): New function.
3240 (info_macros_command): Ditto.
3241 (_initialize_macrocmd): Add info macros and info definitions commands.
3242 * symtab.c (add_macro_name): Add new arguments to callback.
3243
d17b6f81
PM
32442011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3245 Tom Tromey <tromey@redhat.com>
3246
3247 * top.c (set_prompt): Rewrite to free previous prompt, free
3248 asynch_new_prompt and set both on new prompts.
3249 * event-top.c (display_gdb_prompt): Add prompt substitution
3250 logic.
3251 * python/python.c (before_prompt_hook): New function.
3252
1364323a 32532011-07-20 Matt Rice <ratmice@gmail.com>
3254
3255 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3256 arguments to store_unsigned_integer.
3257
8b70b953
TT
32582011-07-20 Tom Tromey <tromey@redhat.com>
3259
6c83ed52
TT
3260 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3261 in some declaration-only cases.
3262
32632011-07-18 Tom Tromey <tromey@redhat.com>
3264
8b70b953
TT
3265 PR symtab/12984:
3266 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3267 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3268 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3269 <debug_type_section>: New field.
3270 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3271 (load_cu): Use appropriate section.
3272 (create_signatured_type_table_from_index): Add 'section'
3273 argument.
3274 (dwarf2_read_index): Only allow a single .debug_types section.
3275 (dw2_get_file_names): Use appropriate section.
3276 (read_type_comp_unit_head): Add 'section' argument.
3277 (create_debug_types_hash_table): Loop over all .debug_types
3278 sections.
3279 (init_cu_die_reader): Use appropriate section.
3280 (process_psymtab_comp_unit, load_partial_comp_unit)
3281 (load_full_comp_unit, read_die_and_children, find_partial_die)
3282 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3283 (lookup_signatured_type_at_offset): Add 'section' argument.
3284 (read_signatured_type_at_offset): Add 'sect' argument.
3285 (read_signatured_type): Use appropriate section.
3286 (set_die_type, get_die_type_at_offset): Update.
3287 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3288 VEC.
3289 (write_psymtabs_to_index): Don't allow index with more than one
3290 .debug_types section.
3291
918dd910
JK
32922011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3293
3294 Fix crash if referenced CU is aged out.
3295 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3296 xfree of block.data.
3297 (indirect_pieced_value): New variable back_to, use to for xfree of
3298 baton.data.
3299 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3300 block.data.
3301 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3302 (load_cu): New function from ...
3303 (dw2_do_instantiate_symtab): ... the code here ...
3304 (process_full_comp_unit): ... and here.
3305 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3306 retval.data.
3307
0e37a63c
JK
33082011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3309
3310 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3311 type.
3312
7e324e48
GB
33132011-07-19 Gary Benson <gbenson@redhat.com>
3314
3315 * infrun.c (struct execution_control_state): New member
3316 stop_func_filled_in.
3317 (clear_stop_func, fill_in_stop_func): New functions.
3318 (handle_inferior_event): Call clear_stop_func rather than
3319 manipulating the execution control state directly.
3320 Call fill_in_stop_func lazily as required rather than
3321 directly calling find_pc_partial_function in all cases.
3322
d48323d8
TT
33232011-07-18 Tom Tromey <tromey@redhat.com>
3324
3325 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3326 checking for variable-sized array.
3327
40591b7d
JCD
33282011-07-18 Jean-Charles Delay <delay@adacore.com>
3329
3330 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3331 of supported languages.
3332 * varobj.c: Add top definitions and basic implementation of the
3333 following callbacks: ada_number_of_children, ada_name_of_variable,
3334 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3335 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3336 (languages): Register Ada-specific callbacks.
3337 (variable_language): Add the Ada case in the language setter switch.
3338
2e424e08
JK
33392011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3342
9e8b7a03
JK
33432011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 Code cleanup.
3346 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3347 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3348 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3349 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3350 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3351 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3352 (struct dwarf_expr_context_funcs): New, move here methods from ...
3353 (struct dwarf_expr_context): ... here. New fields funcs.
3354 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3355 (dwarf_expr_ctx_funcs): New.
3356 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3357 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3358 (needs_frame_ctx_funcs): New.
3359 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3360
2b1260ab
FM
33612011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3362
3363 * MAINTAINERS (Write After Approval): Add myself to the list.
3364
8bd90839
FM
33652011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3366
3367 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3368 that CIE pointer of an FDE really points to a CIE .
3369
953b98d1
HZ
33702011-07-15 Hui Zhu <teawater@gmail.com>
3371
3372 * remote.c (remote_get_trace_status): Add comments.
3373
c8f2448a
JK
33742011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3375
3376 Code cleanup - constify struct lval_funcs.
3377 * dwarf2loc.c (pieced_value_funcs): Make it const.
3378 * infrun.c (siginfo_value_funcs): Likewise.
3379 * opencl-lang.c (opencl_value_funcs): Likewise.
3380 * valops.c (value_assign, value_ind): Make the funcs variable const.
3381 * value.c (struct value): Make location.computed.funcs target const.
3382 Rearrange the comments.
3383 (allocate_computed_value): Make the funcs parameter target const.
3384 (value_computed_funcs): Return the funcs target const.
3385 (value_free, value_copy, set_value_component_location): Make the funcs
3386 variable const.
3387 * value.h (allocate_computed_value): Make the funcs parameter target
3388 const.
3389 (value_computed_funcs): Return the funcs target const.
3390 * windows-tdep.c (tlb_value_funcs): Make it const.
3391
f652de6f
HZ
33922011-07-14 Hui Zhu <teawater@gmail.com>
3393
3394 * remote.c (remote_get_trace_status): Initialize p.
3395
67f41397
JK
33962011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 Work around kgdb.
3399 * remote.c (remote_get_trace_status): New variable ex. Put
3400 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3401
d1b66e6d
TT
34022011-07-13 Tom Tromey <tromey@redhat.com>
3403
3404 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3405 value_from_contents for final conversion.
3406
1632a688
JK
34072011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 Code cleanup.
3410 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3411 Indent prototypes so they do not get into tags.
3412
a7035dbb
JK
34132011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3414
3415 Code cleanup making also optimized out values lazy.
3416 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3417 allocate_optimized_out_value. Twice.
3418 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3419 * findvar.c (read_var_value): Likewise.
3420 * value.c (allocate_optimized_out_value): New function.
3421 * value.h (allocate_optimized_out_value): New declaration.
3422
d07ed419
JK
34232011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3424
3425 Fix occasional crash of CTRL-C during DWARF read in.
3426 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3427
86d31898
TT
34282011-07-11 Tom Tromey <tromey@redhat.com>
3429
3430 * regcache.c (struct regcache_descr): Fix typo.
3431 * i387-tdep.c (i387_supply_xsave): Fix typo.
3432
2ab95328
TT
34332011-07-11 Tom Tromey <tromey@redhat.com>
3434
3435 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3436 (read_file_scope, read_type_unit_scope): Use it.
3437
04ad99e6
JK
34382011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3439
3440 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3441 `int'.
3442
713389e0
PM
34432011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3444
3445 PR python/12438
3446 * python/python.c: Set gdbpy_should_print_stack default to off.
3447 (set_python): Deprecate maint set python print-stack to
3448 class_deprecate.
3449 (_initialize_python): Deprecate maint set/show python print-stack.
3450 Add new prefix command, python. Add new setting, print-backtrace.
3451 * NEWS: Document set python print-stack. Document default change.
3452
754eadd1
PM
34532011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3454
3455 * python/py-inferior.c (infpy_dealloc): New function.
3456 (inferior_to_inferior_object): Return a new object, or a
3457 new reference to the existing object.
3458 (find_thread_object): Cleanup references to inferior.
3459 (delete_thread_object): Ditto.
3460 * python/py-infthread.c (create_thread_object): Do not increment
3461 inferior reference count.
3462
5e44ecb3
TT
34632011-07-08 Tom Tromey <tromey@redhat.com>
3464
3465 * dwarf2loc.c (locexpr_regname): New function.
3466 (locexpr_describe_location_piece): Use it.
3467 (disassemble_dwarf_expression): Add per_cu argument. Use
3468 locexpr_regname.
3469 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3470 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3471 New cases.
3472 (locexpr_describe_location_1): Add per_cu argument.
3473 (locexpr_describe_location): Update.
3474 (loclist_describe_location): Update.
3475
e0e9434c
TT
34762011-07-08 Tom Tromey <tromey@redhat.com>
3477
3478 * dwarf2expr.c (execute_stack_op): Add QUIT.
3479
26afc0d7
HZ
34802011-07-07 Hui Zhu <teawater@gmail.com>
3481
3482 Revert:
3483 2011-07-06 Hui Zhu <teawater@gmail.com>
3484 * remote.c (remote_start_remote): Add TRY_CATCH for
3485 remote_get_trace_status.
3486 * tracepoint.c (disconnect_tracing): Ditto.
3487
a40a111f
AB
34882011-07-07 Andrew Burgess <aburgess@broadcom.com>
3489
3490 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3491 variables as signed, not unsigned.
3492
e2bd3b15
JB
34932011-07-06 Joel Brobecker <brobecker@adacore.com>
3494
3495 * jit.c (jit_inferior_init): Reformat forward declaration.
3496
e3d961fe 34972011-07-06 Matt Rice <ratmice@gmail.com>
3498
3499 * MAINTAINERS (Write After Approval): Add myself to the list.
3500
0f3428f0
HZ
35012011-07-06 Hui Zhu <teawater@gmail.com>
3502
3503 * remote.c (remote_start_remote): Add TRY_CATCH for
3504 remote_get_trace_status.
3505 * tracepoint.c (disconnect_tracing): Ditto.
3506
fc9f3a69
TT
35072011-07-05 Tom Tromey <tromey@redhat.com>
3508
3509 * symtab.c (operator_chars): Now static.
3510 * linespec.c (operator_chars): Don't declare.
3511
26e519b9
TJB
35122011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3513
3514 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3515
eb2a6f42
TT
35162011-07-05 Tom Tromey <tromey@redhat.com>
3517
3518 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3519 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3520 (TYPE_CPLUS_REALLY_JAVA): New macro.
3521 * dwarf2read.c (process_structure_scope): Set
3522 TYPE_CPLUS_REALLY_JAVA.
3523
21083d0f 35242011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3525
3526 * ada-lang.c: Fix typos.
3527 * amd64-tdep.c: Likewise.
3528 * breakpoint.c: Likewise.
3529 * cli/cli-decode.c: Likewise.
3530 * findcmd.c: Likewise.
3531 * inline-frame.c: Likewise.
3532 * mi/mi-main.c: Likewise.
3533 * minsyms.c: Likewise.
3534 * monitor.c: Likewise.
3535 * monitor.h: Likewise.
3536 * prologue-value.c: Likewise.
3537 * reverse.c: Likewise.
3538 * s390-tdep.c: Likewise.
3539
3b2a0cf2
JB
35402011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3541
3542 * jit.c (jit_inferior_init): Forward declare.
3543 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3544
efae1d92
JB
35452011-07-04 Joel Brobecker <brobecker@adacore.com>
3546
3547 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3548
6040a59d
JB
35492011-07-04 Tristan Gingold <gingold@adacore.com>
3550
3551 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3552 (tcb_fieldno): Add activation_link field.
3553 (get_known_tasks_addr): Moved and rewritten.
3554 (get_tcb_types_info): Set activation_link field.
3555 (read_known_tasks_array): Add parameter. Rewritten.
3556 (read_known_tasks_list): New function.
3557 (read_known_tasks): New function.
3558 (ada_build_task_list): Call read_known_tasks instead of
3559 read_known_tasks_array.
3560 * ravenscar-thread.c: Add first_task_name constant.
3561 (has_ravenscar_runtime): Check for task list too.
3562
cb741e45
JB
35632011-07-04 Tristan Gingold <gingold@adacore.com>
3564
3565 * ada-tasks.c: Renames fieldno to actb_fieldno.
3566 (ada_get_task_number): Indentation.
3567 (get_tcb_types_info): Remove all parameters. Write directly
3568 the globals.
3569 (ptid_from_atcb_common): Adjust.
3570 (read_atcb): Adjust.
3571
7475b06c
TJB
35722011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3573
3574 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3575
15230f37
TJB
35762011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3577
3578 * ui-out.c (ui_out_field_core_addr): Mention that the function
3579 description is in the header file.
3580 * ui-out.h (ui_out_field_core_addr): Document function.
3581
65743aba
TJB
35822011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3583
3584 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3585 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3586
c37a5aab
TJB
35872011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3588
3589 * symtab.c (expand_line_sal): Remove empty line.
3590
59adf69e
TS
35912011-07-04 Thomas Schwinge <thomas@schwinge.name>
3592
3593 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3594 same way as ELFOSABI_NONE.
3595 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3596
e5dd4106
TJB
35972011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3598
3599 * breakpoint.c: Fix typos in comments.
3600 * linespec.c: Likewise.
3601 * symtab.c: Likewise.
3602
d40102a1
JB
36032011-07-04 Joel Brobecker <brobecker@adacore.com>
3604
3605 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3606 section in separate object files.
3607
2f741504
JK
36082011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 Fix false GCC warning.
3611 * linespec.c (decode_line_1): Initialize values.
3612
418c7cf7
JK
36132011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3614
3615 * linespec.c (find_method): Accept the function type automatically only
3616 if it was specified with parameter types.
3617
3d50dd94
JK
36182011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 Stop on first linespec terminator instead of eating what we can.
3621 * linespec.c (is_linespec_boundary): New function.
3622 (name_end): Remove function.
3623 (keep_name_info): New parameter on_boundary, replace the body.
3624 (decode_line_1): Provide the parameter to keep_name_info.
3625 (decode_compound): Likewise. Drop the trailing java return type
3626 handling. Twice.
3627
dcf9f4ab
JK
36282011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 Fall back linespec to minimal symbols.
3631 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3632 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3633 (find_method, symbol_found): Change error to cplusplus_error.
3634
3f542ed1
JK
36352011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3636
bc68c4e5 3637 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3638
900e11f9
JK
36392011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3640 Tom Tromey <tromey@redhat.com>
3641
3642 * dwarf2read.c (check_physname): New variable.
3643 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3644 (show_check_physname): New function.
3645 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3646
2301925d
JB
36472011-07-01 Joel Brobecker <brobecker@adacore.com>
3648
3649 * machoread.c (macho_symfile_read): Delete OBE comment.
3650
38947cca
JB
36512011-07-01 Joel Brobecker <brobecker@adacore.com>
3652
3653 * machoread.c (struct macho_oso_data): Delete.
3654 (current_oso): Delete.
3655 (macho_relocate_common_syms): New function, mostly extracted
3656 out of
3657 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3658 Remove code that sets and unset current_oso.
3659 (macho_symfile_relocate): Delete handling of common symbols,
3660 now moved to macho_relocate_common_syms.
3661
a7aa0d73
JB
36622011-07-01 Joel Brobecker <brobecker@adacore.com>
3663
3664 * darwin-nat.c (darwin_ptrace): Add documentation.
3665 Set errno to zero before calling ptrace. If ptrace returns
3666 -1 and errno is zero, then change then return zero.
3667 (darwin_kill_inferior): Issue a warning instead of triggering
3668 a failed assertion when the PT_KILL ptrace operations returned
3669 nonzero.
3670
5e9bc145
JB
36712011-07-01 Joel Brobecker <brobecker@adacore.com>
3672
3673 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3674 only when inf->private->no_ptrace.
3675
00eb2c4a
JB
36762011-07-01 Joel Brobecker <brobecker@adacore.com>
3677
3678 * ada-lang.c (print_it_exception): Print temporary catchpoints
3679 as "Temporary catchpoint".
3680 (print_mention_exception): Likewise.
3681
127c81bc
TT
36822011-07-01 Tom Tromey <tromey@redhat.com>
3683
3684 * jv-lang.c (java_language_defn): Use java_printchar,
3685 java_printstr.
3686 (java_get_encoding): New function.
3687 (java_emit_char): Use generic_emit_char.
3688 (java_printchar): New function.
3689 (java_printstr): Likewise.
3690
25552254
JB
36912011-07-01 Joel Brobecker <brobecker@adacore.com>
3692
3693 * ada-typeprint.c (print_record_type): If unable to decode
3694 the name of the parent type, use the encoded name.
3695
d2d43431
JB
36962011-07-01 Jean-Charles Delay <delay@adacore.com>
3697
3698 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3699 pointer to constrained packed array type output.
3700 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3701 packed array output.
3702
54ae186f
JB
37032011-07-01 Jean-Charles Delay <delay@adacore.com>
3704
3705 * ada-typeprint.c (print_array_type): removed if condition on show
3706 being negative for bounds printing.
3707
8f17729f
JB
37082011-07-01 Joel Brobecker <brobecker@adacore.com>
3709
3710 * ada-lang.c (ada_identical_enum_types_p): New function.
3711 (symbols_are_identical_enums): New function.
3712 (remove_extra_symbols): Do nothing if NSYMS < 2.
3713 Use symbols_are_identical_enums.
3714
f5aa6869
JB
37152011-07-01 Joel Brobecker <brobecker@adacore.com>
3716
3717 * ada-valprint.c (ada_value_print): Handle typedefs.
3718
8f465ea7
JB
37192011-07-01 Joel Brobecker <brobecker@adacore.com>
3720
3721 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3722
828292f2
JB
37232011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3724
3725 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3726 (decode_constrained_packed_array): Likewise.
3727 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3728
18920c42
JB
37292011-07-01 Joel Brobecker <brobecker@adacore.com>
3730
3731 * ada-exp.y (convert_char_literal): Handle typedef types.
3732
c90092fe
JB
37332011-07-01 Joel Brobecker <brobecker@adacore.com>
3734
3735 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3736
f748fb40
TT
37372011-06-30 Tom Tromey <tromey@redhat.com>
3738
3739 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3740 * valops.c (find_overload_match): Call do_cleanups on early exit
3741 path.
3742 * solib.c (solib_find): Call do_cleanups on early exit path.
3743
3bb47e8b
TT
37442011-06-30 Tom Tromey <tromey@redhat.com>
3745
3746 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3747 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3748 return paths. Defer final do_cleanups until last return.
3749 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3750 early return.
3751
4727bad3
TT
37522011-06-30 Tom Tromey <tromey@redhat.com>
3753
3754 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3755
bb361dbf
AB
37562011-06-30 Andrew Burgess <aburgess@broadcom.com>
3757
3758 * MAINTAINERS (Write After Approval): Add myself to the list.
3759
e0d00bc7
JK
37602011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3761
3762 Disable epilogue unwinders on recent GCCs.
3763 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3764 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3765 * dwarf2read.c (process_full_comp_unit): Initialize
3766 EPILOGUE_UNWIND_VALID.
3767 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3768 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3769 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3770
4632c0d0
JK
37712011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 Code cleanup - reformatting.
3774 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3775 (producer_is_gcc_ge_4): ... here, change the return value.
3776 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3777 interpretation.
3778
32019081
JK
37792011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 Fix non-only rename list for Fortran modules import.
3782 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3783 cp_add_using_directive caller.
3784 (cp_add_using_directive): New parameter excludes, describe it. New
3785 variables ix and param. Compare if also excludes match. Allocate NEW
3786 with variable size, initialize EXCLUDES there.
3787 (cp_lookup_symbol_imports): New variable excludep, test
3788 current->EXCLUDES with it.
3789 * cp-support.h: Include vec.h.
3790 (struct using_direct): New field excludes, describe it.
3791 (DEF_VEC_P (const_char_ptr)): New.
3792 (cp_add_using_directive): New parameter excludes.
3793 * defs.h (const_char_ptr): New typedef.
3794 * dwarf2read.c (read_import_statement): New variables child_die,
3795 excludes and cleanups, read in excludes.
3796 (read_namespace): Adjust the cp_add_using_directive caller.
3797
70c622a3
JK
37982011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3799
3800 Code cleanup.
3801 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3802 negative comparisons.
3803
39c4d40a
TT
38042011-06-29 André Pönitz <andre.poenitz@nokia.com>
3805
3806 * mi/mi-main.c (mi_cmd_list_features): Emit
3807 breakpoint-notifications.
3808
3b2b8fea
TT
38092011-06-29 Tom Tromey <tromey@redhat.com>
3810
3811 PR fortran/10036:
3812 * valprint.h (generic_emit_char, generic_printstr): Declare.
3813 * valprint.c (wchar_printable, append_string_as_wide)
3814 (print_wchar): Move from c-lang.c.
3815 (generic_emit_char): New function; mostly taken from c_emit_char.
3816 (generic_printstr): New function; mostly taken from c_printstr.
3817 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3818 represented as arrays.
3819 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3820 type.
3821 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3822 identically to TYPE_CODE_INT.
3823 * f-lang.c (f_get_encoding): New function.
3824 (f_emit_char): Use generic_emit_char.
3825 (f_printchar): Replace comment.
3826 (f_printstr): Use generic_printstr.
3827 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3828 "character" types specially.
3829 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3830 for Fortran.
3831 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3832 Move to valprint.c
3833 (c_emit_char): Call generic_emit_char.
3834 (c_printstr): Call generic_printstr.
3835
168e6d44
GB
38362011-06-29 Gary Benson <gbenson@redhat.com>
3837
3838 * breakpoint.c (bpstat_what): Removed duplicated case.
3839
1c033f8c
TT
38402011-06-28 Tom Tromey <tromey@redhat.com>
3841
3842 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3843
5fe41fbf
TT
38442011-06-27 Tom Tromey <tromey@redhat.com>
3845
3846 * valops.c (find_overload_match): Call do_cleanups before early
3847 return.
3848 * top.c (execute_command): Call do_cleanups before early return.
3849 (command_loop): Likewise.
3850 * stack.c (backtrace_command): Make a null cleanup early. Don't
3851 conditionally call do_cleanups.
3852 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3853 TRY_CATCH.
3854 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3855 so cleanups are always run.
3856 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3857 * findcmd.c (parse_find_args): Call do_cleanups on early return
3858 path.
3859 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3860 Don't conditionally call do_cleanups.
3861 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3862 later.
3863
e26bd57d
EB
38642011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3865
3866 * MAINTAINERS (Write After Approval): Use default email address.
3867
6c3097fc
JB
38682011-06-27 Joel Brobecker <brobecker@adacore.com>
3869
3870 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3871
369c397b
JB
38722011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3873
3874 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3875 saved_regs_mask and copied_regs_mask fields.
3876 (sparc_record_save_insn): New prototype.
3877 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3878 (sparc_record_save_insn): New function.
3879 (sparc_analyze_prologue): Add head comment. Recognize store insns
3880 of call-saved registers. Use OFFSET consistently. Recognize flat
3881 frames and cache their settings.
3882 (sparc32_skip_prologue): Handle flat frames.
3883 (sparc_frame_cache): Add frame_offset to the base address.
3884 (sparc32_frame_cache): Adjust to new frame description.
3885 (sparc32_frame_prev_register): Likewise.
3886 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3887 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3888 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3889 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3890 frame by calling sparc_record_save_insn.
3891 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3892 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3893 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3894
b315ab21
TG
38952011-06-27 Tristan Gingold <gingold@adacore.com>
3896
3897 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3898 field by map_addr and map_len.
3899 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3900 (munmap_section_buffer): Likewise.
3901
ddd49eee
TT
39022011-06-24 Tom Tromey <tromey@redhat.com>
3903
3904 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3905 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3906 * python/python.c (gdbpy_parameter): Make 'arg' const.
3907 (execute_gdb_command): Likewise.
3908 (gdbpy_decode_line): Likewise. Copy it.
3909 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3910 (gdbpy_write): Make 'arg' const.
3911 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3912 const.
3913 (gdbpy_lookup_type): Likewise.
3914 * python/py-prettyprint.c (print_children): Make 'name' const.
3915 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3916 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3917 Py_ssize_t.
3918 * python/py-function.c (fnpy_init): Make 'name' const.
3919 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3920 (gdbpy_string_to_argv): Make 'input' const.
3921 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3922 it.
3923 * gdbtypes.h (lookup_typename): Update.
3924 * gdbtypes.c (lookup_typename): Make 'name' const.
3925 (lookup_struct): Likewise.
3926 (lookup_union): Likewise.
3927 (lookup_enum): Likewise.
3928
5998129b
TT
39292011-06-24 Tom Tromey <tromey@redhat.com>
3930
3931 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3932 gdb_thread_db.h. Move all common/ entries to be together.
3933 (TAGS): Don't depend on DEPFILES.
3934
6e586cc5
YQ
39352011-06-23 Yao Qi <yao@codesourcery.com>
3936
3937 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3938 * remote.c (remote_start_remote): ... here.
3939 * monitor.c (monitor_open): ... here.
3940
86c3c1fc
AB
39412011-06-23 Andrew Burgess <aburgess@broadcom.com>
3942
3943 * gdbtypes.c (append_composite_type_field_aligned): Fix
3944 calculation of bit position based on alignment.
3945
28010a5d
PA
39462011-06-22 Pedro Alves <pedro@codesourcery.com>
3947
3948 * breakpoint.c (bpstat_stop_status): Call the check_status
3949 breakpoint_ops method.
3950 (print_one_breakpoint_location): Also print the condition for Ada
3951 exception catchpoints.
3952 (allocate_bp_location): New, factored out from
3953 allocate_bp_location.
3954 (allocate_bp_location): Adjust. Call the owner breakpoint's
3955 allocate_location method, if there is one.
3956 (free_bp_location): Call the locations's dtor method, if there is
3957 one.
3958 (init_raw_breakpoint_without_location): New breakpoint_ops
3959 parameter. Use it.
3960 (set_raw_breakpoint_without_location): Adjust.
3961 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3962 (set_raw_breakpoint): Adjust.
3963 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3964 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3965 re_set and check_status methods.
3966 (init_catchpoint): Don't memset, initialize thread, addr_string
3967 and enable_state. Pass the ops down to init_raw_breakpoint.
3968 (install_catchpoint): Rename to ...
3969 (install_breakpoint): ... this, and make extern.
3970 (create_fork_vfork_event_catchpoint): Adjust.
3971 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3972 re_set and check_status methods.
3973 (create_syscall_event_catchpoint): Adjust.
3974 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3975 (masked_watchpoint_breakpoint_ops): Install NULL
3976 allocate_location, re_set and check_status methods.
3977 (catch_exec_command_1): Adjust.
3978 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3979 re_set and check_status methods.
3980 (create_ada_exception_breakpoint): Rename to ...
3981 (init_ada_exception_breakpoint): ... this. Add a struct
3982 breakpoint parameter, and delete the exp_string, cond_string and
3983 cond parameters. Use init_raw_breakpoint, and don't install or
3984 mention the breakpoint yet. Don't clear breakpoint fields that
3985 init_raw_breakpoint already clears.
3986 (re_set_breakpoint): Delete, split into ...
3987 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3988 functions.
3989 (breakpoint_re_set_one): Call the breakpoint's
3990 breakpoint_ops->re_set implementation, if there's one. Adjust.
3991 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3992 (struct bp_location_ops): New type.
3993 (struct bp_location): New field `ops'.
3994 (struct breakpoint_ops): New `allocate_location', `re_set' and
3995 `check_status' fields. Make `breakpoint_hit''s description match
3996 reality.
3997 (init_bp_location): Declare.
3998 (breakpoint_re_set_default): Declare.
3999 (create_ada_exception_breakpoint): Rename to ...
4000 (init_ada_exception_breakpoint): ... this. Add a struct
4001 breakpoint parameter, and delete the exp_string, cond_string and
4002 cond parameters.
4003 (install_breakpoint): Declare.
4004 * ada-lang.c: Include exceptions.h.
4005 <Ada exceptions description>: Update.
4006 (struct ada_catchpoint_location): New type.
4007 (ada_catchpoint_location_dtor): New function.
4008 (ada_catchpoint_location_ops): New global.
4009 (ada_catchpoint): New type.
4010 (create_excep_cond_exprs): New function.
4011 (dtor_exception, allocate_location_exception, re_set_exception)
4012 (should_stop_exception, check_status_exception): New functions.
4013 (print_one_exception, print_mention_exception)
4014 (print_recreate_exception): Adjust.
4015 (dtor_catch_exception, allocate_location_catch_exception)
4016 (re_set_catch_exception, check_status_catch_exception): New
4017 functions.
4018 (catch_exception_breakpoint_ops): Install them.
4019 (dtor_catch_exception_unhandled)
4020 (allocate_location_catch_exception_unhandled)
4021 (re_set_catch_exception_unhandled)
4022 (check_status_catch_exception_unhandled): New functions.
4023 (catch_exception_unhandled_breakpoint_ops): Install them.
4024 (dtor_catch_assert, allocate_location_catch_assert)
4025 (re_set_catch_assert, check_status_catch_assert): New functions.
4026 (catch_assert_breakpoint_ops): Install them.
4027 (ada_exception_catchpoint_p): Delete.
4028 (catch_ada_exception_command_split)
4029 (ada_exception_catchpoint_cond_string): Rename exp_string
4030 parameter to excep_string. Adjust.
4031 (ada_parse_catchpoint_condition): Delete.
4032 (ada_exception_sal): Rename the exp_string parameter to
4033 excep_string. Delete the cond_string and cond parameters.
4034 Adjust.
4035 (ada_decode_exception_location): Rename the exp_string parameter
4036 to excep_string. Delete the cond_string and cond parameters.
4037 Adjust.
4038 (create_ada_exception_catchpoint): New function.
4039 (catch_ada_exception_command, ada_decode_assert_location)
4040 (catch_assert_command): Adjust.
4041 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4042
9ac4176b
PA
40432011-06-22 Pedro Alves <pedro@codesourcery.com>
4044
4045 * ada-lang.c: Include arch-utils.h.
4046 (ada_decode_exception_location): Make static.
4047 (catch_ada_exception_command): Moved here from breakpoint.c.
4048 (ada_decode_assert_location): Make static.
4049 (catch_assert_command): Moved here from breakpoint.c.
4050 (_initialize_ada_lang): Install the exception and assert
4051 catchpoint commands here.
4052 * ada-lang.h (ada_decode_exception_location)
4053 (ada_decode_assert_location): Delete declarations.
4054 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4055 breakpoint.h.
4056 (create_ada_exception_breakpoint): Make extern.
4057 (catch_ada_exception_command, catch_assert_command): Moved to
4058 ada-lang.c.
4059 (add_catch_command): Make extern.
4060 (_initilize_breakpoint): Don't install the exception and assert
4061 catchpoint commands here.
4062 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4063 breakpoint.c
4064 (add_catch_command, create_ada_exception_breakpoint): Declare.
4065
c56053d2
PA
40662011-06-22 Pedro Alves <pedro@codesourcery.com>
4067
4068 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4069 the breakpoint to the breakpoint chain here.
4070 (set_raw_breakpoint_without_location): Add the breakpoint to the
4071 breakpoint chain here.
4072 (init_raw_breakpoint): Adjust comments.
4073 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4074 here.
4075 (init_catchpoint): Don't set the catchpoint's breakpoint number
4076 here.
4077 (install_catchpoint): New function.
4078 (create_fork_vfork_event_catchpoint)
4079 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4080 use install_catchpoint.
4081
d2f3fc74
PA
40822011-06-22 Pedro Alves <pedro@codesourcery.com>
4083
4084 * breakpoint.c (create_catchpoint_without_mention)
4085 (create_catchpoint): Delete.
4086
b4d90040
PA
40872011-06-22 Pedro Alves <pedro@codesourcery.com>
4088
4089 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4090 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4091 reference to exec_pathname.
4092 (struct exec_catchpoint): New type.
4093 (dtor_catch_exec): New function.
4094 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4095 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4096 (catch_exec_command_1): Adjust to use init_catchpoint.
4097 (delete_breakpoint): Remove reference to exec_pathname.
4098
be5c67c1
PA
40992011-06-22 Pedro Alves <pedro@codesourcery.com>
4100
4101 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4102 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4103 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4104 reference to syscalls_to_be_caught.
4105 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4106 NULL `dtor'.
4107 (struct syscall_catchpoint): New type.
4108 (dtor_catch_syscall): New function.
4109 (insert_catch_syscall, remove_catch_syscall)
4110 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4111 (print_recreate_catch_syscall): Adjust.
4112 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4113 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4114 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4115 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4116 (masked_watchpoint_breakpoint_ops)
4117 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4118 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4119 there is one. Remove references to syscalls_to_be_caught.
4120 (catching_syscall_number): Adjust.
4121 * ada-lang.c (catch_exception_breakpoint_ops)
4122 (catch_exception_unhandled_breakpoint_ops)
4123 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4124
e29a4733
PA
41252011-06-22 Pedro Alves <pedro@codesourcery.com>
4126
4127 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4128 field.
4129 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4130 reference to forked_inferior_pid.
4131 (struct fork_catchpoint): New type.
4132 (breakpoint_hit_catch_fork, print_it_catch_fork)
4133 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4134 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4135 (create_fork_vfork_event_catchpoint): Adjust to use
4136 init_catchpoint.
4137
346774a9
PA
41382011-06-22 Pedro Alves <pedro@codesourcery.com>
4139
4140 * breakpoint.c (add_to_breakpoint_chain)
4141 (init_raw_breakpoint_without_location): New functions, factored
4142 out from ...
4143 (set_raw_breakpoint_without_location): ... this one.
4144 (init_raw_breakpoint): New function, factored out from
4145 set_raw_breakpoint and adjusted to use
4146 init_raw_breakpoint_without_location.
4147 (set_raw_breakpoint): Adjust.
4148 (init_catchpoint): New function, factored out from
4149 create_catchpoint_without_mention and adjusted to use
4150 init_raw_breakpoint.
4151 (create_catchpoint_without_mention): Adjust.
4152
c38c4bc5
TT
41532011-06-22 Tom Tromey <tromey@redhat.com>
4154
4155 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4156 argument of 0 specially.
4157
b138ce37
YQ
41582011-06-22 Yao Qi <yao@codesourcery.com>
4159
4160 * infrun.c (handle_inferior_event): Remove write-only local variable
4161 `sw_single_step_trap_p'.
4162
03de6823
TT
41632011-06-20 Tom Tromey <tromey@redhat.com>
4164
4165 * symtab.c (lookup_language_this): End loop if block is NULL.
4166
66a17cb6
TT
41672011-06-17 Tom Tromey <tromey@redhat.com>
4168
4169 * valops.c (value_of_this): Use lookup_language_this.
4170 * symtab.h (lookup_language_this): Declare.
4171 * symtab.c (lookup_language_this): New function.
4172 (lookup_symbol_aux): Use lookup_language_this.
4173 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4174
7518bff5
TT
41752011-06-17 Tom Tromey <tromey@redhat.com>
4176
4177 * value.h (value_of_this): Update.
4178 (value_of_local): Remove.
4179 * valops.c (value_of_this): Rename from value_of_local. Change
4180 parameters.
4181 * p-exp.y (exp): Update.
4182 (variable): Likewise.
4183 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4184
aee28ec6
TT
41852011-06-17 Tom Tromey <tromey@redhat.com>
4186
4187 * valops.c (value_of_local): Complain if NAME is NULL.
4188 * std-operator.def (OP_OBJC_SELF): Remove.
4189 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4190 * objc-exp.y (name_not_typename): Use OP_THIS.
4191 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4192 name for "this".
4193 <OP_OBJC_SELF>: Remove.
4194 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4195
eed8f803
TG
41962011-06-16 Tristan Gingold <gingold@adacore.com>
4197
4198 * python/py-events.h (gdb_py_events): Make it extern.
4199 * python/py-evtregistry.c (gdb_py_events): Declare.
4200
864ac8a7
HZ
42012011-06-16 Hui Zhu <teawater@gmail.com>
4202
4203 * remote.c (remote_trace_set_readonly_regions): Add check for
4204 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4205 output warning.
4206
ef7e8358
UW
42072011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4208
4209 * arm-linux-tdep.c: Include "auxv.h".
4210 (AT_HWCAP): Define.
4211 (ARM_LINUX_SIZEOF_VFP): Define.
4212 (arm_linux_supply_vfp): New function.
4213 (arm_linux_collect_vfp): Likewise.
4214 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4215 (arm_linux_fpa_regset_sections): New variable.
4216 (arm_linux_vfp_regset_sections): Likewise.
4217 (arm_linux_core_read_description): New function.
4218 (arm_linux_init_abi): Install arm_linux_core_read_description and
4219 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4220 appropriate for the architecture.
4221 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4222 (tdesc_arm_with_m): Declare.
4223 (tdesc_arm_with_iwmmxt): Likewise.
4224 (tdesc_arm_with_vfpv2): Likewise.
4225 (tdesc_arm_with_vfpv3): Likewise.
4226 (tdesc_arm_with_neon): Likewise.
4227 * arm-linux-nat.c: Move features/*.c includes ...
4228 * arm-tdep.c: ... here.
4229 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4230 target description data structures ...
4231 * arm-tdep.c (_initialize_arm_tdep): ... here.
4232 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4233 HWCAP_VFPv3D16): Move definitions ...
4234 * arm-linux-tdep.h: ... here.
4235
c2fa21f1
HZ
42362011-06-15 Hui Zhu <teawater@gmail.com>
4237
4238 * remote.c (remote_trace_set_readonly_regions): Add a check for
4239 target_buf_size.
4240
dd707e8e
TT
42412011-06-14 Tom Tromey <tromey@redhat.com>
4242
4243 * coffread.c (coffread_objfile): Rename from current_objfile.
4244 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4245 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4246
86cc0029
TT
42472011-06-14 Tom Tromey <tromey@redhat.com>
4248
4249 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4250 (class_symtab): Remove.
4251 (jv_dynamics_progspace_key): New global.
4252 (jv_per_objfile_free): Reset program space data. Update assert.
4253 Don't clear globals.
4254 (get_dynamics_objfile): Use and set program space data.
4255 (get_java_class_symtab): Use get_dynamics_objfile.
4256 (add_class_symbol): Likewise.
4257 (java_link_class_type): Likewise.
4258 (java_object_type, jv_clear_object_type, set_java_object_type):
4259 Remove.
4260 (get_java_object_type): Update. Don't cache result.
4261 (is_object_type): Don't call set_java_object_type.
4262 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4263 initialize jv_dynamics_progspace_key.
4264
91a81f69
TT
42652011-06-14 Tom Tromey <tromey@redhat.com>
4266
4267 * symtab.h (current_objfile): Don't declare.
4268 * objfiles.h (current_objfile): Don't declare.
4269 * objfiles.c (current_objfile): Remove.
4270 * mdebugread.c (current_objfile): New file-scope global.
4271 * dbxread.c (current_objfile): New file-scope global.
4272 * coffread.c (current_objfile): New file-scope global.
4273
dc7eb48e
PA
42742011-06-13 Pedro Alves <pedro@codesourcery.com>
4275
4276 * top.h (line): Rename to ...
4277 (saved_command_line): ... this.
4278 (linesize): Rename to ...
4279 (saved_command_line_size): ... this.
4280 * top.c (line): Rename to ...
4281 (saved_command_line): ... this.
4282 (linesize): Rename to ...
4283 (saved_command_line_size): ... this.
4284 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4285 * event-top.c (command_line_handler): Adjust.
4286 * main.c (captured_main): Adjust.
4287
0d6c2135
MK
42882011-06-12 Mark Kettenis <kettenis@gnu.org>
4289
4290 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4291 get_frame_func instead of get_frame_pc to determine the code
4292 address used to construct the frame ID.
4293 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4294 (i386_epilogue_frame_this_id): Likewise.
4295 (i386_epilogue_frame_prev_register): New function.
4296 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4297 (i386_stack_tramp_frame_sniffer): Fix coding style.
4298 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4299 (i386_gdbarch_init): Fix comments.
4300
8bbdd3f4
MK
43012011-06-12 Mark Kettenis <kettenis@gnu.org>
4302
4303 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4304 instruction when walking back through the instruction stream.
4305
533a737e
JK
43062011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4307
4308 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4309 fullname parameters order.
4310
44b13c5a
JK
43112011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4312
4313 Code cleanup.
4314 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4315 for fun.
4316 * psymtab.c (map_symbol_filenames_psymtab)
4317 (map_partial_symbol_filenames): Likewise.
4318 * psymtab.h: Include symfile.h.
4319 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4320 * symfile.h (symbol_filename_ftype): New.
4321 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4322 map_symbol_filenames, clarify more the naming in comment.
4323
0b5574da
DE
43242011-06-07 Doug Evans <dje@google.com>
4325
4326 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4327 Look for ../../gdb, for fullname.exp.
0b5574da 4328
5be4dfca
JK
43292011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4330 Pedro Alves <pedro@codesourcery.com>
4331
4332 * cli/cli-cmds.c (shell_escape): Use waitpid.
4333 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4334
316a8b21
TG
43352011-06-07 Tristan Gingold <gingold@adacore.com>
4336
4337 * xcoffread.c (dwarf2_xcoff_names): New variable.
4338 (aix_process_linenos): Add a guard.
4339 (xcoff_symfile_finish): Free dwarf2.
4340 (xcoff_initial_scan): Add dwarf2 support.
4341
3dd5b83d
PA
43422011-06-06 Pedro Alves <pedro@codesourcery.com>
4343
4344 * infcall.c (run_inferior_call): Don't mask async. Instead force
4345 a synchronous wait, if the target can async.
4346
4347 * target.h (struct target_ops): Delete to_async_mask.
4348 (target_async_mask): Delete.
4349 * target.c (update_current_target): Delete references to to_async_mask.
4350 * linux-nat.c (linux_nat_async_mask_value): Delete.
4351 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4352 to linux_nat_async_mask_value.
4353 (linux_nat_async_mask): Delete.
4354 (linux_nat_async, linux_nat_close): Remove references to
4355 linux_nat_async_mask_value.
4356 * record.c (record_async_mask_value): Delete.
4357 (record_async): Remove references to record_async_mask_value.
4358 (record_async_mask): Delete.
4359 (record_can_async_p, record_is_async_p): Remove references to
4360 record_async_mask_value.
4361 (init_record_ops, init_record_core_ops): Remove references to
4362 record_async_mask.
4363 * remote.c (remote_async_mask_value): Delete.
4364 (init_remote_ops): Remove reference to remote_async_mask.
4365 (remote_can_async_p, remote_is_async_p): Remove references to
4366 remote_async_mask_value.
4367 (remote_async): Remove references to remote_async_mask_value.
4368 (remote_async_mask): Delete.
4369
4370 * infrun.c (fetch_inferior_event): Don't claim registers changed
4371 if the current thread is already not executing.
4372
64b9b334
JB
43732011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4374
4375 From Stephen Kitt <steve@sk2.org>
4376 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4377 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4378
325663dc
JB
43792011-06-03 Joel Brobecker <brobecker@adacore.com>
4380
4381 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4382 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4383
8cf64490
TT
43842011-06-03 Tom Tromey <tromey@redhat.com>
4385
4386 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4387 code fields.
4388 * python/py-exitedevent.c (create_exited_event_object): Change
4389 type of 'exit_code'. Optionally add exit_code attribute.
4390 (emit_exited_event): Change type of 'exit_code'.
4391 * python/py-event.h (emit_exited_event): Update.
4392 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4393 * infrun.c (handle_inferior_event): Set exit code fields on
4394 inferior.
4395 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4396 fields.
4397 * inferior.c (exit_inferior_1): Initialize new fields.
4398
8ddd9a20
TT
43992011-06-03 Tom Tromey <tromey@redhat.com>
4400
4401 * dwarf2expr.c (get_signed_type): New function.
4402 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4403
8dfd1e6d
KS
44042011-06-02 Keith Seitz <keiths@redhat.com>
4405
4406 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4407
65fdb766
PA
44082011-06-02 Pedro Alves <pedro@codesourcery.com>
4409
4410 * top.h (simplified_command_loop): Delete declaration.
4411
f4b8c29b
MF
44122011-06-01 Mike Frysinger <vapier@gentoo.org>
4413
4414 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4415 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4416
1706c199
YQ
44172011-06-01 Yao Qi <yao@codesourcery.com>
4418
4419 * objfiles.h (obj_section_addr): Update reference to objfile from
4420 `abfd' to `obfd'.
4421 (obj_section_endaddr): Likewise.
4422
d19cd713 44232011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4424
4425 * MAINTAINERS: Update my email address and affiliation. Also
4426 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4427
e8eb7bc5
KS
44282010-05-31 Keith Seitz <keiths@redhat.com>
4429
4430 PR c++/12750
4431 * linespec.c (get_search_block): New function.
4432 (find_methods): Add FILE_SYMTATB parameter and use it and
4433 get_search_block to pass an appropriate block to
4434 lookup_symbol_in_namespace.
4435 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4436 Check if *ARGPTR starts with a filename first.
4437 If it does, call locate_first_half again to locate the next
4438 "first half" of the linespec.
4439 Pass FILE_SYMTATB to decode_objc and decode_compound.
4440 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4441 (locate_first_half): Stop on the first colon seen.
4442 (decode_compound): Add FILE_SYMTAB parameter.
4443 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4444 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4445 get_search_block with lookup_symbol.
4446 (find_method): Add FILE_SYMTAB parameter and pass it to
4447 find_methods.
4448 (decode_objc): Use get_search_block.
4449
2b1dbab0
KS
44502010-05-31 Keith Seitz <keiths@redhat.com>
4451
4452 PR symtab/12704
4453 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4454 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4455 and CP_ANONYMOUS_NAMESPACE_LEN.
4456 (cp_is_anonymous): Likewise.
4457 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4458 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4459 * dwarf2read.c (namespace_name): Likewise.
4460 (fixup_partial_die): Likewise.
4461 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4462 seen in the input, keep it.
4463
6d549500
PA
44642011-05-30 Pedro Alves <pedro@codesourcery.com>
4465
4466 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4467 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4468 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4469 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4470 * remote.c (_initialize_remote): Register
4471 async_remote_interrupt_twice directly as
4472 sigint_remote_twice_token event.
4473
395bff70
PA
44742011-05-30 Pedro Alves <pedro@codesourcery.com>
4475
4476 * target.h (enum inferior_event_type): Delete INF_ERROR.
4477 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4478
97224164
PA
44792011-05-30 Pedro Alves <pedro@codesourcery.com>
4480
4481 * interps.c (interp_set): Don't cancel continuations.
4482
07e78767
JK
44832011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4484
4485 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4486
fa4cd53f
PA
44872011-05-30 Pedro Alves <pedro@codesourcery.com>
4488
4489 * continuations.h (continuation_ftype): Add `err' parameter.
4490 Document parameters.
4491 (do_all_continuations, do_all_continuations_thread)
4492 (do_all_intermediate_continuations)
4493 (do_all_intermediate_continuations_thread)
4494 (do_all_inferior_continuations): Add `err' parameter.
4495 * continuations.c (do_my_continuations_1, do_my_continuations)
4496 (do_all_inferior_continuations, do_all_continuations_ptid)
4497 (do_all_continuations_thread_callback)
4498 (do_all_continuations_thread, do_all_continuations)
4499 (do_all_intermediate_continuations_thread_callback)
4500 (do_all_intermediate_continuations_thread)
4501 (do_all_intermediate_continuations): Add `err' parameter, and pass
4502 it down all the way to the continuations proper.
4503 * inf-loop.c (inferior_event_handler): If fetching an inferior
4504 event throws an error, don't pop the target, and still call the
4505 continuations, but with `err' set. Adjust all other continuation
4506 calls.
4507 * breakpoint.c (until_break_command_continuation): Add `err'
4508 parameter.
4509 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4510 issue another step if `err' is set.
4511 (struct until_next_continuation_args): New.
4512 (until_next_continuation): Add `err' parameter. Adjust.
4513 (until_next_command): Adjust.
4514 (struct finish_command_continuation_args): Add `thread' field.
4515 (finish_command_continuation): Add `err' parameter. Handle it.
4516 (finish_forward): Adjust.
4517 (attach_command_continuation): Add `err' parameter. Handle it.
4518 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4519 cancel the continuations.
4520 * interps.c (interp_set): Adjust to cancel the continuations.
4521 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4522 continuations rather than discarding.
4523 (free_thread): Don't clear thread inferior resources here.
4524 (delete_thread_1): Do it here instead. And do it before removing
4525 the thread from the threads list. Tag the thread as exited before
4526 clearing thread inferior resources.
4527
c2949be0
JB
45282011-05-30 Joel Brobecker <brobecker@adacore.com>
4529
4530 * infcall.c (call_function_by_hand): Rephrase error message.
4531
619cebe8
PA
45322011-05-27 Pedro Alves <pedro@codesourcery.com>
4533
4534 * defs.h (struct thread_info, struct inferior): Delete forward
4535 declarations.
4536 * breakpoint.h (struct thread_info): New forward declaration.
4537 * observer.sh (struct inferior): New forward declaration.
4538 * python/python-internal.h (struct inferior): New forward
4539 declaration.
4540
be34f849
PA
45412011-05-27 Pedro Alves <pedro@codesourcery.com>
4542
4543 * defs.h (struct continuation, continuation_ftype)
4544 (continuation_free_arg_ftype, add_continuation)
4545 (do_all_continuations, do_all_continuations_thread)
4546 (discard_all_continuations, discard_all_continuations_thread)
4547 (add_intermediate_continuation, do_all_intermediate_continuations)
4548 (do_all_intermediate_continuations_thread)
4549 (discard_all_intermediate_continuations)
4550 (discard_all_intermediate_continuations_thread)
4551 (add_inferior_continuation, do_all_inferior_continuations)
4552 (discard_all_inferior_continuations): Move to ...
4553 * continuations.h: ... this new file.
4554 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4555 infcmd.c, inferior.c, infrun.c, interps.c: Include
4556 continuations.h.
4557
432b4d03
JK
45582011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4559 Doug Evans <dje@google.com>
4560
4561 Fix PR 10970, PR 12702.
4562 * linux-nat.c (linux_lwp_is_zombie): New function.
4563 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4564 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4565
b0f260d6
PA
45662011-05-27 Pedro Alves <pedro@codesourcery.com>
4567
4568 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4569 typedefs.
4570 (add_continuation, add_intermediate_continuation)
4571 (add_inferior_continuation): Use them.
4572 * continuations.c (struct continuation): Use them.
4573 (make_continuation_ftype): Delete.
4574 (make_continuation, add_inferior_continuation, add_continuation)
4575 (add_intermediate_continuation): Use continuation_ftype and
4576 continuation_free_arg_ftype. Rename parameters to shorter names.
4577
af1e9a32
PA
45782011-05-27 Pedro Alves <pedro@codesourcery.com>
4579
4580 * continuations.c (make_continuation): Make it return void.
4581 (do_my_continuations): Rename to ...
4582 (do_my_continuations_1): ... this. Remove old_chain parameter and
4583 adjust.
4584 (do_my_continuations): New.
4585 (discard_my_continuations): Rename to ...
4586 (discard_my_continuations_1): ... this. Remove old_chain
4587 parameter and adjust.
4588 (discard_my_continuations): New.
4589 (add_inferior_continuation): Simplify.
4590 (do_all_inferior_continuations): Reimplement on top
4591 do_my_continuations.
4592 (discard_all_inferior_continuations): Simplify.
4593 (add_continuation): Simplify.
4594 (do_all_continuations_ptid): Simplify.
4595 (discard_all_continuations_thread_callback): Simplify.
4596 (add_intermediate_continuation): Simplify.
4597 (discard_all_intermediate_continuations_thread_callback):
4598 Simplify.
4599
50c0c017
PA
46002011-05-27 Pedro Alves <pedro@codesourcery.com>
4601
4602 * utils.c (struct continuation, add_continuation)
4603 (add_inferior_continuation)
4604 (do_all_inferior_continuations, discard_all_inferior_continuations)
4605 (restore_thread_cleanup, do_all_continuations_ptid)
4606 (do_all_continuations_thread_callback)
4607 (do_all_continuations_thread, do_all_continuations)
4608 (discard_all_continuations_thread_callback)
4609 (discard_all_continuations_thread, discard_all_continuations)
4610 (add_intermediate_continuation)
4611 (do_all_intermediate_continuations_thread_callback)
4612 (do_all_intermediate_continuations_thread)
4613 (do_all_intermediate_continuations)
4614 (discard_all_intermediate_continuations_thread_callback)
4615 (discard_all_intermediate_continuations_thread)
4616 (discard_all_intermediate_continuations): Move to ...
4617 * continuations.c: ... this new file, and adjust to no longer
4618 implement continuations on top of cleanups.
4619 * Makefile.in (SFILES): Add continuations.c.
4620 (COMMON_OBS): Add continuations.o.
4621
d8b34453
PA
46222011-05-26 Pedro Alves <pedro@codesourcery.com>
4623
4624 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4625 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4626 Internal error on invalid values.
4627 * reverse.c: Don't handle EXEC_ERROR.
4628 * mi/mi-main.c: Don't handle EXEC_ERROR.
4629
32231432
PA
46302011-05-26 Pedro Alves <pedro@codesourcery.com>
4631
4632 * record.c: Include event-loop.h, inf-loop.h.
4633 (record_beneath_to_async): New global.
4634 (tmp_to_async): New global.
4635 (record_async_inferior_event_token): New global.
4636 (record_open_1): Don't error out if async is enabled.
4637 (record_open): Handle to_async. Create an async event source in
4638 the event loop.
4639 (record_close): Delete the async event source.
4640 (record_resumed): New global.
4641 (record_execution_dir): New global.
4642 (record_resume, record_core_resume): Set them. Register the
4643 target on the event loop.
4644 (record_wait): Rename to ...
4645 (record_wait_1): ... this. Add more debug output. Handle
4646 TARGET_WNOHANG, and the target beneath returning
4647 TARGET_WAITKIND_IGNORE.
4648 (record_wait): Reimplement on top of record_wait_1.
4649 (record_async_mask_value): New global.
4650 (record_async, record_async_mask, record_can_async_p)
4651 (record_is_async_p, record_execution_direction): New functions.
4652 (init_record_ops, init_record_core_ops): Install new methods.
4653 * infrun.c (fetch_inferior_event): Temporarily switch the global
4654 execution direction to the direction the target was going.
4655 (execution_direction): Change type to int.
4656 * target.c (default_execution_direction): New function.
4657 (update_current_target): Inherit and de_fault
4658 to_execution_direction.
4659 * target.h (struct target_ops) <to_execution_direction>: New
4660 field.
4661 (target_execution_direction): New macro.
4662 * inferior.h (execution_direction): Change type to int.
4663
949dc678
PA
46642011-05-26 Pedro Alves <pedro@codesourcery.com>
4665
4666 * infcall.c (call_function_by_hand): Don't allow calling functions
4667 in reverse execution mode.
4668
c13bd2b5
PA
46692011-05-26 Pedro Alves <pedro@codesourcery.com>
4670
4671 * infcmd.c (finish_command): Allow async finish in reverse.
4672
6938fd34
YQ
46732011-05-26 Yao Qi <yao@codesourcery.com>
4674
4675 * gdb_thread_db.h: Delete. Move to ...
4676 * common/gdb_thread_db.h: ... here.
4677
9da8c2a0
PA
46782011-05-26 Pedro Alves <pedro@codesourcery.com>
4679
4680 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4681 function's entry point instead of a manually managed momentary
4682 breakpoint, and only ever issue one proceed call.
4683 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4684 doing a reverse-finish, switch to stepi mode, to do another step.
4685 (insert_step_resume_breakpoint_at_sal): Make public.
4686 (normal_stop): No need to save function value return registers if
4687 going reverse.
4688 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4689
2c03e5be
PA
46902011-05-26 Pedro Alves <pedro@codesourcery.com>
4691
4692 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4693 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4694 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4695 at the end.
4696 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4697 step-resume breakpoints.
4698 (print_it_typical): Handle bp_hp_step_resume.
4699 (bpstat_what): Ditto.
4700 (bptype_string): Ditto.
4701 (print_one_breakpoint_location): Ditto.
4702 (allocate_bp_location): Ditto.
4703 (mention): Ditto.
4704 (breakpoint_re_set_one): Ditto.
4705 * infrun.c (handle_inferior_event): Adjust. Split
4706 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4707 BPSTAT_WHAT_HP_STEP_RESUME.
4708 (insert_step_resume_breakpoint_at_sal): Rename to ...
4709 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4710 parameter. Handle it.
4711 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4712 insert_step_resume_breakpoint_at_sal_1.
4713 (insert_step_resume_breakpoint_at_frame): Rename to ...
4714 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4715 set a high-priority step-resume breakpoint.
4716 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4717 (insert_step_resume_breakpoint_at_caller): Ditto.
4718
51be5b68
PA
47192011-05-26 Pedro Alves <pedro@codesourcery.com>
4720
4721 * breakpoint.c (iterate_over_related_breakpoints): New.
4722 (do_map_delete_breakpoint): New.
4723 (delete_command): Pass do_map_delete_breakpoint to
4724 map_breakpoint_numbers.
4725 (do_disable_breakpoint): New.
4726 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4727 breakpoints.
4728 (do_enable_breakpoint): Rename to ...
4729 (enable_breakpoint_disp): ... this.
4730 (enable_breakpoint): Adjust.
4731 (do_enable_breakpoint): New.
4732 (enable_once_breakpoint): Delete.
4733 (do_map_enable_breakpoint): New.
4734 (do_map_enable_once_breakpoint): New.
4735 (enable_once_command, enable_delete_command)
4736 (delete_trace_command): Iterate over the breakpoint's related
4737 breakpoints.
4738
4a1be8d2
PA
47392011-05-26 Pedro Alves <pedro@codesourcery.com>
4740
4741 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4742 for ALPHA_ZERO_REGNUM.
4743 (alpha_supply_int_regs): Explicitly supply zero as the value for
4744 ALPHA_ZERO_REGNUM in the register cache.
4745 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4746
59d70315
YQ
47472011-05-26 Yao Qi <yao@codesourcery.com>
4748
4749 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4750
251d32d9
TG
47512011-05-26 Tristan Gingold <gingold@adacore.com>
4752
4753 * symfile.h (struct dwarf2_section_names): New type.
4754 (struct dwarf2_debug_sections): New type.
4755 (dwarf2_has_info): Add parameter.
4756 * dwarf2read.c (dwarf2_elf_names): New variable.
4757 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4758 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4759 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4760 (dwarf2_has_info): Add names parameter. Pass names
4761 to dwarf2_locate_sections.
4762 (section_is_p): Rewrite using the names parameter.
4763 (dwarf2_locate_sections): Use section names from the names parameter.
4764 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4765 * elfread.c (read_psyms): Ditto.
4766 * machoread.c (macho_symfile_read): Ditto.
4767
652c71b4
AS
47682011-05-25 Andreas Schwab <schwab@redhat.com>
4769
4770 PR gdb/8677
4771 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4772
f17170e5
KS
47732011-05-24 Keith Seitz <keiths@redhat.com>
4774
4775 PR breakpoint/12803
4776 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4777 (decode_compound): Unconditionally call keep_name_info.
4778
cdac0397
PA
47792011-05-24 Pedro Alves <pedro@codesourcery.com>
4780
4781 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4782 scope, clear its command list.
4783 (map_breakpoint_numbers): Don't walk the related breakpoints list
4784 of each breakpoint.
4785
91d4fe3f
TT
47862011-05-24 Tom Tromey <tromey@redhat.com>
4787
4788 * MAINTAINERS: Move Jim Blandy to past maintainers.
4789
3017a003
TG
47902011-05-24 Tristan Gingold <gingold@adacore.com>
4791
4792 * symfile.h (enum dwarf2_section_enum): New type.
4793 (dwarf2_get_section_info): New prototype.
4794 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4795 section_name by sect. Use a switch to select the info.
4796 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4797 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4798
c91c8c16
PA
47992011-05-24 Pedro Alves <pedro@codesourcery.com>
4800
4801 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4802 shared library event breakpoint if there's no execution.
4803
77bc418a
TJB
48042011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4805
4806 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4807 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4808
c50491a7
TT
48092011-05-23 Tom Tromey <tromey@redhat.com>
4810
4811 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4812 NULL.
4813
6d64e6d4
DE
48142011-05-23 Doug Evans <dje@google.com>
4815
4816 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4817 entry for RuntimeError to doc string.
4818
2067c8d4
JG
48192011-05-23 Jerome Guitton <guitton@adacore.com>
4820
4821 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4822 sequence for probing loops.
4823
b136cd05
PA
48242011-05-23 Pedro Alves <pedro@codesourcery.com>
4825
4826 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4827 comment.
4828
22e74ef9
MK
48292011-05-21 Mark Kettenis <kettenis@gnu.org>
4830
4831 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4832 zero as the value for %g0 in the register cache.
4833 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4834 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4835
842951eb
PA
48362011-05-20 Pedro Alves <pedro@codesourcery.com>
4837
4838 * infrun.c (proceed): Set previous_inferior_ptid here.
4839 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4840 inferior_ptid, not null_ptid.
4841 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4842 (fetch_inferior_event): Nor here.
4843
46cf51e6
PA
48442011-05-20 Pedro Alves <pedro@codesourcery.com>
4845
4846 * inf-loop.c (inferior_event_handler): Only output a message if
4847 verbose.
4848
29ef4c46
LM
48492011-05-20 Luis Machado <lgustavo@codesourcery.com>
4850
4851 * MAINTAINERS: Update my e-mail address.
4852
f148b27e
PA
48532011-05-20 Pedro Alves <pedro@codesourcery.com>
4854
4855 * infrun.c (proceed): Switch the inferior event loop to
4856 INF_EXEC_COMPLETE if the target refused to resume from a
4857 vfork/fork.
4858
09cee04b
PA
48592011-05-20 Pedro Alves <pedro@codesourcery.com>
4860
4861 * infcmd.c: Include "inf-loop.h".
4862 (step_once): When stepping into an inline subroutine, pretend the
4863 target has run. If the target can async, switch the inferior
4864 event loop to INF_EXEC_COMPLETE.
4865 * inferior.h (user_visible_resume_ptid): Declare.
4866 * infrun.c (user_visible_resume_ptid): New function, factored out
4867 from `resume'.
4868 (resume): Use it.
4869 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4870 that the current thread is running. Merge async and sync
4871 branches.
4872
751b8ce1
PA
48732011-05-20 Pedro Alves <pedro@codesourcery.com>
4874
4875 * infcmd.c (step_1): Simplify synchronous case.
4876
e93a69ed
PA
48772011-05-20 Pedro Alves <pedro@codesourcery.com>
4878
4879 * tracepoint.c: Include exceptions.h.
4880 (TFILE_PID): Move higher in file.
4881 (tfile_open): Delay pushing the tfile target until we're assured
4882 the tfile header is present in the file. Wrap reading the initial
4883 newline-terminated lines in TRY_CATCH. Pop the target if the
4884 initial setup failed. Add the tfile's thread immediately
4885 aftwards, before any non-essential setup. Don't skip
4886 post_create_inferior if there are no traceframes present in the
4887 file.
4888 (tfile_close): Remove redundant check for null before xfree call.
4889 (tfile_thread_alive): New function.
4890 (init_tfile_ops): Register it as to_thread_alive callback.
4891
6823e2b1
PA
48922011-05-20 Pedro Alves <pedro@codesourcery.com>
4893
4894 * tracepoint.c (tfile_open): Delete #if 0'd code.
4895
b3c8eb43
JK
48962011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 Fix -readnow for -gdwarf-4 unused type units.
4899 * dwarf2read.c (struct signatured_type): Remove the field offset.
4900 (create_signatured_type_table_from_index): Remove its initialization.
4901 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4902 instead. Add a complaint call.
4903 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4904 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4905 (lookup_signatured_type_at_offset, read_signatured_type)
4906 (write_one_signatured_type): Update the field for per_cu.
4907
310afc76
TT
49082011-05-19 Tom Tromey <tromey@redhat.com>
4909
4910 * python/py-inferior.c (python_inferior_exit): Use
4911 target_gdbarch.
4912 (python_on_resume): Likewise.
4913
cf6c5ffb
TT
49142011-05-19 Matt Rice <ratmice@gmail.com>
4915
4916 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4917
fb80a3c5
HZ
49182011-05-19 Hui Zhu <teawater@gmail.com>
4919
4920 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4921
3672b1be
HZ
49222011-05-19 Hui Zhu <teawater@gmail.com>
4923
4924 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4925
ff355380
TT
49262011-05-18 Tom Tromey <tromey@redhat.com>
4927
4928 * dwarf2read.c (dwarf2_add_field): Constify.
4929 * value.c (value_static_field): Constify.
4930 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4931 Now const.
4932 * ax-gdb.c (gen_static_field): Constify
4933
ed731959
JK
49342011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4935
4936 * linux-nat.c (kill_callback): Use SIGKILL first.
4937
967cff16
JB
49382011-05-18 Joel Brobecker <brobecker@adacore.com>
4939
4940 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4941
1d06ead6
TT
49422011-05-18 Tom Tromey <tromey@redhat.com>
4943
4944 * value.c (value_fn_field): Constify.
4945 * symtab.c (gdb_mangle_name): Constify.
4946 * stabsread.c (update_method_name_from_physname): Make 'physname'
4947 argument const.
4948 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4949 const. Use explicit fputc_filtered loop.
4950 (pascal_type_print_base): Constify.
4951 * p-lang.h (pascal_type_print_method_args): Update.
4952 * linespec.c (add_matching_methods): Constify.
4953 (add_constructors): Likewise.
4954 * jv-typeprint.c (java_type_print_base): Constify.
4955 * gdbtypes.h (struct cplus_struct_type)
4956 <fn_fieldlist.fn_field.physname>: Now const.
4957 * dwarf2read.c (compute_delayed_physnames): Constify.
4958 (dwarf2_add_member_fn): Likewise.
4959 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4960
0d9a9a5f
PA
49612011-05-18 Pedro Alves <pedro@codesourcery.com>
4962
4963 * infrun.c (resume): Mention which is the current thread, and its
4964 current PC in debug output.
4965 (prepare_to_proceed): Mention the thread switching in debug
4966 output.
4967
05386e9e
TT
49682011-05-18 Tom Tromey <tromey@redhat.com>
4969
4970 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4971 path check. Use xmalloc and cleanups.
4972 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4973
ee86786c
TT
49742011-05-17 Tom Tromey <tromey@redhat.com>
4975
4976 * cp-valprint.c (cp_print_value_fields): Catch errors from
4977 value_static_field.
4978
9ff3b74f
TT
49792011-05-17 Tom Tromey <tromey@redhat.com>
4980
4981 * dwarf2read.c (dwarf2_get_die_type): Call
4982 get_die_type_at_offset.
4983 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4984 get_base_type function.
4985
cd3da28e
PA
49862011-05-17 Tomas Martinec <fyzmat@gmail.com>
4987
4988 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4989 trap_expected.
4990
fd20d931
DE
49912011-05-16 Doug Evans <dje@google.com>
4992
4993 * python/py-auto-load.c (source_section_scripts): Mention objfile
4994 name in warning.
4995
75fc9810
DE
49962011-05-15 Doug Evans <dje@google.com>
4997
290351b8
DE
4998 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4999 (try_thread_db_load_from_pdir): Call it. If unable to find
5000 libthread_db in directory of libpthread, see if we're looking at
5001 the separate-debug-info copy.
5002
75fc9810
DE
5003 * python/py-autoload.c (print_script): Print "Missing" instead of
5004 "No" for missing scripts.
5005 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5006
9f7bc587
DE
50072011-05-13 Doug Evans <dje@google.com>
5008
5009 * ui-file.c (stdio_file_write_async_safe): Add comment.
5010
093cee7d
HZ
50112011-05-14 Hui Zhu <teawater@gmail.com>
5012
5013 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5014
dbaefcf7
DE
50152011-05-13 Doug Evans <dje@google.com>
5016
98a5dd13
DE
5017 Support $pdir and $sdir in libthread-db-search-path.
5018 * NEWS: Mention $sdir,$pdir.
5019 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5020 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5021 (try_thread_db_load_from_sdir): New function.
5022 (try_thread_db_load_from_dir): New function.
5023 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5024 system directories if search of libthread-db-search-path fails,
5025 that is now done via $sdir.
5026 (has_libpthread): New function.
5027 (thread_db_load): Remove search for libthread_db in directory of
5028 libpthread, that is now done via $pdir.
5029
dbaefcf7
DE
5030 * NEWS: Mention "info auto-load-scripts".
5031 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5032 script_not_found_warning_printed.
5033 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5034 all callers updated. Initialize script_not_found_warning_printed.
5035 (get_auto_load_pspace_data_for_loading): New function.
5036 (maybe_add_script): New function.
5037 (source_section_scripts): Simplify. Only print one warning regardless
5038 of the number of auto-load scripts not found.
5039 (clear_section_scripts): Clear script_not_found_warning_printed.
5040 (auto_load_objfile_script): Record script in hash table.
5041 (count_matching_scripts): New function.
5042 (maybe_print_script): Renamed from maybe_print_section_script, all
5043 callers updated. Rewrite to use ui_out_*.
5044 (info_auto_load_scripts): Renamed from
5045 maintenance_print_section_scripts, all callers updated.
5046 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5047 renamed as "info auto-load-scripts".
5048
9930639c
TT
50492011-05-13 Tom Tromey <tromey@redhat.com>
5050
5051 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5052 (read_sleb128): Likewise.
5053
06826322
TT
50542011-05-13 Tom Tromey <tromey@redhat.com>
5055
5056 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5057 offset display.
5058
01124a23
DE
50592011-05-13 Doug Evans <dje@google.com>
5060
5061 * linux-nat.c (debug_linux_nat_async): Delete.
5062 Replace all references to use debug_linux_nat instead.
5063 (show_debug_linux_nat_async): Delete.
5064 (sigchld_handler): Call ui_file_write_async_safe instead of
5065 fprintf_unfiltered.
5066 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5067 * ui-file.c (struct ui_file): New member to_write_async_safe.
5068 (null_file_write_async_safe): New function.
5069 (ui_file_write_async_safe): New function.
5070 (set_ui_file_write_async_safe): New function.
5071 (ui_file_new): Initialize to_write_async_safe.
5072 (stdio_file_write_async_safe): New function.
5073 (struct stdio_file): New member fd.
5074 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5075 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5076 fileno.
01124a23
DE
5077 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5078 (set_ui_file_write_async_safe): Declare.
5079 (ui_file_write_async_safe): Declare.
5080
72fc29ff
TT
50812011-05-13 Tom Tromey <tromey@redhat.com>
5082
5083 * utils.c (do_value_free): New function.
5084 (make_cleanup_value_free): Likewise.
5085 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5086 freeing correctly.
5087 (dwarf2_loc_desc_needs_frame): Call
5088 make_cleanup_value_free_to_mark.
5089 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5090 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5091 value_free_to_mark.
5092 (new_dwarf_expr_context): Don't call value_mark.
5093 * dwarf2-frame.c (execute_stack_op): Call
5094 make_cleanup_value_free_to_mark.
5095 * defs.h (make_cleanup_value_free): Declare.
5096
028d0ed5
TJB
50972011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5098
5099 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5100 prepare_execute_command.
5101 * top.c (prepare_execute_command): Return cleanup.
5102 (execute_command): Use cleanup from prepare_execute_command.
5103 * top.h (prepare_execute_command): Change prototype to return
5104 cleanup.
5105 * defs.h (struct value): Add opaque declaration.
5106 (make_cleanup_value_free_to_mark): Add prototype.
5107 * utils.c (do_value_free_to_mark): New function.
5108 (make_cleanup_value_free_to_mark): Likewise.
5109
b087e0ed
TT
51102011-05-12 Tom Tromey <tromey@redhat.com>
5111
5112 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5113 cast left-hand-side to unsigned.
5114
8a9b8146
TT
51152011-05-12 Tom Tromey <tromey@redhat.com>
5116
5117 PR gdb/12617:
5118 * value.h (value_from_contents): Declare.
5119 * value.c (value_from_contents): New function.
5120 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5121 (dwarf2_get_die_type): New function.
5122 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5123 (allocate_piece_closure): Acquire reference to values.
5124 (read_pieced_value): Update for value-based expressions.
5125 (write_pieced_value): Likewise.
5126 (free_pieced_value_closure): Call value_free as needed.
5127 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5128 Update for value-based expressions.
5129 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5130 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5131 <get_base_type>: New field.
5132 (struct dwarf_expr_piece) <v.value>: Change type.
5133 <v.regno>: New field.
5134 (struct dwarf_expr_context) <mark>: New field.
5135 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5136 (dwarf_expr_pop, dwarf_expr_push): Remove.
5137 (dwarf_expr_push_address): Declare.
5138 * dwarf2expr.c (dwarf_arch_cookie): New global.
5139 (struct dwarf_gdbarch_types): New.
5140 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5141 functions.
5142 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5143 static.
5144 (dwarf_expr_push_address): New function.
5145 (dwarf_expr_pop): Now static.
5146 (dwarf_expr_fetch): Change return type.
5147 (dwarf_require_integral): New function.
5148 (dwarf_expr_fetch): Simplify.
5149 (add_piece): Update.
5150 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5151 functions.
5152 (execute_stack_op) <sign_ext>: Remove.
5153 Use values for DWARF stack.
5154 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5155 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5156 New cases.
5157 (_initialize_dwarf2expr): New function.
5158 (add_piece): Update.
5159 (new_dwarf_expr_context): Set new field.
5160 (free_dwarf_expr_context): Call value_free_to_mark.
5161 * dwarf2-frame.c (no_base_type): New function.
5162 (execute_stack_op): Set get_base_type field. Update.
5163
e8d28ef4
TT
51642011-05-12 Tom Tromey <tromey@redhat.com>
5165
5166 * dwarf2read.c (read_common_block): Fix formatting.
5167
d248b706
KY
51682011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5169
5170 * breakpoint.c (disable_breakpoint): Disable all locations
5171 associated with a tracepoint on target if a trace experiment is
5172 running.
5173 (disable_command): Disable a specific tracepoint location on target if
5174 a trace experiment is running.
5175 (do_enable_breakpoint): Enable all locations associated with a
5176 tracepoint on target if a trace experiment is running.
5177 (enable_command) Enable a specific tracepoint location on target if a
5178 trace experiment is running.
5179 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5180 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5181 to_disable_tracepoint.
5182 * target.h: Add declaration of struct bp_location.
5183 (struct target_ops): Add new functions
5184 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5185 to_disable_tracepoint to target operations.
5186 (target_supports_enable_disable_tracepoint): New macro.
5187 (target_enable_tracepoint): New macro.
5188 (target_disable_tracepoint): New macro.
5189 * remote.c (struct remote_state): Add new field.
5190 (remote_enable_disable_tracepoint_feature): New.
5191 (remote_protocol_features): Add new entry.
5192 (remote_supports_enable_disable_tracepoint): New.
5193 (remote_enable_tracepoint): New.
5194 (remote_disable_tracepoint): New.
5195 (init_remote_ops): Add remote_enable_tracepoint,
5196 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5197 to remote operations.
5198 * tracepoint.c (start_tracing): Allow tracing to start without any
5199 tracepoints enabled with just a warning if they can be re-enabled
5200 later.
5201 * NEWS: Add news item for the new behaviour of the enable and disable
5202 GDB commands when applied to tracepoints.
5203 Add news items for the new remote packets QTEnable and QTDisable.
5204
cc88a640
JK
52052011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 * config.in: Regenerate.
5208 * configure: Regenerate.
5209 * configure.ac <--with-system-readline> (for readline_echoing_p):
5210 Remove the test.
5211 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5212 (tui_old_rl_echoing_p): ... here.
5213 (tui_setup_io): Rename extern declaration readline_echoing_p to
5214 _rl_echoing_p. Adjust assignments for the both renames.
5215
1f84b619
TJB
52162011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5217
5218 * symtab.c (lookup_symtab): Run cleanup before returning.
5219
74ac6d43
TT
52202011-05-11 Tom Tromey <tromey@redhat.com>
5221
5222 * dwarf2read.c (handle_data_member_location): New function.
5223 (dwarf2_add_field): Use it.
5224 (read_common_block): Likewise.
5225
5488dafb
JK
52262011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5227
5228 Make addrs->SECTINDEX always defined.
5229 * symfile.c (relative_addr_info_to_section_offsets): Check for
5230 SECTINDEX -1, not for zero ADDR.
5231 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5232 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5233 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5234 on its validity.
5235
84e578fb
DE
52362011-05-10 Doug Evans <dje@google.com>
5237
2471d008
DE
5238 * linux-thread-db.c: Whitespace cleanup.
5239 (try_thread_db_load_1): Fix comment.
5240
84e578fb
DE
5241 * linux-thread-db.c (set_libthread_db_search_path): New function.
5242 (_initialize_thread_db): Add setter for libthread-db-search-path.
5243
673c2bbe
DE
52442011-05-09 Doug Evans <dje@google.com>
5245
478aac75
DE
5246 * NEWS: Mention --with-iconv-bin.
5247 * configure.ac: New option --with-iconv-bin.
5248 * configure: Regenerate.
5249 * config.in: Regenerate.
5250 * defs.h (relocate_gdb_directory): Declare.
5251 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5252 removed progname parameter, and exported. All callers updated.
5253 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5254
673c2bbe
DE
5255 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5256 adding missing call to restore_child_signals_mask.
5257
e4c8541f
PA
52582011-05-09 Pedro Alves <pedro@codesourcery.com>
5259
5260 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5261 parameter.
5262 * infrun.c (proceed, start_remote): Adjust.
5263 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5264 and adjust to not handle it.
5265 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5266 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5267 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5268 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5269 * windows-nat.c (do_initial_windows_stuff): Adjust.
5270 * infcmd.c (attach_command): Adjust.
5271 (notice_new_inferior): Adjust.
5272
a536c6d7
UW
52732011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5274
5275 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5276 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5277 * spu-tdep.c (op_selb): Use correct value.
5278
7845b013
UW
52792011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5280
5281 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5282 "parent" parameter to symbol_file_add_from_bfd call.
5283
9c06b0b4
TJB
52842011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5285 Thiago Jung Bauermann <bauerman@br.ibm.com>
5286
5287 Implement support for PowerPC BookE masked watchpoints.
5288 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5289 section.
5290 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5291 method. Initialize to NULL in all existing breakpoint_ops instances.
5292 (struct breakpoint) <hw_wp_mask>: New field.
5293 * breakpoint.c (is_masked_watchpoint): Add prototype.
5294 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5295 breakpoint's breakpoint_ops.works_in_software_mode if available.
5296 (watchpoints_triggered): Handle the case of a hardware masked
5297 watchpoint trigger.
5298 (watchpoint_check): Likewise.
5299 (works_in_software_mode_watchpoint): New function.
5300 (insert_masked_watchpoint, remove_masked_watchpoint)
5301 (resources_needed_masked_watchpoint)
5302 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5303 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5304 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5305 functions.
5306 (masked_watchpoint_breakpoint_ops): New structure.
5307 (watch_command_1): Check for the existence of the `mask' parameter.
5308 Set b->ops according to the type of hardware watchpoint being created.
5309 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5310 (ppc_linux_remove_mask_watchpoint)
5311 (ppc_linux_masked_watch_num_registers): New functions.
5312 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5313 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5314 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5315 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5316 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5317 (target_masked_watch_num_registers): New functions.
5318 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5319 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5320 methods.
5321 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5322 (target_masked_watch_num_registers): Add prototypes.
5323
8be455d7
JK
53242011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 PR 12573
5327 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5328 (producer_is_gcc_ge_4_0): New function.
5329 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5330 symtab->language code.
5331 (var_decode_location): Set cu->has_loclist.
5332 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5333 skip. Intialize force_skip from locations_valid. Move the prologue
5334 skipping code into two passes.
5335 * symtab.h (struct symtab): Make the primary field a bitfield. New
5336 field locations_valid.
5337
d8228535
JK
53382011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5339
5340 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5341 (classify_inner_name): Call cp_lookup_nested_type with
5342 yylval.tsym.type.
5343 * cp-namespace.c (cp_lookup_nested_type): New variable
5344 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5345 type_name_no_tag_or_error with saved_parent_type.
5346 * dwarf2read.c (load_partial_dies): Read in any children of
5347 DW_TAG_typedef with complaint in such case.
5348 * gdbtypes.c (type_name_no_tag_or_error): New function.
5349 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5350 * valops.c (destructor_name_p): New comment for parameter type. Remove
5351 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5352 * value.h (destructor_name_p): Remove type const.
5353
1976171a
JK
53542011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5355
5356 * symtab.c (compare_symbol_name): New function.
5357 (completion_list_add_name, expand_partial_symbol_name): Call it,
5358 remove the variable ncmp.
5359 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5360 gdb_assert it.
5361
a9634178
TJB
53622011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5363
5364 Demote to sw watchpoint only in update_watchpoint.
5365 * breakpoint.c (update_watchpoint): Change between software and
5366 hardware watchpoint for all kinds of watchpoints, not just
5367 read/write ones. Determine b->exact value here instead of
5368 in watch_command_1. Error out if there are not enough resources
5369 for a read or access hardware watchpoint.
5370 (watch_command_1): Remove logic of checking whether there are
5371 enough resources available, since update_watchpoint will do that
5372 work now. Don't set b->exact here. Catch exceptions thrown by
5373 update_watchpoint and delete the watchpoint.
5374 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5375 Use target_exact_watchpoints instead.
5376 (delete_breakpoint): Notify observers only if deleted watchpoint
5377 has a breakpoint number assigned to it.
5378
4c67c798
JJ
53792011-05-05 Janis Johnson <janisjo@codesourcery.com>
5380
5381 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5382
a3fcb948
JG
53832011-05-05 Jerome Guitton <guitton@adacore.com>
5384
5385 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5386 New functions.
5387 (i386_stack_tramp_frame_unwind): New static global.
5388 (i386_match_pattern): New function, extracted from i386_match_insn.
5389 (i386_match_insn): Use i386_match_pattern.
5390 (i386_match_insn_block): New function.
5391 (i386_tramp_chain_in_reg_insns)
5392 (i386_tramp_chain_on_stack_insns): New static variables.
5393 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5394 of unwinders.
5395
4d393d60
JM
53962011-05-04 Joseph Myers <joseph@codesourcery.com>
5397
5398 * configure.host (xscale*): Don't handle target.
5399 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5400 handle targets.
5401
f70bd40b
YQ
54022011-05-04 Yao Qi <yao@codesourcery.com>
5403
5404 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5405
dd3295ee
JB
54062011-05-03 Joel Brobecker <brobecker@adacore.com>
5407
5408 Revert:
5409 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5410 | * elfread.c (elf_symtab_read): Stop memory leak.
5411
90375a0e
PM
54122011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5413
5414 * nto-tdep.c (nto_target): Replace deprecated call to
5415 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5416
d07205c2
JK
54172011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5418
5419 Fix false GCC warning.
5420 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5421
1e718ff1
TJB
54222011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5423
5424 * breakpoint.c (update_watchpoint): Move code to change
5425 the enable state of breakpoint from here ...
5426 (do_enable_breakpoint): ... to here.
5427
35bef4fd
TT
54282011-04-26 Andrew Gontarek <andrewg@cray.com>
5429
78290264
PP
5430 * valprint.c (val_print_array_elements): Fixed poor performance
5431 of printing very large arrays with repeat_count_threshold set
5432 to unlimited. New comment.
35bef4fd 5433
38a714bb
TT
54342011-04-29 Tom Tromey <tromey@redhat.com>
5435
5436 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5437 (mi_parse): Likewise.
5438 * breakpoint.c (break_range_command): Use sizeof char*, not
5439 char**.
5440 (create_breakpoint): Likewise.
5441 (parse_breakpoint_sals): Likewise.
5442
eb73ad13
PA
54432011-04-29 Pedro Alves <pedro@codesourcery.com>
5444
5445 * linux-nat.c (linux_child_remove_fork_catchpoint)
5446 (linux_child_remove_vfork_catchpoint)
5447 (linux_child_remove_exec_catchpoint): New functions.
5448 (linux_target_install_ops): Install them.
5449
d65aec65
PM
54502011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5451
5452 PR mi/12531
5453
5454 * varobj.c (install_default_visualizer): Do not install a
5455 visualizer if the varobj is CPLUS_FAKE_CHILD.
5456 (construct_visualizer): Likewise.
5457
165195f4
JK
54582011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5459
5460 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5461 case insensitive comparison.
5462
30852783
UW
54632011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5464
5465 * infrun.c (proceed): Revert previous change.
5466 (resume): Instead, handle the case of signal delivery while stepping
5467 off a breakpoint location here, and only if software single-stepping
5468 is used. Handle nested signals.
5469
7ff120b4
YQ
54702011-04-28 Yao Qi <yao@codesourcery.com>
5471
5472 * arm-tdep.c (copy_unmodified): Rename to ...
5473 (arm_copy_unmodified): .. this. New.
5474 (copy_preload): Move common part to ...
5475 (install_preload): .. this. New.
5476 (arm_copy_preload): New.
5477 (copy_preload_reg): Move common part to ...
5478 (install_preload_reg): ... this. New.
5479 (arm_copy_preload_reg): New.
5480 (copy_b_bl_blx): Move common part to ...
5481 (install_b_bl_blx): .. this. New.
5482 (arm_copy_b_bl_blx): New.
5483 (copy_bx_blx_reg): Move common part to ...
5484 (install_bx_blx_reg): ... this. New.
5485 (arm_copy_bx_blx_reg): New.
5486 (copy_alu_reg): Move common part to ...
5487 (install_alu_reg): ... this. New.
5488 (arm_copy_alu_reg): New.
5489 (copy_alu_shifted_reg): Move common part to ...
5490 (install_alu_shifted_reg): ... this. New.
5491 (copy_ldr_str_ldrb_strb): Move common part to ...
5492 (install_ldr_str_ldrb_strb): ... this. New.
5493 (arm_copy_ldr_str_ldrb_strb): New.
5494 (copy_copro_load_store): Move some common part to ...
5495 (install_copy_copro_load_store): ... this. New.
5496 (arm_copy_copro_load_store): New.
5497 (copy_svc): Delete.
5498 (arm_copy_svc): Renamed from copy_svc.
5499 (copy_undef): Delete.
5500 (arm_copy_undef): Renamed from copy_undef.
5501 (decode_ext_reg_ld_st): Delete.
5502 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5503 (decode_svc_copro): Delete.
5504 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5505 (copy_copro_load_store, copy_alu_imm): update callers.
5506 (copy_extra_ld_st, copy_block_xfer): Likewise.
5507 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5508 (decode_miscellaneous, decode_dp_misc): Likewise.
5509 (decode_ld_st_word_ubyte, decode_media): Likewise.
5510 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5511 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5512 (decode_unconditional, decode_miscellaneous): Likewise.
5513 (decode_media, decode_b_bl_ldmstm): Likewise.
5514 (arm_process_displaced_insn): Likewise..
5515 (decode_misc_memhint_neon): Delete.
5516 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5517 (decode_miscellaneous): Delete.
5518 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5519 (decode_dp_misc): Delete.
5520 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5521 (decode_ld_st_word_ubyte): Delete.
5522 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5523 (decode_media): Delete.
5524 (arm_decode_media): Renamed from decode_media.
5525 (decode_b_bl_ldmstm): Delete.
5526 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5527 (decode_ext_reg_ld_st): Delete.
5528 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5529 (decode_unconditional): Delete.
5530 (arm_decode_unconditional): Renamed from decode_unconditional.
5531
559a7a62
JK
55322011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5533
5534 Case insensitive lookups implementation.
5535 * dwarf2read.c: Include ctype.h.
5536 (struct mapped_index): New field version.
5537 (mapped_index_string_hash): New parameter index_version. New comment
5538 for it. Call tolower appropriately.
5539 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5540 Choose the right index version for mapped_index_string_hash.
5541 (dwarf2_read_index): Support also the index version 5. Initialize the
5542 new struct mapped_index field version.
5543 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5544 (find_slot): Explain the version needs. Pass INT_MAX for the new
5545 parameter.
5546 (write_psymtabs_to_index): Produce version 5.
5547 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5548 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5549 * psymtab.c (lookup_partial_symbol): Find the
5550 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5551 entries.
5552 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5553 NAME lowercasing.
5554 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5555 (completion_list_add_name): New variable ncmp, initialize it, use it.
5556 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5557 * utils.c (strcmp_iw): Support case_sensitive_off.
5558 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5559 New function comment part. New variables saved_string1,
5560 saved_string2 and case_pass. Add a proper second pass.
5561
681bf369
JK
55622011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5563
5564 Replace re_comp/re_exec by regcomp/regexec.
5565 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5566 (search_symbols_name_matches): Use them, use regexec.
5567 (search_symbols): New variable retval_chain, adjust the use of
5568 old_chain against it. Replace re_comp by regcomp. Use the new struct
5569 search_symbols_data fields, use regexec instead of re_exec.
5570
b11b1f88
JK
55712011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5572
5573 Format the code for the next patch.
5574 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5575 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5576 New variables c1 and c2.
5577
2484c66b
UW
55782011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5579
5580 * infrun.c (proceed): Do not single-step into signal delivery
5581 when stepping off a breakpoint location.
5582 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5583 (insert_step_resume_breakpoint_at_caller): Likewise.
5584 (insert_step_resume_breakpoint_at_sal): Likewise.
5585 (insert_longjmp_resume_breakpoint): Likewise.
5586
47423772
YQ
55872011-04-27 Yao Qi <yao@codesourcery.com>
5588
5589 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5590
13bdd2e7
JB
55912011-04-27 Joel Brobecker <brobecker@adacore.com>
5592
5593 * procfs.c (procfs_pass_signals): Fix advance declaration.
5594
2455069d
UW
55952011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5596
5597 * target.h (struct target_ops): Remove to_notice_signals;
5598 add to_pass_signals.
5599 (target_notice_signals): Remove.
5600 (target_pass_signals): Add prototype.
5601 * target.c (update_current_target): Remove to_notice_signals;
5602 mention to_pass_signals.
5603 (target_pass_signals): New function.
5604 (debug_to_notice_signals): Remove.
5605 (setup_target_debug): Do not install debug_to_notice_signals.
5606
5607 * infrun.c (signal_pass): New global.
5608 (resume): Call target_pass_signals.
5609 (handle_inferior_event): Report all signals while stepping over
5610 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5611 are re-inserted when stepping over a signal handler.
5612 (signal_cache_update): New function.
5613 (signal_stop_update): Call it.
5614 (signal_print_update): Likewise.
5615 (signal_pass_update): Likewise.
5616 (handle_command): Call signal_cache_update and target_pass_signals
5617 instead of target_notice_signals.
5618 (_initialize_infrun): Initialize signal_pass.
5619
5620 * linux-nat.c (pass_mask): New global.
5621 (linux_nat_pass_signals): New function.
5622 (linux_nat_create_inferior): Report all signals initially.
5623 (linux_nat_attach): Likewise.
5624 (linux_nat_resume): Use pass_mask to decide whether to directly
5625 handle an inferior signal.
5626 (linux_nat_wait_1): Likewise.
5627 (linux_nat_add_target): Install to_pass_signals callback.
5628
5629 * nto-procfs.c (notice_signals): Remove.
5630 (procfs_resume): Do not call notice_signals.
5631 (procfs_notice_signals): Remove.
5632 (procfs_pass_signals): New function.
5633 (init_procfs_ops): Install to_pass_signals callback instead of
5634 to_notice_signals callback.
5635 (_initialize_procfs): Report all signals initially.
5636
5637 * procfs.c (procfs_notice_signals): Remove.
5638 (procfs_pass_signals): New function.
5639 (procfs_target): Install to_pass_signals callback instead of
5640 to_notice_signals callback.
5641 (register_gdb_signals): Remove.
5642 (procfs_debug_inferior): Report all signals initially.
5643 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5644
5645 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5646 parameters; use them instead of calling signal_..._state routines.
5647 (remote_notice_signals): Remove.
5648 (remote_start_remote): Report all signals initially.
5649 (remote_resume): Do not call remote_pass_signals.
5650 (_initialize_remote): Install to_pass_signals callback instead of
5651 to_notice_signals callback.
5652
46c6471b
PA
56532011-04-27 Pedro Alves <pedro@codesourcery.com>
5654
5655 * breakpoint.c (user_settable_breakpoint): Delete.
5656 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5657 (delete_command): Check user_breakpoint_p instead of looking at
5658 the breakpoint's type.
5659 (disable_command): Ditto.
5660 (enable_command): Ditto.
5661 (delete_trace_command): Use user_breakpoint_p instead of looking
5662 at the breakpoint number directly. When checking if there are
5663 user visible tracepoints, in order to know whether to ask the user
5664 for confirmation, check whether the breakpoint is actually a
5665 tracepoint.
5666
f6d90398
VP
56672011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5668
5669 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5670 compilation.
5671
8d3788bd
VP
56722011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5673
5674 MI breakpoint notifications.
5675
f33edef8
PP
5676 * annotate.c (breakpoint_changed): Adjust parameter type.
5677 * breakpoint.c (set_breakpoint_condition): Adjust to change
5678 in breakpoint_modified type.
5679 (breakpoint_set_commands): Likewise.
5680 (do_map_commands_command): Likewise.
5681 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5682 changed after bumping hit count.
5683 (bpstat_stop_status): Likewise.
5684 (print_one_breakpoint_location): Don't wrap in tuple here.
5685 (print_one_breakpoint): Always print individual locations.
5686 For locations, use unnamed tuple.
5687 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5688 has changed.
5689 (create_catchpoint, create_syscall_event_catchpoint): Call
5690 breakpoint_created obsever.
5691 (mention): Don't call breakpoint_created observer.
5692 (create_breakpoint_sal): Call breakpoint_created observer.
5693 (create_breakpoint, watch_command_1): Likewise.
5694 (create_ada_exception_breakpoint): Likewise.
5695 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5696 (locations_are_equal): New.
5697 (update_breakpoint_locations): If locations were changed, notify.
5698 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5699 Call breakpoint_modified observer.
5700
5701 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5702 (mi_cmd_break_insert): Don't set observers for modify and delete.
5703 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5704 (mi_breakpoint_created, mi_breakpoint_deleted)
5705 (mi_breakpoint_modified): New.
5706 (mi_interpreter_init): Hook the above.
5707 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5708 while -break-* commands are executing.
5709 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5710 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5711 (mi_redirect): New.
5712 (mi_ui_out_impl): Hook in mi_redirect.
5713 (mi_field_skip): True to the name, skip the field, don't output
5714 a field with an empty value.
5715
5716 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5717 (gdbpy_breakpoint_deleted): Adjust.
5718 * tui/tui-hooks.c (tui_event_create_breakpoint)
5719 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5720
a8f42b45
UW
57212011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5722
5723 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5724 (procfs_remove_hw_watchpoint): Likewise.
5725
57e12211
TT
57262011-04-26 Michael Walle <michael@walle.cc>
5727
5728 * remote.c (remote_start_remote): Ack packet after sending the
5729 interrupt sequence.
5730
af96c192
YQ
57312011-04-26 Yao Qi <yao@codesourcery.com>
5732
f33edef8
PP
5733 * linux-nat.c: Move common macros to ...
5734 Include linux-ptrace.h.
5735 * common/linux-ptrace.h: ... here. New.
af96c192 5736
3e03848b
JK
57372011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5738
5739 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5740 !objfile_has_partial_symbols. New comment.
5741 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5742 SYM_READ_PSYMBOLS is not present. Extend the comment.
5743 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5744
1ae0d051
JK
57452011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5746
5747 * defs.h (ENUM_BITFIELD): Remove.
5748
03f2bd59
JK
57492011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 Eli Zaretskii <eliz@gnu.org>
5751
5752 * NEWS: Document the new gdbserver --once option.
5753
4161fbb0
JZ
57542011-04-21 Jie Zhang <jzhang918@gmail.com>
5755
5756 * MAINTAINERS: Update my email address.
5757
bcb28afc
PM
57582011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5759
5760 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5761 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5762 function call if __STDC_ISO_10646__ macro is defined.
5763 (intermediate_encoding): New prototype.
5764 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5765 to generate compile time error for unsupported gdb_wchar_t size.
5766 (ENDIAN_SUFFIX): New macro.
5767 (intermediate_encoding): New function.
5768
7b08b9eb
JK
57692011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5770
5771 * ada-lang.c (struct add_partial_datum): Update the comment for
5772 expand_partial_symbol_name.
5773 (ada_add_partial_symbol_completions): Rename to ...
5774 (ada_expand_partial_symbol_name): ... here, change return type, update
5775 function comment, call symbol_completion_match instead of
5776 symbol_completion_add.
5777 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5778 and ada_expand_partial_symbol_name.
5779 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5780 FILE_MATCHER.
5781 (dw2_map_symbol_names): Remove.
5782 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5783 * psymtab.c (map_symbol_names_psymtab): Remove.
5784 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5785 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5786 order.
5787 (psym_functions): Unlist map_symbol_names_psymtab.
5788 (map_partial_symbol_names): Rename to ...
5789 (expand_partial_symbol_names): ... here, change the FUN type, call
5790 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5791 * psymtab.h (map_partial_symbol_names): Rename to ...
5792 (expand_partial_symbol_names): ... here, change the FUN type.
5793 * symfile.h (struct quick_symbol_functions): Update the description of
5794 expand_symtabs_matching. Remove map_symbol_names.
5795 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5796 (struct add_name_data): Update the comment for
5797 expand_partial_symbol_name.
5798 (add_partial_symbol_name): Rename to ...
5799 (expand_partial_symbol_name): ... here. Replace
5800 completion_list_add_name call by strncmp.
5801 (default_make_symbol_completion_list_break_on): Use now
5802 expand_partial_symbol_names and expand_partial_symbol_name.
5803 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5804
90476074
TT
58052011-04-20 Tom Tromey <tromey@redhat.com>
5806
5807 * dwarf2read.c (save_gdb_index_command): Replace format
5808 documentation with a pointer to the manual.
5809
c21236dc
PA
58102011-04-20 Pedro Alves <pedro@codesourcery.com>
5811
5812 * regcache.c: Include remote.h.
5813 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5814 (regcache_dump): Handle regcache_dump_remote.
5815 (maintenance_print_remote_registers): New function.
5816 (_initialize_regcache): Install "maint print remote-registers"
5817 command.
5818 * remote.c (map_regcache_remote_table): New function, factored out
5819 from ...
5820 (init_remote_state): ... here.
5821 (remote_register_number_and_offset): New.
5822 * remote.h (remote_register_number_and_offset): Declare.
5823
b78974c3
PA
58242011-04-20 Pedro Alves <pedro@codesourcery.com>
5825
5826 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5827 null_ptid, assume and allow a NULL address space, instead of
5828 asking the target for the ptid's address space.
5829 * infrun.c (ptid_is_pid): Remove assertion.
5830
7a9dd1b2
TT
58312011-04-19 Tom Tromey <tromey@redhat.com>
5832
5833 * windows-tdep.c (windows_xfer_shared_library):
5834 * windows-nat.c (get_module_name, windows_make_so):
5835 * v850-tdep.c (v850_handle_pushm):
5836 * utils.c (null_cleanup, gdb_realpath):
5837 * ui-out.c (get_next_header):
5838 * tracepoint.c (clear_traceframe_info):
5839 * symtab.c (lookup_symtab):
5840 * serial.h (struct serial_ops):
5841 * mipsread.c (read_alphacoff_dynamic_symtab):
5842 * infcmd.c (print_return_value):
5843 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5844 * f-exp.y (parse_number):
5845 * exceptions.c (catch_exceptions):
5846 * dummy-frame.c (dummy_frame_this_id):
5847 * defs.h (struct cleanup):
5848 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5849 * arm-tdep.c (arm_push_dummy_call):
5850 * amd64-tdep.h (amd64_collect_xsave):
5851 * amd64-tdep.c (amd64_collect_xsave):
5852 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5853 * README (typing): Remove duplicate words.
5854 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5855 * infrun.c (siginfo_value_read): Fix typo.
5856 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5857 * top.c (source_line_number): Add comma.
5858
9941e0c5
MK
58592011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5860
5861 * thread.c (any_live_thread_of_process): Prioritize threads
5862 that are not executing.
5863 * gdbthread.h (any_live_thread_of_process): Update comment
5864 as per above change.
5865
ed4b0e6a
AS
58662011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5867
5868 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5869 (scan_xcoff_symtab): Likewise.
5870
9b13a2db
PM
58712011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5872
5873 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5874 inside if clause.
5875
1c6e1b0d
PM
58762011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5877 Pedro Alves <pedro@codesourcery.com>
5878
5879 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5880 variables to simplify code and avoid == operator at end of
5881 line as this is against GNU coding standards.
5882
74de0234
PM
58832011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5884
5885 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5886 lm_name to name_lm to avoid conflict with lm_name function.
5887
b23518f0
PM
58882011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5889
5890 ARI fixes: Use only lowercase function name for static functions.
5891 * nto-tdep.c (LM_ADDR): Rename to...
5892 (lm_addr): New function name.
5893 (nto_relocate_section_addresses): Adapt to change above.
5894 * solib-sunos.c (LM_ADDR): Rename to...
5895 (lm_addr): New function name.
5896 (LM_NEXT): Rename to...
5897 (lm_next): New function name.
5898 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5899 function name changes above.
5900 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5901 (lm_addr_from_link_map): New function name.
5902 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5903 (has_lm_dynamic_from_link_map): New function name.
5904 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5905 (lm_dynamic_from_link_map): New function name.
5906 (LM_ADDR_CHECK): Rename to...
5907 (lm_addr_check): New function name.
5908 (LM_NEXT): Rename to...
5909 (lm_next): New function name.
5910 (LM_PREV): Rename to...
5911 (lm_prev): New function name.
5912 (LM_NAME): Rename to...
5913 (lm_name): New function name.
5914 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5915 (ignore_first_link_map_entry): New function name.
5916 (svr4_keep_data_in_core): Adapt to function name changes above.
5917 (svr4_current_sos): Likewise.
5918 (enable_break): Likewise.
5919 (svr4_relocate_section_addresses): Likewise.
5920
1448a0a2
PM
59212011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5922
5923 ARI cleanup.
5924 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5925 sprintf. Simplify code and avoid loosing memory.
5926 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5927 (call0_frame_cache): Remove && operator from end of line.
5928
02835898
JK
59292011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5930
5931 Fix libraries displacement if they change whether they were prelinked.
5932 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5933 does not match. Comment why.
5934
9a845ea2
JK
59352011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5936
5937 * corelow.c: Include wrapper.h.
5938 (core_open): Call now gdb_target_find_new_threads.
5939 * wrapper.c: Include target.h.
5940 (gdb_target_find_new_threads): New.
5941 * wrapper.h (gdb_target_find_new_threads): New declaration.
5942
254f582e
JK
59432011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5944
5945 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5946 even if !TARGET_HAS_EXECUTION.
5947
63524580
JK
59482011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5949
5950 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5951 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5952 bfd_get_synthetic_symtab.
5953 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5954 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5955 parameter parent, remove the call to add_separate_debug_objfile.
5956 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5957 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5958 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5959 parent, new comment for it, call add_separate_debug_objfile for it.
5960 (symbol_file_add_separate): Pass objfile as the parameter parent,
5961 remove the call to add_separate_debug_objfile.
5962 (symbol_file_add_from_bfd): New parameter parent, pass it.
5963 (symbol_file_add): Pass NULL to the new parameter parent.
5964 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5965
90359a16
JK
59662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5967
5968 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5969 BSF_SYNTHETIC.
5970
626e7282
JK
59712011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5972
5973 Fix Python access to inlined frames.
5974 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5975 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5976
cf31e6f9
TT
59772011-04-15 Tom Tromey <tromey@redhat.com>
5978
5979 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5980
c8d895f1
GB
59812011-04-15 Gary Benson <gbenson@redhat.com>
5982
5983 * MAINTAINERS: Add myself to write-after-approval section.
5984
56a9aa1d
MF
59852011-04-14 Mike Frysinger <vapier@gentoo.org>
5986
5987 * remote-sim.c (sim_command_completer): New function.
5988 (_initialize_remote_sim): Set completer to sim_command_completer.
5989
ba770c9c
TJB
59902011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5991
5992 * breakpoint.c (print_exception_catchpoint): Rename to ...
5993 (print_it_exception_catchpoint): ... this.
5994 (gnu_v3_exception_catchpoint_ops): Update with new name
5995 for print_it_exception_catchpoint.
5996
51bf2553
EBM
59972011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5998
5999 * MAINTAINERS: Add myself for write after approval privileges.
6000
d242658c
MP
60012011-04-13 Marek Polacek <mpolacek@redhat.com>
6002
6003 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6004
4a4106ca
TJB
60052011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6006
6007 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6008
26063d49
TJB
60092011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6010
6011 * breakpoint.c (save_breakpoints): Verify whether
6012 breakpoint_ops.print_recreate is defined before calling it.
6013
7782b183
GB
60142011-04-11 Gary Benson <gbenson@redhat.com>
6015
6016 Fix failure with --enable-maintainer-mode.
6017 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6018
e8930875
JK
60192011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6020
6021 Code cleanup.
6022 * symtab.c (search_symbols): Reorder the KIND description in the
6023 function comment. Remove the unused 4th element of types, types2,
6024 types3 and types4. New gdb_assert on KIND.
6025 (symtab_symbol_info): Remove the unused 4th element of classnames.
6026 New gdb_assert on KIND.
6027 * symtab.h (enum search_domain): New warning in the enum comment.
6028 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6029 TYPES_DOMAIN.
6030
b4f2f049
JK
60312011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 Fix crash of gdb save-index on a STABS file.
6034 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6035 PSYMTABS_ADDRMAP.
6036
60d5a603
JK
60372011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6038
6039 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6040 * dwarf2read.c: Include ctype.h.
6041 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6042 functions.
6043 (dwarf2_add_field): Fix new_field->accessibility by calling
6044 dwarf2_default_access_attribute. Restructure setting accessibility
6045 vs. virtuality.
6046 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6047 is_private and is_protected by calling
6048 dwarf2_default_access_attribute.
6049
e0f68161
KB
60502011-04-08 Kevin Buettner <kevinb@redhat.com>
6051
6052 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6053 to the initialization.
6054
2e1aae43
SE
60552011-04-08 Steve Ellcey <sje@cup.hp.com>
6056
6057 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6058 initalization.
6059
c6ca3dab
PM
60602011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6061
6062 Remove support for old Cygwin 1.5 versions.
6063 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6064 function on old Cygwin version.
6065 * windows-nat.c: Remove cygwin version check and always define
6066 __USEWIDE for Cygwin compilation.
6067
bd18283a
YQ
60682011-04-07 Yao Qi <yao@codesourcery.com>
6069
6070 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6071 and TO.
6072 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6073 (arm_copy_svc): Remove parameters INSN and TO.
6074 (decode_svc_copro): Update caller.
6075 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6076 from function pointer `copy_svc_os'.
6077
8c8dba6d
YQ
60782011-04-07 Yao Qi <yao@codesourcery.com>
6079
6080 * arm-tdep.c (cleanup_branch): Set a correct return address in
6081 LR for ARM and Thumb.
6082
59d7bcaf
JK
60832011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 Code cleanup.
6086 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6087 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6088 in the function comment, a new note on values compatibility.
6089 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6090 * symtab.h (SYMBOL_HASH_NEXT): New.
6091
e7db58ea
TJB
60922011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6093
6094 * ppc-linux-nat.c (check_condition): Add len output parameter.
6095 Set it based on the memory region referenced in the condition
6096 expression. Update all callers.
6097
9f743ef6
JK
60982011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6099
6100 Fix crash regression on systems featuring .gdb_index.
6101 * objfiles.c (free_objfile): Move the
6102 forget_cached_source_info_for_objfile call earlier. Comment it.
6103 Extend the comment for objfile_free_data.
6104
9182c5bc
JK
61052011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 Fix regression of displaying the debug format.
6108 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6109 subfile.
6110
04bd08de
TT
61112011-04-04 Tom Tromey <tromey@redhat.com>
6112
6113 * cli/cli-interp.c (struct captured_execute_command_args):
6114 Remove.
6115 (do_captured_execute_command): Remove.
6116 (safe_execute_command): Use TRY_CATCH.
6117 * cli/cli-script.c (struct wrapped_read_command_file_args):
6118 Remove.
6119 (wrapped_read_command_file): Remove.
6120 (script_from_file): Use TRY_CATCH.
6121 * exceptions.c (catch_exception): Remove.
6122 * exceptions.h (catch_exception): Remove.
6123 (deprecated_throw_reason): Update comment.
6124 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6125 argument to 'context'.
6126 (mi_execute_command): Use TRY_CATCH.
6127 * remote.c (struct start_remote_args): Remove.
6128 (remote_start_remote): Update; change arguments.
6129 (remote_open_1): Use TRY_CATCH.
6130
58438ac1
TT
61312011-04-04 Tom Tromey <tromey@redhat.com>
6132
6133 * tracepoint.c (scope_info): Update.
6134 * symtab.c (decode_line_spec): Update.
6135 * python/python.c (gdbpy_decode_line): Update.
6136 * linespec.h (decode_line_1): Update.
6137 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6138 (decode_compound, find_method, symtab_from_filename)
6139 (decode_variable): Likewise.
6140 * cli/cli-cmds.c (edit_command): Update.
6141 (list_command): Update.
6142 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6143 argument.
6144 (create_breakpoint): Update.
6145 (until_break_command): Update.
6146 (addr_string_to_sals): Update.
6147 (decode_line_spec_1): Update.
6148
b78a6381
TT
61492011-04-04 Tom Tromey <tromey@redhat.com>
6150
6151 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6152 (do_captured_parse_breakpoint): Remove.
6153 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6154 Use TRY_CATCH directly.
6155
00174a86
TT
61562011-04-04 Tom Tromey <tromey@redhat.com>
6157
6158 * symtab.h (free_symtab): Remove.
6159 (forget_cached_source_info_for_objfile): Declare.
6160 * symmisc.c (free_symtab): Remove.
6161 * source.c (forget_cached_source_info_for_objfile): New function.
6162 (forget_cached_source_info): Use it.
6163 * objfiles.c (free_objfile): Simplify check before calling
6164 clear_current_source_symtab_and_line. Call
6165 forget_cached_source_info_for_objfile.
6166
30cc903e
TT
61672011-04-04 Tom Tromey <tromey@redhat.com>
6168
6169 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6170 (new_symtab): Don't set `free_code' on symtab.
6171 (new_linetable): Properly handle size==0.
6172 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6173 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6174 free_func.
6175 * jv-lang.c (struct jv_per_objfile_data): New.
6176 (jv_per_objfile_free): Free the data.
6177 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6178 (get_java_class_symtab): Set the `dict' field on the
6179 jv_per_objfile_data.
6180 (free_class_block): Remove.
6181 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6182 the symtab.
6183
0c2e6019
TT
61842011-04-04 Tom Tromey <tromey@redhat.com>
6185
6186 * symfile.c (reread_symbols): Update.
6187 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6188 field.
6189 * objfiles.c (allocate_objfile): Update.
6190 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6191 declare.
6192 * cp-namespace.c (lookup_symbol_file): Don't call
6193 lookup_possible_namespace_symbol.
6194 (initialize_namespace_symtab, get_possible_namespace_block)
6195 (free_namespace_block, cp_check_possible_namespace_symbols)
6196 (check_possible_namespace_symbols_loop)
6197 (check_one_possible_namespace_symbol)
6198 (lookup_possible_namespace_symbol): Remove.
6199 (maintenance_cplus_namespace): Replace with notice.
6200 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6201
554d387d
TT
62022011-04-04 Tom Tromey <tromey@redhat.com>
6203
6204 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6205 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6206 * symmisc.c (free_symtab): Don't free debugformat.
6207 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6208 (record_debugformat, record_producer): Document.
6209 * buildsym.c (end_symtab): Don't save debugformat and producer
6210 names on obstack.
6211 (end_symtab): Don't free debugformat and producer fields.
6212 (record_debugformat): Don't call xstrdup.
6213 (record_producer): Likewise.
6214
d4d4db8a
TT
62152011-04-04 Tom Tromey <tromey@redhat.com>
6216
6217 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6218 (source_line_charpos, source_charpos_line): Remove.
6219
8903c50d
TT
62202011-04-04 Tom Tromey <tromey@redhat.com>
6221
6222 * symtab.h (domain_enum): Split in two...
6223 (enum search_domain): New.
6224 (search_symbols): Update.
6225 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6226 redundant declarations.
6227 (search_symbols): Change 'kind' argument to search_domain.
6228 Update.
6229 (print_symbol_info): Likewise.
6230 (symtab_symbol_info): Likewise.
6231 * symfile.h (struct quick_symbol_functions)
6232 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6233 <expand_symtabs_matching>: Likewise.
6234 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6235 (expand_symtabs_matching_via_partial): Update.
6236 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6237 (dw2_expand_symtabs_for_function): Update.
6238 * block.h: Moved anonymous enum...
6239 * defs.h (enum block_enum): ... here. Now named.
6240
d9351f5f 62412011-04-03 Joel Brobecker <brobecker@adacore.com>
6242
6243 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6244 * version.in: Bump version to 7.3.50.20110403-cvs.
6245
d6e00af6
JB
62462011-04-03 Joel Brobecker <brobecker@adacore.com>
6247
6248 * NEWS: Create a new section for the next release branch.
6249 Rename the section of the current branch, now that it has
6250 been cut.
6251
2b9e5ea6
UW
62522011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6253
6254 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6255 for "fpscr" in target description.
6256
0cf03b49
JK
62572011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6258
6259 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6260 initialize it. Delay HASH initialization. Strip the part after open
6261 parenthesis for languages with qualifiers. Call do_cleanups.
6262
5d901a73
TT
62632011-04-01 Tom Tromey <tromey@redhat.com>
6264
6265 * utils.c (report_command_stats): Don't print `-' for negative
6266 number.
6267
b0dd7688
JB
62682011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6269
6270 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6271 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6272 typedefs.
6273
956a9fb9
JB
62742011-04-01 Joel Brobecker <brobecker@adacore.com>
6275
6276 * breakpoint.h (bpdisp_text): Add declaration.
6277 * breakpoint.c (bpdisp_text): Make non-static.
6278 * ada-lang.c: #include "mi/mi-common.h".
6279 (print_it_exception): Rewrite to improve GDB/MI output.
6280
3352110b
PA
62812011-04-01 Pedro Alves <pedro@codesourcery.com>
6282
6283 * arm-tdep.h (struct address_space): Add forward declaration.
6284
18819fa6
UW
62852011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6286
6287 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6288 * arm-tdep.c (arm_override_mode): New global.
6289 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6290 execution mode heuristics.
6291 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6292 second single-step breakpoint if needed, using
6293 arm_insert_single_step_breakpoint.
6294 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6295 ARM execution mode, do not call thumb_get_next_pc_raw.
6296 (arm_get_next_pc): Encode execution mode in return value. Call
6297 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6298 (arm_insert_single_step_breakpoint): New function.
6299 (arm_software_single_step): Call it.
6300 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6301 argument to return execution mode of sigreturn target.
6302 (arm_linux_syscall_next_pc): Use it.
6303 (arm_linux_copy_svc): Update call.
6304 (arm_linux_software_single_step): Call
6305 arm_insert_single_step_breakpoint.
6306
a6e293d1
JK
63072011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6308
6309 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6310 the comment.
6311
a4c8e806
TT
63122011-03-31 Tom Tromey <tromey@redhat.com>
6313
6314 * varobj.c (update_dynamic_varobj_children): Properly handle
6315 errors from iterator.
6316
df5c6c50
JK
63172011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6318
6319 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6320 struct linkage name twice.
6321
1dae3efc
TT
63222011-03-31 Tom Tromey <tromey@redhat.com>
6323
6324 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6325 missing ">" to message.
6326
f4f7ab05
TT
63272011-03-31 Tom Tromey <tromey@redhat.com>
6328
6329 * varobj.c (instantiate_pretty_printer): Remove duplicate
6330 'return'.
6331
fcf250e2
UW
63322011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6333
6334 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6335 if neither saved value nor register available (e.g. signal frame).
6336
ee6436e3
TJB
63372011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6338
6339 * macroexp.c (expand): Avoid uninitialized variable
6340 compiler warning.
6341
423f41a5
TJB
63422011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6343
6344 * breakpoint.c (break_range_command): Fix typo in comment.
6345
f1310107
TJB
63462011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6347 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6348
6349 Implement support for PowerPC BookE ranged breakpoints.
6350 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6351 * breakpoint.h (struct bp_target_info) <length>: New member
6352 variable.
6353 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6354 instead of struct breakpoint as argument, and also add ASPACE
6355 and BP_ADDR arguments. Update all callers.
6356 (struct breakpoint_ops) <print_one_detail>: New method.
6357 (struct breakpoint) <addr_string_range_end>: New member variable.
6358 * breakpoint.c (breakpoint_location_address_match): Add function
6359 prototype.
6360 (insert_bp_location): Set bl->target_info.length.
6361 (breakpoint_here_p): Call breakpoint_location_address_match.
6362 (moribund_breakpoint_here_p): Likewise.
6363 (regular_breakpoint_inserted_here_p): Likewise.
6364 (breakpoint_thread_match): Likewise.
6365 (bpstat_stop_status): Likewise.
6366 (bpstat_check_location): Move call to
6367 breakpoint_ops.breakpoint_hit to the top.
6368 (print_one_breakpoint_location): Call
6369 breakpoint_ops.print_one_detail if available.
6370 (breakpoint_address_match_range): New function.
6371 (breakpoint_location_address_match): Likewise.
6372 (breakpoint_locations_match): Compare the length field of the
6373 locations too.
6374 (hw_breakpoint_used_count): Count resources used by all locations
6375 in a breakpoint, and use breakpoint_ops.resources_needed if
6376 available.
6377 (breakpoint_hit_ranged_breakpoint): New function.
6378 (resources_needed_ranged_breakpoint): Likewise.
6379 (print_it_ranged_breakpoint): Likewise.
6380 (print_one_ranged_breakpoint): Likewise.
6381 (print_one_detail_ranged_breakpoint): Likewise.
6382 (print_mention_ranged_breakpoint): Likewise.
6383 (print_recreate_ranged_breakpoint): Likewise.
6384 (ranged_breakpoint_ops): New structure.
6385 (find_breakpoint_range_end): New function.
6386 (break_range_command): Likewise.
6387 (delete_breakpoint): Free addr_string_range_end.
6388 (update_breakpoint_locations): Add SALS_END argument. Update
6389 all callers. Calculate breakpoint length if a non-zero SALS_END
6390 is given. Call breakpoint_locations_match instead of
6391 breakpoint_address_match.
6392 (reset_breakpoint): Find SaL of the end of the range if B is a
6393 ranged breakpoint.
6394 (_initialize_breakpoint): Register break-range command.
6395 * defs.h (print_core_address): Add function prototype.
6396 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6397 function.
6398 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6399 (ppc_linux_remove_hw_breakpoint): Likewise.
6400 (_initialize_ppc_linux_nat): Initialize
6401 to_ranged_break_num_registers.
6402 * target.c (update_current_target): Add comment about
6403 to_ranged_break_num_registers.
6404 (target_ranged_break_num_registers): New function.
6405 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6406 New method.
6407 (target_ranged_break_num_registers): Add function prototype.
6408 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6409 * utils.c (print_core_address): ... here.
6410
02d20e4a
UW
64112011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6412
6413 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6414 variable compiler warning.
6415
ef23e705
TJB
64162011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6417
6418 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6419 code from here ...
6420 (re_set_breakpoint): ... to here ...
6421 (addr_string_to_sals): ... and here.
6422
311e6ab3
PM
64232011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6424
6425 * Makefile.in (SFILES): Add missing C sources.
6426 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6427 Add missing headers.
6428
acd1d99c
MF
64292011-03-29 Mike Frysinger <vapier@gentoo.org>
6430
6431 * .gitignore: New file.
6432
66ee2731
MF
64332011-03-29 Mike Frysinger <vapier@gentoo.org>
6434
6435 * NEWS: Mention new cfi device simulation.
6436
53832f31
TT
64372011-03-29 Tom Tromey <tromey@redhat.com>
6438
6439 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6440 otherwise anonymous types.
6441 (dwarf2_name): Likewise.
6442 * valops.c (value_struct_elt_for_reference): Refine artificial
6443 type logic. Call error if j==-1.
6444
09b58708
JK
64452011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6446
6447 Fix false GCC warning.
6448 * infcall.c (find_function_addr): Initialize funaddr.
6449
6023c606
PM
64502011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6451
6452 Fix mingw compilation with --enable-targets=all.
6453 * remote-mips.c (gdb_usleep.h): Include header.
6454 (mips_enter_debug): Use gdb_usleep instead of sleep.
6455
0e30163f
JK
64562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6457
6458 Support resolution of STT_GNU_IFUNC via breakpoints.
6459 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6460 bp_gnu_ifunc_resolver_return.
6461 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6462 the loop. Support bp_gnu_ifunc_resolver and
6463 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6464 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6465 breakpoints.
6466 (bptype_string, print_one_breakpoint_location): Support
6467 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6468 (user_settable_breakpoint): Return true also for
6469 bp_gnu_ifunc_resolver.
6470 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6471 bp_gnu_ifunc_resolver_return.
6472 (set_breakpoint_location_function): New parameter explicit_loc,
6473 describe it. Call find_pc_partial_function_gnu_ifunc with new
6474 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6475 EXPLICIT_LOC is not set.
6476 (set_raw_breakpoint): Set EXPLICIT_LOC for
6477 set_breakpoint_location_function.
6478 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6479 set_breakpoint_location_function.
6480 (mention): Support bp_gnu_ifunc_resolver and
6481 bp_gnu_ifunc_resolver_return.
6482 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6483 set_breakpoint_location_function.
6484 (update_breakpoint_locations): Remove static.
6485 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6486 bp_gnu_ifunc_resolver_return.
6487 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6488 bp_gnu_ifunc_resolver_return.
6489 (update_breakpoint_locations): New declaration.
6490 * elfread.c: Include gdbthread.h and regcache.h.
6491 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6492 functions.
6493 (elf_gnu_ifunc_fns): Install them.
6494 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6495 (stub_gnu_ifunc_resolver_return_stop): New functions.
6496 (stub_gnu_ifunc_fns): Install them.
6497 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6498 and gnu_ifunc_resolver_return_stop.
6499 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6500
07be84bf
JK
65012011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6502
6503 STT_GNU_IFUNC reader implementation.
6504 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6505 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6506 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6507 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6508 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6509 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6510 (elf_gnu_ifunc_resolve_addr): New.
6511 (elf_symfile_read): Call elf_rel_plt_read.
6512 (elf_gnu_ifunc_fns): New.
6513 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6514 Install elf_gnu_ifunc_fns.
6515 * infcall.c (find_function_return_type): New function.
6516 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6517 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6518 (stub_gnu_ifunc_resolve_name): New functions.
6519 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6520 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6521 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6522
300f8e10
JK
65232011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6524
6525 Code cleanup for later STT_GNU_IFUNC support.
6526 * infcall.c (find_function_addr): Remove variable code, use explicit
6527 dereferences for it. Move VALUE_TYPE initialization later.
6528
11c81455
JK
65292011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6530
6531 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6532 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6533 (clear_pc_function_cache): Clear it.
6534 (find_pc_partial_function): Rename to ...
6535 (find_pc_partial_function_gnu_ifunc): ... this function. New
6536 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6537 (find_pc_partial_function): New wrapper for this function.
6538 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6539
0875794a
JK
65402011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6541
6542 GDB internal type support for STT_GNU_IFUNC.
6543 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6544 (elf_symtab_read): Set mst_text_gnu_ifunc for
6545 BSF_GNU_INDIRECT_FUNCTION.
6546 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6547 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6548 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6549 nodebug_got_plt_symbol.
6550 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6551 (TYPE_GNU_IFUNC): New.
6552 (struct main_type): New field flag_gnu_ifunc.
6553 (struct builtin_type): New field builtin_func_func.
6554 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6555 nodebug_got_plt_symbol.
6556 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6557 (in_gnu_ifunc_stub): New.
6558 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6559 mst_text_gnu_ifunc.
6560 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6561 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6562 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6563 in_gnu_ifunc_stub.
6564 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6565 * symtab.c (search_symbols): Likewise.
6566 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6567 and mst_slot_got_plt.
6568 (in_gnu_ifunc_stub): New declaration.
6569
d0fb5eae
JK
65702011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6571
6572 Support a ring of related breakpoints.
6573 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6574 other functions, add gdb_assert.
6575 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6576 watchpoint_del_at_next_stop.
6577 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6578 (bpstat_stop_status): Handle ring in related_breakpoint.
6579 (set_raw_breakpoint_without_location): Initialize ring in
6580 related_breakpoint.
6581 (delete_breakpoint): Handle ring in related_breakpoint, use
6582 watchpoint_del_at_next_stop.
6583 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6584
9cded63f
TT
65852011-03-28 Tom Tromey <tromey@redhat.com>
6586
6587 PR symtab/12441:
6588 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6589 with `language_minimal'.
6590
467d42c4
UW
65912011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6592
6593 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6594 instead of checking for STT_ARM_TFUNC symbol type.
6595
62853458
TT
65962011-03-25 Tom Tromey <tromey@redhat.com>
6597
6598 * linespec.c (symbol_found): Restore line-based result for
6599 non-LOC_LABEL symbols.
6600
a7417d46
KT
66012011-03-25 Kai Tietz <ktietz@redhat.com>
6602
6603 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6604 instead of strcmp for comparison.
6605 (tui_source_is_displayed): Likewise.
6606 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6607
55f1336d
TT
66082011-03-24 Mark Wielaard <mjw@redhat.com>
6609
f33edef8
PP
6610 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6611 complaint.
6612 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6613 (find_partial_die_in_comp_unit): Likewise in comment.
6614 (read_attribute_value): Likewise.
6615 (lookup_die_type): Likewise.
6616 (dwarf_form_name): Likewise.
6617 (dump_die_shallow): Likewise.
6618 (follow_die_ref_or_sig): Likewise.
55f1336d 6619
9ef07c8c
TT
66202011-03-24 Tom Tromey <tromey@redhat.com>
6621
6622 PR breakpoints/11816:
6623 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6624 (decode_compound): Update.
6625 (find_function_symbol): New function.
6626 (decode_dollar): Update.
6627 (decode_label): Add 'function_symbol' parameter. Handle
6628 function-relative labels.
6629 (decode_variable): Update.
6630 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6631 not its line. Set `special_display' and canonical name for
6632 labels.
6633
56435ebe
TT
66342011-03-24 Tom Tromey <tromey@redhat.com>
6635
6636 * linespec.h (struct linespec_result) <special_display>: New
6637 field.
6638 * breakpoint.h (struct breakpoint) <display_canonical>: New
6639 field.
6640 * breakpoint.c (print_breakpoint_location): Respect
6641 display_canonical.
6642 (create_breakpoint_sal): Add 'display_canonical' parameter.
6643 (create_breakpoints_sal): Update.
6644 (create_breakpoint): Update.
6645
7efd8fc2
TT
66462011-03-24 Tom Tromey <tromey@redhat.com>
6647
6648 * symtab.c (decode_line_spec): Update.
6649 * linespec.c (build_canonical_line_spec): Change type of
6650 'canonical'.
6651 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6652 (find_method, decode_all_digits, decode_dollar, decode_label)
6653 (symbol_found): Likewise.
6654 (init_linespec_result): New function.
6655 * breakpoint.c (struct captured_parse_breakpoint_args)
6656 <canonical_p>: New field, replaces addr_string_p.
6657 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6658 'addr_string'.
6659 (parse_breakpoint_sals): Likewise.
6660 (do_captured_parse_breakpoint): Update.
6661 (create_breakpoint): Use struct linespec_result.
6662 (until_break_command): Update.
6663 (breakpoint_re_set_one): Update.
6664 (decode_line_spec_1): Update.
6665 * linespec.h (struct linespec_result): New.
6666 (init_linespec_result): Declare.
6667
788c8b10
PA
66682011-03-23 Pedro Alves <pedro@codesourcery.com>
6669
6670 * regcache.c (regcache_raw_read): If the target didn't supply a
6671 given raw register, mark it as unavailable.
6672
0ba1096a
KT
66732011-03-23 Kai Tietz <ktietz@redhat.com>
6674
6675 * breakpoint.c (clear_command): Use filename_cmp
6676 instead of strcmp for comparison.
6677 * buildsym.c (watch_main_source_file_lossage): Likewise.
6678 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6679 checking just for slash.
6680 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6681 strrchr and filename_cmp instead of strcmp for filenames.
6682 (add_old_header_file): Use filename_cmp
6683 instead of strcmp for comparison.
6684 * exec.c (exec_set_section_address): Likewise.
6685 * macrotab.c (macro_lookup_inclusion): Likewise.
6686 (macro_lookup_inclusion): Likewise.
6687 * elfread.c (_initialize_elfread): Likewise.
6688 (elfstab_offset_sections): Likewise.
6689 (elfstab_offset_sections): Use lbasename instead of
6690 strrchr.
6691 * mdebugread.c (parse_partial_symbols): Likewise.
6692 (arse_partial_symbols): Use filename_(n)cmp instead of
6693 str(n)cmp for comparison.
6694 * minsyms.c (lookup_minimal_symbol): Likewise.
6695 * psymtab.c (read_psymtabs_with_filename): Likewise.
6696 * solib.c (solib_read_symbols): Likewise.
6697 (reload_shared_libraries_1): Likewise.
6698 * symmisc.c (maintenance_print_symbols): Likewise.
6699 * symfile.c (separate_debug_file_exists): Likewise.
6700 (reread_symbols): Likewise.
6701 (find_separate_debug_file_by_debuglink): Likewise.
6702 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6703 * source.c (add_path): Likewise.
6704 * symtab.c (filename_seen): Likewise.
6705 (file_matches): Likewise.
6706 (print_symbol_info): Likewise.
6707 (maybe_add_partial_symtab_filename): Likewise.
6708 (make_source_files_completion_list): Likewise.
6709 * xml-syscall.c (init_sysinfo): Likewise.
6710 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6711 IS_DIR_SEPARATOR for checking for trailing path separator.
6712
dd90784c
JK
67132011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6714
6715 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6716 label abort_expression.
6717 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6718 DWARF_VALUE_OPTIMIZED_OUT.
6719
3167638f
JK
67202011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6721
6722 Code cleanup.
6723 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6724 to linkage_name. Invert its value. Update the function comment.
6725 (c_type_print_varspec_suffix): Invert it at the caller.
6726 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6727
ce406537
PA
67282011-03-22 Pedro Alves <pedro@codesourcery.com>
6729
6730 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6731 errors when reading the `stop_pc'.
6732 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6733 get_frame_pc.
6734
da5d4055
PM
67352011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6736
6737 * NEWS: Document gdb.Write stream keyword.
6738
29e0eb9c
JK
67392011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6740
6741 Revert:
6742 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6743 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6744 (dwarf2_add_field): Fix new_field->accessibility for
6745 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6746
05775840
PM
67472011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6748
f33edef8 6749 PR python/12183
05775840
PM
6750
6751 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6752 other error classes. Do not print stack trace.
6753
a0cb7835
JK
67542011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6755
6756 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6757 (dwarf2_add_field): Fix new_field->accessibility for
6758 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6759
d19f7eee
UW
67602011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6761
6762 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6763 encountering a load via a non-SP register.
6764
4a2fbb50
UW
67652011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6766
6767 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6768 field in returned unwinder.
6769
3489610d
JB
67702012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6771
6772 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6773
8c1a34e7
JB
67742012-03-21 Joel Brobecker <brobecker@adacore.com>
6775
6776 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6777 of xmalloc.
6778
8fbca658
PA
67792012-03-18 Pedro Alves <pedro@codesourcery.com>
6780
6781 * frame.c (frame_unwind_register): Throw an error if unwinding the
6782 register failed.
6783 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6784 an unwind stop reason.
6785 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6786 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6787 UNWIND_UNAVAILABLE>: New.
6788 * inline-frame.c (inline_frame_unwind): Install
6789 default_frame_unwind_stop_reason.
6790 * frame-unwind.c: Include "exceptions.h".
6791 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6792 (default_frame_unwind_stop_reason): New.
6793 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6794 (default_frame_unwind_stop_reason): Declare.
6795 (struct frame_unwind) <stop_reason>: New function pointer.
6796
6797 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6798 * dwarf2-frame.c: Include exceptions.h.
6799 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6800 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6801 computing the CFA. If such an error was thrown, set
6802 unavailable_retaddr.
6803 (dwarf2_frame_unwind_stop_reason): New.
6804 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6805 unavailable.
6806 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6807 (dwarf2_signal_frame_unwind): Ditto.
6808
6809 * amd64-tdep.c: Include "exceptions.h".
6810 (struct amd64_frame_cache): New field "base_p".
6811 (amd64_init_frame_cache): Clear it.
6812 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6813 Avoid reading registers with functions that throw if the register
6814 is not necessary to compute the frame base.
6815 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6816 swallowing NOT_AVAILABLE_ERROR.
6817 (amd64_frame_unwind_stop_reason): New.
6818 (amd64_frame_this_id): Don't build a frame id if the frame base
6819 was unavailable.
6820 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6821 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6822 base_p if the frame base was computable.
6823 (amd64_sigtramp_frame_unwind_stop_reason): New.
6824 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6825 frame base was unavailable.
6826 (amd64_sigtramp_frame_unwind): Install
6827 amd64_sigtramp_frame_unwind_stop_reason.
6828 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6829 base_p if the frame base was computable.
6830 (amd64_epilogue_frame_unwind_stop_reason): New.
6831 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6832 frame base was unavailable.
6833 (amd64_epilogue_frame_unwind): Install
6834 amd64_epilogue_frame_unwind_stop_reason.
6835 * i386-tdep.c: Include "exceptions.h".
6836 (struct i386_frame_cache): New field "base_p".
6837 (i386_init_frame_cache): Clear it.
6838 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6839 Avoid reading registers with functions that throw if the register
6840 is not necessary to compute the frame base.
6841 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6842 swallowing NOT_AVAILABLE_ERROR.
6843 (i386_frame_unwind_stop_reason): New.
6844 (i386_frame_this_id): Don't build a frame id if the frame base was
6845 unavailable.
6846 (i386_frame_prev_register): Handle unavailable SP.
6847 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6848 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6849 base_p if the frame base was computable.
6850 (i386_epilogue_frame_unwind_stop_reason): New.
6851 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6852 base was unavailable.
6853 (i386_epilogue_frame_unwind): Install
6854 i386_epilogue_frame_unwind_stop_reason.
6855 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6856 base_p if the frame base was computable.
6857 (i386_sigtramp_frame_unwind_stop_reason): New.
6858 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6859 base was unavailable.
6860 (i386_sigtramp_frame_unwind): Install
6861 i386_sigtramp_frame_unwind_stop_reason.
6862 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6863 type's size, not the register's.
6864 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6865
6866 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6867 default_frame_unwind_stop_reason.
6868 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6869 (alpha_heuristic_frame_unwind): Ditto.
6870 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6871 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6872 * avr-tdep.c (avr_frame_unwind): Ditto.
6873 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6874 Ditto.
6875 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6876 * frv-tdep.c (frv_frame_unwind): Ditto.
6877 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6878 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6879 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6880 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6881 (hppa_stub_frame_unwind): Ditto.
6882 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6883 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6884 (ia64_libunwind_frame_unwind)
6885 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6886 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6887 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6888 * m32c-tdep.c (m32c_unwind): Ditto.
6889 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6890 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6891 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6892 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6893 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6894 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6895 * mep-tdep.c (mep_frame_unwind): Ditto.
6896 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6897 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6898 (mips_stub_frame_unwind): Ditto.
6899 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6900 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6901 * mt-tdep.c (mt_frame_unwind): Ditto.
6902 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6903 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6904 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6905 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6906 (s390_sigtramp_frame_unwind): Ditto.
6907 * score-tdep.c (score_prologue_unwind): Ditto.
6908 * sh-tdep.c (sh_frame_unwind): Ditto.
6909 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6910 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6911 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6912 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6913 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6914 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6915 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6916 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6917 (sparc64obsd_trapframe_unwind): Ditto.
6918 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6919 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6920 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6921 * v850-tdep.c (v850_frame_unwind): Ditto.
6922 * vax-tdep.c (vax_frame_unwind): Ditto.
6923 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6924 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6925 * xtensa-tdep.c (xtensa_unwind): Ditto.
6926
f23d1b92
PA
69272011-03-18 Pedro Alves <pedro@codesourcery.com>
6928
6929 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6930 there's always a frame. Use get_frame_pc_if_available instead of
6931 get_frame_pc, and if there's no PC available, don't look up a
6932 symtab.
6933
1d4f5741
PA
69342011-03-18 Pedro Alves <pedro@codesourcery.com>
6935
6936 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6937 unavailable PC.
6938
dba09041
PA
69392011-03-18 Pedro Alves <pedro@codesourcery.com>
6940
6941 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6942 gracefully.
6943
9a26e44c
PA
69442011-03-18 Pedro Alves <pedro@codesourcery.com>
6945
6946 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6947 * frame.c (frame_unwind_caller_pc_if_available): New.
6948 * stack.c (frame_info): Handle unavailable PC.
6949
69502011-03-18 Pedro Alves <pedro@codesourcery.com>
6951
6952 * frame.c (frame_unwind_pc): Rename to ...
6953 (frame_unwind_pc_if_available): ... this. New `pc' output
6954 parameter. Change return type to int. Gracefully handle
6955 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6956 happened, or 1 otherwise.
6957 (frame_unwind_pc): Reimplement on top of
6958 frame_unwind_pc_if_available.
6959 (get_frame_func): Rename to ...
6960 (get_frame_func_if_available): New `pc' output parameter. Change
6961 return type to int. Gracefully handle the PC not being available.
6962 (get_frame_func): Reimplement on top of
6963 get_frame_func_if_available.
6964 (select_frame): Handle the PC being unavailable.
6965 (get_prev_frame): Handle the PC being unavailable.
6966 (get_frame_pc_if_available): New.
6967 (get_frame_address_in_block_if_available): New.
6968 (find_frame_sal): Handle the frame PC not being available.
6969 * frame.h (get_frame_pc_if_available): Declare.
6970 (get_frame_address_in_block_if_available): Declare.
6971 (get_frame_func_if_available): Declare.
6972 * stack.c (print_frame_info): Handle the PC being unavailable.
6973 (find_frame_funname): Ditto.
6974 (print_frame): Handle the PC being unavailable.
6975 (get_frame_language): Ditto.
6976 * blockframe.c (get_frame_block): Ditto.
6977 * macroscope.c (default_macro_scope): Ditto.
6978 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6979
69802011-03-18 Pedro Alves <pedro@codesourcery.com>
6981
6982 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6983 NOT_AVAILABLE_ERROR when evaluating the location expression.
6984
69852011-03-18 Pedro Alves <pedro@codesourcery.com>
6986
6987 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6988 returning that the register piece is unavailable/optimized out.
6989 (write_pieced_value): Handle get_frame_register_bytes returning
6990 that the register piece is unavailable/optimized out when doing a
6991 read-modify write of a bitfield.
6992 * findvar.c (value_from_register): Handle get_frame_register_bytes
6993 returning that the register piece is unavailable/optimized out.
6994 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6995 and `unavailablep'. Throw error on bad debug info. Use
6996 frame_register instead of frame_register_read, to fill in the new
6997 arguments.
6998 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6999 and `unavailablep'.
7000 * valops.c: (value_assign): Adjust, and handle
7001 get_frame_register_bytes failing.
7002 * spu-tdep.c: Include exceptions.h.
7003 (spu_software_single_step): Adjust, and handle
7004 get_frame_register_bytes failing.
7005 (spu_get_longjmp_target): Ditto.
7006 * gdbarch.sh (register_to_value): Change to return int. New
7007 parameters `optimizedp' and `unavailablep'.
7008 * gdbarch.h, gdbarch.c: Regenerate.
7009 * i386-tdep.c (i386_register_to_value): Adjust to new
7010 gdbarch_register_to_value interface.
7011 * i387-tdep.c (i387_register_to_value): Ditto.
7012 * i387-tdep.h (i387_register_to_value): Ditto.
7013 * alpha-tdep.c (alpha_register_to_value): Ditto.
7014 * ia64-tdep.c (ia64_register_to_value): Ditto.
7015 * m68k-tdep.c (m68k_register_to_value): Ditto.
7016 * mips-tdep.c (mips_register_to_value): Ditto.
7017 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7018
0fdb4f18
PA
70192011-03-18 Pedro Alves <pedro@codesourcery.com>
7020
7021 * findvar.c (value_of_register): Mark the value as unavailable, if
7022 the register is unavailable.
7023 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7024 (frame_register): New `unavailablep' parameter.
7025 (frame_register_read): Update comment.
7026 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7027 Set it if the register is unavailable. If the register is
7028 unavailable, clear the output buffer.
7029 (frame_register): New `unavailablep' parameter. Pass it down.
7030 (frame_unwind_register): Adjust.
7031 (put_frame_register): Adjust.
7032 (frame_register_read): Adjust. Also return false if the register
7033 is not available.
7034 (frame_register_unwind_location): Adjust.
7035 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7036 is unavailable, mark the value accordingly.
7037 * stack.c (frame_info): Handle unavailable registers.
7038
e69aa73e
PA
70392011-03-18 Pedro Alves <pedro@codesourcery.com>
7040
7041 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7042 simplify, using regcache_cooked_read.
7043
05d1431c
PA
70442011-03-18 Pedro Alves <pedro@codesourcery.com>
7045
7046 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7047 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7048 (regcache_raw_read_unsigned, regcache_raw_read_part)
7049 (regcache_cooked_read, regcache_cooked_read_signed)
7050 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7051 (regcache_cooked_read_ftype): Change return to enum
7052 register_status.
7053 * regcache.c: Include exceptions.h
7054 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7055 (do_cooked_read): Change return to enum register_status. Always
7056 forward to regcache_cooked_read.
7057 (regcache_raw_read): Change return to enum register_status. If
7058 the register is not REG_VALID, memset the buffer. Return the
7059 register's status.
7060 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7061 return the register's status.
7062 (regcache_raw_read_unsigned): Ditto.
7063 (regcache_cooked_read): Change return to enum register_status.
7064 Assert that with read-only regcaches, the register's status must
7065 be known. If the regcache is read-only, and the register is not
7066 REG_VALID, memset the buffer. Return the register's status.
7067 (regcache_cooked_read_signed): Change return to enum
7068 register_status. Handle non-REG_VALID registers and return the
7069 register's status.
7070 (regcache_cooked_read_unsigned): Change return to enum
7071 register_status. Handle non-REG_VALID registers and return the
7072 register's status.
7073 (regcache_xfer_part, regcache_raw_read_part)
7074 (regcache_cooked_read_part): Change return to enum
7075 register_status. Return the register's status.
7076 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7077 unavailable.
7078 (regcache_dump): Handle unavailable cooked registers.
7079 * frame.c (do_frame_register_read): Adjust interface to match
7080 regcache_cooked_read_ftype.
7081 * gdbarch.sh (pseudo_register_read): Change return to enum
7082 register_status.
7083 * gdbarch.h, gdbarch.c: Regenerate.
7084
7085 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7086 register_status.
7087 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7088 register_status. If reading a raw register indicates the raw
7089 register is not valid, return the raw register's status,
7090 otherwise, return REG_VALID.
7091 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7092 register_status. Handle non-REG_VALID raw registers and return
7093 the register's status.
7094 * arm-tdep.c (arm_neon_quad_read)
7095 (arm_pseudo_read): Change return to enum register_status. Handle
7096 non-REG_VALID raw registers and return the register's status.
7097 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7098 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7099 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7100 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7101 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7102 register_status.
7103 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7104 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7105 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7106 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7107 (m32c_pseudo_register_read): Change return to enum
7108 register_status. Adjust.
7109 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7110 enum register_status. Return the register's status.
7111 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7112 register_status. Return the register's status.
7113 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7114 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7115 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7116 * rs6000-tdep.c (move_ev_register_func): New typedef.
7117 (e500_move_ev_register): Use it. Change return to enum
7118 register_status. Return the register's status.
7119 (do_regcache_raw_read): New function.
7120 (do_regcache_raw_write): New function.
7121 (e500_pseudo_register_read): Change return to enum
7122 register_status. Return the register's status. Use
7123 do_regcache_raw_read.
7124 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7125 (dfp_pseudo_register_read): Change return to enum register_status.
7126 Return the register's status.
7127 (vsx_pseudo_register_read): Ditto.
7128 (efpr_pseudo_register_read): Ditto.
7129 (rs6000_pseudo_register_read): Ditto.
7130 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7131 register_status. Return the register's status.
7132 * sh64-tdep.c (pseudo_register_read_portions): New function.
7133 (sh64_pseudo_register_read): Change return to enum
7134 register_status. Use pseudo_register_read_portions. Return the
7135 register's status.
7136 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7137 register_status. Return the register's status.
7138 * sh-tdep.c (pseudo_register_read_portions): New function.
7139 (sh_pseudo_register_read): Change return to enum register_status.
7140 Use pseudo_register_read_portions. Return the register's status.
7141 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7142 enum register_status. Return the register's status.
7143 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7144 * spu-tdep.c (spu_pseudo_register_read_spu)
7145 (spu_pseudo_register_read): Ditto.
7146 * xtensa-tdep.c (xtensa_register_read_masked)
7147 (xtensa_pseudo_register_read): Ditto.
7148 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7149
e10abd8f
PM
71502011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7151
7152 * python/py-value.c (valpy_getitem): Fix formatting of error function
7153 call.
7154
7ea6d463
PM
71552011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7156
7157 ARI fixes: Add missing internationalization markups throughout
7158 C source files.
7159 * darwin-nat-info.c: Ditto.
7160 * record.c: Ditto.
7161 * remote.c: Ditto.
7162 * mi/mi-main.c: Ditto.
7163
001083c6
PM
71642011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7165
7166 ARI fixes: Add missing internationalization markups throughout
7167 yacc files.
7168 * c-exp.y: Ditto.
7169 * cp-name-parser.y: Ditto.
7170 * f-exp.y: Ditto.
7171 * m2-exp.y: Ditto.
7172 * objc-exp.y: Ditto.
7173 * p-exp.y: Ditto.
7174
4f1cdeec
PM
71752011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7176
7177 ARI fixes: Messages should have no trailing new lines.
7178 * darwin-nat.c (mach_check_error): Remove trailing new line from
7179 warning function call message.
7180 * record.c (bfdcore_read): Idem for error call.
7181
28e698f1
PM
71822011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7183
7184 * common/signals.c (target_signal_from_host): Add _ markup to error
7185 function call message.
7186 (target_signal_to_host): Add _ markup and remove trailing new line
7187 from warning call message.
7188 (target_signal_from_command): Add _ markup to error function call
7189 message.
7190
99c3dc11
PM
71912011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7192
f33edef8 7193 PR python/12149
99c3dc11
PM
7194
7195 * python/python.c (gdbpy_write): Accept a stream argument and
7196 operate to the appropriate stream.
7197 (gdbpy_flush): Likewise.
7198 (_initialize_python): Add stream constants.
7199 (finish_python_initialization): Add GdbOutputErrorFile class.
7200
c20800be
KY
72012011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7202
7203 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7204
f4a1794a
KY
72052011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7206
7207 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7208 to store_signed_integer. Add debug message when relocating CALL
7209 instructions. Fix formatting of debug message.
7210 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7211
d4862372
JB
72122011-03-17 Joel Brobecker <brobecker@gnat.com>
7213
7214 * target.h (struct target_ops): Remove to_lookup_symbol field.
7215 (target_lookup_symbol): Delete macro.
7216 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7217 (update_current_target, setup_target_debug): Remove handling
7218 of to_lookup_symbol target_ops field.
7219 * ada-tasks.c (get_known_tasks_addr): Remove use of
7220 target_lookup_symbol.
7221 * coffread.c (coff_symtab_read): Likewise.
7222 * dbxread.c (read_dbx_symtab): Ditto.
7223
d645e32e
JB
72242011-03-17 Joel Brobecker <brobecker@gnat.com>
7225
7226 PR gdb/12116:
7227 * configure.ac: Add getthrds declaration check.
7228 * configure, config.in: Regenerate.
7229 * aix-thread.c (getthrds): Declare only if not already declared
7230 in procinfo.h. More declaration out of get_signaled_thread to
7231 global scope.
7232
29703da4
PM
72332011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7234
7235 * python/py-symtab.c: Populate symtab_object_methods,
7236 sal_object_methods.
7237 (stpy_is_valid): New function.
7238 (salpy_is_valid): Ditto.
7239 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7240 (sympy_is_valid): New function.
7241 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7242 (objfpy_is_valid): New function.
7243 * python/py-inferior.c: Populate inferior_object_methods.
7244 (infpy_is_valid): New function.
7245 * python/py-infthread.c: Populate thread_object_methods.
7246 (thpy_is_valid): New function.
7247 * python/py-block.c: Declare block_object_methods. Populate. Declare
7248 block_iterator_object_methods. Populate.
7249 (blpy_is_valid): New function.
7250 (blpy_iter_is_valid): Ditto.
7251
c00f8484
KS
72522011-03-16 Keith Seitz <keiths@redhat.com>
7253
7254 * linespec.c (find_methods): Canonicalize NAME before looking
7255 up the symbol.
7256 (name_end): New function.
7257 (keep_name_info): New function.
7258 (decode_line_1): Use keep_name_info.
7259 (decode_compound): Likewise.
7260 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7261 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7262
7263 PR c++/12273
7264 * linespec.c (locate_first_half): Keep overload information, too.
7265 (decode_compound): Use a string to represent break characters
7266 to escape the loop.
7267 If P points to a break character, do not increment it.
7268 For C++ and Java, keep overload information and relevant keywords.
7269 If we cannot find a symbol, search the minimal symbols.
7270
7271 PR c++/11734
7272 * linespec.c (decode_compound): Rename SAVED_ARG to
7273 THE_REAL_SAVED_ARG.
7274 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7275 single-quotes.
7276 Pass a valid block to lookup_symbol.
7277 (lookup_prefix_sym): Likewise.
7278 (find_method): Construct search name based on SYM_CLASS instead
7279 of SAVED_ARG.
7280 * psymtab.c (lookup_partial_symbol): Add language parameter.
7281 (lookup_symbol_aux_psymtabs): Likewise.
7282 Don't assume that the psymtab we found was the right one. Search
7283 for the desired symbol in the symtab to be certain.
7284 (psymtab_search_name): New function.
7285 (lookup_partial_symbol): Use psymtab_search_name.
7286 Add language parameter.
7287 (read_symtabs_for_function): Add language parameter and pass to
7288 lookup_partial_symbol.
7289 (find_symbol_file_from_partial): Likewise.
7290
c91513d8
PP
72912011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7292
7293 PR gdb/12528
7294 * dwarf2read.c (noop_record_line): New function.
7295 (dwarf_decode_lines): Ignore line tables for GCd functions.
7296
b37520b6
PM
72972011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7298
7299 Fix ARI warnings about new lines at the end of messages, which
7300 are unneeded as there is a new line added at the end of the message
7301 automatically.
7302 * darwin-nat.c (darwin_stop_inferior): Ditto.
7303 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7304 * dfp.c (decimal_to_number): Ditto.
7305 * exec.c (print_section_info): Ditto.
7306 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7307 * osdata.c (get_osdata): Ditto.
7308 * record.c (bfdcore_write): Ditto.
7309 * remote-mips.c (mips_readchar): Ditto.
7310 * remote.c (read_ptid): Ditto.
7311 * ser-mingw.c (ser_windows_raw): Ditto.
7312 * tracepoint.c (add_local_symbols): Ditto.
7313 * windows-nat.c (fake_create_process): Ditto.
7314
b08ee6a2
TT
73152011-03-16 Tom Tromey <tromey@redhat.com>
7316
7317 * tracepoint.c (stop_tracing): Don't declare.
7318 * event-top.c (after_char_processing_hook): Add `(void)'.
7319
9a6f1302
PM
73202011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7321
7322 * NEWS: Add Parameter sub-classing description.
7323
7ceb86b1
KT
73242011-03-16 Kai Tietz <ktietz@redhat.com>
7325
7326 * MAINTAINERS: Update my e-mail address.
7327
efeff6cf
AT
73282011-03-15 Andreas Tobler <andreast@fgznet.ch>
7329
7330 * MAINTAINERS: Add myself for write after approval privileges.
7331
681c238c
MS
73322011-03-15 Michael Snyder <msnyder@vmware.com>
7333
f3df5b08
MS
7334 * frame.c (find_frame_sal): Assert sym is not null.
7335
13f6513c
MS
7336 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7337
50412521
MS
7338 * objc-lang.c (selectors_info): Check strchr for null result.
7339
681c238c
MS
7340 * stabsread.c (define_symbol): Guard against bad stabstring input.
7341
6ced1581
PM
73422011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7343
7344 Remove trailing spaces and tabulations from pascal language
7345 support sources.
7346 p-exp.y: Ditto.
7347 p-lang.c: Ditto.
7348 p-lang.h: Ditto.
7349 p-valprint.c: Ditto.
7350
9373cf26
JK
73512011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7352
7353 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7354 than LOW. Comment it.
7355 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7356 HIGHPC not strictly higher than LOWPC.
7357
9a1edae6
PM
73582011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7359
7360 Fix formatting of function declarations returning a pointer in
7361 previous commit.
7362 * varobj.c (varobj_add_child): Ditto.
7363 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7364 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7365
24e9cda0
UW
73662011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7367
7368 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7369 for the "generic" vector ABI used with GCC 4.3 and later.
7370 (ppc64_sysv_abi_return_value): Likewise.
7371
73722011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7373
7374 * infcall.c (call_function_by_hand): Function return value is
7375 always a non_lval, even when using struct_return.
7376
c9174737
PA
73772011-03-15 Pedro Alves <pedro@codesourcery.com>
7378
7379 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7380 (map_display_numbers): New.
7381 (do_delete_display): New.
7382 (undisplay_command): Use map_display_numbers.
7383 (do_enable_disable_display): New.
7384 (enable_disable_display_command): New function.
7385 (enable_display): Delete.
7386 (enable_display_command): New.
7387 (disable_display_command): Reimplement.
7388 (_initialize_printcmd): Adjust "enable display" command to use
7389 `enable_display_command' as callback.
7390
350c6c65
PM
73912011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7392
7393 * NEWS: Add Python breakpoint 'stop' operation.
7394
824446ad
PM
73952011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7396
7397 * NEWS: Delete duplicate entry. Fix typo.
7398
2021ad3a
PM
73992011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7400
7401 Fix ARI warning about function names in first column.
7402 Put prototype declaration on same line as return type.
7403 * objc-exp.y: Ditto.
7404 * p-exp.y: Ditto.
7405 * python/py-stopevent.h: Ditto.
7406 For long function names, split parameters to
7407 allow function name on same line as return type.
7408 * solib-pa64.c: Ditto.
7409 * varobj.c: Ditto.
7410 * varobj.h: Ditto.
7411 For long function declaration, use single line.
7412 * hppa-tdep.h: Ditto.
7413 * inferior.h: Ditto.
7414
7371cf6d
PM
74152011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7416
7417 * python/python.h: Declare gdbpy_should_stop and
7418 gdbpy_breakpoint_has_py_cond.
7419 * python/python.c: Add python.h to includes. Remove python.h from
7420 HAVE_PYTHON definition
7421 (gdbpy_should_stop): New dummy function.
7422 (gdbpy_breakpoint_has_py_cond): New dummy function.
7423 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7424 sub-classing capabilities.
7425 (gdbpy_should_stop): New function.
7426 (gdbpy_breakpoint_has_py_cond): New function.
7427 (local_setattro): New function.
7428 * breakpoint.c (condition_command): Add check for Python 'stop'
7429 operation.
7430 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7431 operation function as part of stop/continue tests.
7432
37b50a69
TT
74332011-03-14 Tom Tromey <tromey@redhat.com>
7434
7435 PR gdb/12576:
7436 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7437 (needs_frame_dwarf_call): Likewise.
7438
eeae04df
PM
74392011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7440
7441 Fix ARI warning about functions without parameters that do not
7442 use (void).
7443 * breakpoint.c (all_tracepoints): Replace () by (void).
7444 * f-exp.y (match_string_literal): Ditto.
7445 (yylex): Ditto.
7446 * m2-exp.y (yylex): Ditto.
7447 * mep-tdep.c (current_me_module): Ditto.
7448 (current_options): Ditto.
7449 (current_cop_data_bus_width): Ditto.
7450 (current_cr_names): Ditto.
7451 (current_cr_is_float): Ditto.
7452 (current_ccr_names): Ditto.
7453 * objc-exp.y (yylex): Ditto.
7454 * p-exp.y (yylex): Ditto.
7455 * remote.c (send_interrupt_sequence): Ditto.
7456 * tracepoint.c (current_trace_status): Ditto.
7457 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7458 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7459
6dc3565d
MS
74602011-03-11 Michael Snyder <msnyder@vmware.com>
7461
1427fe5e
MS
7462 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7463 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7464 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7465 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7466 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7467
60bc018f
MS
7468 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7469 (delete_async_event_handler): Ditto.
7470
f3be5b64
MS
7471 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7472
4c2d5724
MS
7473 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7474
6dc3565d
MS
7475 * top.c (set_verbose): Assert showcmd was found.
7476
4e6ca6d5
MG
74772011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7478
7479 * xtensa-tdep.c (warning_once): Correct style issues.
7480
815a83e4
YQ
74812011-03-11 Yao Qi <yao@codesourcery.com>
7482
7483 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7484
f2eb0bc8
AS
74852011-03-11 Andreas Schwab <schwab@redhat.com>
7486
7487 * common/aclocal.m4: Remove.
7488
b801de47
MG
74892011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7490
7491 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7492 (xtensa_write_register, xtensa_read_register): Likewise.
7493 (xtensa_hextochar): Removed.
7494 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7495
dbab50de
MG
74962011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7497
7498 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7499 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7500 (xtensa_alloc_frame_cache): Add initialization for new fields.
7501 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7502 (warning_once): New function.
7503 (xtensa_insn_kind): New item c0opc_and.
7504 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7505 (call0_track_op): Change arguments. New local variable litbase.
7506 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7507 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7508 in the prologue.
dbab50de 7509 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7510 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7511 Add the variety of updates to handle extended prologues, which now can
7512 conduct dynamic stack adjustments.
7513 (call0_frame_cache): Likewise.
7514 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7515 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7516
b2c04452
MS
75172011-03-10 Michael Snyder <msnyder@vmware.com>
7518
f8f67713
MS
7519 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7520 (cmd_qtframe): Ditto.
7521 (cmd_qtbuffer): Ditto.
7522 (cmd_bigqtbuffer): Ditto.
7523
197f0a60
TT
75242011-03-10 Tom Tromey <tromey@redhat.com>
7525
7526 * tracepoint.c (trace_actions_command): Update.
7527 * thread.c (thread_apply_command): Update.
7528 * reverse.c (delete_bookmark_command): Update.
7529 (bookmarks_info): Update.
7530 * printcmd.c (undisplay_command): Update.
7531 * memattr.c (mem_enable_command): Update.
7532 (mem_disable_command): Update.
7533 (mem_delete_command): Update.
7534 * inferior.c (detach_inferior_command): Update.
7535 (kill_inferior_command): Update.
7536 (remove_inferior_command): Update.
7537 * cli/cli-utils.h (struct get_number_or_range_state): New.
7538 (init_number_or_range): Declare.
7539 (get_number_or_range): Update.
7540 * cli/cli-utils.c (init_number_or_range): New function.
7541 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7542 static variables.
7543 (number_is_in_list): Update.
7544 * breakpoint.h (get_tracepoint_by_number): Update.
7545 * breakpoint.c (map_breakpoint_numbers): Update for change to
7546 get_number_or_range.
7547 (find_location_by_number): Use get_number, not
7548 get_number_or_range.
7549 (trace_pass_set_count): New function.
7550 (trace_pass_command): Update for change to get_number_or_range.
7551 Rework loop logic.
7552 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7553 'state' parameter.
7554
ecec24e6
PM
75552011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7556
7557 * python/py-param.c (add_setshow_generic): Add set/show callback
7558 parameters. Register Python object context.
7559 (get_show_value): New function.
7560 (get_set_value): New function.
7561 (call_doc_function): New function.
7562 (get_doc_string): Move behind get_show_value/get_set_value.
7563
6d6c6b1f
JK
75642011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7565
7566 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7567
68d6df83
MG
75682011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7569
dbab50de 7570 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7571 (xtensa_write_register): Likewise.
7572 (xtensa_hextochar): Add comment and update to match coding conventions.
7573 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7574 (execute_l32e, execute_s32e, execute_code): Update comments.
7575 (xtensa_exception_handler_t): Update to match coding conventions.
7576 (xtensa_insn_kind): Likewise.
7577
85c9d6a6
MS
75782011-03-09 Michael Snyder <msnyder@vmware.com>
7579
7580 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7581
91495617
PA
75822011-03-09 Pedro Alves <pedro@codesourcery.com>
7583
7584 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7585
eb8c0621
TT
75862011-03-09 Tom Tromey <tromey@redhat.com>
7587
7588 * thread.c (restore_selected_frame): Handle frame_level == -1.
7589 (make_cleanup_restore_current_thread): Use
7590 get_selected_frame_if_set.
7591 * frame.h (get_selected_frame_if_set): Declare.
7592 * frame.c (get_selected_frame_if_set): New function.
7593
9f37bbcc
PA
75942011-03-09 Pedro Alves <pedro@codesourcery.com>
7595
7596 * cli/cli-cmds.c (shell_escape): Use lbasename.
7597 * coffread.c (coff_start_symtab): Constify parameter.
7598 (complete_symtab): Constify `name' parameter.
7599 (coff_symtab_read): Constify `filestring' local.
7600 (coff_getfilename): Constify return and `result' local.
7601 Use lbasename.
7602 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7603 * linux-fork.c (info_checkpoints_command): Use lbasename.
7604 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7605 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7606 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7607 * procfs.c (procfs_make_note_section): Use lbasename.
7608 * tui/tui-io.c (printable_part): Constity return and parameter.
7609 Use lbasename.
7610 (print_filename): Constify parameters, and local `s'.
7611 (tui_rl_display_match_list): Constify local `temp'.
7612
f8de3c55
JK
76132011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7614
7615 Revert:
7616 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7617 Fix DWARF-3+ DW_AT_accessibility default assumption.
7618 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7619 cu->header.version >= 3.
7620
d9837b00
YQ
76212011-03-09 Yao Qi <yao@codesourcery.com>
7622
7623 * common/Makefile.in: Remove.
7624 * common/configure: Remove.
7625 * common/configure.ac: Remove.
7626
e637a4f5
YQ
76272011-03-09 Yao Qi <yao@codesourcery.com>
7628
7629 Revert:
7630 2011-02-11 Yao Qi <yao@codesourcery.com>
7631
7632 * common/Makefile.in: Add copyright header.
7633
7634 2011-02-11 Yao Qi <yao@codesourcery.com>
7635
7636 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7637 libcommon.a.
7638 * configure.ac: Add common to sub dir.
7639 * configure: Regenerate.
7640
f976a05d
MG
76412011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7642
7643 * xtensa-tdep.c (call0_ret): New function.
7644 (xtensa_skip_prologue): Speed up analysis.
7645
57041825
MG
76462011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7647
7648 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7649 while executing MI command -data-list-changed-registers.
7650
08b9c608
MG
76512011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7652
7653 * xtensa-tdep.c (xtensa_read_register): New function.
7654 (xtensa_write_register): New function.
7655 (xtensa_find_register_by_name): New function.
7656 (xtensa_windowed_frame_cache): Update comments in type description.
7657 (xtensa_frame_cache): Likewise.
7658 (xtensa_window_interrupt_insn): New function.
7659 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7660 (xtensa_insn_kind): Add new instructions.
7661 (rwx_special_register): New function.
7662 (call0_classify_opcode): Add new instructions to the analysis.
7663 (a0_saved, a7_saved, a11_saved): New variables.
7664 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7665 (execute_l32e): New function.
7666 (execute_s32e): New function.
7667 (xtensa_exception_handler_t): New type.
7668 (execute_code): New function.
7669 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7670 analysis for Xtensa Window Exception handlers.
7671
4d1acb11
MG
76722011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7673
98689b25
MG
7674 * xtensa-tdep.c (TX_PS): New.
7675 (windowing_enabled): Update to count for Call0 ABI.
7676 (xtensa_hextochar): New.
7677 (xtensa_init_reggroups): Make algorithm generic.
7678 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7679
76802011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7681
7682 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7683
d3f323f3
MS
76842011-03-08 Michael Snyder <msnyder@vmware.com>
7685
3dcabaa8
MS
7686 * i386-tdep.c (i386_follow_jump): Check return value of
7687 target_read_memory.
7688 (i386_analyze_struct_return): Ditto.
7689 (i386_skip_probe): Ditto.
7690 (i386_match_insn): Ditto.
7691 (i386_skip_noop): Ditto.
7692 (i386_analyze_frame_setup): Ditto.
7693 (i386_analyze_register_saves): Ditto.
7694 (i386_skip_prologue): Ditto.
7695 (i386_skip_main_prologue): Ditto.
7696
13b3fd9b
MS
7697 * target.c (read_whatever_is_readable): Fix memory leak.
7698
d3f323f3
MS
7699 * i386-tdep.c (i386_process_record): Document fall through.
7700
421d5c74
JK
77012011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 Fix DWARF-3+ DW_AT_accessibility default assumption.
7704 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7705 cu->header.version >= 3.
7706
63154eca
PA
77072011-03-08 Pedro Alves <pedro@codesourcery.com>
7708
7709 * remote.c (remote_check_symbols): Skip if the target has no
7710 execution.
7711
f1a507a1
JB
77122011-03-08 Joel Brobecker <brobecker@adacore.com>
7713
7714 * target.c (read_whatever_is_readable): Reformat comment,
7715 with a minor typo fix. Minor reformatting of the code.
7716
36073a92
YQ
77172011-03-08 Yao Qi <yao@codesourcery.com>
7718
7719 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7720 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7721 Use cached result instead of calling displaced_in_arm_mode again.
7722 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7723 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7724 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7725 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7726 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7727 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7728 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7729 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7730 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7731 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7732 (arm_catch_kernel_helper_return): Likewise.
7733 * gdb/arm-tdep.h : Update function declarations.
7734
d3f323f3 77352011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 7736
e0e40094
MS
7737 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7738
0b2381f5
MS
7739 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7740
0350914a
MS
7741 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7742
69feea6f
MS
7743 * elfread.c (elf_symtab_read): Stop memory leak.
7744
e6040cbd
MS
7745 * main.c (captured_main): Fix memory leak.
7746
052874e8
AS
77472011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7748
7749 * ada-lang.c (compare_names): Call is_name_suffix with string1
7750 instead of string2.
7751
b11896a5
TT
77522011-03-07 Tom Tromey <tromey@redhat.com>
7753
7754 * xcoffread.c (xcoff_sym_fns): Update.
7755 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7756 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7757 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7758 (symbol_file_add_with_addrs_or_offsets): Likewise.
7759 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7760 * somread.c (som_sym_fns): Update.
7761 * psymtab.h (require_partial_symbols): Declare.
7762 * psymtab.c (require_partial_symbols): New function.
7763 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7764 (ALL_OBJFILE_PSYMTABS): Undef.
7765 (ALL_PSYMTABS): Move from psympriv.h.
7766 (lookup_partial_symtab, find_pc_sect_psymtab)
7767 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7768 (find_last_source_symtab_from_partial)
7769 (forget_cached_source_info_partial)
7770 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7771 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7772 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7773 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7774 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7775 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7776 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7777 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7778 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7779 psymtabs.
7780 * mipsread.c (ecoff_sym_fns): Update.
7781 * machoread.c (macho_sym_fns): Update.
7782 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7783 (read_psyms): New function.
7784 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7785 (elf_sym_fns_lazy_psyms): New global.
7786 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7787 dwarf2_build_psymtabs.
7788 * dbxread.c (aout_sym_fns): Update.
7789 * coffread.c (coff_sym_fns): Update.
7790
fda326dd
TT
77912011-03-07 Tom Tromey <tromey@redhat.com>
7792
7793 * infrun.c (print_exited_reason): Include inferior id and pid in
7794 message.
7795
aeaec162
TT
77962011-03-07 Tom Tromey <tromey@redhat.com>
7797
7798 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7799 parameter.
7800 (target_has_execution_1): Update.
7801 (target_has_execution_current): Declare.
7802 (target_has_execution): Call target_has_execution_current.
7803 (default_child_has_execution): Update.
7804 * target.c (default_child_has_execution): Add 'the_ptid'
7805 parameter.
7806 (target_has_execution_1): Likewise.
7807 (target_has_execution_current): New function.
7808 (add_target): Update.
7809 (init_dummy_target): Update.
7810 * remote-m32r-sdi.c (m32r_has_execution): New function.
7811 (init_m32r_ops): Use it.
7812 * record.c (record_core_has_execution): Now static. Add
7813 'the_ptid' parameter.
7814 * inferior.c (have_live_inferiors): Don't save current thread.
7815 Use target_has_execution_1.
7816
08e14083
YQ
78172011-03-07 Yao Qi <yao@codesourcery.com>
7818
7819 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7820
c05d19c5
JB
78212011-03-07 Joel Brobecker <brobecker@adacore.com>
7822
7823 * elfread.c (elf_symtab_read): Minor reformatting.
7824
3e6ef9e4
JB
78252011-03-07 Joel Brobecker <brobecker@adacore.com>
7826
7827 * objc-lang.c (selectors_info): Minor reformatting.
7828
dbb8534f
JB
78292011-03-07 Joel Brobecker <brobecker@adacore.com>
7830
7831 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7832
dd70cc93
JB
78332011-03-07 Joel Brobecker <brobecker@adacore.com>
7834 Michael Snyder <msnyder@vmware.com>
7835
7836 * ada-valprint.c (ada_val_print_array): Move the declaration of
7837 "byte_order" and "elttype" inside the block where these variables
7838 are actually used. Remove some special handling for the case
7839 where "elttype" and "eltlen" are null. Replace by a comment
7840 and a couple of assertion checks.
7841
b27cf2b3
MS
78422011-03-05 Michael Snyder <msnyder@vmware.com>
7843
7844 * source.c (add_path): Replace semicolon at end of block.
7845 * dwarf2expr.c (execute_stack_op): Ditto.
7846
5387a0c6
MF
78472011-03-05 Mike Frysinger <vapier@gentoo.org>
7848
7849 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7850 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7851 (bfin-*-*): Likewise.
7852
e3aa49af
MS
78532011-03-05 Michael Snyder <msnyder@vmware.com>
7854
82ae4854
MS
7855 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7856 * mdebugread.c (parse_symbol): Ditto.
7857 * parse.c (parse_exp_in_context): Ditto.
7858 * source.c (add_path): Ditto.
7859 * utils.c (gnu_debuglink_crc32): Ditto.
7860 * varobj.c (variable_language): Ditto.
7861
e3aa49af
MS
7862 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7863
154f592e
MS
78642011-03-04 Michael Snyder <msnyder@vmware.com>
7865
da3ecdc6
MS
7866 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7867
9cc89665
MS
7868 * symfile.c (simple_overlay_update): Check for null return value
7869 from lookup_minimal_symbol.
7870
154f592e
MS
7871 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7872
63ffa6ee
TJB
78732011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7874
7875 * eval.c (parse_and_eval_address_1): Remove function.
7876 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7877 instead of parse_and_eval_address_1.
7878 * value.h (parse_and_eval_address_1): Remove prototype.
7879
a17d146e
MS
78802011-03-04 Michael Snyder <msnyder@vmware.com>
7881
7882 * remote.c (putpkt_binary): Document that case stmt falls through.
7883
1a6a67de
TJB
78842011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7885
7886 * breakpointc (print_it_typical): Move NULL check from here...
7887 (print_bp_stop_message): ... to here.
7888
488919c4
MS
78892011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7890
7891 * breakpoint.c (enable_command): Use break instead of continue,
7892 and fill in a missing break.
7893 (disable_command): Ditto.
7894
1e182ce8
UW
78952011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7896
7897 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7898 (terminal_save_ours): Remove misleading comment.
7899 (inflow_inferior_data_cleanup): Free ttystate.
7900 (inflow_inferior_exit): Likewise.
7901 (copy_terminal_info): Copy ttystate.
7902
7903 * serial.c (serial_copy_tty_state): New function.
7904 * serial.h (serial_copy_tty_state): Add prototype.
7905 (struct serial_ops): Add copy_tty_state callback.
7906 * ser-base.c (ser_base_copy_tty_state): New function.
7907 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7908 * ser-go32.c (dos_copy_tty_state): New function.
7909 (dos_ops): Install copy_tty_state callback.
7910 * ser-mingw.c (_initialize_ser_windows): Likewise.
7911 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7912 * ser-unix.c (hardwire_copy_tty_state): New function.
7913 (_initialize_ser_hardwire): Install it.
7914
b2c5f112
MS
79152011-03-04 Michael Snyder <msnyder@vmware.com>
7916
2abae994
MS
7917 * breakpoint.c (create_breakpoint): Add missing break statement.
7918
7f5936f9
MS
7919 Reverting this patch:
7920 * infcall.c (call_function_by_hand): Add break statements for lint.
7921
b2c5f112
MS
7922 Reverting this patch:
7923 * cli/cli-script.c (script_from_file): Add break for lint.
7924
42b1321c
MS
79252011-03-04 Michael Snyder <msnyder@vmware.com>
7926
7927 * solib.c (reload_shared_libraries_1): Close memory leak.
7928
3e2a0cee
TT
79292011-03-03 Tom Tromey <tromey@redhat.com>
7930
7931 PR gdb/12538:
7932 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7933 DW_STRING is NULL.
7934
58397cb7
MS
79352011-03-03 Michael Snyder <msnyder@vmware.com>
7936
2e3fd767
MS
7937 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7938 fields of struct 'st' to zero.
7939
58397cb7
MS
7940 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7941 sal.pspace before calling set_current_source_symtab_and_line.
7942
ced54c8f
YQ
79432011-03-03 Yao Qi <yao@codesourcery.com>
7944
7945 * Makefile.in (configure-common): Remove. Let Makefile
7946 in dir common to rebuild itself.
7947 (common/Makefile): Likewise.
7948
3351ea09
JB
79492011-03-03 Joel Brobecker <brobecker@adacore.com>
7950
7951 * utils.c (parse_escape): Add i18n markup in error message.
7952
bf9f652a
YQ
79532011-03-03 Yao Qi <yao@codesourcery.com>
7954
7955 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7956 ARM_PC_REGNUM.
7957 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7958 (displaced_write_reg, displaced_read_reg): Likewise.
7959 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7960 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7961 (cleanup_branch): Replace magic number 14 and 15 with
7962 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7963
d42de051
MS
79642011-03-02 Michael Snyder <msnyder@vmware.com>
7965
240f9570
MS
7966 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7967
10dd8b54
MS
7968 * cli/cli-script.c (script_from_file): Add break for lint.
7969
b98bd911
MS
7970 * mdebugread.c (parse_partial_symbols): Fix indent.
7971
3494b66d
MS
7972 * target-descriptions.c (tdesc_gdb_type): No need to call
7973 xstrdup, callee saves a copy.
7974
daac021a
MS
7975 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7976
c38d16a7
MS
7977 * infcall.c (call_function_by_hand): Add break statements for lint.
7978
905b671b
MS
7979 * utils.c (parse_escape): Escape the escape char.
7980
f2eb0bc8 7981 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
7982 PyList_Append fails.
7983 (gdbpy_inferiors): Error out if build_inferior_list fails.
7984
8c6a60d1
MS
7985 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7986 a function call.
7987
d42de051
MS
7988 * record.c (record_restore): Move printf to before error return.
7989
4db71c0b
YQ
79902011-03-02 Yao Qi <yao@codesourcery.com>
7991
7992 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7993 is_thumb and insn_size.
7994 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7995 on both ARM and Thumb mode.
7996 (arm_process_displaced_insn): Set is_thumb and insn_size.
7997 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7998 (arm_displaced_step_fixup): Likewise.
7999
a9dc8dcc
MS
80002011-03-01 Michael Snyder <msnyder@vmware.com>
8001
53624a93
MS
8002 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8003
77766669
MS
8004 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8005
62d5b8da
MS
8006 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8007
5e9e105f
MS
8008 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8009
dc19db01
MS
8010 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8011 with xmalloc.
8012
5ce64950
MS
8013 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8014 which shadows function parameter.
8015
a0aa2878
MS
8016 * tracepoint.c (create_tsv_from_upload): Superfluous call
8017 to xstrdup. Callee already calls xstrdup.
8018
e325fb69
MS
8019 * linespec.c (decode_line_1): Remove unnecessary null check.
8020
21cbba77
MS
8021 * tracepoint.c (scope_info): Fix mem leak, remove underused
8022 variable.
8023
63360adc
MS
8024 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8025 superfluous null check.
8026
18ea20ac 8027 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8028 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8029
d014929c
MS
8030 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8031
6e9130cf
MS
8032 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8033 be null.
8034
5f01dbc0
MS
8035 * linespec.c (decode_line_1): Check for null before dereference.
8036
d684ab85
MS
8037 * reverse.c (record_restore): Move null-check to before pointer
8038 dereference.
8039
bfffb7e3
MS
8040 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8041
a9dc8dcc
MS
8042 * objc-lang.c (selectors_info): Add explanitory comment.
8043 (classes_info): Ditto.
8044
478fd957
UW
80452011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8046
8047 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8048 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8049 versions of the trampoline. Handle Thumb vs. ARM addresses.
8050 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8051 (arm_linux_init_abi): Install it.
8052 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8053 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8054
0480cefa
MS
80552011-02-28 Michael Snyder <msnyder@vmware.com>
8056
ac50ab3b
MS
8057 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8058 a little bigger, to avoid possibility of an overflow.
8059
f63fbe86
MS
8060 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8061 buffers a little bigger, to avoid possibility of an overflow.
8062
9e91a352
MS
8063 * coffread.c (coff_getfilename): Add check to avoid overflow.
8064
f2eb0bc8 8065 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8066 avoid overflow.
8067 (classes_info): Error out on too long REGEXP.
8068
098ab512
MS
8069 * infrun.c (handle_inferior_event): Remove unused function call.
8070
bcbd1de9
MS
8071 * fork-child.c (fork_inferior): Remove ifdef'd code and
8072 unused variable.
8073
2e456570
MS
8074 * linux-thread-db.c (attach_thread): Discard unused value.
8075
14571dad
MS
8076 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8077
a9cbf802
MS
8078 * remote.c (remote_get_noisy_reply): Discard unused value.
8079 (remote_vcont_resume): Ditto.
8080 (remote_stop_ns): Ditto.
8081
5715d26e
MS
8082 * linespec.c (decode_objc): Delete unused variable.
8083
4a9bca80
MS
8084 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8085
f47fb265
MS
8086 * dwarf2read.c (add_partial_symbol): Discard unused values.
8087 (read_base_type): Delete unused variable.
8088
e81cff30
MS
8089 * dbxread.c (read_dbx_symtab): Discard unused value.
8090
262acaeb
MS
8091 * eval.c (evaluate_subexp_standard): Delete unused variable,
8092 and discard unused values.
8093
df983543
MS
8094 * infcmd.c (_initialize_infcmd): Discard unused values.
8095
89acf84d
MS
8096 * stabsread.c (rs6000_builtin_type): Missing break statement.
8097
ab8b8aca
MS
8098 * dbxread.c (process_one_symbol): Discard unused value.
8099
6b4511ab
MS
8100 * coffread.c (coff_end_symtab): Delete unused variable.
8101
e8e80198
MS
8102 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8103 (dwarf2_add_typedef): Delete unused variable.
8104 (read_namespace): Ditto.
8105 (dwarf_decode_macros): Ditto.
8106
976aa66e
MS
8107 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8108
5b92b49f
MS
8109 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8110
91e8df85
MS
8111 * p-valprint.c (pascal_val_print): Discard unused value.
8112
899500d6
MS
8113 * utils.c (nquery): Call va_end before return;
8114 (yquery): Ditto.
8115 (query): Ditto.
8116
0480cefa
MS
8117 * proc-service.c (ps_plog): Call va_end before return.
8118
fb6a3ed3
TT
81192011-02-28 Tom Tromey <tromey@redhat.com>
8120
8121 * python/python.c (gdbpy_value_cst): New global.
8122 (_initialize_python): Initialize it.
8123 * python/python-internal.h (gdbpy_value_cst): Declare.
8124 * python/py-value.c (convert_value_from_python): Use
8125 gdbpy_value_cst.
8126
c05202a1
MS
81272011-02-28 Michael Snyder <msnyder@vmware.com>
8128
e463f587
MS
8129 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8130
c38eea1a
MS
8131 * breakpoint.c (catch_syscall_completer): Free malloced list.
8132
3ef09ab5
MS
8133 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8134
8f9a01ee
MS
8135 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8136 (lval_func_check_synthetic_pointer): Ditto.
8137 (lval_func_free_closure): Fix use-after-free.
c05202a1 8138
477d0d57
TT
81392011-02-28 Tom Tromey <tromey@redhat.com>
8140
8141 * psymtab.c (expand_partial_symbol_tables): Use
8142 ALL_OBJFILE_PSYMTABS.
8143
20937029
JK
81442011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8145
8146 * objc-lang.c (selectors_info): Error on too long REGEXP.
8147
907b7f4f
MS
81482011-02-28 Michael Snyder <msnyder@vmware.com>
8149
92e96192
MS
8150 * python/py-param.c (set_parameter_value): Add missing
8151 break statement.
8152
907b7f4f
MS
8153 * linux-record.c (record_linux_system_call): Add missing
8154 break statement.
8155
12c5a436
UW
81562011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8157
8158 * breakpoint.c (print_one_breakpoint_location): Remove unused
8159 argument PRINT_ADDRESS_BITS. Update callers.
8160 (print_one_breakpoint): Likewise.
8161
170b53b2
UW
81622011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8163
8164 * breakpoint.c (wrap_indent_at_field): New function.
8165 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8166 Allocate ui_stream locally instead of using STB argument.
8167 (print_one_breakpoint_location): Update call.
8168 * ui-out.c (ui_out_query_field): New function.
8169 * ui-out.h (ui_out_query_field): Add prototype.
8170
8ab1f94d
JB
81712011-02-28 Joel Brobecker <brobecker@adacore.com>
8172
8173 From Michael Snyder <msnyder@vmware.com>
8174 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8175
7d488639
MS
81762011-02-27 Michael Snyder <msnyder@vmware.com>
8177
ae179fba
MS
8178 * objc-lang.c (selectors_info): Prevent string overrun.
8179
086dbf66
MS
8180 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8181 error in strncpy.
8182
f2eb0bc8 8183 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8184 outer scope.
8185
7d488639
MS
8186 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8187 param with a local variable of the same name.
8188
3bd0f5ef
MS
81892011-02-27 Michael Snyder <msnyder@vmware.com>
8190
8191 * value.c (value_from_history_ref): New function.
8192 * value.h (value_from_history_ref): Export.
8193 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8194 to parse value history references.
8195 * cli/cli-utils.h (get_number_trailer): Update comment.
8196
81972011-02-27 Michael Snyder <msnyder@vmware.com>
8198
8199 * inferior.c (detach_inferior_command): Use get_number_or_range.
8200 (kill_inferior_command): Ditto.
8201 (remove_inferior_command): Ditto.
8202 (initialize_inferiors): Make command names plural.
8203 Update help strings.
8204
766062f6
MS
82052011-02-27 Michael Snyder <msnyder@vmware.com>
8206
8207 * darwin-nat-info.c: Fix comment typo.
8208 * dwarf2expr.h: Ditto.
8209 * fbsd-nat.c: Ditto.
8210 * fbsd-nat.h: Ditto.
8211 * frame-unwind.h: Ditto.
8212 * frame.h: Ditto.
8213 * hppa-hpux-tdep.c: Ditto.
8214 * i386-linux-nat.c: Ditto.
8215 * linux-nat.c: Ditto.
8216 * nbsd-nat.c: Ditto.
8217 * nbsd-nat.h: Ditto.
8218 * ppc-linux-tdep.c: Ditto.
8219 * serial.c: Ditto.
8220 * ui-file.h: Ditto.
8221 * tui/tui-winsource.c: Ditto.
8222
f2c4ead5
MS
82232011-02-26 Michael Snyder <msnyder@vmware.com>
8224
86b887df
MS
8225 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8226
66fd3b1e
MS
8227 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8228
8c814cdd
MS
8229 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8230 with a local variable of the same name.
8231
6d5e094a 8232 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8233 param with a local variable of the same name.
6d5e094a 8234 (i387_supply_xsave): Ditto.
e5b3d7d6 8235
5eee517d
MS
8236 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8237 that it does not shadow a function parameter.
8238
8fbf6b93
MS
8239 * i386-nat.c (i386_length_and_rw_bits): Document that case
8240 statement is meant to fall through.
8241
cb969d61
MS
8242 * expprint.c (dump_subexp_body_standard): Document that case
8243 statement is meant to fall through.
8244
f2c4ead5
MS
8245 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8246 dead if statement. Condition can't be false.
8247
b021a221
MS
82482011-02-25 Michael Snyder <msnyder@vmware.com>
8249
8250 * arm-tdep.c: Fix typos in comments.
8251 * bsd-uthread.c: Ditto.
8252 * completer.c: Ditto.
8253 * corelow.c: Ditto.
8254 * cp-namespace.c: Ditto.
8255 * cp-support.c: Ditto.
8256 * cris-tdep.c: Ditto.
8257 * dbxread.c: Ditto.
8258 * dwarf2read.c: Ditto.
8259 * frame.h: Ditto.
8260 * gdbtypes.h: Ditto.
8261 * inferior.h: Ditto.
8262 * mdebugread.c: Ditto.
8263 * mips-tdep.c: Ditto.
8264 * ppc-linux-nat.c: Ditto.
8265 * ppc-linux-tdep.c: Ditto.
8266 * printcmd.c: Ditto.
8267 * sol-thread.c: Ditto.
8268 * solib-frv.c: Ditto.
8269 * solist.h: Ditto.
8270 * sparc64-tdep.c: Ditto.
8271 * spu-tdep.c: Ditto.
8272 * stabsread.c: Ditto.
8273 * symfile.c: Ditto.
8274 * valops.c: Ditto.
8275 * varobj.c: Ditto.
8276 * vax-nat.c: Ditto.
8277 * python/py-block.c: Ditto.
8278 * python/py-symbol.c: Ditto.
8279 * python/py-symtab.c: Ditto.
8280 * python/py-value.c: Ditto.
8281 * tui/tui-win.c: Ditto.
8282
c82c0b55
MS
82832011-02-25 Michael Snyder <msnyder@vmware.com>
8284
8285 * inferior.c (print_inferior): Accept a string instead of an int
8286 for requested_inferiors, and use get_number_or_range to parse it.
8287 (info_inferiors_command): Pass args string to print_inferior.
8288 (initialize_inferiors): Change help string for info inferiors.
8289 * inferior.h (print_inferior): Export prototype change.
8290
ee00cd23
TT
82912011-02-25 Tom Tromey <tromey@redhat.com>
8292
8293 * common/ax.def (invalid2): Set to 0x31.
8294
0502ed8c
JK
82952011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8296
8297 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8298 L and plongest.
8299 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8300 use L and plongest.
8301 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8302
2c9de912
MS
83032011-02-24 Michael Snyder <msnyder@vmware.com>
8304
8305 * Makefile.in (clean): Make clean should remove generated files
8306 observer.h and observer.inc.
8307
a04b0428
JB
83082011-02-24 Joel Brobecker <brobecker@adacore.com>
8309
8310 Revert the following patch (not approved yet):
8311 2011-02-21 Hui Zhu <teawater@gmail.com>
8312 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8313 * ax-gdb.c (gen_printf_expr_callback): New function.
8314 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8315 * ax-general.c (ax_memcpy): New function.
8316 (ax_print): Handle "printf".
8317 (ax_reqs): Ditto.
8318 * ax.h (ax_memcpy): Forward declare.
8319 * common/ax.def (invalid2): Removed.
8320 (printf): New entry.
8321 * printcmd.c (printcmd.h): New include.
8322 (string_printf): New function.
8323 (ui_printf): Removed.
8324 (printf_command): Remove static. Call string_printf.
8325 (eval_command): Call string_printf.
8326 * printcmd.h: New file.
8327 * tracepoint.c (validate_actionline,
8328 encode_actions_1): handle printf_command.
8329
2b52013f
TT
83302011-02-23 Tom Tromey <tromey@redhat.com>
8331
8332 * ax-general.c (ax_pick): Add missing newline.
8333
e5a67952
MS
83342011-02-23 Michael Snyder <msnyder@vmware.com>
8335
8336 * breakpoint.c (breakpoint_1): Change first argument from an int
8337 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8338 breakpoints rather than just one. Use new function
e5a67952
MS
8339 'number_is_in_list' to implement.
8340 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8341 (watchpoints_info): Ditto.
8342 (tracepoints_info): Ditto.
8343 (maintenance_info_breakpoints): Ditto.
8344 (_initialize_breakpoint): Update help strings to reflect the fact
8345 that these functions can now take more than one argument.
8346 * cli/cli-utils.c (number_is_in_list): New function.
8347 * cli/cli-utils.h (number_is_in_list): Export.
8348
83492011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8350
8351 * memattr.c (mem_enable_command): Use get_number_or_range.
8352 (mem_disable_command): Ditto.
8353 (mem_delete_command): Ditto.
8354 (_initialize_mem): Tweak usage message to reflect multiple
8355 arguments.
8356
6e6fbe60
DE
83572011-02-22 Doug Evans <dje@google.com>
8358
8359 Add gdb.lookup_global_symbol python function.
8360 * NEWS: Add entry.
8361 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8362 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8363 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8364
79b97fa8
TT
83652011-02-22 Tom Tromey <tromey@redhat.com>
8366
8367 * language.c (language_class_name_from_physname): Rename
8368 'curr_language' argument to 'lang'; use in body.
8369
298f437a
MS
83702011-02-22 Michael Snyder <msnyder@vmware.com>
8371
8372 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8373
b7ea3126
PA
83742011-02-22 Pedro Alves <pedro@codesourcery.com>
8375
8376 * frame-unwind.h: Fix comment to mention the this frame, not the
8377 next.
8378
58ee6d60
TT
83792011-02-22 Tom Tromey <tromey@redhat.com>
8380
8381 * symfile.c (auto_solib_limit): Remove.
8382 * symfile.h (auto_solib_limit): Remove.
8383
36238dbc
JB
83842011-02-22 Joel Brobecker <brobecker@adacore.com>
8385
8386 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8387
aea5b279
MS
83882011-02-21 Michael Snyder <msnyder@vmware.com>
8389
8390 * gdbthread.h (print_thread_info): Change prototype.
8391 * thread.c (print_thread_info): Accept char* instead of int for
8392 requested_threads argument. Use new function number_is_in_list
8393 to determine which threads to list.
8394 (info_threads_command): Pass char* to print_thread_info.
8395 * cli/cli-utils.c (number_is_in_list): New function.
8396 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8397 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8398 print_thread_info.
8399 (print_one_inferior): Ditto.
8400 (mi_cmd_list_thread_groups): Ditto.
8401
8caa75ee
JK
84022011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8403
8404 * common/Makefile.in (CFLAGS): New.
8405 (COMPILE): Add $(CFLAGS).
8406
ea666128
TT
84072011-02-21 Tom Tromey <tromey@redhat.com>
8408
8409 * breakpoint.c (catch_syscall_command_1): Fix typo.
8410
e9cafbcc
TT
84112011-02-21 Tom Tromey <tromey@redhat.com>
8412
8413 * reverse.c: Include cli-utils.h.
8414 * printcmd.c: Include cli-utils.h.
8415 (string_printf): Use skip_spaces.
8416 * cli/cli-utils.h: New file.
8417 * cli/cli-utils.c: New file.
8418 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8419 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8420 * breakpoint.h (get_number, get_number_or_range): Move to
8421 cli-utils.h.
8422 * breakpoint.c: Include cli-utils.h.
8423 (get_number_trailer, get_number, get_number_or_range)
8424 (ep_skip_leading_whitespace): Move to cli-utils.c.
8425 (create_breakpoint_sal, find_condition_and_thread)
8426 (decode_static_tracepoint_spec, watch_command_1)
8427 (watch_maybe_just_location, ep_parse_optional_if_clause)
8428 (catch_fork_command_1, catch_exec_command_1)
8429 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8430 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8431 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8432 (HFILES_NO_SRCDIR): Add cli-utils.h.
8433 (cli-utils.o): New target.
8434
f67fd822
PM
84352011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8436
8437 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8438 before calling discard_all_inferiors.
8439
c9def01d
UW
84402011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8441
8442 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8443 (struct builtin_opencl_type): Remove.
8444 (builtin_opencl_type): Change return type to "struct type **".
8445 (lookup_opencl_vector_type): Update caller.
8446 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8447 (build_opencl_types): Install plain array of "struct type *"
8448 instead of "struct builtin_opencl_type".
8449
e3039479
UW
84502011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8451 Ulrich Weigand <uweigand@de.ibm.com>
8452
8453 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8454 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8455 (struct arm_linux_hwbp_cap): New type.
8456 (arm_linux_get_hwbp_cap): New function.
8457 (arm_linux_get_hw_breakpoint_count): Likewise.
8458 (arm_linux_get_hw_watchpoint_count): Likewise.
8459 (arm_linux_can_use_hw_breakpoint): Likewise.
8460 (arm_hwbp_type): New type.
8461 (arm_hwbp_control_t): Likewise.
8462 (struct arm_linux_hw_breakpoint): Likewise.
8463 (struct arm_linux_thread_points): Likewise.
8464 (arm_threads): New global variable.
8465 (arm_linux_find_breakpoints_by_tid): New function.
8466 (arm_hwbp_control_initialize): Likewise.
8467 (arm_hwbp_control_is_enabled): Likewise.
8468 (arm_hwbp_control_disable): Likewise.
8469 (arm_linux_hw_breakpoint_initialize): Likewise.
8470 (arm_linux_get_hwbp_type): Likewise.
8471 (arm_linux_hw_watchpoint_initialize): Likewise.
8472 (arm_linux_hw_breakpoint_equal): Likewise.
8473 (arm_linux_insert_hw_breakpoint1): Likewise.
8474 (arm_linux_remove_hw_breakpoint1): Likewise.
8475 (arm_linux_insert_hw_breakpoint): Likewise.
8476 (arm_linux_remove_hw_breakpoint): Likewise.
8477 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8478 (arm_linux_insert_watchpoint): Likewise.
8479 (arm_linux_remove_watchpoint): Likewise.
8480 (arm_linux_stopped_data_address): Likewise.
8481 (arm_linux_stopped_by_watchpoint): Likewise.
8482 (arm_linux_watchpoint_addr_within_range): Likewise.
8483 (arm_linux_new_thread): Likewise.
8484 (arm_linux_thread_exit): Likewise.
8485 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8486 related target callbacks. Register arm_linux_new_thread and
8487 arm_linux_thread_exit.
8488 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8489 * arm-tdep.c (arm_pc_is_thumb): Make global.
8490 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8491
b5db5dfc
UW
84922011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8493
8494 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8495 per-frame locations while within a function epilogue.
8496
e25b2cfa
PM
84972011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8498
8499 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8500 to GNU coding standards.
8501
4af53f97
PM
85022011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8503
8504 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8505 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8506 (ser_windows_close): Only call CancelIo if function exists.
8507 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8508 to check for existence of CancelIo function in kernel32 DLL.
8509
d0e92d82
HZ
85102011-02-21 Hui Zhu <teawater@gmail.com>
8511
8512 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8513 * ax-gdb.c (gen_printf_expr_callback): New function.
8514 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8515 * ax-general.c (ax_memcpy): New function.
8516 (ax_print): Handle "printf".
8517 (ax_reqs): Ditto.
8518 * ax.h (ax_memcpy): Forward declare.
8519 * common/ax.def (invalid2): Removed.
8520 (printf): New entry.
8521 * printcmd.c (printcmd.h): New include.
8522 (string_printf): New function.
8523 (ui_printf): Removed.
8524 (printf_command): Remove static. Call string_printf.
8525 (eval_command): Call string_printf.
8526 * printcmd.h: New file.
8527 * tracepoint.c (validate_actionline,
8528 encode_actions_1): handle printf_command.
8529
7d357efd
MS
85302011-02-19 Michael Snyder <msnyder@vmware.com>
8531
8532 * reverse.c (delete_one_bookmark): Argument is now bookmark
8533 id rather than pointer to bookmark struct.
8534 (delete_bookmark_command): Use get_number_or_range.
8535 (goto_bookmark_command): Parse with get_number instead of strtoul.
8536 (bookmark_1): New function. Print info for one bookmark.
8537 (bookmarks_info): Use get_number_or_range and bookmark_1.
8538
7a45ebd7
MS
85392011-02-18 Michael Snyder <msnyder@vmware.com>
8540
f2eb0bc8 8541 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8542 get_number_or_range.
65ebfb52 8543 (thread_apply_command): Ditto.
7a45ebd7 8544
94d5e490
TT
85452011-02-18 Tom Tromey <tromey@redhat.com>
8546
8547 * common/ax.def: New file.
8548 * ax.h (enum agent_op): Use ax.def.
8549 * ax-general.c (aop_map): Use ax.def.
8550
c7f96d2b
TT
85512011-02-18 Tom Tromey <tromey@redhat.com>
8552
8553 * ax-general.c (aop_map): Add pick and rot.
8554 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8555 <DW_OP_rot>: Implement.
8556 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8557 (ax_pick): Declare.
8558 * ax-general.c (ax_pick): New function.
8559
66694b75
TT
85602011-02-18 Tom Tromey <tromey@redhat.com>
8561
8562 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8563
eeaafae2
JK
85642011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8565 Tom Tromey <tromey@redhat.com>
8566
8567 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8568 make_symbol_overload_list_block with NULL BLOCK.
8569 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8570
3c3fe74c
PA
85712011-02-18 Pedro Alves <pedro@codesourcery.com>
8572
8573 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8574 * breakpoint.h (get_number_or_range): Declare.
8575 * printcmd.c (ALL_DISPLAYS): Declare.
8576 (delete_display): Reimplement taking a display pointer.
8577 (undisplay_command): Accept a range of displays to delete, using
8578 get_number_or_range.
8579
13163d80
PM
85802011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8581
8582 * c-valprint.c (c_val_print): Add embedded_offset to address
8583 for arrays of unspecified length.
8584 * p-valprint.c (pascal_val_print): Likewise.
8585
b434a28f
YQ
85862011-02-18 Yao Qi <yao@codesourcery.com>
8587
8588 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8589 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8590 (thumb_process_displaced_insn): New.
8591 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8592 call to arm_process_displaced_insn.
8593 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8594
9f6f94ff
TT
85952011-02-17 Tom Tromey <tromey@redhat.com>
8596
8597 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8598 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8599 compile_dwarf_to_ax. No longer static. Call
8600 dwarf2_compile_cfa_to_ax.
8601 (locexpr_tracepoint_var_ref): Update.
8602 (loclist_tracepoint_var_ref): Update.
8603 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8604 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8605 argument; add 'gdbarch' and 'pc'.
8606 (dwarf2_compile_cfa_to_ax): New function.
8607 (dwarf2_frame_cache): Update.
8608
e67ad678
JB
86092011-02-17 Joel Brobecker <brobecker@adacore.com>
8610
8611 * ada-lang.c (ada_type_of_array): Fix the size of the array
8612 in the case of an unconstrained packed array.
8613
946ebb0d
YQ
86142011-02-17 Yao Qi <yao@codesourcery.com>
8615
8616 * common/Makefile.in: Add more targets for make.
8617
1ba1b353
TT
86182011-02-16 Tom Tromey <tromey@redhat.com>
8619
8620 * dwarf2loc.c (unimplemented): Fix typo.
8621
b1bfef65
TT
86222011-02-16 Tom Tromey <tromey@redhat.com>
8623
8624 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8625 (compile_dwarf_to_ax) <default>: Use unimplemented.
8626 <DW_OP_deref>: Update.
8627 (disassemble_dwarf_expression): Update.
8628 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8629 (decode_locdesc): Update.
8630 * dwarf2expr.h (dwarf_stack_op_name): Update.
8631
5f1e6f19
TT
86322011-02-16 Tom Tromey <tromey@redhat.com>
8633
8634 * ax.h (struct aop_map) <name>: Now const.
8635
a0c78a73
PA
86362011-02-16 Tom Tromey <tromey@redhat.com>
8637
8638 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8639 than axs_rvalue.
8640
946ebb0d 86412011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8642
8643 * infrun.c (get_displaced_step_closure_by_addr): New.
8644 * inferior.h: Declare it.
8645 * arm-tdep.c: (arm_pc_is_thumb): Call
8646 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8647 returns non-NULL.
8648
08807d5a
PA
86492011-02-16 Pedro Alves <pedro@codesourcery.com>
8650 Jan Kratochvil <jan.kratochvil@redhat.com>
8651
8652 gdb/
8653 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8654
29976f3f
PA
86552011-02-16 Pedro Alves <pedro@codesourcery.com>
8656 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 * value.c (value_contents_copy_raw): Extend describing comment.
8659 Assert that the destination contents we're overwriting are wholly
8660 available.
fb68ae73 8661 (value_contents_copy): Extend describing comment.
29976f3f 8662
cd24cfaa
PA
86632011-02-16 Pedro Alves <pedro@codesourcery.com>
8664 Jan Kratochvil <jan.kratochvil@redhat.com>
8665
8666 * value.c (value_available_contents_eq): Remove redundant local
8667 variables. Fix available contents comparision.
8668 * value.h (value_available_contents_eq): Extend describing
8669 comment.
8670
60bbf338
YQ
86712011-02-16 Yao Qi <yao@codesourcery.com>
8672
8673 * thread.c (info_threads_command): Add missing i18n markup and remove
8674 trailing newline.
8675
17450429
PP
86762011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8677
8678 * breakpoint.c (longjmp_names): New variable.
8679 (struct breakpoint_objfile_data): New type.
8680 (breakpoint_objfile_key): New variable.
8681 (msym_not_found): New variable.
8682 (msym_not_found_p): New predicate.
8683 (get_breakpoint_objfile_data): New function.
8684 (create_overlay_event_breakpoint): Check per-objfile cache for
8685 symbols first.
8686 (create_longjmp_master_breakpoint): Likewise.
8687 (create_std_terminate_master_breakpoint): Likewise.
8688 (create_exception_master_breakpoint): Likewise.
8689 (_initialize_breakpoint): Register per-objfile data key.
8690
af02033e
PP
86912011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8692
8693 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8694 parameter value.
8695 (create_longjmp_master_breakpoint): Loop over longjmp names.
8696 (create_std_terminate_master_breakpoint): Const-propagate parameter
8697 value.
8698 (update_breakpoints_after_exec): Adjust.
8699 (breakpoint_re_set): Adjust.
8700
60f98dde
MS
87012011-02-15 Michael Snyder <msnyder@vmware.com>
8702
cdf99611
MS
8703 * thread.c (info_threads_command): Process arg as thread id,
8704 or list of thread ids.
8705 (thread_find_command): New command.
8706 (_initialize_thread): Document argument for info threads.
8707 Document 'thread find' command.
8708 * NEWS: Document new command "thread find".
60f98dde 8709
0feedb2c
JK
87102011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8711
8712 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8713 * aclocal.m4: Regenerated with aclocal-1.11.1.
8714 * common/configure: Regenerate with autoconf-2.64.
8715
648cd113
KW
87162011-02-15 Ken Werner <ken.werner@de.ibm.com>
8717
8718 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8719 bool data type to a size of one byte.
8720
5657161f
PA
87212011-02-15 Pedro Alves <pedro@codesourcery.com>
8722 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 * target.c (memory_xfer_live_readonly_partial): Document where to
8725 look for interface description.
8726
494e194e
YQ
87272011-02-15 Yao Qi <yao@codesourcery.com>
8728
8729 PR tdep/12352
8730 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8731 order to store PC value on stack instead of text section.
8732
d9492458
TJB
87332011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8734
8735 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8736 the EFP register set size.
8737 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8738 data from the VMX register.
8739 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8740 and write data from/to the VMX register.
8741
cdf99611
MS
87422011-02-14 Michael Snyder <msnyder@vmware.com>
8743
8744 * command.h (enum command_class): New class 'no_set_class', for
8745 "show" commands without a corresponding "set" command.
8746 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8747 * copying.c (_initialize_copying): Ditto for "show copying" and
8748 "show warranty".
8749 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8750 "show version".
8751 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8752 which there is no corresponding "set" command (eg. "show copying").
8753
424447ee
PA
87542011-02-14 Pedro Alves <pedro@codesourcery.com>
8755 Jan Kratochvil <jan.kratochvil@redhat.com>
8756
8757 * exec.c (section_table_available_memory): Change `len' parameter
8758 type to ULONGEST.
8759 * exec.h (section_table_available_memory): Ditto.
8760 * value.h (read_value_memory): Rename the `offset' parameter to
8761 `embedded_offset'.
8762
c0f61f9c 87632011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 8764 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
8765
8766 * memrange.c (compare_mem_ranges): Mention sort order in
8767 describing comment.
8768 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8769 * tracepoint.c (traceframe_available_memory): Extend comment to
8770 mention what happens to RESULT when the target does not support
8771 the query.
8772
6bfc80c7
PA
87732011-02-14 Pedro Alves <pedro@codesourcery.com>
8774 Jan Kratochvil <jan.kratochvil@redhat.com>
8775
8776 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8777 range.
8778
e7303042
PA
87792011-02-14 Pedro Alves <pedro@codesourcery.com>
8780
8781 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8782 No longer handle NULL values.
8783
8af8e3bc
PA
87842011-02-14 Pedro Alves <pedro@codesourcery.com>
8785
8786 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8787 * value.c: Include "exceptions.h".
8788 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8789 generic error.
8790 * cp-abi.c: Include gdb_assert.h.
8791 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8792 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8793 errors.
8794 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8795 parameters. No longer returns -1 on error.
8796 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8797 `val' parameters.
8798 * cp-valprint.c: Include exceptions.h.
8799 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8800 the baseclass_offset. Handle unavailable base classes. Use
8801 val_print_invalid_address.
8802 * p-valprint.c: Include exceptions.h.
8803 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8804 when fetching the baseclass_offset. No longer expect
8805 baseclass_offset returning -1. Handle unavailable base classes.
8806 Use val_print_invalid_address.
8807 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8808 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8809 `embedded_offset' and `val' parameters. Adjust.
8810 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8811 parameter, and change its type to gdb_byte pointer. Add
8812 `embedded_offset' and `val' parameters. Adjust. No longer expect
8813 baseclass_offset returning -1.
8814 (value_dynamic_cast): Use value_contents_for_printing rather than
8815 value_contents. Adjust.
8816 (search_struct_field): No longer expect baseclass_offset returning
8817 -1.
8818 (search_struct_method): If reading memory from the target is
8819 necessary, wrap it in a new value to pass to baseclass_offset. No
8820 longer expect baseclass_offset returning -1.
8821 (find_method_list): No longer expect baseclass_offset returning
8822 -1. Use value_contents_for_printing rather than value_contents.
8823 * valprint.c (val_print_invalid_address): New function.
8824 * valprint.h (val_print_invalid_address): Declare.
8825 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8826 and `val' parameters. No longer expect baseclass_offset returning
8827 -1. Adjust.
8828 * gnu-v2-abi.c: Include "exceptions.h".
8829 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8830 parameters. Handle unavailable memory. Recurse through
8831 gnuv2_baseclass_offset directly, rather than through
8832 baseclass_offset. No longer returns -1 on not found, instead
8833 throw an error.
8834 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8835 `val' parameters. Adjust.
8836
1b28d0b3
PA
88372011-02-14 Pedro Alves <pedro@codesourcery.com>
8838
8839 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8840 almost but not quite adjacent.
8841
ec0a52e1
PA
88422011-02-14 Pedro Alves <pedro@codesourcery.com>
8843
8844 * value.h (value_entirely_available): Declare.
8845 * value.c (value_entirely_available): New function.
8846 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8847 real type if the pointer is unavailable.
8848
24e6bcee
PA
88492011-02-14 Pedro Alves <pedro@codesourcery.com>
8850
8851 * valops.c (value_repeat): Use read_value_memory instead of
8852 read_memory.
8853
39d37385
PA
88542011-02-14 Pedro Alves <pedro@codesourcery.com>
8855
8856 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8857 * value.c (value_contents_copy_raw, value_contents_copy): New
8858 functions.
8859 (value_primitive_field): Use value_contents_copy_raw instead of
8860 memcpy.
8861 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8862 memcpy.
8863 (value_array, value_slice): Ditto.
8864 * valarith.c (value_subscripted_rvalue): Use
8865 value_contents_copy_raw instead of memcpy.
8866
a3d34bf4
PA
88672011-02-14 Pedro Alves <pedro@codesourcery.com>
8868
8869 <unavailable> references.
8870
8871 * valops.c (get_value_at): Use value_from_contents_and_address,
8872 avoiding read_memory.
8873
9fc6d940
PA
88742011-02-14 Pedro Alves <pedro@codesourcery.com>
8875
8876 * c-valprint.c (c_val_print): Print a string with unavailable
8877 contents as an array.
8878
5467c6c8
PA
88792011-02-14 Pedro Alves <pedro@codesourcery.com>
8880
8881 * value.h (unpack_bits_as_long): Delete declaration.
8882 (unpack_value_bits_as_long): Declare.
8883 (unpack_value_field_as_long): Declare.
8884 (value_field_bitfield): Declare.
8885 * value.c (unpack_bits_as_long): Rename to...
8886 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8887 value parameters. Return the extracted result in a new output
8888 parameter. If the value contents are unavailable, return false,
8889 otherwise return true.
8890 (unpack_value_bits_as_long): New.
8891 (unpack_field_as_long): Rename to...
8892 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8893 Add embedded_offset and value parameters. Return the extracted
8894 result in a new output parameter. If the value contents are
8895 unavailable, return false, otherwise return true.
8896 (unpack_value_field_as_long): New.
8897 (unpack_field_as_long_1): New.
8898 (unpack_field_as_long): Reimplement as wrapper around
8899 unpack_value_field_as_long_1.
8900 (value_field_bitfield): New function.
8901 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8902 unpack_value_bits_as_long. Mark the value as unavailable, if it
8903 is unavailable.
8904 * jv-valprint.c (java_print_value_fields): Use
8905 value_field_bitfield.
8906 * p-valprint.c (pascal_object_print_value_fields): Use
8907 value_field_bitfield.
8908 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8909
3158c6ed
PA
89102011-02-14 Pedro Alves <pedro@codesourcery.com>
8911
8912 * value.c (get_internalvar_integer): Also return the int value of
8913 TYPE_CODE_INT INTERNALVAR_VALUE values.
8914 (set_internalvar): Don't special case TYPE_CODE_INT.
8915
9fbdca0d
PA
89162011-02-14 Pedro Alves <pedro@codesourcery.com>
8917
8918 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8919 INTERNALVAR_POINTER.
8920 <pointer>: Delete.
8921 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8922 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8923 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8924
c8c1c22f
PA
89252011-02-14 Pedro Alves <pedro@codesourcery.com>
8926
8927 * value.h (value_available_contents_eq): Declare.
8928 * value.c (find_first_range_overlap): New function.
8929 (value_available_contents_eq): New function.
8930 * valprint.c (val_print_array_elements): Use
8931 value_available_contents_eq.
8932 * ada-valprint.c (val_print_packed_array_elements): Use
8933 value_available_contents_eq.
8934 * jv-valprint.c (java_value_print): Use
8935 value_available_contents_eq.
8936
e6e4e701
PA
89372011-02-14 Pedro Alves <pedro@codesourcery.com>
8938
8939 * target.c (target_read_live_memory): New function.
8940 (memory_xfer_live_readonly_partial): New.
8941 (memory_xfer_partial): If reading from a traceframe, fallback to
8942 reading unavailable read-only memory from read-only regions of
8943 live target memory.
8944 * tracepoint.c (disconnect_tracing): Adjust.
8945 (set_current_traceframe): New, factored out from
8946 set_traceframe_number.
8947 (set_traceframe_number): Reimplement to only change the traceframe
8948 number on the GDB side.
8949 (do_restore_current_traceframe_cleanup): Adjust.
8950 (make_cleanup_restore_traceframe_number): New.
8951 (cur_traceframe_number): New global.
8952 (tfile_open): Set cur_traceframe_number to no traceframe.
8953 (set_tfile_traceframe): New function.
8954 (tfile_trace_find): If looking up a traceframe using any method
8955 other than by number, make sure the current tfile traceframe
8956 matches gdb's current traceframe. Update the current tfile
8957 traceframe if the lookup succeeded.
8958 (tfile_fetch_registers, tfile_xfer_partial)
8959 (tfile_get_trace_state_variable_value): Make sure the remote
8960 traceframe matches gdb's current traceframe.
8961 * remote.c (remote_traceframe_number): New global.
8962 (remote_open_1): Set it to -1.
8963 (set_remote_traceframe): New function.
8964 (remote_fetch_registers, remote_store_registers)
8965 (remote_xfer_memory, remote_xfer_partial)
8966 (remote_get_trace_state_variable_value): Make sure the remote
8967 traceframe matches gdb's current traceframe.
8968 (remote_trace_find): If looking up a traceframe using any method
8969 other than by number, make sure the current remote traceframe
8970 matches gdb's current traceframe. Update the current remote
8971 traceframe if the lookup succeeded.
8972 * infrun.c (fetch_inferior_event): Adjust.
8973 * tracepoint.h (set_current_traceframe): Declare.
8974 (get_traceframe_number, set_traceframe_number): Add describing
8975 comments.
8976
e6ca34fc
PA
89772011-02-14 Pedro Alves <pedro@codesourcery.com>
8978
8979 Mark pieces of values as unavailable if the corresponding memory
8980 is unavailable.
8981
8982 * valops.c: Include tracepoint.h.
8983 (value_fetch_lazy): Use read_value_memory.
8984 (read_value_memory): New.
8985 * value.h (read_value_memory): Declare.
8986 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8987 * exec.c (section_table_available_memory): New function.
8988 * exec.h (section_table_available_memory): Declare.
8989
2a7498d8
PA
89902011-02-14 Pedro Alves <pedro@codesourcery.com>
8991
8992 * Makefile.in (SFILES): Add memrange.c.
8993 (HFILES_NO_SRCDIR): Add memrange.h.
8994 (COMMON_OBS): Add memrange.o.
8995 * memrange.c: New file.
8996 * memrange.h: New file.
8997 * tracepoint.c: Include memrange.h.
8998 (struct mem_range): Delete.
8999 (mem_range_s): Delete.
9000 (traceframe_available_memory): New function.
9001 * tracepoint.h (traceframe_available_memory): Declare.
9002
b3b9301e
PA
90032011-02-14 Pedro Alves <pedro@codesourcery.com>
9004
9005 * target.h (struct traceframe_info): Forward declare.
9006 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9007 (struct target_ops) <to_traceframe_info>: New field.
9008 (target_traceframe_info): New.
9009 * target.c (update_current_target): Inherit and default
9010 to_traceframe_info.
9011 * remote.c (PACKET_qXfer_traceframe_info): New.
9012 (remote_protocol_features): Register qXfer:traceframe-info:read.
9013 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9014 (remote_traceframe_info): New.
9015 (init_remote_ops): Install it.
9016 (_initialize_remote): Install "set/show remote traceframe-info"
9017 commands.
9018 * tracepoint.h (parse_traceframe_info): Declare.
9019 * tracepoint.c (struct mem_range): New.
9020 (mem_range_s): New typedef.
9021 (struct traceframe_info): New.
9022 (traceframe_info): New global.
9023 (free_traceframe_info): New function.
9024 (clear_traceframe_info): New function.
9025 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9026 info.
9027 (build_traceframe_info): New function.
9028 (tfile_traceframe_info): New function.
9029 (init_tfile_ops): Install tfile_traceframe_info.
9030 (traceframe_info_start_memory, free_result): New functions.
9031 (memory_attributes, traceframe_info_elements): New globals.
9032 (parse_traceframe_info, get_traceframe_info): New functions.
9033 * features/traceframe-info.dtd: New file.
9034 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9035
4e07d55f
PA
90362011-02-14 Pedro Alves <pedro@codesourcery.com>
9037
9038 Base support for <unavailable> value contents.
9039
4e07d55f
PA
9040 * value.h (value_bytes_available): Declare.
9041 (mark_value_bytes_unavailable): Declare.
9042 * value.c (struct range): New struct.
9043 (range_s): New typedef.
9044 (ranges_overlap): New function.
9045 (range_lessthan): New function.
9046 (ranges_contain_p): New function.
9047 (struct value) <unavailable>: New field.
9048 (value_bytes_available): New function.
9049 (mark_value_bytes_unavailable): New function.
9050 (require_not_optimized_out): Constify parameter.
9051 (require_available): New function.
9052 (value_contents_all, value_contents): Require all bytes be
9053 available.
9054 (value_free): Free `unavailable'.
9055 (value_copy): Copy `unavailable'.
9056 * valprint.h (val_print_unavailable): Declare.
9057 * valprint.c (valprint_check_validity): Rename `offset' parameter
9058 to `embedded_offset'. If printing a scalar, check whether the
9059 value chunk is available.
9060 (val_print_unavailable): New.
9061 (val_print_scalar_formatted): Check whether the value is
9062 available.
9063 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9064 pretty-printing unavailable values.
9065
bc9a5551
JK
90662011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9067
9068 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9069 * c-typeprint.c (c_type_print_args): Update the function comment. New
9070 variable param_type, initialize it. Remove const/volatile qualifiers
9071 for language_cplus and !show_artificial. Use param_type.
9072
93b55aa1
JK
90732011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9074
9075 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9076 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9077 * symtab.h (struct symtab) <next>: Comment extension.
9078
181d9476
YQ
90792011-02-12 Yao Qi <yao@codesourcery.com>
9080
9081 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9082
b708a5c7
JK
90832011-02-11 Yao Qi <yao@codesourcery.com>
9084
9085 * common/Makefile.in: Add copyright header.
9086
c5187ac6
PA
90872011-02-11 Pedro Alves <pedro@codesourcery.com>
9088
9089 * infrun.c (proceed): Move switching out and in of tfind mode from
9090 here ...
9091 (fetch_inferior_event): ... to here.
9092
4f3e6fb7
YQ
90932011-02-11 Yao Qi <yao@codesourcery.com>
9094
9095 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9096 libcommon.a.
9097 * configure.ac: Add common to sub dir.
9098 * configure: Regenerate.
9099
b708a5c7
JK
91002011-02-11 Yao Qi <yao@codesourcery.com>
9101
9102 Build libcommon.a.
9103
9104 * common/Makefile.in: New.
9105 * common/configure.ac: New.
9106 * common/aclocal.m4: New.
9107 * common/configure: Generate.
9108
2287cc7e
PA
91092011-02-10 Pedro Alves <pedro@codesourcery.com>
9110
9111 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9112 side of the parenthesis.
9113
9114 Merge from GCC:
9115 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9116 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9117
fd62cb89
MS
91182011-02-08 Michael Snyder <msnyder@vmware.com>
9119
9120 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9121
56d2815c
JK
91222011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9123
9124 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9125 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9126 psubd and paddd.
9127
4f7d61a8
JK
91282011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9129
9130 PR 12361.
9131 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9132 phsubsw.
9133 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9134 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9135
54fcddd0
UW
91362011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9137
9138 * dwarf2read.c (read_subroutine_type): Set special calling
9139 convention flag for functions compiled by IBM XL C for OpenCL.
9140 * ppc-sysv-tdep.c: Include "dwarf2.h"
9141 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9142 calling convention.
9143 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9144 IBM OpenCL vector types calling convention.
9145 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9146 (ppc_sysv_abi_broken_return_value): Likewise.
9147 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9148 types calling convention.
9149 (ppc64_sysv_abi_return_value): Likewise.
9150 * spu-tdep.c: Include "dwarf2.h"
9151 (spu_return_value): Implement IBM OpenCL vector types calling
9152 convention.
9153
d6dafb7c
UW
91542011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9155
9156 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9157 correct ABI for AltiVec vector arguments.
9158
32b72a42
PA
91592011-02-07 Pedro Alves <pedro@codesourcery.com>
9160
9161 * valprint.c (val_print): Extend comment.
9162 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9163 interface explanation to val_print.
9164 (ada_val_print_array): Adjust comment to current interface.
9165 (print_field_values): Adjust comment to current interface.
9166 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9167 explanation to val_print.
9168 * f-valprint.c (f_val_print): Ditto.
9169 * jv-valprint.c (java_val_print): Ditto.
9170 * m2-valprint.c (m2_val_print): Ditto.
9171 * p-valprint.c (pascal_val_print): Ditto.
9172
9998af43
TJB
91732011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9174
9175 * breakpoint.c (parse_breakpoint_sals): Fix description.
9176
505500db 91772011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9178 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9179
9180 * python/py-inferior.c (python_on_normal_stop): New function.
9181 (python_on_resume): New function.
9182 (python_inferior_exit): New function.
9183 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9184 inferior_exit observers.
9185 * python/py-evtregistry.c: New file.
9186 * python/py-threadevent.c : New file.
9187 * python/py-event.c: New file.
9188 * python/py-evts.c: New file.
9189 * python/py-continueevent.c: New file.
9190 * python/py-bpevent.c: New file.
9191 * python/py-signalevent.c: New file.
9192 * python/py-exetiedevent.c: New file.
9193 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9194 Move struct breakpoint_object from here...
9195 * python/python-internal.h: ... to here.
9196 * python/py-event.h: New file.
9197 * python/py-events.h: New file.
9198 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9199 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9200 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9201 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9202 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9203 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9204 Add build rules for all the above.
9205
9e0ac564
TT
92062011-02-04 Tom Tromey <tromey@redhat.com>
9207
9208 * dwarf2read.c (dwarf2_section_empty_p): New function.
9209 (dwarf2_read_section): Use dwarf2_section_empty_p.
9210 (dwarf2_section_size): New function.
9211 (dwarf2_get_section_info): Unconditionally read section.
9212 (dwarf2_read_index): Use dwarf2_section_empty_p.
9213 (partial_read_comp_unit_head): Use dwarf2_section_size.
9214 (dwarf2_symbol_mark_computed): Likewise.
9215
eee5b35e
DD
92162011-02-04 David Daney <ddaney@caviumnetworks.com>
9217
9218 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9219
385203ed
DD
92202011-02-04 David Daney <ddaney@caviumnetworks.com>
9221
9222 * mips-linux-tdep.c: Include xml-syscall.h.
9223 (mips_linux_get_syscall_number): New function.
9224 (mips_linux_init_abi): Add calls to
9225 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9226 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9227 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9228 * syscalls/mips-n32-linux.xml: New file.
9229 * syscalls/mips-n64-linux.xml: New file.
9230 * syscalls/mips-o32-linux.xml: New file.
9231
9277c30c
UW
92322011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9233
9234 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9235 Complain about inverted range entries.
9236 (dwarf2_record_block_ranges): Likewise.
9237
a3be7890
TJB
92382011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9239
9240 Fix some typos.
9241 * breakpoint.c (update_watchpoint): Fix name of the
9242 update_global_location_list function.
9243 (print_one_breakpoint): Fix typo.
9244 (_initialize_breakpoint): Remove extra space in hbreak help
9245 string.
9246 * breakpoint.h (struct bp_location) <length>: Fix field
9247 description.
9248
041274d8
PA
92492011-02-04 Pedro Alves <pedro@codesourcery.com>
9250
9251 * regcache.c (registers_changed_ptid): Don't explictly always
9252 clear `current_regcache'. Only clear current_thread_ptid and
9253 current_thread_arch when PTID matches. Only reinit the frame
9254 cache if PTID matches the current inferior_ptid. Move alloca(0)
9255 call to ...
9256 (registers_changed): ... here.
9257
c1c2ab58
UW
92582011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9259
9260 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9261 starts with __stack_chk_guard as stack guard symbol.
9262
9011945e
AB
92632011-02-03 Andrew Burgess <aburgess@broadcom.com>
9264
9265 * disasm.c (compare_lines): Handle the end of sequence markers
9266 within the line table to better support disassembling over
9267 compilation unit boundaries.
9268
e0634ccf
UW
92692011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9270
9271 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9272 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9273 implementation even if no symbols are available.
9274 (thumb_analyze_prologue): Update call to skip_prologue_function.
9275 (arm_analyze_prologue): Likewise.
9276
0e9e9abd
UW
92772011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9278
9279 * arm-tdep.c: Include "observer.h".
9280 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9281 (arm_exidx_data_key): New static variable.
9282 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9283 (struct arm_exidx_data): Likewise.
9284 (arm_exidx_data_free): New function.
9285 (arm_compare_exidx_entries): Likewise.
9286 (arm_obj_section_from_vma): Likewise.
9287 (arm_exidx_new_objfile): Likewise.
9288 (arm_find_exidx_entry): Likewise.
9289 (arm_exidx_fill_cache): Likewise.
9290 (arm_exidx_unwind_sniffer): Likewise.
9291 (arm_exidx_unwind): New global variable.
9292 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9293 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9294 observer. Register arm_exidx_data_key as objfile data.
9295
2e9e421f
UW
92962011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9297
9298 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9299 due to accessing uninitialized variable. Fix indentation.
9300
580688f3
PA
93012011-02-02 Pedro Alves <pedro@codesourcery.com>
9302
9303 * c-valprint.c (c_value_print): When doing virtual base pointer
9304 adjustment, create a new value with adjusted contents rather than
9305 changing the contents of the value being printed (and getting it
9306 wrong).
9307
3d2c1d41
PA
93082011-02-02 Pedro Alves <pedro@codesourcery.com>
9309
9310 * xml-support.c (xml_find_attribute): New.
9311 (xinclude_start_include): Use it.
9312 * xml-support.h (xml_find_attribute): Declare.
9313 * memory-map.c (memory_map_start_memory)
9314 (memory_map_start_property): Use xml_find_attribute.
9315 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9316 xml_find_attribute.
9317 * remote.c (start_thread): Use xml_find_attribute.
9318 * solib-target.c (library_list_start_segment)
9319 (library_list_start_section, library_list_start_library)
9320 (library_list_start_list): Use xml_find_attribute.
9321 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9322 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9323 (tdesc_start_field): Use xml_find_attribute.
9324
0af3e2db
UW
93252011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9326
9327 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9328 (BUILD_OCL_VTYPES): Update.
9329
c1039e3c
JB
93302011-02-02 Joel Brobecker <brobecker@adacore.com>
9331
9332 * configure.ac: Work around non-GNU sed limitation when computing
9333 python version number.
9334 * configure: Regenerate.
9335
600ea1be
JK
93362011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9337
9338 Fix debug printing of TYPE_INSTANCE.
9339 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9340 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9341
56c12414
JK
93422011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9343
9344 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9345 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9346 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9347 * ada-operator.inc: Rename the file to ...
9348 * ada-operator.def: ... here, wrap all the entries by macro OP.
9349 * expprint.c (op_name_standard): Remove all the entries. Include
9350 "std-operator.def" instead.
9351 * expression.h (enum exp_opcode): Include "std-operator.def" and
9352 "ada-operator.def". Move all the entries ...
9353 * std-operator.def: ... here, wrap all the entries by macro OP.
9354
c52b559d
PP
93552011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9356
9357 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9358 * breakpoint.c (remove_jit_event_breakpoints): New function.
9359 * jit.c (jit_descriptor_addr): Delete.
9360 (registering_code): Delete.
9361 (clear_int): Delete.
9362 (jit_inferior_data): New variable.
9363 (struct jit_inferior_data): New type.
9364 (get_jit_inferior_data): New function.
9365 (jit_inferior_data_cleanup): New function.
9366 (jit_read_descriptor): Adjust.
9367 (jit_register_code): Adjust.
9368 (jit_breakpoint_re_set_internal): New function; move code here ...
9369 (jit_inferior_init): ... from here.
9370 (jit_breakpoint_re_set): Adjust.
9371 (jit_reset_inferior_data_and_breakpoints): New function.
9372 (jit_inferior_created_observer): Adjust.
9373 (jit_inferior_exit_hook): Adjust.
9374 (jit_executable_changed_observer): New function.
9375 (jit_event_handler): Adjust.
9376 (_initialize_jit): Adjust.
9377
e839132d
MS
93782011-01-31 Michael Snyder <msnyder@vmware.com>
9379
9380 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9381 line.
9382
47a80e90
TT
93832011-01-31 Tom Tromey <tromey@redhat.com>
9384
9385 PR python/12216:
9386 * python/python.c (execute_gdb_command): Call
9387 prevent_dont_repeat.
9388 * top.c (suppress_dont_repeat): New global.
9389 (dont_repeat): Use it.
9390 (prevent_dont_repeat): New function.
9391 * command.h (prevent_dont_repeat): Declare.
9392
45a43567
TT
93932011-01-31 Tom Tromey <tromey@redhat.com>
9394
9395 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9396 * python/py-breakpoint.c (bppy_set_silent): Use
9397 breakpoint_set_silent.
9398 (bppy_set_thread): Use breakpoint_set_thread.
9399 (bppy_set_task): Use breakpoint_set_task.
9400 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9401 (breakpoint_set_task): Declare.
9402 (make_breakpoint_silent): Remove.
9403 * breakpoint.c (breakpoint_set_silent): New function.
9404 (breakpoint_set_thread): Likewise.
9405 (breakpoint_set_task): Likewise.
9406 (make_breakpoint_silent): Remove.
9407
09d682a4
TT
94082011-01-31 Tom Tromey <tromey@redhat.com>
9409
9410 * breakpoint.h (user_breakpoint_p): Declare.
9411 * breakpoint.c (user_breakpoint_p): New function.
9412 (breakpoint_1): Use it.
9413 (save_breakpoints): Likewise.
9414
9c4ea6c5
JB
94152011-01-31 Joel Brobecker <brobecker@adacore.com>
9416
9417 * configure.ac: Add handling of Python distribution on Windows.
9418 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9419 sysconfig variables are not defined, then do not use them.
9420 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9421 instead. On Windows, return all paths using forward-slashes
9422 rather than backslashes.
9423
ac534cba
JB
94242011-01-31 Joel Brobecker <brobecker@adacore.com>
9425
9426 * configure.ac: Remove fallback behavior for building
9427 against Python. Remove tweaking of Python include path.
9428 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9429 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9430 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9431 Always restore CPPFLAGS and LIBS after linking test.
9432 * configure: Regenerated.
9433 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9434 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9435 * python/python-internal.h: Adjust includes of Python .h files.
9436
c2f0d045
JB
94372011-01-31 Joel Brobecker <brobecker@adacore.com>
9438
9439 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9440 in error message.
9441
6b0c4c1f
JB
94422011-01-31 Joel Brobecker <brobecker@adacore.com>
9443
9444 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9445 value test.
9446
672c9795
YQ
94472011-01-31 Yao Qi <yao@codesourcery.com>
9448
9449 * arm-linux-nat.c: Update calls to regcache_register_status
9450 instead of regcache_valid_p.
9451 * aix-thread.c: Likewise.
9452 * i386gnu-nat.c: Likewise.
9453
80b23b6a
JK
94542011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9455
9456 Fix crash.
9457 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9458 touching TYPE_FIELD_ARTIFICIAL.
9459
4cd712bd
RE
94602011-01-28 Richard Earnshaw <rearnsha@arm.com>
9461
9462 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9463 Committers.
9464
ffd5ec24
PA
94652011-01-28 Pedro Alves <pedro@codesourcery.com>
9466
9467 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9468 selected, don't try iterating over the traceframe's blocks.
9469 (tfile_has_stack): If there's no traceframe selected, then there's
9470 no stack.
9471 (tfile_has_registers): If there's no traceframe selected, then
9472 there's no registers.
9473
e8c9e0a1
PA
94742011-01-28 Pedro Alves <pedro@codesourcery.com>
9475
9476 * target.c (memory_xfer_partial): No need to restore shadows if we
9477 haven't read anything.
9478
de15c4ab
PA
94792011-01-28 Pedro Alves <pedro@codesourcery.com>
9480
9481 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9482 and val_print_scalar_formatted.
9483
9f41c731
PA
94842011-01-27 Pedro Alves <pedro@codesourcery.com>
9485
9486 * tracepoint.c (tfile_read): New.
9487 (tfile_open): Use it.
9488 (tfile_get_traceframe_address): Use it.
9489 (tfile_trace_find): Use it.
9490 (walk_blocks_callback_func): New typedef.
9491 (match_blocktype): New function.
9492 (traceframe_walk_blocks): New function.
9493 (traceframe_find_block_type): New function.
9494 (tfile_fetch_registers, tfile_xfer_partial)
9495 (tfile_get_trace_state_variable_value): Use
9496 traceframe_find_block_type and tfile_read.
9497
cdefc55d
KB
94982011-01-26 Kevin Buettner <kevinb@redhat.com>
9499
9500 * remote-mips.c: Add internationalization mark ups. Remove
9501 trailing \n from already marked up strings.
9502
a81766d8
TT
95032011-01-26 Tom Tromey <tromey@redhat.com>
9504
9505 * python/py-prettyprint.c (print_string_repr): Clear
9506 'addressprint' option when calling val_print_string.
9507 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9508 option when calling val_print_string.
9509
74aedc46
TT
95102011-01-26 Tom Tromey <tromey@redhat.com>
9511
9512 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9513 GDB_PY_LL_ARG.
9514 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9515 macros.
9516 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9517 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9518 (gdb_py_long_as_ulongest): New defines.
9519 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9520 (gdb_py_int_as_long): Declare.
9521 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9522 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9523 (valpy_long): Add comment.
9524 * python/py-utils.c (get_addr_from_python): Use
9525 gdb_py_long_as_ulongest. Handle overflow properly.
9526 (gdb_py_object_from_longest): New function.
9527 (gdb_py_object_from_ulongest): Likewise.
9528 (gdb_py_int_as_long): Likewise.
9529 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9530 * python/py-symtab.c (salpy_get_pc): Use
9531 gdb_py_long_from_ulongest.
9532 (salpy_get_line): Use PyInt_FromLong.
9533 * python/py-param.c (set_parameter_value): Use
9534 gdb_py_int_as_long.
9535 * python/py-lazy-string.c (stpy_get_address): Use
9536 gdb_py_long_from_ulongest.
9537 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9538 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9539 * python/py-breakpoint.c (bppy_set_thread): Use
9540 gdb_py_int_as_long.
9541 (bppy_set_task): Likewise.
9542 (bppy_set_ignore_count): Likewise.
9543 (bppy_set_hit_count): Likewise.
9544 * python/py-block.c (blpy_get_start): Use
9545 gdb_py_object_from_ulongest.
9546 (blpy_get_end): Likewise.
9547 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9548
e4f6d2ec
TJB
95492011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9550
9551 PR/symtab 11766:
9552 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9553 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9554 equality test for objfile, initialize addr_low if needed.
9555
b30aa278
PA
95562011-01-25 Pedro Alves <pedro@codesourcery.com>
9557
9558 * tui/tui-regs.c (tui_register_format): Remove dead code.
9559
ab2188aa
PA
95602011-01-25 Pedro Alves <pedro@codesourcery.com>
9561
9562 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9563 instead of print_scalar_formatted.
9564 (print_scalar_formatted): Don't handle 's' format strings here,
9565 and add an assertion that we never see such format here.
9566 * valprint.h (val_print_scalar_formatted): Declare.
9567 * valprint.c (val_print_scalar_formatted): New.
9568 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9569 instead of print_scalar_formatted.
9570 * jv-valprint.c (java_val_print): Ditto.
9571 * p-valprint.c (pascal_val_print): Ditto.
9572 * ada-valprint.c (ada_val_print_1): Ditto.
9573 * f-valprint.c (f_val_print): Ditto.
9574 * infcmd.c (registers_info): Ditto.
9575 * m2-valprint.c (m2_val_print): Ditto.
9576
66d61a4c
PA
95772011-01-25 Pedro Alves <pedro@codesourcery.com>
9578
9579 * m2-valprint.c (print_unbounded_array): Pass
9580 value_contents_for_printing rather than value_contents, to
9581 m2_print_array_contents. Also pass in the value.
9582
831adc1f
JK
95832011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9584
9585 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9586 (save_gdb_index_command): Switch to .gdb_index version 4.
9587
20622269
PA
95882011-01-25 Pedro Alves <pedro@codesourcery.com>
9589
9590 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9591 than frame_register, and always pass a valid value to val_print.
9592
585fdaa1
PA
95932011-01-25 Pedro Alves <pedro@codesourcery.com>
9594
9595 Centralize printing "<optimized out>".
9596
9597 * valprint.h (val_print_optimized_out): Declare.
9598 * cp-valprint.c (cp_print_value_fields): Use
9599 val_print_optimized_out.
9600 * jv-valprint.c (java_print_value_fields): Ditto.
9601 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9602 * printcmd.c (print_formatted): Ditto.
9603 * valprint.c (valprint_check_validity): Ditto.
9604 (value_check_printable): Ditto.
9605 (val_print_optimized_out): New.
9606
29ec5263
PA
96072011-01-25 Pedro Alves <pedro@codesourcery.com>
9608
9609 * infcmd.c (default_print_registers_info): Allocate values so to
9610 never pass a NULL value to val_print.
9611
de4127a3
PA
96122011-01-25 Pedro Alves <pedro@codesourcery.com>
9613
9614 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9615 boolean. Make sure to always pass a value that matches the
9616 contents buffer to callees. Preserve `address' for following
9617 iterations.
9618 * value.c (value_contents_for_printing_const): New.
9619 (value_address): Constify value argument.
9620 * value.h (value_contents_for_printing_const): Declare.
9621 (value_address): Constify value argument.
9622
ee99023e
PA
96232011-01-25 Pedro Alves <pedro@codesourcery.com>
9624
9625 * regcache.c (struct regcache_descr): Rename
9626 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9627 and sizeof_cooked_register_valid_p to
9628 sizeof_cooked_register_status.
9629 (init_regcache_descr): Adjust.
9630 (struct regcache): Rename register_valid_p field to
9631 register_status.
9632 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9633 (do_cooked_read): Adjust.
9634 (regcache_valid_p): Rename to ...
9635 (regcache_register_status): ... this. Adjust.
9636 (regcache_invalidate): Adjust.
9637 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9638 Adjust.
9639 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9640 as unavailable, not valid.
9641 (regcache_dump): Adjust.
9642 * regcache.h (enum register_status): New.
9643 (regcache_register_status): Declare.
9644 (regcache_invalidate): Delete declaration.
9645 * corelow.c (get_core_registers): Adjust.
9646 * tracepoint.c (tfile_fetch_registers): Adjust.
9647 * trad-frame.c (REG_VALUE): Rename to ...
9648 (TF_REG_VALUE): ... this.
9649 (REG_UNKNOWN): Rename to ...
9650 (TF_REG_UNKNOWN): ... this.
9651 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9652 * mi/mi-main.c (register_changed_p): Adjust.
9653
99e42fd8
PA
96542011-01-25 Pedro Alves <pedro@codesourcery.com>
9655
9656 * regcache.c (struct regcache_descr): Remove outdated comment.
9657 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9658 overallocate hack.
9659 (regcache_xmalloc): Rename to ...
9660 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9661 Allocate the regcache type accordingly.
9662 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9663 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9664 cooked registers, not raw.
9665 (regcache_dup_no_passthrough): Delete.
9666 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9667 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9668 mention obsolete write_register_bytes.
9669 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9670
f7605bc2
PA
96712011-01-25 Pedro Alves <pedro@codesourcery.com>
9672
9673 Stop remote_read_bytes from handling partial reads itself.
9674
9675 * remote-fileio.c: Include target.h.
9676 (remote_fileio_write_bytes): Delete.
9677 (remote_fileio_func_open, remote_fileio_func_write)
9678 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9679 target_read_memory.
9680 (remote_fileio_func_stat): Use target_read_memory and
9681 target_write_memory.
9682 (remote_fileio_func_gettimeofday): Use target_write_memory.
9683 (remote_fileio_func_system): Use target_read_memory.
9684 * remote.c (remote_write_bytes): Make it static.
9685 (remote_read_bytes): Don't handle partial reads here.
9686 * remote.h (remote_read_bytes): Delete declaration.
9687
efc0eabd
PA
96882011-01-25 Pedro Alves <pedro@codesourcery.com>
9689
9690 Simplify XML parsing a bit.
9691
9692 * xml-support.h (gdb_xml_parse_quick): Declare.
9693 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9694 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9695 parameter.
9696 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9697 gdb_xml_create_parser_and_cleanup_1.
9698 (gdb_xml_parse_quick): New.
9699 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9700 * osdata.c (osdata_parse): Ditto.
9701 * remote.c (remote_threads_info): Ditto.
9702 * solib-target.c (solib_target_parse_libraries): Ditto.
9703 * xml-syscall.c (syscall_parse_xml): Ditto.
9704 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9705
314d366a
KB
97062011-01-24 Kevin Buettner <kevinb@redhat.com>
9707
9708 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9709 with remote-mips.o added to gdb_target_obs.
9710 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9711
a491d753
PA
97122011-01-24 Pedro Alves <pedro@codesourcery.com>
9713
9714 * ada-valprint.c (val_print_packed_array_elements): Pass the
9715 correct struct value to val_print.
9716 (ada_val_print_1): Ditto.
9717
490f124f
PA
97182011-01-24 Pedro Alves <pedro@codesourcery.com>
9719
9720 Don't lose embedded_offset in printing routines throughout.
9721
9722 * valprint.h (val_print_array_elements): Change prototype.
9723 * valprint.c (val_print_array_elements): Add `embedded_offset'
9724 parameter, and adjust to pass it down to val_print, while passing
9725 `valaddr' or `address' unmodified. Take embedded_offset into
9726 account when checking repetitions.
9727 * c-valprint.c (c_val_print): Pass embedded_offset to
9728 val_print_array_elements instead of adjusting `valaddr' and
9729 `address'.
9730 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9731 embedded_offset to val_print_array_elements instead of adjusting
9732 `valaddr'.
9733 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9734 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9735 val_print_array_elements and pascal_object_print_value_fields
9736 instead of adjusting `valaddr'.
9737 (pascal_object_print_value_fields): Add `offset' parameter, and
9738 adjust to use it.
9739 (pascal_object_print_value): Add `offset' parameter, and adjust to
9740 use it.
9741 (pascal_object_print_static_field): Use
9742 value_contents_for_printing/value_embedded_offset, rather than
9743 value_contents.
9744 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9745 parameter, and adjust to use it. Use
9746 value_contents_for_printing/value_embedded_offset, rather than
9747 value_contents.
9748 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9749 (ada_val_print_array): Add `offset' parameter, and adjust to use
9750 it.
9751 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9752 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9753 Instead work with offsets. Use
9754 value_contents_for_printing/value_embedded_offset, rather than
9755 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9756 and use value_from_pointer to extract a target pointer, rather
9757 than value_from_longest.
9758 (print_variant_part): Add `offset' parameter. Replace
9759 `outer_valaddr' parameter by a new `outer_offset' parameter.
9760 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9761 (ada_value_print): Use
9762 value_contents_for_printing/value_embedded_offset, rather than
9763 value_contents.
9764 (print_record): Add `offset' parameter, and adjust to pass it
9765 down.
9766 (print_field_values): Add `offset' parameter. Replace
9767 `outer_valaddr' parameter by a new `outer_offset' parameter.
9768 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9769 Use value_contents_for_printing/value_embedded_offset, rather than
9770 value_contents.
9771 * d-valprint.c (dynamic_array_type): Use
9772 value_contents_for_printing/value_embedded_offset, rather than
9773 value_contents.
9774 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9775 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9776 (java_print_value_fields): Take `offset' into account. Don't
9777 re-adjust `valaddr'. Instead pass down adjusted offsets.
9778 (java_val_print): Take `embedded_offset' into account. Pass it to
9779 java_print_value_fields.
9780 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9781 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9782 down adjusted offsets.
9783 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9784 (f_val_print): Take `embedded_offset' into account.
9785
7bfc9434
JB
97862011-01-21 Joel Brobecker <brobecker@adacore.com>
9787
9788 * inflow.c: Include "gdbcmd.h".
9789 (interactive_mode): New static global, moved here from top.c.
9790 (show_interactive_mode): New function, moved here from top.c.
9791 use gdb_has_a_terminal instead of input_from_terminal_p to
9792 determine the current mode.
9793 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9794 setting.
9795 (_initialize_inflow): Add the "set/show interactive-mode"
9796 commands. Moved here from top.c, after having adjusted slightly
9797 the help text.
9798 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9799 to inflow.c.
9800 (input_from_terminal_p): Remove handling of "interactive-mode"
9801 setting, moved to infow.c.
9802 (init_main): Remove creation of the "set/show interactive-mode"
9803 commands, moved to inflow.c.
9804
44603653
JB
98052011-01-19 Joel Brobecker <brobecker@adacore.com>
9806
9807 * NEWS: Add entry for native ia64-hpux support.
9808
4694da01
TT
98092011-01-19 Tom Tromey <tromey@redhat.com>
9810
9811 PR mi/8618:
9812 * thread.c (free_thread): Free 'name'.
9813 (print_thread_info): Emit thread name. Change CLI output.
9814 (thread_name_command): New function.
9815 (do_captured_thread_select): Emit newline.
9816 (_initialize_thread): Register 'thread name' command.
9817 * target.h (struct target_ops) <to_thread_name>: New field.
9818 (target_thread_name): New macro.
9819 * target.c (update_current_target): Handle to_thread_name.
9820 * python/py-infthread.c (thpy_get_name): New function.
9821 (thpy_set_name): Likewise.
9822 (thread_object_getset): Add "name".
9823 * linux-nat.c (linux_nat_thread_name): New function.
9824 (linux_nat_add_target): Set to_thread_name.
9825 * gdbthread.h (struct thread_info) <name>: New field.
9826
10d44370
JB
98272011-01-18 Joel Brobecker <brobecker@adacore.com>
9828
9829 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9830 (ada_val_print_1): Likewise.
9831
e3acb115
JB
98322011-01-18 Joel Brobecker <brobecker@adacore.com>
9833
9834 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9835 upper limit address is not greater than the function end address
9836 when the upper limit could not be computed using the debugging
9837 info.
9838
dc92e161
TT
98392011-01-17 Tom Tromey <tromey@redhat.com>
9840
9841 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9842 get_regcomp_error.
9843 * utils.c: Include gdb_regex.h.
9844 (do_regfree_cleanup): New function.
9845 (make_regfree_cleanup): Likewise.
9846 (get_regcomp_error): Likewise.
9847 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9848
f55af66d
TT
98492011-01-17 Tom Tromey <tromey@redhat.com>
9850
9851 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9852 re_compile_fastmap.
9853
a5a44b53
PM
98542011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9855
9856 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9857 for internal variables.
9858 (last_was_structop): New static variable.
9859 (COMPLETE): New token.
9860 (field_exp): New rule to group all '.' suffix handling.
9861 Add mark_struct_expression calls when approriate to be able
9862 to correctly find fields for completion.
9863 (yylex): Adapt to handle field completion and set INTVAR when
9864 required.
9865
2c291032
YQ
98662011-01-14 Yao Qi <yao@codesourcery.com>
9867
9868 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9869 save_reggroup, restore_reggroup and all_reggroup.
9870
447b483c
JB
98712011-01-14 Joel Brobecker <brobecker@adacore.com>
9872
9873 * ada-valprint. (ada_printchar): Use the correct type length
9874 in call to ada_emit_char.
9875 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9876
7b64a93b
PM
98772011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9878
9879 * solib-som.h (hpux_major_release): Declare variable here.
9880 * solib-som.c: Remove <sys/utsname.h> header.
9881 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9882 (hpux_major_release): Make global, change default value to
9883 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 9884 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
9885 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9886 Add "solib-som.h" header.
9887 (set_hpux_major_release): New function.
9888 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9889
4e18c053
MF
98902011-01-14 Mike Frysinger <vapier@gentoo.org>
9891
9892 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9893
a9df6b22
JB
98942011-01-14 Joel Brobecker <brobecker@adacore.com>
9895
9896 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9897 new-line at end of warning message.
9898 (ia64_hpux_store_register): Remove trailing new-line at end of
9899 error message.
9900 * ia64-hpux-tdep.c: Rephrase comment.
9901 * solib-ia64-hpux.c (struct dld_info): Change type of field
9902 dld_flags from "long long" to ULONGEST.
9903
ecb956dd
PA
99042011-01-14 Pedro Alves <pedro@codesourcery.com>
9905
9906 * target.h (deprecated_child_ops): Delete declaration.
9907 * target.c (deprecated_child_ops): Delete definition.
9908
76adfcae
PA
99092011-01-14 Pedro Alves <pedro@codesourcery.com>
9910
9911 * Makefile.in (hpux-thread.o): Delete rule.
9912 * configure.ac: Don't check for HPUX DCE threads support.
9913 * configure, config.in: Regenerate.
9914 * hppa-hpux-nat.c (child_suppress_run): Delete.
9915 (hppa_hpux_child_can_run): Delete.
9916 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9917 * hpux-thread.c: Delete.
9918
042e866e
JB
99192011-01-13 Joel Brobecker <brobecker@adacore.com>
9920
9921 * hpux-thread.c (hpux_pid_to_str): Delete.
9922
4ffa5a33
JB
99232011-01-13 Joel Brobecker <brobecker@adacore.com>
9924
9925 * ada-valprint.c (ada_emit_char): Remove strange code.
9926 Check that c is <= UCHAR_MAX before passing it to isascii.
9927 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9928
de8fa76c
JB
99292011-01-13 Joel Brobecker <brobecker@adacore.com>
9930
9931 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9932 to the case where instream is stdin.
9933
c4de7027
JB
99342011-01-13 Joel Brobecker <brobecker@adacore.com>
9935
9936 * ia64-tdep.h (struct regcache): Forward declare.
9937 (struct ia64_infcall_ops): New struct type.
9938 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9939 and "infcall_ops".
9940 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9941 Renames ia64_find_global_pointer.
9942 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9943 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9944 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9945 methods.
9946 (ia64_infcall_ops): New static global constant.
9947 (ia64_gdbarch_init): Set tdep->infcall_ops.
9948 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9949 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9950 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9951 (ia64_hpux_dummy_code): New static global constant.
9952 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9953 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9954 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9955 New function.
9956 (ia64_hpux_infcall_ops): New static global constant.
9957 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9958 for inferior function calls to work properly on ia64-hpux.
9959
77ca787b
JB
99602011-01-13 Joel Brobecker <brobecker@adacore.com>
9961
9962 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9963 * ia64-tdep.h (struct frame_info): forward declaration.
9964 (struct gdbarch_tdep): Add field size_of_register_frame.
9965 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9966 to determine the size of the register frame.
9967 (ia64_size_of_register_frame): New function.
9968 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9969 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9970 (IA64_HPUX_UREG_REASON): New macro.
9971 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9972 New functions.
9973 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9974 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9975 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9976 objects.
9977
92c9a463
JB
99782011-01-13 Joel Brobecker <brobecker@adacore.com>
9979
9980 Add support for ia64-hpux.
9981 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9982 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9983
9984 * configure.host: Add handling for ia64-hpux hosts. Add associated
9985 floatformats.
9986 * configure.tgt: Add handling for ia64-hpux targets.
9987 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9988 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9989 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9990
f688d93f
JB
99912011-01-13 Joel Brobecker <brobecker@adacore.com>
9992
9993 [ttrace] Compute thread list immediately after attach.
9994 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9995 New subprogram.
9996 (inf_ttrace_attach): Use it.
9997
1b89e62f
JB
99982011-01-13 Joel Brobecker <brobecker@adacore.com>
9999
10000 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10001 if we could not determine the frame's function address. Instead,
10002 use the frame's PC, and then continue.
10003
3e5e6e2a
JB
100042011-01-13 Joel Brobecker <brobecker@adacore.com>
10005
10006 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10007 not already defined.
10008
825d6d8a
JB
100092011-01-13 Joel Brobecker <brobecker@adacore.com>
10010
10011 * ia64-tdep.c (ia64_struct_type_p): New function.
10012 (ia64_extract_return_value): Handle integral values that are
10013 less than 8 bytes long.
10014 (ia64_push_dummy_call): Likewise.
10015
7458e667
JB
100162011-01-13 Joel Brobecker <brobecker@adacore.com>
10017
10018 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10019 floatformat_ia64_ext.
10020 (floatformat_ia64_ext_big): New static const.
10021 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10022
1b05df00
TT
100232011-01-12 Tom Tromey <tromey@redhat.com>
10024
10025 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10026 messages.
10027 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10028 (mi_cmd_thread_list_ids): Likewise.
10029 (mi_cmd_data_list_changed_registers): Likewise.
10030 (mi_cmd_data_list_register_values): Likewise.
10031 (mi_cmd_data_write_register_values): Likewise.
10032 (mi_cmd_data_evaluate_expression): Likewise.
10033 (mi_cmd_data_read_memory): Likewise.
10034 (mi_cmd_data_read_memory_bytes): Likewise.
10035 (mi_cmd_data_write_memory): Likewise.
10036 (mi_cmd_enable_timings): Likewise.
10037 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10038 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10039 (mi_cmd_var_delete): Likewise.
10040 (mi_cmd_var_set_format): Likewise.
10041 (mi_cmd_var_show_format): Likewise.
10042 (mi_cmd_var_info_num_children): Likewise.
10043 (mi_cmd_var_list_children): Likewise.
10044 (mi_cmd_var_info_type): Likewise.
10045 (mi_cmd_var_info_expression): Likewise.
10046 (mi_cmd_var_show_attributes): Likewise.
10047 (mi_cmd_var_assign): Likewise.
10048 (mi_cmd_var_update): Likewise.
10049 (mi_cmd_enable_pretty_printing): Likewise.
10050 (mi_cmd_var_set_update_range): Likewise.
10051 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10052 messages.
10053 (mi_cmd_target_file_put): Likewise.
10054 (mi_cmd_target_file_delete): Likewise.
10055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10056 messages.
10057 (mi_cmd_stack_info_depth): Likewise.
10058 (mi_cmd_stack_list_locals): Likewise.
10059 (mi_cmd_stack_list_args): Likewise.
10060 (mi_cmd_stack_select_frame): Likewise.
10061 (mi_cmd_stack_select_frame): Likewise.
10062 (mi_cmd_stack_info_frame): Likewise.
10063 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10064 messages.
10065 (mi_cmd_file_list_exec_source_files): Likewise.
10066 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10067 (mi_cmd_env_cd): Likewise.
10068 (mi_cmd_env_path): Likewise.
10069 (mi_cmd_env_dir): Likewise.
10070 (mi_cmd_inferior_tty_show): Likewise.
10071 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10072 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10073 (mi_cmd_break_watch): Likewise.
10074
ad422571
TJB
100752011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10076
10077 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10078 (ppc_linux_insert_hw_breakpoint): Likewise.
10079 (ppc_linux_remove_hw_breakpoint): Likewise.
10080 (ppc_linux_insert_watchpoint): Likewise.
10081
c2ff108b
JK
100822011-01-12 Andrew Burgess <aburgess@broadcom.com>
10083 Jan Kratochvil <jan.kratochvil@redhat.com>
10084
10085 PR fortran/11104 and DWARF unbound arrays detection.
10086 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10087 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10088 unspecified upper bound.
10089 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10090 variables array_size_array, tmp_type and offset_item. New variable
10091 array. Remove call to f77_get_upperbound. New variables array_type
10092 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10093 the final call to deprecated_set_value_type.
10094
41e8491f
JK
100952011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10096
10097 Make value allocations more lazy.
10098 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10099 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10100 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10101 instead of allocate_value and set_value_lazy.
10102 * findvar.c (value_of_register_lazy): Likewise.
10103 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10104 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10105 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10106 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10107 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10108 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10109 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10110 the end, remove set_value_lazy there.
10111 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10112 instead of allocate_value and set_value_lazy when possible.
10113 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10114 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10115 of allocate_value and set_value_lazy.
10116 (value_from_contents_and_address): Use allocate_value_lazy instead of
10117 allocate_value and set_value_lazy when possible.
10118
b716877b
AB
101192011-01-12 Andrew Burgess <aburgess@broadcom.com>
10120
10121 * disasm.c (dump_insns): Support dumping opcodes for MI.
10122 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10123 dumping of instruction opcodes.
10124
d5ae309f
JB
101252011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10126
10127 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10128 appropiately.
10129
98871305
TT
101302011-01-11 Tom Tromey <tromey@redhat.com>
10131
10132 * thread.c (do_captured_thread_select): Emit newline before
10133 printing frame.
10134
c378eb4e
MS
101352011-01-11 Michael Snyder <msnyder@vmware.com>
10136
10137 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10138 * score-tdep.c: Ditto.
10139 * score-tdep.h: Ditto.
10140 * ser-base.c: Ditto.
10141 * ser-go32.c: Ditto.
10142 * serial.c: Ditto.
10143 * serial.h: Ditto.
10144 * ser-mingw.c: Ditto.
10145 * ser-pipe.c: Ditto.
10146 * ser-tcp.c: Ditto.
10147 * ser-unix.c: Ditto.
10148 * sh64-tdep.c: Ditto.
10149 * shnbsd-nat.c: Ditto.
10150 * sh-tdep.c: Ditto.
10151 * sh-tdep.h: Ditto.
10152 * solib.c: Ditto.
10153 * solib-darwin.c: Ditto.
10154 * solib-frv.c: Ditto.
10155 * solib.h: Ditto.
10156 * solib-irix.c: Ditto.
10157 * solib-osf.c: Ditto.
10158 * solib-pa64.c: Ditto.
10159 * solib-som.c: Ditto.
10160 * solib-spu.c: Ditto.
10161 * solib-sunos.c: Ditto.
10162 * solib-svr4.c: Ditto.
10163 * solist.h: Ditto.
10164 * sol-thread.c: Ditto.
10165 * somread.c: Ditto.
10166 * source.c: Ditto.
10167 * source.h: Ditto.
10168 * sparc64-linux-tdep.c: Ditto.
10169 * sparc64-tdep.c: Ditto.
10170 * sparc-linux-nat.c: Ditto.
10171 * sparc-linux-tdep.c: Ditto.
10172 * sparc-sol2-nat.c: Ditto.
10173 * sparc-sol2-tdep.c: Ditto.
10174 * sparc-tdep.c: Ditto.
10175 * sparc-tdep.h: Ditto.
10176 * spu-tdep.c: Ditto.
10177 * stabsread.c: Ditto.
10178 * stabsread.h: Ditto.
10179 * stack.c: Ditto.
10180 * symfile.c: Ditto.
10181 * symfile.h: Ditto.
10182 * symmisc.c: Ditto.
10183 * symtab.c: Ditto.
10184 * symtab.h: Ditto.
10185 * target.c: Ditto.
10186 * target-descriptions.c: Ditto.
10187 * target-descriptions.h: Ditto.
10188 * target.h: Ditto.
10189 * target-memory.c: Ditto.
10190 * terminal.h: Ditto.
10191 * thread.c: Ditto.
10192 * top.c: Ditto.
10193 * tracepoint.c: Ditto.
10194 * tracepoint.h: Ditto.
10195 * trad-frame.h: Ditto.
10196 * typeprint.c: Ditto.
10197
581e13c1
MS
101982011-01-11 Michael Snyder <msnyder@vmware.com>
10199
10200 * ui-file.c: Comment cleanup, mostly periods and spaces.
10201 * ui-file.h: Ditto.
10202 * ui-out.c: Ditto.
10203 * ui-out.h: Ditto.
10204 * utils.c: Ditto.
10205 * v850-tdep.c: Ditto.
10206 * valarith.c: Ditto.
10207 * valops.c: Ditto.
10208 * valprint.c: Ditto.
10209 * valprint.h: Ditto.
10210 * value.c: Ditto.
10211 * value.h: Ditto.
10212 * varobj.c: Ditto.
10213 * varobj.h: Ditto.
10214 * vax-tdep.c: Ditto.
10215 * vec.c: Ditto.
10216 * vec.h: Ditto.
10217 * version.h: Ditto.
10218 * windows-nat.c: Ditto.
10219 * windows-tdep.c: Ditto.
10220 * xcoffread.c: Ditto.
10221 * xcoffsolib.c: Ditto.
10222 * xml-support.c: Ditto.
10223 * xstormy16-tdep.c: Ditto.
10224 * xtensa-tdep.c: Ditto.
10225 * xtensa-tdep.h: Ditto.
10226
90e4670f
TJB
102272011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10228
10229 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10230 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10231
e09342b5
TJB
102322011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10233 Thiago Jung Bauermann <bauerman@br.ibm.com>
10234
10235 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10236 * breakpoint.h
e09342b5
TJB
10237 (struct breakpoint_ops) <resources_needed>: New method.
10238 Initialize to NULL in all existing breakpoint_ops instances.
10239 (struct breakpoint) <exact>: New field.
10240 (target_exact_watchpoints): Declare external global.
10241 * breakpoint.c (target_exact_watchpoints): New global flag.
10242 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10243 b->enable_state to bp_enabled before calling
10244 hw_watchpoint_used_count.
10245 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10246 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10247 if available.
10248 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10249 if the watchpoint is exact.
10250 (resources_needed_watchpoint): New function.
10251 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10252 (watch_command_1): Set b->exact if the user asked for an exact
10253 watchpoint and one can be set.
10254 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10255 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10256 the user asks for an exact watchpoint and one can be set. Return
10257 number of needed debug registers to watch the expression.
10258 * gdbtypes.c (is_scalar_type): New function, based on
10259 valprint.c:scalar_type_p.
10260 (is_scalar_type_recursive): New function.
10261 * gdbtypes.h (is_scalar_type_recursive): Declare.
10262 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10263 handle regions when ranged watchpoints are available.
10264 (create_watchpoint_request): New function.
10265 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10266 create_watchpoint_request.
10267 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10268 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10269 `set powerpc' and `show powerpc' commands.
10270 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10271 Mention documentation comment in the target macro.
10272 (target_region_ok_for_hw_watchpoint): Document return value.
10273
9fa40276
TJB
102742011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10275
10276 * breakpoint.c (update_watchpoint): Decide on using a software or
10277 hardware watchpoint after the bp_locations are created.
10278
77b06cd7
TJB
102792010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10280
10281 Convert hardware watchpoints to use breakpoint_ops.
10282 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10283 <insert_location>: ... this. Return int instead of void.
10284 Accept pointer to struct bp_location instead of pointer to
10285 struct breakpoint. Adapt all implementations.
f2eb0bc8 10286 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10287 <remove_location>: ... this. Accept pointer to struct bp_location
10288 instead of pointer to struct breakpoint. Adapt all implementations.
10289 * breakpoint.c (insert_catchpoint): Delete function.
10290 (insert_bp_location): Call the watchpoint or catchpoint's
10291 breakpoint_ops.insert method.
10292 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10293 breakpoint_ops.remove method.
10294 (insert_watchpoint, remove_watchpoint): New functions.
10295 (watchpoint_breakpoint_ops): New structure.
10296 (watch_command_1): Initialize the OPS field.
10297 * inf-child.c (inf_child_insert_fork_catchpoint)
10298 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10299 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10300 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10301 Delete functions.
10302 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10303 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10304 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10305 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10306 * target.c (update_current_target): Change default implementation of
10307 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10308 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10309 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10310 to_set_syscall_catchpoint to return_one.
10311 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10312 (debug_to_insert_exec_catchpoint): Report return value.
10313 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10314 (to_insert_exec_catchpoint): Change declaration to return int instead
10315 of void.
10316
9b20d036
MS
103172011-01-11 Michael Snyder <msnyder@vmware.com>
10318
10319 * arm-tdep.c: Internationalization.
10320 * c-lang.c: Ditto.
10321 * charset.c: Ditto.
10322 * fork-child.c: Ditto.
10323 * nto-procfs.c: Ditto.
10324 * ppc-sysv-tdep.c: Ditto.
10325 * procfs.c: Ditto.
10326 * remote-mips.c: Ditto.
10327 * remote.c: Ditto.
10328 * rs6000-nat.c: Ditto.
10329 * rs6000-tdep.c: Ditto.
10330 * target.c: Ditto.
10331 * valops.c: Ditto.
10332 * value.c: Ditto.
10333 * xml-support.c: Ditto.
10334 * mi/mi-cmd-break.c: Ditto.
10335 * mi/mi-cmd-var.c: Ditto.
10336 * mi/mi-interp.c: Ditto.
10337 * mi/mi-main.c: Ditto.
10338
dae477fe
AB
103392011-01-11 Andrew Burgess <aburgess@broadcom.com>
10340
10341 * remote-sim.c (gdbsim_store_register): Update API to
10342 sim_store_register to check more error conditions.
10343
0df8b418
MS
103442011-01-10 Michael Snyder <msnyder@vmware.com>
10345
10346 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10347 * nto-tdep.c: Ditto.
10348 * nto-tdep.h: Ditto.
10349 * objc-exp.y: Ditto.
10350 * objc-lang.c: Ditto.
10351 * objfiles.c: Ditto.
10352 * objfiles.h: Ditto.
10353 * observer.c: Ditto.
10354 * opencl-lang.c: Ditto.
10355 * osabi.c: Ditto.
10356 * parse.c: Ditto.
10357 * parser-defs.h: Ditto.
10358 * p-exp.y: Ditto.
10359 * p-lang.c: Ditto.
10360 * posix-hdep.c: Ditto.
10361 * ppcbug-rom.c: Ditto.
10362 * ppc-linux-nat.c: Ditto.
10363 * ppc-linux-tdep.c: Ditto.
10364 * ppc-linux-tdep.h: Ditto.
10365 * ppcnbsd-tdep.c: Ditto.
10366 * ppcobsd-tdep.c: Ditto.
10367 * ppcobsd-tdep.h: Ditto.
10368 * ppc-sysv-tdep.c: Ditto.
10369 * ppc-tdep.h: Ditto.
10370 * printcmd.c: Ditto.
10371 * proc-abi.c: Ditto.
10372 * proc-flags.c: Ditto.
10373 * procfs.c: Ditto.
10374 * proc-utils.h: Ditto.
10375 * progspace.h: Ditto.
10376 * prologue-value.c: Ditto.
10377 * prologue-value.h: Ditto.
10378 * psympriv.h: Ditto.
10379 * psymtab.c: Ditto.
10380 * p-typeprint.c: Ditto.
10381 * p-valprint.c: Ditto.
10382 * ravenscar-sparc-thread.c: Ditto.
10383 * ravenscar-thread.c: Ditto.
10384 * ravenscar-thread.h: Ditto.
10385 * record.c: Ditto.
10386 * regcache.c: Ditto.
10387 * regcache.h: Ditto.
10388 * remote.c: Ditto.
10389 * remote-fileio.c: Ditto.
10390 * remote-fileio.h: Ditto.
10391 * remote.h: Ditto.
10392 * remote-m32r-sdi.c: Ditto.
10393 * remote-mips.c: Ditto.
10394 * remote-sim.c: Ditto.
10395 * rs6000-aix-tdep.c: Ditto.
10396 * rs6000-nat.c: Ditto.
10397 * rs6000-tdep.c: Ditto.
10398
0d7a18f7
MS
103992011-01-10 Michael Snyder <msnyder@vmware.com>
10400
10401 * charset.c (validate): Internationalization.
10402 * coffread.c (read_one_sym): Ditto.
10403 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10404 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10405 * inflow.c (new_tty): Ditto.
10406 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10407 * m32c-tdep.c (m32c_return_value): Ditto.
10408 * mep-tdep.c (mep_store_return_value): Ditto.
10409 * score-tdep.c (score7_fetch_insn): Ditto.
10410 * ser-mingw.c (pipe_windows_open): Ditto.
10411 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10412 * spu-tdep.c (spu_register_type): Ditto.
10413 * tracepoint.c (trace_find_command): Ditto.
10414 * valarith.c (value_pos): Ditto.
10415
9a153e0b
JB
104162011-01-10 Joel Brobecker <brobecker@adacore.com>
10417
10418 * ada-valprint.c (printstr): Minor comment reformatting.
10419
35ecd2d6
MS
104202011-01-08 Michael Snyder <msnyder@vmware.com>
10421
10422 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10423 markup.
10424
1777feb0
MS
104252011-01-08 Michael Snyder <msnyder@vmware.com>
10426
10427 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10428 * hppa-hpux-tdep.c: Ditto.
10429 * hppa-linux-nat.c: Ditto.
10430 * hppa-linux-tdep.c: Ditto.
10431 * hppanbsd-tdep.c: Ditto.
10432 * hppa-tdep.c: Ditto.
10433 * hppa-tdep.h: Ditto.
10434 * hpux-thread.c: Ditto.
10435 * i386-cygwin-tdep.c: Ditto.
10436 * i386-darwin-nat.c: Ditto.
10437 * i386gnu-nat.c: Ditto.
10438 * i386-linux-nat.c: Ditto.
10439 * i386-linux-tdep.c: Ditto.
10440 * i386-nat.c: Ditto.
10441 * i386-nat.h: Ditto.
10442 * i386nbsd-tdep.c: Ditto.
10443 * i386-sol2-nat.c: Ditto.
10444 * i386-stub.c: Ditto.
10445 * i386-tdep.c: Ditto.
10446 * i386-tdep.h: Ditto.
10447 * i387-tdep.c: Ditto.
10448 * ia64-linux-nat.c: Ditto.
10449 * ia64-linux-tdep.c: Ditto.
10450 * ia64-tdep.c: Ditto.
10451 * infcall.c: Ditto.
10452 * infcall.h: Ditto.
10453 * infcmd.c: Ditto.
10454 * inferior.c: Ditto.
10455 * inferior.h: Ditto.
10456 * infloop.c: Ditto.
10457 * inflow.c: Ditto.
10458 * infrun.c: Ditto.
10459 * interps.c: Ditto.
10460 * interps.h: Ditto.
10461 * iq2000-tdep.c: Ditto.
10462 * irix5-nat.c: Ditto.
10463 * jit.c: Ditto.
10464 * jit.h: Ditto.
10465 * jv-exp.y: Ditto.
10466 * jv-lang.c: Ditto.
10467 * jv-lang.h: Ditto.
10468 * jv-typeprint.c: Ditto.
10469 * jv-valprint.c: Ditto.
10470 * language.c: Ditto.
10471 * language.h: Ditto.
10472 * linespec.c: Ditto.
10473 * linux-fork.c: Ditto.
10474 * linux-nat.c: Ditto.
10475 * linux-thread-db.c: Ditto.
10476 * lm32-tdep.c: Ditto.
10477
025bb325
MS
104782011-01-08 Michael Snyder <msnyder@vmware.com>
10479
10480 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10481 * m2-lang.c: Ditto.
10482 * m2-typeprint.c: Ditto.
10483 * m2-valprint.c: Ditto.
10484 * m32c-tdep.c: Ditto.
10485 * m32r-linux-nat.c: Ditto.
10486 * m32r-rom.c: Ditto.
10487 * m32r-tdep.c: Ditto.
10488 * m32r-tdep.h: Ditto.
10489 * m68hc11-tdep.c: Ditto.
10490 * m58klinux-nat.c: Ditto.
10491 * m68k-tdep.c: Ditto.
10492 * m88k-tdep.c: Ditto.
10493 * m88k-tdep.h: Ditto.
10494 * machoread.c: Ditto.
10495 * macrocmd.c: Ditto.
10496 * macroexp.c: Ditto.
10497 * macrotab.c: Ditto.
10498 * main.c: Ditto.
10499 * maint.c: Ditto.
10500 * mdebugread.c: Ditto.
10501 * mdebugread.h: Ditto.
10502 * memattr.c: Ditto.
10503 * memattr.h: Ditto.
10504 * memory-map.h: Ditto.
10505 * mep-tdep.c: Ditto.
10506 * microblaze-rom.c: Ditto.
10507 * microblaze-tdep.c: Ditto.
10508 * minsyms.c: Ditto.
10509 * mips-irix-tdep.c: Ditto.
10510 * mips-linux-nat.c: Ditto.
10511 * mips-linux-tdep.c: Ditto.
10512 * mips-linux-tdep.h: Ditto.
10513 * mipsnbsd-nat.c: Ditto.
10514 * mipsnbsd-tdep.c: Ditto.
10515 * mipsread.c: Ditto.
10516 * mips-tdep.c: Ditto.
10517 * mips-tdep.h: Ditto.
10518 * mn10300-linux-tdep.c: Ditto.
10519 * mn10300-tdep.c: Ditto.
10520 * mn10300-tdep.h: Ditto.
10521 * monitor.c: Ditto.
10522 * monitor.h: Ditto.
10523 * moxie-tdep.c: Ditto.
10524 * moxie-tdep.h: Ditto.
10525 * mt-tdep.c: Ditto.
10526
1642781b
MF
105272011-01-08 Mike Frysinger <vapier@gentoo.org>
10528
10529 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10530
394b0adb
JB
105312011-01-08 Robert Millan <rmh@gnu.org>
10532
10533 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10534
b670013c
MS
105352011-01-07 Michael Snyder <msnyder@vmware.com>
10536
10537 * charset.c (_initialize_charset): Fix typo in string.
10538
a743e542
MS
105392011-01-07 Michael Snyder <msnyder@vmware.com>
10540
10541 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10542 for i18n.
f2eb0bc8 10543 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10544 Split line so that operator goes to beginning of line.
10545 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10546 assignment out of if statement.
10547
0963b4bd
MS
105482011-01-07 Michael Snyder <msnyder@vmware.com>
10549
10550 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10551 * ada-lang.h: Ditto.
10552 * ada-tasks.c: Ditto.
10553 * ada-valprint.c: Ditto.
10554 * aix-threads.c: Ditto.
10555 * alpha-linux-nat.c: Ditto.
10556 * alpha-linux-tdep.c: Ditto.
10557 * alpha-mdebug-tdep.c: Ditto.
10558 * alpha-nat.c: Ditto.
10559 * alpha-osf1-tdep.c: Ditto.
10560 * alpha-tdep.c: Ditto.
10561 * alphabsd-nat.c: Ditto.
10562 * alphabsd-tdep.c: Ditto.
10563 * amd64-darwin-tdep.c: Ditto.
10564 * amd64-linux-nat.c: Ditto.
10565 * amd64-linux-tdep.c: Ditto.
10566 * amd64-sol2-tdep.c: Ditto.
10567 * amd64-tdep.c: Ditto.
10568 * amd64-fbsd-tdep.c: Ditto.
10569 * amd64-nbsd-tdep.c: Ditto.
10570 * amd64-obsd-tdep.c: Ditto.
10571 * amd64-linux-nat.c: Ditto.
10572 * amd64-linux-tdep.c: Ditto.
10573 * arm-tdep.c: Ditto.
10574 * arm-tdep.h: Ditto.
10575 * armnbsd-nat.c: Ditto.
10576 * avr-tdep.c: Ditto.
10577 * bfin-tdep.c: Ditto.
10578 * bsd-kvm.c: Ditto.
10579 * c-typeprintc: Ditto.
10580 * c-valprint.c: Ditto.
10581 * coff-pe-read.h: Ditto.
10582 * coffreead.c: Ditto.
10583 * cris-tdep.c: Ditto.
10584 * d-lang.c: Ditto.
10585 * darwin-nat-info.c: Ditto.
10586 * darwin-nat.c: Ditto.
10587 * dbug-rom.c: Ditto.
10588 * dbxread.c: Ditto.
10589 * dcache.c: Ditto.
10590 * dcache.h: Ditto.
10591 * dec-thread.c: Ditto.
10592 * defs.h: Ditto.
10593 * demangle.c: Ditto.
10594 * dicos-tdep.c: Ditto.
10595 * dictionary.c: Ditto.
10596 * dictionary.h: Ditto.
10597 * dink32-rom.c: Ditto.
10598 * disasm.c: Ditto.
10599 * doublest.c: Ditto.
10600 * dsrec.c: Ditto.
10601 * dummy-frame.c: Ditto.
10602 * dwarf2-frame.c: Ditto.
10603 * dwarf2expr.c: Ditto.
10604 * dwarf2loc.c: Ditto.
10605 * dwarf2read.c: Ditto.
10606 * elfread.c: Ditto.
10607 * environ.c: Ditto.
10608 * eval.c: Ditto.
10609 * event-top.h: Ditto.
10610 * exceptions.c: Ditto.
10611 * exceptions.h: Ditto.
10612 * exec.c: Ditto.
10613 * expprint.c: Ditto.
10614 * expression.h: Ditto.
10615 * f-exp.y: Ditto.
10616 * f-lang.c: Ditto.
10617 * f-lang.h: Ditto.
10618 * f-typeprint.c: Ditto.
10619 * f-valprint.c: Ditto.
10620 * fbsd-nat.c: Ditto.
10621 * findvar.c: Ditto.
10622 * fork-child.c: Ditto.
10623 * frame.c: Ditto.
10624 * frame.h: Ditto.
10625 * frv-linux-tdep.c: Ditto.
10626 * frv-tdep.c: Ditto.
10627 * gcore.c: Ditto.
10628 * gdb-stabs.h: Ditto.
10629 * gdb_assert.h: Ditto.
10630 * gdb_string.h: Ditto.
10631 * gdb_thread_db.h: Ditto.
10632 * gdb_wait.h: Ditto.
10633 * gdbarch.sh: Ditto.
10634 * gdbcore.h: Ditto.
10635 * gdbthread.h: Ditto.
10636 * gdbtypes.c: Ditto.
10637 * gdbtypes.h: Ditto.
10638 * gnu-nat.c: Ditto.
10639 * gnu-nat.h: Ditto.
10640 * gnu-v2-abi.c: Ditto.
10641 * gnu-v3-abi.c: Ditto.
10642 * go32-nat.c: Ditto.
10643 * gdbarch.c: Regenerate.
10644 * gdbarch.h: Regenerate.
10645
ac74f770
MS
106462011-01-07 Michael Snyder <msnyder@vmware.com>
10647
10648 * ax-gdb.c: Adjust some long output strings.
10649 * breakpoint.c: Ditto.
10650 * charset.c: Ditto.
10651 * cp-abi.c: Ditto.
10652 * infcall.c: Ditto.
10653 * infrun.c: Ditto.
10654 * linux-nat.c: Ditto.
10655 * solib-pa64.c: Ditto.
10656 * solib-som.c: Ditto.
10657
d8e22779
TT
106582011-01-06 Tom Tromey <tromey@redhat.com>
10659
10660 PR python/12367:
10661 * NEWS: Add item.
10662 * python/python.c (GdbMethods): Add "newest_frame" method.
10663 * python/python-internal.h (gdbpy_newest_frame): Declare.
10664 * python/py-frame.c (gdbpy_newest_frame): New function.
10665
a255712f
PP
106662010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10667
10668 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10669 * jit.c (jit_debug): New variable.
10670 (show_jit_debug): New function.
10671 (struct target_buffer): Use ULONGEST.
10672 (bfd_open_from_target_memory): Likewise.
10673 (jit_register_code, jit_inferior_init): Add debug output.
10674 (_initialize_jit): Register "debug jit" command.
10675
ccfc3d6e
TT
106762011-01-06 Tom Tromey <tromey@redhat.com>
10677
10678 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10679 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10680 and ARCH_FRAME.
10681
57126e4a
TT
106822011-01-06 Tom Tromey <tromey@redhat.com>
10683
10684 * python/py-frame.c (frapy_block): Use get_frame_block.
10685
16dfc9ce
JB
106862011-01-06 Joel Brobecker <brobecker@adacore.com>
10687
10688 Do not stop on SIGPRIO signals by default
10689 * infrun.c (_initialize_infrun): Unset signal_stop and
10690 signal_print for TARGET_SIGNAL_PRIO.
10691
b1ce2347
JB
106922011-01-06 Joel Brobecker <brobecker@adacore.com>
10693
10694 * ada-tasks.c: Fix style violation in comment.
10695
8f7e195f
JB
106962011-01-06 Joel Brobecker <brobecker@adacore.com>
10697
10698 * linespec.c (decode_compound, find_method): Remove trailing \n
10699 at end of error string.
10700 * solib-irix.c (irix_current_sos): Likewise.
10701 * varobj.c (uninstall_variable): Likewise.
10702
e9bdf92c
JB
107032011-01-06 Joel Brobecker <brobecker@adacore.com>
10704
10705 * copyright.py: New script.
10706 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10707 Launch emacs without exec'ing. Call copyright.py afterwards.
10708
3e43a32a
MS
107092011-01-05 Michael Snyder <msnyder@vmware.com>
10710
10711 * addrmap.c: Shorten lines of >= 80 columns.
10712 * arch-utils.c: Ditto.
10713 * arch-utils.h: Ditto.
10714 * ax-gdb.c: Ditto.
10715 * ax-general.c: Ditto.
10716 * bcache.c: Ditto.
10717 * blockframe.c: Ditto.
10718 * breakpoint.c: Ditto.
10719 * buildsym.c: Ditto.
10720 * c-lang.c: Ditto.
10721 * c-typeprint.c: Ditto.
10722 * charset.c: Ditto.
10723 * coffread.c: Ditto.
10724 * command.h: Ditto.
10725 * corelow.c: Ditto.
10726 * cp-abi.c: Ditto.
10727 * cp-namespace.c: Ditto.
10728 * cp-support.c: Ditto.
10729 * dbug-rom.c: Ditto.
10730 * dbxread.c: Ditto.
10731 * defs.h: Ditto.
10732 * dfp.c: Ditto.
10733 * dfp.h: Ditto.
10734 * dictionary.c: Ditto.
10735 * disasm.c: Ditto.
10736 * doublest.c: Ditto.
10737 * dwarf2-frame.c: Ditto.
10738 * dwarf2expr.c: Ditto.
10739 * dwarf2loc.c: Ditto.
10740 * dwarf2read.c: Ditto.
10741 * elfread.c: Ditto.
10742 * eval.c: Ditto.
10743 * event-loop.c: Ditto.
10744 * event-loop.h: Ditto.
10745 * exceptions.h: Ditto.
10746 * exec.c: Ditto.
10747 * expprint.c: Ditto.
10748 * expression.h: Ditto.
10749 * f-lang.c: Ditto.
10750 * f-valprint.c: Ditto.
10751 * findcmd.c: Ditto.
10752 * frame-base.c: Ditto.
10753 * frame-unwind.c: Ditto.
10754 * frame-unwind.h: Ditto.
10755 * frame.c: Ditto.
10756 * frame.h: Ditto.
10757 * gcore.c: Ditto.
10758 * gdb-stabs.h: Ditto.
10759 * gdb_assert.h: Ditto.
10760 * gdb_dirent.h: Ditto.
10761 * gdb_obstack.h: Ditto.
10762 * gdbcore.h: Ditto.
10763 * gdbtypes.c: Ditto.
10764 * gdbtypes.h: Ditto.
10765 * inf-ttrace.c: Ditto.
10766 * infcall.c: Ditto.
10767 * infcmd.c: Ditto.
10768 * inflow.c: Ditto.
10769 * infrun.c: Ditto.
10770 * inline-frame.h: Ditto.
10771 * language.c: Ditto.
10772 * language.h: Ditto.
10773 * libunwind-frame.c: Ditto.
10774 * libunwind-frame.h: Ditto.
10775 * linespec.c: Ditto.
10776 * linux-nat.c: Ditto.
10777 * linux-nat.h: Ditto.
10778 * linux-thread-db.c: Ditto.
10779 * machoread.c: Ditto.
10780 * macroexp.c: Ditto.
10781 * macrotab.c: Ditto.
10782 * main.c: Ditto.
10783 * maint.c: Ditto.
10784 * mdebugread.c: Ditto.
10785 * memattr.c: Ditto.
10786 * minsyms.c: Ditto.
10787 * monitor.c: Ditto.
10788 * monitor.h: Ditto.
10789 * objfiles.c: Ditto.
10790 * objfiles.h: Ditto.
10791 * osabi.c: Ditto.
10792 * p-typeprint.c: Ditto.
10793 * p-valprint.c: Ditto.
10794 * parse.c: Ditto.
10795 * printcmd.c: Ditto.
10796 * proc-events.c: Ditto.
10797 * procfs.c: Ditto.
10798 * progspace.c: Ditto.
10799 * progspace.h: Ditto.
10800 * psympriv.h: Ditto.
10801 * psymtab.c: Ditto.
10802 * record.c: Ditto.
10803 * regcache.c: Ditto.
10804 * regcache.h: Ditto.
10805 * remote-fileio.c: Ditto.
10806 * remote.c: Ditto.
10807 * ser-mingw.c: Ditto.
10808 * ser-tcp.c: Ditto.
10809 * ser-unix.c: Ditto.
10810 * serial.c: Ditto.
10811 * serial.h: Ditto.
10812 * solib-frv.c: Ditto.
10813 * solib-irix.c: Ditto.
10814 * solib-osf.c: Ditto.
10815 * solib-pa64.c: Ditto.
10816 * solib-som.c: Ditto.
10817 * solib-sunos.c: Ditto.
10818 * solib-svr4.c: Ditto.
10819 * solib-target.c: Ditto.
10820 * solib.c: Ditto.
10821 * somread.c: Ditto.
10822 * source.c: Ditto.
10823 * stabsread.c: Ditto.
10824 * stabsread.c: Ditto.
10825 * stack.c: Ditto.
10826 * stack.h: Ditto.
10827 * symfile-mem.c: Ditto.
10828 * symfile.c: Ditto.
10829 * symfile.h: Ditto.
10830 * symmisc.c: Ditto.
10831 * symtab.c: Ditto.
10832 * symtab.h: Ditto.
10833 * target-descriptions.c: Ditto.
10834 * target-memory.c: Ditto.
10835 * target.c: Ditto.
10836 * target.h: Ditto.
10837 * terminal.h: Ditto.
10838 * thread.c: Ditto.
10839 * top.c: Ditto.
10840 * tracepoint.c: Ditto.
10841 * tracepoint.h: Ditto.
10842 * ui-file.c: Ditto.
10843 * ui-file.h: Ditto.
10844 * ui-out.h: Ditto.
10845 * user-regs.c: Ditto.
10846 * user-regs.h: Ditto.
10847 * utils.c: Ditto.
10848 * valarith.c: Ditto.
10849 * valops.c: Ditto.
10850 * valprint.c: Ditto.
10851 * valprint.h: Ditto.
10852 * value.c: Ditto.
10853 * varobj.c: Ditto.
10854 * varobj.h: Ditto.
10855 * vec.h: Ditto.
10856 * xcoffread.c: Ditto.
10857 * xcoffsolib.c: Ditto.
10858 * xcoffsolib.h: Ditto.
10859 * xml-syscall.c: Ditto.
10860 * xml-tdesc.c: Ditto.
10861
9a2b4c1b
MS
108622011-01-05 Michael Snyder <msnyder@vmware.com>
10863
10864 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10865 * cli/cli-decode.c: Ditto.
10866 * cli/cli-dump.c: Ditto.
10867 * cli/cli-logging.c: Ditto.
10868 * cli/cli-script.c: Ditto.
10869 * cli/cli-setshow.c: Ditto.
10870 * common/signals.c: Ditto.
10871 * mi/mi-cmd-break.c: Ditto.
10872 * mi/mi-cmd-disas.c: Ditto.
10873 * mi/mi-cmd-stack.c: Ditto.
10874 * mi/mi-cmd-var.c: Ditto.
10875 * mi/mi-cmds.c: Ditto.
10876 * mi/mi-common.h: Ditto.
10877 * mi/mi-console.c: Ditto.
10878 * mi/mi-interp.c: Ditto.
10879 * mi/mi-main.c: Ditto.
10880 * osf-share/cma_attr.c: Ditto.
10881 * osf-share/cma_deb_core.h: Ditto.
10882 * osf-share/cma_debug_client.h: Ditto.
10883 * osf-share/cma_handle.h: Ditto.
10884 * osf-share/cma_mutex.h: Ditto.
10885 * osf-share/cma_stack_int.h: Ditto.
10886 * osf-share/cma_tcb_defs.h: Ditto.
10887 * python/py-auto-load.c: Ditto.
10888 * python/py-breakpoint.c: Ditto.
10889 * python/py-cmd.c: Ditto.
10890 * python/py-frame.c: Ditto.
10891 * python/py-objfile.c: Ditto.
10892 * python/py-param.c: Ditto.
10893 * python/py-progspace.c: Ditto.
10894 * python/py-symbol.c: Ditto.
10895 * python/py-value.c: Ditto.
10896 * python/python-internal.h: Ditto.
10897 * python/python.c: Ditto.
10898 * tui/tui-data.c: Ditto.
10899 * tui/tui-disasm.c: Ditto.
10900 * tui/tui-hooks.c: Ditto.
10901 * tui/tui-io.c: Ditto.
10902 * tui/tui-layout.c: Ditto.
10903 * tui/tui-regs.c: Ditto.
10904 * tui/tui-source.c: Ditto.
10905 * tui/tui-stack.c: Ditto.
10906 * tui/tui-win.c: Ditto.
10907 * tui/tui-windata.c: Ditto.
10908 * tui/tui-winsource.c: Ditto.
10909
44944448
JB
109102011-01-05 Joel Brobecker <brobecker@adacore.com>
10911
10912 * configure.ac, gdb.1: Copyright year update.
10913
ebedcab5
JK
109142011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10915
10916 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10917 this_pc_in_block, morestack_msym and morestack_name. Check for
10918 "__morestack" minimal symbol there.
10919
e5cc9f32
JB
109202011-01-03 Joel Brobecker <brobecker@adacore.com>
10921
10922 * symfile.c (find_sym_fns): Add call to dont_repeat.
10923
7b6bb8da
JB
109242011-01-01 Joel Brobecker <brobecker@adacore.com>
10925
10926 Copyright year update in most files (performed by copyright.sh).
10927
71ce852c
JB
109282011-01-01 Joel Brobecker <brobecker@adacore.com>
10929
10930 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 10931
c3c1ebe8 10932For older changes see ChangeLog-2010.
c906108c
SS
10933\f
10934Local Variables:
10935mode: change-log
10936left-margin: 8
10937fill-column: 74
10938version-control: never
57da7796 10939coding: utf-8
c906108c 10940End:
This page took 2.14761 seconds and 4 git commands to generate.