gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
784c47ee
SD
12011-11-20 Sanjoy Das <sdas@igalia.com>
2
3 * jit.c: Include gdb-dlfcn.h.
4 (loaded_jit_reader, reader_init_fn_sym): New static variables.
5 (jit_reader_load, jit_reader_load_command)
6 (jit_reader_unload_command): New functions.
7 (_initialize_jit): Add commands "jit-reader-load" and
8 "jit-reader-unload".
9
a2d08b9e
SD
102011-11-20 Sanjoy Das <sdas@igalia.com>
11
12 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
13 * config.in: Add new #define HAVE_LIBDL.
14 * configure.ac: Add check for -ldl.
15 * configure: Re-generated by autoconf.
16 * gdb-dlfcn.c: New file.
17 * gdb-dlfcn.h: New file.
18
b8e0a31c
SD
192011-11-20 Sanjoy Das <sdas@igalia.com>
20
21 * config.in: Add new #defines: JIT_READER_DIR and
22 JIT_READER_DIR_RELOCATABLE.
23 * configure.ac: New GDB directory entry for jit-reader-dir.
24 * configure: Re-generated by autoconf.
25 * jit.c: New static variable: const char *jit_reader_dir.
26 (_initialize_jit): Relocate jit_reader_dir.
27
f997c383
SD
282011-11-20 Sanjoy Das <sdas@igalia.com>
29
30 * Makefile.in: Add jit-reader.h as a header. Have it installed in
31 $(includedir)/gdb.
32 * configure.ac: Generate a correct value for TARGET_PTR for
33 jit-reader.h. Tell configure to generate jit-reader.h from
34 jit-reader.in.
35 * configure: Re-generated by autoconf.
36 * jit-reader.in: New file.
37 * jit.c: Include jit-reader.h.
38
dc8c0494
SD
392011-11-20 Sanjoy Das <sdas@igalia.com>
40
41 * MAINTAINERS (Write After Approval): Add myself to the list.
42
01efb936
UW
432011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
44
45 * findvar.c (read_frame_register_value): Respect value_offset
46 of the register value. Remove big-endian special case.
47
732f3f12
TT
482011-11-18 Tom Tromey <tromey@redhat.com>
49
50 PR build/7196:
51 * remote.c (putpkt_for_catch_errors): New function.
52 (remote_kill): Use it.
53
bfccc43c
YQ
542011-11-18 Yao Qi <yao@codesourcery.com>
55
56 * breakpoint.c (create_breakpoint): Produce query message according to
57 breakpoint's type.
58 Allocate tracepoint per correct type.
59 Don't check SALs for pending fast tracepoints.
60 * tracepoint.c (process_tracepoint_on_disconnect): New.
61 (disconnect_tracing): Call process_tracepoint_on_disconnect.
62
3ea46bff
YQ
632011-11-18 Yao Qi <yao@codesourcery.com>
64
65 * breakpoint.c (install_breakpoint): Add one more parameter so that
66 update_global_location_list is called conditionally.
67 (create_fork_vfork_event_catchpoint): Update.
68 (create_syscall_event_catchpoint): Update.
69 (create_breakpoint_sal): Update.
70 (create_breakpoint_sal): Update. Call do_cleanups before
71 install_breakpoint.
72 * ada-lang.c (create_ada_exception_catchpoint): Update.
73 * breakpoint.h (install_breakpoint): Update declaration.
74
598cfb71
UW
752011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
76
77 * spu-tdep.c (spu_return_value): Fix handling of
78 TYPE_CALLING_CONVENTION annotation.
79
caf4328c
UW
802011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * skip.c (skip_function_command): Work around uninitialized
83 variable warning.
84
2b54dda2
DM
852011-11-16 David S. Miller <davem@davemloft.net>
86
87 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
88 'tv_usec' to long for printf since these fields have a type which
89 varies.
90
93bf33fd
DE
912011-11-15 Doug Evans <dje@google.com>
92
93 * buildsym.c (add_symbol_to_list): Delete outdated comment.
94
9cc10fd1
PK
952011-11-15 Paul Koning <paul_koning@dell.com>
96
97 * python/py-type.c (typy_get_composite): New function.
98 (typy_nonzero): New function.
99 (typy_values): Rename from typy_fields.
100 (typy_fields): New function.
101 (typy_length): Raise exception if not struct, union, or enum type.
102 (typy_getitem): Ditto.
103 (typy_has_key): Ditto.
104 (typy_make_iter): Ditto.
105
c011a4f4
DE
1062011-11-15 Doug Evans <dje@google.com>
107
108 * NEWS: Mention new parameter basenames-may-differ.
109 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
110 ! basenames_may_differ.
111 * psymtab.c (lookup_partial_symtab): Ditto.
112 * symtab.c (lookup_symtab): Ditto.
113 (basenames_may_differ): New global.
114 (_initialize_symtab): New parameter basenames-may-differ.
115 * symtab.h (basenames_may_differ): Declare.
116
865ecab4
LM
1172011-11-15 Pedro Alves <pedro@codesourcery.com>
118 Luis Machado <lgustavo@codesourcery.com>
119
120 * auxv.c: Include observer.h.
121 (auxv_inferior_data_cleanup): New.
122 (invalidate_auxv_cache_inf): New.
123 (invalidate_auxv_cache): New.
124 (get_auxv_inferior_data): New.
125 (auxv_inferior_data): New static global.
126 (auxv_info): New structure.
127 (target_auxv_search): Use get_auxv_inferior_data instead of
128 target_read_alloc and don't free cached buffers.
129 (fprint_target_auxv): Likewise
130 (_initialize_auxv): Register per-inferior auxv cache and register
131 observers to invalidate auxv cache when needed.
132
ed59ded5
DE
1332011-11-14 Doug Evans <dje@google.com>
134
135 Make "!" an alias for "shell".
136 * NEWS: Add mention.
137 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
138 adding "!" command, always add it.
139 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
140 command of length one.
141
405f8e94
SS
1422011-11-14 Stan Shebs <stan@codesourcery.com>
143 Kwok Cheung Yeung <kcy@codesourcery.com>
144
145 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
146 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
147 the minimum instruction size for fast tracepoints.
148 * target.h (struct target_ops): Add new method
149 to_get_min_fast_tracepoint_insn_len.
150 (target_get_min_fast_tracepoint_insn_len): New.
151 * target.c (update_current_target): Set up new target operation.
152 * remote.c (remote_write_bytes_aux): Fix typo.
153 (remote_get_min_fast_tracepoint_insn_len): New.
154 (init_remote_ops): Initialize new field.
155
3e05895e
TT
1562011-11-14 Tom Tromey <tromey@redhat.com>
157
158 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
159 (encode_actions): Likewise.
160
1e4d1764
YQ
1612011-11-14 Yao Qi <yao@codesourcery.com>
162
163 * remote.c (struct remote_state): <install_in_trace> new field.
164 (PACKET_InstallInTrace): New enum value.
165 (remote_install_in_trace_feature): Support InstallInTrace.
166 (remote_supports_install_in_trace): Likewise.
167 (remote_protocol_features): Likewise.
168 (_initialize_remote): Likewise.
169 (remote_can_download_tracepoint): New.
170 * target.h (struct target): New field
171 `to_can_download_tracepoint'.
172 (target_can_download_tracepoint): New macro.
173 * target.c (update_current_target): Update.
174 * breakpoint.h (struct bp_location): Add comment on field
175 `duplicate'.
3ccd4ac6
YQ
176 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
177 and tracepoint.
1e4d1764
YQ
178 (remove_breakpoints): Don't remove tracepoints.
179 (tracepoint_locations_match ): New.
180 (breakpoint_locations_match): Call it.
181 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
182 (download_tracepoint_locations): New.
183 (update_global_location_list): Call it.
184 * tracepoint.c (find_matching_tracepoint): Delete.
185 (find_matching_tracepoint_location): Renamed from
186 find_matching_tracepoint. Return bp_location rather than
187 tracepoint.
188 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
189 tracepoint is found.
190
e8ba3115
YQ
1912011-11-14 Yao Qi <yao@codesourcery.com>
192
193 * target.h (struct target): <to_download_tracepoint> Change type
194 of parameter from tracepoint to bp_location.
195 * target.c (update_current_target): Update.
196 * tracepoint.c (start_tracing): Update.
197 * remote.c (remote_download_tracepoint): Remove loop for each location
198 of a tracepoint.
199
edcc485a
MR
2002011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
201
202 * i386-nat.c (i386_insert_hw_breakpoint): Call
203 i386_update_inferior_debug_regs.
204 (i386_remove_hw_breakpoint): Likewise.
205
3742cc8b
YQ
2062011-11-14 Yao Qi <yao@codesourcery.com>
207
208 * breakpoint.c (init_raw_breakpoint): Call
209 add_location_to_breakpoint to replace duplicated code.
210 (add_location_to_breakpoint): Adjust the breakpoint's
211 address prior to allocating a location.
212
71eba9c2 2132011-11-12 Matt Rice <ratmice@gmail.com>
214
215 * macrocmd.c (macro_no_macro_info): New function.
216 (macro_expand_command): Use macro_no_macro_info.
217 (macro_expand_once_command): Ditto.
218 (info_macro_command): Add argument processing,
219 move info_definitions_command here.
220 (_initialize_macrocmd): Remove info definitions command.
221 Add arguments to info macro help text.
222 * NEWS: Replace info definitions command with new info macro options.
223
731971ed
KS
2242011-11-11 Keith Seitz <keiths@redhat.com>
225
226 PR gdb/12843
227 * linespec.c (locate_first_half): Keep ':' if it looks
228 like it could be part of a Windows path starting with
229 a drive letter.
230
6953d224
PA
2312011-11-10 Pedro Alves <pedro@codesourcery.com>
232
233 * linux-nat.c (linux_nat_wait): Don't force waking up the event
234 loop when returning a TARGET_WAITKIND_NO_RESUMED.
235
0c94aa73
PA
2362011-11-10 Pedro Alves <pedro@codesourcery.com>
237
238 * target.c (target_waitstatus_to_string): Handle
239 TARGET_WAITKIND_NO_RESUMED.
240
f6b47be4
DE
2412011-11-10 Doug Evans <dje@google.com>
242
74e2f255
DE
243 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
244 `need_fullname'.
245 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
246 (map_partial_symbol_filenames): Ditto. All callers updated.
247 * psymtab.h (map_partial_symbol_filenames): Update prototype.
248 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
249 parameter need_fullname.
250
256f06f3
DE
251 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
252 * source.c (symtab_to_fullname): Ditto.
253
50f182aa
DE
254 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
255 * gdb-demangle.h: ... here. New file.
256 * demangle.c: #include "gdb-demangle.h".
257 (_initialize_demangler): Use initialize_file_ftype for prototype.
258 Move "set demangle" and "set asm-demangle" parameters here from utils.c
259 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
260 from utils.c
261 * utils.c: Update. #include "gdb-demangle.h".
262 * symtab.h (asm_demangle): Delete.
263 (demangle): Move declaration next to use.
264 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
265 * dwarf2read.c: #include "gdb-demangle.h".
266 * gnu-v2-abi.c: Ditto.
267 * jv-typeprint.c: Ditto.
268 * mdebugread.c: Ditto.
269 * p-typeprint.c: Ditto.
270 * stabsread.c: Ditto.
271 * printcmd.c: Ditto.
272 (asm_demangle): Delete declaration.
273 * tui/tui-stack.c: #include "gdb-demangle.h".
274
f6b47be4
DE
275 * python/py-type.c (typy_fields_items): Call check_typedef.
276
22355c90
JB
2772011-11-10 Joel Brobecker <brobecker@adacore.com>
278
279 * findvar.c (read_frame_register_value): Read the correct bytes
280 from registers on big-endian architectures.
281
bd119cf1 2822011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
283
284 * procfs.c (load_syscalls): Make a cleanup.
285 (open_procinfo_files): fd==0 is ok.
286
0a86f364
JB
2872011-11-10 Joel Brobecker <brobecker@adacore.com>
288
289 * procfs.c (iterate_over_mappings): Call do_cleanups before
290 returning.
291
9bc118a5
DE
2922011-11-09 Doug Evans <dje@google.com>
293
294 * gdbtypes.c (check_typedef): Document that this function can
295 throw an exception.
296
a7860e76
TT
2972011-11-09 Tom Tromey <tromey@redhat.com>
298
299 PR c++/13342:
300 * valops.c (value_full_object): Return early if real type is
301 smaller than the enclosing type.
302
60965737
YQ
3032011-11-08 Yao Qi <yao@codesourcery.com>
304
305 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
306
72a2e3dc
MI
3072011-11-08 Meador Inge <meadori@codesourcery.com>
308
309 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
310 register when the frame can't be determined.
311 * arm-tdep.c (arm_analyze_prologue): Ditto.
312
ce3b0ff7
SS
3132011-11-07 Stan Shebs <stan@codesourcery.com>
314
315 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
316
2b914b52
JB
3172011-11-07 Joel Brobecker <brobecker@adacore.com>
318
319 * infrun.c (handle_inferior_event): Minor reformatting.
320
6f809020
DE
3212011-11-05 Doug Evans <dje@google.com>
322
323 * source.c (forget_cached_source_info_for_objfile): Move call to
324 objfile->sf->qf->forget_cached_source_info outside of
325 ALL_OBJFILE_SYMTABS loop.
326 (forget_cached_source_info): Delete unused variable `s'.
327
75d12218
JK
3282011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
329
330 * i386-nat.c (dr_ref_count): Remove unused variable.
331
e565b837
DE
3322011-11-05 Doug Evans <dje@google.com>
333
334 * main.c (captured_main): Set lim_at_start before calling
335 make_command_stats_cleanup.
336
0a1c4d10
DE
3372011-11-04 Doug Evans <dje@google.com>
338
339 * utils.c: #include "timeval-utils.h".
340 (cmd_stats): Rename start_time to start_cpu_time.
341 New member start_wall_time.
342 (report_command_stats): Report wall time.
343 (make_command_stats_cleanup): Record start wall time.
344
a1d705ee
TT
3452011-11-04 Tom Tromey <tromey@redhat.com>
346
347 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
348
81de56be
RO
3492011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
350
351 * coff-pe-read.c: Include defs.h before bfd.h.
352
3ab1ec27
PM
3532011-11-04 Phil Muldoon <pmuldoon@redhat.com>
354
355 PR Python/13345
356
357 * python/python.c (python_run_simple_file): Expand tilde in path.
358
cd829959
PM
3592011-11-04 Phil Muldoon <pmuldoon@redhat.com>
360
361 PR Python/13363
362
363 * python/py-type.c (typy_lookup_type): Do not return a type in
364 an exception handler.
365
080ad648
JK
3662011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
367 Eli Zaretskii <eliz@gnu.org>
368
369 * linux-nat.c (_initialize_linux_nat): Improve help
370 for `info proc stat', `info proc status', `info proc cwd',
371 `info proc cmdline' and `info proc exe'.
372
3065dfb6
SS
3732011-11-02 Stan Shebs <stan@codesourcery.com>
374
375 String collection for tracepoints.
376 * NEWS: Mention string collection.
377 * common/ax.def (tracenz): New bytecode.
378 * ax-gdb.h (trace_string_kludge): Declare.
379 * ax-gdb.c: Include valprint.h and c-lang.h.
380 (trace_string_kludge): New global.
381 (gen_traced_pop): Add string case.
382 (agent_command): Add string case.
383 * tracepoint.h (decode_agent_options): Declare.
384 * tracepoint.c: Include cli-utils.h.
385 (decode_agent_options): New function.
386 (validate_actionline): Call it.
387 (encode_actions_1): Ditto.
388 * target.h (struct target_ops): New method to_supports_string_tracing.
389 (target_supports_string_tracing): New macro.
390 * target.c (update_current_target): Add to_supports_string_tracing.
391 * remote.c (struct remote_state): New field string_tracing.
392 (remote_string_tracing_feature): New function.
393 (remote_protocol_features): New feature tracenz.
394 (remote_supports_string_tracing): New function.
395 (init_remote_ops): Set to_supports_string_tracing.
396
f179e162
JK
3972011-11-02 Pedro Alves <pedro@codesourcery.com>
398 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 * linux-nat.c: Include cli/cli-utils.h.
401 (enum info_proc_what): New.
402 (linux_nat_info_proc_cmd): Rename to ...
403 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
404 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
405 status_f and stat_f from WHAT. Throw error on extra parameters.
406 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
407 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
408 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
409 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
410 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
411 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
412 `info proc cmdline', `info proc exe' and `info proc all' as real
413 subcommands of `info proc'.
414
7b35ec7f 4152011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
416
417 * Makefile.in: (SFILES): Add skip.c.
418 (HFILES_NO_SRCDIR): Add skip.h.
419 (COMMON_OBS): Add skip.o.
420 * skip.h, skip.c: New.
421 * breakpoint.h (set_default_breakpoint): Remove.
422 (get_sal_arch): Declare.
423 * breakpoint.c: Remove default_breakpoint_valid,
424 default_breakpoint_address, default_breakpoint_symtab,
425 default_breakpoint_line, default_breakpoint_pspace variables.
426 (get_sal_arch): Make public.
427 (set_default_breakpoint): Remove.
428 (parse_breakpoint_sals, create_breakpoint, clear_command,
429 decode_line_spec_1): Remove uses of default_breakpoint variables;
430 replaced with function calls into stack.c.
431 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
432 * cli/cli-cmds.c: Add skiplist.
433 (init_cmd_lists): Initialize skiplist.
434 (init_cli_cmds): Fix comment (classes of commands appear in
435 alphabetical order).
436 * infrun.c (handle_inferior_event): Add check that we don't step into
437 a function whose pc is marked for skip.
438 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
439 last_displayed_addr, last_displayed_symtab, last_displayed_line
440 variables.
441 (set_last_displayed_sal): New static function.
442 (print_frame_info): Switch call to set_default_breakpoint to call to
443 set_last_displayed_sal.
444 (clear_last_displayed_sal, last_displayed_sal_is_valid,
445 get_last_displayed_pspace, get_last_displayed_addr,
446 get_last_displayed_symtab, get_last_displayed_line,
447 get_last_displayed_sal): New public functions.
448 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
449 get_last_displayed_pspace, get_last_displayed_addr,
450 get_last_displayed_symtab, get_last_displayed_line,
451 get_last_displayed_sal): Declare.
452
b60e1588
JL
4532011-11-01 Justin Lebar <justin.lebar@gmail.com>
454
455 * MAINTAINERS (Write After Approval): Add myself to the list.
456
d31647d2
YQ
4572011-10-29 Yao Qi <yao@codesourcery.com>
458
459 * infcmd.c (disconnect_command): Call disconnect_tracing.
460
b1d96efd
JK
4612011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 Code cleanup.
464 * symtab.c (skip_prologue_sal): Code reformatting.
465
4dfb2365
JK
4662011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
467
468 PR symtab/13208
469 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
470 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
471 SAI.
472
0e5bf2a8
PA
4732011-10-28 Pedro Alves <pedro@codesourcery.com>
474
475 * linux-nat.c (linux_nat_filter_event): Remove `options'
476 parameter, and dead code that used it. If we're handling a
477 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
478 in our lwp list, re-add it.
479 (check_zombie_leaders): New.
480 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
481 wait for children with WNOHANG, and always wait for all children.
482 Don't check for no resumed children upfront. Simplify wait loop.
483 Check for zombie thread group leaders after handling all wait
484 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
485 unwaited-for children left.
486 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
487 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
488 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
489 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
490
821296b7
SA
4912011-10-28 Sterling Augustine <saugustine@google.com>
492
493 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
494 * symtab.c (free_completion_list): New function.
495 (do_free_completion_list): Likewise.
496 (default_make_symbol_completion_list_break_on): New variable
497 back_to. Call make_cleanup and discard_cleanups.
498 (make_source_files_completion_list): Likewise.
499
03c3051a
PK
5002011-10-28 Paul Koning <paul_koning@dell.com>
501
502 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
503 * NEWS: Mention deep_items.
504
8e7ebaf5
PA
5052011-10-28 Alen Skondro <askondro@gmail.com>
506
8de33dc2 507 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
508 defined.
509
e0c6ef61
MI
5102011-10-27 Meador Inge <meadori@codesourcery.com>
511
512 * MAINTAINERS (Write After Approval): Add myself to the list.
513
b56d6f31
JB
5142011-10-27 Joel Brobecker <brobecker@adacore.com>
515
516 * value.h (read_frame_register_value): Add declaration.
517 * findvar.c (read_frame_register_value): New function.
518 (value_from_register): Use read_frame_register_value
519 instead of get_frame_register_value + value_contents_copy
520 to get value contents.
521
d234ef5c
DE
5222011-10-27 Doug Evans <dje@google.com>
523
524 * cli/cli-cmds.c (source_script_with_search): Pass full path to
525 source_script_from_stream if it may have been found on the search path.
526 * python/py-auto-load.c (source_section_scripts): Pass full path to
527 source_python_script_for_objfile.
528 * python/python.c (source_python_script): Delete stream parameter.
529 All callers updated.
530 (source_python_script_for_objfile): Ditto.
531 * python/python-internal.h (source_python_script_for_objfile): Update.
532 * python/python.h (source_python_script): Update.
533
d849d44f
TT
5342011-10-27 Tom Tromey <tromey@redhat.com>
535
536 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
537 (ada_sals_for_line): Remove declarations.
538
2231f1fb
KP
5392011-10-27 Kevin Pouget <kevin.pouget@st.com>
540
541 Move unwind reasons to an external .def file
542 * frame.c (frame_stop_reason_string): Rewrite using
543 unwind_stop_reasons.def.
544 * frame.h (enum unwind_stop_reason): Likewise.
545 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
546 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
547 constants for bound-checking.
548 * unwind_stop_reasons.def: New file.
549 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
550 instead of a distinct value.
551
f77b9a5d
PM
5522011-10-27 Phil Muldoon <pmuldoon@redhat.com>
553
554 PR python/13331
555
556 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
557 (convert_values_to_python): Return on Python tuple allocation
558 failure. Return NULL on value conversion error.
559
76dce0be
PM
5602011-10-27 Phil Muldoon <pmuldoon@redhat.com>
561
562 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
563 (bppy_set_task): Ditto.
564 (bppy_delete_breakpoint): Ditto.
565 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
566 (gdbpy_lookup_global_symbol): Ditto.
567 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
568 * python/py-frame.c (frapy_is_valid): Ditto.
569 (frame_info_to_frame_object): Ditto.
570 * python/py-type.c (typy_lookup_type): Ditto.
571 (typy_getitem): Ditto.
572 (typy_has_key): Ditto.
573 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
574
f17b6955
JB
5752011-10-26 Joel Brobecker <brobecker@adacore.com>
576
577 * gdbarch.h: Regenerate.
578
86ba1042
JB
5792011-10-26 Meador Inge <meadori@codesourcery.com>
580
581 * gdbarch.sh (function_list): Use 'pstring' when printing
582 'gcore_bfd_target'.
583 * gdbarch.c: Regenerate.
584
c34fd852
UW
5852011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
586
587 * regcache.c (registers_changed_ptid): Invalidate thread architecture
588 and frame caches if PTID refers to all threads of a process.
589
931bb47f
UW
5902011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
591
592 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
593 to create_breakpoint.
594
88aed45e
UW
5952011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
596
597 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
598 (ppc_sysv_abi_push_dummy_call): Use it.
599 (do_ppc_sysv_return_value): Likewise.
600 (ppc64_sysv_abi_push_dummy_call): Likewise.
601 (ppc64_sysv_abi_return_value): Likewise.
602
3eaf3fa2
PK
6032011-10-26 Paul Koning <paul_koning@dell.com>
604
605 * python/lib/gdb/types.py (deepitems): New function.
606
913460fc
PK
6072011-10-25 Paul Koning <paul_koning@dell.com>
608
609 PR python/13327
610
611 * python/py-value.c (value_to_value_object): Remove fetching of
612 the value if it was lazy.
613 (valpy_get_is_lazy): New function.
614 (valpy_fetch_lazy): New function.
615
2b5b9d09
JB
6162011-10-24 Joel Brobecker <brobecker@adacore.com>
617
618 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
619 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
620
e21ffe51
PA
6212011-10-24 Pedro Alves <pedro@codesourcery.com>
622
623 * linux-nat.c (linux_handle_extended_wait): When handling a clone
624 event, in non-stop, if not stopping, make sure the new lwp has
625 last_resume_kind set to resume_continue. Assert that when we're
626 resuming the new lwp, its last_resume_kind is resume_continue.
627
7aee8dc2
PA
6282011-10-24 Pedro Alves <pedro@codesourcery.com>
629
630 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
631 already set when marking the event thread as not executing in
632 non-stop mode.
633
4b4e080e
PA
6342011-10-24 Pedro Alves <pedro@codesourcery.com>
635
636 * infrun.c (handle_inferior_event): Add debug output for
637 TARGET_WAITKIND_NO_HISTORY.
638
baacfb07
PM
6392011-10-24 Phil Muldoon <pmuldoon@redhat.com>
640
641 * NEWS: Move set/show extended-prompt to "New Options". Expand
642 description. Fix typos.
643
8432bc41
PM
6442011-10-24 Phil Muldoon <pmuldoon@redhat.com>
645
646 PR python/13310
647
648 * python/py-param.c (call_doc_function): Correctly deference on
649 function exit.
650
6cda5a20
JB
6512011-10-21 Joel Brobecker <brobecker@adacore.com>
652
653 * ada-tasks.c (print_ada_task_info): Fix computation of
654 number of tasks displayed in command output.
655
13294f7d
JK
6562011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
657 Ulrich Weigand <uweigand@de.ibm.com>
658
659 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
660 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
661 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
662 gdbarch_pc_regnum and frame_unwind_register_unsigned by
663 gdbarch_unwind_pc.
664
460c1c54
CC
6652011-10-20 Cary Coutant <ccoutant@google.com>
666
667 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
668 section to...
669 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
670 flag. Adjust all callers.
671 (process_psymtab_comp_unit): Remove adjustment for type section.
672
a10964d1
AR
6732011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
674
675 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
676 arguments by adding OBJFILE. Instead of getting objfile from
677 symbol's symtab, use new argument OBJFILE.
678 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
679 arguments by adding OBJFILE.
680 * gdb/dwarf2read.c (new_symbol_full): Change call to
681 cp_scan_for_anonymous_namespaces to match new signature.
682 * gdb/stabsread.c (define_symbol): Change call to
683 cp_scan_for_anonymous_namespaces to match new signature.
684
27ca1a5b
PM
6852011-10-20 Phil Muldoon <pmuldoon@redhat.com>
686
687 PR python/13308
688 PR python/13309
689
690 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
691 leak.
692 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
693 leak. Delete unused variables.
694
9df2fbc4
PM
6952011-10-20 Phil Muldoon <pmuldoon@redhat.com>
696
697 PR python/12656
698
699 * python/py-frame.c (frapy_read_var): Use const struct *block.
700 * python/py-type.c (typy_lookup_typename): Likewise.
701 (typy_lookup_type): Likewise.
702 (typy_legacy_template_argument): Likewise.
703 (typy_template_argument): Likewise.
704 (gdbpy_lookup_type): Likewise.
705 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
706 * python/py-block.c (blpy_block_object): Likewise.
707 (blpy_iter): Likewise.
708 (blpy_get_start): Likewise.
709 (blpy_get_end): Likewise.
710 (blpy_get_function): Likewise.
711 (blpy_get_superblock): Likewise.
712 (set_block): Likewise.
713 (block_to_block_object): Likewise.
714 (block_object_to_block): Likewise.
715 (blpy_is_valid): Likewise.
716 (blpy_get_global_block): New function.
717 (blpy_get_static_block): New function.
718 (blpy_is_global): New function.
719 (blpy_is_static): New function.
720 * blockframe.c (block_innermost_frame): Likewise.
721 * valops.c (value_of_variable): Likewise.
722 * frame.h: Update prototypes.
723 * python/python-internal.h: Likewise.
724 * value.h: Likewise.
725
4743b735
CC
7262011-10-19 Cary Coutant <ccoutant@google.com>
727
728 * dwarf2read.c (create_debug_types_hash_table): Fix size of
729 type_offset field.
730
6caca83c
CC
7312011-10-19 Cary Coutant <ccoutant@google.com>
732
733 * dwarf2read.c (peek_abbrev_code): New function.
734 (dw2_get_file_names): Check for dummy compilation units.
735 (create_debug_types_hash_table): Likewise.
736 (process_psymtab_comp_unit): Likewise.
737 (load_partial_comp_unit): Likewise.
738 (load_full_comp_unit): Likewise.
739
43136979
AR
7402011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
741
742 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
743 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
744 pt_phdr if PT_PHDR was found.
745
0a07729b
TT
7462011-10-17 Joost van der Sluis <joost@cnoc.nl>
747
748 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
749 type or "<unnamed type"> when there is no name assigned.
750 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
751 avoid a sigint when no name is assigned.
752
21ae7a4d
JK
7532011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 Revert:
756 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * dwarf2expr.c (ctx_no_read_reg): New function.
758 * dwarf2expr.h (ctx_no_read_reg): New declaration.
759 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
760 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
761 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
762
32d1c362
DE
7632011-10-16 Doug Evans <dje@google.com>
764
765 * NEWS: Document python gdb.printing.register_pretty_printer's new
766 `replace' parameter.
767
da096638
KS
7682011-10-14 Keith Seitz <keiths@redhat.com>
769
770 PR c++/13225
771 * eval.c (evaluate_subexp_standard): Do not construct
772 an array of types; pass the value array directly to
773 find_overload_match.
774 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
775 (rank_function): Take an array of values instead of types.
776 (rank_one_type): Add struct value * parameter.
777 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
778 (rank_function): For each argument, pass the argument's
779 value to rank_one_type.
780 (rank_one_type): Add VALUE parameter.
781 If the parameter type is a pointer and the argument type
782 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
783 VALUE is zero.
784 Update all calls to rank_one_type, passing NULL for new
785 VALUE parameter.
786 * valarith.c (value_user_defined_cpp_op): Do not construct
787 an array of types; pass the value array directly to
788 find_overload_match.
789 * valops.c (find_overload_method_list): Take an array of
790 values instead of types.
791 Save the type of OBJP for later use.
792 Update calls to find_oload_champ, and find_oload_champ_namespace.
793 (find_oload_champ_namespace): Take an array of values instead
794 of types.
795 (find_oload_champ_namespace_loop): Likewise.
796 (find_oload_champ): Likewise.
797 (classify_oload_match): Inspect all arguments
798 until INCOMPATIBLE is found. Return the worst badness found
799 otherwise.
800 (compare_parameters): Update call to rank_one_type.
801 * value.h (find_overload_match): Take an array of values instead
802 of types.
803
3957565a
JK
8042011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 Drop lazy lm_info reading.
807 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
808 l_addr_inferior, l_ld, l_next, l_prev and l_name.
809 (lm_info_read): New function.
810 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
811 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
812 lm_dynamic_from_link_map.
813 (lm_next, lm_prev, lm_name): Remove.
814 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
815 initialization incl. read_memory. No longer use lm_name.
816 (svr4_free_so): Drop lm_info->lm freeing.
817 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
818 explicit lm_addr and lm initialization.
819 (svr4_read_so_list): Use lm_info_read, drop the initailization of
820 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
821 lm_name.
822
cb08cc53
JK
8232011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
824 Paul Pluzhnikov <ppluzhnikov@google.com>
825
826 * defs.h (struct so_list): New forward declaration.
827 (make_cleanup_free_so): New declaration.
828 * solib-svr4.c (ignore_first_link_map_entry): Remove.
829 (svr4_free_so): Move the function here from downwards. Handle NULL
830 so->lm_info.
831 (svr4_free_library_list): New.
832 (svr4_read_so_list): New, moved here code from svr4_current_sos.
833 Use more cleanups. Use new parameter ignore_first instead of
834 ignore_first_link_map_entry.
835 (svr4_current_sos): New variable ignore_first, initialize it. New
836 variable back_to, use it for svr4_free_library_list protection.
837 (svr4_free_so): Remove - move upwards.
838 * utils.c: Include solist.h.
839 (do_free_so, make_cleanup_free_so): New functions.
840
22c05d8a
JK
8412011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 Fix internal error regression.
844 * value.c (value_primitive_field): Handle value_optimized_out. Move
845 packed bitfields comment.
846
d930d06e
TT
8472011-10-13 Tom Tromey <tromey@redhat.com>
848
849 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
850 always released.
851
2ff6b080
TT
8522011-10-13 Tom Tromey <tromey@redhat.com>
853
854 * python/py-type.c (typy_has_key): Make 'field' const.
855
d6c5869f
LM
8562011-10-13 Luis Machado <lgustavo@codesourcery.com>
857
858 * remote.c (remote_save_trace_data): Invert comparison.
859
a70633a2
LM
8602011-10-13 Luis Machado <lgustavo@codesourcery.com>
861
862 * tracepoint.c (trace_save_command): Use filename instead of
863 args when printing.
864
e103e986
JK
8652011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
866
867 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
868 if .size is 0.
869
db24da6d
YQ
8702011-10-13 Yao Qi <yao@codesourcery.com>
871
872 PR gdb/12703
873 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
874 whether insn is a 32-bit Thumb-2 instruction.
875 (thumb_in_function_epilogue_p): Likewise.
876 (thumb_get_next_pc_raw): Likewise.
877 (arm_breakpoint_from_pc): Likewise.
878
1d6edc3c
JK
8792011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
880
881 Fix empty DWARF expressions DATA vs. SIZE conditionals.
882 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
883 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
884 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
885 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
886 zero DATA.
887 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
888 validity.
889 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
890 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
891 clear DATA on zero SIZE.
892
adabb602
DE
8932011-10-12 Doug Evans <dje@google.com>
894
895 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
896 header->first_die_offset here. All callers updated.
897
5048e516
JK
8982011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 Fix compatibility with texinfo versions older than 4.12.
901 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
902 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
903 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
904 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
905 * configure: Regenerate.
906 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
907 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
908 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
909
0574c78f
GB
9102011-10-12 Gary Benson <gbenson@redhat.com>
911
912 * breakpoint.h (pc_at_non_inline_function): Declare.
913 * breakpoint.c (is_non_inline_function,
914 pc_at_non_inline_function): New functions.
915 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
916 if the stop is at a location where functions cannot be inlined.
917
12d9289a
PA
9182011-10-12 Pedro Alves <pedro@codesourcery.com>
919
920 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
921 the core wanted them stopped, or if they now have a pending event
922 to report.
ecf8e7f5
PA
923 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
924 down to stop_and_resume_callback.
925 (linux_nat_wait_1): Always clear `options' when retrying. Handle
926 having new pending events after calling linux_nat_filter_event.
12d9289a 927
96408a79
SA
9282011-10-11 Sterling Augustine <saugustine@google.com>
929
930 * dwarf2read.c: Undo inadvertent changes in previous commit.
931
9c6c53f7
SA
9322011-10-11 Sterling Augustine <saugustine@google.com>
933
934 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
935 logic.
936
0e8aefe7
UW
9372011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
938
939 * symfile.c (separate_debug_file_exists): Fix condition.
940
349d1385
DM
9412011-10-11 David S. Miller <davem@davemloft.net>
942
943 * regcache.c (regcache_restore): Do not write unavailable regs, mark
944 static.
945 * regcache.h (regcache_restore): Remove declaration.
946
205c306f
DM
947 * gdbarch.sh: New field 'long_long_align_bit'.
948 * gdbarch.c, gdbarch.h: Regenerate.
949 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
950 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
951
941b2081
JK
9522011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
953
954 Revert this part of:
955 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
956 Support @entry in input expressions.
957 * c-exp.y (ENTRY, unknown_cpp_name): New.
958 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
959 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
960 (variable: name_not_typename '@' ENTRY, name: ENTRY)
961 (name_not_typename: ENTRY): New.
962 (yylex): Recognize ENTRY.
963
964 Reimplement @entry in input expressions.
965 * c-exp.y (ENTRY): New.
966 (variable: name_not_typename ENTRY): New.
967 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
968
3c4d7e12
PA
9692011-10-11 Pedro Alves <pedro@codesourcery.com>
970
971 * linux-nat.c (linux_handle_extended_wait): Always dump both the
972 parent and child's pids as soon as we detect a clone event.
973 Adjust another debug message.
974
ea23808b
PA
9752011-10-11 Pedro Alves <pedro@codesourcery.com>
976
977 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
978 not zombie instead of reading the whole file.
979
904578ed
JK
9802011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
981
982 Fix separate debuginfo warning with "remote:" access.
983 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
984 * symfile.c (get_file_crc): New function with the code moved from ...
985 (separate_debug_file_exists): ... this function, specifically variables
986 buffer and count. New variable verified_as_different, set it. Remove
987 file_crc initialization. Verify also if both files are not the same
988 manually, if needed.
989
51370a33
YQ
9902011-10-11 Yao Qi <yao@codesourcery.com>
991
992 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
993 to get address.
994
0838fb57
DE
9952011-10-10 Doug Evans <dje@google.com>
996
997 * linux-thread-db.c (thread_db_new_objfile): Only try to load
998 libthread_db when we load libpthread or the main symbol file.
999 (thread_db_inferior_created): New function.
1000 (_initialize_thread_db): Attach inferior_created observer.
1001 * linux-nat.c (linux_child_post_attach): Remove call to
1002 check_for_thread_db.
1003 (linux_child_post_startup_inferior): Ditto.
1004 * objfiles.h (OBJF_MAINLINE): Define.
1005 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1006 allocate_objfile when appropriate.
1007
623bd5b7
UW
10082011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1009
1010 PR gdb/13218
1011 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1012 Remove unused variables.
1013 (get_linux_version): Remove function.
1014 (_initialize_arm_linux_nat): Do not call it.
1015
79395f92
PA
10162011-10-10 Pedro Alves <pedro@codesourcery.com>
1017
1018 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1019 new clone lwp if the core asked it to stop. Don't pass on
1020 unexpected signals to the new clone; leave them pending instead.
1021
eff3df78
PA
10222011-10-10 Pedro Alves <pedro@codesourcery.com>
1023
1024 * linux-nat.c (resume_lwp): Remove redundant debug output.
1025
4b60df3d
PA
10262011-10-10 Pedro Alves <pedro@codesourcery.com>
1027
1028 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1029 last_resume_kind before clearing it, and use the copy instead to
1030 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1031 resume_clear_callback in the non-stop path too.
1032
6501578c
YQ
10332011-10-09 Yao Qi <yao@codesourcery.com>
1034
1035 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1036 Honor OPTIONS and VAL's type.
1037 (common_val_print, value_print): Update to pass one more parameter.
1038
5a56e9c5
DE
10392011-10-09 Doug Evans <dje@google.com>
1040
1041 Add new "alias" command.
1042 * NEWS: Mention new command.
1043 * command.h (valid_user_defined_cmd_name_p): Declare.
1044 * defs.h (make_cleanup_dyn_string_delete): Declare.
1045 * utils.c: #include "dyn-string.h".
1046 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1047 * cli/cli-cmds.c: #include "dyn-string.h".
1048 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1049 (init_cli_cmds): Add new command.
1050 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1051
509f0fd9
JK
10522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1053
1054 Fix compatibility with older GCCs.
1055 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1056 * stack.c (read_frame_arg): Initialize val_deref.
1057
2bda9cc5
JK
10582011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 Entry values NEWS entries, DWARF disassembly support.
1061 * NEWS: New entry values entry.
1062 (set print entry-values, show print entry-values)
1063 (set debug entry-values, show debug entry-values): New entries.
1064 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1065 indent. Remove variable start. Move header printing out. Respect
1066 INDENT. Support DW_OP_GNU_entry_value.
1067 (locexpr_describe_location_1): Move the header printing here, extend
1068 the disassemble_dwarf_expression passed parameters.
1069
a471c594
JK
10702011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1071
1072 Display @entry parameter values even for references.
1073 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1074 coerce_ref_if_computed.
1075 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1076 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1077 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1078 existing push_dwarf_reg_entry_value call. Add new detection calling
1079 dwarf_block_to_dwarf_reg_deref. Update the error message.
1080 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1081 * dwarf2expr.h
1082 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1083 parameter deref_size, describe it in the comment.
1084 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1085 (dwarf_block_to_dwarf_reg_deref): New declaration.
1086 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1087 deref_size, describe it in the function comment. New variables
1088 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1089 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1090 describe it in the function comment. Fetch the alternative block
1091 accoring to DEREF_SIZE.
1092 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1093 (entry_data_value_free_closure, entry_data_value_funcs): New.
1094 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1095 outer_val, target_val, val and addr. Try to fetch and create also
1096 referenced value content.
1097 (pieced_value_funcs): NULL value for coerce_ref.
1098 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1099 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1100 coerce_ref_if_computed.
1101 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1102 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1103 * stack.c (read_frame_arg): Compare also dereferenced values.
1104 * value.c (value_computed_funcs): Make the parameter v const, use
1105 value_lval_const for it.
1106 (value_lval_const, coerce_ref_if_computed): New function.
1107 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1108 * value.h (struct lval_funcs): New field coerce_ref.
1109 (value_computed_funcs): Make the parameter v const.
1110 (value_lval_const, coerce_ref_if_computed): New declarations.
1111
36b11add
JK
11122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1113
1114 Support @entry in input expressions.
1115 * c-exp.y (ENTRY, unknown_cpp_name): New.
1116 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1117 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1118 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1119 (name_not_typename: ENTRY): New.
1120 (yylex): Recognize ENTRY.
1121 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1122 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1123 Likewise.
1124 * parse.c (operator_length_standard): Likewise.
1125 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1126
3343315b
JK
11272011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1128
1129 Display referenced values in backtraces.
1130 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1131 * stack.c (print_frame_arg): Likewise.
1132
ac71a68c
JK
11332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 Make some lval_funcs methods to default on NULL.
1136 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1137 NULL.
1138 (value_assign): Check if lval_computed write method is NULL.
1139 * value.h (struct lval_funcs): Comment NULL values for read and write
1140 methods.
1141
e18b2753
JK
11422011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1143
1144 Display @entry parameter values (without references).
1145 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1146 New functions.
1147 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1148 New declarations.
1149 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1150 entry record.
1151 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1152 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1153 functions.
1154 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1155 (loclist_read_variable_at_entry): New function.
1156 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1157 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1158 DW_AT_location, call dwarf_block_to_sp_offset for it.
1159 * frame.h (print_entry_values_no, print_entry_values_only)
1160 (print_entry_values_preferred, print_entry_values_if_needed)
1161 (print_entry_values_both, print_entry_values_compact)
1162 (print_entry_values_default, print_entry_values): New declarations.
1163 (struct frame_arg): New field entry_kind.
1164 (read_frame_arg): New parameter entryargp.
1165 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1166 arg->entry_kind. Optionally print the `@entry' suffix.
1167 (list_args_or_locals): New variable entryarg, initialize it.
1168 Initialize also entry_kind of arg and entryarg. Conditionalize
1169 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1170 xfree for entryarg.error.
1171 * stack.c (print_entry_values_no, print_entry_values_only)
1172 (print_entry_values_preferred, print_entry_values_if_needed)
1173 (print_entry_values_both, print_entry_values_compact)
1174 (print_entry_values_default, print_entry_values_choices)
1175 (print_entry_values): New variables.
1176 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1177 print the `@entry' suffix, possibly in combination for
1178 print_entry_values_compact.
1179 (read_frame_arg): New parameter entryargp, new variables entryval,
1180 entryval_error and val_equal. Read in also entryargp, respect
1181 print_entry_values, compare the values using val_equal, fill in also
1182 argp->entry_kind (together with entryargp->entry_kind).
1183 (print_frame_args): New variable entryarg, initialize it.
1184 Conditionalize print_frame_arg for arg, add print_frame_arg for
1185 entryarg. Call xfree for entryarg.error.
1186 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1187 * symtab.h (struct symbol_computed_ops): New field
1188 read_variable_at_entry.
1189
93d86cef
JK
11902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1191
1192 Code reshuffle.
1193 * frame.h (struct frame_arg): New definition.
1194 (read_frame_arg): New declaration.
1195 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1196 (list_args_or_locals): ... the code here. New variable arg, call
1197 read_frame_arg and list_arg_or_local with it. Unify the
1198 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1199 arg.error.
1200 * stack.c (print_frame_arg): New functiom from the code of
1201 print_frame_args.
1202 (read_frame_arg): New function.
1203 (print_frame_args): Remove variable val. New variable arg, call
1204 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1205
2d6c5dc2
JK
12062011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 Protect entry values against self tail calls.
1209 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1210 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1211
111c6489
JK
12122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1213
1214 Recognize virtual tail call frames.
1215 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1216 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1217 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1218 * dwarf2-frame-tailcall.c: New file.
1219 * dwarf2-frame-tailcall.h: New file.
1220 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1221 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1222 REGS.PREV only after CIE execution.
1223 (struct dwarf2_frame_cache): New field tailcall_cache.
1224 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1225 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1226 parts, try to find entry_cfa_sp_offset. Call
1227 dwarf2_tailcall_sniffer_first.
1228 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1229 when appropriate.
1230 (dwarf2_frame_dealloc_cache): New function.
1231 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1232 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1233 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1234 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1235 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1236 * dwarf2loc.c (func_addr_to_tail_call_list)
1237 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1238 (call_site_find_chain_1, call_site_find_chain): New.
1239 * dwarf2loc.h (struct call_site_chain): New.
1240 (call_site_find_chain): New declaration.
1241 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1242 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1243 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1244 * stack.c (frame_info): Support also TAILCALL_FRAME.
1245
bb984ff1
JK
12462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1247
1248 Tail call sites reader implementation.
1249 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1250 fill in TYPE_TAIL_CALL_LIST.
1251 * gdbtypes.h (struct func_type): New field tail_call_list.
1252 (struct call_site): New field tail_call_next.
1253 (TYPE_TAIL_CALL_LIST): New definition.
1254
8e3b41a9
JK
12552011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1256
1257 Implement basic support for DW_TAG_GNU_call_site.
1258 * block.c: Include gdbtypes.h and exceptions.h.
1259 (call_site_for_pc): New function.
1260 * block.h (call_site_for_pc): New declaration.
1261 * defs.h: Include hashtab.h.
1262 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1263 declarations.
1264 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1265 ctx_no_push_dwarf_reg_entry_value.
1266 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1267 (dwarf_block_to_dwarf_reg): New function.
1268 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1269 (ctx_no_push_dwarf_reg_entry_value): New function.
1270 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1271 push_dwarf_reg_entry_value.
1272 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1273 declarations.
1274 * dwarf2loc.c: Include gdbcmd.h.
1275 (dwarf_expr_ctx_funcs): New forward declaration.
1276 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1277 (dwarf_expr_reg_to_entry_parameter)
1278 (dwarf_expr_push_dwarf_reg_entry_value): New.
1279 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1280 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1281 (needs_dwarf_reg_entry_value): New function.
1282 (needs_frame_ctx_funcs): Install it.
1283 (_initialize_dwarf2loc): New function.
1284 * dwarf2loc.h (entry_values_debug): New declaration.
1285 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1286 (read_call_site_scope): New forward declaration.
1287 (process_full_comp_unit): Copy call_site_htab.
1288 (process_die): Support DW_TAG_GNU_call_site.
1289 (read_call_site_scope): New function.
1290 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1291 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1292 (cleanup_htab): Delete.
1293 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1294 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1295 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1296 FIELD_LOC_KIND_DWARF_BLOCK.
1297 * gdbtypes.h (enum field_loc_kind): New entry
1298 FIELD_LOC_KIND_DWARF_BLOCK.
1299 (struct main_type): New loc entry dwarf_block.
1300 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1301 (TYPE_FIELD_DWARF_BLOCK): New.
1302 * python/py-type.c: Include dwarf2loc.h.
1303 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1304 internal_error call on unknown FIELD_LOC_KIND.
1305 * symtab.h (struct symtab): New field call_site_htab.
1306 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1307 (core_addr_hash, core_addr_eq): New functions.
1308
b6cdc2c1
JK
13092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1310
1311 Code reshuffle.
1312 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1313 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1314 calling_convention under func_stuff there.
1315 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1316 (init_type) <TYPE_CODE_FUNC>: Likewise.
1317 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1318 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1319 * gdbtypes.h (enum type_specific_kind): Change
1320 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1321 (struct main_type) <type_specific>: Change calling_convention to
1322 func_stuff. Move calling_convention to ...
1323 (struct func_type): ... this new struct.
1324 (INIT_FUNC_SPECIFIC): New #define.
1325 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1326
181cebd4
JK
13272011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1330 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1331 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1332 ctx->ref_addr_size. Handle its invalid value.
1333 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1334 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1335 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1336 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1337 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1338 (dwarf2_per_cu_ref_addr_size): New function.
1339
c471e790
JK
13402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1341
1342 Code cleanup.
1343 * dwarf2read.c (per_cu_header_read_in): New function.
1344 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1345 variables cu_header_local and cu_headerp.
1346
741f5e3c
JK
13472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1348
1349 Fix initial language detection with -readnow.
1350 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1351 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1352 searches only for global symbols.
1353
a73d2258
JK
13542011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1355
1356 Fix printed anonymous struct name.
1357 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1358 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1359 (anonymous_struct_prefix): New function.
1360 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1361 (dwarf2_name): Strip for anonymous structs any prefixes.
1362
749fd4ea
DE
13632011-10-07 Doug Evans <dje@google.com>
1364
1fa57852
DE
1365 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1366 `replace'.
1367
690a4937
DE
1368 * python/lib/gdb/printing.py: Whitespace cleanup.
1369
749fd4ea
DE
1370 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1371 warning.
1372
4c38200f
PA
13732011-10-07 Pedro Alves <pedro@codesourcery.com>
1374
1375 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1376 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1377 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1378 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1379 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1380 (arm_linux_remove_watchpoint): Adjust.
1381 * i386-linux-nat.c (i386_linux_dr_set_control)
1382 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1383 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1384 (ia64_linux_remove_watchpoint): Adjust.
1385 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1386 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1387 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1388 (ppc_linux_insert_mask_watchpoint)
1389 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1390 (ppc_linux_remove_watchpoint): Adjust.
1391 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1392 Adjust.
1393
b7ff339d
CV
13942011-10-07 Corinna Vinschen <vinschen@redhat.com>
1395
1396 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1397 (clear_win32_environment): New function for Cygwin to clear out
1398 Win32 environment.
1399 (windows_create_inferior): Prepare new environment from in_env
1400 for Cygwin, too.
1401
f287c1f3
PM
14022011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1403
5631e596 1404 PR python/13264
f287c1f3
PM
1405 * python/py-value.c (valpy_call): Check that arguments are
1406 a tuple.
1407 (is_intlike): Remove call to CHECK_TYPEDEF.
1408 (valpy_nonzero): Catch GDB exceptions.
1409 (valpy_absolute): Ditto.
1410 (valpy_lazy_string): Ditto.
1411 (valpy_call): Ditto.
1412 (valpy_get_is_optimized_out): Ditto.
1413 (valpy_long): Ditto.
1414 (valpy_float): Ditto.
1415 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1416 (valpy_richcompare): Ditto.
1417
03583c20
UW
14182011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1419
1420 * inferior.h (disable_randomization): Declare.
1421 * infrun.c (disable_randomization): New global variable.
1422 (show_disable_randomization): New function.
1423 (set_disable_randomization): Likewise.
1424 (_initialize_infrun): Install set/show disable-randomization
1425 commands.
1426 * linux-nat.c (disable_randomization): Remove.
1427 (show_disable_randomization): Likewise.
1428 (set_disable_randomization): Likewise.
1429 (_initialize_linux_nat): No longer install set/show
1430 disable-randomization commands here.
1431 (linux_nat_supports_disable_randomization): New function.
1432 (linux_nat_add_target): Install it.
1433 * remote.c (PACKET_QDisableRandomization): New enum value.
1434 (remote_protocol_packets): Support QDisableRandomization.
1435 (_initialize_remote): Likewise.
1436 (remote_supports_disable_randomization): New function.
1437 (init_remote_ops): Install it.
1438 (extended_remote_supports_disable_randomization): New function.
1439 (init_extended_remote_ops): Install it.
1440 (extended_remote_disable_randomization): New function.
1441 (extended_remote_create_inferior_1): Call it.
1442 * target.h (struct target_ops): Add to_supports_disable_randomization.
1443 (target_supports_disable_randomization): Add prototype.
1444 * target.c (target_supports_disable_randomization): New function.
1445 (find_default_supports_disable_randomization): Likewise.
1446 (init_dummy_target): Install it.
1447
20c168b5
KP
14482011-10-07 Kevin Pouget <kevin.pouget@st.com>
1449
1450 Allow Python notification of new object-file loadings.
1451 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1452 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1453 Add build rule for this file.
1454 * python/py-event.h (emit_new_objfile_event): New prototype.
1455 (newobjfile): New Python event emitter.
1456 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1457 Python event registry.
1458 * python/py-inferior.c: Include objfiles.h
1459 (python_new_objfile): New function.
1460 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1461 observers.
1462 * python/py-newobjfileevent.c: New file.
1463 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1464 prototype.
1465 * python/python.c (_initialize_python): Add
1466 gdbpy_initialize_new_objfile_event call.
1467 * NEWS: Add item for new Python event "gdb.newobjfile"
1468
b1c8db38
TG
14692011-10-05 Tristan Gingold <gingold@adacore.com>
1470
1471 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1472 Extract the ravenscar task name from the symbol for the atcb.
1473
0dab82e9
PK
14742011-10-04 Paul Koning <paul_koning@dell.com>
1475
1476 * python/py-type.c (typy_make_iter): Add forward declaration.
1477 (typy_fields_items): Use the gdb.Type iterator.
1478
84ad80e6
PK
14792011-10-04 Paul Koning <paul_koning@dell.com>
1480
1481 * NEWS: Add entry for Python gdb.Type mapping methods.
1482
cb6be26b
KP
14832011-10-04 Kevin Pouget <kevin.pouget@st.com>
1484
1485 PR python/12691: Add the inferior to Python exited event
1486 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1487 to exited_event.
1488 * python/py-event.h (emit_exited_event): Likewise
1489 * python/-inferior.c (python_inferior_exit): Likewise
1490
6005b210
JB
14912011-10-03 Joel Brobecker <brobecker@adacore.com>
1492
1493 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1494 in output of -ada-task-info GDB/MI command.
1495
75082e8c
JB
14962011-10-03 Joel Brobecker <brobecker@adacore.com>
1497
1498 * ada-lang.h (struct inferior): Declare.
1499 (print_ada_task_info): Add declaration.
1500 * ada-tasks.c (print_ada_task_info): Make non-static.
1501 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1502 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1503 * mi/mi-main.c: #include "ada-lang.h".
1504 (mi_cmd_list_features): Add "ada-task-info" to the list
1505 of supported features.
1506 (mi_cmd_ada_task_info): New function.
1507
7ed7d719
JB
15082011-10-03 Joel Brobecker <brobecker@adacore.com>
1509
1510 * python/python.c (python_run_simple_file): New function.
1511 (source_python_script, source_python_script_for_objfile):
1512 Replace call to PyRun_SimpleFile by call to
1513 python_run_simple_file.
1514
3fcaed38
PK
15152011-10-03 Paul Koning <paul_koning@dell.com>
1516
1517 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1518 (value_to_value_object): Fetch value if it was lazy.
1519
8e5c319d
JK
15202011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1521
1522 Code cleanup.
1523 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1524 Rearrange the code for it.
1525
dd11a36c
JB
15262011-10-02 Joel Brobecker <brobecker@adacore.com>
1527
1528 * breakpoint.c (bkpt_print_recreate): Add call to
1529 print_recreate_thread.
1530
723b724b
MF
15312011-09-29 Mike Frysinger <vapier@gentoo.org>
1532
1533 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1534 PTRACE_GETFDPIC_INTERP): Define.
1535
412946b6
YQ
15362011-09-28 Yao Qi <yao@codesourcery.com>
1537
1538 * symfile.c (add_symbol_file_command): Update message on usage.
1539
a73bb892
PK
15402011-09-28 Paul Koning <paul_koning@dell.com>
1541
1542 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1543 (typy_length, typy_get, typy_has_key, typy_make_iter)
1544 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1545 (typy_iterator_iter, typy_iterator_iternext)
1546 (typy_iterator_dealloc): New functions to implement standard
1547 Python mapping methods on gdb.Type object.
1548 (gdb.TypeIterator): New Python type.
1549 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1550
fe10a582
DM
15512011-09-28 David S. Miller <davem@davemloft.net>
1552
1553 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1554 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1555 * sparc-tdep.c (sparc_complex_floating_p): New function.
1556 (sparc32_store_arguments): Handle complex floats.
1557 (sparc32_extract_return_value): Likewise.
1558 (sparc32_store_return_value): Likewise.
1559 (sparc32_stabs_argument_has_addr): Likewise.
1560 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1561 (sparc64_store_floating_fields): Handle complex floats.
1562 (sparc64_store_arguments): Likewise.
1563 (sparc64_store_return_value): Likewise.
1564
c93dbcba
EZ
15652011-09-28 Eli Zaretskii <eliz@gnu.org>
1566
1567 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1568 before the change on 2006-12-09.
1569 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1570 generates the environment block for CreateProcessA, modulo the
1571 Cygwin-specific parts that are not needed here.
1572
f00c55f8
TG
15732011-09-27 Tristan Gingold <gingold@adacore.com>
1574
1575 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1576 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1577 (darwin_solib_get_all_image_info_addr_at_init): New function.
1578 (darwin_solib_read_all_image_info_addr): Likewise.
1579 (darwin_solib_create_inferior_hook): Use the above two functions.
1580 * darwin-nat.c (darwin_execvp): Renames retval to res.
1581 (darwin_read_write_inferior): Update comment.
1582 (darwin_read_dyld_info): New function.
1583 (darwin_xfer_partial): Handle DYLD_INFO.
1584
6710bf39
SS
15852011-09-27 Stan Shebs <stan@codesourcery.com>
1586
1587 Add return address collection for tracepoints.
1588 * tracepoint.c (encode_actions_1): Add case for $_ret.
1589 (validate_actionline): Check for $_ret.
1590 (trace_dump_actions): Ditto.
1591 * ax-gdb.h (gen_trace_for_return_address): Declare.
1592 * ax-gdb.c: Include arch-utils.h.
1593 (gen_trace_for_return_address): New function.
1594 (agent_command): Add return address special case.
1595 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1596 (amd64_gen_return_address): New function.
1597 (amd64_init_abi): Call it.
1598 * i386-tdep.c: Include ax.h and ax-gdb.h.
1599 (i386_gen_return_address): New function.
1600 (i386_init_abi): Call it.
1601 * arch-utils.h (default_gen_return_address): Declare.
1602 * arch-utils.c (default_gen_return_address): New function.
1603 * gdbarch.sh (gen_return_address): New method.
1604 * gdbarch.h, gdbarch.c: Regenerate.
1605
e04e5beb
JM
16062011-09-23 Joseph Myers <joseph@codesourcery.com>
1607
1608 PR gdb/13079
1609 * i386-tdep.c (i386_frame_align): New.
1610 (i386_gdbarch_init): Use i386_frame_align.
1611
f3d6df6d
YQ
16122011-09-23 Yao Qi <yao@codesourcery.com>
1613
1614 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1615 to get address.
1616
e69860f1
TG
16172011-09-22 Tristan Gingold <gingold@adacore.com>
1618
1619 * fork-child.c (fork_inferior): Add exec_fun parameter.
1620 Call exec_fun or execvp.
1621 * inferior.h: Adjust prototype.
1622 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1623 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1624 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1625 * procfs.c (procfs_create_inferior): Ditto.
1626 * darwin-nat.c (darwin_execvp): New function.
1627 (darwin_create_inferior): Use it.
1628
4b51d87b
YQ
16292011-09-22 Yao Qi <yao@codesourcery.com>
1630
1631 * infrun.c (context_switch): Print debug message when switching to
1632 a different thread.
1633
56b9d9ac
UW
16342011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1635
1636 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1637 complex and vector types.
1638 (s390_return_value_convention): Likewise.
1639
1640 (s390_value_from_register): Call check_typedef.
1641 (extend_simple_arg): Likewise.
1642 (alignment_of): Likewise.
1643 (s390_push_dummy_call): Likewise.
1644 (s390_return_value): Likewise.
1645
b2cd6b29
JM
16462011-09-21 Joseph Myers <joseph@codesourcery.com>
1647
1648 * event-top.c (async_disconnect): If an exception is thrown from
1649 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1650 catch_errors.
1651 * top.c (quit_cover): Return void and take no arguments.
1652 * top.h (quit_cover): Update prototype.
1653
67ba4e42
JM
16542011-09-20 Joseph Myers <joseph@codesourcery.com>
1655
1656 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1657 current_uiout, not uiout.
1658
562f943b
DE
16592011-09-19 Doug Evans <dje@google.com>
1660
1661 * python/py-auto-load.c (source_section_scripts): Fix file
1662 descriptor leak.
1663 * python/python.c (source_python_script_for_objfile): Tweak comments.
1664
34518530
YQ
16652011-09-18 Yao Qi <yao@codesourcery.com>
1666 Ulrich Weigand <ulrich.weigand@linaro.org>
1667
1668 Support displaced stepping for Thumb 16-bit insns.
1669 * arm-tdep.c (THUMB_NOP) Define.
1670 (thumb_copy_unmodified_16bit): New.
1671 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1672 (thumb_copy_alu_reg): New.
1673 (arm_copy_svc): Move some common code to ...
1674 (install_svc): ... here. New.
1675 (thumb_copy_svc): New.
1676 (install_pc_relative): New.
1677 (thumb_copy_pc_relative_16bit): New.
1678 (thumb_decode_pc_relative_16bit): New.
1679 (thumb_copy_16bit_ldr_literal): New.
1680 (thumb_copy_cbnz_cbz): New.
1681 (cleanup_pop_pc_16bit_all): New.
1682 (thumb_copy_pop_pc_16bit): New.
1683 (thumb_process_displaced_16bit_insn): New.
1684 (thumb_process_displaced_32bit_insn): New.
1685 (thumb_process_displaced_insn): process thumb instruction.
1686
1687 Support displaced stepping for Thumb 32-bit insns.
1688 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1689 (thumb2_copy_preload): New.
1690 (thumb2_copy_copro_load_store): New.
1691 (thumb2_copy_b_bl_blx): New.
1692 (thumb2_copy_alu_imm): New.
1693 (thumb2_copy_load_reg_imm): New.
1694 (thumb2_copy_load_literal): New
1695 (thumb2_copy_block_xfer): New.
1696 (thumb_32bit_copy_undef): New.
1697 (thumb_32bit_copy_unpred): New.
1698 (thumb2_decode_ext_reg_ld_st): New.
1699 (thumb2_decode_svc_copro): New.
1700 (decode_thumb_32bit_store_single_data_item): New.
1701 (thumb_copy_pc_relative_32bit): New.
1702 (thumb_decode_pc_relative_32bit): New.
1703 (decode_thumb_32bit_ld_mem_hints): New.
1704 (thumb2_copy_table_branch): New
1705 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1706 instructions.
1707
2b16b2e3
YQ
17082011-09-18 Yao Qi <yao@codesourcery.com>
1709
1710 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1711 (install_b_bl_blx): Likewise.
1712
0f6f04ba
YQ
17132011-09-17 Yao Qi <yao@codesourcery.com>
1714
1715 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1716 (install_load_store): ... this. New.
1717 Change parameter BYTE to SIZE.
1718 (arm_copy_ldr_str_ldrb_strb): Update caller.
1719 (arm_decode_ld_st_word_ubyte): Update caller.
1720
e2d96639
YQ
17212011-09-17 Yao Qi <yao@codesourcery.com>
1722
1723 * infrun.c (displaced_step_fixup): Move some code ...
1724 (displaced_step_restore): ... here. New function.
1725 (handle_inferior_event): Cleanup displaced stepping state for both
1726 child and parent when get forked or vforked event.
1727 * regcache.c (get_thread_arch_aspace_regcache): New function.
1728 get_thread_arch_regcache (): Call it.
1729
a8123151
JB
17302011-09-16 Joel Brobecker <brobecker@adacore.com>
1731
1732 * ada-tasks.c (print_ada_task_info): New function, merging
1733 short_task_info and info_tasks together. Reimplement using
1734 ui-out instead of printing to stdout directly. Move the code
1735 building and checking the task list here, instead of leaving it
1736 in info_tasks_command.
1737 (info_task): Move the code building and checking the task
1738 list here, instead of leaving it in info_tasks_command.
1739 (info_tasks_command): Delete code building and checking
1740 the task list - moved elsewhere. Update calls to info_tasks
1741 and info_task.
1742
fbf06824
JB
17432011-09-16 Joel Brobecker <brobecker@adacore.com>
1744
1745 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1746
34a0bc90
JB
17472011-09-16 Joel Brobecker <brobecker@adacore.com>
1748
1749 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1750
79779fa9
JB
17512011-09-16 Joel Brobecker <brobecker@adacore.com>
1752
1753 * ada-lang.h (ada_build_task_list): Remove parameter
1754 `warn_if_null'.
1755 * ada-tasks.c (ada_build_task_list): Remove parameter
1756 `warn_if_null'. Adjust implementation and documentation.
1757 (valid_task_id, ada_get_environment_task)
1758 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1759 (info_tasks_command): Adjust implementation.
1760 (task_command): Likewise.
1761 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1762 to ada_build_task_list.
1763
e225eb91
JB
17642011-09-16 Joel Brobecker <brobecker@adacore.com>
1765
1766 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1767 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1768 (ada_tasks_inferior_data_handle): New static global.
1769 (get_ada_tasks_inferior_data): New function.
1770 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1771 (ada_get_environment_task, iterate_over_live_ada_tasks)
1772 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1773 Adjust.
1774 (ada_set_current_inferior_known_tasks_addr): New function.
1775 (read_known_tasks, ada_build_task_list, short_task_info)
1776 (info_tasks, info_task, info_tasks_command, task_command_1)
1777 (task_command, ada_task_list_changed): Adjust.
1778 (ada_tasks_invalidate_inferior_data): New function.
1779 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1780 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1781 * ada-lang.h (struct inferior): Add declaration.
1782 (ada_task_list_changed): Update profile.
1783 * remote-wtx-pd.c: #include "inferior.h".
1784 (switch_to_pd_internal): Update call to ada_task_list_changed.
1785
6da9ca05
JB
17862011-09-16 Joel Brobecker <brobecker@adacore.com>
1787
1788 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1789 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1790 (atcb_fieldno): Delete these static globals.
1791 (struct ada_tasks_pspace_data): New struct.
1792 (ada_tasks_pspace_data_handle): New static global.
1793 (get_ada_tasks_pspace_data): New function.
1794 (ada_tasks_invalidate_pspace_data): New function.
1795 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1796 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1797 (_initialize_tasks): Create this module's per-progspace
1798 data handle.
1799
dccd3cbd
JB
18002011-09-16 Joel Brobecker <brobecker@adacore.com>
1801
1802 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1803
f877b031
TG
18042011-09-16 Tristan Gingold <gingold@adacore.com>
1805
1806 * fork-child.c (fork_inferior): Update comment. Use alloca
1807 instead of xmalloc for argv. Move len and shell_command
1808 declarations in the block where they are used.
1809 Only call execvp. Factorize failure code.
1810
ae0c443d
JK
18112011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1812
1813 Code cleanup.
1814 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1815 `exp_element' instead of an element of the same and make the function
1816 static.
1817 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1818 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1819 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1820 Change argument of `write_exp_elt' function call.
1821 Remove extra spaces from comments.
1822 * parser-defs.h (write_exp_elt): Remove prototype.
1823
5af65ec0
PK
18242011-09-15 Paul Koning <paul_koning@dell.com>
1825
1826 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1827 count of item appended to list.
1828 * python/py-type.c (typy_fields): Likewise.
1829
72be8ccc
PK
18302011-09-15 Paul Koning <paul_koning@dell.com>
1831
883640a8 1832 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1833
92f6badc
KP
18342011-09-15 Kevin Pouget <kevin.pouget@st.com>
1835
1836 PR threads/12628
1837 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1838 processes with multiple threads.
1839 (inf_has_multiple_thread_cb): New function.
1840 (inf_has_multiple_threads): New function.
1841
0672bf41 18422011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1843
1844 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1845 * python/py-inferior.c (GdbMethods): New Python method definition.
1846
6839b47f
KP
18472011-09-15 Kevin Pouget <kevin.pouget@st.com>
1848
1849 Handle multiple breakpoint hits in Python interface:
1850 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1851 variable to breakpoints.
1852 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1853 bps instead of single breakpoint. Fix some space typos.
1854 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1855 variable to breakpoints.
1856
672f9b60
KP
18572011-09-15 Kevin Pouget <kevin.pouget@st.com>
1858
1859 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1860 note if the breakpoint is internal.
1861
43675ae4
KP
18622011-09-15 Kevin Pouget <kevin.pouget@st.com>
1863
0672bf41 1864 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1865
15148d6a
PA
18662011-09-14 Pedro Alves <pedro@codesourcery.com>
1867
1868 * infrun.c (prepare_for_detach, wait_for_inferior)
1869 (fetch_inferior_event): Don't flush the register cache.
1870 * remote.c (struct stop_reply) <regcache>: Add comment.
1871
d83e736b
JK
18722011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 Remove excessive DWARF expressions memory duplication.
1875 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1876 for block.data.
1877 (indirect_pieced_value): Remove variable result. Remove variable
1878 back_to and its use for baton.data.
1879 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1880 block.data.
1881 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1882 Update the function comment.
1883
c65b3e0d
PA
18842011-09-13 Pedro Alves <pedro@codesourcery.com>
1885
1886 * inferior.h (ALL_INFERIORS): New.
1887 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1888 for a stopped thread.
1889 (thread_db_find_new_threads): Look for threads in all inferiors.
1890
a1398e0c
PA
18912011-09-13 Pedro Alves <pedro@codesourcery.com>
1892
1893 * breakpoint.c (update_watchpoint): Handle the case of the
1894 watchpoint to update not being in the breakpoint list yet.
1895 (hw_watchpoint_use_count): New, factored out from
1896 hw_watchpoint_used_count.
1897 (hw_watchpoint_used_count): Rename to ...
1898 (hw_watchpoint_used_count_others): ... this. Add `except'
1899 parameter. Don't count resources of `except'. Use
1900 hw_watchpoint_use_count.
1901
30596231
PA
19022011-09-13 Pedro Alves <pedro@codesourcery.com>
1903
1904 * gdbthread.h (enum thread_state): Moved here.
1905 (struct thread_info): Rename `executing_' field to `executing' and
1906 `state_' to `state'.
1907 * thread.c (enum thread_state): Moved to gdbthread.h.
1908 (new_thread, add_thread_silent, delete_thread_1)
1909 (any_live_thread_of_process, thread_alive, set_running)
1910 (set_running, is_thread_state, any_running, is_executing)
1911 (set_executing, finish_thread_state, print_thread_info)
1912 (do_captured_thread_select): Adjust.
1913
bede5f5f
JK
19142011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1915
1916 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1917 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1918
4801a9a3
PA
19192011-09-12 Pedro Alves <pedro@codesourcery.com>
1920 Matt Rice <ratmice@gmail.com>
1921
1922 PR gdb/13175
1923
1924 * interps.c (struct interp) <interpreter_out>: Delete field.
1925 (interp_new): Remove the data and uiout parameters and adjust.
1926 (interp_set): Only set the current_uiout from the interpreter's
1927 uiout after initializing the interpreter. Adjust call to
1928 init_proc.
1929 (interp_ui_out): Adjust to call procs->ui_out_proc.
1930 (interp_data, interp_name): New.
1931 * interps.h (interp_init_ftype): Add `self' parameter.
1932 (interp_ui_out_ftype): New typedef.
1933 (struct interp_procs) <ui_out_proc>: New method pointer.
1934 (interp_new): Remove the data and uiout parameters.
1935 (interp_data, interp_name): Declare.
1936 * tui/tui-interp.c (tui_init): Adjust prototype.
1937 (tui_ui_out): New.
1938 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1939 tui_out here. Adjust call to interp_new.
1940 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1941 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1942 (cli_ui_out): New.
1943 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1944 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1945 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1946 Initialize mi->uiout depending on the mi_version as extracted from
1947 the interpreter's name.
1948 (mi_ui_out): New.
1949 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1950 interp_new. Don't allocate the ui_out's of the interpreters here.
1951
d0afda03 19522011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 1953
d0afda03 1954 * solib.c (solib_used): New function.
59145f8c
AR
1955 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1956 by another so_list object before freeing it.
1957
bdaf8d4a
JK
19582011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 Code cleanup.
1961 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1962 values.
1963
df15bd07
JK
19642011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1965
1966 Code cleanup.
1967 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1968 (amd64_skip_xmm_prologue): ... this new function. Describe its
1969 parameters. No longer use amd64_prologue_line_bug.
1970 * defs.h (producer_is_gcc_ge_4): New declaration.
1971 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1972 (process_full_comp_unit): Update its caller. Remove
1973 amd64_prologue_line_bug initialization.
1974 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1975 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1976
25289eb2
PA
19772011-09-09 Pedro Alves <pedro@codesourcery.com>
1978
1979 * linux-nat.h (enum resume_kind): New.
1980 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
1981 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1982 resume_stop on the new lwp.
25289eb2
PA
1983 (add_lwp): Set last_resume_kind as resume_continue by default.
1984 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1985 (resume_lwp): New, factored out from resume_callback. Also check
1986 for pending status in lp->waitstatus.
1987 (resume_callback): Reimplement.
1988 (resume_clear_callback): Set last_resume_kind as resume_stop.
1989 (resume_set_callback): Set last_resume_kind as resume_continue.
1990 (linux_nat_resume, linux_handle_extended_wait): Set
1991 last_resume_kind.
1992 (running_callback): Also check lp->waitstatus for pending events.
1993 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1994 is resume_step.
1995 (stop_and_resume_callback): Don't re-resume if the core wanted the
1996 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1997 using an invalidated pointer.
1998 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1999 SIGSTOPs if the core wanted the LWP to stop.
2000 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2001 wanted the lwp to stop. If the core wanted the lwp to stop, and
2002 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2003 of TARGET_SIGNAL_STOP.
2004 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2005 here. Instead, signal the lwp, and set the last_resume_kind to
2006 resume_stop.
2007
f687d035
PA
20082011-09-09 Pedro Alves <pedro@codesourcery.com>
2009
2010 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2011 -1 (error), if the lwp exits right after attaching.
2012
bc587a6b
DE
20132011-09-08 Doug Evans <dje@google.com>
2014
63d97a20
DE
2015 * py-cmd.c: Some minor formatting fixes.
2016 (gdbpy_parse_command_name): Rename text arg to name, make const.
2017 All callers updated.
2018 * python-internal.h (gdbpy_parse_command_name): Update.
2019
bc587a6b
DE
2020 * cli/cli-decode.c (add_cmd): Add comment.
2021
08711b9a
JK
20222011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2023
2024 PR breakpoints/12435
2025 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2026 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2027 * dwarf2read.c (process_full_comp_unit): Initialize
2028 amd64_prologue_line_bug.
2029 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2030
b2e7f004
JK
20312011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 Fix TUI screen corruption.
2034 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2035 batch_flag.
2036
8afd712c
JK
20372011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2038
2039 * findvar.c (read_var_value): Never return NULL, throw an error
2040 instead. Update the function comment. State symbol name in the error
2041 messages.
2042 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2043 read_var_value.
2044 * stack.c (print_frame_args): Likewise.
2045 * valops.c (value_of_variable): Likewise.
2046
b99b5f66
JK
20472011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2048
2049 * stack.c (print_frame_args): New variable except. Wrap
2050 read_var_value and common_val_print into TRY_CATCH.
2051
85bc8cb7
JK
20522011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2055 caller to value_of_this.
2056 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2057 Twice.
2058 * valops.c (value_of_this): Remove parameter complain and variable ret.
2059 Update function comment. Never return NULL by this code.
2060 (value_of_this_silent): New function.
2061 * value.h (value_of_this): Remove parameter complain.
2062 (value_of_this_silent): New declaration.
2063
ede1849f
YQ
20642011-09-07 Yao Qi <yao@codesourcery.com>
2065
2066 * gdbthread.h (struct thread_info): Remove fields
2067 `stepping_through_solib_after_catch' and
2068 `stepping_through_solib_catchpoints'.
2069 * infrun.c (init_thread_stepping_state): Update.
2070 (process_event_stop_test, currently_stepping): Update.
2071 (currently_stepping_or_nexting_callback): Update.
2072
6aa27652
YQ
20732011-09-07 Yao Qi <yao@codesourcery.com>
2074
2075 * gdbthread.h (struct thread_info): Comment on field
2076 `step_after_step_resume_breakpoint'.
2077
00db5b94
PA
20782011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2079
2080 * remote.c (remote_console_output): Reindent.
2081
861152be
LM
20822011-09-06 Luis Machado <lgustavo@codesourcery.com>
2083
2084 * frame.c (has_stack_frames): Check for currently selected
2085 traceframe.
2086
ab821bc6
PA
20872011-09-06 Pedro Alves <pedro@codesourcery.com>
2088
2089 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2090 (set_async_annotation_level, set_async_prompt, pop_prompt)
2091 (push_prompt, new_async_prompt): Delete declarations.
2092 * top.h (get_prompt, set_prompt): Change prototype.
2093 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2094 declarations.
2095 * top.c (command_loop):
2096 (top_prompt): New global.
2097 (get_prefix, set_prefix, get_suffix, ): Delete.
2098 (get_prompt, set_prompt): Rewrite.
2099 (show_new_async_prompt): Rename to ...
2100 (show_prompt): ... this.
2101 (init_main): Adjust. Don't handle --annotate=2 here.
2102 * event-top.c (new_async_prompt): Delete.
2103 (the_prompts): Delete.
2104 (more_to_come): Make static.
2105 (display_gdb_prompt): Use top_level_prompt() to compute the top
2106 level prompt, and don't notify the before_prompt observers
2107 directly here. Always trick readline into not trying to display
2108 the prompt if sync_execution and displaying the primary prompt.
2109 If displaying a local/secondary prompt, always show it, even if
2110 sync_execution is set.
2111 (change_annotation_level): Delete.
2112 (top_level_prompt): New, based on change_annotation_level.
2113 (push_prompt, pop_prompt): Delete.
2114 (async_disable_stdin): No longer pushes prompt.
2115 (command_line_handler): No longer pushes or pops prompt. If more
2116 input is expected, call display_gdb_prompt with an explicit empty
2117 prompt.
2118 (async_stop_sig): Adjust.
2119 (set_async_annotation_level, set_async_prompt): Delete.
2120 * python/python.c (before_prompt_hook): Adjust.
2121
f1d90504
PA
21222011-09-05 Pedro Alves <pedro@codesourcery.com>
2123
2124 PR cli/13110
2125
2126 * infrun.c (fetch_inferior_event): Check if there's a selected
2127 thread before checking if the selected thread is executing.
2128
0f641c01
PA
21292011-09-05 Pedro Alves <pedro@codesourcery.com>
2130
2131 * inf-loop.c (execute_command): Don't check if the current thread
2132 if running before synchronously waiting for command completion.
2133 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2134 here.
2135 (normal_stop): Call async_enable_stdin here.
2136 * inf-loop.c (inferior_event_handler): Don't call
2137 async_enable_stdin, nor handle "set exec-done-display" here.
2138
30368258 21392011-09-04 Joel Brobecker <brobecker@adacore.com>
2140
2141 GDB 7.3.1 released.
2142
31916278
JB
21432011-09-04 Joel Brobecker <brobecker@adacore.com>
2144
2145 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2146
e8d56f18
JB
21472011-09-04 Joel Brobecker <brobecker@adacore.com>
2148
2149 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2150
5dd05d8c
JK
21512011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2152
2153 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2154
7d8e6458 21552011-09-02 Matt Rice <ratmice@gmail.com>
2156
2157 PR gdb/10720
2158 * event-top.c (cli_command_loop): Replace readline setup with
2159 direct call to display_gdb_prompt.
2160 (display_gdb_prompt): Do not call observer mechanism during
2161 synchronous execution.
2162
84636d28
PA
21632011-09-02 Pedro Alves <pedro@codesourcery.com>
2164
2165 * linux-nat.c (in_pid_list_p): New.
2166 (linux_record_stopped_pid): Delete.
2167 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2168 already attached to the LWP. Return an indication if so.
2169 (linux_nat_filter_event): Adjust.
2170 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2171 returning an indication to ignore this thread.
2172
b4a14fd0
PA
21732011-09-02 Pedro Alves <pedro@codesourcery.com>
2174
2175 * top.c: Include interps.h.
2176 (execute_command): If the target can async, but the interpreter is
2177 in sync mode, synchronously wait for the command to finish before
2178 returning.
2179 (execute_command_to_string): Force the interpreter to sync mode.
2180 * infrun.c: Include interps.h.
2181 (fetch_inferior_event): Don't restore the prompt yet if the
2182 interpreter is in sync mode.
2183 * interps.c (interpreter_async): New global.
2184 * interps.h (interpreter_async): Declare.
2185 * inf-loop.c: Include interps.h.
2186 (inferior_event_handler): Don't print the language change or run
2187 breakpoint commands yet if the interpreter in is sync mode.
2188 * main.c (captured_command_loop): Flip the interpreter to async
2189 mode.
2190 * cli/cli-script.c: Include interps.h.
2191 (execute_user_command, while_command, if_command): Force the
2192 interpreter to sync mode.
2193 * python/python.c: Include interps.h.
2194 (python_command, execute_gdb_command): Force the interpreter to
2195 sync mode.
2196
c709acd1
PA
21972011-09-02 Pedro Alves <pedro@codesourcery.com>
2198
2199 * value.c (show_convenience): Catch errors thrown while printing
2200 each internal variable.
2201 * infrun.c (validate_siginfo_access): New function.
2202 (siginfo_value_read, siginfo_value_write): Call it.
2203
9655e943
JK
22042011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 Revert:
2207 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2208 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2209 attribute.
2210
cb457ae2
YQ
22112011-08-29 Yao Qi <yao@codesourcery.com>
2212
2213 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2214 (cmp_name): New.
2215 (enable_break2): Update caller.
2216 * solib-frv.c (bfd_lookup_symbol): Removed.
2217 (cmp_name): New.
2218 (enable_break2): Update caller.
2219 * solib-pa64.c (bfd_lookup_symbol): Removed.
2220 (cmp_name): New.
2221 * solib-svr4.c (bfd_lookup_symbol): Removed.
2222 (cmp_name_and_sec_flags): New.
2223 (enable_break): Update caller.
2224 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2225 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2226 (gdb_bfd_lookup_symbol): New.
2227 * solib.h: Functions declarations.
2228
83d1a36a
YQ
22292011-08-29 Yao Qi <yao@codesourcery.com>
2230
2231 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2232 and solib-dsbt.o.
2233
c04b3e8f
JK
22342011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2235
2236 Fix TUI stepi on code without symbols.
2237 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2238 current PC instead.
2239
cb0fd152
JK
22402011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2241
2242 Code cleanup.
2243 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2244 and the static keyword.
2245 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2246 Make prefix an array.
2247 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2248 * mi/mi-main.c (get_register): Remove stb initialization and the static
2249 keyword.
2250
91174723
JK
22512011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2252
2253 Code cleanup - make mi_opt const.
2254 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2255 opts const.
2256 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2257 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2258 (mi_cmd_env_dir): Likewise.
2259 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2260 (mi_cmd_target_file_put): Likewise.
2261 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2262 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2263 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2264 (mi_valid_noargs): Make opts const.
2265 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2266 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2267 (mi_cmd_data_read_memory): Likewise.
2268 (mi_cmd_data_read_memory_bytes): Likewise.
2269 (mi_cmd_data_write_memory): Likewise.
2270
5068b8e8 22712011-08-26 Matt Rice <ratmice@gmail.com>
2272
2273 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2274 bcache_xmalloc, replace bcache_xmalloc with call to
2275 psymbol_bcache_init for psymbol_cache.
2276 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2277
a4f2ce05
JK
22782011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2279
2280 * inf-loop.c (inferior_event_handler): Add exception_print in
2281 INF_EXEC_COMPLETE.
2282
353d1d73
JK
22832011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2284
2285 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2286 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2287 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2288 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2289 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2290 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2291 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2292 * infrun.c (fetch_inferior_event): Call
2293 make_bpstat_clear_actions_cleanup.
2294 * top.c (execute_command): New variable cleanup_if_error, call
2295 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2296 * utils.c (do_bpstat_clear_actions_cleanup)
2297 (make_bpstat_clear_actions_cleanup): New functions.
2298
3ced3da4
PA
22992011-08-26 Pedro Alves <pedro@codesourcery.com>
2300
2301 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2302 either the parent or the child forks. Rename a couple locals.
2303
a9f4bb21
PA
23042011-08-26 Pedro Alves <pedro@codesourcery.com>
2305
2306 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2307 library call. Avoid reading the `status' local if all waitpid
2308 calls failed.
2309
e5798bef
PA
23102011-08-26 Pedro Alves <pedro@codesourcery.com>
2311
2312 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2313 opening /proc/PID/task always succeeds.
2314
edb2aadf
AR
23152011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2316
2317 * linespec.c (symtab_from_filename): Check for the end of string.
2318
0d932b2f
MK
23192011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2320
2321 PR mi/11912
2322 * varobj.c (cplus_describe_child): Add the keyword
2323 'class' to the output of the method when dealing
2324 with a cast to a base class.
2325
e93ca019
JK
23262011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 No functionality change.
2329 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2330 function comment a reference, new variables tp and bs, move here code
2331 from throw_exception.
2332 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2333 describe it in the comment.
2334 * exceptions.c (throw_exception): Remove variable tp, move the code for
2335 bpstat_clear_actions to bpstat_clear_actions.
2336
13da1c97
LM
23372011-08-24 Luis Machado <lgustavo@codesourcery.com>
2338
2339 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2340 * linux-nat.c: Include linux-procfs.h.
2341 (linux_proc_get_tgid): Move to ...
2342 * common/linux-procfs.c: ... here. New file.
2343 * common/linux-procfs.h: New file.
2344 * linux-thread-db.c: Include linux-procfs.h.
2345 * Makefile.in: Update dependencies.
2346 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2347 * config/arm/linux.mh: Likewise.
2348 * config/i386/linux.mh: Likewise.
2349 * config/i386/linux64.mh: Likewise.
2350 * config/ia64/linux.mh: Likewise.
2351 * config/m32r/linux.mh: Likewise.
2352 * config/m68k/linux.mh: Likewise.
2353 * config/mips/linux.mh: Likewise.
2354 * config/pa/linux.mh: Likewise.
2355 * config/pa/linux.mh: Likewise.
2356 * config/powerpc/linux.mh: Likewise.
2357 * config/powerpc/ppc64-linux.mh: Likewise.
2358 * config/powerpc/spu-linux.mh: Likewise.
2359 * config/sparc/linux.mh: Likewise.
2360 * config/sparc/linux64.mh: Likewise.
2361 * config/xtensa/linux.mh: Likewise.
2362
4e5c165d
HZ
23632011-08-24 Hui Zhu <teawater@gmail.com>
2364
2365 * tracepoint.c (cond_string_is_same): New function.
2366 (find_matching_tracepoint): Add condition check
2367 by cond_string_is_same.
2368
6e2f5b22
JK
23692011-08-23 Josh Matthews <josh@joshmatthews.net>
2370
2371 Fix build error in Darwin port.
2372 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2373
abf85f46
JK
23742011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2375
2376 Code cleanup.
2377 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2378 (command_line_is_silent): New function.
2379 (bpstat_do_actions_1): No longer use commands_left, use
2380 command_line_is_silent for commands.
2381 (bpstat_alloc): Remove clearing of commands_left.
2382 (bpstat_stop_status): Remove initialization of commands_left, use
2383 command_line_is_silent.
2384 * breakpoint.h (struct bpstats): Remove commands_left.
2385
3a93a0c2
KS
23862011-08-18 Keith Seitz <keiths@redhat.com>
2387
2388 PR c++/12266
2389 * cp-name-parser.y (struct demangle_info): Remove unused
2390 member PREV.
2391 (d_grab): Likewise.
2392 (allocate_info): Change return type to struct demangle_info *.
2393 Always allocate a new demangle_info.
2394 Remove unused PREV pointer.
2395 (cp_new_demangle_parse_info): New function.
2396 (cp_demangled_name_parse_free): New function.
2397 (do_demangled_name_parse_free_cleanup): New function.
2398 (make_cleanup_cp_demangled_name_parse_free): New function.
2399 (cp_demangled_name_to_comp): Change return type to
2400 struct demangle_parse_info *.
2401 Allocate a new storage for each call.
2402 (main): Update usage for cp_demangled_name_to_comp
2403 API change.
2404 * cp-support.h (struct demangle_parse_info): New structure.
2405 (cp_demangled_name_to_comp): Update API change for
2406 return type.
2407 (cp_new_demangle_parse_info): Declare.
2408 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2409 (cp_demangled_name_parse_free): Declare.
2410 * cp-support.c (cp_canonicalize_string): Update API
2411 change for cp_demangled_name_to_comp.
2412 (mangled_name_to_comp): Likewise.
2413 Return struct demangle_parse_info, too.
2414 (cp_class_name_from_physname): Update mangled_name_to_comp
2415 API change.
2416 (method_name_from_physname): Likewise.
2417 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2418 (cp_remove_params): Likewise.
2419 * python/py-type.c (typy_legacy_template_argument): Likewise.
2420
2421 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2422 (cp_merge_demangle_parse_infos): Declare.
2423 * cp-support.c (ignore_typedefs): New file global.
2424 (copy_string_to_obstack): New function.
2425 (inspect_type): New function.
2426 (replace_typedefs): New function.
2427 (replace_typedefs_qualified_name): New function.
2428 (cp_canonicalize_string_no_typedefs): New function.
2429 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2430 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2431 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2432 instead of cp_canonicalize_string.
2433 (find_method): Likewise.
2434 (decode_compound): Before looking up the name, call
2435 cp_canonicalize_string_no_typedefs.
2436 (decode_variable): Likewise.
2437
fa3a4f15
PM
24382011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2439 Tom Tromey <tromey@redhat.com>
2440 Matt Rice <ratmice@gmail.com>
2441
2442 * python/lib/gdb/prompt.py: New file.
2443 * python/lib/gdb/command/prompt.py: New file.
2444 * NEWS: Document set extended-prompt and gdb.prompt library
2445
85661b1e
YQ
24462011-08-16 Yao Qi <yao@codesourcery.com>
2447
2448 * tic6x-linux-tdep.c: Move const arrays definition from here...
2449 * tic6x-tdep.c: to here ...
2450
11315641
YQ
24512011-08-14 Yao Qi <yao@codesourcery.com>
2452
2453 * NEWS: New port to Texas Instruments TMS320C6x.
2454
8cd64e00
YQ
24552011-08-14 Andrew Jenner <andrew@codesourcery.com>
2456 Bernd Schmidt <bernds@codesourcery.com>
2457 Yao Qi <yao@codesourcery.com>
2458
2459 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2460 * solib-dsbt.c: New file. Support DSBT shared object.
2461 * tic6x-linux-tdep.c: New file.
2462 * tic6x-tdep.c: New file.
2463 * tic6x-tdep.h: New file.
2464
78d85199
YQ
24652011-08-14 Andrew Stubbs <ams@codesourcery.com>
2466 Yao Qi <yao@codesourcery.com>
2467
2468 * remote.c (PACKET_qXfer_fdpic): New enum value.
2469 (remote_protocol_features): Add qXfer:fdpic:read packet.
2470 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2471 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2472 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2473
224bbe49
YQ
24742011-08-14 Yao Qi <yao@codesourcery.com>
2475
2476 Target description for tic6x.
2477 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2478 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2479 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2480 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2481 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2482 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2483 * features/tic6x-c64xp-linux.xml: New.
2484 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2485 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2486 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2487 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2488 * regformats/tic6x-c64xp.dat,
2489 regformats/tic6x-c62x-linux.dat: Generated.
2490 * regformats/tic6x-c64x-linux.dat,
2491 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2492 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2493 features/tic6x-*.c files.
2494 Add regformats/tic6x-*.dat files.
2495
457e09f0
DE
24962011-08-12 Doug Evans <dje@google.com>
2497
2498 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2499 * python/py-symbol.c (sympy_get_type): New function.
2500 (symbol_object_getset): Add "type".
2501
d20c1c3f
PA
25022011-08-12 Pedro Alves <pedro@codesourcery.com>
2503
2504 PR tui/13073
2505
2506 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2507 empty name.
2508 (tui_show_register_group): Don't store a byte buffer in the data
2509 element's value.
2510 (tui_register_format): Skip registers with an empty name.
2511 (tui_get_register): Store a struct value in the data element's
2512 value field instead of a byte buffer holding the raw register
2513 contents. Account for optimized-out and unavailable registers
2514 when comparing register contents.
2515
9d8fa392
PA
25162011-08-09 Pedro Alves <pedro@codesourcery.com>
2517
2518 * printcmd.c (current_display_number): Update comment.
2519 (disable_current_display_cleanup): Delete.
2520 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2521 catch errors thrown while evaluating and printing the display.
2522
401a70b8
TT
25232011-08-09 Tom Tromey <tromey@redhat.com>
2524
2525 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2526
7f86f058
PA
25272011-08-09 Pedro Alves <pedro@codesourcery.com>
2528
94b71cca 2529 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2530 * maint.c (maintenance_command): Ditto.
2531 * somread.c (som_symtab_read): Ditto.
2532 * solib.c (solib_find, solib_map_sections, update_solib_list)
2533 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2534 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2535 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2536 * solib-irix.c (locate_base, disable_break, enable_break)
2537 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2538 (irix_current_sos, irix_open_symbol_file_object)
2539 (irix_special_symbol_handling): Ditto.
2540 * solib-sunos.c (locate_base, first_link_map_member)
2541 (sunos_current_sos, disable_break, enable_break)
2542 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2543 Ditto.
2544 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2545 (open_symbol_file_object, svr4_current_sos, enable_break)
2546 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2547 Ditto.
2548 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2549 (frv_current_sos, enable_break, frv_special_symbol_handling)
2550 (frv_solib_create_inferior_hook): Ditto.
2551 * solist.h (struct target_so_ops): Extend the comments of the
2552 special_symbol_handling, current_sos and open_symbol_file_object
2553 methods.
2554
5e239b84
PM
25552011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2556
2557 * python/lib/gdb/__init__.py: Auto-load files in command and
2558 function directories.
2559 * python/python.c (finish_python_initialization): Use
2560 os.path.join.
2561 * python/lib/gdb/command/pretty_printers.py: Self register
2562 command.
2563 * NEWS: Document auto-loading.
2564
b6cede78
JK
25652011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2566
2567 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2568 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2569 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2570
29d0bb3d
TT
25712011-08-08 Tom Tromey <tromey@redhat.com>
2572
2573 * breakpoint.c (clean_up_filters): Remove.
2574 (catch_syscall_split_args): Use VEC_cleanup.
2575
2f7fb8e4
JK
25762011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2577
2578 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2579 (main): Uncomment "Demangling error\n".
2580
d6c10e95
PP
25812011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2582
2583 * solib-target.c (segment_attributes): Make them static.
2584 (section_attributes, library_children, library_attributes): Likewise.
2585 (library_list_children, library_list_attributes): Likesise.
2586 (library_list_elements): Likewise.
2587
af6e93b2
PA
25882011-08-05 Pedro Alves <pedro@codesourcery.com>
2589
2590 * exceptions.c (throw_exception): Don't disable the current
2591 display.
2592 * printcmd.c (disable_current_display_cleanup): New function.
2593 (do_one_display): Install a cleanup to disable the current display
2594 if doing the display throws.
2595
6a1b1664
EZ
25962011-08-05 Eli Zaretskii <eliz@gnu.org>
2597
2598 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2599 initialization of the tp_new member to the corresponding
2600 gdbpy_initialize_* function.
2601 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2602 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2603 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2604 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2605 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2606
31a0ae49
JK
26072011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2608
2609 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2610 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2611 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2612 references to current_uiout.
2613
e0dd0826
PA
26142011-08-04 Pedro Alves <pedro@codesourcery.com>
2615
2616 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2617 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2618 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2619 * top.c (gdb_readline_wrapper): Adjust.
2620 * tui/tui-interp.c (tui_command_loop):
2621 (_initialize_tui_interp): Don't install it.
2622
79a45e25
PA
26232011-08-04 Pedro Alves <pedro@codesourcery.com>
2624
2625 * ui-out.h (uiout): Rename to ...
2626 (current_uiout): ... this.
2627 * ui-out.c (uiout): Rename to ...
2628 (current_uiout): ... this.
2629 * ada-lang.c (print_it_exception, print_one_exception)
2630 (print_mention_exception): Adjust.
2631 * breakpoint.c (watchpoint_check): Adjust.
2632 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2633 (default_collect_info, watchpoints_info, print_one_catch_fork)
2634 (print_one_catch_vfork, print_one_catch_syscall)
2635 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2636 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2637 (print_it_watchpoint, print_mention_watchpoint)
2638 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2639 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2640 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2641 (bkpt_print_mention, momentary_bkpt_print_it)
2642 (tracepoint_print_mention, update_static_tracepoint)
2643 (tracepoints_info, save_breakpoints): Adjust.
2644 * cli-out.c (field_separator): Adjust.
2645 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2646 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2647 * frame.c (get_current_frame): Adjust.
2648 * infcmd.c (run_command_1, print_return_value): Adjust.
2649 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2650 * infrun.c (print_end_stepping_range_reason): Adjust.
2651 (print_signal_exited_reason, print_exited_reason): Adjust.
2652 (print_signal_received_reason, print_no_history_reason): Adjust.
2653 * interps.c (interp_set): Adjust.
2654 * osdata.c (info_osdata_command): Adjust.
2655 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2656 * remote-fileio.c (remote_fileio_request): Adjust.
2657 * remote.c (show_remote_cmd): Adjust.
2658 * solib.c (info_sharedlibrary_command): Adjust.
2659 * source.c (print_source_lines_base): Adjust.
2660 * stack.c (print_stack_frame): Adjust.
2661 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2662 * symfile-mem.c (add_vsyscall_page): Adjust.
2663 * symfile.c (load_progress, generic_load)
2664 (print_transfer_performance): Adjust.
2665 * thread.c (info_threads_command, restore_selected_frame)
2666 (thread_command): Adjust.
2667 * top.c (make_cleanup_restore_ui_file): Adjust.
2668 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2669 (print_one_static_tracepoint_marker): Adjust.
2670 * cli/cli-cmds.c (print_disassembly): Adjust.
2671 * cli/cli-decode.c (print_doc_line): Adjust.
2672 * cli/cli-interp.c (safe_execute_command): Adjust.
2673 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2674 (handle_redirections): Adjust.
2675 * cli/cli-script.c (show_user_1): Adjust.
2676 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2677 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2678 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2679 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2680 (mi_cmd_env_dir): Adjust.
2681 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2682 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2683 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2684 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2685 (list_args_or_locals): Adjust.
2686 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2687 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2688 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2689 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2690 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2691 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2692 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2693 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2694 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2695 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2696 (list_available_thread_groups, mi_cmd_list_thread_groups)
2697 (mi_cmd_data_list_register_names)
2698 (mi_cmd_data_list_changed_registers)
2699 (mi_cmd_data_list_register_values, get_register)
2700 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2701 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2702 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2703 (mi_execute_command, mi_load_progress): Adjust.
2704 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2705 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2706 Adjust.
2707 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2708 * tui/tui-interp.c (tui_command_loop): Adjust.
2709 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2710
f9679975
PA
27112011-08-04 Pedro Alves <pedro@codesourcery.com>
2712
2713 * exceptions.c (struct catcher): Remove saved_uiout field.
2714 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2715 no longer save/resvore the global ui_out builder.
2716 (catch_exceptions_with_msg): Save/override/restore the global
2717 ui_out builder manually instead of relying on TRY_CATCH to do it.
2718 (catch_errors): Save/restore the global ui_out builder manually
2719 instead of relying on TRY_CATCH to do it.
2720 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2721 parameter.
2722 (TRY_CATCH): Adjust.
2723 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2724 the global ui_out builder manually instead of relying on TRY_CATCH
2725 to do it.
2726
934709f0
PW
27272011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2728
2729 * breakpoint.c (update_global_location_list): Ensure
2730 invariant 'first loc marked not duplicated and inserted,
2731 following locs marked duplicated/not inserted' is respected
2732 for multiple locations at the same address.
2733 (unduplicated_should_be_inserted) New function.
2734 (swap_insertion) New function.
2735
2421fe6f
JK
27362011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2737
2738 * stack.c (print_frame_arguments_choices): Comment typo fix.
2739
3fbb6ffa
TJB
27402011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2741
2742 Revert:
2743 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2744 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2745 argument. Update callers.
2746
fbe12357
PP
27472011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2748
2749 PR gdb/13045
2750 * doublest.c (convert_doublest_to_floatformat): Pass correct
2751 mantissa length to put_field.
2752
b1d288d3
JK
27532011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2754
2755 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2756 exception_print code path.
2757 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2758 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2759 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2760
311b5970
JK
27612011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2762
2763 Code cleanup.
2764 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2765 Remove, merge them into ...
2766 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2767 variable args and its initialization.
2768 (struct print_args_args, print_args_stub): Remove, merge them into
2769 print_frame.
2770 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2771 them into ...
2772 (do_gdb_disassembly): ... here. Remove variable args and its
2773 initialization.
2774 (print_frame): Remove variable args and its initialization, new
2775 variable gdbarch and numargs (from print_args_stub), inline here
2776 print_args_stub with a TRY_CATCH.
2777 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2778 them into ...
2779 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2780 New variable e, remove variable btargs and its initialization.
311b5970 2781
484a26a8
TG
27822011-08-01 Tristan Gingold <gingold@adacore.com>
2783
2784 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2785
c30eee59
TJB
27862011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2787
2788 * breakpoint.c (insert_bp_location): Document return value.
2789 (insert_breakpoint_locations): Fix documentation.
2790 (remove_breakpoints): Add documentation.
2791
f116073b
TJB
27922011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2793
2794 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2795 argument. Update callers.
2796
65aa373f
JK
27972011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2798
2799 * stack.c (print_frame_info): Comment typo fix.
2800
a50242fb
SA
28012011-07-29 Sterling Augustine <saugustine@google.com>
2802
2803 * MAINTAINERS (Write After Approval): Add myself to the list.
2804
267f6504
TT
28052011-07-29 Tom Tromey <tromey@redhat.com>
2806
2807 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2808 (library_list_start_segment): Update.
2809 (library_list_start_section): Update.
2810
00bd41d6
PM
28112011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2812
2813 * varobj.c (value_get_print_value): Move hint check later into the
2814 function. Comment function. Free thevalue before reusing it.
2815
18a46dbe
JK
28162011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 Pedro Alves <pedro@codesourcery.com>
2818
2819 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2820 value_one.
2821 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2822 Assert the result kind.
2823 * value.h (value_one): Remove parameter lv.
2824
bb7da2bf
JK
28252011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 Fix crash on lval_computed values.
2828 * valops.c (value_zero): Use not_lval for lval_computed.
2829
2d5213f8
TT
28302011-07-27 Tom Tromey <tromey@redhat.com>
2831
2832 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2833 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2834
11081198
JK
28352011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2836
2837 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2838 "ptype" by their typedefs difference.
2839
3c6e0cb3
JK
28402011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2841
2842 * dwarf2expr.c (ctx_no_read_reg): New function.
2843 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2844 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2845 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2846 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2847
523f3620
JK
28482011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2849
2850 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2851 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2852 file.
2853 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2854 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2855 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2856 (ctx_no_get_base_type): Move the functions here.
2857 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2858 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2859 (ctx_no_get_base_type): New declarations.
2860
24d3216f
TT
28612011-07-27 Tom Tromey <tromey@redhat.com>
2862
2863 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2864 entries.
2865 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2866 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2867
5005c8a9
PP
28682011-07-26 Sterling Augustine <saugustine@google.com>
2869
2870 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2871 ULONGEST.
2872 (dump_bfd_file): Likewise.
2873
480a3f21
PW
28742011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2875
2876 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2877 (remote_hw_watchpoint_length_limit): New variable.
2878 (_initialize_remote) add set,show cmds for this new variable.
2879 * gdb.texinfo: document these new commands.
2880 * NEWS: Mention these new commands.
2881
efa80663
PA
28822011-07-26 Pedro Alves <pedro@codesourcery.com>
2883
2884 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2885 true for software watchpoints.
2886
dbdaa232 28872011-07-26 Joel Brobecker <brobecker@adacore.com>
2888
2889 GDB 7.3 released.
2890
cf2c3c16
TT
28912011-07-26 Tom Tromey <tromey@redhat.com>
2892
2893 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2894 * dwarf2read.c (read_indirect_string_at_offset): New function.
2895 (read_indirect_string): Use it.
2896 (dwarf_decode_macro_bytes): New function, taken from
2897 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2898 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2899 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2900 New functions.
2901 (struct dwarf2_per_objfile) <macro>: New field.
2902 (dwarf2_elf_names): Add .debug_macro.
2903 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2904 (dwarf2_locate_sections): Handle new section.
2905 (read_file_scope): Handle DW_AT_GNU_macros.
2906 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2907
1a532630
PP
29082011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2909
2910 * NEWS: Mention dcache configuration.
2911 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2912 (dcache_size, dcache_line_size): New variables.
2913 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2914 (struct dcache_block): Make it expandable.
2915 (struct dcache_struct): New field.
2916 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2917 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2918 (dcache_poke_byte, dcache_print_line): Adjust.
2919 (set_dcache_size, set_dcache_line_size): New functions.
2920 (set_dcache_command, show_dcache_command): New functions.
2921 (_initialize_dcache): Add new commands.
2922
2eff07b3
PP
29232011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2924
2925 * progspace.h (struct program_space): Add solib_add_generation.
2926 * infcmd.c (post_create_inferior): Only call solib_add if not
2927 already done.
2928 * solib.c (solib_add): Increment solib_add_generation.
2929
543305c9
JK
29302011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2931
2932 Fix implicit pointer offsets.
2933 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2934 ptr.OFFSET.
2935
c0a91b2b
TT
29362011-07-25 Tom Tromey <tromey@redhat.com>
2937
2938 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2939 const.
2940 (ada_exception_sal): Make 'ops' const.
2941 (ada_decode_exception_location): Likewise.
2942 (ada_decode_assert_location): Likewise.
2943 (catch_assert_command): Update.
2944 (catch_ada_exception_command): Update.
2945 (create_ada_exception_catchpoint): Make 'ops' const.
2946 * breakpoint.c (set_raw_breakpoint_without_location)
2947 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2948 const.
2949 (create_internal_breakpoint): Update.
2950 (init_raw_breakpoint_without_location): Make 'ops' const.
2951 (init_raw_breakpoint, init_catchpoint)
2952 (create_fork_vfork_event_catchpoint)
2953 (create_syscall_event_catchpoint, init_breakpoint_sal)
2954 (create_breakpoint_sal, create_breakpoints_sal)
2955 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2956 * breakpoint.h (struct breakpoint) <ops>: Now const.
2957 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2958 const.
2959
6cb9b55b
PP
29602011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2961
2962 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2963
d9b3f62e
PA
29642011-07-25 Pedro Alves <pedro@codesourcery.com>
2965
2966 * breakpoint.h (print_recreate_thread): Declare.
2967 (struct breakpoint): Move step_count, pass_count,
2968 number_on_target, static_trace_marker_id,
2969 static_trace_marker_id_idx ...
2970 (struct tracepoint): ... to this new struct.
2971 (get_tracepoint, get_tracepoint_by_number_on_target)
2972 (get_tracepoint_by_number): Change return type to struct
2973 tracepoint pointer.
2974 * breakpoint.c (is_tracepoint_type): New, factored out from
2975 is_tracepoint.
2976 (is_tracepoint): Adjust.
2977 (print_one_breakpoint_location): Cast to struct tracepoint as
2978 necessary, and adjust.
2979 (print_recreate_catch_fork, print_recreate_catch_vfork)
2980 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2981 print_recreate_thread.
2982 (init_breakpoint_sal): New, factored out from
2983 create_breakpoint_sal.
2984 (create_breakpoint_sal): Reimplement.
2985 (create_breakpoint): Allocate a struct tracecepoint if the caller
2986 wanted a tracepoint. Use init_breakpoint_sal and
2987 install_breakpoint.
2988 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2989 (print_recreate_masked_watchpoint)
2990 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2991 (tracepoint_print_one_detail): Adjust.
2992 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2993 Dump the pass count here.
2994 (update_static_tracepoint): Adjust.
2995 (addr_string_to_sals): Adjust.
2996 (create_tracepoint_from_upload): Adjust. Change return type to
2997 struct tracepoint pointer.
2998 (trace_pass_set_count): Change parameter type to struct tracepoint
2999 pointer, and adjust.
3000 (trace_pass_command): Adjust.
3001 (get_tracepoint, get_tracepoint_by_number_on_target)
3002 (get_tracepoint_by_number): Change return type to struct
3003 tracepoint pointer, and adjust.
3004 (print_recreate_thread): New, factored out from save_breakpoints.
3005 (save_breakpoints): Don't print thread and task and passcount
3006 recreation here.
3007 * remote.c (remote_download_tracepoint): Adjust.
3008 * tracepoint.c (trace_actions_command, validate_actionline)
3009 (start_tracing, tfind_1, trace_find_tracepoint_command)
3010 (trace_dump_command): Adjust.
3011 (find_matching_tracepoint): Change return type to struct
3012 tracepoint pointer, and adjust.
3013 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3014 (tfile_trace_find, tfile_fetch_registers): Adjust.
3015 * tracepoint.h (create_tracepoint_from_upload): Change return type
3016 to struct tracepoint pointer.
3017 * ada-lang.c (print_recreate_exception): Call
3018 print_recreate_thread.
3019 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3020
3a5c3e22
PA
30212011-07-25 Pedro Alves <pedro@codesourcery.com>
3022
3023 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3024 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3025 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3026 watchpoint_thread, watchpoint_triggered ...
3027 (struct watchpoint): ... to this new struct.
3028 (is_watchpoint): Declare.
3029 (install_breakpoint): Add new `internal' parameter.
3030 * breakpoint.c (is_watchpoint): Delete declaration.
3031 (set_breakpoint_condition): Handle watchpoints.
3032 (is_watchpoint): Make public.
3033 (watchpoint_in_thread_scope): Change parameter type to struct
3034 watchpoint.
3035 (watchpoint_del_at_next_stop): Change parameter type to struct
3036 watchpoint. Remove assertion. Adjust.
3037 (update_watchpoint): Ditto.
3038 (insert_breakpoints, breakpoint_init_inferior)
3039 (watchpoints_triggered, watchpoint_check)
3040 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3041 (bpstat_stop_status, print_one_breakpoint_location)
3042 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3043 to struct watchpoint as necessary, and adjust.
3044 (install_breakpoint): Add `internal' argument. If true, don't
3045 mention the new breakpoint. Use set_breakpoint_number.
3046 (create_fork_vfork_event_catchpoint)
3047 (create_syscall_event_catchpoint): Adjust.
3048 (dtor_watchpoint): New.
3049 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3050 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3051 (print_it_watchpoint, print_mention_watchpoint)
3052 (print_recreate_watchpoint, insert_masked_watchpoint)
3053 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3054 (print_one_detail_masked_watchpoint)
3055 (print_mention_masked_watchpoint)
3056 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3057 necessary, and adjust.
3058 (watch_command_1): Allocate and initialize a struct watchpoint
3059 instead of a struct breakpoint. Use install_breakpoint.
3060 (catch_exec_command_1): Adjust.
3061 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3062 fields.
3063 (delete_breakpoint, enable_breakpoint_disp)
3064 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3065 as necessary, and adjust.
3066 (initialize_breakpoint_ops): Install dtor_watchpoint as
3067 watchpoints' dtor method.
3068 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3069 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3070 to struct watchpoint as necessary, and adjust.
3071
2060206e
PA
30722011-07-25 Pedro Alves <pedro@codesourcery.com>
3073
3074 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3075 the the base class ops table.
3076 (catch_exception_breakpoint_ops)
3077 (catch_exception_unhandled_breakpoint_ops)
3078 (catch_assert_breakpoint_ops): Don't statically initialize.
3079 (initialize_ada_catchpoint_ops): New.
3080 (_initialize_ada_language): Call it.
3081 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3082 (bkpt_breakpoint_ops): Forward declare.
3083 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3084 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3085 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3086 (masked_watchpoint_breakpoint_ops)
3087 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3088 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3089 base class ops table.
3090 (null_re_set, null_check_status, null_works_in_software_mode)
3091 (null_resources_needed, null_print_one_detail): Delete.
3092 (bkpt_dtor): Rename to ...
3093 (base_breakpoint_dtor): ... this. Make static.
3094 (bkpt_allocate_location): Rename to ...
3095 (base_breakpoint_allocate_location): ... this. Make static.
3096 (base_breakpoint_re_set): New.
3097 (internal_error_pure_virtual_called): New.
3098 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3099 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3100 (base_breakpoint_works_in_software_mode)
3101 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3102 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3103 (base_breakpoint_print_recreate): New functions.
3104 (base_breakpoint_ops): New global.
3105 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3106 (bkpt_breakpoint_hit): Make static.
3107 (bkpt_check_status): Delete.
3108 (bkpt_resources_needed): Make static.
3109 (bkpt_works_in_software_mode): Delete.
3110 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3111 static.
3112 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3113 (momentary_breakpoint_ops): Don't statically initialize.
3114 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3115 Delete.
3116 (tracepoint_insert_location, tracepoint_remove_location)
3117 (tracepoint_check_status, tracepoint_works_in_software_mode)
3118 (tracepoint_print_it): Delete.
3119 (tracepoint_breakpoint_ops): Don't statically initialize.
3120 (initialize_breakpoint_ops): New.
3121 (_initialize_breakpoint): Call it.
3122 * breakpoint.h (null_re_set, null_works_in_software_mode)
3123 (null_resources_needed, null_check_status, null_print_one_detail):
3124 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3125 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3126 (bkpt_check_status, bkpt_resources_needed)
3127 (bkpt_works_in_software_mode, bkpt_print_it)
3128 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3129 Delete declarations.
3130 (initialize_breakpoint_ops): Declare.
3131
001c8c33
PA
31322011-07-25 Pedro Alves <pedro@codesourcery.com>
3133
3134 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3135 (momentary_bkpt_print_it): Simplify.
3136
06edf0c0
PA
31372011-07-25 Pedro Alves <pedro@codesourcery.com>
3138
3139 Split internal, momentary and user breakpoints breakpoint_ops
3140 tables.
3141
3142 * breakpoint.c (internal_breakpoint_ops)
3143 (momentary_breakpoint_ops): Forward declare.
3144 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3145 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3146 (create_overlay_event_breakpoint)
3147 (create_std_terminate_master_breakpoint)
3148 (create_exception_master_breakpoint): Create breakpoints with
3149 internal_breakpoint_ops vtable.
3150 (set_longjmp_breakpoint): Create momentary breakpoints with
3151 momentary_breakpoint_ops vtable, using
3152 momentary_breakpoint_from_master.
3153 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3154 (create_solib_event_breakpoint): Create breakpoints with
3155 internal_breakpoint_ops vtable.
3156 (set_momentary_breakpoint): Create breakpoints with
3157 momentary_breakpoint_ops vtable.
3158 (momentary_breakpoint_from_master): New, factored out from
3159 clone_momentary_breakpoint.
3160 (clone_momentary_breakpoint): Adjust.
3161 (watch_command_1): Create scope breakpoints with
3162 momentary_breakpoint_ops vtable.
3163 (bkpt_re_set): Remove handling of internal and momentary
3164 breakpoints.
3165 (bkpt_print_mention, bkpt_print_recreate): New.
3166 (bkpt_breakpoint_ops): Adjust.
3167 (internal_bkpt_re_set, internal_bkpt_check_status)
3168 (internal_bkpt_print_it, internal_bkpt_print_mention)
3169 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3170 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3171 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3172 (momentary_bkpt_print_recreate): New.
3173 (momentary_breakpoint_ops): New.
3174
348d480f
PA
31752011-07-25 Pedro Alves <pedro@codesourcery.com>
3176
3177 Implement most breakpoint_ops methods for all breakpoint types,
3178 and move the default handlings to the proper callbacks.
3179
3180 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3181 works_in_software_mode method.
3182 (insert_bp_location): Go through breakpoint_ops->insert_location
3183 for software and hardware watchpoints.
3184 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3185 breakpoint_ops.
3186 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3187 for software and hardware watchpoints.
3188 (print_it_typical): Delete.
3189 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3190 method.
3191 (watchpoint_check): Adjust comment.
3192 (bpstat_check_location): Simply always call the breakpoint's
3193 breakpoint_hit method.
3194 (bpstat_stop_status): Always call the breakpoint's check_status
3195 method. Remove special cases for watchpoints and internal event
3196 breakpoints from here (moved to the check_status implementations).
3197 (print_one_breakpoint_location): Assume b->ops is never NULL.
3198 Remove static tracepoint marker id printing from here (moved to
3199 the print_one_detail callback implementation of tracepoints).
3200 (init_bp_location): Assert OPS is never NULL.
3201 (allocate_bp_location): Always call the breakpoint's
3202 allocate_location method, and remove the default code from here.
3203 (free_bp_location): Always call the location's dtor method, and
3204 remove the default code from here.
3205 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3206 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3207 parameter. Pass it down.
3208 (set_raw_breakpoint): Ditto.
3209 (print_it_catch_fork): Adjust to take a bpstat as argument.
3210 (catch_fork_breakpoint_ops): Install methods.
3211 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3212 (catch_vfork_breakpoint_ops): Install methods.
3213 (dtor_catch_syscall): Call the base dtor.
3214 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3215 (catch_syscall_breakpoint_ops): Install methods.
3216 (dtor_catch_exec): Call the base dtor.
3217 (print_it_catch_exec): Adjust to take a bpstat as argument.
3218 (catch_exec_breakpoint_ops): Install methods.
3219 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3220 the breakpoint's resources_needed method, and remove the default
3221 code from here.
3222 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3223 breakpoint_ops.
3224 (clone_momentary_breakpoint): Clone the original's ops.
3225 (mention): Always call the breakpoint's print_mention method, and
3226 remove the default code from here.
3227 (create_breakpoint_sal): Adjust to pass the ops to
3228 set_raw_breakpoint rather than setting it manually.
3229 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3230 ops to set_raw_breakpoint_without_location rather than setting it
3231 manually.
3232 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3233 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3234 (ranged_breakpoint_ops): Install methods.
3235 (break_range_command): Adjust to pass the ops to
3236 set_raw_breakpoint rather than setting it manually.
3237 (re_set_watchpoint, breakpoint_hit_watchpoint)
3238 (check_status_watchpoint, resources_needed_watchpoint)
3239 (works_in_software_mode_watchpoint, print_it_watchpoint)
3240 (print_mention_watchpoint, print_recreate_watchpoint): New
3241 functions.
3242 (watchpoint_breakpoint_ops): Install new methods.
3243 (print_it_masked_watchpoint): New function.
3244 (masked_watchpoint_breakpoint_ops): Install new methods.
3245 (watch_command_1): Adjust to pass the right breakpoint_ops to
3246 set_raw_breakpoint_without_location rather than setting it
3247 manually later. Record the current pspace.
3248 (print_it_exception_catchpoint): Adjust to take a bpstat as
3249 argument.
3250 (gnu_v3_exception_catchpoint_ops): Install new methods.
3251 (say_where): New function.
3252 (null_re_set, null_check_status, null_works_in_software_mode)
3253 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3254 New functions.
3255 (bp_location_ops): New global.
3256 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3257 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3258 (bkpt_check_status, bkpt_resources_needed)
3259 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3260 (bkpt_print_recreate): New functions.
3261 (bkpt_breakpoint_ops): New global.
3262 (tracepoint_re_set, tracepoint_insert_location)
3263 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3264 (tracepoint_check_status, tracepoint_works_in_software_mode)
3265 (tracepoint_print_it, tracepoint_print_one_detail)
3266 (tracepoint_print_mention, tracepoint_print_recreate): New
3267 functions.
3268 (tracepoint_breakpoint_ops): New global.
3269 (delete_breakpoint): Always call the breakpoint's dtor method, and
3270 remove the default handling from here.
3271 (breakpoint_re_set_default): Make static.
3272 (breakpoint_re_set_one): Always call the breakpoints re_set
3273 method, and remove the default handling from here.
3274 (trace_command, ftrace_command, strace_command)
3275 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3276 to create_breakpoint.
3277 (save_breakpoints): Always call the breakpoint's print_recreate
3278 method, and remove the default handling from here.
3279
3280 * ada-lang.c (dtor_exception): Call the base dtor.
3281 (re_set_exception): Call the base method.
3282 (print_it_exception, print_it_catch_exception): Adjust to take a
3283 bpstat as argument.
3284 (catch_exception_breakpoint_ops): Install methods.
3285 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3286 argument.
3287 (catch_exception_unhandled_breakpoint_ops): Install methods.
3288 (print_it_catch_assert): Adjust to take a bpstat as argument.
3289 (catch_assert_breakpoint_ops): Install methods.
3290
3291 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3292 to take a bpstat as argument.
3293 (enum print_stop_action): Add describing comments to each enum
3294 value.
3295 (breakpoint_re_set_default): Delete declaration.
3296 (null_re_set, null_works_in_software_mode, null_resources_needed)
3297 (null_check_status, null_print_one_detail): Declare.
3298 (bkpt_breakpoint_ops): Declare.
3299 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3300 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3301 (bkpt_check_status, bkpt_resources_needed)
3302 (bkpt_works_in_software_mode, bkpt_print_it)
3303 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3304 Declare.
3305
3306 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3307 bkpt_breakpoint_ops.
3308 * python/py-breakpoint.c (bppy_init): Ditto.
3309
be8f8133
PW
33102011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3311
3312 * MAINTAINERS (Write After Approval): Add myself to the list.
3313
3807f613
PP
33142011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3315
3316 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3317
1ced966e
PA
33182011-07-22 Pedro Alves <pedro@codesourcery.com>
3319
3320 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3321 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3322 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3323 adjust.
3324 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3325 (struct i386_debug_reg_state): New.
3326 (i386_init_dregs): New.
3327 (dr_mirror): New.
3328 (i386_cleanup_dregs): Use i386_init_dregs.
3329 (i386_show_dr): Add state parameter and adjust.
3330 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3331 the inferior here.
3332 (i386_remove_aligned_watchpoint): Likewise.
3333 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3334 (i386_update_inferior_debug_regs): New.
3335 (i386_insert_watchpoint): Work on a local mirror of the debug
3336 registers, and only update the inferior on success.
3337 (i386_remove_watchpoint): Ditto.
3338 (i386_region_ok_for_watchpoint): Adjust.
3339 (i386_stopped_data_address): Adjust.
3340 (i386_insert_hw_breakpoint): Adjust.
3341 (i386_remove_hw_breakpoint): Adjust.
3342
3543a589
TT
33432011-07-22 Tom Tromey <tromey@redhat.com>
3344
3345 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3346 from amd64_pseudo_register_read. Change arguments. Call
3347 mark_value_bytes_unavailable when needed.
3348 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3349 set_gdbarch_pseudo_register_read.
3350 * sentinel-frame.c (sentinel_frame_prev_register): Use
3351 regcache_cooked_read_value.
3352 * regcache.h (regcache_cooked_read_value): Declare.
3353 * regcache.c (regcache_cooked_read_value): New function.
3354 (regcache_cooked_read): Call
3355 gdbarch_pseudo_register_read_value if available.
3356 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3357 (i386_pseudo_register_read): Remove.
3358 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3359 i386_pseudo_register_read. Change arguments. Call
3360 mark_value_bytes_unavailable when needed.
3361 (i386_pseudo_register_read_value): New function.
3362 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3363 not set_gdbarch_pseudo_register_read.
3364 * gdbarch.sh (pseudo_register_read_value): New method.
3365 * gdbarch.c, gdbarch.h: Rebuild.
3366 * findvar.c (value_from_register): Call get_frame_register_value.
3367
95298e72
PM
33682011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3369
3370 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3371 get_prefix.
3372 (display_gdb_prompt): Likewise.
3373 (change_annotation_level): Likewise.
3374 (push_prompt): Likewise.
3375 (pop_prompt): Likewise.
3376 (handle_stop_sig): Use get_prompt with a level.
3377 * top.c (command_loop): Use get_prompt with a level.
3378 (set_async_annotation_level): Use set_prompt with a level.
3379 (get_prefix): New function.
3380 (set_prefix): Ditto.
3381 (set_suffix): Ditto.
3382 (get_suffix): Ditto.
3383 (get_prompt): Accept a level argument.
3384 (set_prompt): Accept a level argument. Free old prompts. Set
3385 new_async_prompt if level is 0.
3386 (init_main): Use set_prompt with a level. Do not set
3387 new_async_prompt.
3388 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3389 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3390 Modify set_prompt, get_prompt to account for levels.
3391 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3392 level.
3393 * python/python.c (before_prompt_hook): Use set_prompt.
3394
d26e3629
KY
33952011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3396
3397 * defs.h: Add guard against inclusion in gdbserver.
3398 (struct ptid, ptid_t): Move to common/ptid.h.
3399 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3400 xsnprintf, internal_error): Move to common/common-utils.h.
3401 (nomem): Delete.
3402 * gdb_assert.h: Move into common/ sub-directory.
3403 * gdb_locale.h: Ditto.
3404 * gdb_dirent.h: Ditto.
3405 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3406 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3407 Move into common/ptid.h.
3408 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3409 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3410 Change nomem to malloc_failure.
3411 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3412 * utils.c (nomem): Rename to malloc_failure.
3413 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3414 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3415 (gdb_buildargv): Change nomem to malloc_failure.
3416 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3417 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3418 ptid_is_pid): Move into common/ptid.c.
3419 (initialize_infrun): Delete initialization of null_ptid and
3420 minus_one_ptid.
3421 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3422 linux_common_xfer_osdata.
3423 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3424 common/ptid.c and common/buffer.c.
3425 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3426 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3427 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3428 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3429 rules.
3430 * common/gdb_assert.h: New.
3431 * common/gdb_dirent.h: New.
3432 * common/gdb_locale.h: New.
3433 * common/buffer.c: New.
3434 * common/buffer.h: New.
3435 * common/ptid.c: New.
3436 * common/ptid.h: New.
3437 * common/xml-utils.c: New.
3438 * common/xml-utils.h: New.
3439 * common/common-utils.c: New.
3440 * common/common-utils.h: New.
3441 * common/linux-osdata.c: New.
3442 * common/linux-osdata.h: New.
3443 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3444 * config/arm/linux.mh (NATDEPFILES): Ditto.
3445 * config/i386/linux.mh (NATDEPFILES): Ditto.
3446 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3447 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3448 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3449 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3450 * config/mips/linux.mh (NATDEPFILES): Ditto.
3451 * config/pa/linux.mh (NATDEPFILES): Ditto.
3452 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3453 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3454 * config/s390/s390.mh (NATDEPFILES): Ditto.
3455 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3456 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3457 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3458
edc84990 34592011-07-21 Matt Rice <ratmice@gmail.com>
3460
3461 * NEWS: Add info macros and info definitions commands.
3462
3a7bf607
PM
34632011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3464
3465 * NEWS: Document Python prompt substitution hook.
3466
9b158ba0 34672011-07-18 Matt Rice <ratmice@gmail.com>
3468
3469 PR macros/12999
3470 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3471 * macrotab.c (foreach_macro): Ditto.
3472 (foreach_macro_in_scope): Ditto.
3473 * macrocmd.c (print_macro_callback): New function.
3474 (info_macro_command): Move some code to print_macro_definition.
3475 (print_macro_definition): New function.
3476 (print_one_macro): Add new arguments to callback.
3477 (info_definitions_command): New function.
3478 (info_macros_command): Ditto.
3479 (_initialize_macrocmd): Add info macros and info definitions commands.
3480 * symtab.c (add_macro_name): Add new arguments to callback.
3481
d17b6f81
PM
34822011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3483 Tom Tromey <tromey@redhat.com>
3484
3485 * top.c (set_prompt): Rewrite to free previous prompt, free
3486 asynch_new_prompt and set both on new prompts.
3487 * event-top.c (display_gdb_prompt): Add prompt substitution
3488 logic.
3489 * python/python.c (before_prompt_hook): New function.
3490
1364323a 34912011-07-20 Matt Rice <ratmice@gmail.com>
3492
3493 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3494 arguments to store_unsigned_integer.
3495
8b70b953
TT
34962011-07-20 Tom Tromey <tromey@redhat.com>
3497
6c83ed52
TT
3498 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3499 in some declaration-only cases.
3500
35012011-07-18 Tom Tromey <tromey@redhat.com>
3502
8b70b953
TT
3503 PR symtab/12984:
3504 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3505 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3506 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3507 <debug_type_section>: New field.
3508 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3509 (load_cu): Use appropriate section.
3510 (create_signatured_type_table_from_index): Add 'section'
3511 argument.
3512 (dwarf2_read_index): Only allow a single .debug_types section.
3513 (dw2_get_file_names): Use appropriate section.
3514 (read_type_comp_unit_head): Add 'section' argument.
3515 (create_debug_types_hash_table): Loop over all .debug_types
3516 sections.
3517 (init_cu_die_reader): Use appropriate section.
3518 (process_psymtab_comp_unit, load_partial_comp_unit)
3519 (load_full_comp_unit, read_die_and_children, find_partial_die)
3520 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3521 (lookup_signatured_type_at_offset): Add 'section' argument.
3522 (read_signatured_type_at_offset): Add 'sect' argument.
3523 (read_signatured_type): Use appropriate section.
3524 (set_die_type, get_die_type_at_offset): Update.
3525 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3526 VEC.
3527 (write_psymtabs_to_index): Don't allow index with more than one
3528 .debug_types section.
3529
918dd910
JK
35302011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3531
3532 Fix crash if referenced CU is aged out.
3533 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3534 xfree of block.data.
3535 (indirect_pieced_value): New variable back_to, use to for xfree of
3536 baton.data.
3537 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3538 block.data.
3539 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3540 (load_cu): New function from ...
3541 (dw2_do_instantiate_symtab): ... the code here ...
3542 (process_full_comp_unit): ... and here.
3543 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3544 retval.data.
3545
0e37a63c
JK
35462011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3547
3548 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3549 type.
3550
7e324e48
GB
35512011-07-19 Gary Benson <gbenson@redhat.com>
3552
3553 * infrun.c (struct execution_control_state): New member
3554 stop_func_filled_in.
3555 (clear_stop_func, fill_in_stop_func): New functions.
3556 (handle_inferior_event): Call clear_stop_func rather than
3557 manipulating the execution control state directly.
3558 Call fill_in_stop_func lazily as required rather than
3559 directly calling find_pc_partial_function in all cases.
3560
d48323d8
TT
35612011-07-18 Tom Tromey <tromey@redhat.com>
3562
3563 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3564 checking for variable-sized array.
3565
40591b7d
JCD
35662011-07-18 Jean-Charles Delay <delay@adacore.com>
3567
3568 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3569 of supported languages.
3570 * varobj.c: Add top definitions and basic implementation of the
3571 following callbacks: ada_number_of_children, ada_name_of_variable,
3572 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3573 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3574 (languages): Register Ada-specific callbacks.
3575 (variable_language): Add the Ada case in the language setter switch.
3576
2e424e08
JK
35772011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3578
3579 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3580
9e8b7a03
JK
35812011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3582
3583 Code cleanup.
3584 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3585 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3586 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3587 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3588 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3589 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3590 (struct dwarf_expr_context_funcs): New, move here methods from ...
3591 (struct dwarf_expr_context): ... here. New fields funcs.
3592 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3593 (dwarf_expr_ctx_funcs): New.
3594 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3595 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3596 (needs_frame_ctx_funcs): New.
3597 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3598
2b1260ab
FM
35992011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3600
3601 * MAINTAINERS (Write After Approval): Add myself to the list.
3602
8bd90839
FM
36032011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3604
3605 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3606 that CIE pointer of an FDE really points to a CIE .
3607
953b98d1
HZ
36082011-07-15 Hui Zhu <teawater@gmail.com>
3609
3610 * remote.c (remote_get_trace_status): Add comments.
3611
c8f2448a
JK
36122011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3613
3614 Code cleanup - constify struct lval_funcs.
3615 * dwarf2loc.c (pieced_value_funcs): Make it const.
3616 * infrun.c (siginfo_value_funcs): Likewise.
3617 * opencl-lang.c (opencl_value_funcs): Likewise.
3618 * valops.c (value_assign, value_ind): Make the funcs variable const.
3619 * value.c (struct value): Make location.computed.funcs target const.
3620 Rearrange the comments.
3621 (allocate_computed_value): Make the funcs parameter target const.
3622 (value_computed_funcs): Return the funcs target const.
3623 (value_free, value_copy, set_value_component_location): Make the funcs
3624 variable const.
3625 * value.h (allocate_computed_value): Make the funcs parameter target
3626 const.
3627 (value_computed_funcs): Return the funcs target const.
3628 * windows-tdep.c (tlb_value_funcs): Make it const.
3629
f652de6f
HZ
36302011-07-14 Hui Zhu <teawater@gmail.com>
3631
3632 * remote.c (remote_get_trace_status): Initialize p.
3633
67f41397
JK
36342011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3635
3636 Work around kgdb.
3637 * remote.c (remote_get_trace_status): New variable ex. Put
3638 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3639
d1b66e6d
TT
36402011-07-13 Tom Tromey <tromey@redhat.com>
3641
3642 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3643 value_from_contents for final conversion.
3644
1632a688
JK
36452011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3646
3647 Code cleanup.
3648 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3649 Indent prototypes so they do not get into tags.
3650
a7035dbb
JK
36512011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3652
3653 Code cleanup making also optimized out values lazy.
3654 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3655 allocate_optimized_out_value. Twice.
3656 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3657 * findvar.c (read_var_value): Likewise.
3658 * value.c (allocate_optimized_out_value): New function.
3659 * value.h (allocate_optimized_out_value): New declaration.
3660
d07ed419
JK
36612011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3662
3663 Fix occasional crash of CTRL-C during DWARF read in.
3664 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3665
86d31898
TT
36662011-07-11 Tom Tromey <tromey@redhat.com>
3667
3668 * regcache.c (struct regcache_descr): Fix typo.
3669 * i387-tdep.c (i387_supply_xsave): Fix typo.
3670
2ab95328
TT
36712011-07-11 Tom Tromey <tromey@redhat.com>
3672
3673 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3674 (read_file_scope, read_type_unit_scope): Use it.
3675
04ad99e6
JK
36762011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3677
3678 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3679 `int'.
3680
713389e0
PM
36812011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3682
3683 PR python/12438
3684 * python/python.c: Set gdbpy_should_print_stack default to off.
3685 (set_python): Deprecate maint set python print-stack to
3686 class_deprecate.
3687 (_initialize_python): Deprecate maint set/show python print-stack.
3688 Add new prefix command, python. Add new setting, print-backtrace.
3689 * NEWS: Document set python print-stack. Document default change.
3690
754eadd1
PM
36912011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3692
3693 * python/py-inferior.c (infpy_dealloc): New function.
3694 (inferior_to_inferior_object): Return a new object, or a
3695 new reference to the existing object.
3696 (find_thread_object): Cleanup references to inferior.
3697 (delete_thread_object): Ditto.
3698 * python/py-infthread.c (create_thread_object): Do not increment
3699 inferior reference count.
3700
5e44ecb3
TT
37012011-07-08 Tom Tromey <tromey@redhat.com>
3702
3703 * dwarf2loc.c (locexpr_regname): New function.
3704 (locexpr_describe_location_piece): Use it.
3705 (disassemble_dwarf_expression): Add per_cu argument. Use
3706 locexpr_regname.
3707 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3708 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3709 New cases.
3710 (locexpr_describe_location_1): Add per_cu argument.
3711 (locexpr_describe_location): Update.
3712 (loclist_describe_location): Update.
3713
e0e9434c
TT
37142011-07-08 Tom Tromey <tromey@redhat.com>
3715
3716 * dwarf2expr.c (execute_stack_op): Add QUIT.
3717
26afc0d7
HZ
37182011-07-07 Hui Zhu <teawater@gmail.com>
3719
3720 Revert:
3721 2011-07-06 Hui Zhu <teawater@gmail.com>
3722 * remote.c (remote_start_remote): Add TRY_CATCH for
3723 remote_get_trace_status.
3724 * tracepoint.c (disconnect_tracing): Ditto.
3725
a40a111f
AB
37262011-07-07 Andrew Burgess <aburgess@broadcom.com>
3727
3728 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3729 variables as signed, not unsigned.
3730
e2bd3b15
JB
37312011-07-06 Joel Brobecker <brobecker@adacore.com>
3732
3733 * jit.c (jit_inferior_init): Reformat forward declaration.
3734
e3d961fe 37352011-07-06 Matt Rice <ratmice@gmail.com>
3736
3737 * MAINTAINERS (Write After Approval): Add myself to the list.
3738
0f3428f0
HZ
37392011-07-06 Hui Zhu <teawater@gmail.com>
3740
3741 * remote.c (remote_start_remote): Add TRY_CATCH for
3742 remote_get_trace_status.
3743 * tracepoint.c (disconnect_tracing): Ditto.
3744
fc9f3a69
TT
37452011-07-05 Tom Tromey <tromey@redhat.com>
3746
3747 * symtab.c (operator_chars): Now static.
3748 * linespec.c (operator_chars): Don't declare.
3749
26e519b9
TJB
37502011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3751
3752 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3753
eb2a6f42
TT
37542011-07-05 Tom Tromey <tromey@redhat.com>
3755
3756 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3757 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3758 (TYPE_CPLUS_REALLY_JAVA): New macro.
3759 * dwarf2read.c (process_structure_scope): Set
3760 TYPE_CPLUS_REALLY_JAVA.
3761
21083d0f 37622011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3763
3764 * ada-lang.c: Fix typos.
3765 * amd64-tdep.c: Likewise.
3766 * breakpoint.c: Likewise.
3767 * cli/cli-decode.c: Likewise.
3768 * findcmd.c: Likewise.
3769 * inline-frame.c: Likewise.
3770 * mi/mi-main.c: Likewise.
3771 * minsyms.c: Likewise.
3772 * monitor.c: Likewise.
3773 * monitor.h: Likewise.
3774 * prologue-value.c: Likewise.
3775 * reverse.c: Likewise.
3776 * s390-tdep.c: Likewise.
3777
3b2a0cf2
JB
37782011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3779
3780 * jit.c (jit_inferior_init): Forward declare.
3781 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3782
efae1d92
JB
37832011-07-04 Joel Brobecker <brobecker@adacore.com>
3784
3785 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3786
6040a59d
JB
37872011-07-04 Tristan Gingold <gingold@adacore.com>
3788
3789 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3790 (tcb_fieldno): Add activation_link field.
3791 (get_known_tasks_addr): Moved and rewritten.
3792 (get_tcb_types_info): Set activation_link field.
3793 (read_known_tasks_array): Add parameter. Rewritten.
3794 (read_known_tasks_list): New function.
3795 (read_known_tasks): New function.
3796 (ada_build_task_list): Call read_known_tasks instead of
3797 read_known_tasks_array.
3798 * ravenscar-thread.c: Add first_task_name constant.
3799 (has_ravenscar_runtime): Check for task list too.
3800
cb741e45
JB
38012011-07-04 Tristan Gingold <gingold@adacore.com>
3802
3803 * ada-tasks.c: Renames fieldno to actb_fieldno.
3804 (ada_get_task_number): Indentation.
3805 (get_tcb_types_info): Remove all parameters. Write directly
3806 the globals.
3807 (ptid_from_atcb_common): Adjust.
3808 (read_atcb): Adjust.
3809
7475b06c
TJB
38102011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3811
3812 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3813
15230f37
TJB
38142011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3815
3816 * ui-out.c (ui_out_field_core_addr): Mention that the function
3817 description is in the header file.
3818 * ui-out.h (ui_out_field_core_addr): Document function.
3819
65743aba
TJB
38202011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3821
3822 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3823 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3824
c37a5aab
TJB
38252011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3826
3827 * symtab.c (expand_line_sal): Remove empty line.
3828
59adf69e
TS
38292011-07-04 Thomas Schwinge <thomas@schwinge.name>
3830
3831 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3832 same way as ELFOSABI_NONE.
3833 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3834
e5dd4106
TJB
38352011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3836
3837 * breakpoint.c: Fix typos in comments.
3838 * linespec.c: Likewise.
3839 * symtab.c: Likewise.
3840
d40102a1
JB
38412011-07-04 Joel Brobecker <brobecker@adacore.com>
3842
3843 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3844 section in separate object files.
3845
2f741504
JK
38462011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3847
3848 Fix false GCC warning.
3849 * linespec.c (decode_line_1): Initialize values.
3850
418c7cf7
JK
38512011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3852
3853 * linespec.c (find_method): Accept the function type automatically only
3854 if it was specified with parameter types.
3855
3d50dd94
JK
38562011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3857
3858 Stop on first linespec terminator instead of eating what we can.
3859 * linespec.c (is_linespec_boundary): New function.
3860 (name_end): Remove function.
3861 (keep_name_info): New parameter on_boundary, replace the body.
3862 (decode_line_1): Provide the parameter to keep_name_info.
3863 (decode_compound): Likewise. Drop the trailing java return type
3864 handling. Twice.
3865
dcf9f4ab
JK
38662011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3867
3868 Fall back linespec to minimal symbols.
3869 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3870 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3871 (find_method, symbol_found): Change error to cplusplus_error.
3872
3f542ed1
JK
38732011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3874
bc68c4e5 3875 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3876
900e11f9
JK
38772011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3878 Tom Tromey <tromey@redhat.com>
3879
3880 * dwarf2read.c (check_physname): New variable.
3881 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3882 (show_check_physname): New function.
3883 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3884
2301925d
JB
38852011-07-01 Joel Brobecker <brobecker@adacore.com>
3886
3887 * machoread.c (macho_symfile_read): Delete OBE comment.
3888
38947cca
JB
38892011-07-01 Joel Brobecker <brobecker@adacore.com>
3890
3891 * machoread.c (struct macho_oso_data): Delete.
3892 (current_oso): Delete.
3893 (macho_relocate_common_syms): New function, mostly extracted
3894 out of
3895 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3896 Remove code that sets and unset current_oso.
3897 (macho_symfile_relocate): Delete handling of common symbols,
3898 now moved to macho_relocate_common_syms.
3899
a7aa0d73
JB
39002011-07-01 Joel Brobecker <brobecker@adacore.com>
3901
3902 * darwin-nat.c (darwin_ptrace): Add documentation.
3903 Set errno to zero before calling ptrace. If ptrace returns
3904 -1 and errno is zero, then change then return zero.
3905 (darwin_kill_inferior): Issue a warning instead of triggering
3906 a failed assertion when the PT_KILL ptrace operations returned
3907 nonzero.
3908
5e9bc145
JB
39092011-07-01 Joel Brobecker <brobecker@adacore.com>
3910
3911 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3912 only when inf->private->no_ptrace.
3913
00eb2c4a
JB
39142011-07-01 Joel Brobecker <brobecker@adacore.com>
3915
3916 * ada-lang.c (print_it_exception): Print temporary catchpoints
3917 as "Temporary catchpoint".
3918 (print_mention_exception): Likewise.
3919
127c81bc
TT
39202011-07-01 Tom Tromey <tromey@redhat.com>
3921
3922 * jv-lang.c (java_language_defn): Use java_printchar,
3923 java_printstr.
3924 (java_get_encoding): New function.
3925 (java_emit_char): Use generic_emit_char.
3926 (java_printchar): New function.
3927 (java_printstr): Likewise.
3928
25552254
JB
39292011-07-01 Joel Brobecker <brobecker@adacore.com>
3930
3931 * ada-typeprint.c (print_record_type): If unable to decode
3932 the name of the parent type, use the encoded name.
3933
d2d43431
JB
39342011-07-01 Jean-Charles Delay <delay@adacore.com>
3935
3936 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3937 pointer to constrained packed array type output.
3938 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3939 packed array output.
3940
54ae186f
JB
39412011-07-01 Jean-Charles Delay <delay@adacore.com>
3942
3943 * ada-typeprint.c (print_array_type): removed if condition on show
3944 being negative for bounds printing.
3945
8f17729f
JB
39462011-07-01 Joel Brobecker <brobecker@adacore.com>
3947
3948 * ada-lang.c (ada_identical_enum_types_p): New function.
3949 (symbols_are_identical_enums): New function.
3950 (remove_extra_symbols): Do nothing if NSYMS < 2.
3951 Use symbols_are_identical_enums.
3952
f5aa6869
JB
39532011-07-01 Joel Brobecker <brobecker@adacore.com>
3954
3955 * ada-valprint.c (ada_value_print): Handle typedefs.
3956
8f465ea7
JB
39572011-07-01 Joel Brobecker <brobecker@adacore.com>
3958
3959 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3960
828292f2
JB
39612011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3962
3963 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3964 (decode_constrained_packed_array): Likewise.
3965 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3966
18920c42
JB
39672011-07-01 Joel Brobecker <brobecker@adacore.com>
3968
3969 * ada-exp.y (convert_char_literal): Handle typedef types.
3970
c90092fe
JB
39712011-07-01 Joel Brobecker <brobecker@adacore.com>
3972
3973 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3974
f748fb40
TT
39752011-06-30 Tom Tromey <tromey@redhat.com>
3976
3977 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3978 * valops.c (find_overload_match): Call do_cleanups on early exit
3979 path.
3980 * solib.c (solib_find): Call do_cleanups on early exit path.
3981
3bb47e8b
TT
39822011-06-30 Tom Tromey <tromey@redhat.com>
3983
3984 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3985 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3986 return paths. Defer final do_cleanups until last return.
3987 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3988 early return.
3989
4727bad3
TT
39902011-06-30 Tom Tromey <tromey@redhat.com>
3991
3992 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3993
bb361dbf
AB
39942011-06-30 Andrew Burgess <aburgess@broadcom.com>
3995
3996 * MAINTAINERS (Write After Approval): Add myself to the list.
3997
e0d00bc7
JK
39982011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3999
4000 Disable epilogue unwinders on recent GCCs.
4001 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4002 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4003 * dwarf2read.c (process_full_comp_unit): Initialize
4004 EPILOGUE_UNWIND_VALID.
4005 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4006 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4007 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4008
4632c0d0
JK
40092011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4010
4011 Code cleanup - reformatting.
4012 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4013 (producer_is_gcc_ge_4): ... here, change the return value.
4014 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4015 interpretation.
4016
32019081
JK
40172011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4018
4019 Fix non-only rename list for Fortran modules import.
4020 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4021 cp_add_using_directive caller.
4022 (cp_add_using_directive): New parameter excludes, describe it. New
4023 variables ix and param. Compare if also excludes match. Allocate NEW
4024 with variable size, initialize EXCLUDES there.
4025 (cp_lookup_symbol_imports): New variable excludep, test
4026 current->EXCLUDES with it.
4027 * cp-support.h: Include vec.h.
4028 (struct using_direct): New field excludes, describe it.
4029 (DEF_VEC_P (const_char_ptr)): New.
4030 (cp_add_using_directive): New parameter excludes.
4031 * defs.h (const_char_ptr): New typedef.
4032 * dwarf2read.c (read_import_statement): New variables child_die,
4033 excludes and cleanups, read in excludes.
4034 (read_namespace): Adjust the cp_add_using_directive caller.
4035
70c622a3
JK
40362011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4037
4038 Code cleanup.
4039 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4040 negative comparisons.
4041
39c4d40a
TT
40422011-06-29 André Pönitz <andre.poenitz@nokia.com>
4043
4044 * mi/mi-main.c (mi_cmd_list_features): Emit
4045 breakpoint-notifications.
4046
3b2b8fea
TT
40472011-06-29 Tom Tromey <tromey@redhat.com>
4048
4049 PR fortran/10036:
4050 * valprint.h (generic_emit_char, generic_printstr): Declare.
4051 * valprint.c (wchar_printable, append_string_as_wide)
4052 (print_wchar): Move from c-lang.c.
4053 (generic_emit_char): New function; mostly taken from c_emit_char.
4054 (generic_printstr): New function; mostly taken from c_printstr.
4055 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4056 represented as arrays.
4057 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4058 type.
4059 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4060 identically to TYPE_CODE_INT.
4061 * f-lang.c (f_get_encoding): New function.
4062 (f_emit_char): Use generic_emit_char.
4063 (f_printchar): Replace comment.
4064 (f_printstr): Use generic_printstr.
4065 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4066 "character" types specially.
4067 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4068 for Fortran.
4069 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4070 Move to valprint.c
4071 (c_emit_char): Call generic_emit_char.
4072 (c_printstr): Call generic_printstr.
4073
168e6d44
GB
40742011-06-29 Gary Benson <gbenson@redhat.com>
4075
4076 * breakpoint.c (bpstat_what): Removed duplicated case.
4077
1c033f8c
TT
40782011-06-28 Tom Tromey <tromey@redhat.com>
4079
4080 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4081
5fe41fbf
TT
40822011-06-27 Tom Tromey <tromey@redhat.com>
4083
4084 * valops.c (find_overload_match): Call do_cleanups before early
4085 return.
4086 * top.c (execute_command): Call do_cleanups before early return.
4087 (command_loop): Likewise.
4088 * stack.c (backtrace_command): Make a null cleanup early. Don't
4089 conditionally call do_cleanups.
4090 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4091 TRY_CATCH.
4092 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4093 so cleanups are always run.
4094 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4095 * findcmd.c (parse_find_args): Call do_cleanups on early return
4096 path.
4097 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4098 Don't conditionally call do_cleanups.
4099 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4100 later.
4101
e26bd57d
EB
41022011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4103
4104 * MAINTAINERS (Write After Approval): Use default email address.
4105
6c3097fc
JB
41062011-06-27 Joel Brobecker <brobecker@adacore.com>
4107
4108 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4109
369c397b
JB
41102011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4111
4112 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4113 saved_regs_mask and copied_regs_mask fields.
4114 (sparc_record_save_insn): New prototype.
4115 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4116 (sparc_record_save_insn): New function.
4117 (sparc_analyze_prologue): Add head comment. Recognize store insns
4118 of call-saved registers. Use OFFSET consistently. Recognize flat
4119 frames and cache their settings.
4120 (sparc32_skip_prologue): Handle flat frames.
4121 (sparc_frame_cache): Add frame_offset to the base address.
4122 (sparc32_frame_cache): Adjust to new frame description.
4123 (sparc32_frame_prev_register): Likewise.
4124 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4125 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4126 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4127 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4128 frame by calling sparc_record_save_insn.
4129 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4130 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4131 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4132
b315ab21
TG
41332011-06-27 Tristan Gingold <gingold@adacore.com>
4134
4135 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4136 field by map_addr and map_len.
4137 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4138 (munmap_section_buffer): Likewise.
4139
ddd49eee
TT
41402011-06-24 Tom Tromey <tromey@redhat.com>
4141
4142 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4143 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4144 * python/python.c (gdbpy_parameter): Make 'arg' const.
4145 (execute_gdb_command): Likewise.
4146 (gdbpy_decode_line): Likewise. Copy it.
4147 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4148 (gdbpy_write): Make 'arg' const.
4149 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4150 const.
4151 (gdbpy_lookup_type): Likewise.
4152 * python/py-prettyprint.c (print_children): Make 'name' const.
4153 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4154 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4155 Py_ssize_t.
4156 * python/py-function.c (fnpy_init): Make 'name' const.
4157 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4158 (gdbpy_string_to_argv): Make 'input' const.
4159 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4160 it.
4161 * gdbtypes.h (lookup_typename): Update.
4162 * gdbtypes.c (lookup_typename): Make 'name' const.
4163 (lookup_struct): Likewise.
4164 (lookup_union): Likewise.
4165 (lookup_enum): Likewise.
4166
5998129b
TT
41672011-06-24 Tom Tromey <tromey@redhat.com>
4168
4169 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4170 gdb_thread_db.h. Move all common/ entries to be together.
4171 (TAGS): Don't depend on DEPFILES.
4172
6e586cc5
YQ
41732011-06-23 Yao Qi <yao@codesourcery.com>
4174
4175 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4176 * remote.c (remote_start_remote): ... here.
4177 * monitor.c (monitor_open): ... here.
4178
86c3c1fc
AB
41792011-06-23 Andrew Burgess <aburgess@broadcom.com>
4180
4181 * gdbtypes.c (append_composite_type_field_aligned): Fix
4182 calculation of bit position based on alignment.
4183
28010a5d
PA
41842011-06-22 Pedro Alves <pedro@codesourcery.com>
4185
4186 * breakpoint.c (bpstat_stop_status): Call the check_status
4187 breakpoint_ops method.
4188 (print_one_breakpoint_location): Also print the condition for Ada
4189 exception catchpoints.
4190 (allocate_bp_location): New, factored out from
4191 allocate_bp_location.
4192 (allocate_bp_location): Adjust. Call the owner breakpoint's
4193 allocate_location method, if there is one.
4194 (free_bp_location): Call the locations's dtor method, if there is
4195 one.
4196 (init_raw_breakpoint_without_location): New breakpoint_ops
4197 parameter. Use it.
4198 (set_raw_breakpoint_without_location): Adjust.
4199 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4200 (set_raw_breakpoint): Adjust.
4201 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4202 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4203 re_set and check_status methods.
4204 (init_catchpoint): Don't memset, initialize thread, addr_string
4205 and enable_state. Pass the ops down to init_raw_breakpoint.
4206 (install_catchpoint): Rename to ...
4207 (install_breakpoint): ... this, and make extern.
4208 (create_fork_vfork_event_catchpoint): Adjust.
4209 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4210 re_set and check_status methods.
4211 (create_syscall_event_catchpoint): Adjust.
4212 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4213 (masked_watchpoint_breakpoint_ops): Install NULL
4214 allocate_location, re_set and check_status methods.
4215 (catch_exec_command_1): Adjust.
4216 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4217 re_set and check_status methods.
4218 (create_ada_exception_breakpoint): Rename to ...
4219 (init_ada_exception_breakpoint): ... this. Add a struct
4220 breakpoint parameter, and delete the exp_string, cond_string and
4221 cond parameters. Use init_raw_breakpoint, and don't install or
4222 mention the breakpoint yet. Don't clear breakpoint fields that
4223 init_raw_breakpoint already clears.
4224 (re_set_breakpoint): Delete, split into ...
4225 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4226 functions.
4227 (breakpoint_re_set_one): Call the breakpoint's
4228 breakpoint_ops->re_set implementation, if there's one. Adjust.
4229 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4230 (struct bp_location_ops): New type.
4231 (struct bp_location): New field `ops'.
4232 (struct breakpoint_ops): New `allocate_location', `re_set' and
4233 `check_status' fields. Make `breakpoint_hit''s description match
4234 reality.
4235 (init_bp_location): Declare.
4236 (breakpoint_re_set_default): Declare.
4237 (create_ada_exception_breakpoint): Rename to ...
4238 (init_ada_exception_breakpoint): ... this. Add a struct
4239 breakpoint parameter, and delete the exp_string, cond_string and
4240 cond parameters.
4241 (install_breakpoint): Declare.
4242 * ada-lang.c: Include exceptions.h.
4243 <Ada exceptions description>: Update.
4244 (struct ada_catchpoint_location): New type.
4245 (ada_catchpoint_location_dtor): New function.
4246 (ada_catchpoint_location_ops): New global.
4247 (ada_catchpoint): New type.
4248 (create_excep_cond_exprs): New function.
4249 (dtor_exception, allocate_location_exception, re_set_exception)
4250 (should_stop_exception, check_status_exception): New functions.
4251 (print_one_exception, print_mention_exception)
4252 (print_recreate_exception): Adjust.
4253 (dtor_catch_exception, allocate_location_catch_exception)
4254 (re_set_catch_exception, check_status_catch_exception): New
4255 functions.
4256 (catch_exception_breakpoint_ops): Install them.
4257 (dtor_catch_exception_unhandled)
4258 (allocate_location_catch_exception_unhandled)
4259 (re_set_catch_exception_unhandled)
4260 (check_status_catch_exception_unhandled): New functions.
4261 (catch_exception_unhandled_breakpoint_ops): Install them.
4262 (dtor_catch_assert, allocate_location_catch_assert)
4263 (re_set_catch_assert, check_status_catch_assert): New functions.
4264 (catch_assert_breakpoint_ops): Install them.
4265 (ada_exception_catchpoint_p): Delete.
4266 (catch_ada_exception_command_split)
4267 (ada_exception_catchpoint_cond_string): Rename exp_string
4268 parameter to excep_string. Adjust.
4269 (ada_parse_catchpoint_condition): Delete.
4270 (ada_exception_sal): Rename the exp_string parameter to
4271 excep_string. Delete the cond_string and cond parameters.
4272 Adjust.
4273 (ada_decode_exception_location): Rename the exp_string parameter
4274 to excep_string. Delete the cond_string and cond parameters.
4275 Adjust.
4276 (create_ada_exception_catchpoint): New function.
4277 (catch_ada_exception_command, ada_decode_assert_location)
4278 (catch_assert_command): Adjust.
4279 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4280
9ac4176b
PA
42812011-06-22 Pedro Alves <pedro@codesourcery.com>
4282
4283 * ada-lang.c: Include arch-utils.h.
4284 (ada_decode_exception_location): Make static.
4285 (catch_ada_exception_command): Moved here from breakpoint.c.
4286 (ada_decode_assert_location): Make static.
4287 (catch_assert_command): Moved here from breakpoint.c.
4288 (_initialize_ada_lang): Install the exception and assert
4289 catchpoint commands here.
4290 * ada-lang.h (ada_decode_exception_location)
4291 (ada_decode_assert_location): Delete declarations.
4292 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4293 breakpoint.h.
4294 (create_ada_exception_breakpoint): Make extern.
4295 (catch_ada_exception_command, catch_assert_command): Moved to
4296 ada-lang.c.
4297 (add_catch_command): Make extern.
4298 (_initilize_breakpoint): Don't install the exception and assert
4299 catchpoint commands here.
4300 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4301 breakpoint.c
4302 (add_catch_command, create_ada_exception_breakpoint): Declare.
4303
c56053d2
PA
43042011-06-22 Pedro Alves <pedro@codesourcery.com>
4305
4306 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4307 the breakpoint to the breakpoint chain here.
4308 (set_raw_breakpoint_without_location): Add the breakpoint to the
4309 breakpoint chain here.
4310 (init_raw_breakpoint): Adjust comments.
4311 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4312 here.
4313 (init_catchpoint): Don't set the catchpoint's breakpoint number
4314 here.
4315 (install_catchpoint): New function.
4316 (create_fork_vfork_event_catchpoint)
4317 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4318 use install_catchpoint.
4319
d2f3fc74
PA
43202011-06-22 Pedro Alves <pedro@codesourcery.com>
4321
4322 * breakpoint.c (create_catchpoint_without_mention)
4323 (create_catchpoint): Delete.
4324
b4d90040
PA
43252011-06-22 Pedro Alves <pedro@codesourcery.com>
4326
4327 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4328 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4329 reference to exec_pathname.
4330 (struct exec_catchpoint): New type.
4331 (dtor_catch_exec): New function.
4332 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4333 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4334 (catch_exec_command_1): Adjust to use init_catchpoint.
4335 (delete_breakpoint): Remove reference to exec_pathname.
4336
be5c67c1
PA
43372011-06-22 Pedro Alves <pedro@codesourcery.com>
4338
4339 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4340 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4341 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4342 reference to syscalls_to_be_caught.
4343 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4344 NULL `dtor'.
4345 (struct syscall_catchpoint): New type.
4346 (dtor_catch_syscall): New function.
4347 (insert_catch_syscall, remove_catch_syscall)
4348 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4349 (print_recreate_catch_syscall): Adjust.
4350 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4351 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4352 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4353 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4354 (masked_watchpoint_breakpoint_ops)
4355 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4356 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4357 there is one. Remove references to syscalls_to_be_caught.
4358 (catching_syscall_number): Adjust.
4359 * ada-lang.c (catch_exception_breakpoint_ops)
4360 (catch_exception_unhandled_breakpoint_ops)
4361 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4362
e29a4733
PA
43632011-06-22 Pedro Alves <pedro@codesourcery.com>
4364
4365 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4366 field.
4367 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4368 reference to forked_inferior_pid.
4369 (struct fork_catchpoint): New type.
4370 (breakpoint_hit_catch_fork, print_it_catch_fork)
4371 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4372 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4373 (create_fork_vfork_event_catchpoint): Adjust to use
4374 init_catchpoint.
4375
346774a9
PA
43762011-06-22 Pedro Alves <pedro@codesourcery.com>
4377
4378 * breakpoint.c (add_to_breakpoint_chain)
4379 (init_raw_breakpoint_without_location): New functions, factored
4380 out from ...
4381 (set_raw_breakpoint_without_location): ... this one.
4382 (init_raw_breakpoint): New function, factored out from
4383 set_raw_breakpoint and adjusted to use
4384 init_raw_breakpoint_without_location.
4385 (set_raw_breakpoint): Adjust.
4386 (init_catchpoint): New function, factored out from
4387 create_catchpoint_without_mention and adjusted to use
4388 init_raw_breakpoint.
4389 (create_catchpoint_without_mention): Adjust.
4390
c38c4bc5
TT
43912011-06-22 Tom Tromey <tromey@redhat.com>
4392
4393 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4394 argument of 0 specially.
4395
b138ce37
YQ
43962011-06-22 Yao Qi <yao@codesourcery.com>
4397
4398 * infrun.c (handle_inferior_event): Remove write-only local variable
4399 `sw_single_step_trap_p'.
4400
03de6823
TT
44012011-06-20 Tom Tromey <tromey@redhat.com>
4402
4403 * symtab.c (lookup_language_this): End loop if block is NULL.
4404
66a17cb6
TT
44052011-06-17 Tom Tromey <tromey@redhat.com>
4406
4407 * valops.c (value_of_this): Use lookup_language_this.
4408 * symtab.h (lookup_language_this): Declare.
4409 * symtab.c (lookup_language_this): New function.
4410 (lookup_symbol_aux): Use lookup_language_this.
4411 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4412
7518bff5
TT
44132011-06-17 Tom Tromey <tromey@redhat.com>
4414
4415 * value.h (value_of_this): Update.
4416 (value_of_local): Remove.
4417 * valops.c (value_of_this): Rename from value_of_local. Change
4418 parameters.
4419 * p-exp.y (exp): Update.
4420 (variable): Likewise.
4421 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4422
aee28ec6
TT
44232011-06-17 Tom Tromey <tromey@redhat.com>
4424
4425 * valops.c (value_of_local): Complain if NAME is NULL.
4426 * std-operator.def (OP_OBJC_SELF): Remove.
4427 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4428 * objc-exp.y (name_not_typename): Use OP_THIS.
4429 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4430 name for "this".
4431 <OP_OBJC_SELF>: Remove.
4432 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4433
eed8f803
TG
44342011-06-16 Tristan Gingold <gingold@adacore.com>
4435
4436 * python/py-events.h (gdb_py_events): Make it extern.
4437 * python/py-evtregistry.c (gdb_py_events): Declare.
4438
864ac8a7
HZ
44392011-06-16 Hui Zhu <teawater@gmail.com>
4440
4441 * remote.c (remote_trace_set_readonly_regions): Add check for
4442 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4443 output warning.
4444
ef7e8358
UW
44452011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4446
4447 * arm-linux-tdep.c: Include "auxv.h".
4448 (AT_HWCAP): Define.
4449 (ARM_LINUX_SIZEOF_VFP): Define.
4450 (arm_linux_supply_vfp): New function.
4451 (arm_linux_collect_vfp): Likewise.
4452 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4453 (arm_linux_fpa_regset_sections): New variable.
4454 (arm_linux_vfp_regset_sections): Likewise.
4455 (arm_linux_core_read_description): New function.
4456 (arm_linux_init_abi): Install arm_linux_core_read_description and
4457 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4458 appropriate for the architecture.
4459 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4460 (tdesc_arm_with_m): Declare.
4461 (tdesc_arm_with_iwmmxt): Likewise.
4462 (tdesc_arm_with_vfpv2): Likewise.
4463 (tdesc_arm_with_vfpv3): Likewise.
4464 (tdesc_arm_with_neon): Likewise.
4465 * arm-linux-nat.c: Move features/*.c includes ...
4466 * arm-tdep.c: ... here.
4467 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4468 target description data structures ...
4469 * arm-tdep.c (_initialize_arm_tdep): ... here.
4470 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4471 HWCAP_VFPv3D16): Move definitions ...
4472 * arm-linux-tdep.h: ... here.
4473
c2fa21f1
HZ
44742011-06-15 Hui Zhu <teawater@gmail.com>
4475
4476 * remote.c (remote_trace_set_readonly_regions): Add a check for
4477 target_buf_size.
4478
dd707e8e
TT
44792011-06-14 Tom Tromey <tromey@redhat.com>
4480
4481 * coffread.c (coffread_objfile): Rename from current_objfile.
4482 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4483 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4484
86cc0029
TT
44852011-06-14 Tom Tromey <tromey@redhat.com>
4486
4487 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4488 (class_symtab): Remove.
4489 (jv_dynamics_progspace_key): New global.
4490 (jv_per_objfile_free): Reset program space data. Update assert.
4491 Don't clear globals.
4492 (get_dynamics_objfile): Use and set program space data.
4493 (get_java_class_symtab): Use get_dynamics_objfile.
4494 (add_class_symbol): Likewise.
4495 (java_link_class_type): Likewise.
4496 (java_object_type, jv_clear_object_type, set_java_object_type):
4497 Remove.
4498 (get_java_object_type): Update. Don't cache result.
4499 (is_object_type): Don't call set_java_object_type.
4500 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4501 initialize jv_dynamics_progspace_key.
4502
91a81f69
TT
45032011-06-14 Tom Tromey <tromey@redhat.com>
4504
4505 * symtab.h (current_objfile): Don't declare.
4506 * objfiles.h (current_objfile): Don't declare.
4507 * objfiles.c (current_objfile): Remove.
4508 * mdebugread.c (current_objfile): New file-scope global.
4509 * dbxread.c (current_objfile): New file-scope global.
4510 * coffread.c (current_objfile): New file-scope global.
4511
dc7eb48e
PA
45122011-06-13 Pedro Alves <pedro@codesourcery.com>
4513
4514 * top.h (line): Rename to ...
4515 (saved_command_line): ... this.
4516 (linesize): Rename to ...
4517 (saved_command_line_size): ... this.
4518 * top.c (line): Rename to ...
4519 (saved_command_line): ... this.
4520 (linesize): Rename to ...
4521 (saved_command_line_size): ... this.
4522 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4523 * event-top.c (command_line_handler): Adjust.
4524 * main.c (captured_main): Adjust.
4525
0d6c2135
MK
45262011-06-12 Mark Kettenis <kettenis@gnu.org>
4527
4528 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4529 get_frame_func instead of get_frame_pc to determine the code
4530 address used to construct the frame ID.
4531 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4532 (i386_epilogue_frame_this_id): Likewise.
4533 (i386_epilogue_frame_prev_register): New function.
4534 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4535 (i386_stack_tramp_frame_sniffer): Fix coding style.
4536 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4537 (i386_gdbarch_init): Fix comments.
4538
8bbdd3f4
MK
45392011-06-12 Mark Kettenis <kettenis@gnu.org>
4540
4541 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4542 instruction when walking back through the instruction stream.
4543
533a737e
JK
45442011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4545
4546 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4547 fullname parameters order.
4548
44b13c5a
JK
45492011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4550
4551 Code cleanup.
4552 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4553 for fun.
4554 * psymtab.c (map_symbol_filenames_psymtab)
4555 (map_partial_symbol_filenames): Likewise.
4556 * psymtab.h: Include symfile.h.
4557 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4558 * symfile.h (symbol_filename_ftype): New.
4559 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4560 map_symbol_filenames, clarify more the naming in comment.
4561
0b5574da
DE
45622011-06-07 Doug Evans <dje@google.com>
4563
4564 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4565 Look for ../../gdb, for fullname.exp.
0b5574da 4566
5be4dfca
JK
45672011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4568 Pedro Alves <pedro@codesourcery.com>
4569
4570 * cli/cli-cmds.c (shell_escape): Use waitpid.
4571 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4572
316a8b21
TG
45732011-06-07 Tristan Gingold <gingold@adacore.com>
4574
4575 * xcoffread.c (dwarf2_xcoff_names): New variable.
4576 (aix_process_linenos): Add a guard.
4577 (xcoff_symfile_finish): Free dwarf2.
4578 (xcoff_initial_scan): Add dwarf2 support.
4579
3dd5b83d
PA
45802011-06-06 Pedro Alves <pedro@codesourcery.com>
4581
4582 * infcall.c (run_inferior_call): Don't mask async. Instead force
4583 a synchronous wait, if the target can async.
4584
4585 * target.h (struct target_ops): Delete to_async_mask.
4586 (target_async_mask): Delete.
4587 * target.c (update_current_target): Delete references to to_async_mask.
4588 * linux-nat.c (linux_nat_async_mask_value): Delete.
4589 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4590 to linux_nat_async_mask_value.
4591 (linux_nat_async_mask): Delete.
4592 (linux_nat_async, linux_nat_close): Remove references to
4593 linux_nat_async_mask_value.
4594 * record.c (record_async_mask_value): Delete.
4595 (record_async): Remove references to record_async_mask_value.
4596 (record_async_mask): Delete.
4597 (record_can_async_p, record_is_async_p): Remove references to
4598 record_async_mask_value.
4599 (init_record_ops, init_record_core_ops): Remove references to
4600 record_async_mask.
4601 * remote.c (remote_async_mask_value): Delete.
4602 (init_remote_ops): Remove reference to remote_async_mask.
4603 (remote_can_async_p, remote_is_async_p): Remove references to
4604 remote_async_mask_value.
4605 (remote_async): Remove references to remote_async_mask_value.
4606 (remote_async_mask): Delete.
4607
4608 * infrun.c (fetch_inferior_event): Don't claim registers changed
4609 if the current thread is already not executing.
4610
64b9b334
JB
46112011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4612
4613 From Stephen Kitt <steve@sk2.org>
4614 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4615 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4616
325663dc
JB
46172011-06-03 Joel Brobecker <brobecker@adacore.com>
4618
4619 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4620 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4621
8cf64490
TT
46222011-06-03 Tom Tromey <tromey@redhat.com>
4623
4624 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4625 code fields.
4626 * python/py-exitedevent.c (create_exited_event_object): Change
4627 type of 'exit_code'. Optionally add exit_code attribute.
4628 (emit_exited_event): Change type of 'exit_code'.
4629 * python/py-event.h (emit_exited_event): Update.
4630 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4631 * infrun.c (handle_inferior_event): Set exit code fields on
4632 inferior.
4633 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4634 fields.
4635 * inferior.c (exit_inferior_1): Initialize new fields.
4636
8ddd9a20
TT
46372011-06-03 Tom Tromey <tromey@redhat.com>
4638
4639 * dwarf2expr.c (get_signed_type): New function.
4640 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4641
8dfd1e6d
KS
46422011-06-02 Keith Seitz <keiths@redhat.com>
4643
4644 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4645
65fdb766
PA
46462011-06-02 Pedro Alves <pedro@codesourcery.com>
4647
4648 * top.h (simplified_command_loop): Delete declaration.
4649
f4b8c29b
MF
46502011-06-01 Mike Frysinger <vapier@gentoo.org>
4651
4652 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4653 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4654
1706c199
YQ
46552011-06-01 Yao Qi <yao@codesourcery.com>
4656
4657 * objfiles.h (obj_section_addr): Update reference to objfile from
4658 `abfd' to `obfd'.
4659 (obj_section_endaddr): Likewise.
4660
d19cd713 46612011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4662
4663 * MAINTAINERS: Update my email address and affiliation. Also
4664 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4665
e8eb7bc5
KS
46662010-05-31 Keith Seitz <keiths@redhat.com>
4667
4668 PR c++/12750
4669 * linespec.c (get_search_block): New function.
4670 (find_methods): Add FILE_SYMTATB parameter and use it and
4671 get_search_block to pass an appropriate block to
4672 lookup_symbol_in_namespace.
4673 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4674 Check if *ARGPTR starts with a filename first.
4675 If it does, call locate_first_half again to locate the next
4676 "first half" of the linespec.
4677 Pass FILE_SYMTATB to decode_objc and decode_compound.
4678 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4679 (locate_first_half): Stop on the first colon seen.
4680 (decode_compound): Add FILE_SYMTAB parameter.
4681 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4682 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4683 get_search_block with lookup_symbol.
4684 (find_method): Add FILE_SYMTAB parameter and pass it to
4685 find_methods.
4686 (decode_objc): Use get_search_block.
4687
2b1dbab0
KS
46882010-05-31 Keith Seitz <keiths@redhat.com>
4689
4690 PR symtab/12704
4691 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4692 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4693 and CP_ANONYMOUS_NAMESPACE_LEN.
4694 (cp_is_anonymous): Likewise.
4695 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4696 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4697 * dwarf2read.c (namespace_name): Likewise.
4698 (fixup_partial_die): Likewise.
4699 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4700 seen in the input, keep it.
4701
6d549500
PA
47022011-05-30 Pedro Alves <pedro@codesourcery.com>
4703
4704 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4705 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4706 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4707 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4708 * remote.c (_initialize_remote): Register
4709 async_remote_interrupt_twice directly as
4710 sigint_remote_twice_token event.
4711
395bff70
PA
47122011-05-30 Pedro Alves <pedro@codesourcery.com>
4713
4714 * target.h (enum inferior_event_type): Delete INF_ERROR.
4715 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4716
97224164
PA
47172011-05-30 Pedro Alves <pedro@codesourcery.com>
4718
4719 * interps.c (interp_set): Don't cancel continuations.
4720
07e78767
JK
47212011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4724
fa4cd53f
PA
47252011-05-30 Pedro Alves <pedro@codesourcery.com>
4726
4727 * continuations.h (continuation_ftype): Add `err' parameter.
4728 Document parameters.
4729 (do_all_continuations, do_all_continuations_thread)
4730 (do_all_intermediate_continuations)
4731 (do_all_intermediate_continuations_thread)
4732 (do_all_inferior_continuations): Add `err' parameter.
4733 * continuations.c (do_my_continuations_1, do_my_continuations)
4734 (do_all_inferior_continuations, do_all_continuations_ptid)
4735 (do_all_continuations_thread_callback)
4736 (do_all_continuations_thread, do_all_continuations)
4737 (do_all_intermediate_continuations_thread_callback)
4738 (do_all_intermediate_continuations_thread)
4739 (do_all_intermediate_continuations): Add `err' parameter, and pass
4740 it down all the way to the continuations proper.
4741 * inf-loop.c (inferior_event_handler): If fetching an inferior
4742 event throws an error, don't pop the target, and still call the
4743 continuations, but with `err' set. Adjust all other continuation
4744 calls.
4745 * breakpoint.c (until_break_command_continuation): Add `err'
4746 parameter.
4747 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4748 issue another step if `err' is set.
4749 (struct until_next_continuation_args): New.
4750 (until_next_continuation): Add `err' parameter. Adjust.
4751 (until_next_command): Adjust.
4752 (struct finish_command_continuation_args): Add `thread' field.
4753 (finish_command_continuation): Add `err' parameter. Handle it.
4754 (finish_forward): Adjust.
4755 (attach_command_continuation): Add `err' parameter. Handle it.
4756 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4757 cancel the continuations.
4758 * interps.c (interp_set): Adjust to cancel the continuations.
4759 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4760 continuations rather than discarding.
4761 (free_thread): Don't clear thread inferior resources here.
4762 (delete_thread_1): Do it here instead. And do it before removing
4763 the thread from the threads list. Tag the thread as exited before
4764 clearing thread inferior resources.
4765
c2949be0
JB
47662011-05-30 Joel Brobecker <brobecker@adacore.com>
4767
4768 * infcall.c (call_function_by_hand): Rephrase error message.
4769
619cebe8
PA
47702011-05-27 Pedro Alves <pedro@codesourcery.com>
4771
4772 * defs.h (struct thread_info, struct inferior): Delete forward
4773 declarations.
4774 * breakpoint.h (struct thread_info): New forward declaration.
4775 * observer.sh (struct inferior): New forward declaration.
4776 * python/python-internal.h (struct inferior): New forward
4777 declaration.
4778
be34f849
PA
47792011-05-27 Pedro Alves <pedro@codesourcery.com>
4780
4781 * defs.h (struct continuation, continuation_ftype)
4782 (continuation_free_arg_ftype, add_continuation)
4783 (do_all_continuations, do_all_continuations_thread)
4784 (discard_all_continuations, discard_all_continuations_thread)
4785 (add_intermediate_continuation, do_all_intermediate_continuations)
4786 (do_all_intermediate_continuations_thread)
4787 (discard_all_intermediate_continuations)
4788 (discard_all_intermediate_continuations_thread)
4789 (add_inferior_continuation, do_all_inferior_continuations)
4790 (discard_all_inferior_continuations): Move to ...
4791 * continuations.h: ... this new file.
4792 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4793 infcmd.c, inferior.c, infrun.c, interps.c: Include
4794 continuations.h.
4795
432b4d03
JK
47962011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4797 Doug Evans <dje@google.com>
4798
4799 Fix PR 10970, PR 12702.
4800 * linux-nat.c (linux_lwp_is_zombie): New function.
4801 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4802 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4803
b0f260d6
PA
48042011-05-27 Pedro Alves <pedro@codesourcery.com>
4805
4806 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4807 typedefs.
4808 (add_continuation, add_intermediate_continuation)
4809 (add_inferior_continuation): Use them.
4810 * continuations.c (struct continuation): Use them.
4811 (make_continuation_ftype): Delete.
4812 (make_continuation, add_inferior_continuation, add_continuation)
4813 (add_intermediate_continuation): Use continuation_ftype and
4814 continuation_free_arg_ftype. Rename parameters to shorter names.
4815
af1e9a32
PA
48162011-05-27 Pedro Alves <pedro@codesourcery.com>
4817
4818 * continuations.c (make_continuation): Make it return void.
4819 (do_my_continuations): Rename to ...
4820 (do_my_continuations_1): ... this. Remove old_chain parameter and
4821 adjust.
4822 (do_my_continuations): New.
4823 (discard_my_continuations): Rename to ...
4824 (discard_my_continuations_1): ... this. Remove old_chain
4825 parameter and adjust.
4826 (discard_my_continuations): New.
4827 (add_inferior_continuation): Simplify.
4828 (do_all_inferior_continuations): Reimplement on top
4829 do_my_continuations.
4830 (discard_all_inferior_continuations): Simplify.
4831 (add_continuation): Simplify.
4832 (do_all_continuations_ptid): Simplify.
4833 (discard_all_continuations_thread_callback): Simplify.
4834 (add_intermediate_continuation): Simplify.
4835 (discard_all_intermediate_continuations_thread_callback):
4836 Simplify.
4837
50c0c017
PA
48382011-05-27 Pedro Alves <pedro@codesourcery.com>
4839
4840 * utils.c (struct continuation, add_continuation)
4841 (add_inferior_continuation)
4842 (do_all_inferior_continuations, discard_all_inferior_continuations)
4843 (restore_thread_cleanup, do_all_continuations_ptid)
4844 (do_all_continuations_thread_callback)
4845 (do_all_continuations_thread, do_all_continuations)
4846 (discard_all_continuations_thread_callback)
4847 (discard_all_continuations_thread, discard_all_continuations)
4848 (add_intermediate_continuation)
4849 (do_all_intermediate_continuations_thread_callback)
4850 (do_all_intermediate_continuations_thread)
4851 (do_all_intermediate_continuations)
4852 (discard_all_intermediate_continuations_thread_callback)
4853 (discard_all_intermediate_continuations_thread)
4854 (discard_all_intermediate_continuations): Move to ...
4855 * continuations.c: ... this new file, and adjust to no longer
4856 implement continuations on top of cleanups.
4857 * Makefile.in (SFILES): Add continuations.c.
4858 (COMMON_OBS): Add continuations.o.
4859
d8b34453
PA
48602011-05-26 Pedro Alves <pedro@codesourcery.com>
4861
4862 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4863 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4864 Internal error on invalid values.
4865 * reverse.c: Don't handle EXEC_ERROR.
4866 * mi/mi-main.c: Don't handle EXEC_ERROR.
4867
32231432
PA
48682011-05-26 Pedro Alves <pedro@codesourcery.com>
4869
4870 * record.c: Include event-loop.h, inf-loop.h.
4871 (record_beneath_to_async): New global.
4872 (tmp_to_async): New global.
4873 (record_async_inferior_event_token): New global.
4874 (record_open_1): Don't error out if async is enabled.
4875 (record_open): Handle to_async. Create an async event source in
4876 the event loop.
4877 (record_close): Delete the async event source.
4878 (record_resumed): New global.
4879 (record_execution_dir): New global.
4880 (record_resume, record_core_resume): Set them. Register the
4881 target on the event loop.
4882 (record_wait): Rename to ...
4883 (record_wait_1): ... this. Add more debug output. Handle
4884 TARGET_WNOHANG, and the target beneath returning
4885 TARGET_WAITKIND_IGNORE.
4886 (record_wait): Reimplement on top of record_wait_1.
4887 (record_async_mask_value): New global.
4888 (record_async, record_async_mask, record_can_async_p)
4889 (record_is_async_p, record_execution_direction): New functions.
4890 (init_record_ops, init_record_core_ops): Install new methods.
4891 * infrun.c (fetch_inferior_event): Temporarily switch the global
4892 execution direction to the direction the target was going.
4893 (execution_direction): Change type to int.
4894 * target.c (default_execution_direction): New function.
4895 (update_current_target): Inherit and de_fault
4896 to_execution_direction.
4897 * target.h (struct target_ops) <to_execution_direction>: New
4898 field.
4899 (target_execution_direction): New macro.
4900 * inferior.h (execution_direction): Change type to int.
4901
949dc678
PA
49022011-05-26 Pedro Alves <pedro@codesourcery.com>
4903
4904 * infcall.c (call_function_by_hand): Don't allow calling functions
4905 in reverse execution mode.
4906
c13bd2b5
PA
49072011-05-26 Pedro Alves <pedro@codesourcery.com>
4908
4909 * infcmd.c (finish_command): Allow async finish in reverse.
4910
6938fd34
YQ
49112011-05-26 Yao Qi <yao@codesourcery.com>
4912
4913 * gdb_thread_db.h: Delete. Move to ...
4914 * common/gdb_thread_db.h: ... here.
4915
9da8c2a0
PA
49162011-05-26 Pedro Alves <pedro@codesourcery.com>
4917
4918 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4919 function's entry point instead of a manually managed momentary
4920 breakpoint, and only ever issue one proceed call.
4921 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4922 doing a reverse-finish, switch to stepi mode, to do another step.
4923 (insert_step_resume_breakpoint_at_sal): Make public.
4924 (normal_stop): No need to save function value return registers if
4925 going reverse.
4926 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4927
2c03e5be
PA
49282011-05-26 Pedro Alves <pedro@codesourcery.com>
4929
4930 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4931 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4932 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4933 at the end.
4934 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4935 step-resume breakpoints.
4936 (print_it_typical): Handle bp_hp_step_resume.
4937 (bpstat_what): Ditto.
4938 (bptype_string): Ditto.
4939 (print_one_breakpoint_location): Ditto.
4940 (allocate_bp_location): Ditto.
4941 (mention): Ditto.
4942 (breakpoint_re_set_one): Ditto.
4943 * infrun.c (handle_inferior_event): Adjust. Split
4944 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4945 BPSTAT_WHAT_HP_STEP_RESUME.
4946 (insert_step_resume_breakpoint_at_sal): Rename to ...
4947 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4948 parameter. Handle it.
4949 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4950 insert_step_resume_breakpoint_at_sal_1.
4951 (insert_step_resume_breakpoint_at_frame): Rename to ...
4952 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4953 set a high-priority step-resume breakpoint.
4954 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4955 (insert_step_resume_breakpoint_at_caller): Ditto.
4956
51be5b68
PA
49572011-05-26 Pedro Alves <pedro@codesourcery.com>
4958
4959 * breakpoint.c (iterate_over_related_breakpoints): New.
4960 (do_map_delete_breakpoint): New.
4961 (delete_command): Pass do_map_delete_breakpoint to
4962 map_breakpoint_numbers.
4963 (do_disable_breakpoint): New.
4964 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4965 breakpoints.
4966 (do_enable_breakpoint): Rename to ...
4967 (enable_breakpoint_disp): ... this.
4968 (enable_breakpoint): Adjust.
4969 (do_enable_breakpoint): New.
4970 (enable_once_breakpoint): Delete.
4971 (do_map_enable_breakpoint): New.
4972 (do_map_enable_once_breakpoint): New.
4973 (enable_once_command, enable_delete_command)
4974 (delete_trace_command): Iterate over the breakpoint's related
4975 breakpoints.
4976
4a1be8d2
PA
49772011-05-26 Pedro Alves <pedro@codesourcery.com>
4978
4979 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4980 for ALPHA_ZERO_REGNUM.
4981 (alpha_supply_int_regs): Explicitly supply zero as the value for
4982 ALPHA_ZERO_REGNUM in the register cache.
4983 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4984
59d70315
YQ
49852011-05-26 Yao Qi <yao@codesourcery.com>
4986
4987 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4988
251d32d9
TG
49892011-05-26 Tristan Gingold <gingold@adacore.com>
4990
4991 * symfile.h (struct dwarf2_section_names): New type.
4992 (struct dwarf2_debug_sections): New type.
4993 (dwarf2_has_info): Add parameter.
4994 * dwarf2read.c (dwarf2_elf_names): New variable.
4995 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4996 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4997 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4998 (dwarf2_has_info): Add names parameter. Pass names
4999 to dwarf2_locate_sections.
5000 (section_is_p): Rewrite using the names parameter.
5001 (dwarf2_locate_sections): Use section names from the names parameter.
5002 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5003 * elfread.c (read_psyms): Ditto.
5004 * machoread.c (macho_symfile_read): Ditto.
5005
652c71b4
AS
50062011-05-25 Andreas Schwab <schwab@redhat.com>
5007
5008 PR gdb/8677
5009 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5010
f17170e5
KS
50112011-05-24 Keith Seitz <keiths@redhat.com>
5012
5013 PR breakpoint/12803
5014 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5015 (decode_compound): Unconditionally call keep_name_info.
5016
cdac0397
PA
50172011-05-24 Pedro Alves <pedro@codesourcery.com>
5018
5019 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5020 scope, clear its command list.
5021 (map_breakpoint_numbers): Don't walk the related breakpoints list
5022 of each breakpoint.
5023
91d4fe3f
TT
50242011-05-24 Tom Tromey <tromey@redhat.com>
5025
5026 * MAINTAINERS: Move Jim Blandy to past maintainers.
5027
3017a003
TG
50282011-05-24 Tristan Gingold <gingold@adacore.com>
5029
5030 * symfile.h (enum dwarf2_section_enum): New type.
5031 (dwarf2_get_section_info): New prototype.
5032 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5033 section_name by sect. Use a switch to select the info.
5034 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5035 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5036
c91c8c16
PA
50372011-05-24 Pedro Alves <pedro@codesourcery.com>
5038
5039 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5040 shared library event breakpoint if there's no execution.
5041
77bc418a
TJB
50422011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5043
5044 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5045 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5046
c50491a7
TT
50472011-05-23 Tom Tromey <tromey@redhat.com>
5048
5049 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5050 NULL.
5051
6d64e6d4
DE
50522011-05-23 Doug Evans <dje@google.com>
5053
5054 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5055 entry for RuntimeError to doc string.
5056
2067c8d4
JG
50572011-05-23 Jerome Guitton <guitton@adacore.com>
5058
5059 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5060 sequence for probing loops.
5061
b136cd05
PA
50622011-05-23 Pedro Alves <pedro@codesourcery.com>
5063
5064 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5065 comment.
5066
22e74ef9
MK
50672011-05-21 Mark Kettenis <kettenis@gnu.org>
5068
5069 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5070 zero as the value for %g0 in the register cache.
5071 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5072 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5073
842951eb
PA
50742011-05-20 Pedro Alves <pedro@codesourcery.com>
5075
5076 * infrun.c (proceed): Set previous_inferior_ptid here.
5077 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5078 inferior_ptid, not null_ptid.
5079 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5080 (fetch_inferior_event): Nor here.
5081
46cf51e6
PA
50822011-05-20 Pedro Alves <pedro@codesourcery.com>
5083
5084 * inf-loop.c (inferior_event_handler): Only output a message if
5085 verbose.
5086
29ef4c46
LM
50872011-05-20 Luis Machado <lgustavo@codesourcery.com>
5088
5089 * MAINTAINERS: Update my e-mail address.
5090
f148b27e
PA
50912011-05-20 Pedro Alves <pedro@codesourcery.com>
5092
5093 * infrun.c (proceed): Switch the inferior event loop to
5094 INF_EXEC_COMPLETE if the target refused to resume from a
5095 vfork/fork.
5096
09cee04b
PA
50972011-05-20 Pedro Alves <pedro@codesourcery.com>
5098
5099 * infcmd.c: Include "inf-loop.h".
5100 (step_once): When stepping into an inline subroutine, pretend the
5101 target has run. If the target can async, switch the inferior
5102 event loop to INF_EXEC_COMPLETE.
5103 * inferior.h (user_visible_resume_ptid): Declare.
5104 * infrun.c (user_visible_resume_ptid): New function, factored out
5105 from `resume'.
5106 (resume): Use it.
5107 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5108 that the current thread is running. Merge async and sync
5109 branches.
5110
751b8ce1
PA
51112011-05-20 Pedro Alves <pedro@codesourcery.com>
5112
5113 * infcmd.c (step_1): Simplify synchronous case.
5114
e93a69ed
PA
51152011-05-20 Pedro Alves <pedro@codesourcery.com>
5116
5117 * tracepoint.c: Include exceptions.h.
5118 (TFILE_PID): Move higher in file.
5119 (tfile_open): Delay pushing the tfile target until we're assured
5120 the tfile header is present in the file. Wrap reading the initial
5121 newline-terminated lines in TRY_CATCH. Pop the target if the
5122 initial setup failed. Add the tfile's thread immediately
5123 aftwards, before any non-essential setup. Don't skip
5124 post_create_inferior if there are no traceframes present in the
5125 file.
5126 (tfile_close): Remove redundant check for null before xfree call.
5127 (tfile_thread_alive): New function.
5128 (init_tfile_ops): Register it as to_thread_alive callback.
5129
6823e2b1
PA
51302011-05-20 Pedro Alves <pedro@codesourcery.com>
5131
5132 * tracepoint.c (tfile_open): Delete #if 0'd code.
5133
b3c8eb43
JK
51342011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5135
5136 Fix -readnow for -gdwarf-4 unused type units.
5137 * dwarf2read.c (struct signatured_type): Remove the field offset.
5138 (create_signatured_type_table_from_index): Remove its initialization.
5139 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5140 instead. Add a complaint call.
5141 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5142 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5143 (lookup_signatured_type_at_offset, read_signatured_type)
5144 (write_one_signatured_type): Update the field for per_cu.
5145
310afc76
TT
51462011-05-19 Tom Tromey <tromey@redhat.com>
5147
5148 * python/py-inferior.c (python_inferior_exit): Use
5149 target_gdbarch.
5150 (python_on_resume): Likewise.
5151
cf6c5ffb
TT
51522011-05-19 Matt Rice <ratmice@gmail.com>
5153
5154 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5155
fb80a3c5
HZ
51562011-05-19 Hui Zhu <teawater@gmail.com>
5157
5158 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5159
3672b1be
HZ
51602011-05-19 Hui Zhu <teawater@gmail.com>
5161
5162 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5163
ff355380
TT
51642011-05-18 Tom Tromey <tromey@redhat.com>
5165
5166 * dwarf2read.c (dwarf2_add_field): Constify.
5167 * value.c (value_static_field): Constify.
5168 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5169 Now const.
5170 * ax-gdb.c (gen_static_field): Constify
5171
ed731959
JK
51722011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5173
5174 * linux-nat.c (kill_callback): Use SIGKILL first.
5175
967cff16
JB
51762011-05-18 Joel Brobecker <brobecker@adacore.com>
5177
5178 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5179
1d06ead6
TT
51802011-05-18 Tom Tromey <tromey@redhat.com>
5181
5182 * value.c (value_fn_field): Constify.
5183 * symtab.c (gdb_mangle_name): Constify.
5184 * stabsread.c (update_method_name_from_physname): Make 'physname'
5185 argument const.
5186 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5187 const. Use explicit fputc_filtered loop.
5188 (pascal_type_print_base): Constify.
5189 * p-lang.h (pascal_type_print_method_args): Update.
5190 * linespec.c (add_matching_methods): Constify.
5191 (add_constructors): Likewise.
5192 * jv-typeprint.c (java_type_print_base): Constify.
5193 * gdbtypes.h (struct cplus_struct_type)
5194 <fn_fieldlist.fn_field.physname>: Now const.
5195 * dwarf2read.c (compute_delayed_physnames): Constify.
5196 (dwarf2_add_member_fn): Likewise.
5197 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5198
0d9a9a5f
PA
51992011-05-18 Pedro Alves <pedro@codesourcery.com>
5200
5201 * infrun.c (resume): Mention which is the current thread, and its
5202 current PC in debug output.
5203 (prepare_to_proceed): Mention the thread switching in debug
5204 output.
5205
05386e9e
TT
52062011-05-18 Tom Tromey <tromey@redhat.com>
5207
5208 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5209 path check. Use xmalloc and cleanups.
5210 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5211
ee86786c
TT
52122011-05-17 Tom Tromey <tromey@redhat.com>
5213
5214 * cp-valprint.c (cp_print_value_fields): Catch errors from
5215 value_static_field.
5216
9ff3b74f
TT
52172011-05-17 Tom Tromey <tromey@redhat.com>
5218
5219 * dwarf2read.c (dwarf2_get_die_type): Call
5220 get_die_type_at_offset.
5221 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5222 get_base_type function.
5223
cd3da28e
PA
52242011-05-17 Tomas Martinec <fyzmat@gmail.com>
5225
5226 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5227 trap_expected.
5228
fd20d931
DE
52292011-05-16 Doug Evans <dje@google.com>
5230
5231 * python/py-auto-load.c (source_section_scripts): Mention objfile
5232 name in warning.
5233
75fc9810
DE
52342011-05-15 Doug Evans <dje@google.com>
5235
290351b8
DE
5236 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5237 (try_thread_db_load_from_pdir): Call it. If unable to find
5238 libthread_db in directory of libpthread, see if we're looking at
5239 the separate-debug-info copy.
5240
75fc9810
DE
5241 * python/py-autoload.c (print_script): Print "Missing" instead of
5242 "No" for missing scripts.
5243 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5244
9f7bc587
DE
52452011-05-13 Doug Evans <dje@google.com>
5246
5247 * ui-file.c (stdio_file_write_async_safe): Add comment.
5248
093cee7d
HZ
52492011-05-14 Hui Zhu <teawater@gmail.com>
5250
5251 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5252
dbaefcf7
DE
52532011-05-13 Doug Evans <dje@google.com>
5254
98a5dd13
DE
5255 Support $pdir and $sdir in libthread-db-search-path.
5256 * NEWS: Mention $sdir,$pdir.
5257 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5258 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5259 (try_thread_db_load_from_sdir): New function.
5260 (try_thread_db_load_from_dir): New function.
5261 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5262 system directories if search of libthread-db-search-path fails,
5263 that is now done via $sdir.
5264 (has_libpthread): New function.
5265 (thread_db_load): Remove search for libthread_db in directory of
5266 libpthread, that is now done via $pdir.
5267
dbaefcf7
DE
5268 * NEWS: Mention "info auto-load-scripts".
5269 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5270 script_not_found_warning_printed.
5271 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5272 all callers updated. Initialize script_not_found_warning_printed.
5273 (get_auto_load_pspace_data_for_loading): New function.
5274 (maybe_add_script): New function.
5275 (source_section_scripts): Simplify. Only print one warning regardless
5276 of the number of auto-load scripts not found.
5277 (clear_section_scripts): Clear script_not_found_warning_printed.
5278 (auto_load_objfile_script): Record script in hash table.
5279 (count_matching_scripts): New function.
5280 (maybe_print_script): Renamed from maybe_print_section_script, all
5281 callers updated. Rewrite to use ui_out_*.
5282 (info_auto_load_scripts): Renamed from
5283 maintenance_print_section_scripts, all callers updated.
5284 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5285 renamed as "info auto-load-scripts".
5286
9930639c
TT
52872011-05-13 Tom Tromey <tromey@redhat.com>
5288
5289 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5290 (read_sleb128): Likewise.
5291
06826322
TT
52922011-05-13 Tom Tromey <tromey@redhat.com>
5293
5294 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5295 offset display.
5296
01124a23
DE
52972011-05-13 Doug Evans <dje@google.com>
5298
5299 * linux-nat.c (debug_linux_nat_async): Delete.
5300 Replace all references to use debug_linux_nat instead.
5301 (show_debug_linux_nat_async): Delete.
5302 (sigchld_handler): Call ui_file_write_async_safe instead of
5303 fprintf_unfiltered.
5304 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5305 * ui-file.c (struct ui_file): New member to_write_async_safe.
5306 (null_file_write_async_safe): New function.
5307 (ui_file_write_async_safe): New function.
5308 (set_ui_file_write_async_safe): New function.
5309 (ui_file_new): Initialize to_write_async_safe.
5310 (stdio_file_write_async_safe): New function.
5311 (struct stdio_file): New member fd.
5312 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5313 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5314 fileno.
01124a23
DE
5315 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5316 (set_ui_file_write_async_safe): Declare.
5317 (ui_file_write_async_safe): Declare.
5318
72fc29ff
TT
53192011-05-13 Tom Tromey <tromey@redhat.com>
5320
5321 * utils.c (do_value_free): New function.
5322 (make_cleanup_value_free): Likewise.
5323 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5324 freeing correctly.
5325 (dwarf2_loc_desc_needs_frame): Call
5326 make_cleanup_value_free_to_mark.
5327 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5328 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5329 value_free_to_mark.
5330 (new_dwarf_expr_context): Don't call value_mark.
5331 * dwarf2-frame.c (execute_stack_op): Call
5332 make_cleanup_value_free_to_mark.
5333 * defs.h (make_cleanup_value_free): Declare.
5334
028d0ed5
TJB
53352011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5336
5337 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5338 prepare_execute_command.
5339 * top.c (prepare_execute_command): Return cleanup.
5340 (execute_command): Use cleanup from prepare_execute_command.
5341 * top.h (prepare_execute_command): Change prototype to return
5342 cleanup.
5343 * defs.h (struct value): Add opaque declaration.
5344 (make_cleanup_value_free_to_mark): Add prototype.
5345 * utils.c (do_value_free_to_mark): New function.
5346 (make_cleanup_value_free_to_mark): Likewise.
5347
b087e0ed
TT
53482011-05-12 Tom Tromey <tromey@redhat.com>
5349
5350 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5351 cast left-hand-side to unsigned.
5352
8a9b8146
TT
53532011-05-12 Tom Tromey <tromey@redhat.com>
5354
5355 PR gdb/12617:
5356 * value.h (value_from_contents): Declare.
5357 * value.c (value_from_contents): New function.
5358 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5359 (dwarf2_get_die_type): New function.
5360 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5361 (allocate_piece_closure): Acquire reference to values.
5362 (read_pieced_value): Update for value-based expressions.
5363 (write_pieced_value): Likewise.
5364 (free_pieced_value_closure): Call value_free as needed.
5365 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5366 Update for value-based expressions.
5367 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5368 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5369 <get_base_type>: New field.
5370 (struct dwarf_expr_piece) <v.value>: Change type.
5371 <v.regno>: New field.
5372 (struct dwarf_expr_context) <mark>: New field.
5373 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5374 (dwarf_expr_pop, dwarf_expr_push): Remove.
5375 (dwarf_expr_push_address): Declare.
5376 * dwarf2expr.c (dwarf_arch_cookie): New global.
5377 (struct dwarf_gdbarch_types): New.
5378 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5379 functions.
5380 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5381 static.
5382 (dwarf_expr_push_address): New function.
5383 (dwarf_expr_pop): Now static.
5384 (dwarf_expr_fetch): Change return type.
5385 (dwarf_require_integral): New function.
5386 (dwarf_expr_fetch): Simplify.
5387 (add_piece): Update.
5388 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5389 functions.
5390 (execute_stack_op) <sign_ext>: Remove.
5391 Use values for DWARF stack.
5392 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5393 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5394 New cases.
5395 (_initialize_dwarf2expr): New function.
5396 (add_piece): Update.
5397 (new_dwarf_expr_context): Set new field.
5398 (free_dwarf_expr_context): Call value_free_to_mark.
5399 * dwarf2-frame.c (no_base_type): New function.
5400 (execute_stack_op): Set get_base_type field. Update.
5401
e8d28ef4
TT
54022011-05-12 Tom Tromey <tromey@redhat.com>
5403
5404 * dwarf2read.c (read_common_block): Fix formatting.
5405
d248b706
KY
54062011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5407
5408 * breakpoint.c (disable_breakpoint): Disable all locations
5409 associated with a tracepoint on target if a trace experiment is
5410 running.
5411 (disable_command): Disable a specific tracepoint location on target if
5412 a trace experiment is running.
5413 (do_enable_breakpoint): Enable all locations associated with a
5414 tracepoint on target if a trace experiment is running.
5415 (enable_command) Enable a specific tracepoint location on target if a
5416 trace experiment is running.
5417 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5418 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5419 to_disable_tracepoint.
5420 * target.h: Add declaration of struct bp_location.
5421 (struct target_ops): Add new functions
5422 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5423 to_disable_tracepoint to target operations.
5424 (target_supports_enable_disable_tracepoint): New macro.
5425 (target_enable_tracepoint): New macro.
5426 (target_disable_tracepoint): New macro.
5427 * remote.c (struct remote_state): Add new field.
5428 (remote_enable_disable_tracepoint_feature): New.
5429 (remote_protocol_features): Add new entry.
5430 (remote_supports_enable_disable_tracepoint): New.
5431 (remote_enable_tracepoint): New.
5432 (remote_disable_tracepoint): New.
5433 (init_remote_ops): Add remote_enable_tracepoint,
5434 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5435 to remote operations.
5436 * tracepoint.c (start_tracing): Allow tracing to start without any
5437 tracepoints enabled with just a warning if they can be re-enabled
5438 later.
5439 * NEWS: Add news item for the new behaviour of the enable and disable
5440 GDB commands when applied to tracepoints.
5441 Add news items for the new remote packets QTEnable and QTDisable.
5442
cc88a640
JK
54432011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5444
5445 * config.in: Regenerate.
5446 * configure: Regenerate.
5447 * configure.ac <--with-system-readline> (for readline_echoing_p):
5448 Remove the test.
5449 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5450 (tui_old_rl_echoing_p): ... here.
5451 (tui_setup_io): Rename extern declaration readline_echoing_p to
5452 _rl_echoing_p. Adjust assignments for the both renames.
5453
1f84b619
TJB
54542011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5455
5456 * symtab.c (lookup_symtab): Run cleanup before returning.
5457
74ac6d43
TT
54582011-05-11 Tom Tromey <tromey@redhat.com>
5459
5460 * dwarf2read.c (handle_data_member_location): New function.
5461 (dwarf2_add_field): Use it.
5462 (read_common_block): Likewise.
5463
5488dafb
JK
54642011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5465
5466 Make addrs->SECTINDEX always defined.
5467 * symfile.c (relative_addr_info_to_section_offsets): Check for
5468 SECTINDEX -1, not for zero ADDR.
5469 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5470 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5471 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5472 on its validity.
5473
84e578fb
DE
54742011-05-10 Doug Evans <dje@google.com>
5475
2471d008
DE
5476 * linux-thread-db.c: Whitespace cleanup.
5477 (try_thread_db_load_1): Fix comment.
5478
84e578fb
DE
5479 * linux-thread-db.c (set_libthread_db_search_path): New function.
5480 (_initialize_thread_db): Add setter for libthread-db-search-path.
5481
673c2bbe
DE
54822011-05-09 Doug Evans <dje@google.com>
5483
478aac75
DE
5484 * NEWS: Mention --with-iconv-bin.
5485 * configure.ac: New option --with-iconv-bin.
5486 * configure: Regenerate.
5487 * config.in: Regenerate.
5488 * defs.h (relocate_gdb_directory): Declare.
5489 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5490 removed progname parameter, and exported. All callers updated.
5491 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5492
673c2bbe
DE
5493 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5494 adding missing call to restore_child_signals_mask.
5495
e4c8541f
PA
54962011-05-09 Pedro Alves <pedro@codesourcery.com>
5497
5498 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5499 parameter.
5500 * infrun.c (proceed, start_remote): Adjust.
5501 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5502 and adjust to not handle it.
5503 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5504 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5505 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5506 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5507 * windows-nat.c (do_initial_windows_stuff): Adjust.
5508 * infcmd.c (attach_command): Adjust.
5509 (notice_new_inferior): Adjust.
5510
a536c6d7
UW
55112011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5512
5513 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5514 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5515 * spu-tdep.c (op_selb): Use correct value.
5516
7845b013
UW
55172011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5518
5519 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5520 "parent" parameter to symbol_file_add_from_bfd call.
5521
9c06b0b4
TJB
55222011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5523 Thiago Jung Bauermann <bauerman@br.ibm.com>
5524
5525 Implement support for PowerPC BookE masked watchpoints.
5526 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5527 section.
5528 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5529 method. Initialize to NULL in all existing breakpoint_ops instances.
5530 (struct breakpoint) <hw_wp_mask>: New field.
5531 * breakpoint.c (is_masked_watchpoint): Add prototype.
5532 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5533 breakpoint's breakpoint_ops.works_in_software_mode if available.
5534 (watchpoints_triggered): Handle the case of a hardware masked
5535 watchpoint trigger.
5536 (watchpoint_check): Likewise.
5537 (works_in_software_mode_watchpoint): New function.
5538 (insert_masked_watchpoint, remove_masked_watchpoint)
5539 (resources_needed_masked_watchpoint)
5540 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5541 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5542 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5543 functions.
5544 (masked_watchpoint_breakpoint_ops): New structure.
5545 (watch_command_1): Check for the existence of the `mask' parameter.
5546 Set b->ops according to the type of hardware watchpoint being created.
5547 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5548 (ppc_linux_remove_mask_watchpoint)
5549 (ppc_linux_masked_watch_num_registers): New functions.
5550 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5551 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5552 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5553 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5554 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5555 (target_masked_watch_num_registers): New functions.
5556 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5557 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5558 methods.
5559 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5560 (target_masked_watch_num_registers): Add prototypes.
5561
8be455d7
JK
55622011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5563
5564 PR 12573
5565 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5566 (producer_is_gcc_ge_4_0): New function.
5567 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5568 symtab->language code.
5569 (var_decode_location): Set cu->has_loclist.
5570 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5571 skip. Intialize force_skip from locations_valid. Move the prologue
5572 skipping code into two passes.
5573 * symtab.h (struct symtab): Make the primary field a bitfield. New
5574 field locations_valid.
5575
d8228535
JK
55762011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5577
5578 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5579 (classify_inner_name): Call cp_lookup_nested_type with
5580 yylval.tsym.type.
5581 * cp-namespace.c (cp_lookup_nested_type): New variable
5582 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5583 type_name_no_tag_or_error with saved_parent_type.
5584 * dwarf2read.c (load_partial_dies): Read in any children of
5585 DW_TAG_typedef with complaint in such case.
5586 * gdbtypes.c (type_name_no_tag_or_error): New function.
5587 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5588 * valops.c (destructor_name_p): New comment for parameter type. Remove
5589 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5590 * value.h (destructor_name_p): Remove type const.
5591
1976171a
JK
55922011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5593
5594 * symtab.c (compare_symbol_name): New function.
5595 (completion_list_add_name, expand_partial_symbol_name): Call it,
5596 remove the variable ncmp.
5597 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5598 gdb_assert it.
5599
a9634178
TJB
56002011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5601
5602 Demote to sw watchpoint only in update_watchpoint.
5603 * breakpoint.c (update_watchpoint): Change between software and
5604 hardware watchpoint for all kinds of watchpoints, not just
5605 read/write ones. Determine b->exact value here instead of
5606 in watch_command_1. Error out if there are not enough resources
5607 for a read or access hardware watchpoint.
5608 (watch_command_1): Remove logic of checking whether there are
5609 enough resources available, since update_watchpoint will do that
5610 work now. Don't set b->exact here. Catch exceptions thrown by
5611 update_watchpoint and delete the watchpoint.
5612 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5613 Use target_exact_watchpoints instead.
5614 (delete_breakpoint): Notify observers only if deleted watchpoint
5615 has a breakpoint number assigned to it.
5616
4c67c798
JJ
56172011-05-05 Janis Johnson <janisjo@codesourcery.com>
5618
5619 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5620
a3fcb948
JG
56212011-05-05 Jerome Guitton <guitton@adacore.com>
5622
5623 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5624 New functions.
5625 (i386_stack_tramp_frame_unwind): New static global.
5626 (i386_match_pattern): New function, extracted from i386_match_insn.
5627 (i386_match_insn): Use i386_match_pattern.
5628 (i386_match_insn_block): New function.
5629 (i386_tramp_chain_in_reg_insns)
5630 (i386_tramp_chain_on_stack_insns): New static variables.
5631 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5632 of unwinders.
5633
4d393d60
JM
56342011-05-04 Joseph Myers <joseph@codesourcery.com>
5635
5636 * configure.host (xscale*): Don't handle target.
5637 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5638 handle targets.
5639
f70bd40b
YQ
56402011-05-04 Yao Qi <yao@codesourcery.com>
5641
5642 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5643
dd3295ee
JB
56442011-05-03 Joel Brobecker <brobecker@adacore.com>
5645
5646 Revert:
5647 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5648 | * elfread.c (elf_symtab_read): Stop memory leak.
5649
90375a0e
PM
56502011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5651
5652 * nto-tdep.c (nto_target): Replace deprecated call to
5653 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5654
d07205c2
JK
56552011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5656
5657 Fix false GCC warning.
5658 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5659
1e718ff1
TJB
56602011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5661
5662 * breakpoint.c (update_watchpoint): Move code to change
5663 the enable state of breakpoint from here ...
5664 (do_enable_breakpoint): ... to here.
5665
35bef4fd
TT
56662011-04-26 Andrew Gontarek <andrewg@cray.com>
5667
78290264
PP
5668 * valprint.c (val_print_array_elements): Fixed poor performance
5669 of printing very large arrays with repeat_count_threshold set
5670 to unlimited. New comment.
35bef4fd 5671
38a714bb
TT
56722011-04-29 Tom Tromey <tromey@redhat.com>
5673
5674 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5675 (mi_parse): Likewise.
5676 * breakpoint.c (break_range_command): Use sizeof char*, not
5677 char**.
5678 (create_breakpoint): Likewise.
5679 (parse_breakpoint_sals): Likewise.
5680
eb73ad13
PA
56812011-04-29 Pedro Alves <pedro@codesourcery.com>
5682
5683 * linux-nat.c (linux_child_remove_fork_catchpoint)
5684 (linux_child_remove_vfork_catchpoint)
5685 (linux_child_remove_exec_catchpoint): New functions.
5686 (linux_target_install_ops): Install them.
5687
d65aec65
PM
56882011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5689
5690 PR mi/12531
5691
5692 * varobj.c (install_default_visualizer): Do not install a
5693 visualizer if the varobj is CPLUS_FAKE_CHILD.
5694 (construct_visualizer): Likewise.
5695
165195f4
JK
56962011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5697
5698 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5699 case insensitive comparison.
5700
30852783
UW
57012011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5702
5703 * infrun.c (proceed): Revert previous change.
5704 (resume): Instead, handle the case of signal delivery while stepping
5705 off a breakpoint location here, and only if software single-stepping
5706 is used. Handle nested signals.
5707
7ff120b4
YQ
57082011-04-28 Yao Qi <yao@codesourcery.com>
5709
5710 * arm-tdep.c (copy_unmodified): Rename to ...
5711 (arm_copy_unmodified): .. this. New.
5712 (copy_preload): Move common part to ...
5713 (install_preload): .. this. New.
5714 (arm_copy_preload): New.
5715 (copy_preload_reg): Move common part to ...
5716 (install_preload_reg): ... this. New.
5717 (arm_copy_preload_reg): New.
5718 (copy_b_bl_blx): Move common part to ...
5719 (install_b_bl_blx): .. this. New.
5720 (arm_copy_b_bl_blx): New.
5721 (copy_bx_blx_reg): Move common part to ...
5722 (install_bx_blx_reg): ... this. New.
5723 (arm_copy_bx_blx_reg): New.
5724 (copy_alu_reg): Move common part to ...
5725 (install_alu_reg): ... this. New.
5726 (arm_copy_alu_reg): New.
5727 (copy_alu_shifted_reg): Move common part to ...
5728 (install_alu_shifted_reg): ... this. New.
5729 (copy_ldr_str_ldrb_strb): Move common part to ...
5730 (install_ldr_str_ldrb_strb): ... this. New.
5731 (arm_copy_ldr_str_ldrb_strb): New.
5732 (copy_copro_load_store): Move some common part to ...
5733 (install_copy_copro_load_store): ... this. New.
5734 (arm_copy_copro_load_store): New.
5735 (copy_svc): Delete.
5736 (arm_copy_svc): Renamed from copy_svc.
5737 (copy_undef): Delete.
5738 (arm_copy_undef): Renamed from copy_undef.
5739 (decode_ext_reg_ld_st): Delete.
5740 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5741 (decode_svc_copro): Delete.
5742 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5743 (copy_copro_load_store, copy_alu_imm): update callers.
5744 (copy_extra_ld_st, copy_block_xfer): Likewise.
5745 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5746 (decode_miscellaneous, decode_dp_misc): Likewise.
5747 (decode_ld_st_word_ubyte, decode_media): Likewise.
5748 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5749 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5750 (decode_unconditional, decode_miscellaneous): Likewise.
5751 (decode_media, decode_b_bl_ldmstm): Likewise.
5752 (arm_process_displaced_insn): Likewise..
5753 (decode_misc_memhint_neon): Delete.
5754 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5755 (decode_miscellaneous): Delete.
5756 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5757 (decode_dp_misc): Delete.
5758 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5759 (decode_ld_st_word_ubyte): Delete.
5760 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5761 (decode_media): Delete.
5762 (arm_decode_media): Renamed from decode_media.
5763 (decode_b_bl_ldmstm): Delete.
5764 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5765 (decode_ext_reg_ld_st): Delete.
5766 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5767 (decode_unconditional): Delete.
5768 (arm_decode_unconditional): Renamed from decode_unconditional.
5769
559a7a62
JK
57702011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5771
5772 Case insensitive lookups implementation.
5773 * dwarf2read.c: Include ctype.h.
5774 (struct mapped_index): New field version.
5775 (mapped_index_string_hash): New parameter index_version. New comment
5776 for it. Call tolower appropriately.
5777 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5778 Choose the right index version for mapped_index_string_hash.
5779 (dwarf2_read_index): Support also the index version 5. Initialize the
5780 new struct mapped_index field version.
5781 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5782 (find_slot): Explain the version needs. Pass INT_MAX for the new
5783 parameter.
5784 (write_psymtabs_to_index): Produce version 5.
5785 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5786 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5787 * psymtab.c (lookup_partial_symbol): Find the
5788 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5789 entries.
5790 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5791 NAME lowercasing.
5792 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5793 (completion_list_add_name): New variable ncmp, initialize it, use it.
5794 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5795 * utils.c (strcmp_iw): Support case_sensitive_off.
5796 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5797 New function comment part. New variables saved_string1,
5798 saved_string2 and case_pass. Add a proper second pass.
5799
681bf369
JK
58002011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5801
5802 Replace re_comp/re_exec by regcomp/regexec.
5803 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5804 (search_symbols_name_matches): Use them, use regexec.
5805 (search_symbols): New variable retval_chain, adjust the use of
5806 old_chain against it. Replace re_comp by regcomp. Use the new struct
5807 search_symbols_data fields, use regexec instead of re_exec.
5808
b11b1f88
JK
58092011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5810
5811 Format the code for the next patch.
5812 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5813 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5814 New variables c1 and c2.
5815
2484c66b
UW
58162011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5817
5818 * infrun.c (proceed): Do not single-step into signal delivery
5819 when stepping off a breakpoint location.
5820 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5821 (insert_step_resume_breakpoint_at_caller): Likewise.
5822 (insert_step_resume_breakpoint_at_sal): Likewise.
5823 (insert_longjmp_resume_breakpoint): Likewise.
5824
47423772
YQ
58252011-04-27 Yao Qi <yao@codesourcery.com>
5826
5827 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5828
13bdd2e7
JB
58292011-04-27 Joel Brobecker <brobecker@adacore.com>
5830
5831 * procfs.c (procfs_pass_signals): Fix advance declaration.
5832
2455069d
UW
58332011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5834
5835 * target.h (struct target_ops): Remove to_notice_signals;
5836 add to_pass_signals.
5837 (target_notice_signals): Remove.
5838 (target_pass_signals): Add prototype.
5839 * target.c (update_current_target): Remove to_notice_signals;
5840 mention to_pass_signals.
5841 (target_pass_signals): New function.
5842 (debug_to_notice_signals): Remove.
5843 (setup_target_debug): Do not install debug_to_notice_signals.
5844
5845 * infrun.c (signal_pass): New global.
5846 (resume): Call target_pass_signals.
5847 (handle_inferior_event): Report all signals while stepping over
5848 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5849 are re-inserted when stepping over a signal handler.
5850 (signal_cache_update): New function.
5851 (signal_stop_update): Call it.
5852 (signal_print_update): Likewise.
5853 (signal_pass_update): Likewise.
5854 (handle_command): Call signal_cache_update and target_pass_signals
5855 instead of target_notice_signals.
5856 (_initialize_infrun): Initialize signal_pass.
5857
5858 * linux-nat.c (pass_mask): New global.
5859 (linux_nat_pass_signals): New function.
5860 (linux_nat_create_inferior): Report all signals initially.
5861 (linux_nat_attach): Likewise.
5862 (linux_nat_resume): Use pass_mask to decide whether to directly
5863 handle an inferior signal.
5864 (linux_nat_wait_1): Likewise.
5865 (linux_nat_add_target): Install to_pass_signals callback.
5866
5867 * nto-procfs.c (notice_signals): Remove.
5868 (procfs_resume): Do not call notice_signals.
5869 (procfs_notice_signals): Remove.
5870 (procfs_pass_signals): New function.
5871 (init_procfs_ops): Install to_pass_signals callback instead of
5872 to_notice_signals callback.
5873 (_initialize_procfs): Report all signals initially.
5874
5875 * procfs.c (procfs_notice_signals): Remove.
5876 (procfs_pass_signals): New function.
5877 (procfs_target): Install to_pass_signals callback instead of
5878 to_notice_signals callback.
5879 (register_gdb_signals): Remove.
5880 (procfs_debug_inferior): Report all signals initially.
5881 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5882
5883 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5884 parameters; use them instead of calling signal_..._state routines.
5885 (remote_notice_signals): Remove.
5886 (remote_start_remote): Report all signals initially.
5887 (remote_resume): Do not call remote_pass_signals.
5888 (_initialize_remote): Install to_pass_signals callback instead of
5889 to_notice_signals callback.
5890
46c6471b
PA
58912011-04-27 Pedro Alves <pedro@codesourcery.com>
5892
5893 * breakpoint.c (user_settable_breakpoint): Delete.
5894 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5895 (delete_command): Check user_breakpoint_p instead of looking at
5896 the breakpoint's type.
5897 (disable_command): Ditto.
5898 (enable_command): Ditto.
5899 (delete_trace_command): Use user_breakpoint_p instead of looking
5900 at the breakpoint number directly. When checking if there are
5901 user visible tracepoints, in order to know whether to ask the user
5902 for confirmation, check whether the breakpoint is actually a
5903 tracepoint.
5904
f6d90398
VP
59052011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5906
5907 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5908 compilation.
5909
8d3788bd
VP
59102011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5911
5912 MI breakpoint notifications.
5913
f33edef8
PP
5914 * annotate.c (breakpoint_changed): Adjust parameter type.
5915 * breakpoint.c (set_breakpoint_condition): Adjust to change
5916 in breakpoint_modified type.
5917 (breakpoint_set_commands): Likewise.
5918 (do_map_commands_command): Likewise.
5919 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5920 changed after bumping hit count.
5921 (bpstat_stop_status): Likewise.
5922 (print_one_breakpoint_location): Don't wrap in tuple here.
5923 (print_one_breakpoint): Always print individual locations.
5924 For locations, use unnamed tuple.
5925 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5926 has changed.
5927 (create_catchpoint, create_syscall_event_catchpoint): Call
5928 breakpoint_created obsever.
5929 (mention): Don't call breakpoint_created observer.
5930 (create_breakpoint_sal): Call breakpoint_created observer.
5931 (create_breakpoint, watch_command_1): Likewise.
5932 (create_ada_exception_breakpoint): Likewise.
5933 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5934 (locations_are_equal): New.
5935 (update_breakpoint_locations): If locations were changed, notify.
5936 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5937 Call breakpoint_modified observer.
5938
5939 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5940 (mi_cmd_break_insert): Don't set observers for modify and delete.
5941 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5942 (mi_breakpoint_created, mi_breakpoint_deleted)
5943 (mi_breakpoint_modified): New.
5944 (mi_interpreter_init): Hook the above.
5945 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5946 while -break-* commands are executing.
5947 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5948 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5949 (mi_redirect): New.
5950 (mi_ui_out_impl): Hook in mi_redirect.
5951 (mi_field_skip): True to the name, skip the field, don't output
5952 a field with an empty value.
5953
5954 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5955 (gdbpy_breakpoint_deleted): Adjust.
5956 * tui/tui-hooks.c (tui_event_create_breakpoint)
5957 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5958
a8f42b45
UW
59592011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5960
5961 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5962 (procfs_remove_hw_watchpoint): Likewise.
5963
57e12211
TT
59642011-04-26 Michael Walle <michael@walle.cc>
5965
5966 * remote.c (remote_start_remote): Ack packet after sending the
5967 interrupt sequence.
5968
af96c192
YQ
59692011-04-26 Yao Qi <yao@codesourcery.com>
5970
f33edef8
PP
5971 * linux-nat.c: Move common macros to ...
5972 Include linux-ptrace.h.
5973 * common/linux-ptrace.h: ... here. New.
af96c192 5974
3e03848b
JK
59752011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5976
5977 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5978 !objfile_has_partial_symbols. New comment.
5979 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5980 SYM_READ_PSYMBOLS is not present. Extend the comment.
5981 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5982
1ae0d051
JK
59832011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5984
5985 * defs.h (ENUM_BITFIELD): Remove.
5986
03f2bd59
JK
59872011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5988 Eli Zaretskii <eliz@gnu.org>
5989
5990 * NEWS: Document the new gdbserver --once option.
5991
4161fbb0
JZ
59922011-04-21 Jie Zhang <jzhang918@gmail.com>
5993
5994 * MAINTAINERS: Update my email address.
5995
bcb28afc
PM
59962011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5997
5998 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5999 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6000 function call if __STDC_ISO_10646__ macro is defined.
6001 (intermediate_encoding): New prototype.
6002 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6003 to generate compile time error for unsupported gdb_wchar_t size.
6004 (ENDIAN_SUFFIX): New macro.
6005 (intermediate_encoding): New function.
6006
7b08b9eb
JK
60072011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6008
6009 * ada-lang.c (struct add_partial_datum): Update the comment for
6010 expand_partial_symbol_name.
6011 (ada_add_partial_symbol_completions): Rename to ...
6012 (ada_expand_partial_symbol_name): ... here, change return type, update
6013 function comment, call symbol_completion_match instead of
6014 symbol_completion_add.
6015 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6016 and ada_expand_partial_symbol_name.
6017 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6018 FILE_MATCHER.
6019 (dw2_map_symbol_names): Remove.
6020 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6021 * psymtab.c (map_symbol_names_psymtab): Remove.
6022 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6023 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6024 order.
6025 (psym_functions): Unlist map_symbol_names_psymtab.
6026 (map_partial_symbol_names): Rename to ...
6027 (expand_partial_symbol_names): ... here, change the FUN type, call
6028 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6029 * psymtab.h (map_partial_symbol_names): Rename to ...
6030 (expand_partial_symbol_names): ... here, change the FUN type.
6031 * symfile.h (struct quick_symbol_functions): Update the description of
6032 expand_symtabs_matching. Remove map_symbol_names.
6033 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6034 (struct add_name_data): Update the comment for
6035 expand_partial_symbol_name.
6036 (add_partial_symbol_name): Rename to ...
6037 (expand_partial_symbol_name): ... here. Replace
6038 completion_list_add_name call by strncmp.
6039 (default_make_symbol_completion_list_break_on): Use now
6040 expand_partial_symbol_names and expand_partial_symbol_name.
6041 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6042
90476074
TT
60432011-04-20 Tom Tromey <tromey@redhat.com>
6044
6045 * dwarf2read.c (save_gdb_index_command): Replace format
6046 documentation with a pointer to the manual.
6047
c21236dc
PA
60482011-04-20 Pedro Alves <pedro@codesourcery.com>
6049
6050 * regcache.c: Include remote.h.
6051 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6052 (regcache_dump): Handle regcache_dump_remote.
6053 (maintenance_print_remote_registers): New function.
6054 (_initialize_regcache): Install "maint print remote-registers"
6055 command.
6056 * remote.c (map_regcache_remote_table): New function, factored out
6057 from ...
6058 (init_remote_state): ... here.
6059 (remote_register_number_and_offset): New.
6060 * remote.h (remote_register_number_and_offset): Declare.
6061
b78974c3
PA
60622011-04-20 Pedro Alves <pedro@codesourcery.com>
6063
6064 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6065 null_ptid, assume and allow a NULL address space, instead of
6066 asking the target for the ptid's address space.
6067 * infrun.c (ptid_is_pid): Remove assertion.
6068
7a9dd1b2
TT
60692011-04-19 Tom Tromey <tromey@redhat.com>
6070
6071 * windows-tdep.c (windows_xfer_shared_library):
6072 * windows-nat.c (get_module_name, windows_make_so):
6073 * v850-tdep.c (v850_handle_pushm):
6074 * utils.c (null_cleanup, gdb_realpath):
6075 * ui-out.c (get_next_header):
6076 * tracepoint.c (clear_traceframe_info):
6077 * symtab.c (lookup_symtab):
6078 * serial.h (struct serial_ops):
6079 * mipsread.c (read_alphacoff_dynamic_symtab):
6080 * infcmd.c (print_return_value):
6081 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6082 * f-exp.y (parse_number):
6083 * exceptions.c (catch_exceptions):
6084 * dummy-frame.c (dummy_frame_this_id):
6085 * defs.h (struct cleanup):
6086 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6087 * arm-tdep.c (arm_push_dummy_call):
6088 * amd64-tdep.h (amd64_collect_xsave):
6089 * amd64-tdep.c (amd64_collect_xsave):
6090 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6091 * README (typing): Remove duplicate words.
6092 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6093 * infrun.c (siginfo_value_read): Fix typo.
6094 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6095 * top.c (source_line_number): Add comma.
6096
9941e0c5
MK
60972011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6098
6099 * thread.c (any_live_thread_of_process): Prioritize threads
6100 that are not executing.
6101 * gdbthread.h (any_live_thread_of_process): Update comment
6102 as per above change.
6103
ed4b0e6a
AS
61042011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6105
6106 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6107 (scan_xcoff_symtab): Likewise.
6108
9b13a2db
PM
61092011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6110
6111 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6112 inside if clause.
6113
1c6e1b0d
PM
61142011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6115 Pedro Alves <pedro@codesourcery.com>
6116
6117 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6118 variables to simplify code and avoid == operator at end of
6119 line as this is against GNU coding standards.
6120
74de0234
PM
61212011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6122
6123 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6124 lm_name to name_lm to avoid conflict with lm_name function.
6125
b23518f0
PM
61262011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6127
6128 ARI fixes: Use only lowercase function name for static functions.
6129 * nto-tdep.c (LM_ADDR): Rename to...
6130 (lm_addr): New function name.
6131 (nto_relocate_section_addresses): Adapt to change above.
6132 * solib-sunos.c (LM_ADDR): Rename to...
6133 (lm_addr): New function name.
6134 (LM_NEXT): Rename to...
6135 (lm_next): New function name.
6136 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6137 function name changes above.
6138 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6139 (lm_addr_from_link_map): New function name.
6140 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6141 (has_lm_dynamic_from_link_map): New function name.
6142 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6143 (lm_dynamic_from_link_map): New function name.
6144 (LM_ADDR_CHECK): Rename to...
6145 (lm_addr_check): New function name.
6146 (LM_NEXT): Rename to...
6147 (lm_next): New function name.
6148 (LM_PREV): Rename to...
6149 (lm_prev): New function name.
6150 (LM_NAME): Rename to...
6151 (lm_name): New function name.
6152 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6153 (ignore_first_link_map_entry): New function name.
6154 (svr4_keep_data_in_core): Adapt to function name changes above.
6155 (svr4_current_sos): Likewise.
6156 (enable_break): Likewise.
6157 (svr4_relocate_section_addresses): Likewise.
6158
1448a0a2
PM
61592011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6160
6161 ARI cleanup.
6162 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6163 sprintf. Simplify code and avoid loosing memory.
6164 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6165 (call0_frame_cache): Remove && operator from end of line.
6166
02835898
JK
61672011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6168
6169 Fix libraries displacement if they change whether they were prelinked.
6170 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6171 does not match. Comment why.
6172
9a845ea2
JK
61732011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6174
6175 * corelow.c: Include wrapper.h.
6176 (core_open): Call now gdb_target_find_new_threads.
6177 * wrapper.c: Include target.h.
6178 (gdb_target_find_new_threads): New.
6179 * wrapper.h (gdb_target_find_new_threads): New declaration.
6180
254f582e
JK
61812011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6182
6183 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6184 even if !TARGET_HAS_EXECUTION.
6185
63524580
JK
61862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6187
6188 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6189 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6190 bfd_get_synthetic_symtab.
6191 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6192 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6193 parameter parent, remove the call to add_separate_debug_objfile.
6194 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6195 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6196 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6197 parent, new comment for it, call add_separate_debug_objfile for it.
6198 (symbol_file_add_separate): Pass objfile as the parameter parent,
6199 remove the call to add_separate_debug_objfile.
6200 (symbol_file_add_from_bfd): New parameter parent, pass it.
6201 (symbol_file_add): Pass NULL to the new parameter parent.
6202 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6203
90359a16
JK
62042011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6205
6206 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6207 BSF_SYNTHETIC.
6208
626e7282
JK
62092011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6210
6211 Fix Python access to inlined frames.
6212 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6213 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6214
cf31e6f9
TT
62152011-04-15 Tom Tromey <tromey@redhat.com>
6216
6217 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6218
c8d895f1
GB
62192011-04-15 Gary Benson <gbenson@redhat.com>
6220
6221 * MAINTAINERS: Add myself to write-after-approval section.
6222
56a9aa1d
MF
62232011-04-14 Mike Frysinger <vapier@gentoo.org>
6224
6225 * remote-sim.c (sim_command_completer): New function.
6226 (_initialize_remote_sim): Set completer to sim_command_completer.
6227
ba770c9c
TJB
62282011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6229
6230 * breakpoint.c (print_exception_catchpoint): Rename to ...
6231 (print_it_exception_catchpoint): ... this.
6232 (gnu_v3_exception_catchpoint_ops): Update with new name
6233 for print_it_exception_catchpoint.
6234
51bf2553
EBM
62352011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6236
6237 * MAINTAINERS: Add myself for write after approval privileges.
6238
d242658c
MP
62392011-04-13 Marek Polacek <mpolacek@redhat.com>
6240
6241 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6242
4a4106ca
TJB
62432011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6244
6245 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6246
26063d49
TJB
62472011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6248
6249 * breakpoint.c (save_breakpoints): Verify whether
6250 breakpoint_ops.print_recreate is defined before calling it.
6251
7782b183
GB
62522011-04-11 Gary Benson <gbenson@redhat.com>
6253
6254 Fix failure with --enable-maintainer-mode.
6255 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6256
e8930875
JK
62572011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6258
6259 Code cleanup.
6260 * symtab.c (search_symbols): Reorder the KIND description in the
6261 function comment. Remove the unused 4th element of types, types2,
6262 types3 and types4. New gdb_assert on KIND.
6263 (symtab_symbol_info): Remove the unused 4th element of classnames.
6264 New gdb_assert on KIND.
6265 * symtab.h (enum search_domain): New warning in the enum comment.
6266 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6267 TYPES_DOMAIN.
6268
b4f2f049
JK
62692011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6270
6271 Fix crash of gdb save-index on a STABS file.
6272 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6273 PSYMTABS_ADDRMAP.
6274
60d5a603
JK
62752011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6276
6277 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6278 * dwarf2read.c: Include ctype.h.
6279 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6280 functions.
6281 (dwarf2_add_field): Fix new_field->accessibility by calling
6282 dwarf2_default_access_attribute. Restructure setting accessibility
6283 vs. virtuality.
6284 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6285 is_private and is_protected by calling
6286 dwarf2_default_access_attribute.
6287
e0f68161
KB
62882011-04-08 Kevin Buettner <kevinb@redhat.com>
6289
6290 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6291 to the initialization.
6292
2e1aae43
SE
62932011-04-08 Steve Ellcey <sje@cup.hp.com>
6294
6295 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6296 initalization.
6297
c6ca3dab
PM
62982011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6299
6300 Remove support for old Cygwin 1.5 versions.
6301 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6302 function on old Cygwin version.
6303 * windows-nat.c: Remove cygwin version check and always define
6304 __USEWIDE for Cygwin compilation.
6305
bd18283a
YQ
63062011-04-07 Yao Qi <yao@codesourcery.com>
6307
6308 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6309 and TO.
6310 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6311 (arm_copy_svc): Remove parameters INSN and TO.
6312 (decode_svc_copro): Update caller.
6313 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6314 from function pointer `copy_svc_os'.
6315
8c8dba6d
YQ
63162011-04-07 Yao Qi <yao@codesourcery.com>
6317
6318 * arm-tdep.c (cleanup_branch): Set a correct return address in
6319 LR for ARM and Thumb.
6320
59d7bcaf
JK
63212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6322
6323 Code cleanup.
6324 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6325 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6326 in the function comment, a new note on values compatibility.
6327 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6328 * symtab.h (SYMBOL_HASH_NEXT): New.
6329
e7db58ea
TJB
63302011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6331
6332 * ppc-linux-nat.c (check_condition): Add len output parameter.
6333 Set it based on the memory region referenced in the condition
6334 expression. Update all callers.
6335
9f743ef6
JK
63362011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 Fix crash regression on systems featuring .gdb_index.
6339 * objfiles.c (free_objfile): Move the
6340 forget_cached_source_info_for_objfile call earlier. Comment it.
6341 Extend the comment for objfile_free_data.
6342
9182c5bc
JK
63432011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 Fix regression of displaying the debug format.
6346 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6347 subfile.
6348
04bd08de
TT
63492011-04-04 Tom Tromey <tromey@redhat.com>
6350
6351 * cli/cli-interp.c (struct captured_execute_command_args):
6352 Remove.
6353 (do_captured_execute_command): Remove.
6354 (safe_execute_command): Use TRY_CATCH.
6355 * cli/cli-script.c (struct wrapped_read_command_file_args):
6356 Remove.
6357 (wrapped_read_command_file): Remove.
6358 (script_from_file): Use TRY_CATCH.
6359 * exceptions.c (catch_exception): Remove.
6360 * exceptions.h (catch_exception): Remove.
6361 (deprecated_throw_reason): Update comment.
6362 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6363 argument to 'context'.
6364 (mi_execute_command): Use TRY_CATCH.
6365 * remote.c (struct start_remote_args): Remove.
6366 (remote_start_remote): Update; change arguments.
6367 (remote_open_1): Use TRY_CATCH.
6368
58438ac1
TT
63692011-04-04 Tom Tromey <tromey@redhat.com>
6370
6371 * tracepoint.c (scope_info): Update.
6372 * symtab.c (decode_line_spec): Update.
6373 * python/python.c (gdbpy_decode_line): Update.
6374 * linespec.h (decode_line_1): Update.
6375 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6376 (decode_compound, find_method, symtab_from_filename)
6377 (decode_variable): Likewise.
6378 * cli/cli-cmds.c (edit_command): Update.
6379 (list_command): Update.
6380 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6381 argument.
6382 (create_breakpoint): Update.
6383 (until_break_command): Update.
6384 (addr_string_to_sals): Update.
6385 (decode_line_spec_1): Update.
6386
b78a6381
TT
63872011-04-04 Tom Tromey <tromey@redhat.com>
6388
6389 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6390 (do_captured_parse_breakpoint): Remove.
6391 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6392 Use TRY_CATCH directly.
6393
00174a86
TT
63942011-04-04 Tom Tromey <tromey@redhat.com>
6395
6396 * symtab.h (free_symtab): Remove.
6397 (forget_cached_source_info_for_objfile): Declare.
6398 * symmisc.c (free_symtab): Remove.
6399 * source.c (forget_cached_source_info_for_objfile): New function.
6400 (forget_cached_source_info): Use it.
6401 * objfiles.c (free_objfile): Simplify check before calling
6402 clear_current_source_symtab_and_line. Call
6403 forget_cached_source_info_for_objfile.
6404
30cc903e
TT
64052011-04-04 Tom Tromey <tromey@redhat.com>
6406
6407 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6408 (new_symtab): Don't set `free_code' on symtab.
6409 (new_linetable): Properly handle size==0.
6410 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6411 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6412 free_func.
6413 * jv-lang.c (struct jv_per_objfile_data): New.
6414 (jv_per_objfile_free): Free the data.
6415 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6416 (get_java_class_symtab): Set the `dict' field on the
6417 jv_per_objfile_data.
6418 (free_class_block): Remove.
6419 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6420 the symtab.
6421
0c2e6019
TT
64222011-04-04 Tom Tromey <tromey@redhat.com>
6423
6424 * symfile.c (reread_symbols): Update.
6425 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6426 field.
6427 * objfiles.c (allocate_objfile): Update.
6428 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6429 declare.
6430 * cp-namespace.c (lookup_symbol_file): Don't call
6431 lookup_possible_namespace_symbol.
6432 (initialize_namespace_symtab, get_possible_namespace_block)
6433 (free_namespace_block, cp_check_possible_namespace_symbols)
6434 (check_possible_namespace_symbols_loop)
6435 (check_one_possible_namespace_symbol)
6436 (lookup_possible_namespace_symbol): Remove.
6437 (maintenance_cplus_namespace): Replace with notice.
6438 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6439
554d387d
TT
64402011-04-04 Tom Tromey <tromey@redhat.com>
6441
6442 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6443 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6444 * symmisc.c (free_symtab): Don't free debugformat.
6445 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6446 (record_debugformat, record_producer): Document.
6447 * buildsym.c (end_symtab): Don't save debugformat and producer
6448 names on obstack.
6449 (end_symtab): Don't free debugformat and producer fields.
6450 (record_debugformat): Don't call xstrdup.
6451 (record_producer): Likewise.
6452
d4d4db8a
TT
64532011-04-04 Tom Tromey <tromey@redhat.com>
6454
6455 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6456 (source_line_charpos, source_charpos_line): Remove.
6457
8903c50d
TT
64582011-04-04 Tom Tromey <tromey@redhat.com>
6459
6460 * symtab.h (domain_enum): Split in two...
6461 (enum search_domain): New.
6462 (search_symbols): Update.
6463 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6464 redundant declarations.
6465 (search_symbols): Change 'kind' argument to search_domain.
6466 Update.
6467 (print_symbol_info): Likewise.
6468 (symtab_symbol_info): Likewise.
6469 * symfile.h (struct quick_symbol_functions)
6470 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6471 <expand_symtabs_matching>: Likewise.
6472 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6473 (expand_symtabs_matching_via_partial): Update.
6474 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6475 (dw2_expand_symtabs_for_function): Update.
6476 * block.h: Moved anonymous enum...
6477 * defs.h (enum block_enum): ... here. Now named.
6478
d9351f5f 64792011-04-03 Joel Brobecker <brobecker@adacore.com>
6480
6481 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6482 * version.in: Bump version to 7.3.50.20110403-cvs.
6483
d6e00af6
JB
64842011-04-03 Joel Brobecker <brobecker@adacore.com>
6485
6486 * NEWS: Create a new section for the next release branch.
6487 Rename the section of the current branch, now that it has
6488 been cut.
6489
2b9e5ea6
UW
64902011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6491
6492 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6493 for "fpscr" in target description.
6494
0cf03b49
JK
64952011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6496
6497 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6498 initialize it. Delay HASH initialization. Strip the part after open
6499 parenthesis for languages with qualifiers. Call do_cleanups.
6500
5d901a73
TT
65012011-04-01 Tom Tromey <tromey@redhat.com>
6502
6503 * utils.c (report_command_stats): Don't print `-' for negative
6504 number.
6505
b0dd7688
JB
65062011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6507
6508 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6509 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6510 typedefs.
6511
956a9fb9
JB
65122011-04-01 Joel Brobecker <brobecker@adacore.com>
6513
6514 * breakpoint.h (bpdisp_text): Add declaration.
6515 * breakpoint.c (bpdisp_text): Make non-static.
6516 * ada-lang.c: #include "mi/mi-common.h".
6517 (print_it_exception): Rewrite to improve GDB/MI output.
6518
3352110b
PA
65192011-04-01 Pedro Alves <pedro@codesourcery.com>
6520
6521 * arm-tdep.h (struct address_space): Add forward declaration.
6522
18819fa6
UW
65232011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6524
6525 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6526 * arm-tdep.c (arm_override_mode): New global.
6527 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6528 execution mode heuristics.
6529 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6530 second single-step breakpoint if needed, using
6531 arm_insert_single_step_breakpoint.
6532 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6533 ARM execution mode, do not call thumb_get_next_pc_raw.
6534 (arm_get_next_pc): Encode execution mode in return value. Call
6535 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6536 (arm_insert_single_step_breakpoint): New function.
6537 (arm_software_single_step): Call it.
6538 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6539 argument to return execution mode of sigreturn target.
6540 (arm_linux_syscall_next_pc): Use it.
6541 (arm_linux_copy_svc): Update call.
6542 (arm_linux_software_single_step): Call
6543 arm_insert_single_step_breakpoint.
6544
a6e293d1
JK
65452011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6546
6547 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6548 the comment.
6549
a4c8e806
TT
65502011-03-31 Tom Tromey <tromey@redhat.com>
6551
6552 * varobj.c (update_dynamic_varobj_children): Properly handle
6553 errors from iterator.
6554
df5c6c50
JK
65552011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6556
6557 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6558 struct linkage name twice.
6559
1dae3efc
TT
65602011-03-31 Tom Tromey <tromey@redhat.com>
6561
6562 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6563 missing ">" to message.
6564
f4f7ab05
TT
65652011-03-31 Tom Tromey <tromey@redhat.com>
6566
6567 * varobj.c (instantiate_pretty_printer): Remove duplicate
6568 'return'.
6569
fcf250e2
UW
65702011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6571
6572 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6573 if neither saved value nor register available (e.g. signal frame).
6574
ee6436e3
TJB
65752011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6576
6577 * macroexp.c (expand): Avoid uninitialized variable
6578 compiler warning.
6579
423f41a5
TJB
65802011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6581
6582 * breakpoint.c (break_range_command): Fix typo in comment.
6583
f1310107
TJB
65842011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6585 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6586
6587 Implement support for PowerPC BookE ranged breakpoints.
6588 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6589 * breakpoint.h (struct bp_target_info) <length>: New member
6590 variable.
6591 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6592 instead of struct breakpoint as argument, and also add ASPACE
6593 and BP_ADDR arguments. Update all callers.
6594 (struct breakpoint_ops) <print_one_detail>: New method.
6595 (struct breakpoint) <addr_string_range_end>: New member variable.
6596 * breakpoint.c (breakpoint_location_address_match): Add function
6597 prototype.
6598 (insert_bp_location): Set bl->target_info.length.
6599 (breakpoint_here_p): Call breakpoint_location_address_match.
6600 (moribund_breakpoint_here_p): Likewise.
6601 (regular_breakpoint_inserted_here_p): Likewise.
6602 (breakpoint_thread_match): Likewise.
6603 (bpstat_stop_status): Likewise.
6604 (bpstat_check_location): Move call to
6605 breakpoint_ops.breakpoint_hit to the top.
6606 (print_one_breakpoint_location): Call
6607 breakpoint_ops.print_one_detail if available.
6608 (breakpoint_address_match_range): New function.
6609 (breakpoint_location_address_match): Likewise.
6610 (breakpoint_locations_match): Compare the length field of the
6611 locations too.
6612 (hw_breakpoint_used_count): Count resources used by all locations
6613 in a breakpoint, and use breakpoint_ops.resources_needed if
6614 available.
6615 (breakpoint_hit_ranged_breakpoint): New function.
6616 (resources_needed_ranged_breakpoint): Likewise.
6617 (print_it_ranged_breakpoint): Likewise.
6618 (print_one_ranged_breakpoint): Likewise.
6619 (print_one_detail_ranged_breakpoint): Likewise.
6620 (print_mention_ranged_breakpoint): Likewise.
6621 (print_recreate_ranged_breakpoint): Likewise.
6622 (ranged_breakpoint_ops): New structure.
6623 (find_breakpoint_range_end): New function.
6624 (break_range_command): Likewise.
6625 (delete_breakpoint): Free addr_string_range_end.
6626 (update_breakpoint_locations): Add SALS_END argument. Update
6627 all callers. Calculate breakpoint length if a non-zero SALS_END
6628 is given. Call breakpoint_locations_match instead of
6629 breakpoint_address_match.
6630 (reset_breakpoint): Find SaL of the end of the range if B is a
6631 ranged breakpoint.
6632 (_initialize_breakpoint): Register break-range command.
6633 * defs.h (print_core_address): Add function prototype.
6634 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6635 function.
6636 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6637 (ppc_linux_remove_hw_breakpoint): Likewise.
6638 (_initialize_ppc_linux_nat): Initialize
6639 to_ranged_break_num_registers.
6640 * target.c (update_current_target): Add comment about
6641 to_ranged_break_num_registers.
6642 (target_ranged_break_num_registers): New function.
6643 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6644 New method.
6645 (target_ranged_break_num_registers): Add function prototype.
6646 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6647 * utils.c (print_core_address): ... here.
6648
02d20e4a
UW
66492011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6650
6651 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6652 variable compiler warning.
6653
ef23e705
TJB
66542011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6655
6656 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6657 code from here ...
6658 (re_set_breakpoint): ... to here ...
6659 (addr_string_to_sals): ... and here.
6660
311e6ab3
PM
66612011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6662
6663 * Makefile.in (SFILES): Add missing C sources.
6664 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6665 Add missing headers.
6666
acd1d99c
MF
66672011-03-29 Mike Frysinger <vapier@gentoo.org>
6668
6669 * .gitignore: New file.
6670
66ee2731
MF
66712011-03-29 Mike Frysinger <vapier@gentoo.org>
6672
6673 * NEWS: Mention new cfi device simulation.
6674
53832f31
TT
66752011-03-29 Tom Tromey <tromey@redhat.com>
6676
6677 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6678 otherwise anonymous types.
6679 (dwarf2_name): Likewise.
6680 * valops.c (value_struct_elt_for_reference): Refine artificial
6681 type logic. Call error if j==-1.
6682
09b58708
JK
66832011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6684
6685 Fix false GCC warning.
6686 * infcall.c (find_function_addr): Initialize funaddr.
6687
6023c606
PM
66882011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6689
6690 Fix mingw compilation with --enable-targets=all.
6691 * remote-mips.c (gdb_usleep.h): Include header.
6692 (mips_enter_debug): Use gdb_usleep instead of sleep.
6693
0e30163f
JK
66942011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6695
6696 Support resolution of STT_GNU_IFUNC via breakpoints.
6697 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6698 bp_gnu_ifunc_resolver_return.
6699 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6700 the loop. Support bp_gnu_ifunc_resolver and
6701 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6702 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6703 breakpoints.
6704 (bptype_string, print_one_breakpoint_location): Support
6705 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6706 (user_settable_breakpoint): Return true also for
6707 bp_gnu_ifunc_resolver.
6708 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6709 bp_gnu_ifunc_resolver_return.
6710 (set_breakpoint_location_function): New parameter explicit_loc,
6711 describe it. Call find_pc_partial_function_gnu_ifunc with new
6712 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6713 EXPLICIT_LOC is not set.
6714 (set_raw_breakpoint): Set EXPLICIT_LOC for
6715 set_breakpoint_location_function.
6716 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6717 set_breakpoint_location_function.
6718 (mention): Support bp_gnu_ifunc_resolver and
6719 bp_gnu_ifunc_resolver_return.
6720 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6721 set_breakpoint_location_function.
6722 (update_breakpoint_locations): Remove static.
6723 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6724 bp_gnu_ifunc_resolver_return.
6725 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6726 bp_gnu_ifunc_resolver_return.
6727 (update_breakpoint_locations): New declaration.
6728 * elfread.c: Include gdbthread.h and regcache.h.
6729 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6730 functions.
6731 (elf_gnu_ifunc_fns): Install them.
6732 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6733 (stub_gnu_ifunc_resolver_return_stop): New functions.
6734 (stub_gnu_ifunc_fns): Install them.
6735 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6736 and gnu_ifunc_resolver_return_stop.
6737 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6738
07be84bf
JK
67392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6740
6741 STT_GNU_IFUNC reader implementation.
6742 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6743 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6744 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6745 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6746 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6747 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6748 (elf_gnu_ifunc_resolve_addr): New.
6749 (elf_symfile_read): Call elf_rel_plt_read.
6750 (elf_gnu_ifunc_fns): New.
6751 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6752 Install elf_gnu_ifunc_fns.
6753 * infcall.c (find_function_return_type): New function.
6754 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6755 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6756 (stub_gnu_ifunc_resolve_name): New functions.
6757 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6758 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6759 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6760
300f8e10
JK
67612011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6762
6763 Code cleanup for later STT_GNU_IFUNC support.
6764 * infcall.c (find_function_addr): Remove variable code, use explicit
6765 dereferences for it. Move VALUE_TYPE initialization later.
6766
11c81455
JK
67672011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6768
6769 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6770 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6771 (clear_pc_function_cache): Clear it.
6772 (find_pc_partial_function): Rename to ...
6773 (find_pc_partial_function_gnu_ifunc): ... this function. New
6774 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6775 (find_pc_partial_function): New wrapper for this function.
6776 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6777
0875794a
JK
67782011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6779
6780 GDB internal type support for STT_GNU_IFUNC.
6781 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6782 (elf_symtab_read): Set mst_text_gnu_ifunc for
6783 BSF_GNU_INDIRECT_FUNCTION.
6784 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6785 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6786 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6787 nodebug_got_plt_symbol.
6788 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6789 (TYPE_GNU_IFUNC): New.
6790 (struct main_type): New field flag_gnu_ifunc.
6791 (struct builtin_type): New field builtin_func_func.
6792 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6793 nodebug_got_plt_symbol.
6794 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6795 (in_gnu_ifunc_stub): New.
6796 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6797 mst_text_gnu_ifunc.
6798 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6799 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6800 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6801 in_gnu_ifunc_stub.
6802 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6803 * symtab.c (search_symbols): Likewise.
6804 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6805 and mst_slot_got_plt.
6806 (in_gnu_ifunc_stub): New declaration.
6807
d0fb5eae
JK
68082011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6809
6810 Support a ring of related breakpoints.
6811 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6812 other functions, add gdb_assert.
6813 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6814 watchpoint_del_at_next_stop.
6815 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6816 (bpstat_stop_status): Handle ring in related_breakpoint.
6817 (set_raw_breakpoint_without_location): Initialize ring in
6818 related_breakpoint.
6819 (delete_breakpoint): Handle ring in related_breakpoint, use
6820 watchpoint_del_at_next_stop.
6821 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6822
9cded63f
TT
68232011-03-28 Tom Tromey <tromey@redhat.com>
6824
6825 PR symtab/12441:
6826 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6827 with `language_minimal'.
6828
467d42c4
UW
68292011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6830
6831 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6832 instead of checking for STT_ARM_TFUNC symbol type.
6833
62853458
TT
68342011-03-25 Tom Tromey <tromey@redhat.com>
6835
6836 * linespec.c (symbol_found): Restore line-based result for
6837 non-LOC_LABEL symbols.
6838
a7417d46
KT
68392011-03-25 Kai Tietz <ktietz@redhat.com>
6840
6841 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6842 instead of strcmp for comparison.
6843 (tui_source_is_displayed): Likewise.
6844 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6845
55f1336d
TT
68462011-03-24 Mark Wielaard <mjw@redhat.com>
6847
f33edef8
PP
6848 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6849 complaint.
6850 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6851 (find_partial_die_in_comp_unit): Likewise in comment.
6852 (read_attribute_value): Likewise.
6853 (lookup_die_type): Likewise.
6854 (dwarf_form_name): Likewise.
6855 (dump_die_shallow): Likewise.
6856 (follow_die_ref_or_sig): Likewise.
55f1336d 6857
9ef07c8c
TT
68582011-03-24 Tom Tromey <tromey@redhat.com>
6859
6860 PR breakpoints/11816:
6861 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6862 (decode_compound): Update.
6863 (find_function_symbol): New function.
6864 (decode_dollar): Update.
6865 (decode_label): Add 'function_symbol' parameter. Handle
6866 function-relative labels.
6867 (decode_variable): Update.
6868 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6869 not its line. Set `special_display' and canonical name for
6870 labels.
6871
56435ebe
TT
68722011-03-24 Tom Tromey <tromey@redhat.com>
6873
6874 * linespec.h (struct linespec_result) <special_display>: New
6875 field.
6876 * breakpoint.h (struct breakpoint) <display_canonical>: New
6877 field.
6878 * breakpoint.c (print_breakpoint_location): Respect
6879 display_canonical.
6880 (create_breakpoint_sal): Add 'display_canonical' parameter.
6881 (create_breakpoints_sal): Update.
6882 (create_breakpoint): Update.
6883
7efd8fc2
TT
68842011-03-24 Tom Tromey <tromey@redhat.com>
6885
6886 * symtab.c (decode_line_spec): Update.
6887 * linespec.c (build_canonical_line_spec): Change type of
6888 'canonical'.
6889 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6890 (find_method, decode_all_digits, decode_dollar, decode_label)
6891 (symbol_found): Likewise.
6892 (init_linespec_result): New function.
6893 * breakpoint.c (struct captured_parse_breakpoint_args)
6894 <canonical_p>: New field, replaces addr_string_p.
6895 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6896 'addr_string'.
6897 (parse_breakpoint_sals): Likewise.
6898 (do_captured_parse_breakpoint): Update.
6899 (create_breakpoint): Use struct linespec_result.
6900 (until_break_command): Update.
6901 (breakpoint_re_set_one): Update.
6902 (decode_line_spec_1): Update.
6903 * linespec.h (struct linespec_result): New.
6904 (init_linespec_result): Declare.
6905
788c8b10
PA
69062011-03-23 Pedro Alves <pedro@codesourcery.com>
6907
6908 * regcache.c (regcache_raw_read): If the target didn't supply a
6909 given raw register, mark it as unavailable.
6910
0ba1096a
KT
69112011-03-23 Kai Tietz <ktietz@redhat.com>
6912
6913 * breakpoint.c (clear_command): Use filename_cmp
6914 instead of strcmp for comparison.
6915 * buildsym.c (watch_main_source_file_lossage): Likewise.
6916 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6917 checking just for slash.
6918 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6919 strrchr and filename_cmp instead of strcmp for filenames.
6920 (add_old_header_file): Use filename_cmp
6921 instead of strcmp for comparison.
6922 * exec.c (exec_set_section_address): Likewise.
6923 * macrotab.c (macro_lookup_inclusion): Likewise.
6924 (macro_lookup_inclusion): Likewise.
6925 * elfread.c (_initialize_elfread): Likewise.
6926 (elfstab_offset_sections): Likewise.
6927 (elfstab_offset_sections): Use lbasename instead of
6928 strrchr.
6929 * mdebugread.c (parse_partial_symbols): Likewise.
6930 (arse_partial_symbols): Use filename_(n)cmp instead of
6931 str(n)cmp for comparison.
6932 * minsyms.c (lookup_minimal_symbol): Likewise.
6933 * psymtab.c (read_psymtabs_with_filename): Likewise.
6934 * solib.c (solib_read_symbols): Likewise.
6935 (reload_shared_libraries_1): Likewise.
6936 * symmisc.c (maintenance_print_symbols): Likewise.
6937 * symfile.c (separate_debug_file_exists): Likewise.
6938 (reread_symbols): Likewise.
6939 (find_separate_debug_file_by_debuglink): Likewise.
6940 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6941 * source.c (add_path): Likewise.
6942 * symtab.c (filename_seen): Likewise.
6943 (file_matches): Likewise.
6944 (print_symbol_info): Likewise.
6945 (maybe_add_partial_symtab_filename): Likewise.
6946 (make_source_files_completion_list): Likewise.
6947 * xml-syscall.c (init_sysinfo): Likewise.
6948 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6949 IS_DIR_SEPARATOR for checking for trailing path separator.
6950
dd90784c
JK
69512011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6952
6953 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6954 label abort_expression.
6955 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6956 DWARF_VALUE_OPTIMIZED_OUT.
6957
3167638f
JK
69582011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6959
6960 Code cleanup.
6961 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6962 to linkage_name. Invert its value. Update the function comment.
6963 (c_type_print_varspec_suffix): Invert it at the caller.
6964 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6965
ce406537
PA
69662011-03-22 Pedro Alves <pedro@codesourcery.com>
6967
6968 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6969 errors when reading the `stop_pc'.
6970 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6971 get_frame_pc.
6972
da5d4055
PM
69732011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6974
6975 * NEWS: Document gdb.Write stream keyword.
6976
29e0eb9c
JK
69772011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6978
6979 Revert:
6980 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6981 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6982 (dwarf2_add_field): Fix new_field->accessibility for
6983 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6984
05775840
PM
69852011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6986
f33edef8 6987 PR python/12183
05775840
PM
6988
6989 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6990 other error classes. Do not print stack trace.
6991
a0cb7835
JK
69922011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6993
6994 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6995 (dwarf2_add_field): Fix new_field->accessibility for
6996 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6997
d19f7eee
UW
69982011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6999
7000 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7001 encountering a load via a non-SP register.
7002
4a2fbb50
UW
70032011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7004
7005 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7006 field in returned unwinder.
7007
3489610d
JB
70082012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7009
7010 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7011
8c1a34e7
JB
70122012-03-21 Joel Brobecker <brobecker@adacore.com>
7013
7014 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7015 of xmalloc.
7016
8fbca658
PA
70172012-03-18 Pedro Alves <pedro@codesourcery.com>
7018
7019 * frame.c (frame_unwind_register): Throw an error if unwinding the
7020 register failed.
7021 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7022 an unwind stop reason.
7023 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7024 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7025 UNWIND_UNAVAILABLE>: New.
7026 * inline-frame.c (inline_frame_unwind): Install
7027 default_frame_unwind_stop_reason.
7028 * frame-unwind.c: Include "exceptions.h".
7029 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7030 (default_frame_unwind_stop_reason): New.
7031 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7032 (default_frame_unwind_stop_reason): Declare.
7033 (struct frame_unwind) <stop_reason>: New function pointer.
7034
7035 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7036 * dwarf2-frame.c: Include exceptions.h.
7037 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7038 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7039 computing the CFA. If such an error was thrown, set
7040 unavailable_retaddr.
7041 (dwarf2_frame_unwind_stop_reason): New.
7042 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7043 unavailable.
7044 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7045 (dwarf2_signal_frame_unwind): Ditto.
7046
7047 * amd64-tdep.c: Include "exceptions.h".
7048 (struct amd64_frame_cache): New field "base_p".
7049 (amd64_init_frame_cache): Clear it.
7050 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7051 Avoid reading registers with functions that throw if the register
7052 is not necessary to compute the frame base.
7053 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7054 swallowing NOT_AVAILABLE_ERROR.
7055 (amd64_frame_unwind_stop_reason): New.
7056 (amd64_frame_this_id): Don't build a frame id if the frame base
7057 was unavailable.
7058 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7059 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7060 base_p if the frame base was computable.
7061 (amd64_sigtramp_frame_unwind_stop_reason): New.
7062 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7063 frame base was unavailable.
7064 (amd64_sigtramp_frame_unwind): Install
7065 amd64_sigtramp_frame_unwind_stop_reason.
7066 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7067 base_p if the frame base was computable.
7068 (amd64_epilogue_frame_unwind_stop_reason): New.
7069 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7070 frame base was unavailable.
7071 (amd64_epilogue_frame_unwind): Install
7072 amd64_epilogue_frame_unwind_stop_reason.
7073 * i386-tdep.c: Include "exceptions.h".
7074 (struct i386_frame_cache): New field "base_p".
7075 (i386_init_frame_cache): Clear it.
7076 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7077 Avoid reading registers with functions that throw if the register
7078 is not necessary to compute the frame base.
7079 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7080 swallowing NOT_AVAILABLE_ERROR.
7081 (i386_frame_unwind_stop_reason): New.
7082 (i386_frame_this_id): Don't build a frame id if the frame base was
7083 unavailable.
7084 (i386_frame_prev_register): Handle unavailable SP.
7085 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7086 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7087 base_p if the frame base was computable.
7088 (i386_epilogue_frame_unwind_stop_reason): New.
7089 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7090 base was unavailable.
7091 (i386_epilogue_frame_unwind): Install
7092 i386_epilogue_frame_unwind_stop_reason.
7093 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7094 base_p if the frame base was computable.
7095 (i386_sigtramp_frame_unwind_stop_reason): New.
7096 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7097 base was unavailable.
7098 (i386_sigtramp_frame_unwind): Install
7099 i386_sigtramp_frame_unwind_stop_reason.
7100 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7101 type's size, not the register's.
7102 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7103
7104 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7105 default_frame_unwind_stop_reason.
7106 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7107 (alpha_heuristic_frame_unwind): Ditto.
7108 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7109 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7110 * avr-tdep.c (avr_frame_unwind): Ditto.
7111 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7112 Ditto.
7113 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7114 * frv-tdep.c (frv_frame_unwind): Ditto.
7115 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7116 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7117 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7118 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7119 (hppa_stub_frame_unwind): Ditto.
7120 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7121 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7122 (ia64_libunwind_frame_unwind)
7123 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7124 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7125 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7126 * m32c-tdep.c (m32c_unwind): Ditto.
7127 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7128 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7129 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7130 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7131 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7132 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7133 * mep-tdep.c (mep_frame_unwind): Ditto.
7134 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7135 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7136 (mips_stub_frame_unwind): Ditto.
7137 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7138 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7139 * mt-tdep.c (mt_frame_unwind): Ditto.
7140 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7141 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7142 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7143 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7144 (s390_sigtramp_frame_unwind): Ditto.
7145 * score-tdep.c (score_prologue_unwind): Ditto.
7146 * sh-tdep.c (sh_frame_unwind): Ditto.
7147 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7148 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7149 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7150 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7151 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7152 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7153 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7154 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7155 (sparc64obsd_trapframe_unwind): Ditto.
7156 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7157 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7158 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7159 * v850-tdep.c (v850_frame_unwind): Ditto.
7160 * vax-tdep.c (vax_frame_unwind): Ditto.
7161 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7162 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7163 * xtensa-tdep.c (xtensa_unwind): Ditto.
7164
f23d1b92
PA
71652011-03-18 Pedro Alves <pedro@codesourcery.com>
7166
7167 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7168 there's always a frame. Use get_frame_pc_if_available instead of
7169 get_frame_pc, and if there's no PC available, don't look up a
7170 symtab.
7171
1d4f5741
PA
71722011-03-18 Pedro Alves <pedro@codesourcery.com>
7173
7174 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7175 unavailable PC.
7176
dba09041
PA
71772011-03-18 Pedro Alves <pedro@codesourcery.com>
7178
7179 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7180 gracefully.
7181
9a26e44c
PA
71822011-03-18 Pedro Alves <pedro@codesourcery.com>
7183
7184 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7185 * frame.c (frame_unwind_caller_pc_if_available): New.
7186 * stack.c (frame_info): Handle unavailable PC.
7187
71882011-03-18 Pedro Alves <pedro@codesourcery.com>
7189
7190 * frame.c (frame_unwind_pc): Rename to ...
7191 (frame_unwind_pc_if_available): ... this. New `pc' output
7192 parameter. Change return type to int. Gracefully handle
7193 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7194 happened, or 1 otherwise.
7195 (frame_unwind_pc): Reimplement on top of
7196 frame_unwind_pc_if_available.
7197 (get_frame_func): Rename to ...
7198 (get_frame_func_if_available): New `pc' output parameter. Change
7199 return type to int. Gracefully handle the PC not being available.
7200 (get_frame_func): Reimplement on top of
7201 get_frame_func_if_available.
7202 (select_frame): Handle the PC being unavailable.
7203 (get_prev_frame): Handle the PC being unavailable.
7204 (get_frame_pc_if_available): New.
7205 (get_frame_address_in_block_if_available): New.
7206 (find_frame_sal): Handle the frame PC not being available.
7207 * frame.h (get_frame_pc_if_available): Declare.
7208 (get_frame_address_in_block_if_available): Declare.
7209 (get_frame_func_if_available): Declare.
7210 * stack.c (print_frame_info): Handle the PC being unavailable.
7211 (find_frame_funname): Ditto.
7212 (print_frame): Handle the PC being unavailable.
7213 (get_frame_language): Ditto.
7214 * blockframe.c (get_frame_block): Ditto.
7215 * macroscope.c (default_macro_scope): Ditto.
7216 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7217
72182011-03-18 Pedro Alves <pedro@codesourcery.com>
7219
7220 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7221 NOT_AVAILABLE_ERROR when evaluating the location expression.
7222
72232011-03-18 Pedro Alves <pedro@codesourcery.com>
7224
7225 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7226 returning that the register piece is unavailable/optimized out.
7227 (write_pieced_value): Handle get_frame_register_bytes returning
7228 that the register piece is unavailable/optimized out when doing a
7229 read-modify write of a bitfield.
7230 * findvar.c (value_from_register): Handle get_frame_register_bytes
7231 returning that the register piece is unavailable/optimized out.
7232 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7233 and `unavailablep'. Throw error on bad debug info. Use
7234 frame_register instead of frame_register_read, to fill in the new
7235 arguments.
7236 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7237 and `unavailablep'.
7238 * valops.c: (value_assign): Adjust, and handle
7239 get_frame_register_bytes failing.
7240 * spu-tdep.c: Include exceptions.h.
7241 (spu_software_single_step): Adjust, and handle
7242 get_frame_register_bytes failing.
7243 (spu_get_longjmp_target): Ditto.
7244 * gdbarch.sh (register_to_value): Change to return int. New
7245 parameters `optimizedp' and `unavailablep'.
7246 * gdbarch.h, gdbarch.c: Regenerate.
7247 * i386-tdep.c (i386_register_to_value): Adjust to new
7248 gdbarch_register_to_value interface.
7249 * i387-tdep.c (i387_register_to_value): Ditto.
7250 * i387-tdep.h (i387_register_to_value): Ditto.
7251 * alpha-tdep.c (alpha_register_to_value): Ditto.
7252 * ia64-tdep.c (ia64_register_to_value): Ditto.
7253 * m68k-tdep.c (m68k_register_to_value): Ditto.
7254 * mips-tdep.c (mips_register_to_value): Ditto.
7255 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7256
0fdb4f18
PA
72572011-03-18 Pedro Alves <pedro@codesourcery.com>
7258
7259 * findvar.c (value_of_register): Mark the value as unavailable, if
7260 the register is unavailable.
7261 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7262 (frame_register): New `unavailablep' parameter.
7263 (frame_register_read): Update comment.
7264 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7265 Set it if the register is unavailable. If the register is
7266 unavailable, clear the output buffer.
7267 (frame_register): New `unavailablep' parameter. Pass it down.
7268 (frame_unwind_register): Adjust.
7269 (put_frame_register): Adjust.
7270 (frame_register_read): Adjust. Also return false if the register
7271 is not available.
7272 (frame_register_unwind_location): Adjust.
7273 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7274 is unavailable, mark the value accordingly.
7275 * stack.c (frame_info): Handle unavailable registers.
7276
e69aa73e
PA
72772011-03-18 Pedro Alves <pedro@codesourcery.com>
7278
7279 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7280 simplify, using regcache_cooked_read.
7281
05d1431c
PA
72822011-03-18 Pedro Alves <pedro@codesourcery.com>
7283
7284 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7285 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7286 (regcache_raw_read_unsigned, regcache_raw_read_part)
7287 (regcache_cooked_read, regcache_cooked_read_signed)
7288 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7289 (regcache_cooked_read_ftype): Change return to enum
7290 register_status.
7291 * regcache.c: Include exceptions.h
7292 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7293 (do_cooked_read): Change return to enum register_status. Always
7294 forward to regcache_cooked_read.
7295 (regcache_raw_read): Change return to enum register_status. If
7296 the register is not REG_VALID, memset the buffer. Return the
7297 register's status.
7298 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7299 return the register's status.
7300 (regcache_raw_read_unsigned): Ditto.
7301 (regcache_cooked_read): Change return to enum register_status.
7302 Assert that with read-only regcaches, the register's status must
7303 be known. If the regcache is read-only, and the register is not
7304 REG_VALID, memset the buffer. Return the register's status.
7305 (regcache_cooked_read_signed): Change return to enum
7306 register_status. Handle non-REG_VALID registers and return the
7307 register's status.
7308 (regcache_cooked_read_unsigned): Change return to enum
7309 register_status. Handle non-REG_VALID registers and return the
7310 register's status.
7311 (regcache_xfer_part, regcache_raw_read_part)
7312 (regcache_cooked_read_part): Change return to enum
7313 register_status. Return the register's status.
7314 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7315 unavailable.
7316 (regcache_dump): Handle unavailable cooked registers.
7317 * frame.c (do_frame_register_read): Adjust interface to match
7318 regcache_cooked_read_ftype.
7319 * gdbarch.sh (pseudo_register_read): Change return to enum
7320 register_status.
7321 * gdbarch.h, gdbarch.c: Regenerate.
7322
7323 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7324 register_status.
7325 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7326 register_status. If reading a raw register indicates the raw
7327 register is not valid, return the raw register's status,
7328 otherwise, return REG_VALID.
7329 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7330 register_status. Handle non-REG_VALID raw registers and return
7331 the register's status.
7332 * arm-tdep.c (arm_neon_quad_read)
7333 (arm_pseudo_read): Change return to enum register_status. Handle
7334 non-REG_VALID raw registers and return the register's status.
7335 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7336 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7337 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7338 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7339 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7340 register_status.
7341 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7342 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7343 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7344 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7345 (m32c_pseudo_register_read): Change return to enum
7346 register_status. Adjust.
7347 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7348 enum register_status. Return the register's status.
7349 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7350 register_status. Return the register's status.
7351 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7352 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7353 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7354 * rs6000-tdep.c (move_ev_register_func): New typedef.
7355 (e500_move_ev_register): Use it. Change return to enum
7356 register_status. Return the register's status.
7357 (do_regcache_raw_read): New function.
7358 (do_regcache_raw_write): New function.
7359 (e500_pseudo_register_read): Change return to enum
7360 register_status. Return the register's status. Use
7361 do_regcache_raw_read.
7362 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7363 (dfp_pseudo_register_read): Change return to enum register_status.
7364 Return the register's status.
7365 (vsx_pseudo_register_read): Ditto.
7366 (efpr_pseudo_register_read): Ditto.
7367 (rs6000_pseudo_register_read): Ditto.
7368 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7369 register_status. Return the register's status.
7370 * sh64-tdep.c (pseudo_register_read_portions): New function.
7371 (sh64_pseudo_register_read): Change return to enum
7372 register_status. Use pseudo_register_read_portions. Return the
7373 register's status.
7374 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7375 register_status. Return the register's status.
7376 * sh-tdep.c (pseudo_register_read_portions): New function.
7377 (sh_pseudo_register_read): Change return to enum register_status.
7378 Use pseudo_register_read_portions. Return the register's status.
7379 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7380 enum register_status. Return the register's status.
7381 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7382 * spu-tdep.c (spu_pseudo_register_read_spu)
7383 (spu_pseudo_register_read): Ditto.
7384 * xtensa-tdep.c (xtensa_register_read_masked)
7385 (xtensa_pseudo_register_read): Ditto.
7386 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7387
e10abd8f
PM
73882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7389
7390 * python/py-value.c (valpy_getitem): Fix formatting of error function
7391 call.
7392
7ea6d463
PM
73932011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7394
7395 ARI fixes: Add missing internationalization markups throughout
7396 C source files.
7397 * darwin-nat-info.c: Ditto.
7398 * record.c: Ditto.
7399 * remote.c: Ditto.
7400 * mi/mi-main.c: Ditto.
7401
001083c6
PM
74022011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7403
7404 ARI fixes: Add missing internationalization markups throughout
7405 yacc files.
7406 * c-exp.y: Ditto.
7407 * cp-name-parser.y: Ditto.
7408 * f-exp.y: Ditto.
7409 * m2-exp.y: Ditto.
7410 * objc-exp.y: Ditto.
7411 * p-exp.y: Ditto.
7412
4f1cdeec
PM
74132011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7414
7415 ARI fixes: Messages should have no trailing new lines.
7416 * darwin-nat.c (mach_check_error): Remove trailing new line from
7417 warning function call message.
7418 * record.c (bfdcore_read): Idem for error call.
7419
28e698f1
PM
74202011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7421
7422 * common/signals.c (target_signal_from_host): Add _ markup to error
7423 function call message.
7424 (target_signal_to_host): Add _ markup and remove trailing new line
7425 from warning call message.
7426 (target_signal_from_command): Add _ markup to error function call
7427 message.
7428
99c3dc11
PM
74292011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7430
f33edef8 7431 PR python/12149
99c3dc11
PM
7432
7433 * python/python.c (gdbpy_write): Accept a stream argument and
7434 operate to the appropriate stream.
7435 (gdbpy_flush): Likewise.
7436 (_initialize_python): Add stream constants.
7437 (finish_python_initialization): Add GdbOutputErrorFile class.
7438
c20800be
KY
74392011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7440
7441 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7442
f4a1794a
KY
74432011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7444
7445 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7446 to store_signed_integer. Add debug message when relocating CALL
7447 instructions. Fix formatting of debug message.
7448 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7449
d4862372
JB
74502011-03-17 Joel Brobecker <brobecker@gnat.com>
7451
7452 * target.h (struct target_ops): Remove to_lookup_symbol field.
7453 (target_lookup_symbol): Delete macro.
7454 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7455 (update_current_target, setup_target_debug): Remove handling
7456 of to_lookup_symbol target_ops field.
7457 * ada-tasks.c (get_known_tasks_addr): Remove use of
7458 target_lookup_symbol.
7459 * coffread.c (coff_symtab_read): Likewise.
7460 * dbxread.c (read_dbx_symtab): Ditto.
7461
d645e32e
JB
74622011-03-17 Joel Brobecker <brobecker@gnat.com>
7463
7464 PR gdb/12116:
7465 * configure.ac: Add getthrds declaration check.
7466 * configure, config.in: Regenerate.
7467 * aix-thread.c (getthrds): Declare only if not already declared
7468 in procinfo.h. More declaration out of get_signaled_thread to
7469 global scope.
7470
29703da4
PM
74712011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7472
7473 * python/py-symtab.c: Populate symtab_object_methods,
7474 sal_object_methods.
7475 (stpy_is_valid): New function.
7476 (salpy_is_valid): Ditto.
7477 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7478 (sympy_is_valid): New function.
7479 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7480 (objfpy_is_valid): New function.
7481 * python/py-inferior.c: Populate inferior_object_methods.
7482 (infpy_is_valid): New function.
7483 * python/py-infthread.c: Populate thread_object_methods.
7484 (thpy_is_valid): New function.
7485 * python/py-block.c: Declare block_object_methods. Populate. Declare
7486 block_iterator_object_methods. Populate.
7487 (blpy_is_valid): New function.
7488 (blpy_iter_is_valid): Ditto.
7489
c00f8484
KS
74902011-03-16 Keith Seitz <keiths@redhat.com>
7491
7492 * linespec.c (find_methods): Canonicalize NAME before looking
7493 up the symbol.
7494 (name_end): New function.
7495 (keep_name_info): New function.
7496 (decode_line_1): Use keep_name_info.
7497 (decode_compound): Likewise.
7498 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7499 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7500
7501 PR c++/12273
7502 * linespec.c (locate_first_half): Keep overload information, too.
7503 (decode_compound): Use a string to represent break characters
7504 to escape the loop.
7505 If P points to a break character, do not increment it.
7506 For C++ and Java, keep overload information and relevant keywords.
7507 If we cannot find a symbol, search the minimal symbols.
7508
7509 PR c++/11734
7510 * linespec.c (decode_compound): Rename SAVED_ARG to
7511 THE_REAL_SAVED_ARG.
7512 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7513 single-quotes.
7514 Pass a valid block to lookup_symbol.
7515 (lookup_prefix_sym): Likewise.
7516 (find_method): Construct search name based on SYM_CLASS instead
7517 of SAVED_ARG.
7518 * psymtab.c (lookup_partial_symbol): Add language parameter.
7519 (lookup_symbol_aux_psymtabs): Likewise.
7520 Don't assume that the psymtab we found was the right one. Search
7521 for the desired symbol in the symtab to be certain.
7522 (psymtab_search_name): New function.
7523 (lookup_partial_symbol): Use psymtab_search_name.
7524 Add language parameter.
7525 (read_symtabs_for_function): Add language parameter and pass to
7526 lookup_partial_symbol.
7527 (find_symbol_file_from_partial): Likewise.
7528
c91513d8
PP
75292011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7530
7531 PR gdb/12528
7532 * dwarf2read.c (noop_record_line): New function.
7533 (dwarf_decode_lines): Ignore line tables for GCd functions.
7534
b37520b6
PM
75352011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7536
7537 Fix ARI warnings about new lines at the end of messages, which
7538 are unneeded as there is a new line added at the end of the message
7539 automatically.
7540 * darwin-nat.c (darwin_stop_inferior): Ditto.
7541 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7542 * dfp.c (decimal_to_number): Ditto.
7543 * exec.c (print_section_info): Ditto.
7544 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7545 * osdata.c (get_osdata): Ditto.
7546 * record.c (bfdcore_write): Ditto.
7547 * remote-mips.c (mips_readchar): Ditto.
7548 * remote.c (read_ptid): Ditto.
7549 * ser-mingw.c (ser_windows_raw): Ditto.
7550 * tracepoint.c (add_local_symbols): Ditto.
7551 * windows-nat.c (fake_create_process): Ditto.
7552
b08ee6a2
TT
75532011-03-16 Tom Tromey <tromey@redhat.com>
7554
7555 * tracepoint.c (stop_tracing): Don't declare.
7556 * event-top.c (after_char_processing_hook): Add `(void)'.
7557
9a6f1302
PM
75582011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7559
7560 * NEWS: Add Parameter sub-classing description.
7561
7ceb86b1
KT
75622011-03-16 Kai Tietz <ktietz@redhat.com>
7563
7564 * MAINTAINERS: Update my e-mail address.
7565
efeff6cf
AT
75662011-03-15 Andreas Tobler <andreast@fgznet.ch>
7567
7568 * MAINTAINERS: Add myself for write after approval privileges.
7569
681c238c
MS
75702011-03-15 Michael Snyder <msnyder@vmware.com>
7571
f3df5b08
MS
7572 * frame.c (find_frame_sal): Assert sym is not null.
7573
13f6513c
MS
7574 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7575
50412521
MS
7576 * objc-lang.c (selectors_info): Check strchr for null result.
7577
681c238c
MS
7578 * stabsread.c (define_symbol): Guard against bad stabstring input.
7579
6ced1581
PM
75802011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7581
7582 Remove trailing spaces and tabulations from pascal language
7583 support sources.
7584 p-exp.y: Ditto.
7585 p-lang.c: Ditto.
7586 p-lang.h: Ditto.
7587 p-valprint.c: Ditto.
7588
9373cf26
JK
75892011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7590
7591 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7592 than LOW. Comment it.
7593 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7594 HIGHPC not strictly higher than LOWPC.
7595
9a1edae6
PM
75962011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7597
7598 Fix formatting of function declarations returning a pointer in
7599 previous commit.
7600 * varobj.c (varobj_add_child): Ditto.
7601 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7602 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7603
24e9cda0
UW
76042011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7605
7606 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7607 for the "generic" vector ABI used with GCC 4.3 and later.
7608 (ppc64_sysv_abi_return_value): Likewise.
7609
76102011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7611
7612 * infcall.c (call_function_by_hand): Function return value is
7613 always a non_lval, even when using struct_return.
7614
c9174737
PA
76152011-03-15 Pedro Alves <pedro@codesourcery.com>
7616
7617 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7618 (map_display_numbers): New.
7619 (do_delete_display): New.
7620 (undisplay_command): Use map_display_numbers.
7621 (do_enable_disable_display): New.
7622 (enable_disable_display_command): New function.
7623 (enable_display): Delete.
7624 (enable_display_command): New.
7625 (disable_display_command): Reimplement.
7626 (_initialize_printcmd): Adjust "enable display" command to use
7627 `enable_display_command' as callback.
7628
350c6c65
PM
76292011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7630
7631 * NEWS: Add Python breakpoint 'stop' operation.
7632
824446ad
PM
76332011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7634
7635 * NEWS: Delete duplicate entry. Fix typo.
7636
2021ad3a
PM
76372011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7638
7639 Fix ARI warning about function names in first column.
7640 Put prototype declaration on same line as return type.
7641 * objc-exp.y: Ditto.
7642 * p-exp.y: Ditto.
7643 * python/py-stopevent.h: Ditto.
7644 For long function names, split parameters to
7645 allow function name on same line as return type.
7646 * solib-pa64.c: Ditto.
7647 * varobj.c: Ditto.
7648 * varobj.h: Ditto.
7649 For long function declaration, use single line.
7650 * hppa-tdep.h: Ditto.
7651 * inferior.h: Ditto.
7652
7371cf6d
PM
76532011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7654
7655 * python/python.h: Declare gdbpy_should_stop and
7656 gdbpy_breakpoint_has_py_cond.
7657 * python/python.c: Add python.h to includes. Remove python.h from
7658 HAVE_PYTHON definition
7659 (gdbpy_should_stop): New dummy function.
7660 (gdbpy_breakpoint_has_py_cond): New dummy function.
7661 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7662 sub-classing capabilities.
7663 (gdbpy_should_stop): New function.
7664 (gdbpy_breakpoint_has_py_cond): New function.
7665 (local_setattro): New function.
7666 * breakpoint.c (condition_command): Add check for Python 'stop'
7667 operation.
7668 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7669 operation function as part of stop/continue tests.
7670
37b50a69
TT
76712011-03-14 Tom Tromey <tromey@redhat.com>
7672
7673 PR gdb/12576:
7674 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7675 (needs_frame_dwarf_call): Likewise.
7676
eeae04df
PM
76772011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7678
7679 Fix ARI warning about functions without parameters that do not
7680 use (void).
7681 * breakpoint.c (all_tracepoints): Replace () by (void).
7682 * f-exp.y (match_string_literal): Ditto.
7683 (yylex): Ditto.
7684 * m2-exp.y (yylex): Ditto.
7685 * mep-tdep.c (current_me_module): Ditto.
7686 (current_options): Ditto.
7687 (current_cop_data_bus_width): Ditto.
7688 (current_cr_names): Ditto.
7689 (current_cr_is_float): Ditto.
7690 (current_ccr_names): Ditto.
7691 * objc-exp.y (yylex): Ditto.
7692 * p-exp.y (yylex): Ditto.
7693 * remote.c (send_interrupt_sequence): Ditto.
7694 * tracepoint.c (current_trace_status): Ditto.
7695 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7696 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7697
6dc3565d
MS
76982011-03-11 Michael Snyder <msnyder@vmware.com>
7699
1427fe5e
MS
7700 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7701 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7702 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7703 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7704 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7705
60bc018f
MS
7706 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7707 (delete_async_event_handler): Ditto.
7708
f3be5b64
MS
7709 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7710
4c2d5724
MS
7711 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7712
6dc3565d
MS
7713 * top.c (set_verbose): Assert showcmd was found.
7714
4e6ca6d5
MG
77152011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7716
7717 * xtensa-tdep.c (warning_once): Correct style issues.
7718
815a83e4
YQ
77192011-03-11 Yao Qi <yao@codesourcery.com>
7720
7721 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7722
f2eb0bc8
AS
77232011-03-11 Andreas Schwab <schwab@redhat.com>
7724
7725 * common/aclocal.m4: Remove.
7726
b801de47
MG
77272011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7728
7729 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7730 (xtensa_write_register, xtensa_read_register): Likewise.
7731 (xtensa_hextochar): Removed.
7732 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7733
dbab50de
MG
77342011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7735
7736 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7737 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7738 (xtensa_alloc_frame_cache): Add initialization for new fields.
7739 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7740 (warning_once): New function.
7741 (xtensa_insn_kind): New item c0opc_and.
7742 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7743 (call0_track_op): Change arguments. New local variable litbase.
7744 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7745 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7746 in the prologue.
dbab50de 7747 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7748 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7749 Add the variety of updates to handle extended prologues, which now can
7750 conduct dynamic stack adjustments.
7751 (call0_frame_cache): Likewise.
7752 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7753 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7754
b2c04452
MS
77552011-03-10 Michael Snyder <msnyder@vmware.com>
7756
f8f67713
MS
7757 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7758 (cmd_qtframe): Ditto.
7759 (cmd_qtbuffer): Ditto.
7760 (cmd_bigqtbuffer): Ditto.
7761
197f0a60
TT
77622011-03-10 Tom Tromey <tromey@redhat.com>
7763
7764 * tracepoint.c (trace_actions_command): Update.
7765 * thread.c (thread_apply_command): Update.
7766 * reverse.c (delete_bookmark_command): Update.
7767 (bookmarks_info): Update.
7768 * printcmd.c (undisplay_command): Update.
7769 * memattr.c (mem_enable_command): Update.
7770 (mem_disable_command): Update.
7771 (mem_delete_command): Update.
7772 * inferior.c (detach_inferior_command): Update.
7773 (kill_inferior_command): Update.
7774 (remove_inferior_command): Update.
7775 * cli/cli-utils.h (struct get_number_or_range_state): New.
7776 (init_number_or_range): Declare.
7777 (get_number_or_range): Update.
7778 * cli/cli-utils.c (init_number_or_range): New function.
7779 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7780 static variables.
7781 (number_is_in_list): Update.
7782 * breakpoint.h (get_tracepoint_by_number): Update.
7783 * breakpoint.c (map_breakpoint_numbers): Update for change to
7784 get_number_or_range.
7785 (find_location_by_number): Use get_number, not
7786 get_number_or_range.
7787 (trace_pass_set_count): New function.
7788 (trace_pass_command): Update for change to get_number_or_range.
7789 Rework loop logic.
7790 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7791 'state' parameter.
7792
ecec24e6
PM
77932011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7794
7795 * python/py-param.c (add_setshow_generic): Add set/show callback
7796 parameters. Register Python object context.
7797 (get_show_value): New function.
7798 (get_set_value): New function.
7799 (call_doc_function): New function.
7800 (get_doc_string): Move behind get_show_value/get_set_value.
7801
6d6c6b1f
JK
78022011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7803
7804 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7805
68d6df83
MG
78062011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7807
dbab50de 7808 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7809 (xtensa_write_register): Likewise.
7810 (xtensa_hextochar): Add comment and update to match coding conventions.
7811 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7812 (execute_l32e, execute_s32e, execute_code): Update comments.
7813 (xtensa_exception_handler_t): Update to match coding conventions.
7814 (xtensa_insn_kind): Likewise.
7815
85c9d6a6
MS
78162011-03-09 Michael Snyder <msnyder@vmware.com>
7817
7818 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7819
91495617
PA
78202011-03-09 Pedro Alves <pedro@codesourcery.com>
7821
7822 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7823
eb8c0621
TT
78242011-03-09 Tom Tromey <tromey@redhat.com>
7825
7826 * thread.c (restore_selected_frame): Handle frame_level == -1.
7827 (make_cleanup_restore_current_thread): Use
7828 get_selected_frame_if_set.
7829 * frame.h (get_selected_frame_if_set): Declare.
7830 * frame.c (get_selected_frame_if_set): New function.
7831
9f37bbcc
PA
78322011-03-09 Pedro Alves <pedro@codesourcery.com>
7833
7834 * cli/cli-cmds.c (shell_escape): Use lbasename.
7835 * coffread.c (coff_start_symtab): Constify parameter.
7836 (complete_symtab): Constify `name' parameter.
7837 (coff_symtab_read): Constify `filestring' local.
7838 (coff_getfilename): Constify return and `result' local.
7839 Use lbasename.
7840 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7841 * linux-fork.c (info_checkpoints_command): Use lbasename.
7842 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7843 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7844 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7845 * procfs.c (procfs_make_note_section): Use lbasename.
7846 * tui/tui-io.c (printable_part): Constity return and parameter.
7847 Use lbasename.
7848 (print_filename): Constify parameters, and local `s'.
7849 (tui_rl_display_match_list): Constify local `temp'.
7850
f8de3c55
JK
78512011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7852
7853 Revert:
7854 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7855 Fix DWARF-3+ DW_AT_accessibility default assumption.
7856 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7857 cu->header.version >= 3.
7858
d9837b00
YQ
78592011-03-09 Yao Qi <yao@codesourcery.com>
7860
7861 * common/Makefile.in: Remove.
7862 * common/configure: Remove.
7863 * common/configure.ac: Remove.
7864
e637a4f5
YQ
78652011-03-09 Yao Qi <yao@codesourcery.com>
7866
7867 Revert:
7868 2011-02-11 Yao Qi <yao@codesourcery.com>
7869
7870 * common/Makefile.in: Add copyright header.
7871
7872 2011-02-11 Yao Qi <yao@codesourcery.com>
7873
7874 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7875 libcommon.a.
7876 * configure.ac: Add common to sub dir.
7877 * configure: Regenerate.
7878
f976a05d
MG
78792011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7880
7881 * xtensa-tdep.c (call0_ret): New function.
7882 (xtensa_skip_prologue): Speed up analysis.
7883
57041825
MG
78842011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7885
7886 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7887 while executing MI command -data-list-changed-registers.
7888
08b9c608
MG
78892011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7890
7891 * xtensa-tdep.c (xtensa_read_register): New function.
7892 (xtensa_write_register): New function.
7893 (xtensa_find_register_by_name): New function.
7894 (xtensa_windowed_frame_cache): Update comments in type description.
7895 (xtensa_frame_cache): Likewise.
7896 (xtensa_window_interrupt_insn): New function.
7897 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7898 (xtensa_insn_kind): Add new instructions.
7899 (rwx_special_register): New function.
7900 (call0_classify_opcode): Add new instructions to the analysis.
7901 (a0_saved, a7_saved, a11_saved): New variables.
7902 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7903 (execute_l32e): New function.
7904 (execute_s32e): New function.
7905 (xtensa_exception_handler_t): New type.
7906 (execute_code): New function.
7907 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7908 analysis for Xtensa Window Exception handlers.
7909
4d1acb11
MG
79102011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7911
98689b25
MG
7912 * xtensa-tdep.c (TX_PS): New.
7913 (windowing_enabled): Update to count for Call0 ABI.
7914 (xtensa_hextochar): New.
7915 (xtensa_init_reggroups): Make algorithm generic.
7916 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7917
79182011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7919
7920 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7921
d3f323f3
MS
79222011-03-08 Michael Snyder <msnyder@vmware.com>
7923
3dcabaa8
MS
7924 * i386-tdep.c (i386_follow_jump): Check return value of
7925 target_read_memory.
7926 (i386_analyze_struct_return): Ditto.
7927 (i386_skip_probe): Ditto.
7928 (i386_match_insn): Ditto.
7929 (i386_skip_noop): Ditto.
7930 (i386_analyze_frame_setup): Ditto.
7931 (i386_analyze_register_saves): Ditto.
7932 (i386_skip_prologue): Ditto.
7933 (i386_skip_main_prologue): Ditto.
7934
13b3fd9b
MS
7935 * target.c (read_whatever_is_readable): Fix memory leak.
7936
d3f323f3
MS
7937 * i386-tdep.c (i386_process_record): Document fall through.
7938
421d5c74
JK
79392011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7940
7941 Fix DWARF-3+ DW_AT_accessibility default assumption.
7942 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7943 cu->header.version >= 3.
7944
63154eca
PA
79452011-03-08 Pedro Alves <pedro@codesourcery.com>
7946
7947 * remote.c (remote_check_symbols): Skip if the target has no
7948 execution.
7949
f1a507a1
JB
79502011-03-08 Joel Brobecker <brobecker@adacore.com>
7951
7952 * target.c (read_whatever_is_readable): Reformat comment,
7953 with a minor typo fix. Minor reformatting of the code.
7954
36073a92
YQ
79552011-03-08 Yao Qi <yao@codesourcery.com>
7956
7957 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7958 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7959 Use cached result instead of calling displaced_in_arm_mode again.
7960 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7961 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7962 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7963 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7964 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7965 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7966 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7967 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7968 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7969 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7970 (arm_catch_kernel_helper_return): Likewise.
7971 * gdb/arm-tdep.h : Update function declarations.
7972
d3f323f3 79732011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 7974
e0e40094
MS
7975 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7976
0b2381f5
MS
7977 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7978
0350914a
MS
7979 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7980
69feea6f
MS
7981 * elfread.c (elf_symtab_read): Stop memory leak.
7982
e6040cbd
MS
7983 * main.c (captured_main): Fix memory leak.
7984
052874e8
AS
79852011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7986
7987 * ada-lang.c (compare_names): Call is_name_suffix with string1
7988 instead of string2.
7989
b11896a5
TT
79902011-03-07 Tom Tromey <tromey@redhat.com>
7991
7992 * xcoffread.c (xcoff_sym_fns): Update.
7993 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7994 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7995 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7996 (symbol_file_add_with_addrs_or_offsets): Likewise.
7997 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7998 * somread.c (som_sym_fns): Update.
7999 * psymtab.h (require_partial_symbols): Declare.
8000 * psymtab.c (require_partial_symbols): New function.
8001 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8002 (ALL_OBJFILE_PSYMTABS): Undef.
8003 (ALL_PSYMTABS): Move from psympriv.h.
8004 (lookup_partial_symtab, find_pc_sect_psymtab)
8005 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8006 (find_last_source_symtab_from_partial)
8007 (forget_cached_source_info_partial)
8008 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8009 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8010 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8011 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8012 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8013 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8014 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8015 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8016 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8017 psymtabs.
8018 * mipsread.c (ecoff_sym_fns): Update.
8019 * machoread.c (macho_sym_fns): Update.
8020 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8021 (read_psyms): New function.
8022 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8023 (elf_sym_fns_lazy_psyms): New global.
8024 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8025 dwarf2_build_psymtabs.
8026 * dbxread.c (aout_sym_fns): Update.
8027 * coffread.c (coff_sym_fns): Update.
8028
fda326dd
TT
80292011-03-07 Tom Tromey <tromey@redhat.com>
8030
8031 * infrun.c (print_exited_reason): Include inferior id and pid in
8032 message.
8033
aeaec162
TT
80342011-03-07 Tom Tromey <tromey@redhat.com>
8035
8036 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8037 parameter.
8038 (target_has_execution_1): Update.
8039 (target_has_execution_current): Declare.
8040 (target_has_execution): Call target_has_execution_current.
8041 (default_child_has_execution): Update.
8042 * target.c (default_child_has_execution): Add 'the_ptid'
8043 parameter.
8044 (target_has_execution_1): Likewise.
8045 (target_has_execution_current): New function.
8046 (add_target): Update.
8047 (init_dummy_target): Update.
8048 * remote-m32r-sdi.c (m32r_has_execution): New function.
8049 (init_m32r_ops): Use it.
8050 * record.c (record_core_has_execution): Now static. Add
8051 'the_ptid' parameter.
8052 * inferior.c (have_live_inferiors): Don't save current thread.
8053 Use target_has_execution_1.
8054
08e14083
YQ
80552011-03-07 Yao Qi <yao@codesourcery.com>
8056
8057 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8058
c05d19c5
JB
80592011-03-07 Joel Brobecker <brobecker@adacore.com>
8060
8061 * elfread.c (elf_symtab_read): Minor reformatting.
8062
3e6ef9e4
JB
80632011-03-07 Joel Brobecker <brobecker@adacore.com>
8064
8065 * objc-lang.c (selectors_info): Minor reformatting.
8066
dbb8534f
JB
80672011-03-07 Joel Brobecker <brobecker@adacore.com>
8068
8069 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8070
dd70cc93
JB
80712011-03-07 Joel Brobecker <brobecker@adacore.com>
8072 Michael Snyder <msnyder@vmware.com>
8073
8074 * ada-valprint.c (ada_val_print_array): Move the declaration of
8075 "byte_order" and "elttype" inside the block where these variables
8076 are actually used. Remove some special handling for the case
8077 where "elttype" and "eltlen" are null. Replace by a comment
8078 and a couple of assertion checks.
8079
b27cf2b3
MS
80802011-03-05 Michael Snyder <msnyder@vmware.com>
8081
8082 * source.c (add_path): Replace semicolon at end of block.
8083 * dwarf2expr.c (execute_stack_op): Ditto.
8084
5387a0c6
MF
80852011-03-05 Mike Frysinger <vapier@gentoo.org>
8086
8087 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8088 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8089 (bfin-*-*): Likewise.
8090
e3aa49af
MS
80912011-03-05 Michael Snyder <msnyder@vmware.com>
8092
82ae4854
MS
8093 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8094 * mdebugread.c (parse_symbol): Ditto.
8095 * parse.c (parse_exp_in_context): Ditto.
8096 * source.c (add_path): Ditto.
8097 * utils.c (gnu_debuglink_crc32): Ditto.
8098 * varobj.c (variable_language): Ditto.
8099
e3aa49af
MS
8100 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8101
154f592e
MS
81022011-03-04 Michael Snyder <msnyder@vmware.com>
8103
da3ecdc6
MS
8104 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8105
9cc89665
MS
8106 * symfile.c (simple_overlay_update): Check for null return value
8107 from lookup_minimal_symbol.
8108
154f592e
MS
8109 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8110
63ffa6ee
TJB
81112011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8112
8113 * eval.c (parse_and_eval_address_1): Remove function.
8114 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8115 instead of parse_and_eval_address_1.
8116 * value.h (parse_and_eval_address_1): Remove prototype.
8117
a17d146e
MS
81182011-03-04 Michael Snyder <msnyder@vmware.com>
8119
8120 * remote.c (putpkt_binary): Document that case stmt falls through.
8121
1a6a67de
TJB
81222011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8123
8124 * breakpointc (print_it_typical): Move NULL check from here...
8125 (print_bp_stop_message): ... to here.
8126
488919c4
MS
81272011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8128
8129 * breakpoint.c (enable_command): Use break instead of continue,
8130 and fill in a missing break.
8131 (disable_command): Ditto.
8132
1e182ce8
UW
81332011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8134
8135 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8136 (terminal_save_ours): Remove misleading comment.
8137 (inflow_inferior_data_cleanup): Free ttystate.
8138 (inflow_inferior_exit): Likewise.
8139 (copy_terminal_info): Copy ttystate.
8140
8141 * serial.c (serial_copy_tty_state): New function.
8142 * serial.h (serial_copy_tty_state): Add prototype.
8143 (struct serial_ops): Add copy_tty_state callback.
8144 * ser-base.c (ser_base_copy_tty_state): New function.
8145 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8146 * ser-go32.c (dos_copy_tty_state): New function.
8147 (dos_ops): Install copy_tty_state callback.
8148 * ser-mingw.c (_initialize_ser_windows): Likewise.
8149 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8150 * ser-unix.c (hardwire_copy_tty_state): New function.
8151 (_initialize_ser_hardwire): Install it.
8152
b2c5f112
MS
81532011-03-04 Michael Snyder <msnyder@vmware.com>
8154
2abae994
MS
8155 * breakpoint.c (create_breakpoint): Add missing break statement.
8156
7f5936f9
MS
8157 Reverting this patch:
8158 * infcall.c (call_function_by_hand): Add break statements for lint.
8159
b2c5f112
MS
8160 Reverting this patch:
8161 * cli/cli-script.c (script_from_file): Add break for lint.
8162
42b1321c
MS
81632011-03-04 Michael Snyder <msnyder@vmware.com>
8164
8165 * solib.c (reload_shared_libraries_1): Close memory leak.
8166
3e2a0cee
TT
81672011-03-03 Tom Tromey <tromey@redhat.com>
8168
8169 PR gdb/12538:
8170 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8171 DW_STRING is NULL.
8172
58397cb7
MS
81732011-03-03 Michael Snyder <msnyder@vmware.com>
8174
2e3fd767
MS
8175 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8176 fields of struct 'st' to zero.
8177
58397cb7
MS
8178 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8179 sal.pspace before calling set_current_source_symtab_and_line.
8180
ced54c8f
YQ
81812011-03-03 Yao Qi <yao@codesourcery.com>
8182
8183 * Makefile.in (configure-common): Remove. Let Makefile
8184 in dir common to rebuild itself.
8185 (common/Makefile): Likewise.
8186
3351ea09
JB
81872011-03-03 Joel Brobecker <brobecker@adacore.com>
8188
8189 * utils.c (parse_escape): Add i18n markup in error message.
8190
bf9f652a
YQ
81912011-03-03 Yao Qi <yao@codesourcery.com>
8192
8193 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8194 ARM_PC_REGNUM.
8195 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8196 (displaced_write_reg, displaced_read_reg): Likewise.
8197 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8198 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8199 (cleanup_branch): Replace magic number 14 and 15 with
8200 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8201
d42de051
MS
82022011-03-02 Michael Snyder <msnyder@vmware.com>
8203
240f9570
MS
8204 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8205
10dd8b54
MS
8206 * cli/cli-script.c (script_from_file): Add break for lint.
8207
b98bd911
MS
8208 * mdebugread.c (parse_partial_symbols): Fix indent.
8209
3494b66d
MS
8210 * target-descriptions.c (tdesc_gdb_type): No need to call
8211 xstrdup, callee saves a copy.
8212
daac021a
MS
8213 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8214
c38d16a7
MS
8215 * infcall.c (call_function_by_hand): Add break statements for lint.
8216
905b671b
MS
8217 * utils.c (parse_escape): Escape the escape char.
8218
f2eb0bc8 8219 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8220 PyList_Append fails.
8221 (gdbpy_inferiors): Error out if build_inferior_list fails.
8222
8c6a60d1
MS
8223 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8224 a function call.
8225
d42de051
MS
8226 * record.c (record_restore): Move printf to before error return.
8227
4db71c0b
YQ
82282011-03-02 Yao Qi <yao@codesourcery.com>
8229
8230 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8231 is_thumb and insn_size.
8232 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8233 on both ARM and Thumb mode.
8234 (arm_process_displaced_insn): Set is_thumb and insn_size.
8235 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8236 (arm_displaced_step_fixup): Likewise.
8237
a9dc8dcc
MS
82382011-03-01 Michael Snyder <msnyder@vmware.com>
8239
53624a93
MS
8240 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8241
77766669
MS
8242 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8243
62d5b8da
MS
8244 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8245
5e9e105f
MS
8246 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8247
dc19db01
MS
8248 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8249 with xmalloc.
8250
5ce64950
MS
8251 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8252 which shadows function parameter.
8253
a0aa2878
MS
8254 * tracepoint.c (create_tsv_from_upload): Superfluous call
8255 to xstrdup. Callee already calls xstrdup.
8256
e325fb69
MS
8257 * linespec.c (decode_line_1): Remove unnecessary null check.
8258
21cbba77
MS
8259 * tracepoint.c (scope_info): Fix mem leak, remove underused
8260 variable.
8261
63360adc
MS
8262 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8263 superfluous null check.
8264
18ea20ac 8265 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8266 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8267
d014929c
MS
8268 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8269
6e9130cf
MS
8270 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8271 be null.
8272
5f01dbc0
MS
8273 * linespec.c (decode_line_1): Check for null before dereference.
8274
d684ab85
MS
8275 * reverse.c (record_restore): Move null-check to before pointer
8276 dereference.
8277
bfffb7e3
MS
8278 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8279
a9dc8dcc
MS
8280 * objc-lang.c (selectors_info): Add explanitory comment.
8281 (classes_info): Ditto.
8282
478fd957
UW
82832011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8284
8285 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8286 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8287 versions of the trampoline. Handle Thumb vs. ARM addresses.
8288 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8289 (arm_linux_init_abi): Install it.
8290 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8291 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8292
0480cefa
MS
82932011-02-28 Michael Snyder <msnyder@vmware.com>
8294
ac50ab3b
MS
8295 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8296 a little bigger, to avoid possibility of an overflow.
8297
f63fbe86
MS
8298 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8299 buffers a little bigger, to avoid possibility of an overflow.
8300
9e91a352
MS
8301 * coffread.c (coff_getfilename): Add check to avoid overflow.
8302
f2eb0bc8 8303 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8304 avoid overflow.
8305 (classes_info): Error out on too long REGEXP.
8306
098ab512
MS
8307 * infrun.c (handle_inferior_event): Remove unused function call.
8308
bcbd1de9
MS
8309 * fork-child.c (fork_inferior): Remove ifdef'd code and
8310 unused variable.
8311
2e456570
MS
8312 * linux-thread-db.c (attach_thread): Discard unused value.
8313
14571dad
MS
8314 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8315
a9cbf802
MS
8316 * remote.c (remote_get_noisy_reply): Discard unused value.
8317 (remote_vcont_resume): Ditto.
8318 (remote_stop_ns): Ditto.
8319
5715d26e
MS
8320 * linespec.c (decode_objc): Delete unused variable.
8321
4a9bca80
MS
8322 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8323
f47fb265
MS
8324 * dwarf2read.c (add_partial_symbol): Discard unused values.
8325 (read_base_type): Delete unused variable.
8326
e81cff30
MS
8327 * dbxread.c (read_dbx_symtab): Discard unused value.
8328
262acaeb
MS
8329 * eval.c (evaluate_subexp_standard): Delete unused variable,
8330 and discard unused values.
8331
df983543
MS
8332 * infcmd.c (_initialize_infcmd): Discard unused values.
8333
89acf84d
MS
8334 * stabsread.c (rs6000_builtin_type): Missing break statement.
8335
ab8b8aca
MS
8336 * dbxread.c (process_one_symbol): Discard unused value.
8337
6b4511ab
MS
8338 * coffread.c (coff_end_symtab): Delete unused variable.
8339
e8e80198
MS
8340 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8341 (dwarf2_add_typedef): Delete unused variable.
8342 (read_namespace): Ditto.
8343 (dwarf_decode_macros): Ditto.
8344
976aa66e
MS
8345 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8346
5b92b49f
MS
8347 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8348
91e8df85
MS
8349 * p-valprint.c (pascal_val_print): Discard unused value.
8350
899500d6
MS
8351 * utils.c (nquery): Call va_end before return;
8352 (yquery): Ditto.
8353 (query): Ditto.
8354
0480cefa
MS
8355 * proc-service.c (ps_plog): Call va_end before return.
8356
fb6a3ed3
TT
83572011-02-28 Tom Tromey <tromey@redhat.com>
8358
8359 * python/python.c (gdbpy_value_cst): New global.
8360 (_initialize_python): Initialize it.
8361 * python/python-internal.h (gdbpy_value_cst): Declare.
8362 * python/py-value.c (convert_value_from_python): Use
8363 gdbpy_value_cst.
8364
c05202a1
MS
83652011-02-28 Michael Snyder <msnyder@vmware.com>
8366
e463f587
MS
8367 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8368
c38eea1a
MS
8369 * breakpoint.c (catch_syscall_completer): Free malloced list.
8370
3ef09ab5
MS
8371 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8372
8f9a01ee
MS
8373 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8374 (lval_func_check_synthetic_pointer): Ditto.
8375 (lval_func_free_closure): Fix use-after-free.
c05202a1 8376
477d0d57
TT
83772011-02-28 Tom Tromey <tromey@redhat.com>
8378
8379 * psymtab.c (expand_partial_symbol_tables): Use
8380 ALL_OBJFILE_PSYMTABS.
8381
20937029
JK
83822011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8383
8384 * objc-lang.c (selectors_info): Error on too long REGEXP.
8385
907b7f4f
MS
83862011-02-28 Michael Snyder <msnyder@vmware.com>
8387
92e96192
MS
8388 * python/py-param.c (set_parameter_value): Add missing
8389 break statement.
8390
907b7f4f
MS
8391 * linux-record.c (record_linux_system_call): Add missing
8392 break statement.
8393
12c5a436
UW
83942011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8395
8396 * breakpoint.c (print_one_breakpoint_location): Remove unused
8397 argument PRINT_ADDRESS_BITS. Update callers.
8398 (print_one_breakpoint): Likewise.
8399
170b53b2
UW
84002011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8401
8402 * breakpoint.c (wrap_indent_at_field): New function.
8403 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8404 Allocate ui_stream locally instead of using STB argument.
8405 (print_one_breakpoint_location): Update call.
8406 * ui-out.c (ui_out_query_field): New function.
8407 * ui-out.h (ui_out_query_field): Add prototype.
8408
8ab1f94d
JB
84092011-02-28 Joel Brobecker <brobecker@adacore.com>
8410
8411 From Michael Snyder <msnyder@vmware.com>
8412 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8413
7d488639
MS
84142011-02-27 Michael Snyder <msnyder@vmware.com>
8415
ae179fba
MS
8416 * objc-lang.c (selectors_info): Prevent string overrun.
8417
086dbf66
MS
8418 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8419 error in strncpy.
8420
f2eb0bc8 8421 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8422 outer scope.
8423
7d488639
MS
8424 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8425 param with a local variable of the same name.
8426
3bd0f5ef
MS
84272011-02-27 Michael Snyder <msnyder@vmware.com>
8428
8429 * value.c (value_from_history_ref): New function.
8430 * value.h (value_from_history_ref): Export.
8431 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8432 to parse value history references.
8433 * cli/cli-utils.h (get_number_trailer): Update comment.
8434
84352011-02-27 Michael Snyder <msnyder@vmware.com>
8436
8437 * inferior.c (detach_inferior_command): Use get_number_or_range.
8438 (kill_inferior_command): Ditto.
8439 (remove_inferior_command): Ditto.
8440 (initialize_inferiors): Make command names plural.
8441 Update help strings.
8442
766062f6
MS
84432011-02-27 Michael Snyder <msnyder@vmware.com>
8444
8445 * darwin-nat-info.c: Fix comment typo.
8446 * dwarf2expr.h: Ditto.
8447 * fbsd-nat.c: Ditto.
8448 * fbsd-nat.h: Ditto.
8449 * frame-unwind.h: Ditto.
8450 * frame.h: Ditto.
8451 * hppa-hpux-tdep.c: Ditto.
8452 * i386-linux-nat.c: Ditto.
8453 * linux-nat.c: Ditto.
8454 * nbsd-nat.c: Ditto.
8455 * nbsd-nat.h: Ditto.
8456 * ppc-linux-tdep.c: Ditto.
8457 * serial.c: Ditto.
8458 * ui-file.h: Ditto.
8459 * tui/tui-winsource.c: Ditto.
8460
f2c4ead5
MS
84612011-02-26 Michael Snyder <msnyder@vmware.com>
8462
86b887df
MS
8463 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8464
66fd3b1e
MS
8465 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8466
8c814cdd
MS
8467 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8468 with a local variable of the same name.
8469
6d5e094a 8470 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8471 param with a local variable of the same name.
6d5e094a 8472 (i387_supply_xsave): Ditto.
e5b3d7d6 8473
5eee517d
MS
8474 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8475 that it does not shadow a function parameter.
8476
8fbf6b93
MS
8477 * i386-nat.c (i386_length_and_rw_bits): Document that case
8478 statement is meant to fall through.
8479
cb969d61
MS
8480 * expprint.c (dump_subexp_body_standard): Document that case
8481 statement is meant to fall through.
8482
f2c4ead5
MS
8483 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8484 dead if statement. Condition can't be false.
8485
b021a221
MS
84862011-02-25 Michael Snyder <msnyder@vmware.com>
8487
8488 * arm-tdep.c: Fix typos in comments.
8489 * bsd-uthread.c: Ditto.
8490 * completer.c: Ditto.
8491 * corelow.c: Ditto.
8492 * cp-namespace.c: Ditto.
8493 * cp-support.c: Ditto.
8494 * cris-tdep.c: Ditto.
8495 * dbxread.c: Ditto.
8496 * dwarf2read.c: Ditto.
8497 * frame.h: Ditto.
8498 * gdbtypes.h: Ditto.
8499 * inferior.h: Ditto.
8500 * mdebugread.c: Ditto.
8501 * mips-tdep.c: Ditto.
8502 * ppc-linux-nat.c: Ditto.
8503 * ppc-linux-tdep.c: Ditto.
8504 * printcmd.c: Ditto.
8505 * sol-thread.c: Ditto.
8506 * solib-frv.c: Ditto.
8507 * solist.h: Ditto.
8508 * sparc64-tdep.c: Ditto.
8509 * spu-tdep.c: Ditto.
8510 * stabsread.c: Ditto.
8511 * symfile.c: Ditto.
8512 * valops.c: Ditto.
8513 * varobj.c: Ditto.
8514 * vax-nat.c: Ditto.
8515 * python/py-block.c: Ditto.
8516 * python/py-symbol.c: Ditto.
8517 * python/py-symtab.c: Ditto.
8518 * python/py-value.c: Ditto.
8519 * tui/tui-win.c: Ditto.
8520
c82c0b55
MS
85212011-02-25 Michael Snyder <msnyder@vmware.com>
8522
8523 * inferior.c (print_inferior): Accept a string instead of an int
8524 for requested_inferiors, and use get_number_or_range to parse it.
8525 (info_inferiors_command): Pass args string to print_inferior.
8526 (initialize_inferiors): Change help string for info inferiors.
8527 * inferior.h (print_inferior): Export prototype change.
8528
ee00cd23
TT
85292011-02-25 Tom Tromey <tromey@redhat.com>
8530
8531 * common/ax.def (invalid2): Set to 0x31.
8532
0502ed8c
JK
85332011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8534
8535 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8536 L and plongest.
8537 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8538 use L and plongest.
8539 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8540
2c9de912
MS
85412011-02-24 Michael Snyder <msnyder@vmware.com>
8542
8543 * Makefile.in (clean): Make clean should remove generated files
8544 observer.h and observer.inc.
8545
a04b0428
JB
85462011-02-24 Joel Brobecker <brobecker@adacore.com>
8547
8548 Revert the following patch (not approved yet):
8549 2011-02-21 Hui Zhu <teawater@gmail.com>
8550 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8551 * ax-gdb.c (gen_printf_expr_callback): New function.
8552 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8553 * ax-general.c (ax_memcpy): New function.
8554 (ax_print): Handle "printf".
8555 (ax_reqs): Ditto.
8556 * ax.h (ax_memcpy): Forward declare.
8557 * common/ax.def (invalid2): Removed.
8558 (printf): New entry.
8559 * printcmd.c (printcmd.h): New include.
8560 (string_printf): New function.
8561 (ui_printf): Removed.
8562 (printf_command): Remove static. Call string_printf.
8563 (eval_command): Call string_printf.
8564 * printcmd.h: New file.
8565 * tracepoint.c (validate_actionline,
8566 encode_actions_1): handle printf_command.
8567
2b52013f
TT
85682011-02-23 Tom Tromey <tromey@redhat.com>
8569
8570 * ax-general.c (ax_pick): Add missing newline.
8571
e5a67952
MS
85722011-02-23 Michael Snyder <msnyder@vmware.com>
8573
8574 * breakpoint.c (breakpoint_1): Change first argument from an int
8575 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8576 breakpoints rather than just one. Use new function
e5a67952
MS
8577 'number_is_in_list' to implement.
8578 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8579 (watchpoints_info): Ditto.
8580 (tracepoints_info): Ditto.
8581 (maintenance_info_breakpoints): Ditto.
8582 (_initialize_breakpoint): Update help strings to reflect the fact
8583 that these functions can now take more than one argument.
8584 * cli/cli-utils.c (number_is_in_list): New function.
8585 * cli/cli-utils.h (number_is_in_list): Export.
8586
85872011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8588
8589 * memattr.c (mem_enable_command): Use get_number_or_range.
8590 (mem_disable_command): Ditto.
8591 (mem_delete_command): Ditto.
8592 (_initialize_mem): Tweak usage message to reflect multiple
8593 arguments.
8594
6e6fbe60
DE
85952011-02-22 Doug Evans <dje@google.com>
8596
8597 Add gdb.lookup_global_symbol python function.
8598 * NEWS: Add entry.
8599 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8600 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8601 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8602
79b97fa8
TT
86032011-02-22 Tom Tromey <tromey@redhat.com>
8604
8605 * language.c (language_class_name_from_physname): Rename
8606 'curr_language' argument to 'lang'; use in body.
8607
298f437a
MS
86082011-02-22 Michael Snyder <msnyder@vmware.com>
8609
8610 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8611
b7ea3126
PA
86122011-02-22 Pedro Alves <pedro@codesourcery.com>
8613
8614 * frame-unwind.h: Fix comment to mention the this frame, not the
8615 next.
8616
58ee6d60
TT
86172011-02-22 Tom Tromey <tromey@redhat.com>
8618
8619 * symfile.c (auto_solib_limit): Remove.
8620 * symfile.h (auto_solib_limit): Remove.
8621
36238dbc
JB
86222011-02-22 Joel Brobecker <brobecker@adacore.com>
8623
8624 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8625
aea5b279
MS
86262011-02-21 Michael Snyder <msnyder@vmware.com>
8627
8628 * gdbthread.h (print_thread_info): Change prototype.
8629 * thread.c (print_thread_info): Accept char* instead of int for
8630 requested_threads argument. Use new function number_is_in_list
8631 to determine which threads to list.
8632 (info_threads_command): Pass char* to print_thread_info.
8633 * cli/cli-utils.c (number_is_in_list): New function.
8634 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8635 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8636 print_thread_info.
8637 (print_one_inferior): Ditto.
8638 (mi_cmd_list_thread_groups): Ditto.
8639
8caa75ee
JK
86402011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8641
8642 * common/Makefile.in (CFLAGS): New.
8643 (COMPILE): Add $(CFLAGS).
8644
ea666128
TT
86452011-02-21 Tom Tromey <tromey@redhat.com>
8646
8647 * breakpoint.c (catch_syscall_command_1): Fix typo.
8648
e9cafbcc
TT
86492011-02-21 Tom Tromey <tromey@redhat.com>
8650
8651 * reverse.c: Include cli-utils.h.
8652 * printcmd.c: Include cli-utils.h.
8653 (string_printf): Use skip_spaces.
8654 * cli/cli-utils.h: New file.
8655 * cli/cli-utils.c: New file.
8656 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8657 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8658 * breakpoint.h (get_number, get_number_or_range): Move to
8659 cli-utils.h.
8660 * breakpoint.c: Include cli-utils.h.
8661 (get_number_trailer, get_number, get_number_or_range)
8662 (ep_skip_leading_whitespace): Move to cli-utils.c.
8663 (create_breakpoint_sal, find_condition_and_thread)
8664 (decode_static_tracepoint_spec, watch_command_1)
8665 (watch_maybe_just_location, ep_parse_optional_if_clause)
8666 (catch_fork_command_1, catch_exec_command_1)
8667 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8668 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8669 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8670 (HFILES_NO_SRCDIR): Add cli-utils.h.
8671 (cli-utils.o): New target.
8672
f67fd822
PM
86732011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8674
8675 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8676 before calling discard_all_inferiors.
8677
c9def01d
UW
86782011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8679
8680 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8681 (struct builtin_opencl_type): Remove.
8682 (builtin_opencl_type): Change return type to "struct type **".
8683 (lookup_opencl_vector_type): Update caller.
8684 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8685 (build_opencl_types): Install plain array of "struct type *"
8686 instead of "struct builtin_opencl_type".
8687
e3039479
UW
86882011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8689 Ulrich Weigand <uweigand@de.ibm.com>
8690
8691 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8692 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8693 (struct arm_linux_hwbp_cap): New type.
8694 (arm_linux_get_hwbp_cap): New function.
8695 (arm_linux_get_hw_breakpoint_count): Likewise.
8696 (arm_linux_get_hw_watchpoint_count): Likewise.
8697 (arm_linux_can_use_hw_breakpoint): Likewise.
8698 (arm_hwbp_type): New type.
8699 (arm_hwbp_control_t): Likewise.
8700 (struct arm_linux_hw_breakpoint): Likewise.
8701 (struct arm_linux_thread_points): Likewise.
8702 (arm_threads): New global variable.
8703 (arm_linux_find_breakpoints_by_tid): New function.
8704 (arm_hwbp_control_initialize): Likewise.
8705 (arm_hwbp_control_is_enabled): Likewise.
8706 (arm_hwbp_control_disable): Likewise.
8707 (arm_linux_hw_breakpoint_initialize): Likewise.
8708 (arm_linux_get_hwbp_type): Likewise.
8709 (arm_linux_hw_watchpoint_initialize): Likewise.
8710 (arm_linux_hw_breakpoint_equal): Likewise.
8711 (arm_linux_insert_hw_breakpoint1): Likewise.
8712 (arm_linux_remove_hw_breakpoint1): Likewise.
8713 (arm_linux_insert_hw_breakpoint): Likewise.
8714 (arm_linux_remove_hw_breakpoint): Likewise.
8715 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8716 (arm_linux_insert_watchpoint): Likewise.
8717 (arm_linux_remove_watchpoint): Likewise.
8718 (arm_linux_stopped_data_address): Likewise.
8719 (arm_linux_stopped_by_watchpoint): Likewise.
8720 (arm_linux_watchpoint_addr_within_range): Likewise.
8721 (arm_linux_new_thread): Likewise.
8722 (arm_linux_thread_exit): Likewise.
8723 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8724 related target callbacks. Register arm_linux_new_thread and
8725 arm_linux_thread_exit.
8726 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8727 * arm-tdep.c (arm_pc_is_thumb): Make global.
8728 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8729
b5db5dfc
UW
87302011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8731
8732 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8733 per-frame locations while within a function epilogue.
8734
e25b2cfa
PM
87352011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8736
8737 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8738 to GNU coding standards.
8739
4af53f97
PM
87402011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8741
8742 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8743 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8744 (ser_windows_close): Only call CancelIo if function exists.
8745 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8746 to check for existence of CancelIo function in kernel32 DLL.
8747
d0e92d82
HZ
87482011-02-21 Hui Zhu <teawater@gmail.com>
8749
8750 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8751 * ax-gdb.c (gen_printf_expr_callback): New function.
8752 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8753 * ax-general.c (ax_memcpy): New function.
8754 (ax_print): Handle "printf".
8755 (ax_reqs): Ditto.
8756 * ax.h (ax_memcpy): Forward declare.
8757 * common/ax.def (invalid2): Removed.
8758 (printf): New entry.
8759 * printcmd.c (printcmd.h): New include.
8760 (string_printf): New function.
8761 (ui_printf): Removed.
8762 (printf_command): Remove static. Call string_printf.
8763 (eval_command): Call string_printf.
8764 * printcmd.h: New file.
8765 * tracepoint.c (validate_actionline,
8766 encode_actions_1): handle printf_command.
8767
7d357efd
MS
87682011-02-19 Michael Snyder <msnyder@vmware.com>
8769
8770 * reverse.c (delete_one_bookmark): Argument is now bookmark
8771 id rather than pointer to bookmark struct.
8772 (delete_bookmark_command): Use get_number_or_range.
8773 (goto_bookmark_command): Parse with get_number instead of strtoul.
8774 (bookmark_1): New function. Print info for one bookmark.
8775 (bookmarks_info): Use get_number_or_range and bookmark_1.
8776
7a45ebd7
MS
87772011-02-18 Michael Snyder <msnyder@vmware.com>
8778
f2eb0bc8 8779 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8780 get_number_or_range.
65ebfb52 8781 (thread_apply_command): Ditto.
7a45ebd7 8782
94d5e490
TT
87832011-02-18 Tom Tromey <tromey@redhat.com>
8784
8785 * common/ax.def: New file.
8786 * ax.h (enum agent_op): Use ax.def.
8787 * ax-general.c (aop_map): Use ax.def.
8788
c7f96d2b
TT
87892011-02-18 Tom Tromey <tromey@redhat.com>
8790
8791 * ax-general.c (aop_map): Add pick and rot.
8792 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8793 <DW_OP_rot>: Implement.
8794 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8795 (ax_pick): Declare.
8796 * ax-general.c (ax_pick): New function.
8797
66694b75
TT
87982011-02-18 Tom Tromey <tromey@redhat.com>
8799
8800 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8801
eeaafae2
JK
88022011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8803 Tom Tromey <tromey@redhat.com>
8804
8805 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8806 make_symbol_overload_list_block with NULL BLOCK.
8807 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8808
3c3fe74c
PA
88092011-02-18 Pedro Alves <pedro@codesourcery.com>
8810
8811 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8812 * breakpoint.h (get_number_or_range): Declare.
8813 * printcmd.c (ALL_DISPLAYS): Declare.
8814 (delete_display): Reimplement taking a display pointer.
8815 (undisplay_command): Accept a range of displays to delete, using
8816 get_number_or_range.
8817
13163d80
PM
88182011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8819
8820 * c-valprint.c (c_val_print): Add embedded_offset to address
8821 for arrays of unspecified length.
8822 * p-valprint.c (pascal_val_print): Likewise.
8823
b434a28f
YQ
88242011-02-18 Yao Qi <yao@codesourcery.com>
8825
8826 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8827 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8828 (thumb_process_displaced_insn): New.
8829 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8830 call to arm_process_displaced_insn.
8831 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8832
9f6f94ff
TT
88332011-02-17 Tom Tromey <tromey@redhat.com>
8834
8835 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8836 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8837 compile_dwarf_to_ax. No longer static. Call
8838 dwarf2_compile_cfa_to_ax.
8839 (locexpr_tracepoint_var_ref): Update.
8840 (loclist_tracepoint_var_ref): Update.
8841 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8842 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8843 argument; add 'gdbarch' and 'pc'.
8844 (dwarf2_compile_cfa_to_ax): New function.
8845 (dwarf2_frame_cache): Update.
8846
e67ad678
JB
88472011-02-17 Joel Brobecker <brobecker@adacore.com>
8848
8849 * ada-lang.c (ada_type_of_array): Fix the size of the array
8850 in the case of an unconstrained packed array.
8851
946ebb0d
YQ
88522011-02-17 Yao Qi <yao@codesourcery.com>
8853
8854 * common/Makefile.in: Add more targets for make.
8855
1ba1b353
TT
88562011-02-16 Tom Tromey <tromey@redhat.com>
8857
8858 * dwarf2loc.c (unimplemented): Fix typo.
8859
b1bfef65
TT
88602011-02-16 Tom Tromey <tromey@redhat.com>
8861
8862 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8863 (compile_dwarf_to_ax) <default>: Use unimplemented.
8864 <DW_OP_deref>: Update.
8865 (disassemble_dwarf_expression): Update.
8866 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8867 (decode_locdesc): Update.
8868 * dwarf2expr.h (dwarf_stack_op_name): Update.
8869
5f1e6f19
TT
88702011-02-16 Tom Tromey <tromey@redhat.com>
8871
8872 * ax.h (struct aop_map) <name>: Now const.
8873
a0c78a73
PA
88742011-02-16 Tom Tromey <tromey@redhat.com>
8875
8876 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8877 than axs_rvalue.
8878
946ebb0d 88792011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8880
8881 * infrun.c (get_displaced_step_closure_by_addr): New.
8882 * inferior.h: Declare it.
8883 * arm-tdep.c: (arm_pc_is_thumb): Call
8884 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8885 returns non-NULL.
8886
08807d5a
PA
88872011-02-16 Pedro Alves <pedro@codesourcery.com>
8888 Jan Kratochvil <jan.kratochvil@redhat.com>
8889
8890 gdb/
8891 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8892
29976f3f
PA
88932011-02-16 Pedro Alves <pedro@codesourcery.com>
8894 Jan Kratochvil <jan.kratochvil@redhat.com>
8895
8896 * value.c (value_contents_copy_raw): Extend describing comment.
8897 Assert that the destination contents we're overwriting are wholly
8898 available.
fb68ae73 8899 (value_contents_copy): Extend describing comment.
29976f3f 8900
cd24cfaa
PA
89012011-02-16 Pedro Alves <pedro@codesourcery.com>
8902 Jan Kratochvil <jan.kratochvil@redhat.com>
8903
8904 * value.c (value_available_contents_eq): Remove redundant local
8905 variables. Fix available contents comparision.
8906 * value.h (value_available_contents_eq): Extend describing
8907 comment.
8908
60bbf338
YQ
89092011-02-16 Yao Qi <yao@codesourcery.com>
8910
8911 * thread.c (info_threads_command): Add missing i18n markup and remove
8912 trailing newline.
8913
17450429
PP
89142011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8915
8916 * breakpoint.c (longjmp_names): New variable.
8917 (struct breakpoint_objfile_data): New type.
8918 (breakpoint_objfile_key): New variable.
8919 (msym_not_found): New variable.
8920 (msym_not_found_p): New predicate.
8921 (get_breakpoint_objfile_data): New function.
8922 (create_overlay_event_breakpoint): Check per-objfile cache for
8923 symbols first.
8924 (create_longjmp_master_breakpoint): Likewise.
8925 (create_std_terminate_master_breakpoint): Likewise.
8926 (create_exception_master_breakpoint): Likewise.
8927 (_initialize_breakpoint): Register per-objfile data key.
8928
af02033e
PP
89292011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8930
8931 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8932 parameter value.
8933 (create_longjmp_master_breakpoint): Loop over longjmp names.
8934 (create_std_terminate_master_breakpoint): Const-propagate parameter
8935 value.
8936 (update_breakpoints_after_exec): Adjust.
8937 (breakpoint_re_set): Adjust.
8938
60f98dde
MS
89392011-02-15 Michael Snyder <msnyder@vmware.com>
8940
cdf99611
MS
8941 * thread.c (info_threads_command): Process arg as thread id,
8942 or list of thread ids.
8943 (thread_find_command): New command.
8944 (_initialize_thread): Document argument for info threads.
8945 Document 'thread find' command.
8946 * NEWS: Document new command "thread find".
60f98dde 8947
0feedb2c
JK
89482011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8949
8950 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8951 * aclocal.m4: Regenerated with aclocal-1.11.1.
8952 * common/configure: Regenerate with autoconf-2.64.
8953
648cd113
KW
89542011-02-15 Ken Werner <ken.werner@de.ibm.com>
8955
8956 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8957 bool data type to a size of one byte.
8958
5657161f
PA
89592011-02-15 Pedro Alves <pedro@codesourcery.com>
8960 Jan Kratochvil <jan.kratochvil@redhat.com>
8961
8962 * target.c (memory_xfer_live_readonly_partial): Document where to
8963 look for interface description.
8964
494e194e
YQ
89652011-02-15 Yao Qi <yao@codesourcery.com>
8966
8967 PR tdep/12352
8968 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8969 order to store PC value on stack instead of text section.
8970
d9492458
TJB
89712011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8972
8973 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8974 the EFP register set size.
8975 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8976 data from the VMX register.
8977 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8978 and write data from/to the VMX register.
8979
cdf99611
MS
89802011-02-14 Michael Snyder <msnyder@vmware.com>
8981
8982 * command.h (enum command_class): New class 'no_set_class', for
8983 "show" commands without a corresponding "set" command.
8984 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8985 * copying.c (_initialize_copying): Ditto for "show copying" and
8986 "show warranty".
8987 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8988 "show version".
8989 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8990 which there is no corresponding "set" command (eg. "show copying").
8991
424447ee
PA
89922011-02-14 Pedro Alves <pedro@codesourcery.com>
8993 Jan Kratochvil <jan.kratochvil@redhat.com>
8994
8995 * exec.c (section_table_available_memory): Change `len' parameter
8996 type to ULONGEST.
8997 * exec.h (section_table_available_memory): Ditto.
8998 * value.h (read_value_memory): Rename the `offset' parameter to
8999 `embedded_offset'.
9000
c0f61f9c 90012011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9002 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9003
9004 * memrange.c (compare_mem_ranges): Mention sort order in
9005 describing comment.
9006 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9007 * tracepoint.c (traceframe_available_memory): Extend comment to
9008 mention what happens to RESULT when the target does not support
9009 the query.
9010
6bfc80c7
PA
90112011-02-14 Pedro Alves <pedro@codesourcery.com>
9012 Jan Kratochvil <jan.kratochvil@redhat.com>
9013
9014 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9015 range.
9016
e7303042
PA
90172011-02-14 Pedro Alves <pedro@codesourcery.com>
9018
9019 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9020 No longer handle NULL values.
9021
8af8e3bc
PA
90222011-02-14 Pedro Alves <pedro@codesourcery.com>
9023
9024 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9025 * value.c: Include "exceptions.h".
9026 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9027 generic error.
9028 * cp-abi.c: Include gdb_assert.h.
9029 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9030 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9031 errors.
9032 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9033 parameters. No longer returns -1 on error.
9034 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9035 `val' parameters.
9036 * cp-valprint.c: Include exceptions.h.
9037 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9038 the baseclass_offset. Handle unavailable base classes. Use
9039 val_print_invalid_address.
9040 * p-valprint.c: Include exceptions.h.
9041 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9042 when fetching the baseclass_offset. No longer expect
9043 baseclass_offset returning -1. Handle unavailable base classes.
9044 Use val_print_invalid_address.
9045 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9046 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9047 `embedded_offset' and `val' parameters. Adjust.
9048 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9049 parameter, and change its type to gdb_byte pointer. Add
9050 `embedded_offset' and `val' parameters. Adjust. No longer expect
9051 baseclass_offset returning -1.
9052 (value_dynamic_cast): Use value_contents_for_printing rather than
9053 value_contents. Adjust.
9054 (search_struct_field): No longer expect baseclass_offset returning
9055 -1.
9056 (search_struct_method): If reading memory from the target is
9057 necessary, wrap it in a new value to pass to baseclass_offset. No
9058 longer expect baseclass_offset returning -1.
9059 (find_method_list): No longer expect baseclass_offset returning
9060 -1. Use value_contents_for_printing rather than value_contents.
9061 * valprint.c (val_print_invalid_address): New function.
9062 * valprint.h (val_print_invalid_address): Declare.
9063 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9064 and `val' parameters. No longer expect baseclass_offset returning
9065 -1. Adjust.
9066 * gnu-v2-abi.c: Include "exceptions.h".
9067 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9068 parameters. Handle unavailable memory. Recurse through
9069 gnuv2_baseclass_offset directly, rather than through
9070 baseclass_offset. No longer returns -1 on not found, instead
9071 throw an error.
9072 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9073 `val' parameters. Adjust.
9074
1b28d0b3
PA
90752011-02-14 Pedro Alves <pedro@codesourcery.com>
9076
9077 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9078 almost but not quite adjacent.
9079
ec0a52e1
PA
90802011-02-14 Pedro Alves <pedro@codesourcery.com>
9081
9082 * value.h (value_entirely_available): Declare.
9083 * value.c (value_entirely_available): New function.
9084 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9085 real type if the pointer is unavailable.
9086
24e6bcee
PA
90872011-02-14 Pedro Alves <pedro@codesourcery.com>
9088
9089 * valops.c (value_repeat): Use read_value_memory instead of
9090 read_memory.
9091
39d37385
PA
90922011-02-14 Pedro Alves <pedro@codesourcery.com>
9093
9094 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9095 * value.c (value_contents_copy_raw, value_contents_copy): New
9096 functions.
9097 (value_primitive_field): Use value_contents_copy_raw instead of
9098 memcpy.
9099 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9100 memcpy.
9101 (value_array, value_slice): Ditto.
9102 * valarith.c (value_subscripted_rvalue): Use
9103 value_contents_copy_raw instead of memcpy.
9104
a3d34bf4
PA
91052011-02-14 Pedro Alves <pedro@codesourcery.com>
9106
9107 <unavailable> references.
9108
9109 * valops.c (get_value_at): Use value_from_contents_and_address,
9110 avoiding read_memory.
9111
9fc6d940
PA
91122011-02-14 Pedro Alves <pedro@codesourcery.com>
9113
9114 * c-valprint.c (c_val_print): Print a string with unavailable
9115 contents as an array.
9116
5467c6c8
PA
91172011-02-14 Pedro Alves <pedro@codesourcery.com>
9118
9119 * value.h (unpack_bits_as_long): Delete declaration.
9120 (unpack_value_bits_as_long): Declare.
9121 (unpack_value_field_as_long): Declare.
9122 (value_field_bitfield): Declare.
9123 * value.c (unpack_bits_as_long): Rename to...
9124 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9125 value parameters. Return the extracted result in a new output
9126 parameter. If the value contents are unavailable, return false,
9127 otherwise return true.
9128 (unpack_value_bits_as_long): New.
9129 (unpack_field_as_long): Rename to...
9130 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9131 Add embedded_offset and value parameters. Return the extracted
9132 result in a new output parameter. If the value contents are
9133 unavailable, return false, otherwise return true.
9134 (unpack_value_field_as_long): New.
9135 (unpack_field_as_long_1): New.
9136 (unpack_field_as_long): Reimplement as wrapper around
9137 unpack_value_field_as_long_1.
9138 (value_field_bitfield): New function.
9139 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9140 unpack_value_bits_as_long. Mark the value as unavailable, if it
9141 is unavailable.
9142 * jv-valprint.c (java_print_value_fields): Use
9143 value_field_bitfield.
9144 * p-valprint.c (pascal_object_print_value_fields): Use
9145 value_field_bitfield.
9146 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9147
3158c6ed
PA
91482011-02-14 Pedro Alves <pedro@codesourcery.com>
9149
9150 * value.c (get_internalvar_integer): Also return the int value of
9151 TYPE_CODE_INT INTERNALVAR_VALUE values.
9152 (set_internalvar): Don't special case TYPE_CODE_INT.
9153
9fbdca0d
PA
91542011-02-14 Pedro Alves <pedro@codesourcery.com>
9155
9156 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9157 INTERNALVAR_POINTER.
9158 <pointer>: Delete.
9159 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9160 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9161 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9162
c8c1c22f
PA
91632011-02-14 Pedro Alves <pedro@codesourcery.com>
9164
9165 * value.h (value_available_contents_eq): Declare.
9166 * value.c (find_first_range_overlap): New function.
9167 (value_available_contents_eq): New function.
9168 * valprint.c (val_print_array_elements): Use
9169 value_available_contents_eq.
9170 * ada-valprint.c (val_print_packed_array_elements): Use
9171 value_available_contents_eq.
9172 * jv-valprint.c (java_value_print): Use
9173 value_available_contents_eq.
9174
e6e4e701
PA
91752011-02-14 Pedro Alves <pedro@codesourcery.com>
9176
9177 * target.c (target_read_live_memory): New function.
9178 (memory_xfer_live_readonly_partial): New.
9179 (memory_xfer_partial): If reading from a traceframe, fallback to
9180 reading unavailable read-only memory from read-only regions of
9181 live target memory.
9182 * tracepoint.c (disconnect_tracing): Adjust.
9183 (set_current_traceframe): New, factored out from
9184 set_traceframe_number.
9185 (set_traceframe_number): Reimplement to only change the traceframe
9186 number on the GDB side.
9187 (do_restore_current_traceframe_cleanup): Adjust.
9188 (make_cleanup_restore_traceframe_number): New.
9189 (cur_traceframe_number): New global.
9190 (tfile_open): Set cur_traceframe_number to no traceframe.
9191 (set_tfile_traceframe): New function.
9192 (tfile_trace_find): If looking up a traceframe using any method
9193 other than by number, make sure the current tfile traceframe
9194 matches gdb's current traceframe. Update the current tfile
9195 traceframe if the lookup succeeded.
9196 (tfile_fetch_registers, tfile_xfer_partial)
9197 (tfile_get_trace_state_variable_value): Make sure the remote
9198 traceframe matches gdb's current traceframe.
9199 * remote.c (remote_traceframe_number): New global.
9200 (remote_open_1): Set it to -1.
9201 (set_remote_traceframe): New function.
9202 (remote_fetch_registers, remote_store_registers)
9203 (remote_xfer_memory, remote_xfer_partial)
9204 (remote_get_trace_state_variable_value): Make sure the remote
9205 traceframe matches gdb's current traceframe.
9206 (remote_trace_find): If looking up a traceframe using any method
9207 other than by number, make sure the current remote traceframe
9208 matches gdb's current traceframe. Update the current remote
9209 traceframe if the lookup succeeded.
9210 * infrun.c (fetch_inferior_event): Adjust.
9211 * tracepoint.h (set_current_traceframe): Declare.
9212 (get_traceframe_number, set_traceframe_number): Add describing
9213 comments.
9214
e6ca34fc
PA
92152011-02-14 Pedro Alves <pedro@codesourcery.com>
9216
9217 Mark pieces of values as unavailable if the corresponding memory
9218 is unavailable.
9219
9220 * valops.c: Include tracepoint.h.
9221 (value_fetch_lazy): Use read_value_memory.
9222 (read_value_memory): New.
9223 * value.h (read_value_memory): Declare.
9224 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9225 * exec.c (section_table_available_memory): New function.
9226 * exec.h (section_table_available_memory): Declare.
9227
2a7498d8
PA
92282011-02-14 Pedro Alves <pedro@codesourcery.com>
9229
9230 * Makefile.in (SFILES): Add memrange.c.
9231 (HFILES_NO_SRCDIR): Add memrange.h.
9232 (COMMON_OBS): Add memrange.o.
9233 * memrange.c: New file.
9234 * memrange.h: New file.
9235 * tracepoint.c: Include memrange.h.
9236 (struct mem_range): Delete.
9237 (mem_range_s): Delete.
9238 (traceframe_available_memory): New function.
9239 * tracepoint.h (traceframe_available_memory): Declare.
9240
b3b9301e
PA
92412011-02-14 Pedro Alves <pedro@codesourcery.com>
9242
9243 * target.h (struct traceframe_info): Forward declare.
9244 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9245 (struct target_ops) <to_traceframe_info>: New field.
9246 (target_traceframe_info): New.
9247 * target.c (update_current_target): Inherit and default
9248 to_traceframe_info.
9249 * remote.c (PACKET_qXfer_traceframe_info): New.
9250 (remote_protocol_features): Register qXfer:traceframe-info:read.
9251 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9252 (remote_traceframe_info): New.
9253 (init_remote_ops): Install it.
9254 (_initialize_remote): Install "set/show remote traceframe-info"
9255 commands.
9256 * tracepoint.h (parse_traceframe_info): Declare.
9257 * tracepoint.c (struct mem_range): New.
9258 (mem_range_s): New typedef.
9259 (struct traceframe_info): New.
9260 (traceframe_info): New global.
9261 (free_traceframe_info): New function.
9262 (clear_traceframe_info): New function.
9263 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9264 info.
9265 (build_traceframe_info): New function.
9266 (tfile_traceframe_info): New function.
9267 (init_tfile_ops): Install tfile_traceframe_info.
9268 (traceframe_info_start_memory, free_result): New functions.
9269 (memory_attributes, traceframe_info_elements): New globals.
9270 (parse_traceframe_info, get_traceframe_info): New functions.
9271 * features/traceframe-info.dtd: New file.
9272 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9273
4e07d55f
PA
92742011-02-14 Pedro Alves <pedro@codesourcery.com>
9275
9276 Base support for <unavailable> value contents.
9277
4e07d55f
PA
9278 * value.h (value_bytes_available): Declare.
9279 (mark_value_bytes_unavailable): Declare.
9280 * value.c (struct range): New struct.
9281 (range_s): New typedef.
9282 (ranges_overlap): New function.
9283 (range_lessthan): New function.
9284 (ranges_contain_p): New function.
9285 (struct value) <unavailable>: New field.
9286 (value_bytes_available): New function.
9287 (mark_value_bytes_unavailable): New function.
9288 (require_not_optimized_out): Constify parameter.
9289 (require_available): New function.
9290 (value_contents_all, value_contents): Require all bytes be
9291 available.
9292 (value_free): Free `unavailable'.
9293 (value_copy): Copy `unavailable'.
9294 * valprint.h (val_print_unavailable): Declare.
9295 * valprint.c (valprint_check_validity): Rename `offset' parameter
9296 to `embedded_offset'. If printing a scalar, check whether the
9297 value chunk is available.
9298 (val_print_unavailable): New.
9299 (val_print_scalar_formatted): Check whether the value is
9300 available.
9301 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9302 pretty-printing unavailable values.
9303
bc9a5551
JK
93042011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9305
9306 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9307 * c-typeprint.c (c_type_print_args): Update the function comment. New
9308 variable param_type, initialize it. Remove const/volatile qualifiers
9309 for language_cplus and !show_artificial. Use param_type.
9310
93b55aa1
JK
93112011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9312
9313 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9314 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9315 * symtab.h (struct symtab) <next>: Comment extension.
9316
181d9476
YQ
93172011-02-12 Yao Qi <yao@codesourcery.com>
9318
9319 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9320
b708a5c7
JK
93212011-02-11 Yao Qi <yao@codesourcery.com>
9322
9323 * common/Makefile.in: Add copyright header.
9324
c5187ac6
PA
93252011-02-11 Pedro Alves <pedro@codesourcery.com>
9326
9327 * infrun.c (proceed): Move switching out and in of tfind mode from
9328 here ...
9329 (fetch_inferior_event): ... to here.
9330
4f3e6fb7
YQ
93312011-02-11 Yao Qi <yao@codesourcery.com>
9332
9333 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9334 libcommon.a.
9335 * configure.ac: Add common to sub dir.
9336 * configure: Regenerate.
9337
b708a5c7
JK
93382011-02-11 Yao Qi <yao@codesourcery.com>
9339
9340 Build libcommon.a.
9341
9342 * common/Makefile.in: New.
9343 * common/configure.ac: New.
9344 * common/aclocal.m4: New.
9345 * common/configure: Generate.
9346
2287cc7e
PA
93472011-02-10 Pedro Alves <pedro@codesourcery.com>
9348
9349 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9350 side of the parenthesis.
9351
9352 Merge from GCC:
9353 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9354 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9355
fd62cb89
MS
93562011-02-08 Michael Snyder <msnyder@vmware.com>
9357
9358 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9359
56d2815c
JK
93602011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9361
9362 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9363 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9364 psubd and paddd.
9365
4f7d61a8
JK
93662011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9367
9368 PR 12361.
9369 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9370 phsubsw.
9371 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9372 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9373
54fcddd0
UW
93742011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9375
9376 * dwarf2read.c (read_subroutine_type): Set special calling
9377 convention flag for functions compiled by IBM XL C for OpenCL.
9378 * ppc-sysv-tdep.c: Include "dwarf2.h"
9379 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9380 calling convention.
9381 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9382 IBM OpenCL vector types calling convention.
9383 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9384 (ppc_sysv_abi_broken_return_value): Likewise.
9385 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9386 types calling convention.
9387 (ppc64_sysv_abi_return_value): Likewise.
9388 * spu-tdep.c: Include "dwarf2.h"
9389 (spu_return_value): Implement IBM OpenCL vector types calling
9390 convention.
9391
d6dafb7c
UW
93922011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9393
9394 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9395 correct ABI for AltiVec vector arguments.
9396
32b72a42
PA
93972011-02-07 Pedro Alves <pedro@codesourcery.com>
9398
9399 * valprint.c (val_print): Extend comment.
9400 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9401 interface explanation to val_print.
9402 (ada_val_print_array): Adjust comment to current interface.
9403 (print_field_values): Adjust comment to current interface.
9404 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9405 explanation to val_print.
9406 * f-valprint.c (f_val_print): Ditto.
9407 * jv-valprint.c (java_val_print): Ditto.
9408 * m2-valprint.c (m2_val_print): Ditto.
9409 * p-valprint.c (pascal_val_print): Ditto.
9410
9998af43
TJB
94112011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9412
9413 * breakpoint.c (parse_breakpoint_sals): Fix description.
9414
505500db 94152011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9416 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9417
9418 * python/py-inferior.c (python_on_normal_stop): New function.
9419 (python_on_resume): New function.
9420 (python_inferior_exit): New function.
9421 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9422 inferior_exit observers.
9423 * python/py-evtregistry.c: New file.
9424 * python/py-threadevent.c : New file.
9425 * python/py-event.c: New file.
9426 * python/py-evts.c: New file.
9427 * python/py-continueevent.c: New file.
9428 * python/py-bpevent.c: New file.
9429 * python/py-signalevent.c: New file.
9430 * python/py-exetiedevent.c: New file.
9431 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9432 Move struct breakpoint_object from here...
9433 * python/python-internal.h: ... to here.
9434 * python/py-event.h: New file.
9435 * python/py-events.h: New file.
9436 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9437 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9438 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9439 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9440 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9441 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9442 Add build rules for all the above.
9443
9e0ac564
TT
94442011-02-04 Tom Tromey <tromey@redhat.com>
9445
9446 * dwarf2read.c (dwarf2_section_empty_p): New function.
9447 (dwarf2_read_section): Use dwarf2_section_empty_p.
9448 (dwarf2_section_size): New function.
9449 (dwarf2_get_section_info): Unconditionally read section.
9450 (dwarf2_read_index): Use dwarf2_section_empty_p.
9451 (partial_read_comp_unit_head): Use dwarf2_section_size.
9452 (dwarf2_symbol_mark_computed): Likewise.
9453
eee5b35e
DD
94542011-02-04 David Daney <ddaney@caviumnetworks.com>
9455
9456 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9457
385203ed
DD
94582011-02-04 David Daney <ddaney@caviumnetworks.com>
9459
9460 * mips-linux-tdep.c: Include xml-syscall.h.
9461 (mips_linux_get_syscall_number): New function.
9462 (mips_linux_init_abi): Add calls to
9463 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9464 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9465 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9466 * syscalls/mips-n32-linux.xml: New file.
9467 * syscalls/mips-n64-linux.xml: New file.
9468 * syscalls/mips-o32-linux.xml: New file.
9469
9277c30c
UW
94702011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9471
9472 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9473 Complain about inverted range entries.
9474 (dwarf2_record_block_ranges): Likewise.
9475
a3be7890
TJB
94762011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9477
9478 Fix some typos.
9479 * breakpoint.c (update_watchpoint): Fix name of the
9480 update_global_location_list function.
9481 (print_one_breakpoint): Fix typo.
9482 (_initialize_breakpoint): Remove extra space in hbreak help
9483 string.
9484 * breakpoint.h (struct bp_location) <length>: Fix field
9485 description.
9486
041274d8
PA
94872011-02-04 Pedro Alves <pedro@codesourcery.com>
9488
9489 * regcache.c (registers_changed_ptid): Don't explictly always
9490 clear `current_regcache'. Only clear current_thread_ptid and
9491 current_thread_arch when PTID matches. Only reinit the frame
9492 cache if PTID matches the current inferior_ptid. Move alloca(0)
9493 call to ...
9494 (registers_changed): ... here.
9495
c1c2ab58
UW
94962011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9497
9498 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9499 starts with __stack_chk_guard as stack guard symbol.
9500
9011945e
AB
95012011-02-03 Andrew Burgess <aburgess@broadcom.com>
9502
9503 * disasm.c (compare_lines): Handle the end of sequence markers
9504 within the line table to better support disassembling over
9505 compilation unit boundaries.
9506
e0634ccf
UW
95072011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9508
9509 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9510 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9511 implementation even if no symbols are available.
9512 (thumb_analyze_prologue): Update call to skip_prologue_function.
9513 (arm_analyze_prologue): Likewise.
9514
0e9e9abd
UW
95152011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9516
9517 * arm-tdep.c: Include "observer.h".
9518 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9519 (arm_exidx_data_key): New static variable.
9520 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9521 (struct arm_exidx_data): Likewise.
9522 (arm_exidx_data_free): New function.
9523 (arm_compare_exidx_entries): Likewise.
9524 (arm_obj_section_from_vma): Likewise.
9525 (arm_exidx_new_objfile): Likewise.
9526 (arm_find_exidx_entry): Likewise.
9527 (arm_exidx_fill_cache): Likewise.
9528 (arm_exidx_unwind_sniffer): Likewise.
9529 (arm_exidx_unwind): New global variable.
9530 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9531 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9532 observer. Register arm_exidx_data_key as objfile data.
9533
2e9e421f
UW
95342011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9535
9536 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9537 due to accessing uninitialized variable. Fix indentation.
9538
580688f3
PA
95392011-02-02 Pedro Alves <pedro@codesourcery.com>
9540
9541 * c-valprint.c (c_value_print): When doing virtual base pointer
9542 adjustment, create a new value with adjusted contents rather than
9543 changing the contents of the value being printed (and getting it
9544 wrong).
9545
3d2c1d41
PA
95462011-02-02 Pedro Alves <pedro@codesourcery.com>
9547
9548 * xml-support.c (xml_find_attribute): New.
9549 (xinclude_start_include): Use it.
9550 * xml-support.h (xml_find_attribute): Declare.
9551 * memory-map.c (memory_map_start_memory)
9552 (memory_map_start_property): Use xml_find_attribute.
9553 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9554 xml_find_attribute.
9555 * remote.c (start_thread): Use xml_find_attribute.
9556 * solib-target.c (library_list_start_segment)
9557 (library_list_start_section, library_list_start_library)
9558 (library_list_start_list): Use xml_find_attribute.
9559 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9560 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9561 (tdesc_start_field): Use xml_find_attribute.
9562
0af3e2db
UW
95632011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9564
9565 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9566 (BUILD_OCL_VTYPES): Update.
9567
c1039e3c
JB
95682011-02-02 Joel Brobecker <brobecker@adacore.com>
9569
9570 * configure.ac: Work around non-GNU sed limitation when computing
9571 python version number.
9572 * configure: Regenerate.
9573
600ea1be
JK
95742011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9575
9576 Fix debug printing of TYPE_INSTANCE.
9577 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9578 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9579
56c12414
JK
95802011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9581
9582 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9583 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9584 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9585 * ada-operator.inc: Rename the file to ...
9586 * ada-operator.def: ... here, wrap all the entries by macro OP.
9587 * expprint.c (op_name_standard): Remove all the entries. Include
9588 "std-operator.def" instead.
9589 * expression.h (enum exp_opcode): Include "std-operator.def" and
9590 "ada-operator.def". Move all the entries ...
9591 * std-operator.def: ... here, wrap all the entries by macro OP.
9592
c52b559d
PP
95932011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9594
9595 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9596 * breakpoint.c (remove_jit_event_breakpoints): New function.
9597 * jit.c (jit_descriptor_addr): Delete.
9598 (registering_code): Delete.
9599 (clear_int): Delete.
9600 (jit_inferior_data): New variable.
9601 (struct jit_inferior_data): New type.
9602 (get_jit_inferior_data): New function.
9603 (jit_inferior_data_cleanup): New function.
9604 (jit_read_descriptor): Adjust.
9605 (jit_register_code): Adjust.
9606 (jit_breakpoint_re_set_internal): New function; move code here ...
9607 (jit_inferior_init): ... from here.
9608 (jit_breakpoint_re_set): Adjust.
9609 (jit_reset_inferior_data_and_breakpoints): New function.
9610 (jit_inferior_created_observer): Adjust.
9611 (jit_inferior_exit_hook): Adjust.
9612 (jit_executable_changed_observer): New function.
9613 (jit_event_handler): Adjust.
9614 (_initialize_jit): Adjust.
9615
e839132d
MS
96162011-01-31 Michael Snyder <msnyder@vmware.com>
9617
9618 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9619 line.
9620
47a80e90
TT
96212011-01-31 Tom Tromey <tromey@redhat.com>
9622
9623 PR python/12216:
9624 * python/python.c (execute_gdb_command): Call
9625 prevent_dont_repeat.
9626 * top.c (suppress_dont_repeat): New global.
9627 (dont_repeat): Use it.
9628 (prevent_dont_repeat): New function.
9629 * command.h (prevent_dont_repeat): Declare.
9630
45a43567
TT
96312011-01-31 Tom Tromey <tromey@redhat.com>
9632
9633 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9634 * python/py-breakpoint.c (bppy_set_silent): Use
9635 breakpoint_set_silent.
9636 (bppy_set_thread): Use breakpoint_set_thread.
9637 (bppy_set_task): Use breakpoint_set_task.
9638 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9639 (breakpoint_set_task): Declare.
9640 (make_breakpoint_silent): Remove.
9641 * breakpoint.c (breakpoint_set_silent): New function.
9642 (breakpoint_set_thread): Likewise.
9643 (breakpoint_set_task): Likewise.
9644 (make_breakpoint_silent): Remove.
9645
09d682a4
TT
96462011-01-31 Tom Tromey <tromey@redhat.com>
9647
9648 * breakpoint.h (user_breakpoint_p): Declare.
9649 * breakpoint.c (user_breakpoint_p): New function.
9650 (breakpoint_1): Use it.
9651 (save_breakpoints): Likewise.
9652
9c4ea6c5
JB
96532011-01-31 Joel Brobecker <brobecker@adacore.com>
9654
9655 * configure.ac: Add handling of Python distribution on Windows.
9656 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9657 sysconfig variables are not defined, then do not use them.
9658 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9659 instead. On Windows, return all paths using forward-slashes
9660 rather than backslashes.
9661
ac534cba
JB
96622011-01-31 Joel Brobecker <brobecker@adacore.com>
9663
9664 * configure.ac: Remove fallback behavior for building
9665 against Python. Remove tweaking of Python include path.
9666 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9667 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9668 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9669 Always restore CPPFLAGS and LIBS after linking test.
9670 * configure: Regenerated.
9671 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9672 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9673 * python/python-internal.h: Adjust includes of Python .h files.
9674
c2f0d045
JB
96752011-01-31 Joel Brobecker <brobecker@adacore.com>
9676
9677 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9678 in error message.
9679
6b0c4c1f
JB
96802011-01-31 Joel Brobecker <brobecker@adacore.com>
9681
9682 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9683 value test.
9684
672c9795
YQ
96852011-01-31 Yao Qi <yao@codesourcery.com>
9686
9687 * arm-linux-nat.c: Update calls to regcache_register_status
9688 instead of regcache_valid_p.
9689 * aix-thread.c: Likewise.
9690 * i386gnu-nat.c: Likewise.
9691
80b23b6a
JK
96922011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9693
9694 Fix crash.
9695 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9696 touching TYPE_FIELD_ARTIFICIAL.
9697
4cd712bd
RE
96982011-01-28 Richard Earnshaw <rearnsha@arm.com>
9699
9700 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9701 Committers.
9702
ffd5ec24
PA
97032011-01-28 Pedro Alves <pedro@codesourcery.com>
9704
9705 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9706 selected, don't try iterating over the traceframe's blocks.
9707 (tfile_has_stack): If there's no traceframe selected, then there's
9708 no stack.
9709 (tfile_has_registers): If there's no traceframe selected, then
9710 there's no registers.
9711
e8c9e0a1
PA
97122011-01-28 Pedro Alves <pedro@codesourcery.com>
9713
9714 * target.c (memory_xfer_partial): No need to restore shadows if we
9715 haven't read anything.
9716
de15c4ab
PA
97172011-01-28 Pedro Alves <pedro@codesourcery.com>
9718
9719 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9720 and val_print_scalar_formatted.
9721
9f41c731
PA
97222011-01-27 Pedro Alves <pedro@codesourcery.com>
9723
9724 * tracepoint.c (tfile_read): New.
9725 (tfile_open): Use it.
9726 (tfile_get_traceframe_address): Use it.
9727 (tfile_trace_find): Use it.
9728 (walk_blocks_callback_func): New typedef.
9729 (match_blocktype): New function.
9730 (traceframe_walk_blocks): New function.
9731 (traceframe_find_block_type): New function.
9732 (tfile_fetch_registers, tfile_xfer_partial)
9733 (tfile_get_trace_state_variable_value): Use
9734 traceframe_find_block_type and tfile_read.
9735
cdefc55d
KB
97362011-01-26 Kevin Buettner <kevinb@redhat.com>
9737
9738 * remote-mips.c: Add internationalization mark ups. Remove
9739 trailing \n from already marked up strings.
9740
a81766d8
TT
97412011-01-26 Tom Tromey <tromey@redhat.com>
9742
9743 * python/py-prettyprint.c (print_string_repr): Clear
9744 'addressprint' option when calling val_print_string.
9745 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9746 option when calling val_print_string.
9747
74aedc46
TT
97482011-01-26 Tom Tromey <tromey@redhat.com>
9749
9750 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9751 GDB_PY_LL_ARG.
9752 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9753 macros.
9754 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9755 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9756 (gdb_py_long_as_ulongest): New defines.
9757 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9758 (gdb_py_int_as_long): Declare.
9759 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9760 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9761 (valpy_long): Add comment.
9762 * python/py-utils.c (get_addr_from_python): Use
9763 gdb_py_long_as_ulongest. Handle overflow properly.
9764 (gdb_py_object_from_longest): New function.
9765 (gdb_py_object_from_ulongest): Likewise.
9766 (gdb_py_int_as_long): Likewise.
9767 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9768 * python/py-symtab.c (salpy_get_pc): Use
9769 gdb_py_long_from_ulongest.
9770 (salpy_get_line): Use PyInt_FromLong.
9771 * python/py-param.c (set_parameter_value): Use
9772 gdb_py_int_as_long.
9773 * python/py-lazy-string.c (stpy_get_address): Use
9774 gdb_py_long_from_ulongest.
9775 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9776 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9777 * python/py-breakpoint.c (bppy_set_thread): Use
9778 gdb_py_int_as_long.
9779 (bppy_set_task): Likewise.
9780 (bppy_set_ignore_count): Likewise.
9781 (bppy_set_hit_count): Likewise.
9782 * python/py-block.c (blpy_get_start): Use
9783 gdb_py_object_from_ulongest.
9784 (blpy_get_end): Likewise.
9785 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9786
e4f6d2ec
TJB
97872011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9788
9789 PR/symtab 11766:
9790 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9791 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9792 equality test for objfile, initialize addr_low if needed.
9793
b30aa278
PA
97942011-01-25 Pedro Alves <pedro@codesourcery.com>
9795
9796 * tui/tui-regs.c (tui_register_format): Remove dead code.
9797
ab2188aa
PA
97982011-01-25 Pedro Alves <pedro@codesourcery.com>
9799
9800 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9801 instead of print_scalar_formatted.
9802 (print_scalar_formatted): Don't handle 's' format strings here,
9803 and add an assertion that we never see such format here.
9804 * valprint.h (val_print_scalar_formatted): Declare.
9805 * valprint.c (val_print_scalar_formatted): New.
9806 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9807 instead of print_scalar_formatted.
9808 * jv-valprint.c (java_val_print): Ditto.
9809 * p-valprint.c (pascal_val_print): Ditto.
9810 * ada-valprint.c (ada_val_print_1): Ditto.
9811 * f-valprint.c (f_val_print): Ditto.
9812 * infcmd.c (registers_info): Ditto.
9813 * m2-valprint.c (m2_val_print): Ditto.
9814
66d61a4c
PA
98152011-01-25 Pedro Alves <pedro@codesourcery.com>
9816
9817 * m2-valprint.c (print_unbounded_array): Pass
9818 value_contents_for_printing rather than value_contents, to
9819 m2_print_array_contents. Also pass in the value.
9820
831adc1f
JK
98212011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9822
9823 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9824 (save_gdb_index_command): Switch to .gdb_index version 4.
9825
20622269
PA
98262011-01-25 Pedro Alves <pedro@codesourcery.com>
9827
9828 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9829 than frame_register, and always pass a valid value to val_print.
9830
585fdaa1
PA
98312011-01-25 Pedro Alves <pedro@codesourcery.com>
9832
9833 Centralize printing "<optimized out>".
9834
9835 * valprint.h (val_print_optimized_out): Declare.
9836 * cp-valprint.c (cp_print_value_fields): Use
9837 val_print_optimized_out.
9838 * jv-valprint.c (java_print_value_fields): Ditto.
9839 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9840 * printcmd.c (print_formatted): Ditto.
9841 * valprint.c (valprint_check_validity): Ditto.
9842 (value_check_printable): Ditto.
9843 (val_print_optimized_out): New.
9844
29ec5263
PA
98452011-01-25 Pedro Alves <pedro@codesourcery.com>
9846
9847 * infcmd.c (default_print_registers_info): Allocate values so to
9848 never pass a NULL value to val_print.
9849
de4127a3
PA
98502011-01-25 Pedro Alves <pedro@codesourcery.com>
9851
9852 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9853 boolean. Make sure to always pass a value that matches the
9854 contents buffer to callees. Preserve `address' for following
9855 iterations.
9856 * value.c (value_contents_for_printing_const): New.
9857 (value_address): Constify value argument.
9858 * value.h (value_contents_for_printing_const): Declare.
9859 (value_address): Constify value argument.
9860
ee99023e
PA
98612011-01-25 Pedro Alves <pedro@codesourcery.com>
9862
9863 * regcache.c (struct regcache_descr): Rename
9864 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9865 and sizeof_cooked_register_valid_p to
9866 sizeof_cooked_register_status.
9867 (init_regcache_descr): Adjust.
9868 (struct regcache): Rename register_valid_p field to
9869 register_status.
9870 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9871 (do_cooked_read): Adjust.
9872 (regcache_valid_p): Rename to ...
9873 (regcache_register_status): ... this. Adjust.
9874 (regcache_invalidate): Adjust.
9875 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9876 Adjust.
9877 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9878 as unavailable, not valid.
9879 (regcache_dump): Adjust.
9880 * regcache.h (enum register_status): New.
9881 (regcache_register_status): Declare.
9882 (regcache_invalidate): Delete declaration.
9883 * corelow.c (get_core_registers): Adjust.
9884 * tracepoint.c (tfile_fetch_registers): Adjust.
9885 * trad-frame.c (REG_VALUE): Rename to ...
9886 (TF_REG_VALUE): ... this.
9887 (REG_UNKNOWN): Rename to ...
9888 (TF_REG_UNKNOWN): ... this.
9889 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9890 * mi/mi-main.c (register_changed_p): Adjust.
9891
99e42fd8
PA
98922011-01-25 Pedro Alves <pedro@codesourcery.com>
9893
9894 * regcache.c (struct regcache_descr): Remove outdated comment.
9895 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9896 overallocate hack.
9897 (regcache_xmalloc): Rename to ...
9898 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9899 Allocate the regcache type accordingly.
9900 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9901 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9902 cooked registers, not raw.
9903 (regcache_dup_no_passthrough): Delete.
9904 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9905 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9906 mention obsolete write_register_bytes.
9907 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9908
f7605bc2
PA
99092011-01-25 Pedro Alves <pedro@codesourcery.com>
9910
9911 Stop remote_read_bytes from handling partial reads itself.
9912
9913 * remote-fileio.c: Include target.h.
9914 (remote_fileio_write_bytes): Delete.
9915 (remote_fileio_func_open, remote_fileio_func_write)
9916 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9917 target_read_memory.
9918 (remote_fileio_func_stat): Use target_read_memory and
9919 target_write_memory.
9920 (remote_fileio_func_gettimeofday): Use target_write_memory.
9921 (remote_fileio_func_system): Use target_read_memory.
9922 * remote.c (remote_write_bytes): Make it static.
9923 (remote_read_bytes): Don't handle partial reads here.
9924 * remote.h (remote_read_bytes): Delete declaration.
9925
efc0eabd
PA
99262011-01-25 Pedro Alves <pedro@codesourcery.com>
9927
9928 Simplify XML parsing a bit.
9929
9930 * xml-support.h (gdb_xml_parse_quick): Declare.
9931 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9932 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9933 parameter.
9934 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9935 gdb_xml_create_parser_and_cleanup_1.
9936 (gdb_xml_parse_quick): New.
9937 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9938 * osdata.c (osdata_parse): Ditto.
9939 * remote.c (remote_threads_info): Ditto.
9940 * solib-target.c (solib_target_parse_libraries): Ditto.
9941 * xml-syscall.c (syscall_parse_xml): Ditto.
9942 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9943
314d366a
KB
99442011-01-24 Kevin Buettner <kevinb@redhat.com>
9945
9946 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9947 with remote-mips.o added to gdb_target_obs.
9948 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9949
a491d753
PA
99502011-01-24 Pedro Alves <pedro@codesourcery.com>
9951
9952 * ada-valprint.c (val_print_packed_array_elements): Pass the
9953 correct struct value to val_print.
9954 (ada_val_print_1): Ditto.
9955
490f124f
PA
99562011-01-24 Pedro Alves <pedro@codesourcery.com>
9957
9958 Don't lose embedded_offset in printing routines throughout.
9959
9960 * valprint.h (val_print_array_elements): Change prototype.
9961 * valprint.c (val_print_array_elements): Add `embedded_offset'
9962 parameter, and adjust to pass it down to val_print, while passing
9963 `valaddr' or `address' unmodified. Take embedded_offset into
9964 account when checking repetitions.
9965 * c-valprint.c (c_val_print): Pass embedded_offset to
9966 val_print_array_elements instead of adjusting `valaddr' and
9967 `address'.
9968 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9969 embedded_offset to val_print_array_elements instead of adjusting
9970 `valaddr'.
9971 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9972 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9973 val_print_array_elements and pascal_object_print_value_fields
9974 instead of adjusting `valaddr'.
9975 (pascal_object_print_value_fields): Add `offset' parameter, and
9976 adjust to use it.
9977 (pascal_object_print_value): Add `offset' parameter, and adjust to
9978 use it.
9979 (pascal_object_print_static_field): Use
9980 value_contents_for_printing/value_embedded_offset, rather than
9981 value_contents.
9982 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9983 parameter, and adjust to use it. Use
9984 value_contents_for_printing/value_embedded_offset, rather than
9985 value_contents.
9986 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9987 (ada_val_print_array): Add `offset' parameter, and adjust to use
9988 it.
9989 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9990 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9991 Instead work with offsets. Use
9992 value_contents_for_printing/value_embedded_offset, rather than
9993 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9994 and use value_from_pointer to extract a target pointer, rather
9995 than value_from_longest.
9996 (print_variant_part): Add `offset' parameter. Replace
9997 `outer_valaddr' parameter by a new `outer_offset' parameter.
9998 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9999 (ada_value_print): Use
10000 value_contents_for_printing/value_embedded_offset, rather than
10001 value_contents.
10002 (print_record): Add `offset' parameter, and adjust to pass it
10003 down.
10004 (print_field_values): Add `offset' parameter. Replace
10005 `outer_valaddr' parameter by a new `outer_offset' parameter.
10006 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10007 Use value_contents_for_printing/value_embedded_offset, rather than
10008 value_contents.
10009 * d-valprint.c (dynamic_array_type): Use
10010 value_contents_for_printing/value_embedded_offset, rather than
10011 value_contents.
10012 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10013 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10014 (java_print_value_fields): Take `offset' into account. Don't
10015 re-adjust `valaddr'. Instead pass down adjusted offsets.
10016 (java_val_print): Take `embedded_offset' into account. Pass it to
10017 java_print_value_fields.
10018 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10019 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10020 down adjusted offsets.
10021 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10022 (f_val_print): Take `embedded_offset' into account.
10023
7bfc9434
JB
100242011-01-21 Joel Brobecker <brobecker@adacore.com>
10025
10026 * inflow.c: Include "gdbcmd.h".
10027 (interactive_mode): New static global, moved here from top.c.
10028 (show_interactive_mode): New function, moved here from top.c.
10029 use gdb_has_a_terminal instead of input_from_terminal_p to
10030 determine the current mode.
10031 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10032 setting.
10033 (_initialize_inflow): Add the "set/show interactive-mode"
10034 commands. Moved here from top.c, after having adjusted slightly
10035 the help text.
10036 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10037 to inflow.c.
10038 (input_from_terminal_p): Remove handling of "interactive-mode"
10039 setting, moved to infow.c.
10040 (init_main): Remove creation of the "set/show interactive-mode"
10041 commands, moved to inflow.c.
10042
44603653
JB
100432011-01-19 Joel Brobecker <brobecker@adacore.com>
10044
10045 * NEWS: Add entry for native ia64-hpux support.
10046
4694da01
TT
100472011-01-19 Tom Tromey <tromey@redhat.com>
10048
10049 PR mi/8618:
10050 * thread.c (free_thread): Free 'name'.
10051 (print_thread_info): Emit thread name. Change CLI output.
10052 (thread_name_command): New function.
10053 (do_captured_thread_select): Emit newline.
10054 (_initialize_thread): Register 'thread name' command.
10055 * target.h (struct target_ops) <to_thread_name>: New field.
10056 (target_thread_name): New macro.
10057 * target.c (update_current_target): Handle to_thread_name.
10058 * python/py-infthread.c (thpy_get_name): New function.
10059 (thpy_set_name): Likewise.
10060 (thread_object_getset): Add "name".
10061 * linux-nat.c (linux_nat_thread_name): New function.
10062 (linux_nat_add_target): Set to_thread_name.
10063 * gdbthread.h (struct thread_info) <name>: New field.
10064
10d44370
JB
100652011-01-18 Joel Brobecker <brobecker@adacore.com>
10066
10067 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10068 (ada_val_print_1): Likewise.
10069
e3acb115
JB
100702011-01-18 Joel Brobecker <brobecker@adacore.com>
10071
10072 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10073 upper limit address is not greater than the function end address
10074 when the upper limit could not be computed using the debugging
10075 info.
10076
dc92e161
TT
100772011-01-17 Tom Tromey <tromey@redhat.com>
10078
10079 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10080 get_regcomp_error.
10081 * utils.c: Include gdb_regex.h.
10082 (do_regfree_cleanup): New function.
10083 (make_regfree_cleanup): Likewise.
10084 (get_regcomp_error): Likewise.
10085 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10086
f55af66d
TT
100872011-01-17 Tom Tromey <tromey@redhat.com>
10088
10089 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10090 re_compile_fastmap.
10091
a5a44b53
PM
100922011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10093
10094 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10095 for internal variables.
10096 (last_was_structop): New static variable.
10097 (COMPLETE): New token.
10098 (field_exp): New rule to group all '.' suffix handling.
10099 Add mark_struct_expression calls when approriate to be able
10100 to correctly find fields for completion.
10101 (yylex): Adapt to handle field completion and set INTVAR when
10102 required.
10103
2c291032
YQ
101042011-01-14 Yao Qi <yao@codesourcery.com>
10105
10106 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10107 save_reggroup, restore_reggroup and all_reggroup.
10108
447b483c
JB
101092011-01-14 Joel Brobecker <brobecker@adacore.com>
10110
10111 * ada-valprint. (ada_printchar): Use the correct type length
10112 in call to ada_emit_char.
10113 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10114
7b64a93b
PM
101152011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10116
10117 * solib-som.h (hpux_major_release): Declare variable here.
10118 * solib-som.c: Remove <sys/utsname.h> header.
10119 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10120 (hpux_major_release): Make global, change default value to
10121 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10122 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10123 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10124 Add "solib-som.h" header.
10125 (set_hpux_major_release): New function.
10126 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10127
4e18c053
MF
101282011-01-14 Mike Frysinger <vapier@gentoo.org>
10129
10130 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10131
a9df6b22
JB
101322011-01-14 Joel Brobecker <brobecker@adacore.com>
10133
10134 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10135 new-line at end of warning message.
10136 (ia64_hpux_store_register): Remove trailing new-line at end of
10137 error message.
10138 * ia64-hpux-tdep.c: Rephrase comment.
10139 * solib-ia64-hpux.c (struct dld_info): Change type of field
10140 dld_flags from "long long" to ULONGEST.
10141
ecb956dd
PA
101422011-01-14 Pedro Alves <pedro@codesourcery.com>
10143
10144 * target.h (deprecated_child_ops): Delete declaration.
10145 * target.c (deprecated_child_ops): Delete definition.
10146
76adfcae
PA
101472011-01-14 Pedro Alves <pedro@codesourcery.com>
10148
10149 * Makefile.in (hpux-thread.o): Delete rule.
10150 * configure.ac: Don't check for HPUX DCE threads support.
10151 * configure, config.in: Regenerate.
10152 * hppa-hpux-nat.c (child_suppress_run): Delete.
10153 (hppa_hpux_child_can_run): Delete.
10154 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10155 * hpux-thread.c: Delete.
10156
042e866e
JB
101572011-01-13 Joel Brobecker <brobecker@adacore.com>
10158
10159 * hpux-thread.c (hpux_pid_to_str): Delete.
10160
4ffa5a33
JB
101612011-01-13 Joel Brobecker <brobecker@adacore.com>
10162
10163 * ada-valprint.c (ada_emit_char): Remove strange code.
10164 Check that c is <= UCHAR_MAX before passing it to isascii.
10165 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10166
de8fa76c
JB
101672011-01-13 Joel Brobecker <brobecker@adacore.com>
10168
10169 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10170 to the case where instream is stdin.
10171
c4de7027
JB
101722011-01-13 Joel Brobecker <brobecker@adacore.com>
10173
10174 * ia64-tdep.h (struct regcache): Forward declare.
10175 (struct ia64_infcall_ops): New struct type.
10176 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10177 and "infcall_ops".
10178 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10179 Renames ia64_find_global_pointer.
10180 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10181 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10182 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10183 methods.
10184 (ia64_infcall_ops): New static global constant.
10185 (ia64_gdbarch_init): Set tdep->infcall_ops.
10186 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10187 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10188 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10189 (ia64_hpux_dummy_code): New static global constant.
10190 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10191 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10192 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10193 New function.
10194 (ia64_hpux_infcall_ops): New static global constant.
10195 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10196 for inferior function calls to work properly on ia64-hpux.
10197
77ca787b
JB
101982011-01-13 Joel Brobecker <brobecker@adacore.com>
10199
10200 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10201 * ia64-tdep.h (struct frame_info): forward declaration.
10202 (struct gdbarch_tdep): Add field size_of_register_frame.
10203 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10204 to determine the size of the register frame.
10205 (ia64_size_of_register_frame): New function.
10206 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10207 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10208 (IA64_HPUX_UREG_REASON): New macro.
10209 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10210 New functions.
10211 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10212 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10213 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10214 objects.
10215
92c9a463
JB
102162011-01-13 Joel Brobecker <brobecker@adacore.com>
10217
10218 Add support for ia64-hpux.
10219 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10220 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10221
10222 * configure.host: Add handling for ia64-hpux hosts. Add associated
10223 floatformats.
10224 * configure.tgt: Add handling for ia64-hpux targets.
10225 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10226 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10227 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10228
f688d93f
JB
102292011-01-13 Joel Brobecker <brobecker@adacore.com>
10230
10231 [ttrace] Compute thread list immediately after attach.
10232 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10233 New subprogram.
10234 (inf_ttrace_attach): Use it.
10235
1b89e62f
JB
102362011-01-13 Joel Brobecker <brobecker@adacore.com>
10237
10238 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10239 if we could not determine the frame's function address. Instead,
10240 use the frame's PC, and then continue.
10241
3e5e6e2a
JB
102422011-01-13 Joel Brobecker <brobecker@adacore.com>
10243
10244 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10245 not already defined.
10246
825d6d8a
JB
102472011-01-13 Joel Brobecker <brobecker@adacore.com>
10248
10249 * ia64-tdep.c (ia64_struct_type_p): New function.
10250 (ia64_extract_return_value): Handle integral values that are
10251 less than 8 bytes long.
10252 (ia64_push_dummy_call): Likewise.
10253
7458e667
JB
102542011-01-13 Joel Brobecker <brobecker@adacore.com>
10255
10256 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10257 floatformat_ia64_ext.
10258 (floatformat_ia64_ext_big): New static const.
10259 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10260
1b05df00
TT
102612011-01-12 Tom Tromey <tromey@redhat.com>
10262
10263 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10264 messages.
10265 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10266 (mi_cmd_thread_list_ids): Likewise.
10267 (mi_cmd_data_list_changed_registers): Likewise.
10268 (mi_cmd_data_list_register_values): Likewise.
10269 (mi_cmd_data_write_register_values): Likewise.
10270 (mi_cmd_data_evaluate_expression): Likewise.
10271 (mi_cmd_data_read_memory): Likewise.
10272 (mi_cmd_data_read_memory_bytes): Likewise.
10273 (mi_cmd_data_write_memory): Likewise.
10274 (mi_cmd_enable_timings): Likewise.
10275 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10276 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10277 (mi_cmd_var_delete): Likewise.
10278 (mi_cmd_var_set_format): Likewise.
10279 (mi_cmd_var_show_format): Likewise.
10280 (mi_cmd_var_info_num_children): Likewise.
10281 (mi_cmd_var_list_children): Likewise.
10282 (mi_cmd_var_info_type): Likewise.
10283 (mi_cmd_var_info_expression): Likewise.
10284 (mi_cmd_var_show_attributes): Likewise.
10285 (mi_cmd_var_assign): Likewise.
10286 (mi_cmd_var_update): Likewise.
10287 (mi_cmd_enable_pretty_printing): Likewise.
10288 (mi_cmd_var_set_update_range): Likewise.
10289 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10290 messages.
10291 (mi_cmd_target_file_put): Likewise.
10292 (mi_cmd_target_file_delete): Likewise.
10293 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10294 messages.
10295 (mi_cmd_stack_info_depth): Likewise.
10296 (mi_cmd_stack_list_locals): Likewise.
10297 (mi_cmd_stack_list_args): Likewise.
10298 (mi_cmd_stack_select_frame): Likewise.
10299 (mi_cmd_stack_select_frame): Likewise.
10300 (mi_cmd_stack_info_frame): Likewise.
10301 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10302 messages.
10303 (mi_cmd_file_list_exec_source_files): Likewise.
10304 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10305 (mi_cmd_env_cd): Likewise.
10306 (mi_cmd_env_path): Likewise.
10307 (mi_cmd_env_dir): Likewise.
10308 (mi_cmd_inferior_tty_show): Likewise.
10309 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10310 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10311 (mi_cmd_break_watch): Likewise.
10312
ad422571
TJB
103132011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10314
10315 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10316 (ppc_linux_insert_hw_breakpoint): Likewise.
10317 (ppc_linux_remove_hw_breakpoint): Likewise.
10318 (ppc_linux_insert_watchpoint): Likewise.
10319
c2ff108b
JK
103202011-01-12 Andrew Burgess <aburgess@broadcom.com>
10321 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 PR fortran/11104 and DWARF unbound arrays detection.
10324 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10325 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10326 unspecified upper bound.
10327 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10328 variables array_size_array, tmp_type and offset_item. New variable
10329 array. Remove call to f77_get_upperbound. New variables array_type
10330 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10331 the final call to deprecated_set_value_type.
10332
41e8491f
JK
103332011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10334
10335 Make value allocations more lazy.
10336 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10337 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10338 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10339 instead of allocate_value and set_value_lazy.
10340 * findvar.c (value_of_register_lazy): Likewise.
10341 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10342 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10343 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10344 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10345 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10346 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10347 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10348 the end, remove set_value_lazy there.
10349 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10350 instead of allocate_value and set_value_lazy when possible.
10351 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10352 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10353 of allocate_value and set_value_lazy.
10354 (value_from_contents_and_address): Use allocate_value_lazy instead of
10355 allocate_value and set_value_lazy when possible.
10356
b716877b
AB
103572011-01-12 Andrew Burgess <aburgess@broadcom.com>
10358
10359 * disasm.c (dump_insns): Support dumping opcodes for MI.
10360 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10361 dumping of instruction opcodes.
10362
d5ae309f
JB
103632011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10364
10365 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10366 appropiately.
10367
98871305
TT
103682011-01-11 Tom Tromey <tromey@redhat.com>
10369
10370 * thread.c (do_captured_thread_select): Emit newline before
10371 printing frame.
10372
c378eb4e
MS
103732011-01-11 Michael Snyder <msnyder@vmware.com>
10374
10375 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10376 * score-tdep.c: Ditto.
10377 * score-tdep.h: Ditto.
10378 * ser-base.c: Ditto.
10379 * ser-go32.c: Ditto.
10380 * serial.c: Ditto.
10381 * serial.h: Ditto.
10382 * ser-mingw.c: Ditto.
10383 * ser-pipe.c: Ditto.
10384 * ser-tcp.c: Ditto.
10385 * ser-unix.c: Ditto.
10386 * sh64-tdep.c: Ditto.
10387 * shnbsd-nat.c: Ditto.
10388 * sh-tdep.c: Ditto.
10389 * sh-tdep.h: Ditto.
10390 * solib.c: Ditto.
10391 * solib-darwin.c: Ditto.
10392 * solib-frv.c: Ditto.
10393 * solib.h: Ditto.
10394 * solib-irix.c: Ditto.
10395 * solib-osf.c: Ditto.
10396 * solib-pa64.c: Ditto.
10397 * solib-som.c: Ditto.
10398 * solib-spu.c: Ditto.
10399 * solib-sunos.c: Ditto.
10400 * solib-svr4.c: Ditto.
10401 * solist.h: Ditto.
10402 * sol-thread.c: Ditto.
10403 * somread.c: Ditto.
10404 * source.c: Ditto.
10405 * source.h: Ditto.
10406 * sparc64-linux-tdep.c: Ditto.
10407 * sparc64-tdep.c: Ditto.
10408 * sparc-linux-nat.c: Ditto.
10409 * sparc-linux-tdep.c: Ditto.
10410 * sparc-sol2-nat.c: Ditto.
10411 * sparc-sol2-tdep.c: Ditto.
10412 * sparc-tdep.c: Ditto.
10413 * sparc-tdep.h: Ditto.
10414 * spu-tdep.c: Ditto.
10415 * stabsread.c: Ditto.
10416 * stabsread.h: Ditto.
10417 * stack.c: Ditto.
10418 * symfile.c: Ditto.
10419 * symfile.h: Ditto.
10420 * symmisc.c: Ditto.
10421 * symtab.c: Ditto.
10422 * symtab.h: Ditto.
10423 * target.c: Ditto.
10424 * target-descriptions.c: Ditto.
10425 * target-descriptions.h: Ditto.
10426 * target.h: Ditto.
10427 * target-memory.c: Ditto.
10428 * terminal.h: Ditto.
10429 * thread.c: Ditto.
10430 * top.c: Ditto.
10431 * tracepoint.c: Ditto.
10432 * tracepoint.h: Ditto.
10433 * trad-frame.h: Ditto.
10434 * typeprint.c: Ditto.
10435
581e13c1
MS
104362011-01-11 Michael Snyder <msnyder@vmware.com>
10437
10438 * ui-file.c: Comment cleanup, mostly periods and spaces.
10439 * ui-file.h: Ditto.
10440 * ui-out.c: Ditto.
10441 * ui-out.h: Ditto.
10442 * utils.c: Ditto.
10443 * v850-tdep.c: Ditto.
10444 * valarith.c: Ditto.
10445 * valops.c: Ditto.
10446 * valprint.c: Ditto.
10447 * valprint.h: Ditto.
10448 * value.c: Ditto.
10449 * value.h: Ditto.
10450 * varobj.c: Ditto.
10451 * varobj.h: Ditto.
10452 * vax-tdep.c: Ditto.
10453 * vec.c: Ditto.
10454 * vec.h: Ditto.
10455 * version.h: Ditto.
10456 * windows-nat.c: Ditto.
10457 * windows-tdep.c: Ditto.
10458 * xcoffread.c: Ditto.
10459 * xcoffsolib.c: Ditto.
10460 * xml-support.c: Ditto.
10461 * xstormy16-tdep.c: Ditto.
10462 * xtensa-tdep.c: Ditto.
10463 * xtensa-tdep.h: Ditto.
10464
90e4670f
TJB
104652011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10466
10467 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10468 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10469
e09342b5
TJB
104702011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10471 Thiago Jung Bauermann <bauerman@br.ibm.com>
10472
10473 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10474 * breakpoint.h
e09342b5
TJB
10475 (struct breakpoint_ops) <resources_needed>: New method.
10476 Initialize to NULL in all existing breakpoint_ops instances.
10477 (struct breakpoint) <exact>: New field.
10478 (target_exact_watchpoints): Declare external global.
10479 * breakpoint.c (target_exact_watchpoints): New global flag.
10480 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10481 b->enable_state to bp_enabled before calling
10482 hw_watchpoint_used_count.
10483 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10484 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10485 if available.
10486 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10487 if the watchpoint is exact.
10488 (resources_needed_watchpoint): New function.
10489 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10490 (watch_command_1): Set b->exact if the user asked for an exact
10491 watchpoint and one can be set.
10492 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10493 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10494 the user asks for an exact watchpoint and one can be set. Return
10495 number of needed debug registers to watch the expression.
10496 * gdbtypes.c (is_scalar_type): New function, based on
10497 valprint.c:scalar_type_p.
10498 (is_scalar_type_recursive): New function.
10499 * gdbtypes.h (is_scalar_type_recursive): Declare.
10500 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10501 handle regions when ranged watchpoints are available.
10502 (create_watchpoint_request): New function.
10503 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10504 create_watchpoint_request.
10505 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10506 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10507 `set powerpc' and `show powerpc' commands.
10508 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10509 Mention documentation comment in the target macro.
10510 (target_region_ok_for_hw_watchpoint): Document return value.
10511
9fa40276
TJB
105122011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10513
10514 * breakpoint.c (update_watchpoint): Decide on using a software or
10515 hardware watchpoint after the bp_locations are created.
10516
77b06cd7
TJB
105172010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10518
10519 Convert hardware watchpoints to use breakpoint_ops.
10520 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10521 <insert_location>: ... this. Return int instead of void.
10522 Accept pointer to struct bp_location instead of pointer to
10523 struct breakpoint. Adapt all implementations.
f2eb0bc8 10524 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10525 <remove_location>: ... this. Accept pointer to struct bp_location
10526 instead of pointer to struct breakpoint. Adapt all implementations.
10527 * breakpoint.c (insert_catchpoint): Delete function.
10528 (insert_bp_location): Call the watchpoint or catchpoint's
10529 breakpoint_ops.insert method.
10530 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10531 breakpoint_ops.remove method.
10532 (insert_watchpoint, remove_watchpoint): New functions.
10533 (watchpoint_breakpoint_ops): New structure.
10534 (watch_command_1): Initialize the OPS field.
10535 * inf-child.c (inf_child_insert_fork_catchpoint)
10536 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10537 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10538 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10539 Delete functions.
10540 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10541 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10542 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10543 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10544 * target.c (update_current_target): Change default implementation of
10545 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10546 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10547 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10548 to_set_syscall_catchpoint to return_one.
10549 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10550 (debug_to_insert_exec_catchpoint): Report return value.
10551 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10552 (to_insert_exec_catchpoint): Change declaration to return int instead
10553 of void.
10554
9b20d036
MS
105552011-01-11 Michael Snyder <msnyder@vmware.com>
10556
10557 * arm-tdep.c: Internationalization.
10558 * c-lang.c: Ditto.
10559 * charset.c: Ditto.
10560 * fork-child.c: Ditto.
10561 * nto-procfs.c: Ditto.
10562 * ppc-sysv-tdep.c: Ditto.
10563 * procfs.c: Ditto.
10564 * remote-mips.c: Ditto.
10565 * remote.c: Ditto.
10566 * rs6000-nat.c: Ditto.
10567 * rs6000-tdep.c: Ditto.
10568 * target.c: Ditto.
10569 * valops.c: Ditto.
10570 * value.c: Ditto.
10571 * xml-support.c: Ditto.
10572 * mi/mi-cmd-break.c: Ditto.
10573 * mi/mi-cmd-var.c: Ditto.
10574 * mi/mi-interp.c: Ditto.
10575 * mi/mi-main.c: Ditto.
10576
dae477fe
AB
105772011-01-11 Andrew Burgess <aburgess@broadcom.com>
10578
10579 * remote-sim.c (gdbsim_store_register): Update API to
10580 sim_store_register to check more error conditions.
10581
0df8b418
MS
105822011-01-10 Michael Snyder <msnyder@vmware.com>
10583
10584 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10585 * nto-tdep.c: Ditto.
10586 * nto-tdep.h: Ditto.
10587 * objc-exp.y: Ditto.
10588 * objc-lang.c: Ditto.
10589 * objfiles.c: Ditto.
10590 * objfiles.h: Ditto.
10591 * observer.c: Ditto.
10592 * opencl-lang.c: Ditto.
10593 * osabi.c: Ditto.
10594 * parse.c: Ditto.
10595 * parser-defs.h: Ditto.
10596 * p-exp.y: Ditto.
10597 * p-lang.c: Ditto.
10598 * posix-hdep.c: Ditto.
10599 * ppcbug-rom.c: Ditto.
10600 * ppc-linux-nat.c: Ditto.
10601 * ppc-linux-tdep.c: Ditto.
10602 * ppc-linux-tdep.h: Ditto.
10603 * ppcnbsd-tdep.c: Ditto.
10604 * ppcobsd-tdep.c: Ditto.
10605 * ppcobsd-tdep.h: Ditto.
10606 * ppc-sysv-tdep.c: Ditto.
10607 * ppc-tdep.h: Ditto.
10608 * printcmd.c: Ditto.
10609 * proc-abi.c: Ditto.
10610 * proc-flags.c: Ditto.
10611 * procfs.c: Ditto.
10612 * proc-utils.h: Ditto.
10613 * progspace.h: Ditto.
10614 * prologue-value.c: Ditto.
10615 * prologue-value.h: Ditto.
10616 * psympriv.h: Ditto.
10617 * psymtab.c: Ditto.
10618 * p-typeprint.c: Ditto.
10619 * p-valprint.c: Ditto.
10620 * ravenscar-sparc-thread.c: Ditto.
10621 * ravenscar-thread.c: Ditto.
10622 * ravenscar-thread.h: Ditto.
10623 * record.c: Ditto.
10624 * regcache.c: Ditto.
10625 * regcache.h: Ditto.
10626 * remote.c: Ditto.
10627 * remote-fileio.c: Ditto.
10628 * remote-fileio.h: Ditto.
10629 * remote.h: Ditto.
10630 * remote-m32r-sdi.c: Ditto.
10631 * remote-mips.c: Ditto.
10632 * remote-sim.c: Ditto.
10633 * rs6000-aix-tdep.c: Ditto.
10634 * rs6000-nat.c: Ditto.
10635 * rs6000-tdep.c: Ditto.
10636
0d7a18f7
MS
106372011-01-10 Michael Snyder <msnyder@vmware.com>
10638
10639 * charset.c (validate): Internationalization.
10640 * coffread.c (read_one_sym): Ditto.
10641 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10642 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10643 * inflow.c (new_tty): Ditto.
10644 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10645 * m32c-tdep.c (m32c_return_value): Ditto.
10646 * mep-tdep.c (mep_store_return_value): Ditto.
10647 * score-tdep.c (score7_fetch_insn): Ditto.
10648 * ser-mingw.c (pipe_windows_open): Ditto.
10649 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10650 * spu-tdep.c (spu_register_type): Ditto.
10651 * tracepoint.c (trace_find_command): Ditto.
10652 * valarith.c (value_pos): Ditto.
10653
9a153e0b
JB
106542011-01-10 Joel Brobecker <brobecker@adacore.com>
10655
10656 * ada-valprint.c (printstr): Minor comment reformatting.
10657
35ecd2d6
MS
106582011-01-08 Michael Snyder <msnyder@vmware.com>
10659
10660 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10661 markup.
10662
1777feb0
MS
106632011-01-08 Michael Snyder <msnyder@vmware.com>
10664
10665 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10666 * hppa-hpux-tdep.c: Ditto.
10667 * hppa-linux-nat.c: Ditto.
10668 * hppa-linux-tdep.c: Ditto.
10669 * hppanbsd-tdep.c: Ditto.
10670 * hppa-tdep.c: Ditto.
10671 * hppa-tdep.h: Ditto.
10672 * hpux-thread.c: Ditto.
10673 * i386-cygwin-tdep.c: Ditto.
10674 * i386-darwin-nat.c: Ditto.
10675 * i386gnu-nat.c: Ditto.
10676 * i386-linux-nat.c: Ditto.
10677 * i386-linux-tdep.c: Ditto.
10678 * i386-nat.c: Ditto.
10679 * i386-nat.h: Ditto.
10680 * i386nbsd-tdep.c: Ditto.
10681 * i386-sol2-nat.c: Ditto.
10682 * i386-stub.c: Ditto.
10683 * i386-tdep.c: Ditto.
10684 * i386-tdep.h: Ditto.
10685 * i387-tdep.c: Ditto.
10686 * ia64-linux-nat.c: Ditto.
10687 * ia64-linux-tdep.c: Ditto.
10688 * ia64-tdep.c: Ditto.
10689 * infcall.c: Ditto.
10690 * infcall.h: Ditto.
10691 * infcmd.c: Ditto.
10692 * inferior.c: Ditto.
10693 * inferior.h: Ditto.
10694 * infloop.c: Ditto.
10695 * inflow.c: Ditto.
10696 * infrun.c: Ditto.
10697 * interps.c: Ditto.
10698 * interps.h: Ditto.
10699 * iq2000-tdep.c: Ditto.
10700 * irix5-nat.c: Ditto.
10701 * jit.c: Ditto.
10702 * jit.h: Ditto.
10703 * jv-exp.y: Ditto.
10704 * jv-lang.c: Ditto.
10705 * jv-lang.h: Ditto.
10706 * jv-typeprint.c: Ditto.
10707 * jv-valprint.c: Ditto.
10708 * language.c: Ditto.
10709 * language.h: Ditto.
10710 * linespec.c: Ditto.
10711 * linux-fork.c: Ditto.
10712 * linux-nat.c: Ditto.
10713 * linux-thread-db.c: Ditto.
10714 * lm32-tdep.c: Ditto.
10715
025bb325
MS
107162011-01-08 Michael Snyder <msnyder@vmware.com>
10717
10718 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10719 * m2-lang.c: Ditto.
10720 * m2-typeprint.c: Ditto.
10721 * m2-valprint.c: Ditto.
10722 * m32c-tdep.c: Ditto.
10723 * m32r-linux-nat.c: Ditto.
10724 * m32r-rom.c: Ditto.
10725 * m32r-tdep.c: Ditto.
10726 * m32r-tdep.h: Ditto.
10727 * m68hc11-tdep.c: Ditto.
10728 * m58klinux-nat.c: Ditto.
10729 * m68k-tdep.c: Ditto.
10730 * m88k-tdep.c: Ditto.
10731 * m88k-tdep.h: Ditto.
10732 * machoread.c: Ditto.
10733 * macrocmd.c: Ditto.
10734 * macroexp.c: Ditto.
10735 * macrotab.c: Ditto.
10736 * main.c: Ditto.
10737 * maint.c: Ditto.
10738 * mdebugread.c: Ditto.
10739 * mdebugread.h: Ditto.
10740 * memattr.c: Ditto.
10741 * memattr.h: Ditto.
10742 * memory-map.h: Ditto.
10743 * mep-tdep.c: Ditto.
10744 * microblaze-rom.c: Ditto.
10745 * microblaze-tdep.c: Ditto.
10746 * minsyms.c: Ditto.
10747 * mips-irix-tdep.c: Ditto.
10748 * mips-linux-nat.c: Ditto.
10749 * mips-linux-tdep.c: Ditto.
10750 * mips-linux-tdep.h: Ditto.
10751 * mipsnbsd-nat.c: Ditto.
10752 * mipsnbsd-tdep.c: Ditto.
10753 * mipsread.c: Ditto.
10754 * mips-tdep.c: Ditto.
10755 * mips-tdep.h: Ditto.
10756 * mn10300-linux-tdep.c: Ditto.
10757 * mn10300-tdep.c: Ditto.
10758 * mn10300-tdep.h: Ditto.
10759 * monitor.c: Ditto.
10760 * monitor.h: Ditto.
10761 * moxie-tdep.c: Ditto.
10762 * moxie-tdep.h: Ditto.
10763 * mt-tdep.c: Ditto.
10764
1642781b
MF
107652011-01-08 Mike Frysinger <vapier@gentoo.org>
10766
10767 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10768
394b0adb
JB
107692011-01-08 Robert Millan <rmh@gnu.org>
10770
10771 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10772
b670013c
MS
107732011-01-07 Michael Snyder <msnyder@vmware.com>
10774
10775 * charset.c (_initialize_charset): Fix typo in string.
10776
a743e542
MS
107772011-01-07 Michael Snyder <msnyder@vmware.com>
10778
10779 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10780 for i18n.
f2eb0bc8 10781 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10782 Split line so that operator goes to beginning of line.
10783 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10784 assignment out of if statement.
10785
0963b4bd
MS
107862011-01-07 Michael Snyder <msnyder@vmware.com>
10787
10788 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10789 * ada-lang.h: Ditto.
10790 * ada-tasks.c: Ditto.
10791 * ada-valprint.c: Ditto.
10792 * aix-threads.c: Ditto.
10793 * alpha-linux-nat.c: Ditto.
10794 * alpha-linux-tdep.c: Ditto.
10795 * alpha-mdebug-tdep.c: Ditto.
10796 * alpha-nat.c: Ditto.
10797 * alpha-osf1-tdep.c: Ditto.
10798 * alpha-tdep.c: Ditto.
10799 * alphabsd-nat.c: Ditto.
10800 * alphabsd-tdep.c: Ditto.
10801 * amd64-darwin-tdep.c: Ditto.
10802 * amd64-linux-nat.c: Ditto.
10803 * amd64-linux-tdep.c: Ditto.
10804 * amd64-sol2-tdep.c: Ditto.
10805 * amd64-tdep.c: Ditto.
10806 * amd64-fbsd-tdep.c: Ditto.
10807 * amd64-nbsd-tdep.c: Ditto.
10808 * amd64-obsd-tdep.c: Ditto.
10809 * amd64-linux-nat.c: Ditto.
10810 * amd64-linux-tdep.c: Ditto.
10811 * arm-tdep.c: Ditto.
10812 * arm-tdep.h: Ditto.
10813 * armnbsd-nat.c: Ditto.
10814 * avr-tdep.c: Ditto.
10815 * bfin-tdep.c: Ditto.
10816 * bsd-kvm.c: Ditto.
10817 * c-typeprintc: Ditto.
10818 * c-valprint.c: Ditto.
10819 * coff-pe-read.h: Ditto.
10820 * coffreead.c: Ditto.
10821 * cris-tdep.c: Ditto.
10822 * d-lang.c: Ditto.
10823 * darwin-nat-info.c: Ditto.
10824 * darwin-nat.c: Ditto.
10825 * dbug-rom.c: Ditto.
10826 * dbxread.c: Ditto.
10827 * dcache.c: Ditto.
10828 * dcache.h: Ditto.
10829 * dec-thread.c: Ditto.
10830 * defs.h: Ditto.
10831 * demangle.c: Ditto.
10832 * dicos-tdep.c: Ditto.
10833 * dictionary.c: Ditto.
10834 * dictionary.h: Ditto.
10835 * dink32-rom.c: Ditto.
10836 * disasm.c: Ditto.
10837 * doublest.c: Ditto.
10838 * dsrec.c: Ditto.
10839 * dummy-frame.c: Ditto.
10840 * dwarf2-frame.c: Ditto.
10841 * dwarf2expr.c: Ditto.
10842 * dwarf2loc.c: Ditto.
10843 * dwarf2read.c: Ditto.
10844 * elfread.c: Ditto.
10845 * environ.c: Ditto.
10846 * eval.c: Ditto.
10847 * event-top.h: Ditto.
10848 * exceptions.c: Ditto.
10849 * exceptions.h: Ditto.
10850 * exec.c: Ditto.
10851 * expprint.c: Ditto.
10852 * expression.h: Ditto.
10853 * f-exp.y: Ditto.
10854 * f-lang.c: Ditto.
10855 * f-lang.h: Ditto.
10856 * f-typeprint.c: Ditto.
10857 * f-valprint.c: Ditto.
10858 * fbsd-nat.c: Ditto.
10859 * findvar.c: Ditto.
10860 * fork-child.c: Ditto.
10861 * frame.c: Ditto.
10862 * frame.h: Ditto.
10863 * frv-linux-tdep.c: Ditto.
10864 * frv-tdep.c: Ditto.
10865 * gcore.c: Ditto.
10866 * gdb-stabs.h: Ditto.
10867 * gdb_assert.h: Ditto.
10868 * gdb_string.h: Ditto.
10869 * gdb_thread_db.h: Ditto.
10870 * gdb_wait.h: Ditto.
10871 * gdbarch.sh: Ditto.
10872 * gdbcore.h: Ditto.
10873 * gdbthread.h: Ditto.
10874 * gdbtypes.c: Ditto.
10875 * gdbtypes.h: Ditto.
10876 * gnu-nat.c: Ditto.
10877 * gnu-nat.h: Ditto.
10878 * gnu-v2-abi.c: Ditto.
10879 * gnu-v3-abi.c: Ditto.
10880 * go32-nat.c: Ditto.
10881 * gdbarch.c: Regenerate.
10882 * gdbarch.h: Regenerate.
10883
ac74f770
MS
108842011-01-07 Michael Snyder <msnyder@vmware.com>
10885
10886 * ax-gdb.c: Adjust some long output strings.
10887 * breakpoint.c: Ditto.
10888 * charset.c: Ditto.
10889 * cp-abi.c: Ditto.
10890 * infcall.c: Ditto.
10891 * infrun.c: Ditto.
10892 * linux-nat.c: Ditto.
10893 * solib-pa64.c: Ditto.
10894 * solib-som.c: Ditto.
10895
d8e22779
TT
108962011-01-06 Tom Tromey <tromey@redhat.com>
10897
10898 PR python/12367:
10899 * NEWS: Add item.
10900 * python/python.c (GdbMethods): Add "newest_frame" method.
10901 * python/python-internal.h (gdbpy_newest_frame): Declare.
10902 * python/py-frame.c (gdbpy_newest_frame): New function.
10903
a255712f
PP
109042010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10905
10906 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10907 * jit.c (jit_debug): New variable.
10908 (show_jit_debug): New function.
10909 (struct target_buffer): Use ULONGEST.
10910 (bfd_open_from_target_memory): Likewise.
10911 (jit_register_code, jit_inferior_init): Add debug output.
10912 (_initialize_jit): Register "debug jit" command.
10913
ccfc3d6e
TT
109142011-01-06 Tom Tromey <tromey@redhat.com>
10915
10916 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10917 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10918 and ARCH_FRAME.
10919
57126e4a
TT
109202011-01-06 Tom Tromey <tromey@redhat.com>
10921
10922 * python/py-frame.c (frapy_block): Use get_frame_block.
10923
16dfc9ce
JB
109242011-01-06 Joel Brobecker <brobecker@adacore.com>
10925
10926 Do not stop on SIGPRIO signals by default
10927 * infrun.c (_initialize_infrun): Unset signal_stop and
10928 signal_print for TARGET_SIGNAL_PRIO.
10929
b1ce2347
JB
109302011-01-06 Joel Brobecker <brobecker@adacore.com>
10931
10932 * ada-tasks.c: Fix style violation in comment.
10933
8f7e195f
JB
109342011-01-06 Joel Brobecker <brobecker@adacore.com>
10935
10936 * linespec.c (decode_compound, find_method): Remove trailing \n
10937 at end of error string.
10938 * solib-irix.c (irix_current_sos): Likewise.
10939 * varobj.c (uninstall_variable): Likewise.
10940
e9bdf92c
JB
109412011-01-06 Joel Brobecker <brobecker@adacore.com>
10942
10943 * copyright.py: New script.
10944 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10945 Launch emacs without exec'ing. Call copyright.py afterwards.
10946
3e43a32a
MS
109472011-01-05 Michael Snyder <msnyder@vmware.com>
10948
10949 * addrmap.c: Shorten lines of >= 80 columns.
10950 * arch-utils.c: Ditto.
10951 * arch-utils.h: Ditto.
10952 * ax-gdb.c: Ditto.
10953 * ax-general.c: Ditto.
10954 * bcache.c: Ditto.
10955 * blockframe.c: Ditto.
10956 * breakpoint.c: Ditto.
10957 * buildsym.c: Ditto.
10958 * c-lang.c: Ditto.
10959 * c-typeprint.c: Ditto.
10960 * charset.c: Ditto.
10961 * coffread.c: Ditto.
10962 * command.h: Ditto.
10963 * corelow.c: Ditto.
10964 * cp-abi.c: Ditto.
10965 * cp-namespace.c: Ditto.
10966 * cp-support.c: Ditto.
10967 * dbug-rom.c: Ditto.
10968 * dbxread.c: Ditto.
10969 * defs.h: Ditto.
10970 * dfp.c: Ditto.
10971 * dfp.h: Ditto.
10972 * dictionary.c: Ditto.
10973 * disasm.c: Ditto.
10974 * doublest.c: Ditto.
10975 * dwarf2-frame.c: Ditto.
10976 * dwarf2expr.c: Ditto.
10977 * dwarf2loc.c: Ditto.
10978 * dwarf2read.c: Ditto.
10979 * elfread.c: Ditto.
10980 * eval.c: Ditto.
10981 * event-loop.c: Ditto.
10982 * event-loop.h: Ditto.
10983 * exceptions.h: Ditto.
10984 * exec.c: Ditto.
10985 * expprint.c: Ditto.
10986 * expression.h: Ditto.
10987 * f-lang.c: Ditto.
10988 * f-valprint.c: Ditto.
10989 * findcmd.c: Ditto.
10990 * frame-base.c: Ditto.
10991 * frame-unwind.c: Ditto.
10992 * frame-unwind.h: Ditto.
10993 * frame.c: Ditto.
10994 * frame.h: Ditto.
10995 * gcore.c: Ditto.
10996 * gdb-stabs.h: Ditto.
10997 * gdb_assert.h: Ditto.
10998 * gdb_dirent.h: Ditto.
10999 * gdb_obstack.h: Ditto.
11000 * gdbcore.h: Ditto.
11001 * gdbtypes.c: Ditto.
11002 * gdbtypes.h: Ditto.
11003 * inf-ttrace.c: Ditto.
11004 * infcall.c: Ditto.
11005 * infcmd.c: Ditto.
11006 * inflow.c: Ditto.
11007 * infrun.c: Ditto.
11008 * inline-frame.h: Ditto.
11009 * language.c: Ditto.
11010 * language.h: Ditto.
11011 * libunwind-frame.c: Ditto.
11012 * libunwind-frame.h: Ditto.
11013 * linespec.c: Ditto.
11014 * linux-nat.c: Ditto.
11015 * linux-nat.h: Ditto.
11016 * linux-thread-db.c: Ditto.
11017 * machoread.c: Ditto.
11018 * macroexp.c: Ditto.
11019 * macrotab.c: Ditto.
11020 * main.c: Ditto.
11021 * maint.c: Ditto.
11022 * mdebugread.c: Ditto.
11023 * memattr.c: Ditto.
11024 * minsyms.c: Ditto.
11025 * monitor.c: Ditto.
11026 * monitor.h: Ditto.
11027 * objfiles.c: Ditto.
11028 * objfiles.h: Ditto.
11029 * osabi.c: Ditto.
11030 * p-typeprint.c: Ditto.
11031 * p-valprint.c: Ditto.
11032 * parse.c: Ditto.
11033 * printcmd.c: Ditto.
11034 * proc-events.c: Ditto.
11035 * procfs.c: Ditto.
11036 * progspace.c: Ditto.
11037 * progspace.h: Ditto.
11038 * psympriv.h: Ditto.
11039 * psymtab.c: Ditto.
11040 * record.c: Ditto.
11041 * regcache.c: Ditto.
11042 * regcache.h: Ditto.
11043 * remote-fileio.c: Ditto.
11044 * remote.c: Ditto.
11045 * ser-mingw.c: Ditto.
11046 * ser-tcp.c: Ditto.
11047 * ser-unix.c: Ditto.
11048 * serial.c: Ditto.
11049 * serial.h: Ditto.
11050 * solib-frv.c: Ditto.
11051 * solib-irix.c: Ditto.
11052 * solib-osf.c: Ditto.
11053 * solib-pa64.c: Ditto.
11054 * solib-som.c: Ditto.
11055 * solib-sunos.c: Ditto.
11056 * solib-svr4.c: Ditto.
11057 * solib-target.c: Ditto.
11058 * solib.c: Ditto.
11059 * somread.c: Ditto.
11060 * source.c: Ditto.
11061 * stabsread.c: Ditto.
11062 * stabsread.c: Ditto.
11063 * stack.c: Ditto.
11064 * stack.h: Ditto.
11065 * symfile-mem.c: Ditto.
11066 * symfile.c: Ditto.
11067 * symfile.h: Ditto.
11068 * symmisc.c: Ditto.
11069 * symtab.c: Ditto.
11070 * symtab.h: Ditto.
11071 * target-descriptions.c: Ditto.
11072 * target-memory.c: Ditto.
11073 * target.c: Ditto.
11074 * target.h: Ditto.
11075 * terminal.h: Ditto.
11076 * thread.c: Ditto.
11077 * top.c: Ditto.
11078 * tracepoint.c: Ditto.
11079 * tracepoint.h: Ditto.
11080 * ui-file.c: Ditto.
11081 * ui-file.h: Ditto.
11082 * ui-out.h: Ditto.
11083 * user-regs.c: Ditto.
11084 * user-regs.h: Ditto.
11085 * utils.c: Ditto.
11086 * valarith.c: Ditto.
11087 * valops.c: Ditto.
11088 * valprint.c: Ditto.
11089 * valprint.h: Ditto.
11090 * value.c: Ditto.
11091 * varobj.c: Ditto.
11092 * varobj.h: Ditto.
11093 * vec.h: Ditto.
11094 * xcoffread.c: Ditto.
11095 * xcoffsolib.c: Ditto.
11096 * xcoffsolib.h: Ditto.
11097 * xml-syscall.c: Ditto.
11098 * xml-tdesc.c: Ditto.
11099
9a2b4c1b
MS
111002011-01-05 Michael Snyder <msnyder@vmware.com>
11101
11102 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11103 * cli/cli-decode.c: Ditto.
11104 * cli/cli-dump.c: Ditto.
11105 * cli/cli-logging.c: Ditto.
11106 * cli/cli-script.c: Ditto.
11107 * cli/cli-setshow.c: Ditto.
11108 * common/signals.c: Ditto.
11109 * mi/mi-cmd-break.c: Ditto.
11110 * mi/mi-cmd-disas.c: Ditto.
11111 * mi/mi-cmd-stack.c: Ditto.
11112 * mi/mi-cmd-var.c: Ditto.
11113 * mi/mi-cmds.c: Ditto.
11114 * mi/mi-common.h: Ditto.
11115 * mi/mi-console.c: Ditto.
11116 * mi/mi-interp.c: Ditto.
11117 * mi/mi-main.c: Ditto.
11118 * osf-share/cma_attr.c: Ditto.
11119 * osf-share/cma_deb_core.h: Ditto.
11120 * osf-share/cma_debug_client.h: Ditto.
11121 * osf-share/cma_handle.h: Ditto.
11122 * osf-share/cma_mutex.h: Ditto.
11123 * osf-share/cma_stack_int.h: Ditto.
11124 * osf-share/cma_tcb_defs.h: Ditto.
11125 * python/py-auto-load.c: Ditto.
11126 * python/py-breakpoint.c: Ditto.
11127 * python/py-cmd.c: Ditto.
11128 * python/py-frame.c: Ditto.
11129 * python/py-objfile.c: Ditto.
11130 * python/py-param.c: Ditto.
11131 * python/py-progspace.c: Ditto.
11132 * python/py-symbol.c: Ditto.
11133 * python/py-value.c: Ditto.
11134 * python/python-internal.h: Ditto.
11135 * python/python.c: Ditto.
11136 * tui/tui-data.c: Ditto.
11137 * tui/tui-disasm.c: Ditto.
11138 * tui/tui-hooks.c: Ditto.
11139 * tui/tui-io.c: Ditto.
11140 * tui/tui-layout.c: Ditto.
11141 * tui/tui-regs.c: Ditto.
11142 * tui/tui-source.c: Ditto.
11143 * tui/tui-stack.c: Ditto.
11144 * tui/tui-win.c: Ditto.
11145 * tui/tui-windata.c: Ditto.
11146 * tui/tui-winsource.c: Ditto.
11147
44944448
JB
111482011-01-05 Joel Brobecker <brobecker@adacore.com>
11149
11150 * configure.ac, gdb.1: Copyright year update.
11151
ebedcab5
JK
111522011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11155 this_pc_in_block, morestack_msym and morestack_name. Check for
11156 "__morestack" minimal symbol there.
11157
e5cc9f32
JB
111582011-01-03 Joel Brobecker <brobecker@adacore.com>
11159
11160 * symfile.c (find_sym_fns): Add call to dont_repeat.
11161
7b6bb8da
JB
111622011-01-01 Joel Brobecker <brobecker@adacore.com>
11163
11164 Copyright year update in most files (performed by copyright.sh).
11165
71ce852c
JB
111662011-01-01 Joel Brobecker <brobecker@adacore.com>
11167
11168 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11169
c3c1ebe8 11170For older changes see ChangeLog-2010.
c906108c
SS
11171\f
11172Local Variables:
11173mode: change-log
11174left-margin: 8
11175fill-column: 74
11176version-control: never
57da7796 11177coding: utf-8
c906108c 11178End:
This page took 1.788972 seconds and 4 git commands to generate.