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