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