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